1 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
6 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
9 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
11 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
14 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
15 that underlying type is present.
17 2008-02-26 Tom Tromey <tromey@redhat.com>
19 * misc.c (internal_error_function): Remove test of
21 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
22 (Sloc_to_locus): Remove old location code.
24 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
27 `i.e.' by adding comma or `@:' as appropriate.
28 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
29 plain characters `C', use `@samp{C}'.
30 * gnat_ugn.texi (File Naming Rules, About gnatkr)
31 (Krunching Method): Likewise.
33 * gnat_ugn.texi (Conventions): List environment variables and
34 metasyntactic variables.
35 (Compiling Programs): Fix notation of metasyntactic variables.
36 Add @file where appropriate. Use @file for file extensions,
38 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
39 instead of @file, @env instead of @code.
41 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43 PR documentation/15479
44 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
45 and `...' with `@dots{}' or `@enddots{}'.
47 PR documentation/15479
48 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
49 use @command instead of @code, @option instead of @samp or @code,
50 @code instead of @var, @samp instead of @file.
52 PR documentation/15479
53 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
54 in Makefile rules, by using `&&' rather than `;'.
56 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58 PR documentation/15479
59 * gnat_ugn.texi: In non-code, avoid space before colon.
60 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
61 (Examples of gnatxref Usage): Use @command{vi} instead of
63 (Character Set Control): Do not use @code for UTF-8.
64 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
66 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
68 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
70 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
73 * env.c: Add __rtems__ to if defined.
74 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
75 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
76 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
77 pragma Convention as required.
78 * gsocket.h: Make compile in and out of RTS.
79 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
80 Use g-soccon-rtems.ads.
81 * g-soccon-rtems.ads, system-rtems.ads: New files.
83 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
86 * Make-lang.in (gnat1): Add $(GMPLIBS).
88 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
90 * decl.c (components_to_record): Improve comment.
92 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
94 * decl.c (components_to_record): Do not reuse the empty union type
95 if there is a representation clause on the record.
96 * trans.c (addressable_p): Return true for INTEGER_CST.
98 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
100 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
101 in pointer arithmetics.
102 * utils2.c (build_allocator): Likewise.
104 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
106 * utils.c (build_function_stub): Properly build the call expression.
108 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
110 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
111 before converting the expression to the type of the object.
112 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
113 Stabilize constructors for special wrapping types.
115 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
117 * trans.c (call_to_gnu):Invoke the addressable_p predicate only
118 when necessary. Merge some conditional statements. Update comments.
119 Rename unchecked_convert_p local variable to suppress_type_conversion.
120 Do not suppress conversions in the In case.
121 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
122 into account on non strict-alignment platforms.
124 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
126 * utils.c (aggregate_type_contains_array_p): New predicate.
127 (create_field_decl): In a packed record, force byte alignment
128 for fields without specified position that contain an array.
130 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
132 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
134 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
137 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
139 (bit_field): New packed boolean type used by cpu_set_t.
140 (cpu_set_t): New type corresponding to the C type with
141 the same name. Note that on the Ada side we use a bit
142 field array for the affinity mask. There is not need
143 for the C macro for setting individual bit.
144 (pthread_setaffinity_np): New imported routine.
146 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
149 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
150 on OpenBSD as is done on other BSD systems.
153 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
154 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
158 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
162 * init.c (__gnat_error_handler, __gnat_install_handler,
163 __gnat_init_float): Define for OpenBSD.
165 * initialize.c (__gnat_initialize): Define for OpenBSD.
167 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
170 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
171 instead of mktemp() or tmpnam() on NetBSD.
173 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
175 * trans.c (call_to_gnu): Make the temporary for non-addressable
176 In parameters passed by reference.
177 (addressable_p): Return true for STRING_CST and CALL_EXPR.
179 2007-12-19 Robert Dewar <dewar@adacore.com>
181 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
182 Add pragma Warnings (Off) for unassigned IN OUT arguments
184 * sem_warn.adb (Output_Reference): Suppress messages for internal names
185 (Check_References): Extensive changes to tune up warnings
186 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
187 (Has_Pragma_Unmodifed_Check_Spec): New function
188 (Check_References): Implement pragma Unmodified
189 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
191 * par-prag.adb: Dummy entry for pragma Unmodified
193 * sem_prag.adb: Implement pragma Unmodified
195 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
196 (Proc_Next_Component_Or_Discriminant): Fix typo.
199 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
201 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
202 because the former already takes care of discarding the result.
203 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
206 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
208 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
210 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
211 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
212 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
213 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
214 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
215 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
216 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
217 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
218 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
219 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
220 (Dynamic_Trampolines_Used): Delete.
222 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
223 Turn on stack probing mechanism on LynxOS.
225 2007-12-19 Bob Duff <duff@adacore.com>
227 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
228 the resulting tail recursion by hand. This prevents running out of
229 memory on deeply nested concatenations, since Field2 is where the left
230 operand of concatenations is stored.
231 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
232 clarify that it can only return OK or Abandon.
234 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
235 operand by iteration, in order to avoid running out of memory on
236 deeply-nested concatenations. Use the Parent pointer to get back up the
238 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
239 Resolve_Op_Concat_Rest): New procedures split out of
240 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
243 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
244 Traverse_Func, because the former already takes care of discarding the
247 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
248 because the former already takes care of discarding the result.
249 (Remove_Warning_Messages): Use appropriate subtype for Status and
252 2007-12-19 Ed Schonberg <schonberg@adacore.com>
254 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
255 discriminants forces expansion of the aggregate into assignments.
256 (Init_Record_Controller): If the type of the aggregate is untagged and
257 is not inherently limited, the record controller is not limited either.
259 2007-12-19 Robert Dewar <dewar@adacore.com>
261 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
262 handling compile time known size of record or array (case of front end
263 layout active, e.g. in GNAAMP).
265 2007-12-19 Javier Miranda <miranda@adacore.com>
267 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
268 that forces the construction of static dispatch tables in case of
271 2007-12-19 Robert Dewar <dewar@adacore.com>
273 * exp_ch9.adb (Null_Statements): Moved to library level
274 (Trivial_Accept_OK): New function
275 (Expand_Accept_Declaration): Use Trivial_Accept_OK
276 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
278 2007-12-19 Robert Dewar <dewar@adacore.com>
280 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
281 in complex case where array is Volatile.
283 2007-12-19 Ed Schonberg <schonberg@adacore.com>
285 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
286 properly the Ada2005 rules concerning when the current instance of a
287 record type is aliased.
289 2007-12-19 Ed Schonberg <schonberg@adacore.com>
291 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
293 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
295 (P_Variant_Part): Cleaner patch for parenthesized discriminant
297 2007-12-19 Vincent Celier <celier@adacore.com>
299 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
302 * prj-attr.ads (Unknown_Package): New constant
303 Do not crash when an unknown package is in several projects
305 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
308 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
309 existing package Language_Processing.
311 2007-12-19 Ed Schonberg <schonberg@adacore.com>
312 Gary Dismukes <dismukes@adacore.com>
313 Samuel Tardieu <sam@rfc1149.net>
315 PR ada/15803, ada/15805
316 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
317 illegal access subtypes when there is a constrained partial view.
318 (Check_For_Premature_Usage): New procedure inside
319 Access_Subprogram_Declaration for checking that an access-to-subprogram
320 type doesn't reference its own name within any formal parameters or
321 result type (including within nested anonymous access types).
322 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
323 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
324 context is an access_to_variable, the expression cannot be an
327 2007-12-19 Bob Duff <duff@adacore.com>
329 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
330 (Analyze_Concatenation): Use iteration instead of recursion in order
331 to avoid running out of stack space for deeply nested concatenations.
333 2007-12-19 Ed Schonberg <schonberg@adacore.com>
334 Gary Dismukes <dismukes@adacore.com>
336 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
337 whose renamed entity is a subprogram that requires overriding.
338 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
339 issuing an error for premature usage and issue a message that says
340 'type' rather than 'object'.
342 2007-12-19 Gary Dismukes <dismukes@adacore.com>
345 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
346 presence of a statically tagged operand (Present (Static_Tag)) with
347 test for Indeterm_Ancestor_Call when determining whether to propagate
348 the static tag to tag-indeterminate operands (which forces dispatching
350 (Check_Controlling_Formals): Ada2005, access parameters can have
352 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
353 not insert subprogram in list of primitive operations if already there.
355 2007-12-19 Tristan Gingold <gingold@adacore.com>
357 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
360 2007-12-19 Thomas Quinot <quinot@adacore.com>
363 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
364 datagram info on Linux.
366 2007-12-19 Vincent Celier <celier@adacore.com>
368 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
369 that the source path name is always found in the dependencies.
371 2007-12-19 Robert Dewar <dewar@adacore.com>
373 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
374 Fix name of Wide_Wide_Latin_1/9 file names
375 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
376 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
377 Add missing documentation for Ada.Command_Line.Response_File
378 Update list of warning letters for Warnings pragma
379 Add documentation for pragma Unmodified
381 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
383 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
385 2007-12-17 Arnaud Charlet <charlet@adacore.com>
387 * s-vxwork-alpha.ads: Removed, no longer used.
389 2007-12-15 Jakub Jelinek <jakub@redhat.com>
391 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
393 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
396 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
397 mlib-tgt-specific.adb.
399 2007-12-13 Bob Duff <duff@adacore.com>
401 * trans.c (Attribute_to_gnu): Check for violations of the
402 No_Implicit_Dynamic_Code restriction. This checking used to be done in
403 the front end, but is moved here so we can make it more accurate.
405 2007-12-13 Pascal Obry <obry@adacore.com>
407 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
408 version is provided for older GNU/Linux distribution not
409 supporting thread affinity sets.
411 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
413 (bit_field): New packed boolean type used by cpu_set_t.
414 (cpu_set_t): New type corresponding to the C type with
415 the same name. Note that on the Ada side we use a bit
416 field array for the affinity mask. There is not need
417 for the C macro for setting individual bit.
418 (pthread_setaffinity_np): New imported routine.
420 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
422 (Create_Task): Set the processor affinity mask if information
425 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
427 2007-12-13 Robert Dewar <dewar@adacore.com>
429 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
430 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
431 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
432 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
433 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
434 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
435 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
436 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
437 for subprogram pointers.
439 * g-ctrl_c.adb: New file.
441 * g-ctrl_c.ads (Install_Handler): New body.
443 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
444 instead of obsolete function Is_Always_Inlined.
445 (Freeze_Entity): check for tagged type in imported C subprogram
446 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
447 (Freeze_Entity): check for convention Ada subprogram pointer in
448 imported C subprogram.
449 (Freeze_Fixed_Point_Type): In the case of a base type where the low
450 bound would be chopped off and go from negative to zero, force
451 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
452 bound) so that the size computation for the base type will take
453 negative values into account.
455 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
456 Bob Duff <duff@adacore.com>
457 Tristan Gingold <gingold@adacore.com>
459 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
460 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
461 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
462 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
463 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
464 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
465 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
466 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
467 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
468 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
469 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
470 (Always_Compatible_Rep): New flag to control trampolines globally.
471 (Dynamic_Trampolines_Used): New flag for implementing the
472 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
473 and not yet set correctly for some targets).
475 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
476 Simply indirectly call s-stchop when a task is created.
479 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
480 appears as an argument (entries A) in an ALI file.
482 * fe.h (Stack_Check_Limits): Declare new target parameter.
483 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
485 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
486 This variable is declared in C to be sure not subject to elaboration
488 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
491 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
492 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
494 * s-stchop.ads: Add comments.
496 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
497 limit method of stack checking.
499 * s-stchop-limit.ads: New file.
501 2007-12-13 Robert Dewar <dewar@adacore.com>
503 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
504 a-cihama.adb, g-awk.adb,
505 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
508 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
510 * sem.adb: Update handling of assigned value/unreferenced warnings
512 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
514 * lib-xref.ads: Improve documentation for k xref type
517 Update handling of assigned value/unreferenced warnings
518 (Generate_Reference): Warning for reference to entity for which a
519 pragma Unreferenced has been given should be unconditional.
520 If the entity is a discriminal, mark the original
521 discriminant as referenced.
523 * sem_warn.ads, sem_warn.adb
524 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
525 no entities referenced in package
526 (Check_One_Unit): Don't give message about no entities referenced in
527 a package if a pragma Unreferenced has appeared.
528 Handle new warning flag -gnatw.a/-gnatw.A
529 Update handling of assigned value/unreferenced warnings
531 * atree.h: Add flags up to Flag247
532 (Flag231): New macro.
534 2007-12-13 Jose Ruiz <ruiz@adacore.com>
536 * adaint.h: (__gnat_plist_init): Not defined for RTX.
538 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
541 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
542 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
543 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
544 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
547 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
549 * sysdep.c (winflush_function for RTX): Procedure that does nothing
550 since we only have problems with Windows 95/98, which are not
552 (__gnat_ttyname): Return the empty string on Nucleus, just as
555 2007-12-13 Robert Dewar <dewar@adacore.com>
557 * a-textio.adb, a-textio.ads:
558 Extensive changes to private part for wide character encoding
560 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
561 (Look_Ahead): Fix mishandling of encoded sequences
562 Move declaration of Wch_Con to private part (should not be visible)
564 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
565 UTF-8. Probably this is never used, but if it is, brackets is
568 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
569 setting wide character encoding for no main program case and when
570 encoding is specified using -W?
571 Initialize stack limit of environment task if stack limit method of
572 stack checking is enabled.
573 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
574 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
575 (Get_Main_Unit_Name): New function.
576 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
577 (Gen_Output_File): Set Bind_Main_Program to True for .NET
579 * bindusg.adb: Add line for -Wx switch
581 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
583 Add new useful constant WC_Longest_Sequences
585 * switch-b.adb: Clean up handling of -Wx switch
586 For -gnatWx, set Wide_Character_Encoding_Method_Specified
588 * switch-c.adb: -gnatg activates warning on assertion errors
589 For -gnatWx, set Wide_Character_Encoding_Method_Specified
591 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
593 2007-12-13 Robert Dewar <dewar@adacore.com>
594 Ed Schonberg <schonberg@adacore.com>
596 * a-ngcoty.adb: New pragma Fast_Math
598 * opt.adb: New pragma Fast_Math
601 Add Implemented_By_Entry to the list of pragmas which do not require any
603 (Favor_Top_Level): New pragma.
606 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
607 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
608 Expand_Allocator_Expression): Take into account VM_Target
609 (Expand_Attribute, case 'Identity): Handle properly the case where
610 the prefix is a task interface.
613 * par.adb (Next_Token_Is): New function
614 (P_Pragma): Add Skipping parameter
615 (U_Left_Paren): New procedure
616 (U_Right_Paren): New procedure
619 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
623 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
624 Implemented_By_Entry.
625 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
626 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
627 items, since it can apply to more than one overloadable entity. Set
628 new flag Has_Pragma_Inline_Always for Inline_Always case.
629 (Analyze_Pragma, case Complex_Representation): Improve error message.
630 (Analyze_Pragma, case Assert): When assertions are disabled build the
631 rewritten code with Sloc of expression rather than pragma, so new
632 warning about failing is not deleted.
633 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
634 protected types and update error message to reflect that. Test whether
635 the protected type is allowed for the pragma (an error is issued if the
636 type has any entries, or components that do not have preelaborable
639 (Analyze_Pragma, case No_Return): Handle generic instance
641 * snames.h, snames.ads, snames.adb:
642 Add new predefined name for interface primitive _Disp_Requeue.
645 * a-tags.ads, a-tags.adb: New calling sequence for
646 String_To_Wide_[Wide_]String
647 (Secondary_Tag): New subprogram.
649 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
651 New calling sequence for String_To_Wide_[Wide_]String
652 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
653 the use of the secondary stack for image routines.
655 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
656 calling sequence for String_To_Wide_[Wide_]String
658 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
660 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
661 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
663 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
664 (P_Formal_Part): Use Skipping parameter in P_Pragma call
665 to improve error recovery
667 * par-util.adb (Next_Token_Is): New function
668 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
670 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
672 (P_Pragma): Implement new Skipping parameter
673 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
674 Fix location of flag for unrecognized pragma message
676 * par-tchk.adb (U_Left_Paren): New procedure
677 (U_Right_Paren): New procedure
679 2007-12-13 Geert Bosch <bosch@adacore.com>
682 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
683 the second or later Scaled_Divide would omit leading zeroes,
684 resulting in too few digits produced and a Layout_Error as result.
685 (Put): Initialize Pos.
687 2007-12-13 Robert Dewar <dewar@adacore.com>
689 atree.ads, atree.adb (Flag231..Flag247): New functions
690 (Set_Flag231..Set_Flag247): New procedures
691 (Basic_Set_Convention): Rename Set_Convention to be
693 (Nkind_In): New functions
694 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
696 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
698 of obsolete function Is_Always_Inlined
699 (Register_Predefined_DT_Entry): Initialize slots of the second
700 secondary dispatch table.
701 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
702 (Expand_N_Function_Call): Remove special provision for stack checking.
704 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
705 Include _Disp_Requeue in the list of predefined operations.
706 (Find_Interface_ADT): Modified to fulfill the new specification.
707 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
709 * par-ch4.adb, nlists.ads, nlists.adb:
710 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
712 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
713 Fix location of flag for unrecognized pragma message
715 * sem_ch7.adb: Use Nkind_In
717 2007-12-13 Vincent Celier <celier@adacore.com>
720 Indicate what flags are used by the Project Manager, gprbuild and
722 (Opt.Follow_Links_For_Dirs): New flag
723 (Warn_On_Assertion_Failure): New flag
724 (Wide_Character_Encoding_Method_Specified): New flag
725 (Suppress_All_Inlining): New switch set by -fno-inline
726 (Real_VMS_Target): New flag
729 2007-12-13 Robert Dewar <dewar@adacore.com>
731 * back_end.adb: Recognize -fno-inline
733 2007-12-13 Robert Dewar <dewar@adacore.com>
735 * checks.adb: Fix optimization problem with short-circuited form
737 2007-12-13 Bob Duff <duff@adacore.com>
739 * clean.adb (Usage): Add line for -aP
740 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
741 with a parameter "procedure Usage", instead of passing a pointer to a
742 procedure. This is to eliminate trampolines (since the Usage procedure
743 is often nested in a main procedure, and it would be inconvenient to
746 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
747 to be generic, with a parameter "procedure Callback (...)", instead of
748 passing a pointer to a procedure. This is to eliminate trampolines
749 (since the Callback procedure is usually nested).
751 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
752 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
753 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
755 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
756 Use the generic Heap_Sort_G instead of Heap_Sort_A.
758 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
760 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
761 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
762 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
763 (Renamed_In_Spec): New flag
764 (Has_Pragma_Inline_Always): New flag
765 Add missing doc for pragma Obsolescent_Warning
766 Add missing doc for 17 additional unused flags (230-247)
767 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
768 Alphabetize with clauses.
769 Separate Is_Thunk and Has_Thunks flags
770 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
771 (Related_Interface): Renamed to Related_Type.
772 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
773 (Set_Is_Flag): Restrict the assertion.
775 2007-12-13 Vincent Celier <celier@adacore.com>
777 * errout.adb (Output_Source_Line): Do not keep a trailing space after
778 the source line number if the source line is empty.
780 2007-12-13 Geert Bosch <bosch@adacore.com>
782 * eval_fat.adb (Decompose_Int): Handle argument of zero.
783 (Compose): Remove special casing of zero.
784 (Exponent): Likewise.
785 (Fraction): Likewise.
787 (Decompose): Update comment.
789 2007-12-13 Ed Schonberg <schonberg@adacore.com>
791 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
792 limited ancestor part, initialize controllers of enclosing record
793 before expanding ancestor aggregate.
794 (Gen_Assign): If a component of the aggregate is box-initialized, add
795 code to call Initialize if the component is controlled, and explicit
796 assignment of null if the component is an access type.
798 Handle properly aggregates for limited types that appear in object
799 declarations when the aggregate contains controlled values such as
801 When expanding limited aggregates into individual components, do not
802 call Adjust on controlled components that are limited.
804 2007-12-13 Ed Schonberg <schonberg@adacore.com>
806 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
808 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
810 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
811 predefined primitive _Disp_Requeue.
812 (Make_Predefined_Primitive_Specs): Create the spec for predefined
813 primitive _Disp_Requeue.
814 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
815 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
816 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
817 an interface type. In case of limited interfaces we now declare all the
818 predefined primitives associated with synchronized interfaces as
820 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
822 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
823 tagged type is an interface type and there is no user-defined equality
825 Add also bodies of predefined primitives associated with synchronized
827 (Freeze_Record_Type): Do not build bodies of predefined primitives of
828 interface types because they are now defined abstract.
829 Add missing documentation.
830 (Expand_Record_Controller): Update occurrence of Related_Interface
832 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
833 (Expand_N_Object_Declaration): Take into account VM_Target when handling
834 class wide interface object declaration.
835 (Expand_Previous_Access_Type): Do not create a duplicate master entity
836 if the access type already has one.
837 (Expand_N_Object_Declaration): Defend against attempt to validity check
838 generic types. Noticed for -gnatVcf specified with previous errors.
840 2007-12-13 Arnaud Charlet <charlet@adacore.com>
842 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
843 Expand_Allocator_Expression): Take into account VM_Target
845 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
846 secondary stack when VM_Target /= No_VM
848 2007-12-13 Javier Miranda <miranda@adacore.com>
849 Ed Schonberg <schonberg@adacore.com>
851 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
852 Is_Complation_Unit by Is_Library_Level_Entity in the code
853 that decides if the static dispatch tables need to be built.
854 (Wrap_Transient_Declaration): Do not generate a finalization call if
855 this is a renaming declaration and the renamed object is a component
856 of a controlled type.
858 2007-12-13 Gary Dismukes <dismukes@adacore.com>
860 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
861 In the case where the renamed subprogram is a dereference, call
862 Force_Evaluation on the prefix.
864 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
865 Ed Schonberg <schonberg@adacore.com>
867 * exp_ch9.adb (Expand_N_Asynchronous_Select,
868 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
869 comment reformatting.
870 (Set_Privals): Inherit aliased flag from formal. From code reading.
871 (Build_Simple_Entry_Call): Out parameters of an access type are passed
872 by copy and initialized from the actual. This includes entry parameters.
873 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
874 and Ada 2005 models of requeue.
875 (Null_Statements): Still connsider do-end block null if it contains
876 Unreferenced and Warnings pragmas.
877 (Expand_N_Accept_Statement): Do not optimize away null do end if
878 dispatching policy is other than defaulted.
879 (Expand_N_Timed_Entry_Call): When the triggering statement is a
880 dispatching call, manually analyze the delay statement.
881 (Find_Parameter_Type): Move subprogram to Sem_Util.
883 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
884 Javier Miranda <miranda@adacore.com>
886 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
887 _Disp_Requeue occupies dispatch table slot number 15. Move
888 _Disp_Timed_Select to slot 16.
889 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
890 generate the spec and body of _Disp_Reqeueue.
891 (Make_DT): Build and initialize the second dispatch table.
892 Handle initialization of RC_Offset when the parent
893 is a private type with variable size components.
894 (Make_Secondary_DT): Complete documentation. Add support to
895 initialize the second dispatch table.
896 (Make_Tags): Generate the tag of the second dispatch table.
897 (Register_Primitive): Add support to register primitives in the
898 second dispatch table.
900 2007-12-13 Pascal Obry <obry@adacore.com>
902 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
903 Windows. This signal is used by gnatmake to kill child processes for
906 2007-12-13 Javier Miranda <miranda@adacore.com>
908 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
909 support for generic dispatching constructor calls in which we need to
910 locate the tag of a secondary dispatch table associated with an
911 interface type to properly dispatch the call.
912 (Expand_N_Attribute_Reference [case Address],
913 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
914 handling of VM targets.
916 2007-12-13 Robert Dewar <dewar@adacore.com>
917 Ed Schonberg <schonberg@adacore.com>
919 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
922 * ug_words: Add entries for -gnatw.a -gnatw.A
924 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
925 literal is a subtype with non-static constraints, use the base type of
926 the context as the base of the string subtype, to prevent type
928 (Resolve_Actuals): If the actual is an entity name, generate a
929 reference before the actual is resolved and expanded, to prevent
930 spurious warnings on formals of enclosing protected operations.
931 (Analyze_Overloaded_Selected_Component): If type of prefix if
932 class-wide, use visible components of base type.
933 (Resolve_Selected_Component): Ditto.
934 (Resolve_Short_Circuit): Detect case of pragma Assert argument
935 evaluating to False, and issue warning message.
937 * usage.adb: Add lines for -gnatw.a and -gnatw.A
939 2007-12-13 Emmanuel Briot <briot@adacore.com>
941 * g-calend.ads (No_Time): New constant, to represent an uninitialized
944 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
946 (Month_Name_To_Number): New subprogram
948 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
949 letter to upper-case.
951 2007-12-13 Robert Dewar <dewar@adacore.com>
952 Ed Schonberg <schonberg@adacore.com>
954 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
956 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
957 context is a limited view, use non-limited view when available. If the
958 non-limited view is an unconstrained array, this enforces consistency
959 requirements in 3.10.2 (27).
960 (Layout_Type): For an access type whose designated type is a limited
961 view, examine its declaration to determine if it is an unconstrained
962 array, and size the access type accordingly.
963 (Layout_Type): Do not force 32-bits for convention c subprogram
964 pointers in -gnatdm mode, only if real vms target.
966 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
967 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
968 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
969 violations of the No_Implicit_Dynamic_Code restriction.
970 (Resolve_Attribute, case 'Access): If designated type of context is a
971 limited view, use non-limited view when available. If the non-limited
972 view is an unconstrained array, this enforces consistency requirements
974 (Layout_Type): For an access type whose designated type is a limited
975 view, examine its declaration to determine if it is an unconstrained
976 array, and size the access type accordingly.
978 2007-12-13 Vincent Celier <celier@adacore.com>
980 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
981 object directory of main project does not exist.
982 On VMS, correctly set then environment variable for the source
985 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
987 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
988 set to True this procedure will create the value of type REG_EXPAND_SZ.
989 It was only possible to create REG_SZ values before.
991 2007-12-13 Robert Dewar <dewar@adacore.com>
993 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
994 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
995 namet-sp.adb, namet-sp.ads: New files.
997 * g-speche.adb: Use generic routine in g-spchge
999 * s-wchcnv.ads, s-wchcnv.adb:
1000 Minor code cleanup (make formal type consistent with spec)
1002 * namet.adb: Update comments.
1004 * par-endh.adb (Evaluate_End_Entry): Use new
1005 Namet.Sp.Is_Bad_Spelling_Of function
1007 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
1009 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
1010 ancestor is an access type initialized with a box, set its type
1011 explicitly, for use in subsequent expansion.
1012 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
1015 2007-12-13 Robert Dewar <dewar@adacore.com>
1017 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
1020 2007-12-13 Robert Dewar <dewar@adacore.com>
1022 * inline.adb (Back_End_Cannot_Inline): Use new flag
1023 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1025 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
1026 Has_Pragma_Inline_Always instead.
1027 of obsolete function Is_Always_Inlined
1028 (Build_Body_To_Inline): Same change
1029 (Cannot_Inline): Same change
1030 Do not give warning on exception raise in No_Return function
1032 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
1033 component has two inconsistent component clauses in the same record
1034 representation clause, favor the message that complains about
1035 duplication rather than inconsistency.
1037 (Record_Representation_Clause): Do not warn on missing component
1038 clauses for inherited components of a type extension.
1039 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
1040 an overloadable item if it is a pragma that can apply to multiple
1041 overloadable entities (e.g. Inline) because a pragma cannot be on
1042 more than one chain at a time.
1043 (Validate_Unchecked_Conversion): Add code to warn on unchecked
1044 conversion where one of the operands is Ada.Calendar.Time.
1045 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
1046 For now, ignore Component_Size clause on VM targets, as done for
1049 2007-12-13 Emmanuel Briot <briot@adacore.com>
1050 Vincent Celier <celier@adacore.com>
1052 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
1054 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
1056 (Hash): Move instantiation of System.HTable.Hash from spec to body
1057 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
1058 systems, since we do not need to recompute the Name_Id for the canonical
1060 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1061 as a parameter. This parameter is in fact always "ada" in all calls, and
1062 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
1063 while loading a project with 40000 files
1065 * prj-attr.adb: Fix name of attribute Dependency_Driver
1066 Change the kind of indexing for attribute Root
1068 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
1069 variables already declared, in case constructions.
1071 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
1072 Current_Object_Path_File to No_Path.
1074 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
1075 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
1077 * prj-makr.adb: new parameter Current_Dir
1079 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
1080 Ada sources when language is not Ada.
1081 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1082 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
1083 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
1084 (Locate_Directory): Always resolve links when computing Canonical_Path
1085 (Look_For_Sources): Make sure that Name_Buffer contains the file name
1086 in Source_Files before checking for the presence of a directory
1088 Optimize calls to Name_Find when on case sensitive systems.
1089 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1091 (Prj.Nmsc.Check): new parameter Current_Dir
1092 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
1093 cannot be empty and the spec suffix cannot be the same as the body or
1095 (Get_Unit): When a file name can be of several unit kinds (spec, body or
1096 subunit), always consider the longest suffix.
1097 (Check_Configuration): Do not issue an error if there is no compiler
1098 for a language. Just issue a warning and ignore the sources for the
1100 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
1102 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
1103 (Unit_Exceptions): New hash table
1104 (Check_Naming_Schemes): Check if a file that could be a unit because of
1105 the naming scheme is not in fact a source because there is an exception
1107 (Look_For_Sources): Put the unit exceptions in hash table
1109 (Get_Unit_Exceptions): Give initial value No_Source to local variable
1110 Other_Part to avoid exception when code is compiled with validity
1112 (Get_Sources_From_File): Check that there is no directory information
1114 (Look_For_Sources): Check that there is no directory information in the
1115 list of file names in Source_Files.
1116 (Look_For_Sources): In multi-language mode, do not allow exception file
1117 names that are excluded.
1118 (Excluded_Sources_Htable): New hash table
1119 (Search_Directories.Check_File): New procedure to simplify
1121 (Search_Directories): Do not consider excluded sources
1122 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
1124 (Get_Exceptions): Set component Lang_Kind of Source_Data
1125 (Get_Unit_Exceptions): Ditto
1126 (Search_Directories): Ditto
1128 * prj-pars.adb: new parameter Current_Dir
1130 * prj-part.ads, prj-part.adb:
1131 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1132 (Opt.Follow_Links_For_Dirs): New flag
1133 (Project_Path_Name_Of): Cache information returned by this routine as
1134 Locate_Regular_File is a costly routine. The code to output a log
1135 information and the effective call to Locate_Regular_File is now
1136 factorized into a routine (code clean-up).
1137 (Parse, Parse_Single_Project): new parameter Current_Dir
1138 When main project file cannot be found, indicate in the error
1139 message the project path that was used to do the search.
1141 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
1142 (Prj.Proc.Process*): new parameter Current_Dir
1144 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
1146 2007-12-13 Bob Duff <duff@adacore.com>
1148 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
1149 procedure to be called from the back end to check the
1150 No_Implicit_Dynamic_Code restriction.
1152 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1154 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
1155 Fixes another case where RTE_Available_Call was ignored instead of being
1159 * rtsfind.ads: Add new entries.
1161 2007-12-13 Robert Dewar <dewar@adacore.com>
1163 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
1164 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
1166 * scn.adb: Implement BOM recognition
1168 2007-12-13 Thomas Quinot <quinot@adacore.com>
1169 Ed Schonberg <schonberg@adacore.com>
1171 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
1172 subprogram body that acts as its own spec may not have a non-private
1173 WITH clause on a private sibling.
1174 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
1175 child unit is a renaming, create an implicit with_clause on that
1176 parent, and not on the unit it renames, to prevent visibility errors
1177 in the current unit.
1179 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1181 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
1182 renaming declaration, use the Slocs of the formal parameters from the
1183 declaration of the formal subprogram when creating the formal parameter
1184 entities in the renaming declaration.
1185 (Analyze_Formal_Type_Declaration): Change the placement of the error
1186 message concerning illegal known discriminants. It is now posted on the
1187 type rather than on the first discriminant. This change ensures early
1189 (Freeze_Subprogram_Body): If the generic subprogram is nested within
1190 the package body that contains the instance, do not generate an
1191 out-of-place freeze node for the enclosing package.
1192 (Collect_Previous_Instantiations): Ignore internal instantiations
1193 generated for formal packages.
1194 (Validate_Derived_Type_Instance): Add a check that when a formal
1195 derived type is Known_To_Have_Preelab_Init then the actual type must
1196 have preelaborable initialization, and issue an error when this
1197 condition is violated.
1199 2007-12-13 Robert Dewar <dewar@adacore.com>
1201 * s-imenne.adb, s-imenne.ads: New files.
1203 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
1204 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
1205 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
1206 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
1207 s-imgwch.ads: New calling sequence for Image routines to avoid sec
1210 2007-12-13 Javier Miranda <miranda@adacore.com>
1211 Ed Schonberg <schonberg@adacore.com>
1213 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
1214 generation of spurious error if parent is an interface type; caused
1215 because predefined primitive bodies will be generated later by
1217 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
1219 (Derive_Subprograms): Handle derivations of predefined primitives
1220 after all the user-defined primitives to ensure that they are
1221 found in proper order in instantiations.
1222 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
1223 of Related_Interface to Related_Type.
1224 (Record_Type_Declaration): Minor reordering of calls to decorate the
1225 Tag component because the entity must have set its Ekind attribute
1226 before setting its Is_Tag attribute.
1227 (Analyze_Subtype_Declaration): In the case of subtypes with
1228 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
1230 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1231 Ed Schonberg <schonberg@adacore.com>
1233 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
1234 statement to the list of contexts where a selected component with a
1235 concurrent tagged type prefix should yield a primitive operation.
1236 (Find_Primitive_Operation): Handle case of class-wide types.
1237 (Analyze_Overloaded_Selected_Component): If type of prefix is
1238 class-wide, use visible components of base type.
1239 (Resolve_Selected_Component): Ditto.
1240 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
1241 formal of a generic subprogram. find candidate interpretations by
1242 scanning the list of generic formal declarations.:
1243 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
1244 type from a limited_with_clause, and the full view is available, use it
1245 for subsequent semantic checks.
1246 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
1247 (Find_Primitive_Operation): New function.
1248 (Analyze_Overloaded_Selected_Component): insert explicit dereference
1249 only once if several interpretations of the prefix yield an access type.
1250 (Try_Object_Operation): Code and comment cleanup.
1251 (Analyze_Selected_Component): Reorder local variables. Minot comment and
1252 code reformatting. When the type of the prefix is tagged concurrent, a
1253 correct interpretation might be available in the primitive and
1254 class-wide operations of the type.
1256 2007-12-13 Robert Dewar <dewar@adacore.com>
1257 Ed Schonberg <schonberg@adacore.com>
1259 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
1260 renaming entry as subprogram using rename-as-body if subprogram spec
1262 (Use_One_Type): The clause is legal on an access type whose designated
1263 type has a limited view.
1264 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1265 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1266 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
1267 operation denoted by a selected component.
1268 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
1269 it can be an expression, possibly overloaded, that returns a task or
1272 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1273 Gary Dismukes <dismukes@adacore.com>
1275 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
1276 requeue statement is dispatching. Do not emit an error when the name is
1277 not an entry and the context is a dispatching select. Add code to
1278 perform subtype conformance between the formals of the current entry
1279 and those of the target interface primitive.
1280 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
1281 Timed_Entry_Call): Analyze the triggering statement as the first step of
1282 the processing. If this is a dispatching select, postpone the analysis
1283 of all select statements until the Expander transforms the select. This
1284 approach avoids generating duplicate identifiers after the Expander has
1285 replicated some of the select statements. In case the Expander is
1286 disabled, perform regular analysis.
1287 (Check_Triggering_Statement): New routine.
1288 (Analyze_Requeue): Exclude any interpretations that are not entries when
1289 checking overloaded names in a requeue. Also test type conformance for
1290 matching interpretations rather than requiring subtype conformance at
1291 that point to conform with the RM's resolution rule for requeues.
1293 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1295 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
1296 inherited operation is a defaulted tag-indeterminate call, and there is
1297 a statically tagged actual, use the static tag as a controlling actual
1298 for the defaulted actual.
1300 2007-12-13 Geert Bosch <bosch@adacore.com>
1302 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
1303 context, so do not call Check_Non_Static_Context.
1305 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1307 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
1308 whether formal E is an entity which may have parameters.
1310 2007-12-13 Bob Duff <duff@adacore.com>
1311 Javier Miranda <miranda@adacore.com>
1312 Robert Dewar <dewar@adacore.com>
1314 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
1315 (Set_Convention): New procedure to set the Convention flag, and in
1316 addition make sure the Favor_Top_Level flag is kept in sync (all
1317 foreign-language conventions require Favor_Top_Level = True).
1318 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
1320 (Collect_Interfaces_Info): Minor update to handle the two secondary
1321 dispatch tables. Update occurrence of Related_Interface to Related_Type.
1322 (Generate_Parent_Ref): Add parameter to specify entity to check
1323 (Is_Preelaborable_Expression): Allow the name of a discriminant to
1324 initialize a component of a type with preelaborable initialization.
1325 This includes the case of a discriminal used in such a context.
1326 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
1327 latest Ada 2005 rules about renaming and 'Access of
1328 discriminant-dependent components.
1329 (Check_Nested_Access): Add handling when there are no enclosing
1330 subprograms (e.g. case of a package body).
1331 (Find_Parameter_Type): Factor routine from several other compiler files.
1332 Remove routine from Find_Overridden_Synchronized_Primitive.
1334 2007-12-13 Thomas Quinot <quinot@adacore.com>
1336 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
1337 an invalid access to an uninitialized slot in the
1338 Source_File_Index_Table.
1340 2007-12-13 Thomas Quinot <quinot@adacore.com>
1342 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
1344 2007-12-13 Bob Duff <duff@adacore.com>
1346 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
1347 access-to-subprogram types in this package.
1349 2007-12-13 Olivier Hainque <hainque@adacore.com>
1351 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
1352 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
1353 Stack_Overlay_Address and document that we are using an internal
1355 (Byte_Size, Unsigned_32_Size): Remove, now useless.
1356 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
1357 consistently throughout the various implementation pieces.
1359 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
1360 overlay we are using to fill the stack area with patterns.
1361 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
1362 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
1363 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
1365 2007-12-13 Robert Dewar <dewar@adacore.com>
1367 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
1369 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1372 (Create_Task): Take into account tasks created by foreign threads.
1373 Code clean up: use constants instead of hard coded values.
1375 2007-12-13 Robert Dewar <dewar@adacore.com>
1377 * styleg.adb (Check_Comment): More liberal rules for comment placement
1379 2007-12-13 Olivier Hainque <hainque@adacore.com>
1381 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
1382 of Procedure Value instead of Frame Pointer as the invocation
1383 identifier associated with the instruction pointer in each traceback
1386 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
1387 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
1388 Pointer as the invocation identifier passed to tbk$symbolize.
1390 * s-traent-vms.ads, s-traent-vms.adb
1391 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
1392 Procedure Value instead of Frame Pointer as the invocation identifier
1393 passed to tbk$symbolize.
1395 2007-12-13 Robert Dewar <dewar@adacore.com>
1397 * tbuild.ads, tbuild.adb:
1398 Fix location of flag for unrecognized pragma message
1400 2007-12-13 Robert Dewar <dewar@adacore.com>
1402 * treepr.ads, treepr.adb: (pl): implement use of positive value
1405 2007-12-13 Robert Dewar <dewar@adacore.com>
1407 * xeinfo.adb: Remove warnings
1408 * xnmake.adb: Remove warnings
1409 * xsinfo.adb: Remove warnings
1410 * xtreeprs.adb: Remove warnings
1411 * xsnames.adb: Remove warnings
1413 * a-ngcoar.adb: Fix typo.
1414 * s-interr.adb: Minor reformatting
1415 * env.c: Minor reformatting.
1416 * g-bytswa.adb: Minor reformatting.
1417 * g-rannum.ads: Minor documentation improvements
1418 * s-tasinf-mingw.adb: Minor header fix
1419 * a-clrefi.adb: Minor reformatting
1420 * g-sttsne.ads: Minor documentation improvement
1421 * g-sttsne-locking.ads: Minor documentation improvement
1422 * g-soliop-solaris.ads: Minor documentation improvement
1423 * g-soliop-mingw.ads: Minor documentation improvement
1424 * g-soliop.ads: Minor documentation improvement
1425 * exp_aggr.ads: Minor reformatting
1426 * debug.adb: Add documentation for the gprbuild debug flags
1427 * exp_ch2.adb: Use Nkind_In to simplify code throughout
1428 * exp_pakd.adb: Minor reformatting
1430 * g-altive.ads, g-alleve.adb: Remove assertions.
1431 Add comment about minor differences between targets regarding
1432 floating-point operations.
1434 * g-thread.adb: Remove pragma unreferenced.
1435 * lib.ads: Minor reformatting
1436 * par-ch9.adb: Minor reformatting of error messages
1437 * sem_case.adb: Minor reformatting
1438 * s-fileio.adb: Minor reformattinng
1439 * s-vmexta.ads: Minor typo
1441 Take into account 'Success' value as per new GNAT warning.
1443 2007-12-13 Vincent Celier <celier@adacore.com>
1445 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
1448 2007-12-13 Robert Dewar <dewar@adacore.com>
1449 Bob Duff <duff@adacore.com>
1451 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
1452 Document that suffixes may be terminations of each others
1453 Add doc for -gnatw.a and -gnatw.A
1454 Document gnatbind -Wx switch
1455 Document BOM recognition
1456 Document pragma Implemented_By_Entry.
1459 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
1460 Add doc for pragma Unreferenced suppressing no entities referenced msg
1461 Add documentation of GNAT.Directory_Operations.Iteration
1462 Add documentation of GNAT.Random_Numbers
1463 Add documentation for pragma Shared.
1464 Correct documentation for Bit_Order
1465 Add documentation for the Pool_Address attribute.
1466 Fix and improve documentation of pragma machine_attribute.
1467 New pragma Fast_Math
1468 Document BOM recognition
1470 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
1471 Add /Wide_Character_Encoding for binder
1472 Add qualifier for the new gnatpp option --no-separate-loop-then
1474 2007-12-13 Matthew Heaney <heaney@adacore.com>
1476 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
1477 which generic formal operations are called for each operation.
1479 2007-12-13 Olivier Hainque <hainque@adacore.com>
1481 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
1482 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
1484 2007-12-13 Emmanuel Briot <briot@adacore.com>
1486 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
1487 Reference_Dir unless we actually need it.
1489 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
1490 Tristan Gingold <gingold@adacore.com>
1492 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
1495 a-calend-vms.adb: Remove pragma warning off and add pragma
1498 2007-12-13 Robert Dewar <dewar@adacore.com>
1500 * impunit.adb: Add entries for missing units
1502 * Makefile.rtl: Add new run-time units.
1504 * Make-lang.in: Update dependencies.
1506 2007-12-13 Bob Duff <duff@adacore.com>
1508 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
1509 types, set Can_Use_Internal_Rep appropriately, based on
1510 Always_Compatible_Rep_On_Target.
1512 2007-12-13 Gary Dismukes <dismukes@adacore.com>
1513 Arnaud Charlet <charlet@adacore.com>
1515 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
1516 it to the front end and setting the aamp_target environment variable
1517 to the switch's argument to ensure that gnaampbind and gnaamplink will
1518 take the specified library into account.
1519 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
1520 target, since the CIL compiler supports an "object" file (.il files).
1522 2007-12-13 Vincent Celier <celier@adacore.com>
1524 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
1525 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
1527 2007-12-13 Geert Bosch <bosch@adacore.com>
1529 * s-parame-vxworks.adb:
1530 Update comments to reflect usage of this package by Nucleus.
1532 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1534 * i-vxwork.ads: Kill new warning on Convention C, since changing the
1535 spec would break code.
1537 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
1539 * system-vxworks-alpha.ads: Removed.
1541 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
1543 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
1545 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
1548 * sem_ch3.adb (Designates_T): New function.
1549 (Mentions_T): Factor reusable part of the logic into Designates_T.
1550 Consider non-access parameters and access and non-access result.
1551 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
1552 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
1554 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
1556 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
1559 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
1560 the new implementation of target-specific calls.
1562 2007-12-07 Olivier Hainque <hainque@adacore.com>
1564 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
1565 the designated full view, only follow a second level Full_View link
1566 for Non_Limited_Views of from_limited_with references.
1568 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
1571 * sem_ch6.adb (Process_Formals): Prevent an access type formal
1572 to be initialized with an access to constant object.
1574 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
1575 when an access to constant is used to initialize an access
1579 * a-direct.adb (Compose): Containing_Directory can be an empty string.
1581 2007-12-07 Olivier Hainque <hainque@adacore.com>
1584 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
1585 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
1586 this is from an alignment clause on the GNAT entity.
1587 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
1588 to distinguish the case where we set it from the type's alignment.
1589 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
1590 whether this alignment was set from an explicit alignment clause.
1592 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
1594 * decl.c (make_packable_type): Revert last change.
1595 (gnat_to_gnu_field): Avoid setting size and position multiple times.
1596 * utils.c (finish_record_type): Retrieve the real name of the type.
1598 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
1600 * trans.c (lvalue_required_p): Take base node directly instead
1601 of its parent. Rename second parameter to 'gnu_type'.
1602 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
1603 <N_Slice>: Likewise.
1604 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
1605 Adjust calls to lvalue_required_p.
1607 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
1610 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
1611 parameters of an entry call.
1613 2007-12-03 Robert Dewar <dewar@adacore.com>
1614 Samuel Tardieu <sam@rfc1149.net>
1617 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
1618 of variables declared in a library-level package.
1620 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
1622 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
1623 of Empty_String'Unchecked_Access.
1625 * Makefile.in: Add support for sh4-linux.
1627 * system-linux-sh4.ads: New file.
1629 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
1632 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
1633 and its argument must not be free()ed.
1635 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
1637 * decl.c (make_packable_type): Retrieve the real name of the type.
1638 (maybe_pad_type): Simplify similar code.
1640 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
1643 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
1644 than an identifier is used after "case" in a variant_part.
1647 * par-ch4.adb (Is_Parameterless_Attribute): New map.
1648 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
1649 attribute name or not depending on the new map.
1651 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
1652 returning a string or a type will not be called with improper
1655 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
1657 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
1660 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
1661 Signal an error when attribute argument is a fixed-point value of
1665 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
1666 a derived ordinary fixed point type.
1668 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
1669 RM_Size when a Small clause is found.
1671 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
1674 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
1675 Pass 'false' for the new allocate_struct_function parameter.
1676 * utils.c (build_function_stub): Likewise.
1678 2007-11-25 Richard Guenther <rguenther@suse.de>
1680 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
1681 (gnat_poplevel): Likewise.
1683 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
1685 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
1686 strict alignment, no alignment clause and a known static size, cap
1687 the type alignment to the greatest power of 2 factor of the size.
1688 (gnat_to_gnu_field): If the field has a component clause, is aliased
1689 or of a type with strict alignment, require that its size be equal to
1691 (validate_size): Use the type size as the minimum size for a type with
1694 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
1696 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
1697 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
1698 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
1699 Use 'Access instead of 'Unchecked_Access in second and third
1700 arguments of pthread_sigmask.
1702 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
1704 * decl.c (ceil_alignment): New function.
1705 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
1706 (make_packable_type): Likewise.
1708 2007-11-22 Olivier Hainque <hainque@adacore.com>
1710 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
1711 to fit in 80 columns.
1713 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
1715 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
1716 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
1718 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
1721 * misc.c (gnat_adjust_rli): Delete.
1722 (gnat_init): Do not initialize the translation code here.
1723 Do not call set_lang_adjust_rli.
1724 * trans.c (init_code_table): Make static.
1725 (gnat_init_stmt_group): Delete.
1726 (gigi): Initialize the translation code entirely here.
1727 Emit debug info for the common types here instead of...
1728 * utils.c (gnat_init_decl_processing): ...here.
1729 * gigi.h (init_code_table): Delete.
1730 (gnat_init_stmt_group): Likewise.
1732 2007-11-16 Olivier Hainque <hainque@adacore.com>
1734 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
1735 retrieving an allocator return value from a super-aligned address from
1737 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
1738 expect a super-aligned address for a fat or thin pointer.
1740 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
1742 * trans.c (call_to_gnu): Always set the source location on the call
1743 expression. If the function returns-by-target, also set it on the
1746 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
1748 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
1749 sections of non-supported Interix target.
1751 * s-osinte-interix.ads: Removed.
1753 * i-cstrin.ads (chars_ptr): Make it a C convention type.
1755 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
1757 * a-tasatt.adb: Add a comment at the beginning of the package
1758 explaining why in general 'Unchecked_Access must be used instead
1761 * sem_prag.adb (Process_Convention): Move the test for the
1762 entity on which the Convention pragma applies down to also
1763 forbid pragma Convention on enumeration literals reached
1766 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
1768 * a-tasatt.adb: Revert previous change for this file as it will
1769 generate an error when this package is instantiated from a
1772 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
1774 * a-tasatt.adb: Type Wrapper should be declared in comment instead
1775 of already declared type Node_Access.
1776 Use 'Access instead of 'Unchecked_Access when applicable. Local
1777 lifetime is the one of the package.
1778 (Set_Value): W is allocated on the heap.
1780 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
1782 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
1784 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
1787 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
1789 (elaboration code): Timer_Queue lifetime is the one of the
1792 * tracebak.c (i386 alternative): Remove useless comparaison
1793 which is always false; LOWEST_ADDRESS is 0 and is never greater
1794 than an unsigned integer.
1796 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
1797 embedded check for "Ada_Version >= Ada_05".
1799 2007-11-07 Olivier Hainque <hainque@adacore.com>
1801 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
1802 craft and expand comment.
1804 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
1806 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
1808 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
1810 * misc.c (gnat_handle_option): Replace call to abort with
1811 call to gcc_unreachable.
1812 (gnat_init): Likewise.
1813 (gnat_expand_expr): Likewise.
1814 (fp_prec_to_size): Likewise.
1815 (fp_size_to_prec): Likewise.
1817 2007-10-23 Richard Guenther <rguenther@suse.de>
1820 * tracebak.c: #undef abort after including system.h.
1822 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
1824 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
1825 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
1827 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
1829 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
1831 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
1832 Set the protection status of the guard page based on the value of On.
1834 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
1836 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
1837 (Exit_Task): Pass False to Hide_Yellow_Zone.
1839 2007-10-15 Robert Dewar <dewar@adacore.com>
1841 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
1842 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
1843 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
1844 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
1845 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
1846 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
1847 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
1848 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
1849 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
1850 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
1851 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
1852 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
1853 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
1854 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
1855 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
1856 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
1858 Add Unreferenced and Warnings (Off) pragmas for cases of
1859 variables modified calls where they are IN OUT or OUT parameters and
1860 the resulting values are not subsequently referenced. In a few cases,
1861 we also remove redundant code found by the new warnings.
1863 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
1864 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
1865 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
1866 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
1867 warning controlled by -gnatw.o that warns on cases of out parameter
1868 values being ignored.
1870 2007-10-15 Geert Bosch <bosch@adacore.com>
1872 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
1874 * expect.c: Initial port to arm-mentor-nucleus.
1875 Use kill for __gnat_kill() on VMS.
1877 2007-10-15 Emmanuel Briot <briot@adacore.com>
1879 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
1881 (Xref_Record): Change type for Line, since in the case of a reference to
1882 a predefined entity (as happens for array index types), the line is set
1884 Add support for parsing multiple array index types info, or
1885 multiple inherited interfaces info. This information cannot be stored
1886 in Xref_Entity_Record, which only supports a single instance of Tref_*,
1887 and is therefore stored in the list of references instead. It has a
1888 special treatement later on in tools that use this information.
1890 2007-10-15 Tristan Gingold <gingold@adacore.com>
1892 * debug.adb: Document use of -gnatd.a and -gnatd.I
1894 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
1896 2007-10-15 Javier Miranda <miranda@adacore.com>
1898 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
1899 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
1900 care of access to class-wide interface types plus removal of bizarre
1901 conversion of tagged object to access type (reported by Gary
1902 Dismukes). After this patch there is no need to perform any
1903 additional management on these nodes in Expand_Interface_Actuals.
1905 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
1906 that handles use of 'Access and 'Unchecked_Access applied to
1907 actuals covering interface types. Such code is now
1908 centralized in Expand_N_Attribute_Reference.
1910 2007-10-15 Ed Schonberg <schonberg@adacore.com>
1912 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
1913 of tagged types whose ultimate ancestor is a CPP type.
1914 (Freeze_Array_Type): For a packed array type, generate an initialization
1915 procedure if the type is public, to handle properly a client that
1916 specifies Normalize_Scalars.
1918 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
1920 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
1921 inside a generic body, retrieve the full view of the entry family
1922 discrete subtype if available.
1924 2007-10-15 Thomas Quinot <quinot@adacore.com>
1926 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1927 attempt to generate stubs for hidden primitive operations.
1929 2007-10-15 Vincent Celier <celier@adacore.com>
1931 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
1932 returning None, used when there is no platform specific body for
1935 2007-10-15 Bob Duff <duff@adacore.com>
1937 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
1938 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
1939 the generic Heap_Sort_G, in order to avoid trampolines.
1941 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
1942 Jose Ruiz <ruiz@adacore.com>
1944 * vx_stack_info.c: New file.
1946 * i-forbla-unimplemented.ads: New file.
1948 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
1949 for unsupported configurations; use it on VMS targets instead of the
1951 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
1952 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
1953 used by VxWorks targets to have access to task-specific data and be
1954 able to extract the stack boundaries for stack checking.
1955 Use system-vms-ia64.ads on ivms.
1957 * Make-lang.in: Update dependencies.
1959 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
1962 2007-10-15 Vincent Celier <celier@adacore.com>
1964 * snames.adb, snames.ads: Add new standard name runtime_library_dir
1966 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
1968 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
1970 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
1971 the source is unknown.
1973 * prj-ext.adb: Spelling error fix
1975 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
1976 95 reserved word in its name.
1977 (Process_Project_Level_Array_Attributes): Process new attribute
1978 Runtime_Library_Dir.
1980 * prj-part.adb (Parse_Single_Project): Do not check the name of the
1981 config project against the user project names.
1983 * prj-proc.adb (Expression): In multi-language mode, indexes that do
1984 not include a dot are always case insensitive.
1985 (Process_Declarative_Items): Ditto
1986 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
1989 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
1990 True, compare both indexes in lower case.
1992 2007-10-15 Robert Dewar <dewar@adacore.com>
1994 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
1996 2007-10-15 Gary Dismukes <dismukes@adacore.com>
1998 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
1999 association for an access component, add an association with null as
2000 the expression. Remove testing for array subtypes and the setting in
2001 that case of Ctyp to the array component type, which prevented proper
2002 inclusion of an association for null-initialized arrays. Collapse
2003 condition that tests for array subtypes into just a test of
2004 Is_Partially_Initialized_Type (which already covers arrays anyway).
2006 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2008 * sem_ch12.adb: Minor code reformatting.
2009 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
2010 find the parent package which may have been hidden by local
2013 2007-10-15 Gary Dismukes <dismukes@adacore.com>
2015 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
2016 flag of derived concurrent types, taking into account the flag setting
2017 on the parent subtype and any new set of discriminants.
2019 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2021 * sem_ch4.adb: Minor code and comment reformatting.
2022 (Analyze_Allocator): When the designated type of an unconstrained
2023 allocator is a record with unknown discriminants or an array with
2024 unknown range bounds, emit a detailed error message depending on the
2025 compilation mode and whether the designated type is limited.
2027 2007-10-15 Tristan Gingold <gingold@adacore.com>
2029 * system-vms-ia64.ads: New file.
2031 * system-vms_64.ads: Minor comment fix.
2033 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2035 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
2036 body generated for a function with a controlling result that is a null
2037 extension, discard the generated body in favor of the current explicit
2040 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2042 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
2043 examining its original form, to handle properly operator calls that
2044 have been rewritten.
2046 2007-10-15 Olivier Hainque <hainque@adacore.com>
2048 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
2049 instead of a procedure value in each traceback entry.
2051 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
2052 instead of procedure value to TBK$SYMBOLIZE.
2054 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
2056 (TB_Entry_For): Account for the PV/FP renaming.
2058 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
2060 (Null_TB_Entry): Account for change of component name.
2061 (PV_For): Rename as FP_For.
2063 2007-10-15 Tristan Gingold <gingold@adacore.com>
2065 * trans.c (gnat_to_gnu): Remove the padding structure more often.
2066 This optimize assignment to over-aligned record.
2068 2007-10-15 Emmanuel Briot <briot@adacore.com>
2070 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
2073 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
2074 type, for dispatching calls.
2076 2007-10-15 Vincent Celier <celier@adacore.com>
2077 Robert Dewar <dewar@adacore.com>
2079 * gnat_ugn.texi: Add documentation for switches --version and --help
2080 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
2081 gnatxref, gnatfind, gnatls, and gnatclean.
2083 Mention attribute Excluded_Source_Dirs
2084 Replace obsolescent attribute Locally_Removed_Files with attribute
2085 Excluded_Source_Files.
2086 Improve documentation of -u (gnatbind)
2087 Document how to do reliable stack checking for the environmental task
2090 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
2091 Document attribute Excluded_Source_Files and indicate that attribute
2092 Locally_Removed_Files is obsolescent.
2094 2007-10-15 Thomas Quinot <quinot@adacore.com>
2096 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
2099 Update documentation to note that OpenVMS 8.3 or later must be used
2100 to generate g-soccon-vms.ads.
2102 * atree.adb: Add ??? comment
2104 * exp_util.adb: Minor reformatting.
2105 Add ??? comment in Kill_Dead_Code.
2107 2007-10-15 Robert Dewar <dewar@adacore.com>
2109 * errout.ads: Comment clarification
2111 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
2112 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
2114 * lib.ads: Comment update
2116 * init.c: Minor reformatting.
2118 * sem_attr.adb: Minor formatting
2120 * osint-b.ads: Minor reformatting
2122 * sem_ch9.adb: Implement -gnatd.I switch
2124 * g-comlin.adb: (Start): Fix handling of empty command line.
2126 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
2127 even when -rules follows the -cargs section.
2129 2007-10-08 Ollie Wild <aaw@google.com>
2131 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
2133 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
2135 (gnat_eh_runtime_type): Removed.
2136 (gnat_return_tree): New function.
2138 2007-10-08 Ben Elliston <bje@au.ibm.com>
2142 2007-08-31 Ben Elliston <bje@au.ibm.com>
2144 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
2145 when compiling for powerpc64-*-linux.
2146 * system-linux-ppc64.ads: New file.
2148 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
2150 Mapped location support
2151 * back_end.adb (Call_Back_End): Pass information about source
2152 files instead of units to gigi.
2153 * gigi.h (struct File_Info_Type): New.
2154 (gigi): Rename and change type of number_units parameter, change
2155 type of file_info_ptr parameter.
2156 * trans.c (number_files): New global variable.
2157 (gigi): Rename and change type of number_units parameter, change
2158 type of file_info_ptr parameter.
2159 If mapped location support is enabled, create the isomorphic mapping
2160 between source files and line maps.
2161 (Sloc_to_locus): If mapped location support is enabled, translate
2162 source location into mapped location.
2163 (annotate_with_node): Rename into set_expr_location_from_node.
2164 Call set_expr_location instead of annotate_with_locus.
2165 (Pragma_to_gnu): Adjust for above change.
2166 (Loop_Statement_to_gnu): Likewise.
2167 (call_to_gnu): Likewise.
2168 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2169 (gnat_to_gnu): Likewise.
2170 (add_stmt_with_node): Likewise.
2171 (add_cleanup): Likewise.
2172 * utils.c (gnat_init_decl_processing): Do not set input_line.
2174 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2176 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
2177 (Applicable_Use): Emit a warning when a package tries to use itself.
2178 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
2179 is already in use or the package where it is declared is in use or is
2180 declared in the current package.
2181 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
2183 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
2184 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
2185 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
2187 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2189 * a-calend-vms.adb, a-calend.adb:
2190 Add a section on leap seconds control along with two entities used to
2191 enable and disable leap seconds support. The array Leap_Second_Times is
2192 now constant and contains hard time values pre-generated. Remove
2193 all elaboration code used to populate the table of leap seconds.
2196 Add entity Leap_Seconds_Support to the list of global run-time variables
2197 along with a comment on its usage and values.
2198 (Gen_Adainit_Ada): Add code to generate the declaration and import of
2199 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
2200 or one (enabled) depending on the presence of binder switch "-y".
2201 (Gen_Adainit_C): Add code to generate the declaration of external int
2202 __gl_leap_seconds_support. Set is value to zero (disabled) or one
2203 (enabled) depending on the presence of binder switch "-y".
2205 * init.c: Add __gl_leap_seconds_support to the list of global values
2206 computed by the binder.
2208 2007-09-26 Jerome Guitton <guitton@adacore.com>
2210 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2211 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
2212 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2213 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
2215 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
2217 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
2218 function which can be called by the debugger to interrupt the tasks of
2219 an Ada application asynchronously, as needed on VxWorks.
2220 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
2222 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
2223 renamed from Stop_All_Tasks. Update comments.
2224 (Stop_All_tasks): New function declaration.
2226 2007-09-26 Olivier Hainque <hainque@adacore.com>
2228 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
2229 #include <utime.h> and #define GCC_RESOURCE_H before
2230 #include <sys/wait.h>.
2231 Add more protections in __gnat_translate_vms.
2233 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
2234 #include <sys/wait.h>.
2236 2007-09-26 Thomas Quinot <quinot@adacore.com>
2237 Sergey Rybin <rybin@adacore.com>
2239 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
2241 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2244 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2246 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2249 * sem_dist.ads: Minor comment fix
2251 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2253 2007-09-26 Javier Miranda <miranda@adacore.com>
2254 Eric Botcazou <ebotcazou@adacore.com>
2257 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
2258 indirection added to the HT_Link component of the TSD. This is required
2259 to statically allocate the TSD.
2262 Minor reordering of the declarations in the private part. Required to
2263 add a level of indirection to the contents of the TSD component HT_Link.
2264 This is required to statically allocate the TSD.
2266 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
2267 Is_Statically_Allocated set from constant objects.
2268 Do not make exported constants created by the compiler volatile.
2269 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
2272 * trans.c (Identifier_to_gnu): For constants, unshare initializers
2273 before returning them.
2275 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
2276 public part of the package.
2277 (Make_DT): Move HT_Link component out of the TSD record. For this
2278 purpose Make_DT now declares a separate object that stores the
2279 HT_Link value, and initializes the TSD component with the address
2280 of this new object. The addition of this level of indirection is
2281 required to statically allocate the TSD because the TSD cannot
2282 have variable components.
2283 (Expand_Interface_Conversion): Improve the expanded code.
2284 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
2286 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
2287 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
2288 if we are building static dispatch tables then we must not generate
2289 extra code to register the primitive because the dispatch table will
2290 be built at the end of the library package; otherwise we notify that
2291 we cannot build the static dispatch table.
2293 2007-09-26 Robert Dewar <dewar@adacore.com>
2295 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
2298 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
2299 (Analyze_Record_Representation_Clause): Suppress junk warning for
2300 missing component clause.
2301 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
2302 tests for controlled type overlay to composites with controlled
2304 (Analyze_Record_Representation_Clause): Add reference for component name
2306 2007-09-26 Javier Miranda <miranda@adacore.com>
2307 Gary Dismukes <dismukes@adacore.com>
2309 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
2310 for thunks associated with interface types.
2312 * einfo.ads: Improve documentatation of Is_Internal
2313 (Is_Thunk): New attribute applicable to subprograms. True for thunks
2314 associated with interface types.
2315 Extensive comment fixes regarding flags that appear in all entities. The
2316 documentation is now consistent for all such flags (there were a number
2317 of errors in the documentation in this regard).
2319 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
2321 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
2322 of these procedures are passed a function call that already has
2323 build-in-place actuals (testing new flag
2324 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
2325 the case where processing continues.
2326 (Expand_Call): If the call is generated from a thunk body then we
2327 propagate the extra actuals associated with the accessibility
2328 level of the access type actuals.
2330 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
2331 of each extra formal of a protected operation to reference the
2332 corresponding extra formal of the subprogram denoted by the
2333 operation's Protected_Body_Subprogram.
2335 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
2336 N_Function_Call nodes.
2338 2007-09-26 Robert Dewar <dewar@adacore.com>
2340 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
2342 * debug.adb: Add d.s flag.
2344 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2346 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
2347 debug variable so that it won't be initialized when pragma
2348 Initialize_Scalars is in effect.
2350 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2352 * freeze.adb (Freeze_Entity): Remove check for preelaborable
2353 initialization of a full view. This is moved to
2354 Analyze_Package_Specification.
2356 * sem_ch7.adb (Analyze_Package_Specification): Add check for
2357 preelaborable initialization of a full view in entity loop.
2358 (Uninstall_Declarations): If entity is a use-visible compilation unit,
2359 its child units are use-visible only if they are visible child units.
2361 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
2362 whether an expression can be used within a type declaration that
2363 requires preelaborable init.
2364 (Check_Components): Replace inline code that does partial checking for
2365 preelaborable default expressions with call to
2366 Is_Preelaborable_Expression.
2367 (Has_Preelaborable_Initialization): In the case of a generic actual
2368 subtype, (that is, Is_Generic_Actual is True), return the result of
2369 applying Has_Preelaborable_Initialization to the generic actual's base
2372 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2374 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
2375 call to Jan_1_Day _Of_Week to optimize its performance.
2376 (Is_Leap): Move the routine to the scope of Week_In_Year.
2377 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
2378 weekday on which January 1 falls of Year - 1 and Year + 1. This function
2379 avoids calling Time_Of and Split, thus making it more efficent.
2380 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
2382 * g-calend.ads (Week_In_Year): Change comment to reflect new
2385 2007-09-26 Emmanuel Briot <briot@adacore.com>
2387 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
2388 Command_Line): New types
2389 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
2390 support for defining how switches can be grouped on a command line (as
2391 is the case for -gnatw... for GNAT), and how simple switches can be
2392 used as aliases for more complex switches (-gnatwa is same as
2394 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
2395 (Start, Current_*): New subprograms
2396 Added support for parsing an array of strings in addition to the real
2398 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
2399 be moved from the body to the private part of the spec.
2400 (*): All subprograms now have an extra parameter with default value to
2401 specify which parser should be used. For backward compatibility, it
2402 defaults to parsing the command line of the application. They were also
2403 modified to properly handle cases where each of the argument does not
2404 start at index 1 (which is always true for Ada.Command_Line, but not
2405 when processing any Argument_List).
2406 (Free): New subprogram
2407 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
2408 Argument): New subprograms
2409 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
2410 special characters like ':', '=',... are now handled in a single place,
2411 which makes the code more extensible eventually.
2412 (Getopt, Full_Switch): When the switch was returned as part of the
2413 special character '*', make sure it is prepended by the switch character
2414 ('-' in general), so that the application knows whether "foo" or "-foo"
2415 was specified on the command line.
2417 2007-09-26 Florian Villoing <villoing@adacore.com>
2419 * g-dirope.adb (Remove_Dir): In case we are removing directories
2420 recursively, make sure that if an exception is raised during the
2421 processing, the current working directory is reset to its initial
2422 value before propagating the exception.
2424 2007-09-26 Vincent Celier <celier@adacore.com>
2426 * gnatbind.adb: If there are several ALI files specified and there is
2427 a main program to bind, the first ALI is expected to contain the main
2428 subprogram and the names of the binder generated files will be derived
2429 from the first ALI file name.
2430 (Gnatbind): Fix insertion character in invocation of Error_Msg
2432 2007-09-26 Vincent Celier <celier@adacore.com>
2434 * gnatcmd.adb (Check_Files): Do not include sources that have been
2435 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
2437 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2439 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
2440 information about each of its index types, following the type
2441 reference for its component type.
2443 2007-09-26 Vincent Celier <celier@adacore.com>
2445 * make.adb: (Kill): New procedure (__gnat_kill imported)
2446 (Running_Compile, Outstanding_Compiles): Global variables that
2447 were previously local to procedure Compile_Sources.
2448 (Sigint_Intercepted): Send signal SIGINT to all outstanding
2449 compilation processes.
2451 (Gnatmake): If project files are used, create the mapping of all the
2452 sources, so that the correct paths will be found.
2454 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
2456 2007-09-26 Vincent Celier <celier@adacore.com>
2458 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
2460 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
2461 Replace components Compiler_Min_Options and Binder_Min_Options with
2462 Compiler_Required_Switches and Binder_Required_Switches in record
2464 Remove components Default_Language and Config in Project_Tree_Data,
2467 * prj-attr.adb: New attributes Required_Switches (<language>) in
2468 packages Compiler and Binder.
2470 * prj-nmsc.adb: Major rewrite of the processing of configuration
2471 attributes for gprbuild. No impact on GNAT tools.
2473 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
2474 process configuration attributes: this is done in Prj.Nmsc.Check.
2475 (Recursive_Process): Make a full copy of packages inherited from project
2476 being extended, instead of a shallow copy.
2477 (Process_Project_Tree_Phase_1): New procedure
2478 (Process_Project_Tree_Phase_1): New procedure
2479 (Process): Implementation now uses the two new procedures
2481 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
2482 from the project config, not the tree config that no longer exists.
2484 2007-09-26 Vincent Celier <celier@adacore.com>
2486 * Make-lang.in: Update dependencies..
2488 2007-09-26 Vincent Celier <celier@adacore.com>
2490 * osint.adb, osint.ads: Minor reformatting
2492 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
2494 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2496 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
2497 message to cite use of <> in aggregate component associations rather
2498 than wrongly indicating use of limited aggregates.
2500 2007-09-26 Robert Dewar <dewar@adacore.com>
2502 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
2505 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2507 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
2508 ancestor of the derived type, the operations are inherited from the
2509 primary dispatch table of the parent.
2510 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
2511 when the context is an explicit type conversion.
2513 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2515 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
2516 rule for qualified expressions properly, to detect improper conversions
2517 and resolve some cases of overloading.
2519 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2521 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
2522 proper kind of reference to the primitive operation, for better source
2524 (Valid_Conversion): A tagged conversion is legal if both operands are
2527 2007-09-26 Robert Dewar <dewar@adacore.com>
2529 * sem_warn.adb (Check_References): Catch more cases of unreferenced
2532 2007-09-26 Vincent Celier <celier@adacore.com>
2534 * snames.adb, snames.ads: Change Include_Option to Include_Switches
2536 2007-09-26 Robert Dewar <dewar@adacore.com>
2538 * s-wchstw.adb: provide messages for run time unit exceptions
2540 * a-witeio.adb: Minor reformatting
2542 * exp_ch13.adb: Minor reformatting
2544 2007-09-26 Sergey Rybin <rybin@adacore.com>
2546 * vms_data.ads: Revise gnatmetric qualifiers.
2547 Add qualified for the new gnatbind option '-y'
2549 * gnat_ugn.texi: Revise the gnatmetric section.
2550 Add entry for new gnatbind option '-y'.
2552 * gnat_rm.texi: Minor spelling correction.
2553 Document restriction on overlaying controlled types
2555 2007-09-26 Vincent Celier <celier@adacore.com>
2557 * makegpr.adb (Link_Executables): Do not fail when the root project has
2558 no sources, but is an extending project.
2560 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
2562 * trans.c: Fix misplaced #define.
2564 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2566 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
2567 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
2569 2007-09-21 Olivier Hainque <hainque@adacore.com>
2571 * utils.c (type_for_nonaliased_component_p): Return false for
2572 all AGGREGATE_TYPEs.
2574 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2576 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
2577 object covered by 13.3(19) volatile.
2579 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
2583 * utils.c (unchecked_convert): Use a subtype as the intermediate type
2584 in the special VIEW_CONVERT_EXPR case.
2586 2007-09-12 Robert Dewar <dewar@adacore.com>
2588 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
2590 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
2591 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
2592 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
2593 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
2594 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
2595 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
2596 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
2597 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
2598 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
2599 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
2600 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
2601 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
2602 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
2603 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
2604 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
2605 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
2606 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
2607 pragma Compiler_Unit and adds it to relevant library units.
2609 2007-09-12 Ed Schonberg <schonberg@adacore.com>
2611 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
2612 a box need not correspond to any component.
2614 2007-09-12 Robert Dewar <dewar@adacore.com>
2616 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
2617 the tasking version of the Ada run time when foreign threads are
2618 present and there are no explicit Ada tasks or tasking constructs.
2620 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
2622 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
2624 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
2625 the usage of switch -y.
2627 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
2628 when switch -y is present.
2630 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
2631 leap seconds in Ada.Calendar and its children.
2633 2007-09-12 Jose Ruiz <ruiz@adacore.com>
2635 * a-extiti.ads (Timer): The discriminant is a "not null access
2636 constant" in the Reference Manual.
2637 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
2639 2007-09-12 Robert Dewar <dewar@adacore.com>
2641 * a-swuwha.adb: Remove junk RM header
2643 2007-09-12 Vincent Celier <celier@adacore.com>
2645 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
2648 * g-bytswa.ads: Minor reformatting
2650 2007-09-12 Thomas Quinot <quinot@adacore.com>
2652 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
2653 Add new constant Thread_Blocking_IO, always True by default, set False
2654 on a per-runtime basis.
2655 (Need_Netdb_Buffer): New constant.
2657 2007-09-12 Arnaud Charlet <charlet@adacore.com>
2659 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
2660 Added renames for corresponding functions in System.Partition_Interface.
2662 2007-09-12 Doug Rupp <rupp@adacore.com>
2664 * Makefile.in: Remove VMS specific System.CRTL packages which are no
2667 * s-crtl-vms64.ads: Removed.
2669 2007-09-12 Olivier Hainque <hainque@adacore.com>
2671 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
2672 with discriminant constraints, generalize the code for BIT_FIELDs
2673 to PACKED fields of constant size and propagate DECL_PACKED.
2675 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
2677 * decl.c (array_type_has_nonaliased_component): New predicate.
2678 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
2679 set the TYPE_NONALIASED_COMPONENT flag on the type.
2680 <E_Array_Subtype>: Likewise.
2681 * gigi.h (type_for_nonaliased_component_p): Declare.
2682 * utils.c (type_for_nonaliased_component_p): New predicate.
2683 (create_field_decl): Invoke the above predicate to set the
2684 DECL_NONADDRESSABLE_P flag on the field.
2686 2007-09-11 Javier Miranda <miranda@adacore.com>
2688 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
2689 in library level record type entities if we are generating statically
2690 allocated dispatch tables.
2692 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
2693 importing/exporting the _tag declaration by new code
2694 importing/exporting the dispatch table wrapper. This change allows us
2695 to statically allocate of the TSD.
2696 (Make_DT.Export_DT): New procedure.
2697 (Build_Static_DT): New function.
2698 (Has_DT): New function.
2700 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
2701 True_Constant and Current_Value. Required to statically
2702 allocate the dispatch tables.
2703 (Check_Allocator): Make function iterative instead of recursive.
2704 Also return inner allocator node, when present, so that we do not have
2705 to look for that node again in the caller.
2707 2007-09-11 Jan Hubicka <jh@suse.cz>
2709 * misc.c (gnat_expand_body): Kill.
2710 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
2712 2007-09-10 Robert Dewar <dewar@adacore.com>
2714 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
2715 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2716 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2717 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
2718 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
2719 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
2720 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
2721 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
2722 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
2723 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
2724 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
2725 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
2726 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
2727 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
2728 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
2729 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
2730 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
2731 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
2732 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
2733 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
2734 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
2735 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
2736 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
2737 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
2738 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
2739 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
2740 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
2741 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
2742 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
2743 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
2744 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
2745 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
2746 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
2747 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
2748 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
2749 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
2750 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
2751 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
2752 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
2753 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
2754 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
2755 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
2756 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
2757 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
2758 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
2759 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
2760 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
2761 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
2762 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
2763 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
2764 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
2765 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
2766 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
2767 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
2768 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
2769 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
2770 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
2771 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
2772 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2773 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
2774 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
2775 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
2776 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
2777 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
2778 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
2779 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
2780 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
2781 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
2782 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
2783 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
2784 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
2785 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
2786 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
2787 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
2788 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
2789 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
2790 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
2791 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
2792 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
2793 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
2794 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
2795 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
2796 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
2798 2007-09-10 Emmanuel Briot <briot@adacore.com>
2800 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
2803 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
2805 * adaint.c (__gnat_translate_vms): new function.
2807 2007-09-10 Gary Dismukes <dismukes@adacore.com>
2808 Thomas Quinot <quinot@adacore.com>
2810 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
2811 create an abstract subprogram in the case of 'Input. For 'Output we now
2812 create a real spec/body when the type is abstract, since it can
2813 potentially be called.
2814 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
2815 body for 'Output when the type is abstract (only the creation of the
2816 body for 'Input is excluded when the type is abstract).
2817 (Stream_Operation_OK): Add an additional condition in the return
2818 statement, so that False will be returned for TTS_Stream_Input if the
2819 associated tagged type is an abstract extension. Add comments for
2821 (Expand_N_Object_Declaration): For the case of a shared passive
2822 variable, insert init proc call only after the shared variable
2823 procedures have been processed, because the IP call needs to undergo
2824 shared passive variable reference expansion, which requires these
2825 procedures to be available (and elaborated).
2827 2007-09-10 Vincent Celier <celier@adacore.com>
2829 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
2830 parameter Runtime_Project.
2832 2007-09-10 Ed Schonberg <schonberg@adacore.com>
2834 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
2835 given a box association, the type of the component is discriminated,
2836 and the value of the discriminant is the discriminant of the enclosing
2837 type, retrieve its value from the aggregate itself, where it must have
2840 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
2841 to remove other spurious ambiguities on arithmetic operations involving
2842 literals and addresses, on systems where Address is a visible integer
2843 type, when the operator is called in functional notation.
2844 (Try_Primitive_Operation): Within an instance, a call in prefixed form
2845 is legal when the types match, even if the operation is currently
2848 2007-09-10 Ed Schonberg <schonberg@adacore.com>
2850 * sem_ch12.adb (Build_Local_Package): A formal package with no
2851 associations is legal if all formals have defaults. It is not
2852 equivalent to a formal declared with a box.
2854 2007-09-10 Sergey Rybin <rybin@adacore.com>
2856 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
2858 2007-09-10 Sergey Rybin <rybin@adacore.com>
2860 * gnat_ugn.texi: Add description of the new '-lratio' option
2861 Update 7.3.1 section about availability of the feature.
2863 2007-09-10 Thomas Quinot <quinot@adacore.com>
2865 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
2868 2007-09-10 Olivier Hainque <hainque@adacore.com>
2870 * Makefile.in: (mips-irix section): Activate build of libgmem.
2872 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
2874 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
2877 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
2879 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
2880 a debug renaming declaration specially.
2882 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
2884 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
2885 which a constant renaming is treated as a normal object declaration.
2886 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
2887 the N_Indexed_Component case.
2888 <N_Indexed_Component>: Fall through to above case.
2889 <N_Object_Renaming_Declaration>: Return true for all composite types.
2891 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
2893 * decl.c (make_packable_type): If the new type has been given BLKmode,
2894 try again to get an integral mode for it.
2896 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
2898 Re-apply accidentally reverted change:
2900 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
2902 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
2903 get_action_description_for): Replace _Unwind_Word with _uleb128_t
2904 and _Unwind_SWord with _sleb128_t.
2906 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
2908 * trans.c (convert_with_check): Update call to real_2expN.
2910 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
2912 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
2913 * utils.c (end_subprog_body): Likewise.
2915 2007-09-03 Nick Clifton <nickc@redhat.com>
2917 * Make-lang.in: Change copyright header to refer to version 3 of
2918 the GNU General Public License and to point readers at the
2919 COPYING3 file and the FSF's license web page.
2920 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
2921 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
2922 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
2923 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
2926 2007-08-31 Vincent Celier <celier@adacore.com>
2930 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
2931 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
2932 (Check_Version_And_Help): New procedure in package Switch to process
2933 switches --version and --help.
2934 Use Check_Version_And_Help in GNAT tools
2937 (Compile_Sources): Make sure that sources that are "excluded" are not
2939 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
2940 project file is used.
2941 (Version_Switch): Remove, moved to Switch
2942 (Help_Switch): Remove, moved to Switch
2943 (Display_Version): Remove, moved to Switch
2945 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
2946 package Switch to process switches --version and --help.
2947 (Display_Version): New procedure
2949 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
2951 2007-08-31 Javier Miranda <miranda@adacore.com>
2953 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
2956 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2958 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
2959 (Mark_Non_Null): If the node for which we just generated an access check
2960 is a reference to an *in* parameter and the reference appears in the
2961 declarative part of a subprogram body, mark the node as known non null.
2963 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2965 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
2966 structure of E_Exception to reflect the new flag.
2967 (Is_Raised, Set_Is_Raised): New inlined routines.
2968 Update the usage of available flag to reflect the addition of Is_Raised.
2969 (Is_Raised, Set_Is_Raised): Bodies of new routines.
2970 (Write_Entity_Flags): Write the status of flag Is_Raised.
2971 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
2972 spurious ambiguities when integer literals appear in the context of an
2973 address type that is a visible integer type.
2975 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
2976 exceptions never being raised.
2977 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
2980 2007-08-31 Javier Miranda <miranda@adacore.com>
2982 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
2983 statement when compiling under restriction No_Exceptions_Proparation.
2985 2007-08-31 Ed Schonberg <schonberg@adacore.com>
2987 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
2988 initialization aggregate for the type, generate itype references for
2989 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
2991 2007-08-31 Gary Dismukes <dismukes@adacore.com>
2993 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
2994 library-level package renaming, pass the declaration associated with
2995 the renaming's special debug variable to Qualify_Entity_Names to ensure
2996 that its encoded name is properly qualified.
2998 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
2999 occurring in the list of entities to qualify, and do not attempt to
3000 traverse an entity list in that case. Variables associated with
3001 ` library-level package renamings can now occur in the table.
3003 * exp_dbug.ads: Revise documentation of the encoding for renaming
3006 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3008 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
3009 access type points to an unconstrained array.
3011 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3013 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
3016 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
3017 simple redundant qualifications. The check is performed whenever the
3018 expression is a non-overloaded identifier.
3019 (Resolve_Type_Conversion): Enchance the redundant type conversion check
3020 to include loop parameters.
3021 (Valid_Conversion): Avoid generation of spurious error message.
3023 2007-08-31 Bob Duff <duff@adacore.com>
3025 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
3026 concatenations of string literals into a single literal, in order to
3027 avoid very deep recursion in the front end, which was causing stack
3030 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
3031 string, and the right operand is a string literal (the case of "" &
3032 "..."), optimize by avoiding copying the right operand -- just use the
3033 value of the right operand directly.
3035 * stringt.adb (Store_String_Chars): Optimize by growing the
3036 String_Chars table all at once, rather than appending characters one by
3038 (Write_String_Table_Entry): If the string to be printed is very long,
3039 just print the first few characters, followed by the length. Otherwise,
3040 doing "pn(n)" in the debugger can take an extremely long time.
3042 * sem_prag.adb (Process_Interface_Name): Replace loop doing
3043 Store_String_Char with Store_String_Chars.
3045 2007-08-31 Vincent Celier <celier@adacore.com>
3047 * prj-attr.adb: Add new attribute Excluded_Source_Files
3049 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
3050 Locally_Removed_Files.
3052 * snames.ads, snames.adb: New standard name Excluded_Source_Files
3054 2007-08-31 Ed Schonberg <schonberg@adacore.com>
3056 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
3057 clauses of subunits, ignore limited_with_clauses that are illegal and
3058 have not been fully analyzed.
3060 2007-08-31 Ed Schonberg <schonberg@adacore.com>
3062 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
3063 flag, for effiency. It is called when analyzing arithmetic operators
3064 and also for actuals in calls that are universal_integers. The flag is
3065 set for the predefined type address, and for any type or subtype
3068 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
3069 Universal_Integer, when the formal is a descendent of address and the
3070 call appears in user code.
3071 (Analyze_Selected_Component): if the prefix is a private extension, the
3072 tag component is visible.
3074 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
3077 2007-08-31 Robert Dewar <dewar@adacore.com>
3079 * s-fileio.adb (Open): Normalize file name to lower case in non-case
3080 sensitive file name systems to avoid unexpected mismatch in Vista.
3082 2007-08-31 Vincent Celier <celier@adacore.com>
3084 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
3086 2007-08-31 Vincent Celier <celier@adacore.com>
3088 * symbols-vms.adb (Initialize): Read symbol files with continuation
3090 (Finalize): If symbol is long, split the line
3092 2007-08-31 Vincent Celier <celier@adacore.com>
3094 * fmap.ads: Minor comment updates
3096 2007-08-31 GNAT Script <nobody@adacore.com>
3098 * Make-lang.in: Makefile automatically updated
3100 2007-08-31 Bob Duff <duff@adacore.com>
3102 * sinfo.ads: Minor comment fix.
3104 2007-08-31 Thomas Quinot <quinot@adacore.com>
3106 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
3107 with implementation.
3108 Documentation cleanup only.
3110 2007-08-31 Sergey Rybin <rybin@adacore.com>
3112 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
3113 gnatpp '--separate-stmt-name' option.
3114 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
3117 * gnat_ugn.texi: Add description for the new gnatpp
3118 '--separate-stmt-name' and '--use-on-new-line' options.
3120 2007-08-31 Ben Elliston <bje@au.ibm.com>
3122 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
3123 when compiling for powerpc64-*-linux.
3124 * system-linux-ppc64.ads: New file.
3126 2007-08-22 Krister Walfridsson <cato@df.lth.se>
3128 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
3131 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3133 * misc.c (gnat_type_max_size): Constify.
3135 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3137 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
3138 associated with Standard_Debug_Renaming_Type, to be used as the type of
3139 the special variables whose names provide debugger encodings for
3140 renaming declarations.
3142 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
3143 (Set_Debug_Renaming_Link): Change to set Node25.
3144 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
3145 (Write_Field25_Name): Add case for E_Variable to output
3146 "Debug_Renaming_Link".
3147 (Write_Field23_Name): Correct the output string for "Limited_View".
3149 * exp_dbug.adb: Add with and use of Tbuild.
3150 (Debug_Renaming_Declaration): Replace creation of an enumeration type
3151 and literal with creation of a variable of type
3152 Standard_Debug_Renaming_Type whose name encodes both the renamed object
3153 and the entity of the renaming declaration.
3154 (Qualify_Entity_Name): Add the delayed qualification of the entity name
3155 part of the name of a variable that has a Debug_Renaming_Link.
3157 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
3158 special type to be associated with variables that provide debugger
3159 encodings for renaming declarations.
3161 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3162 Ed Schonberg <schonberg@adacore.com>
3163 Javier Miranda <miranda@adacore.com>
3165 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
3166 ancestor part given by an aggregate to test for an unchecked conversion,
3167 since this can occur in some cases when the ancestor part is a function
3168 call, and we don't want to fall into the recursive call to this
3169 procedure in that case.
3171 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
3172 stream attributes on limited types to account for user-specified
3173 attributes as well as whether Input (resp. Output) becomes available
3174 due to Read (resp. Write) being available for the type. Change Boolean
3175 variable to the more accurate name
3176 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
3177 double-"not" predicate at beginning of return statement to more
3178 understandable form.
3180 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
3181 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
3182 in a block statement and use that as the first statement of the
3183 expanded return rather than incorrectly using the handled sequence as
3184 the first statement.
3186 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
3187 operation, generate an explicit freeze node for it rather than
3188 generating extra formals, to ensure that gigi has the proper order of
3189 elaboration for anonymous subtypes in the signature of the subprograms.
3190 (Build_In_Place_Formal): Move assertion to beginning of loop.
3191 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
3192 applied to a function call (occurs for some cases of 'Input).
3193 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
3194 applied to a function call (occurs for some cases of 'Input).
3196 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
3197 2005, generate an extended return statement enclosing the result object
3200 * freeze.adb (Freeze_Record_Type): Extend the current management of
3201 components that are access type with an allocator as default value: add
3202 missing support to the use of qualified expressions of the
3203 allocator (which also cause freezing of the designated type!)
3204 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
3205 dispatching operation, since extra formals may be needed by calls to
3206 build-in-place functions (such as stream 'Input).
3208 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
3209 formals for 'Constrained and accessibility level in the case of a
3210 predefined dispatching operation.
3212 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
3213 point, no need to find the parent node.
3215 2007-08-16 Javier Miranda <miranda@adacore.com>
3217 * exp_attr.adb (Attribute_Priority): Add missing support for entries
3220 2007-08-16 Javier Miranda <miranda@adacore.com>
3222 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
3223 is not really required and can introduce regression with the debugger.
3224 The original problem is fixed with the patch written for checks.adb.
3226 2007-08-16 Thomas Quinot <quinot@adacore.com>
3228 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
3229 Range_Check on Allocated_Table.
3231 2007-08-16 Vincent Celier <celier@adacore.com>
3233 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
3234 Including_Non_Switch set to False.
3235 (Gnatmake): For the compiler, call Test_If_Relative_Path with
3236 Including_Non_Switch set to False.
3238 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
3239 parameter Including_Non_Switch, defaulted to True. When
3240 Including_Non_Switch is False, options that are not switches and
3241 appear as relative path are not converted to absolute paths.
3243 2007-08-16 Nicolas Roche <roche@adacore.com>
3245 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
3248 * Make-lang.in: Update dependencies
3250 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
3252 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
3253 currently inspected is a selected component, retrieve the entity of
3255 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
3256 from the immediate ancestor of Main_Unit_Entity.
3257 (Install_Limited_Withed_Unit): Do not install the limited view of
3258 package P if P is reachable through an ancestor chain from package C
3259 and C also has a with clause for P in its body.
3260 (Has_Limited_With_Clause): New routine.
3261 (Has_With_Clause): New routine.
3263 2007-08-16 Ed Schonberg <schonberg@adacore.com>
3265 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
3266 generic for an enclosing instance is a global reference, even though
3267 its scope is the enclosing instance.
3269 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3270 Javier Miranda <miranda@adacore.com>
3272 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
3273 initialize a limited object.
3274 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
3276 Make sure Has_Complex_Representation is inherited by derived type.
3278 2007-08-16 Robert Dewar <dewar@adacore.com>
3280 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
3283 2007-08-16 Ed Schonberg <schonberg@adacore.com>
3285 * sem_disp.adb (Check_Dispatching_Operation): If the operation
3286 implements an operation inherited from a progenitor interface, verify
3287 that they are subtype-conformant.
3289 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
3290 Bob Duff <duff@adacore.com>
3291 Nicolas Setton <setton@adacore.com>
3293 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
3294 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
3295 the statement which is being resolved comes from a predefined library
3296 unit, all non-predefined library interpretations are skipped.
3297 (Resolve_Op_Concat): If string concatenation was folded in the parser,
3298 but the "&" is user defined, give an error, because the folding would
3301 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
3302 the parser has folded a long sequence of concatenations of string
3305 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
3306 and "JMP_BUF" variables as artificial.
3307 (N_String_Literal): Do not use alloca for very long string literals. Use
3308 xmalloc/free instead. Otherwise the stack might overflow.
3310 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
3313 2007-08-16 Vincent Celier <celier@adacore.com>
3315 * vms_conv.adb (Process_Argument): Ensure that project related options
3316 are not put in the -cargs section when using GNAT COMPILE.
3318 2007-08-16 Robert Dewar <dewar@adacore.com>
3320 * gnat_ugn.texi: Add note on preprocessing (output file not written)
3322 2007-08-16 Thomas Quinot <quinot@adacore.com>
3324 * a-tags.adb: Minor reformatting.
3326 2007-08-16 Bob Duff <duff@adacore.com>
3328 * sem_type.ads, sem_ch4.adb: Minor reformatting.
3330 2007-08-14 Thomas Quinot <quinot@adacore.com>
3332 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
3333 s-osinte-interix.ads, system-interix.ads: Removed.
3335 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
3337 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
3338 calls to Check_Within_Time_Bounds.
3339 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
3340 (Difference): Account for possible rounding of the resulting difference
3342 2007-08-14 Robert Dewar <dewar@adacore.com>
3344 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
3345 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
3346 s-osinte-solaris.adb, s-osinte-solaris.ads,
3347 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
3349 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
3350 switch -gnatyS. Enable -gnatyS in GNAT style check mode
3352 2007-08-14 Robert Dewar <dewar@adacore.com>
3353 Ed Schonberg <schonberg@adacore.com>
3355 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
3356 Suppress unmodified in-out parameter warning in some cases
3357 This patch is a also fairly significant change to the way suppressible
3360 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
3361 needed for access to concurrent record types generated by the expander.
3362 (Generate_Range_Check): When generating a temporary to capture the
3363 value of a conversion that requires a range check, set the type of the
3364 temporary before rewriting the node, so that the type is always
3365 properly placed for back-end use.
3366 (Apply_Float_Conversion_Check): Handle case where the conversion is
3368 (Get_Discriminal): Code reformatting. Climb the scope stack looking
3369 for a protected type in order to examine its discriminants.
3371 2007-08-14 Robert Dewar <dewar@adacore.com>
3372 Gary Dismukes <dismukes@adacore.com>
3373 Ed Schonberg <schonberg@adacore.com>
3374 Thomas Quinot <quinot@adacore.com>
3376 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
3377 a-stwisu.adb, a-strsup.adb: Fix warnings for range
3378 tests optimized out.
3380 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
3381 (Get_Allocator_Final_List): For the case of an anonymous access type
3382 that has a specified Associated_Final_Chain, do not go up to the
3384 (Expand_N_Type_Conversion): Test for the case of renamings of access
3385 parameters when deciding whether to apply a run-time accessibility
3387 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
3388 aggregate code before allocator, and ahead of declaration for
3389 temporary, to prevent access before elaboration when the allocator is
3390 an actual for an access parameter.
3391 (Expand_N_Type_Conversion): On an access type conversion involving an
3392 access parameter, do not apply an accessibility check when the
3393 operand's original node was an attribute other than 'Access. We now
3394 create access conversions for the expansion of 'Unchecked_Access and
3395 'Unrestricted_Access in certain cases and clearly accessibility should
3396 not be checked for those.
3398 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
3399 includes a type conversion of a packed component that has been expanded,
3400 recover the original expression for the object, and use this expression
3401 in the post-call assignment statement, so that the assignment is made
3402 to the object and not to a back-end temporary.
3403 (Freeze_Subprogram): In case of primitives of tagged types not defined
3404 at the library level force generation of code to register the primitive
3405 in the dispatch table. In addition some code reorganization has been
3406 done to leave the implementation clear.
3407 (Expand_Call): When expanding an inherited implicit conversion,
3408 preserve the type of the inherited function after the intrinsic
3409 operation has been expanded.
3411 * exp_ch2.ads, exp_ch2.adb
3412 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
3413 of an entry formal appearing in an assignment statement does not assign
3415 (Expand_Current_Value): Instead of calling a routine to determine
3416 whether the prefix of an attribute reference should be optimized or
3417 not, prevent the optimization of such prefixes all together.
3419 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
3420 component whose prefix is known to be of an access type is an implicit
3421 dereference and does not assign to the prefix.
3423 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3424 Robert Dewar <dewar@adacore.com>
3426 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
3427 itype is visited, make an entry into table to link associated node and
3429 Add comments and correct harmless error in Build_NCT_Hash_Tables
3430 (Array_Aggr_Subtype): Associate each itype created for an index type to
3431 the corresponding range construct, and not to the aggregate itself. to
3432 maintain a one-to-one correspondence between itype and its associated
3433 node, to prevent errors when complex expression is copied.
3434 Fix mishandling of multiple levels of parens
3436 * sem_aggr.adb: Create a limited view of an incomplete type, to make
3437 treatment of limited views uniform for all visible declarations in a
3438 limited_withed package.
3439 (New_Copy_Tree): If hash table is being used and itype is visited,
3440 make an entry into table to link associated node and new itype.
3441 (Resolve_Record_Aggregate): Do not add an others box association for a
3442 discriminated record component that has only discriminants, when there
3443 is a box association for the component itself.
3445 * par-ch4.adb: Fix mishandling of multiple levels of parens
3447 2007-08-14 Robert Dewar <dewar@adacore.com>
3449 * comperr.adb: Fix problem with suppressing warning messages from gigi
3451 * erroutc.ads, erroutc.adb, errout.ads,
3452 errout.adb (Write_Eol): Remove trailing spaces before writing the line
3453 (Write_Eol_Keep_Blanks): New procedure to write a line, including
3454 possible trailing spaces.
3455 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
3456 Fix problem with suppressing warning messages from back end
3457 Improve handling of deleted warnings
3460 Fix problem with suppressing warning messages from back end
3461 Handle setting of Static_Dispatch_Tables flag.
3464 Fix problem with suppressing warning messages from back end
3466 * exp_intr.adb: Improve handling of deleted warnings
3468 2007-08-14 Robert Dewar <dewar@adacore.com>
3470 * debug.adb: Improve -gnatdI to cover all cases of serialization
3471 Add documentation of dZ, d.t
3473 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
3475 (Sprint_Node_Actual): Generate new output associated with implicit
3476 importation and implicit exportation of object declarations.
3478 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3479 Robert Dewar <dewar@adacore.com>
3480 Javier Miranda <miranda@adacore.com>
3481 Gary Dismukes <dismukes@adacore.com>
3483 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
3484 to make treatment of limited views uniform for all visible declarations
3485 in a limited_withed package.
3486 Improve warnings for in out parameters
3487 (Set_Related_Interaface/Related_Interface): Allow the use of this
3488 attribute with constants.
3489 (Write_Field26_Name): Handle attribute Related_Interface in constants.
3490 Warn on duplicate pragma Preelaborable_Initialialization
3492 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
3493 generation of a freezing node to ensure proper management of null
3494 excluding access types in the backend.
3495 (Create_Extra_Formals): Test base type of the formal when checking for
3496 the need to add an extra accessibility-level formal. Pass the entity E
3497 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
3498 originally being done in a couple of cases), to ensure that the
3499 Extra_Formals list gets set on the entity E when the first entity is
3501 (Conforming_Types): Add missing calls to Base_Type to the code that
3502 handles anonymous access types. This is required to handle the
3503 general case because Process_Formals builds internal subtype entities
3504 to handle null-excluding access types.
3505 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3506 functions that need it, even when not marked Requires_Overriding.
3507 Improve warnings for in out parameters
3508 (Analyze_Function_Return): Warn for disallowed null return
3509 Warn on return from procedure with unset out parameter
3510 Ensure consistent use of # in error messages
3511 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
3512 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
3513 the implicit conversion of the expression done for anonymous access
3514 types. This is required to generate the code of the null excluding
3515 check (if required).
3517 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
3518 A formal parameter is never publicly referenceable outside of its body.
3519 (Check_References): For an unreferenced formal parameter in an accept
3520 statement, use the same warning circuitry as for subprogram formal
3522 (Warn_On_Unreferenced_Entity): New subprogram, taken from
3523 Output_Unreferenced_Messages, containing the part of that routine that
3524 is now reused for entry formals as described above.
3525 (Goto_Spec_Entity): New function
3526 (Check_References): Do not give IN OUT warning for dispatching operation
3527 Improve warnings for in out parameters
3528 (Test_Ref): Check that the entity is not undefinite before calling
3529 Scope_Within, in order to avoid infinite loops.
3530 Warn on return from procedure with unset out parameter
3531 Improved warnings for unused variables
3533 2007-08-14 Robert Dewar <dewar@adacore.com>
3534 Javier Miranda <miranda@adacore.com>
3535 Gary Dismukes <dismukes@adacore.com>
3537 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
3538 (Expand_N_Attribute_Reference): Further unify the handling of the
3539 three forms of access attributes, using common code now for all three
3540 cases. Add a test for the case of applying an access attribute to
3541 an explicit dereference when the context is an access-to-interface
3542 type. In that case we need to apply the conversion to the prefix
3543 of the explicit dereference rather than the prefix of the attribute.
3544 (Attribute_Version, UET_Address): Set entity as internal to ensure
3545 proper dg output of implicit importation.
3546 (Expand_Access_To_Type): Removed.
3547 (Expand_N_Attribute_Reference): Merge the code from the three cases
3548 of access attributes, since the processing is largely identical for
3549 these cases. The substantive fix here is to process the case of a
3550 type name prefix (current instance case) before handling the case
3551 of interface prefixes.
3553 2007-08-14 Thomas Quinot <quinot@adacore.com>
3554 Ed Schonberg <schonberg@adacore.com>
3555 Javier Miranda <miranda@adacore.com>
3556 Robert Dewar <dewar@adacore.com>
3558 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
3559 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
3560 type that is an anonymous access to controlled object, establish
3561 an associated finalization chain to avoid corrupting the global
3562 finalization list when a dynamically allocated object designated
3563 by such a component is deallocated.
3564 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3565 functions that need it, even when not marked Requires_Overriding.
3566 (Initialize_Tag): Replace call to has_discriminants by call to
3567 Is_Variable_Size_Record in the circuitry that handles the
3568 initialization of secondary tags.
3569 (Is_Variable_Size_Record): New implementation.
3570 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
3571 Suppress_Initialization pragma for a derived type.
3572 (Is_Variable_Size_Record): New subprogram.
3573 (Build_Offset_To_Top_Functions): New implementation that simplifies the
3574 initial version of this routine and also fixes problems causing
3575 incomplete initialization of the table of interfaces.
3576 (Build_Init_Procedure): Improve the generation of code to initialize the
3577 the tag components of secondary dispatch tables.
3578 (Init_Secondary_Tags): New implementation that simplifies the previous
3579 version of this routine.
3580 (Make_DT): Add parameter to indicate when type has been frozen by an
3581 object declaration, for diagnostic purposes.
3582 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
3583 diagnose attemps to freeze a subprogram when some untagged type of its
3584 profile is a private type whose full view has not been analyzed yet.
3585 (Freeze_Array_Type): Generate init proc for packed array if either
3586 Initialize or Normalize_Scalars is set.
3587 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
3588 constructing the new profile, copy the null_exclusion indicator for each
3589 parameter, to ensure full conformance of the new body with the spec.
3591 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
3592 Create wrappers for constructor functions that need it, even when not
3593 marked Requires_Overriding.
3594 (Covers): Handle properly designated types of anonymous access types,
3595 whose non-limited views are themselves incomplete types.
3596 (Add_Entry): Use an entity to store the abstract operation which hides
3598 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
3599 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
3600 initialization aggregate.
3601 (Function_Interp_May_Be_Hidden): Rename to
3602 Function_Interp_Has_Abstract_Op.
3603 (Has_Compatible_Type): Remove machinery that skips interpretations if
3604 they are labeled as potentially hidden by an abstract operator.
3605 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
3606 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
3607 (Write_Overloads): Output the abstract operator if present.
3608 (Add_Entry): Before inserting a new entry into the interpretation table
3609 for a node, determine whether the entry will be disabled by an abstract
3611 (Binary_Op_Interp_May_Be_Hidden): New routine.
3612 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
3614 (Function_Interp_May_Be_Hidden): New routine.
3615 (Has_Compatible_Type): Do not consider interpretations hidden by
3616 abstract operators when trying to determine whether two types are
3618 (Has_Hidden_Interp): New routine.
3619 (Set_May_Be_Hidden_Interp): New routine.
3620 (Write_Overloads): Write the status of flag May_Be_Hidden.
3622 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3623 Javier Miranda <miranda@adacore.com>
3625 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
3626 types declared in the declarative part of a nested package body or in
3627 the proper body of a stub.
3628 (Set_All_DT_Position): Add missing check to avoid wrong assignation
3629 of the same dispatch table slot to renamed primitives.
3630 (Make_Select_Specific_Data_Table): Handle private types.
3631 (Tagged_Kind): Handle private types.
3632 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
3633 output of implicit importation and exportation.
3634 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
3635 first formal of the thunk is always associated with the controlling
3636 type. In addition perform the following code cleanup: remove formal
3637 Thunk_Alias which is no longer required, cleanup evaluation of the
3638 the controlling type, and update the documentation.
3639 Replace occurrence of Default_Prim_Op_Count by
3640 Max_Predef_Prims. Addition of compile-time check to verify
3641 that the value of Max_Predef_Prims is correct.
3642 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
3643 (Make_DT): Add parameter to indicate when type has been frozen by an
3644 object declaration, for diagnostic purposes.
3645 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
3646 construction of statically allocated dispatch tables.
3647 (Make_DT): In case of library-level tagged types export the declaration
3648 of the primary tag. Remove generation of tags (now done by Make_Tags).
3649 Additional modifications to handle non-static generation of dispatch
3650 tables. Take care of building tables for asynchronous interface types
3651 (Make_Tags): New subprogram that generates the entities associated with
3652 the primary and secondary tags of Typ and fills the contents of Access_
3653 Disp_Table. In case of library-level tagged types imports the forward
3654 declaration of the primary tag that will be declared later by Make_DT.
3655 (Expand_Interface_Conversion): In case of access types to interfaces
3656 replace an itype declaration by an explicit type declaration to avoid
3657 problems associated with the scope of such itype in transient blocks.
3659 2007-08-14 Robert Dewar <dewar@adacore.com>
3660 Ed Schonberg <schonberg@adacore.com>
3661 Javier Miranda <miranda@adacore.com>
3663 * exp_util.ads, exp_util.adb:
3664 This patch replaces a number of occurrences of explicit tests for N_Null
3665 with calls to Known_Null. This improves tracking of null values, since
3666 Known_Null also catches null constants, and variables currently known to
3667 be null, so we get better tracking.
3668 (Ensure_Defined): create an itype reference only in the scope of the
3670 (Side_Effect_Free): A selected component of an access type that
3671 denotes a component with a rep clause must be treated as not
3672 side-effect free, because if it is part of a linked structure its
3673 value may be affected by a renaming.
3674 (Expand_Subtype_From_Expr): For limited objects initialized with build
3675 in place function calls, do nothing; otherwise we prematurely introduce
3676 an N_Reference node in the expression initializing the object, which
3677 breaks the circuitry that detects and adds the additional arguments to
3678 the called function. Bug found working in the new patch for statically
3679 allocated dispatch tables.
3680 (Is_Library_Level_Tagged_Type): New subprogram.
3681 (Remove_Side_Effects): If the expression of an elementary type is an
3682 operator treat as a function call.
3683 (Make_Literal_Range): If the index type of the array is not integer, use
3684 attributes properly to compute the constraint on the resulting aggregate
3687 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
3688 class-wide type whose base type is an incomplete private type, leave
3689 class-wide type unfrozen so that freeze nodes can be generated
3690 properly at a later point.
3691 (Freeze_Entity, array case): Handle case of pragma Pack and component
3692 size attributre clause for same array.
3694 2007-08-14 Vincent Celier <celier@adacore.com>
3696 * prj.ads, prj.adb: Update Project Manager to new attribute names for
3698 Allow all valid declarations in configuration project files
3699 (Reset): Initialize all tables and hash tables in the project tree data
3700 Major update of the Project Manager and of the project aware tools,
3701 including gprmake, so that the same sources in the GNAT repository
3702 can be used by gprbuild.
3703 (Slash_Id): Change type to be Path_Name_Type
3704 (Slash): Return a Path_Name_Type instead of a File_Name_Type
3706 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
3708 Update Project Manager to new attribute names for ghprbuild
3709 Allow all valid declarations in configuration project files
3710 Major update of the Project Manager and of the project aware tools,
3711 including gprmake, so that the same sources in the GNAT repository
3712 can be used by gprbuild.
3715 Major update of the Project Manager and of the project aware tools,
3716 including gprmake, so that the same sources in the GNAT repository
3717 can be used by gprbuild.
3719 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3720 insensitive flag for attributes with optional index.
3721 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3722 array attribute, put the index in lower case.
3723 Update Project Manager to new attribute names for ghprbuild
3724 Allow all valid declarations in configuration project files
3725 Major update of the Project Manager and of the project aware tools,
3726 including gprmake, so that the same sources in the GNAT repository
3727 can be used by gprbuild.
3729 * prj-env.ads, prj-env.adb:
3730 Major update of the Project Manager and of the project aware tools,
3731 including gprmake, so that the same sources in the GNAT repository
3732 can be used by gprbuild.
3733 (Get_Reference): Change type of parameter Path to Path_Name_Type
3735 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
3736 removing '-' from the path to start with the first character of the
3738 Major update of the Project Manager and of the project aware tools,
3739 including gprmake, so that the same sources in the GNAT repository
3740 can be used by gprbuild.
3741 Major update of the Project Manager and of the project aware tools,
3742 including gprmake, so that the same sources in the GNAT repository
3743 can be used by gprbuild.
3745 * prj-nmsc.ads, prj-nmsc.adb:
3746 Update Project Manager to new attribute names for ghprbuild
3747 Allow all valid declarations in configuration project files
3748 (Search_Directories): Detect subunits that are specified with an
3749 attribute Body in package Naming. Do not replace a source/unit in the
3750 same project when the order of the source dirs are known. Detect
3751 duplicate sources/units in the same project when the order of the
3752 source dirs are not known.
3753 (Check_Ada_Name): Allow all identifiers that are not reserved words
3755 Major update of the Project Manager and of the project aware tools,
3756 including gprmake, so that the same sources in the GNAT repository
3757 can be used by gprbuild.
3758 (Look_For_Sources): If the list of sources is empty, set the object
3759 directory of non extending project to nil.
3760 Change type of path name variables to be Path_Name_Type
3761 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
3762 otherwise creating missing directories will fail.
3764 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
3765 prj-part.ads, prj-part.adb:
3766 Major update of the Project Manager and of the project aware tools,
3767 including gprmake, so that the same sources in the GNAT repository
3768 can be used by gprbuild.
3770 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3771 insensitive flag for attributes with optional index.
3772 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3773 array attribute, put the index in lower case.
3774 (Parse_Variable_Reference): Allow the current project name to be used in
3775 the prefix of an attribute reference.
3777 * prj-util.ads, prj-util.adb
3778 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
3779 defaulted to False. When True, always check against indexes in lower
3782 * snames.ads, snames.h, snames.adb:
3783 Update Project Manager to new attribute names for gprbuild
3784 Allow all valid declarations in configuration project files
3786 2007-08-14 Robert Dewar <dewar@adacore.com>
3787 Ed Schonberg <schonberg@adacore.com>
3789 * opt.ads: Warning for non-local exception propagation now off by
3791 New switch -gnatI to disable representation clauses
3792 Implement new pragma Implicit_Packing
3795 Warning for non-local exception propagation now off by default
3796 Add warning for unchecked conversion of pointers wi different
3798 New switch -gnatI to disable representation clauses
3800 * usage.adb: new switch -gnatyS
3802 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
3803 note that aggregates of anonymous array types are not flagged.
3804 -gnatwc now includes membership tests optimized away
3805 -gnatw.x warnings are now off by default
3806 Added conditional compilation Appendix
3807 Add documentation of -gnatI
3808 Add documentation for new -gnatyS style check
3809 Update documentation about SAL and auto-init on Windows.
3812 Add documentation for pragma Check_Name and 'Enabled attribute
3813 Document that Eliminate on dispatching operation is ignored
3814 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
3815 Document pragma Main
3816 Document pragma Implicit_Packing
3818 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
3819 different conventions
3820 New switch -gnatI to disable representation clauses
3822 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
3823 recognized, report the invalid characters including "-gnat" instead of
3824 just the first character in the switch.
3825 New switch -gnatI to disable representation clauses
3826 Set Warn_On_Object_Renames_Function true for -gnatg
3828 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
3829 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
3830 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
3831 to switch -aP (add directory to project search dir).
3833 * par-prag.adb: Implement new pragma Implicit_Packing
3835 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
3836 type as having a non-standard representation, to force expansion on
3837 conversion to related types.
3838 (Analyze_Pragma): Warn on misspelled pragma
3839 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
3840 Ensure consistent use of # in error messages
3841 Implement pragma Implicit_Packing
3843 2007-08-14 Olivier Hainque <hainque@adacore.com>
3844 Eric Botcazou <ebotcazou@adacore.com>
3846 * targtyps.c (get_target_maximum_default_alignment): New function.
3848 that the compiler might choose by default for a type or object.
3849 (get_target_default_allocator_alignment): New function. Alignment known
3850 to be honored by the target default allocator.
3851 (get_target_maximum_allowed_alignment): New function. Maximum alignment
3852 we might accept for any type or object on the target.
3853 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
3855 * gigi.h (get_target_maximum_default_alignment): Declare new function.
3856 (get_target_default_allocator_alignment): Likewise.
3857 (get_target_maximum_allowed_alignment): Likewise.
3860 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
3861 result of a function call, first try to use a stabilized reference for
3862 a constant renaming too.
3863 (validate_alignment): Use target_maximum_allowed_alignment instead of
3864 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
3865 (gnat_to_gnu_entity): Use common nodes directly.
3866 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
3867 alignment and size for the object.
3868 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
3869 and N_Procedure_Call_Statement.
3870 (takes_address): Rename to lvalue_required_p, add third parameter
3871 'aliased' and adjust recursive calls.
3872 <N_Indexed_Component>: Update 'aliased' from the array type.
3873 <N_Selected_Component>: New case.
3874 <N_Object_Renaming_Declaration>: New Likewise.
3875 (Identifier_to_gnu): Adjust for above changes.
3876 (maybe_stabilize_reference) <CONST_DECL>: New case.
3878 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
3879 between type variants.
3880 (build_simple_component_ref): Likewise.
3881 (build_call_alloc_dealloc): Use target_default_allocator_alignment
3882 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
3883 aligning type circuitry for allocations from the default storage pool.
3884 (build_allocator): Likewise.
3885 (build_simple_component_ref): Manually fold the reference for a
3886 constructor if the record type contains a template.
3888 * utils.c (value_zerop): Delete.
3889 (gnat_init_decl_processing): Emit debug info for common types.
3890 (rest_of_record_type_compilation): If a union contains a field
3891 with a non-constant qualifier, treat it as variable-sized.
3892 (finish_record_type): Give the stub TYPE_DECL a name.
3893 (rest_of_record_type_compilation): Likewise.
3894 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
3895 types are equivalent array types.
3896 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
3897 even if the type is not passed by reference.
3898 (static_ctors, static_dtors): Delete.
3899 (end_subprog_body): Do not record constructors and destructors.
3900 (build_global_cdtor): Delete.
3901 (gnat_write_global_declarations): Do not call build_global_cdtor.
3903 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
3904 -fRTS=rtp is specified.
3905 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
3908 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
3909 of the personality function with SJLJ exceptions.
3911 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
3912 the name of the personality function with SJLJ exceptions.
3914 2007-08-14 Robert Dewar <dewar@adacore.com>
3915 Ed Schonberg <schonberg@adacore.com>
3917 * par.ads, par.adb: Improve handling of extra right parens.
3918 (Par): Remove flag From_Limited_With_Clause.
3920 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
3921 Improve handling of extra right parens.
3923 2007-08-14 Robert Dewar <dewar@adacore.com>
3925 * par-tchk.adb (TF_Semicolon): Improve error recovery
3927 2007-08-14 Robert Dewar <dewar@adacore.com>
3928 Ed Schonberg <schonberg@adacore.com>
3930 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
3931 enumeration type, mark all literals as referenced.
3932 (Eval_Attribute, case 'Image): If the argument is an enumeration
3933 literal and names are available, constant-fold but mark nevertheless as
3935 Clean up function names.
3936 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
3938 (Requires_Simple_Name_Prefix): Removed.
3940 2007-08-14 Robert Dewar <dewar@adacore.com>
3941 Ed Schonberg <schonberg@adacore.com>
3943 * sem_ch11.adb: Improved warnings for unused variables
3945 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
3946 is a synchronized interface, the derived type is limited.
3947 (Analyze_Object_Declaration): Mark the potential coextensions in the
3948 definition and expression of an object declaration node.
3949 (Build_Derived_Type): For the completion of a private type declaration
3950 with a derived type declaration, chain the parent type's representation
3951 items to the last representation item of the derived type (not the
3952 first one) if they are not present already.
3953 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
3954 object declaration of forward references to tags.
3955 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
3956 subprogram types can appear as access discriminants of synchronized
3958 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
3959 given in prefixed form as a selected component.
3960 (Process_Discriminants): If not all discriminants have defaults, place
3961 error message on a default that is present.
3962 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
3963 extend a synchronized tagged type.
3964 Improved warnings for unused variables
3965 (Is_Visible_Component): Fix a visibility hole on a component inherited
3966 by a private extension when parent is itself declared as a private
3967 extension, and the derivation is in a child unit.
3968 (Find_Hidden_Interface): Move spec from the package body.
3970 2007-08-14 Robert Dewar <dewar@adacore.com>
3971 Ed Schonberg <schonberg@adacore.com>
3973 * sem_ch5.adb: Improve warnings on redundant assignments
3975 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
3977 (Is_Synchronized_Tagged_Type): New subprogram that returns true
3978 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
3979 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
3980 is set to False. Improves handling of Known_[Not_]Null.
3981 (Wrong_Type): Special case address arithmetic attempt
3982 (Collect_Abstract_Interfaces): Add new formal to allow collecting
3983 abstract interfaces just using the partial view of private types.
3984 (Has_Abstract_Interfaces): Add new formal to allow checking types
3985 covering interfaces using the partial view of private types.
3986 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
3987 component still needs to be defined in this case, but is never
3988 initialized as VMs are using other dispatching mechanisms.
3989 (Abstract_Interface_List): For a protected type, use base type to get
3991 Improve warnings on redundant assignments
3992 (Is_Variable): Handle properly an implicit dereference of a prefixed
3994 (Build_Actual_Subtype): If this is an actual subtype for an
3995 unconstrained formal parameter, use the sloc of the body for the new
3996 declaration, to prevent anomalises in the debugger.
3998 2007-08-14 Robert Dewar <dewar@adacore.com>
4000 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
4001 dispatching operation
4003 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4004 Gary Dismukes <dismukes@adacore.com>
4007 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
4008 expanded aggregate code before allocator, and ahead of declaration for
4009 temporary, to prevent access before elaboration when the allocator is
4010 an actual for an access parameter.
4011 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
4012 the TSD and the table of interfaces.
4013 (Convert_To_Assignments): Augment the test for delaying aggregate
4014 expansion for limited return statements to include the case of extended
4015 returns, to prevent creation of an unwanted transient scope.
4016 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
4017 (Expand_Array_Aggregate): Handle aggregates associated with
4018 statically allocated dispatch tables.
4019 (Expand_Record_Aggregate): Handle aggregates associated with
4020 statically allocated dispatch tables.
4021 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
4022 of anonymous access type.
4024 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4026 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
4027 is a variable that renames a slice, use the variable itself in the
4028 expannsion when the renamed expression itself may be modified between
4029 the declaration of the renaming and the array assignment.
4031 2007-08-14 Jerome Guitton <guitton@adacore.com>
4033 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4034 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
4035 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
4036 New functions; dummy implementations.
4038 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
4039 functions, used to implement the multi-tasks mode routines on VxWorks.
4041 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
4043 binding to the VxWorks routines which have changed between VxWorks 5
4045 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
4046 which are not callable from a RTP.
4048 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
4049 implemented for the multi-tasks mode on VxWorks 5 and 6.
4051 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
4053 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
4056 2007-08-14 Vincent Celier <celier@adacore.com>
4058 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
4059 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
4060 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
4061 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
4062 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4063 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
4064 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
4066 (Major_Id_Name): New function.
4067 mlib-tgt.ads/mlib.tgt.adb:
4068 (Library_Major_Minor_Id_Supported): New function, default returns True
4069 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
4070 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
4071 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
4072 Implementation of Library_Major_Minor_Id_Supported returns False
4074 (Clean_Library_Directory): If major/minor ids are supported, clean all
4076 Major update of the Project Manager and of the project aware tools,
4077 including gprmake, so that the same sources in the GNAT repository
4078 can be used by gprbuild.
4080 2007-08-14 Olivier Hainque <hainque@adacore.com>
4082 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
4083 (GCC_ZCX_Support): Switch to True.
4085 * s-intman-solaris.adb (Notify_Exception): Call
4086 Adjust_Context_For_Raise before raising, as expected for signal
4087 handlers in general.
4089 * s-intman-posix.adb (Notify_Exception): Remove declaration of
4090 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
4091 to other implementation bodies.
4093 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
4094 be visible by multiple implementation bodies.
4096 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
4097 only for conditions coming from hardware.
4098 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
4099 adjustments to signal context prior to exception raise from signal
4101 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
4103 Solaris section: (__gnat_adjust_context_for_raise): New function.
4104 Implementation of the machine context adjustments to perform prior to
4105 raise from a signal handler. Version for both sparc and x86.
4106 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
4107 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
4108 prior to raising as expected for any handler, before possible nested
4109 faults to make sure all the contexts in a chain have been adjusted by
4110 the time we propagate.
4112 2007-08-14 Pascal Obry <obry@adacore.com>
4114 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
4115 (SYSTEM_INFO): New record.
4116 (SetThreadIdealProcessor): New imported routine needed for supporting
4117 task_info pragma on Windows.
4119 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
4120 info can be applied to the current host.
4121 (Create_Task): Set the ideal processor if information is present.
4123 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
4124 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
4126 2007-08-14 Olivier Hainque <hainque@adacore.com>
4128 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
4129 stack size and initial stack pointer value for a given task.
4130 (Enter_Task): Get the stack attributes of the task we are entering and
4131 let the stack checking engine know about them.
4133 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
4134 Let the stack-checking engine know about the initial sp value and stack
4135 size associated with the current task.
4136 (Set_Stack_Info): If a stack base has been notified for the current
4137 task, honor it. Fallback to the previous less accurate method otherwise.
4139 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
4141 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4143 * sem_ch10.adb: Create a limited view of an incomplete type, to make
4144 treatment of limited views uniform for all visible declarations in a
4145 limited_withed package.
4146 Set flag indicating that a subprogram body for a child unit has a
4148 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
4149 separate declaration, remove the unit name from visibility after
4150 compilation, so that environment is clean for subsequent compilations.
4151 (Install_Limited_Context_Clauses): Do not install a
4152 limited_private_with_clause unless the current unit is a body or a
4154 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
4155 in the same fashion.
4156 (Install_Limited_Withed_Unit): Do not install a limited with clause if
4157 it applies to the declaration of the current package body.
4158 (Remove_Private_With_Clauses): If there is a regular with_clause for
4159 the unit, delete Private_With_Clause from context, to prevent improper
4160 hiding when processing subsequent nested packages and instantiations.
4162 2007-08-14 Jose Ruiz <ruiz@adacore.com>
4164 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
4165 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
4166 representing absolute path names.
4167 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
4169 * cstreams.c (__gnat_full_name for VxWorks): Use
4170 __gnat_is_absolute_path to detect whether we need to add the current
4171 directory to normalize the path.
4173 2007-08-14 Javier Miranda <miranda@adacore.com>
4176 a-tags.adb (Displace): Associate a message with the raised CE
4178 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
4179 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
4180 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
4182 (Default_Prim_Op_Count): Removed.
4183 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
4184 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
4185 Remove pragma Inline_Always.
4187 * rtsfind.ads (Default_Prim_Op_Count): Removed
4188 (Max_Predef_Prims): New entity
4189 (RE_Expanded_Name): Removed
4190 (RE_HT_Link): Removed
4191 (RE_Iface_Tag): Remmoved
4192 (RE_Ifaces_Table): Removed
4193 (RE_Interfaces_Array): Removed
4194 (RE_Interface_Data_Element): Removed
4195 (RE_Nb_Ifaces): Removed
4196 (RE_RC_Offset): Removed
4197 (RE_Static_Offset_To_Top): Removed
4199 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
4201 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
4202 Prim_Op_Count by Max_Predef_Prims.
4204 2007-08-14 Thomas Quinot <quinot@adacore.com>
4205 Vincent Celier <celier@adacore.com>
4207 * binde.adb (Elab_All_Links): Remove unnecessary call to
4208 Generic_Separately_Compiled (if a unit satisfies this predicate, there
4209 won't be an associated Afile).
4210 (Elab_All_Links): Fail if a referenced unit cannot be found
4213 Fix comments in bindgen regarding consistency checks done in Bcheck:
4214 the checks are made across units within a partition, not across several
4216 Fix generation of C binder file for VxWorks.
4218 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
4219 Generic_May_Lack_ALI, more descriptive of the current use of the
4220 predicate, and update documentation.
4222 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
4223 reorganization and documentation update for the case of predefined
4224 library generics (for which we do not reference an Afile).
4226 2007-08-14 Robert Dewar <dewar@adacore.com>
4228 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
4229 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
4230 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
4231 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
4232 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
4233 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
4234 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
4235 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
4236 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
4237 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
4238 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
4239 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
4240 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
4241 g-altcon.adb: Minor reformatting
4243 ada-tree.h: Delete empty line.
4245 ali.ads: Minor reformatting
4246 Clarification of comments.
4247 Minor spelling correction
4249 * exp_dbug.adb: Add Warnings Off to suppress new warning
4251 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4254 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
4257 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
4259 * a-textio.ads: Reorder the standard input/output/error declarations
4262 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
4264 * par-ch2.adb: Recognize RM specially in errout
4265 Change 'R'M to RM in all error messages
4267 * scng.adb: Recognize RM specially in errout
4269 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
4270 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
4272 * s-direio.adb: Add missing routine header box.
4274 * sem_attr.ads: Add ??? comments
4276 * sem_eval.adb: Recognize RM specially in errout
4277 Change 'R'M to RM in all error messages
4279 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
4281 * s-tasinf.ads: Fix minor comment typo.
4283 * a-cihama.adb: Minor comment addition
4285 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4288 * s-tasinf-tru64.ads: Fix minor comment typo.
4290 * itypes.ads: Comment update.
4292 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
4295 * argv.c: Added protection against null gnat_argv and gnat_envp.
4297 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
4298 warning message when Tolerate_Consistency_Errors is True.
4300 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
4301 Any_Id, as this subprogram is only applicable to *type* entities (it
4302 sets RM_Size). Instead initialize just Esize and Alignment.
4304 2007-08-14 Bob Duff <duff@adacore.com>
4306 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
4307 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
4308 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
4309 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
4310 a-coorse.ads (Next): Applied pragma Inline.
4311 Make all Containers packages Remote_Types (unless they are already
4313 (Previous): applied pragma Inline
4314 (Elements_Type): is now a record instead of an array
4316 2007-08-14 Thomas Quinot <quinot@adacore.com>
4318 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
4320 (Set_Item): When the new item is an element of the currently allocated
4321 table passed by reference, save a copy on the stack if we're going
4322 to reallocate. Also, in Table.Set_Item, make sure we test the proper
4323 variable to determine whether to call Set_Last.
4325 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
4326 symbols-vms.adb, symbols-processing-vms-alpha.adb,
4327 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
4328 some occurrences of the pattern
4330 T.Table (T.Last) := Value;
4331 with a cleaner call to
4334 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4335 Gary Dismukes <dismukes@adacore.com>
4336 Thomas Quinot <quinot@adacore.com>
4338 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
4339 derived type with interface progenitors use the analyzed formal as the
4340 parent of the actual, to create renamings for all the inherited
4341 operations in Derive_Subprograms.
4342 (Collect_Previous_Instances): new procedure within of
4343 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
4344 unit being loaded, to ensure that the generation of global symbols is
4345 consistent in different compilation modes.
4346 (Is_Tagged_Ancestor): New function testing the ancestor relation that
4347 takes progenitor types into account.
4348 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
4349 traversing over the primitives of the formal and actual types to locate
4350 any abstract subprograms of the actual type that correspond to a
4351 nonabstract subprogram of the formal type's ancestor type(s), and issue
4352 an error if such is found.
4353 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
4354 Instantiate_Package_Body, Instantiate_Subprogram_Body):
4355 Remove bogus guard around calls to Inherit_Context.
4356 (Reset_Entity): If the entity is the selector of a selected component
4357 that denotes a named number, propagate constant-folding to the generic
4358 template only if the named number is global to the generic unit.
4359 (Set_Instance_Env): Only reset the compilation switches when compiling
4360 a predefined or internal unit.
4362 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4364 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
4365 parameter to determine whether operation applies to the prefix.
4366 (Complete_Object_Operation): If actual has an access type and
4367 controlling formal is not an in_parameter, reject the actual if it is
4368 an access_to_constant type.
4369 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
4370 type, the candidate operations are found in the scope of declaration of
4371 the type, because the type has no primitive subprograms.
4372 (Analyze_Selected_Component): If prefix is class-wide, and root type is
4373 a private extension, only examine visible components before trying to
4374 analyze as a prefixed call.
4375 Change Entity_List to Type_To_Use, for better readability.
4376 (Has_Fixed_Op): Use base type when checking whether the type of an
4377 operator has a user-defined multiplication/division
4378 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
4379 user-defined operators are available for fixed-point types.
4381 2007-08-14 Thomas Quinot <quinot@adacore.com>
4382 Ed Schonberg <schonberg@adacore.com>
4384 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
4385 formal At_Any_Place indicating, when True, that we want to test for
4386 availability of the stream attribute at any place (as opposed to the
4387 current visibility context only).
4388 (Missing_Read_Write_Attributes): A stream attribute is missing for the
4389 purpose of enforcing E.2.2(8) only if it is not available at any place.
4390 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
4391 when checking the legality of an extension aggregate in a preelaborable
4392 package. Treat the literal null as a valid default expression in a
4393 component declaration for a type with preelaborable initialization.
4394 A limited interface is a legal progenitor for the designated type of a
4395 remote access to class-wide type.
4397 2007-08-14 Thomas Quinot <quinot@adacore.com>
4398 Ed Schonberg <schonberg@adacore.com>
4400 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
4401 reference): Use correct entity as denoted entity for the selector of
4403 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
4404 setting the Referenced_As_LHS flag for entities that are implicitly
4406 (Find_Type): If the type is an internally generated incomplete type,
4407 mark the full view as referenced, to prevent spurious warnings.
4408 (Find_Selected_Component, Has_Components): Handle properly non-limited
4409 views that are themselves incomplete types.
4410 Handle interfaces visible through limited-with clauses.
4411 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
4412 subprogram generic actual for which we have generated a renaming.
4413 Warn when the renaming introduces a homonym of
4414 the renamed entity, and the renamed entity is directly visible.
4416 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4417 Hristian Kirtchev <kirtchev@adacore.com>
4419 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
4420 appear in the subtree to the current allocator if it is not a static
4422 (Resolve_Allocator): Perform cleanup if resolution has determined that
4423 the allocator is not a coextension.
4424 (Resolve): Skip an interpretation hidden by an abstract operator only
4425 when the type of the interpretation matches that of the context.
4426 (Resolve): When looping through all possible interpretations of a node,
4427 do not consider those that are hidden by abstract operators.
4428 (Resolve_Actuals): When verifying that an access to class-wide object
4429 is an actual for a controlling formal, ignore anonymous access to
4430 subprograms whose return type is an access to class_wide type.
4431 (Resolve_Slice): If the prefix of the slice is a selected component
4432 whose type depends on discriminants, build its actual subtype before
4433 applying range checks on the bounds of the slice.
4434 (Valid_Conversion): In an instance or inlined body, compare root types,
4435 to prevent anomalies between private and public views.
4436 (Resolve): Improve error message for ambiguous fixed multiplication
4437 expressions that involve universal_fixed multiplying operations.
4439 2007-08-14 Javier Miranda <miranda@adacore.com>
4440 Hristian Kirtchev <kirtchev@adacore.com>
4442 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
4443 location to allow the correct generation of errors in case of
4444 restrictions applied to the expanded code.
4445 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
4446 function if the condition does not reference them.
4447 (Expand_Entry_Body_Declarations): Mark the index constant as having a
4450 2007-08-14 Thomas Quinot <quinot@adacore.com>
4452 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
4453 typecode parameters for a union (in a variant record), remove
4454 extraneous layer of Any wrapping for member label.
4455 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
4456 elabration statements, register the package with the name server
4457 at the beginning, not at the end, of the elaboration statements so
4458 that they can create remote access to subprogram values that designate
4459 remote subprograms from the package.
4461 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4463 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
4464 values to compute the number of seconds since the Unix Epoc in order to
4465 account for Daylight Savings Time. Perform special processing for dates
4466 that are earlier than the Unix Epoc to obtain a negative number.
4468 2007-08-14 Emmanuel Briot <briot@adacore.com>
4470 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
4473 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
4475 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
4476 binder-generated file is not in Ada.
4477 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
4478 recorded in the ALI file.
4479 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
4481 2007-08-14 Vincent Celier <celier@adacore.com>
4483 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
4484 (Output_Source): Do nothing if parameter is No_Sdep_Id
4486 * make.adb (Gnatmake): Do not rebuild an archive simply because a
4487 shared library it imports has a later time stamp.
4488 (Check): Resolve the symbolic links in the path name of the object
4490 Check that the ALI file is in the correct object directory
4491 Check if a file name does not correspond to the mapping of units
4493 (Display_Version): New procedure
4494 (Initialize): Process switches --version and --help
4495 Use type Path_Name_Type for path name
4497 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
4499 * impunit.adb: Re-organize System.Random_Numbers and
4500 GNAT.Random_Numbers and add to builds.
4502 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
4504 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
4506 * a-assert.ads, a-assert.adb: New files.
4508 2007-08-14 Gary Dismukes <dismukes@adacore.com>
4510 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
4511 if AAMP_On_Target is True, then the size of the type encompasses two
4512 addresses (a static link and a subprogram address), except in the case
4513 of library-level access types.
4515 2007-08-14 Vincent Celier <celier@adacore.com>
4517 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
4519 (Write_Eol_Keep_Blanks): New procedure to write a line, including
4520 possible trailing spaces.
4521 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
4523 2007-08-14 Javier Miranda <miranda@adacore.com>
4525 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
4526 null-excluding access types.
4528 2007-08-14 Javier Miranda <miranda@adacore.com>
4530 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
4531 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
4532 of private types add missing check on matching interfaces in the
4533 partial and full declarations.
4534 (Analyze_Protected_Type): Code cleanup.
4535 (Analyze_Task_Type): Code cleanup.
4537 2007-08-14 Javier Miranda <miranda@adacore.com>
4539 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
4540 generated interface thunk.
4542 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4544 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
4545 obsolescent warning on application of 'Class to an incomplete type.
4547 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
4548 prevent obsolescent warning on application of 'Class to an incomplete
4551 2007-08-14 Pascal Obry <obry@adacore.com>
4553 * s-fileio.adb (Is_Open): Add check for usability of the underlying
4556 2007-08-14 Cyrille Comar <comar@adacore.com>
4558 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
4559 since it is potentially used in cases implying double finalization of
4562 2007-08-14 Jose Ruiz <ruiz@adacore.com>
4564 * s-tasini.adb (Get_Stack_Info): Move this function to
4565 System.Soft_Links.Tasking because it is common to the full and the
4566 restricted run times.
4567 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
4568 in SSL.Tasking.Init_Tasking_Soft_Links.
4570 * s-solita.adb (Get_Stack_Info): Function moved from
4571 System.Tasking.Initialization because it is common to the full and the
4572 restricted run times.
4573 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
4575 2007-08-14 Arnaud Charlet <charlet@adacore.com>
4577 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
4578 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
4579 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
4582 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
4585 2007-08-14 Gary Dismukes <dismukes@adacore.com>
4587 * s-veboop.adb (SU): New named number initialized to
4588 System.Storage_Unit.
4589 (True_Val): The initialization expression is revised to use SU (=
4590 Storage_Unit) rather than assuming 8 for the component size of an
4591 unpacked Boolean array.
4593 2007-08-14 Tristan Gingold <gingold@adacore.com>
4595 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
4597 * tb-ivms.c: New file.
4599 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
4601 2007-08-14 Geert Bosch <bosch@adacore.com>
4603 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
4604 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
4605 Add required linker pragmas for automatically linking with the gnalasup
4606 linear algebra support library, and the systems math library.
4607 Rename cdot to cdotu and zdot to zdotu.
4608 Update header comment to describe purpose of package.
4610 2007-08-14 Thomas Quinot <quinot@adacore.com>
4612 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
4613 an explicitly specified Associated_Final_Chain, use that list.
4614 (Expand_N_Package_Body): Build dispatch tables of library level tagged
4616 (Expand_N_Package_Declaration): Build dispatch tables of library level
4617 tagged types. Minor code cleanup.
4619 2007-08-14 Vincent Celier <celier@adacore.com>
4621 * gnatchop.adb (Terminate_Program): Remove exception and use
4622 Types.Terminate_Program instead.
4624 * osint.ads, osint.adb (Current_Exit_Status): New global variable
4625 (Find_Program_Name): Added protection against empty name.
4626 (OS_Exit_Through_Exception): New procedure
4628 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
4629 (OS_Exit_Default): New procedure that contains the previous
4630 implementation of procedure OS_Exit.
4631 (Final_Value): Remove obsolete Interix stuff.
4633 2007-08-14 Thomas Quinot <quinot@adacore.com>
4635 * g-socket.ads: Reorganize example code so that it also works on
4638 2007-08-14 Tristan Gingold <gingold@adacore.com>
4640 * g-trasym.ads: AIX now supports symbolic backtraces.
4642 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4644 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
4645 units being loaded to detect circularities. A circularity may be
4646 present even if the current chain of pending units to load starts from
4647 a limited_with_clause.
4649 * lib-load.ads: Change profile of Load_Unit to use a with_clause
4650 rather than a boolean flag, in order to detect circularities in
4653 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
4654 than propagating the From_Limited_With flag, in order to handle
4655 properly circularities involving with_clauses.
4657 2007-08-14 Nicolas Setton <setton@adacore.com>
4659 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
4662 2007-08-14 Arnaud Charlet <charlet@adacore.com>
4664 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
4665 to build for libgnala.
4666 libgnat: Add rules to build libgnala.a
4667 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
4668 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
4669 Add s-osinte-vxworks-kernel.adb to the target pairs of the
4670 kernel run-time lib for VxWorks 6, which would provide a different
4671 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
4672 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
4673 running ZCX by default.
4674 Add g-sttsne-locking to LynxOS version.
4675 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
4676 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
4678 * system-darwin-x86.ads: New file.
4680 * Make-lang.in: Delete files before copying onto them, so if they are
4681 read-only, the copy won't fail.
4684 2007-08-14 Pascal Obry <obry@adacore.com>
4686 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
4689 2007-08-14 Vincent Celier <celier@adacore.com>
4691 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
4692 (Gcc): Initialize Gcc_Name at the first call
4694 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4696 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
4697 with_clauses of the enclosing unit when analyzing the package
4698 specification of a nested instance.
4700 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4702 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
4703 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
4704 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
4705 layout of N_Allocator.
4707 2007-08-14 Thomas Quinot <quinot@adacore.com>
4709 * rtsfind.adb (Check_RPC): Add PCS version check.
4711 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
4712 (Gnat_Free_Software): New function.
4714 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
4715 the PCS_Version value from s-parint, used to check that it is consistent
4716 with what exp_dist expects.
4718 * s-parint.ads (PCS_Version): New entity for checking consistency
4719 between exp_dist and PCS.
4721 * gen-soccon.c: (SO_REUSEPORT): New constant.
4723 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4725 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
4726 variable Sub_Second to Duration in order to accomodate a larger range
4727 of arithmetic operations.
4729 2007-08-14 Bob Duff <duff@adacore.com>
4731 * g-sttsne-locking.ads: Move comments from spec to body.
4732 * g-sttsne-locking.adb: Move comments from spec to body.
4733 * g-sttsne-vxworks.ads: Removed.
4734 * g-sttsne-vxworks.adb: Removed.
4736 2007-08-11 Ian Lance Taylor <iant@google.com>
4738 * misc.c (gnat_get_alias_set): Change return type to
4741 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4743 * decl.c, utils2.c: Fix whitespace in last change.
4745 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4747 * decl.c (compare_field_bitpos): Constify.
4748 * utils2.c (compare_elmt_bitpos): Likewise.
4750 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
4752 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
4753 anonymous access type.
4754 (pthread_sigmask): Now take an access sigset_t.
4756 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
4758 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
4760 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
4762 PR tree-optimization/25737
4763 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
4765 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4767 * trans.c (Attribute_to_gnu): When subtracting an
4768 offset from a pointer, use POINTER_PLUS_EXPR with
4769 NEGATE_EXPR instead of MINUS_EXPR.
4770 (gnat_to_gnu): Likewise.
4771 * utils.c (convert): When converting between
4772 thin pointers, use POINTER_PLUS_EXPR and sizetype
4774 * utils2.c (known_alignment): POINTER_PLUS_EXPR
4775 have the same semantics as PLUS_EXPR for alignment.
4776 (build_binary_op): Add support for the semantics of
4777 POINTER_PLUS_EXPR's operands.
4778 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
4780 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
4782 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
4783 of get_signed_or_unsigned_type.
4784 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
4786 2007-06-11 Bob Duff <duff@adacore.com>
4787 Thomas Quinot <quinot@adacore.com>
4789 * g-stsifd-sockets.adb (Create): Work around strange behavior of
4790 'bind' on windows that causes 'connect' to fail intermittently, by
4791 retrying the 'bind'.
4792 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4794 2007-06-10 Duncan Sands <baldrick@free.fr>
4796 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
4797 than to void, for the fields when making a new fat pointer type.
4798 (gnat_substitute_in_type): Now substitute_in_type.
4799 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
4800 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
4801 * utils.c (update_pointer_to): Update fat pointers by updating the
4802 dummy node pointers used for the fields.
4804 2007-06-06 Thomas Quinot <quinot@adacore.com>
4805 Bob Duff <duff@adacore.com>
4807 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
4808 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4809 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
4810 constant Thread_Blocking_IO, always True by default, set False
4811 on a per-runtime basis.
4812 (Need_Netdb_Buffer): New constant.
4814 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
4815 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
4818 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
4819 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
4820 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
4821 child package Task_Safe_NetDB
4822 (Host_Error_Messages): Add stub body.
4823 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4825 * g-soccon-mingw.ads: Add Windows-specific constants.
4826 (Need_Netdb_Buffer): New constant.
4827 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
4828 wrapper and import inet_addr(3) from the standard sockets library
4830 (In_Addr): Add alignment clause.
4831 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4833 2007-06-06 Robert Dewar <dewar@adacore.com>
4835 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4836 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
4837 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
4838 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
4839 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
4840 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
4841 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
4842 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
4843 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
4844 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
4845 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
4846 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
4847 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
4848 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4849 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4850 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
4851 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
4852 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
4853 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
4854 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
4855 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
4856 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
4857 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
4858 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
4859 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
4860 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
4861 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
4862 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
4863 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
4864 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
4865 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
4866 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
4867 Unchecked_* by Ada.Unchecked_*
4869 2007-06-06 Robert Dewar <dewar@adacore.com>
4871 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
4872 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
4873 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
4874 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
4875 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
4876 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
4878 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
4879 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
4880 s-tasloc.adb, s-tasloc.ads: New files.
4882 2007-06-06 Bob Duff <duff@adacore.com>
4885 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
4886 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
4887 (Send_Signal, Close): Raise Invalid_Process if the process id is
4889 (Pattern_Matcher_Access): Is now a general access type to be able to
4892 2007-06-06 Thomas Quinot <quinot@adacore.com>
4893 Arnaud Charlet <charlet@adacore.com>
4895 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
4896 (SIGEMT is now used instead of SIGTERM on AIX).
4898 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
4899 (Time_Slice_Supported): Set to True.
4900 Use SIGEMT instead of SIGTERM as SIGADAABORT.
4902 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4904 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
4905 (Time, Time)): Use To_Relative_Time rather than manual calculation to
4906 express the bounds of Duration as Time. Raise Time_Error when the
4907 result is greater or equal to the higher bound of Duration (on the
4909 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
4911 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
4913 ("-" (Time, Time)): Reorder code.
4914 (All_Leap_Seconds): Removed.
4915 (Arithmetic_Operations.Add): Remove sign related kludge.
4916 (Arithmetic_Operations.Difference): Control the leaps seconds processing
4917 with flag Leap_Support.
4918 (Arithmetic_Operations.Subtract): Remove sign related kludge.
4919 (Check_Within_Time_Bounds): New procedure.
4920 (Clock): Control the leap seconds processing with flag Leap_Support.
4921 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
4922 (Formatting_Operations.Split): Control the leap seconds processing with
4924 (Formatting_Operations.Time_Of): Control the leaps seconds processing
4925 with flag Leap_Support. Adjust the year, month and day (if applicable)
4926 when the value of day seconds designates a new day.
4927 (Split): Use parameter associations for better readability. Integrate
4929 (Time_Of): Use parameter associations for better readability. Integrate
4932 * a-calfor.adb (Split): Use parameter associations for better
4933 readability. Integrate flag Is_Ada_05.
4934 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
4935 better readability. Integrate flag Is_Ada_05.
4937 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4939 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
4940 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
4941 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
4942 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
4943 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
4944 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
4945 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
4946 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
4947 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
4948 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
4949 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
4950 time when entering this routine to detect a backward clock setting
4951 (manual setting or DST adjustment), to avoid waiting for a longer delay
4953 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
4954 Remove handling of deferred priority change, and replace by setting the
4955 task priority directly, as required by AI-188.
4957 (Max_Task_Image_Length): New constant.
4958 Replace Warnings (Off) by Unreferenced pragma, cleaner.
4959 (Dynamic_Priority_Support): Removed, no longer needed.
4960 (Poll_Base_Priority_Change): Ditto.
4961 (Set_Ceiling): Add this procedure to change the ceiling priority
4962 associated to a lock. This is a dummy implementation because dynamic
4963 priority ceilings are not supported by the underlying system.
4965 * a-dynpri.adb (Set_Priority): Take into account case where Target is
4966 accepting a RV with its priority boosted.
4967 Remove handling of deferred priority change, and replace by setting the
4968 task priority directly, as required by AI-188.
4970 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
4972 Remove handling of deferred priority change, and replace by setting the
4973 task priority directly, as required by AI-188.
4974 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
4977 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
4978 (Poll_Base_Priority_Change): Removed.
4979 Code clean up: use SSL.Current_Target_Exception.
4981 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
4982 to run as this is a potentially dispatching point.
4983 (Call_Synchronous): Use Local_Defer_Abort.
4984 (Callable): Relax assertion.
4985 (Selective_Wait): Relax assertion in case abort is not allowed.
4986 Remove handling of deferred priority change, and replace by setting the
4987 task priority directly, as required by AI-188.
4989 * s-tasuti.adb (Make_Passive): Adjust assertions.
4990 Remove handling of deferred priority change, and replace by setting the
4991 task priority directly, as required by AI-188.
4993 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4995 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4996 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4997 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
4998 system-vxworks-mips.ads, system-vxworks-alpha.ads,
4999 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
5000 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
5001 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
5002 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
5003 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
5004 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
5005 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
5006 This patch changes the largest non-binary modulus from 2**31-1 to
5008 (Compiler_System_Version): Removed, no longer used.
5009 Clean up system files by removing flags only used on a single target.
5010 Also remove obsolete flags, only used during bootstrap from system.ads
5011 (Address): Add a pragma Preelaborable_Initialization.
5013 * system-aix.ads: Ditto.
5014 (GCC_ZCX_Support): Set to true.
5015 Update priority range on AIX and map Ada priorities to target
5016 priorities appropriately for different scheduling policies.
5018 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
5020 2007-06-06 Vincent Celier <celier@adacore.com>
5022 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
5023 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
5025 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
5026 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
5027 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
5028 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5029 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
5030 MLib.Tgt, containing the default versions of the exported subprograms.
5031 For each platform, create a specific version of the body of new child
5032 package MLib.Tgt.Specific that contains only the body of subprograms
5033 that are different from the default.
5034 (Archive_Builder_Append_Options): New function.
5036 2007-06-06 Matthew Gingell <gingell@adacore.com>
5038 * s-osinte-aix.adb: Map Ada priorities to target priorities
5039 appropriately for different scheduling policies.
5041 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5043 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
5045 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
5046 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
5048 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
5050 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
5051 Noop on VMS, added for interface commonality.
5053 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5054 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5055 Olivier Hainque <hainque@adacore.com>
5057 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
5058 renamed expression of a full renaming at toplevel.
5059 (gnat_to_gnu_entity, case object): If not defining, do not look inside
5060 the values the constant is initialized to if it is an N_Allocator.
5061 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
5062 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
5063 (make_aligning_type): Accept an extra ROOM argument for storage to be
5064 made available before the aligned field, and an extra BASE_ALIGN
5065 argument for callers to pass the alignment guaranteed to be honored for
5066 the whole aligning object. Avoid call to finish_record_type, which only
5067 interferes with the sizes we want to set.
5068 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
5069 make_aligning_type for super-aligned objects on stack.
5070 (components_to_record): Pass the adjusted size of the type when creating
5071 fields in the qualified union for the variant part.
5072 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
5073 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
5075 (maybe_pad_type): Set TYPE_USER_ALIGN.
5076 (make_aligning_type): Likewise.
5077 ALIGN argument is unsigned int.
5078 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
5079 (gnat_to_gnu_param): Likewise, for parameters.
5080 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
5081 if it is constant and stems from a function call.
5082 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
5083 of the record is specified. Adjust accordingly.
5084 (adjust_packed): New static function.
5085 (gnat_to_gnu_field): Use it to adjust the packedness setting.
5086 (components_to_record): Likewise.
5087 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
5088 side-effects if the object is deemed constant.
5089 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
5090 type instead of merely finalizing it. Tidy.
5091 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
5092 <E_Access_Type>: Likewise.
5093 (defer_debug_incomplete_list): Rename to defer_finalize_list.
5094 (defer_debug_level): Delete.
5095 (gnat_to_gnu_entity) <debug_deferred>: Likewise
5096 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
5098 <E_Record_Type>: Do not explicitly defer finalizing the type.
5099 Adjust for write_record_type_debug_info renaming.
5100 <E_Subprogram_Type>: Likewise.
5101 Finalize deferred types right after deferred incomplete types are
5103 (rest_of_type_decl_compilation): New global function.
5104 (components_to_record): Rename defer_debug parameter to do_not_finalize.
5105 (components_to_record): Propagate the packedness to the fields of the
5106 qualified union type if there is a variant part.
5107 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
5108 instead of inline code to adjust the XUT field offsets.
5109 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
5110 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
5111 and write the debug info if the type derives from a discriminated one.
5112 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
5113 <E_Array_Subtype>: Likewise.
5114 <E_String_Literal_Subtype>: Likewise.
5115 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
5116 an alignment clause.
5117 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
5118 before giving warning.
5119 (prepend_one_attribute_to): New function, helper to prepend an attribute
5120 to an attribute list.
5121 (gnat_to_gnu_entity) <E_Procedure>: Use it.
5122 (prepend_attributes): Likewise.
5123 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
5124 <E_Array_Type>: Declare the padding type for the element type, if any.
5125 <E_Array_Subtype>: Likewise.
5126 (defer_limited_with): New variable.
5127 (Gigi_Equivalent_Type): New function.
5128 (gnat_to_gnu_entity): Use it at start and use result throughout.
5129 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
5130 Gigi_Equivalent_Type, support Limited_With, allow two levels of
5131 indirection, precompute if unconstrained array to simplify logic, and
5132 use defer_limited_with to defer elaboration of some types from limited
5134 (finalize_from_with_types): New function.
5136 2007-06-06 Gary Dismukes <dismukes@adacore.com>
5137 Eric Botcazou <ebotcazou@adacore.com>
5138 Tristan Gingold <gingold@adacore.com>
5139 Olivier Hainque <hainque@adacore.com>
5141 * trans.c (Identifier_to_gnu): Change test for deferred constant by
5142 adding guard that the entity is an E_Constant before testing presence
5143 of Full_view (and remove unnecessary test that entity is not a type).
5144 For a CONST_DECL used by reference, manually retrieve
5145 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
5146 (struct language_function): Move from utils.c to here.
5147 (struct parm_attr): New structure.
5148 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
5149 (f_parm_attr_cache): New macro.
5150 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
5151 expressions for the 'First, 'Last and 'Length attributes of the
5152 unconstrained array IN parameters.
5153 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
5154 Allocate the information structure for the function earlier, as well
5155 as the language-specific part.
5156 If the parameter attributes cache has been populated, evaluate the
5157 cached expressions on entry.
5158 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
5159 N_Procedure_Call_Statement and N_Indexed_Component.
5160 (Pragma_to_gnu): Translate inspection_point to an asm statement
5161 containaing a comment and a reference to the object (either its address
5162 for BLKmode or its value).
5163 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
5164 to go to DECL_INITIAL. Together with the size constraint relaxation
5165 in create_var_decl, enlarges the set of situations in which an
5166 identifier may be used as an initializer without implying elaboration
5168 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
5169 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
5171 (maybe_stabilize_reference): Remove lvalues_only parameter.
5172 (gnat_stabilize_reference): Adjust for above change.
5173 (gnat_to_gnu): Do not set location information on the result
5174 if it is a reference.
5175 (add_cleanup): Add gnat_node parameter and set the location of the
5177 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
5178 (Exception_Handler_to_gnu_zcx): Likewise.
5179 (gigi): Remove the cgraph node if the elaboration procedure is empty.
5180 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
5181 the former right after the latter.
5182 (start_stmt_group): Make global.
5183 (end_stmt_group): Likewise.
5184 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
5186 (gnu_program_error_label_stack): Likewise.
5187 (gigi): Initialize them.
5188 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
5189 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
5191 (push_exception_label_stack): New function.
5192 (takes_address): New function.
5194 * utils.c (struct language_function): Move to trans.c from here.
5195 (unchecked_convert): Do not wrap up integer constants in
5197 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
5198 the latter for aggregate types, unexpected by later passes, and relax an
5199 arbitrary size constraint on the former.
5200 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
5201 to compare the sizes.
5202 (convert_vms_descriptor): When converting to a fat pointer type, be
5203 prepared for a S descriptor at runtime in spite of a SB specification.
5204 (shift_unc_components_for_thin_pointers): New function.
5205 (write_record_type_debug_info): For variable-sized fields, cap the
5206 alignment of the pointer to the computed alignment.
5207 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
5208 If REP_LEVEL is 2, do not compute the sizes.
5209 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
5210 (build_unc_object_type): Likewise.
5211 (declare_debug_type): New function.
5213 * ada-tree.def: USE_STMT: removed (not emitted anymore).
5215 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
5216 no statement is expandable anymore.
5217 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
5218 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
5219 when the user requested it explicitely.
5220 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
5222 (get_alias_set): Return alias set 0 for a type if
5223 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
5225 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
5226 (DECL_FUNCTION_STUB): New accessor macro.
5227 (SET_DECL_FUNCTION_STUB): New setter macro.
5229 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
5231 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
5234 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5236 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
5237 Rename to Abort_Task_Interrupt to be able to keep the same interface
5238 as the rest of the targets.
5240 * s-osinte-vxworks.ads s-osinte-vxworks.adb
5241 (To_VxWorks_Priority): Remove explicit "in" mode indicator
5243 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
5246 2007-06-06 Robert Dewar <dewar@adacore.com>
5248 * a-chahan.ads: Remove obsolescent pragmas
5250 * a-chlat1.ads: Minor reformatting
5252 2007-06-06 Robert Dewar <dewar@adacore.com>
5254 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
5257 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
5260 * errout.ads (Finalize): Changed interface
5261 (Output_Messages): New procedure
5262 (Compilation_Errors): New Interface
5264 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
5265 Finalize/Output_Messages interface for Errout
5266 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
5269 2007-06-06 Thomas Quinot <quinot@adacore.com>
5270 Olivier Hainque <hainque@adacore.com>
5271 Robert Dewar <dewar@adacore.com>
5273 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
5275 (Raise_Current_Excep): Call Debug_Raise_Exception just before
5276 propagation starts, to let debuggers know about the event in a reliable
5278 (Local_Raise): Moved to System.Exceptions
5279 More convenient to have this as a separate unit
5281 * s-except.adb, s-except.ads: New files.
5283 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
5284 Debug_Unhandled_Exception in System.Exceptions where it belongs
5285 together with a couple of other debug helpers.
5286 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
5287 the former Unhandled_Exception.
5289 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
5290 (Warn_No_Exception_Propagation): New procedure
5291 (Warn_If_No_Propagation): Rewritten for new warning generation
5292 (Expand_Exception_Handlers): New warning generation
5293 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
5294 (Add_Exception_Label): Use Special_Exception_Package_Used for test
5295 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
5296 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
5297 even if restriction is set (makes life easier in Check_Returns)
5298 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
5299 checking exception identities.
5300 (Expand_Local_Exception_Handlers): Do not optimize when all others case
5301 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
5302 block for handler (used by Check_Returns)
5303 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
5304 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
5305 remove all exception handlers when optimizing local raise statements.
5306 (Find_Local_Handler): Use Get_Renamed_Entity
5307 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
5308 marked analyzed after expanding exception handlers, do not generate
5309 redundant cleanup actions, because they have been constructed already.
5311 2007-06-06 Thomas Quinot <quinot@adacore.com>
5313 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
5314 presence of this categorization pragma is mandated by the language.
5315 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
5318 2007-06-06 Vincent Celier <celier@adacore.com>
5319 Robert Dewar <dewar@adacore.com>
5321 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
5322 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
5323 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
5324 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5325 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
5326 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
5327 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
5328 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
5329 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
5330 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
5331 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
5333 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
5334 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
5335 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
5336 Use variables of types File_Name_Type and Unit_Name_Type in error
5338 (Get_Name): Add parameter Ignore_Special, and set it reading file name
5339 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
5341 Define flags Flag217-Flag230 with associated subprograms
5342 (Flag_Word5): New record type.
5343 (Flag_Word5_Ptr): New access type.
5344 (To_Flag_Word5): New unchecked conversion.
5345 (To_Flag_Word5_Ptr): Likewise.
5346 (Flag216): New function.
5347 (Set_Flag216): New procedure.
5349 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5351 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
5354 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
5356 2007-06-06 Javier Miranda <miranda@adacore.com>
5358 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
5360 (Object_Specific_Data_Array): This is now internal to the package.
5361 (Object_Specific_Data): This is now internal to the package.
5362 (Select_Specific_Data_Element): This is now internal to the package.
5363 (Select_Specific_Data_Array): This is now internal to the package.
5364 (Select_Specific_Data): This is now internal to the package.
5365 (Offset_To_Top_Function_Ptr): This is now public.
5366 (To_Offset_To_Top_Function_Ptr): Removed.
5367 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
5368 local to subprogram Offset_To_Top.
5369 (Predefined_DT): Removed.
5370 (Typeinfo_Ptr): Removed.
5371 (OSD): This function is now internal to this package.
5372 (SSD): This function is now internal to this package.
5373 (DT): New function that displaces the pointer to the table of primitives
5374 to get access to the enclosing wrapper record.
5375 (IW_Membership): Code cleanup.
5376 (Offset_To_Top): Code cleanup.
5377 (Predefined_DT): Removed.
5378 (Register_Interface_Tag): Removed.
5379 (Set_Interface_Table): Removed.
5380 (Set_Offset_Index): Removed.
5381 (Set_Offset_To_Top): Code cleanup.
5383 (Set_Signature): Removed.
5385 (Set_Tagged_Kind): Removed.
5386 (Typeinfo_Ptr): Removed.
5388 (Displace): Add missing check on null actual.
5390 * exp_disp.ads, exp_disp.adb
5391 (Select_Expansion_Utilities): Removed.
5392 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
5393 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
5394 the interface requires a new parameter.
5395 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
5396 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
5397 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
5398 Done to remove package Select_Expansion_Utilities.
5399 (Make_DT): New implementation for statically allocated dispatch tables.
5400 (Make_Secondary_DT): Moved to the scope of Make_DT.
5401 (Register_Primitive): Code cleanup plus incoporate the use of the new
5402 function DT_Address_Attribute.
5403 (Expand_Interface_Thunk): The profile of this subprogram has been
5404 changed to return the Thunk_Id and the corresponding code.
5405 (Fill_DT_Entry): Removed. Its functionality is now provided by
5406 subprogram Register_Primitive.
5407 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
5408 subprogram Register_Primitive.
5409 (Register_Primitive): New subprogram that incorporates the previous
5410 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
5411 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
5412 was only required to call Make_DT_Access_Action, which is now removed.
5413 (Ada_Actions): Removed
5414 (Action_Is_Proc): Removed
5415 (Action_Nb_Arg): Removed
5416 Replace all the calls to Make_DT_Access_Action by direct calls to
5417 Make_Procedure_Call_Statement or Make_Function_Call.
5418 (Set_DTC_Entity_Value): New subprogram.
5419 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
5420 (Expand_Interface_Thunk): Add missing support for primitives that are
5421 functions with a controlling result (case in which there is no need
5422 to generate the thunk).
5424 * exp_atag.ads, exp_atag.adb
5425 (Build_DT): New subprogram that displaces the pointer to reference the
5426 base of the wrapper record.
5427 (Build_Typeinfo_Offset): Removed.
5428 (RTE_Tag_Node): Removed.
5429 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
5430 (Build_Get_RC_Offset): Removed.
5431 (Build_Inherit_Predefined_Prims): Removed.
5432 (Build_Inherit_TSD: Removed.
5433 (Build_New_TSD): Removed.
5434 (Build_Set_External_Tag): Removed.
5435 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
5436 (Build_Set_Prim_Op_Address): Add documentation.
5437 (Build_Set_TSD): Removed.
5439 * rtsfind.ads, rtsfind.adb
5440 (Load_Fail): If load fails and we are not in configurable run-time
5441 mode, then raise Unrecoverable_Error.
5442 (Text_IO_Kludge): Generate an error message if a run-time library is
5443 not available in a given run-time (ie. zfp run-time).
5444 (RTE_Record_Component): Add code to check that the component we search
5445 for is not found in two records in the given run-time package.
5446 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
5447 (RE_DT_Predef_Prims_Offset): New entity
5448 (RE_Static_Offset_To_Top): New entity
5449 (RE_HT_Link): New entity.
5450 (System_Address_Image): Addition of this run-time package.
5451 (RE_Address_Image): New entity.
5452 (RE_Abstract_Interface): Removed.
5453 (RE_Default_Prim_Op_Count): Removed.
5454 (RE_DT_Entry_Size): Removed.
5455 (RE_DT_Min_Prologue_Size): Removed.
5456 (RE_DT_Prologue_Size): Removed.
5457 (RE_Ifaces_Table_Ptr): Removed.
5458 (RE_Interface_Data_Ptr): Removed.
5459 (RE_Type_Specific_Data): Removed.
5460 (RE_Primary_DT): Removed.
5461 (RE_Register_Interface_Tag): Removed.
5462 (RE_Set_Offset_Index): Removed.
5463 (RE_Set_OSD): Removed.
5464 (RE_Set_SSD): Removed.
5465 (RE_Set_Signature): Removed.
5466 (RE_Set_Tagged_Kind): Removed.
5467 (RE_Address_Array): New entity.
5468 (RE_DT): New entity.
5469 (RE_Iface_Tag): New entity.
5470 (RE_Interfaces_Table): New entity.
5471 (RE_No_Dispatch_Table): New entity.
5472 (RE_NDT_Prims_Ptr): New entity.
5473 (RE_NDT_TSD): New entity.
5474 (RE_Num_Prims): New entity.
5475 (RE_Offset_To_Top_Function_Ptr): New entity.
5476 (RE_OSD_Table): New entity.
5477 (RE_OSD_Num_Prims): New entity.
5478 (RE_Predef_Prims): New entity
5479 (RE_Predef_Prims_Table_Ptr): New entity.
5480 (RE_Primary_DT): New entity.
5481 (RE_Signature): New entity.
5482 (RE_SSD): New entity.
5483 (RE_TSD): New entity.
5484 (RE_Type_Specific_Data): New entity.
5485 (RE_Tag_Kind): New entity.
5487 2007-06-06 Thomas Quinot <quinot@adacore.com>
5489 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
5490 C imported variable.
5491 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
5494 2007-06-06 Robert Dewar <dewar@adacore.com>
5496 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
5499 2007-06-06 Vincent Celier <celier@adacore.com>
5501 * a-tifiio.adb (Put, internal): For negative numbers, check that there
5502 is room for at least one digit and the minus sign.
5503 (Put.Put_Character): Never put a character outside of the range of
5506 2007-06-06 Olivier Hainque <hainque@adacore.com>
5507 Eric Botcazou <ebotcazou@adacore.com>
5509 * utils2.c (build_allocator): Provide the extra arguments to
5510 make_aligning_type for super-aligned objects allocated from the default
5511 pool. Leave enough room for a pointer before the aligning field, and
5512 store the system's allocator return value there.
5513 (build_call_alloc_dealloc): When releasing a super-aligned object,
5514 retrieve the system's allocator return value from where build_allocator
5515 has stored it, just ahead of the adjusted address we are passed.
5516 (build_call_raise): Handle properly the generation of line numbers when
5517 the node is marked No_Location.
5518 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
5519 by using DECL_UID on ties.
5520 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
5522 (build_call_raise): Handle converting exception into goto; support new
5524 (build_component_ref): Add new arg to build_call_raise.
5526 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5528 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
5529 "." in the case of nnn.xxx when nnn terminates with an underscore.
5530 Parse the remaining "#" or ":" in the case of nnn#.xxx#
5532 2007-06-06 Robert Dewar <dewar@adacore.com>
5534 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
5536 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5537 Vincent Celier <celier@adacore.com>
5538 Robert Dewar <dewar@adacore.com>
5540 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
5542 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
5543 ((destructor)) for adafinal, even when switch -a is used.
5544 Do not issue pragma Linker_Destructor for adafinal when switch -a is
5546 (Gen_Object_Files_Options): Add formatting of Linker Options, when
5547 Output_Linker_Option_List is set. Suppress this formatting when
5548 Zero_Formatting is set.
5549 Add case for CLI_Target.
5550 (System_Restrictions_Used): New flag, used to avoid generating with of
5551 System_Restrictions and initialization of the data unless there is
5552 some use of System.Restrictions in the partition.
5553 (Check_System_Restrictions_Used): New procedure
5555 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
5556 since we only with this unit in the binder file if it is used elsewhere
5559 2007-06-06 Vincent Celier <celier@adacore.com>
5561 * bindusg.adb: Add line for @<response file>
5562 Add lines for new switches -R and -Z
5564 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
5565 hierarchy in the list of files of the closure when -R is used
5566 (Gnatbind): Accept arguments starting with '@' to indicate response
5567 files and take the arguments from the response files.
5568 If List_Closure is set, display the referenced files
5570 2007-06-06 Javier Miranda <miranda@adacore.com>
5571 Robert Dewar <dewar@adacore.com>
5572 Ed Schonberg <schonberg@adacore.com>
5574 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
5575 which the address-clause is applied to in-mode actuals (allowed by
5577 (Apply_Discriminant_Check): Do not generate a check if the type is
5578 constrained by a current instance.
5579 (Activate_Division_Check): New procedure
5580 (Activate_Overflow_Check): New procedure
5581 (Activate_Range_Check): New procedure
5582 Call these new Activate procedures instead of setting flags directly
5583 (Apply_Array_Size_Check): Removed, no longer needed.
5584 Code clean up: remove obsolete code related to GCC 2.
5585 (Get_E_Length): Protect against bomb in case scope is standard
5586 (Selected_Range_Checks): If the node to be checked is a conversion to
5587 an unconstrained array type, and the expression is a slice, use the
5588 bounds of the slice to construct the required constraint checks.
5589 Improve NOT NULL error messages
5590 (Apply_Constraint_Check): If the context is a null-excluding access
5591 type, diagnose properly the literal null.
5593 2007-06-06 Pascal Obry <obry@adacore.com>
5595 * clean.adb (Clean_Archive): Use untouched casing for the archive name
5596 and the corresponding .deps file.
5597 (Clean_Interface_Copy_Directory): Use untouched casing for the library
5598 src directory. Minor code-clean-up. Use untouched casing for files
5599 read into the library src dir.
5600 (Clean_Library_Directory): Idem.
5601 (Parse_Cmd_Line): Accept new switch -aP
5603 2007-06-06 Javier Miranda <miranda@adacore.com>
5604 Ed Schonberg <schonberg@adacore.com>
5605 Robert Dewar <dewar@adacore.com>
5606 Eric Botcazou <ebotcazou@adacore.com>
5607 Arnaud Charlet <charlet@adacore.com>
5609 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
5610 applicable to types that have the With_Type flag set. Returns the
5611 non-limited view of the type, if available, otherwise the type itself.
5612 For class-wide types, there is no direct link in the tree, so we have
5613 to retrieve the class-wide type of the non-limited view of the Etype.
5614 New attributes Static_Initialization and Static_Elaboration_Desired.
5615 Remove the pragma Thread_Body, and the associated flag
5616 Is_Thread_Body in entities, and all related code.
5617 (Suppress_Value_Tracking_On_Call): New flag
5618 E_Exception has Esize and Alignment fields
5619 (Universal_Aliasing): New function.
5620 (Set_Universal_Aliasing): New procedure.
5621 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
5622 (Check_Nested_Access): New procedure.
5623 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5624 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5625 (Related_Interface): New attribute. Present in dispatch table pointer
5626 components of records. Set to point to the entity of the corresponding
5628 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
5629 (Original_Access_Type): Remove, not needed.
5630 (Root_Type): Handle properly subtypes of class-wide-types.
5633 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
5634 class-wide types visible through limited-with clauses.
5635 (Try_Primitive_Operation): When examining all primitive operations of a
5636 tagged type, do not consider subprograms labeled as hidden unless they
5637 belong to a private generic type with a tagged parent.
5638 (Try_Object_Operation): Extensive rewriting, to handle properly various
5639 overloading cases, when several ancestors may have class-wide operations
5640 that are possible candidates, and when the overloaded functions return
5641 array types and have defaulted parameters so that the call may be
5642 interpreted as an indexing.
5643 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
5644 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
5645 successive actuals before analyzing the call itself.
5646 (Try_Primitive_Operation): A primitive operation is compatible with the
5647 prefix if the prefix has a synchronized type and the type of the formal
5648 is its corresponding record, as can be the case when the primitive
5649 operation is declared outside of the body of the type.
5650 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
5651 perform homonym traversal, looking for class-wide operation matches
5652 (formerly done in statements of Try_Class_Wide_Operation). Matches on
5653 access parameters are now restricted to anonymous access types.
5654 (Mark_Allocator): An allocator with a discriminant association parent is
5656 (Try_One_Prefix_Interpretation): If the type of the object is
5657 incomplete, as can be happen when it is a limited view obtained through
5658 a limited_with_clause, the selected component is not part of a prefixed
5660 (Complete_Object_Operation): Diagnose properly an object that is not
5661 aliased when the corresponding controlling formal is an access
5663 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
5664 ambiguous calls in prefixed notation, where two primitives differ only
5665 in that the controlling argument of one is an access parameter.
5667 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
5668 whether a function that returns an unconstrained type can be inlined.
5669 (Process_Formals): Diagnose properly the illegal use of an incomplete
5670 type in the profile of an access_to_subprogram declaration.
5671 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
5672 operations are attached to the corresponding record.
5673 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
5674 When processing a primitive of a concurrent type which implements an
5675 interface change the type of all controlling formals to that of the
5676 corresponding record type.
5677 (Check_Synchronized_Overriding): Relax the conditional logic when trying
5678 to determine the tagged type to which a primitive belongs.
5679 (Check_Conventions): Capture condition to ignore a primitive operation
5680 (which is shared between the loop in Check_Conventions and the one in
5681 Check_Convention) in a new local function Skip_Check.
5682 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
5683 confusion with Check_Conventions' own Prim_Op local variable.
5684 (Create_Extra_Formals): Test for a tagged result type rather than a
5685 controlling result when determining whether to add a BIP_Alloc_Form
5686 formal and a BIP_Final_List formal to the function.
5687 (Check_Conformance); For parameters that are anonymous access types,
5688 subtype conformance requires that the not null and the constant
5689 indicators must match
5690 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
5691 to retrieve the appropriate type when processing a concurrent type
5692 declared within a generic. Minor comment reformatting. Change invocation
5693 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
5695 (Analyze_Subprogram_Body): If the return type of a function is an
5696 anonymous access to the limited view of a class-wide type, and the
5697 non-limited view of the type is available, update the type of the
5698 function so that code can be generated.
5699 (Process_Formals): In case of access-subtype itype whose designated
5700 type is also an itype (situation that happens now with access to
5701 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
5702 attribute to avoid backend problems.
5703 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
5704 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
5705 anonymous types' designated types are same before testing
5706 Subtypes_Statically_Match.
5707 (Create_Extra_Formals): Test for a named access parameter that is a
5708 controlling formal as an additional condition for adding an
5709 accessibility level formal. This can occur in the subp type created for
5710 dispatching calls in Expand_Dispatching_Call, and allows calling
5711 Create_Extra_Formals from that procedure rather than special-casing the
5712 extra formals there.
5713 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
5714 when the function has a controlling result.
5715 (Check_Returns): Add much more knowledge of the optimization of local
5716 raise statements to gotos, to retain proper warnings in this case.
5717 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
5718 nodes when looking for last statement.
5720 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
5721 class-wide types visible through limited with clauses.
5722 (Add_One_Interp): If the operands are anonymous access types, the
5723 predefined operator on universal_access is immediately visibles
5724 (Find_Unique_Type): Handle anonymous access to subprogram types just as
5725 other anonymous access types.
5726 (Disambiguate): Take into account CIL convention.
5727 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
5729 2007-06-06 Robert Dewar <dewar@adacore.com>
5731 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
5732 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
5733 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
5734 Fix lower bound of tables.
5737 * nlists.adb: Ditto.
5738 (Prev_Node, Next_Node): Change index type to Int so that it properly
5739 covers the range First_Node_Id - 1 up.
5741 2007-06-06 Javier Miranda <miranda@adacore.com>
5742 Ed Schonberg <schonberg@adacore.com>
5743 Bob Duff <duff@adacore.com>
5744 Hristian Kirtchev <kirtchev@adacore.com>
5746 * exp_aggr.ads, exp_aggr.adb:
5747 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
5748 in extension aggregates.
5749 (Flatten): Other conditions being met, an aggregate is static if the
5750 low bound given by component associations is different from the low
5751 bound of the base index type.
5752 (Packed_Array_Aggregate_Handled): If the component type is itself a
5753 packed array or record, the front-end must expand into assignments.
5754 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
5755 Init_Pr, instead of Ancestor_Is_Expression.
5756 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
5757 coextension chain root, either generate a list controller or use the
5758 already existing one.
5759 (Static_Array_Aggregate): New procedure to construct a positional
5760 aggregate that can be handled by the backend, when all bounds and
5761 components are compile-time known constants.
5762 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
5763 types covering interface types into assignments.
5764 (Replace_Type): move to Build_Record_Aggr_Code.
5765 (Expand_Record_Aggr_Code): if the target of the aggregate is an
5766 interface type, convert to the definite type of the aggregate itself,
5767 so that needed components are visible.
5768 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
5769 components and the context is an extended return statement do not
5770 create a transient block for it, to prevent premature finalization
5771 before the return is executed.
5772 (Gen_Assign): Do not generate a call to deep adjust routine if the
5773 component type is itself an array of controlled (sub)-components
5774 initialized with an inner aggregate.
5775 (Component_Check): New name for Static_Check. This name is now more
5776 appropriate, and documentation is added which was missing.
5777 (Component_Check): Add test for bit aligned component value
5778 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
5779 Tagged_Comps, name is more appropriate given added function below.
5780 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
5782 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5783 Javier Miranda <miranda@adacore.com>
5784 Robert Dewar <dewar@adacore.com>
5786 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
5787 Terminated: Add unchecked type conversion from System.Address to
5788 System.Tasking.Task_Id when calling the predefined primitive
5790 Disable new Ada 05 accessibility check for JVM.NET targets, which
5791 cannot be implemented in a practical way.
5792 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
5793 the sources always references the tag of the actual object. Therefore,
5794 if 'Tag is applied in the sources to class-wide interface objects we
5795 generate code that displaces "this" to reference the base of the object.
5796 (Expand_N_Attribute_Reference, case Size): Return specified size if
5798 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
5799 has code that displaces the pointer of the object to manage interface
5800 types. However this code must not be executed when the prefix is a
5801 subprogram. This bug caused the wrong expansion of the internally
5802 generated assignment that fills the dispatch table when the primitive
5803 is a function returning a class-wide interface type.
5804 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
5805 Set_Attribute_Name for Name_Unaligned_Valid.
5807 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5808 Gary Dismukes <dismukes@adacore.com>
5810 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5811 If the initialization is the equivalent aggregate of the initialization
5812 procedure of the type, do not remove it.
5813 (Expand_N_Attribute_Definition_Clause): Exclude access variables
5814 initialized to null from having their expression reset to empty and
5815 note this exception in the comment.
5817 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5818 Robert Dewar <dewar@adacore.com>
5819 Ed Schonberg <schonberg@adacore.com>
5820 Gary Dismukes <dismukes@adacore.com>
5822 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
5823 Add "with" and "use" clauses for Sem_Attr.
5824 (Expand_Current_Value): Do not replace occurences of attribute
5825 references where the prefix must be a simple name.
5827 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
5828 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
5829 Attribute_Requires_Simple_Name_Prefix.
5830 (Name_Modifies_Prefix): Body of new function.
5831 (Requires_Simple_Name_Prefix): Body of new function.
5832 (Resolve_Attribute, case Access): Improve error message for case of
5833 mismatched conventions.
5834 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
5836 (Analyze_Attribute, case 'Access): If the type of the prefix is a
5837 constrained subtype for a nominal unconstrained type, use its base type
5838 to check for conformance with the context.
5839 (Resolve_Attribute): Remove test of the access type being associated
5840 with a return statement from condition for performing accessibility
5841 checks on access attributes, since this case is now captured by
5842 Is_Local_Anonymous_Access.
5843 (Analyze_Access_Attribute): Set Address_Taken on entity
5844 (Analyze_Attribute, case Address): Set Address_Taken on entity
5845 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
5846 validating an access attribute whose prefix is a current instance.
5847 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
5848 applied to dispatching operations, if freezing is required then we set
5849 the attribute Has_Delayed_Freeze in the prefix's entity.
5850 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
5851 current scope if access of local subprogram taken
5852 (Analyze_Access_Attribute): Check legality of self-reference even if the
5853 expression comes from source, as when a single component association in
5854 an aggregate has a box association.
5855 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
5856 the prefix if it is a protected operation and the attribute is
5857 Unrestricted_Access.
5858 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
5859 reference to the base type of the context, to force a constraint check
5860 when the context is an access subtype with an explicit constraint.
5861 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
5862 node is rewritten as an interface conversion. leave unanalyzed after
5863 resolution, to ensure that type checking against the context will take
5866 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5867 Javier Miranda <miranda@adacore.com>
5868 Robert Dewar <dewar@adacore.com>
5870 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
5871 wrapper when the full view of the controlling type of an inherited
5872 function that dispatches on result implements interfaces.
5873 (Expand_N_Object_Declaration): In cases where the type of the
5874 declaration is anonymous access, create finalization list for it.
5875 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
5876 if the object has no explicit initialization, to match description of
5877 functionality of pragam Persistent_BSS.
5878 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
5879 new function to build static aggregates, to replace initialization call
5880 when static initialization is desired.
5881 (Freeze_Type): Generate a list controller for an access type whenever
5882 its designated type has controlled anonymous access discriminants.
5883 (Build_Equivalent_Aggregate): New procedure to compute a static
5884 aggregate to be used as default initialization for composite types,
5885 instead of a generating a call to the initialization procedure for the
5887 (Build_Initialization_Call): When available, replace a call to the
5888 initialization procedure with a copy of the equivalent static aggregate
5890 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
5891 declarations for objects of a class-wide interface type, rather than
5892 just identifiers, to prevent visibility problems.
5893 (Expand_N_Object_Declaration): When expanding the declaration for an
5894 object of a class-wide interface type, preserve the homonym chain of
5895 the original entity before exchanging it with that of the generated
5896 renaming declaration.
5897 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
5898 active, because there is no way to handle the exception.
5899 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
5900 to do a minimum decoration of the Access_Disp_Table list.
5901 (Expand_Record_Controller): Avoid the addition of the controller between
5902 the component containing the tag of a secondary dispatch table and its
5903 adjacent component that stores the offset to the base of the object.
5904 This latter component is only generated when the parent type has
5905 discriminants ---documented in Add_Interface_Tag_Components).
5906 (Apply_Array_Size_Check): Removed, no longer needed.
5907 (Expand_N_Full_Type_Declaration): If the type has anonymous access
5908 components, create a Master_Entity for it only if it contains tasks.
5909 (Build_Init_Procedure): Suppress the tag assignment compiling under
5911 (Freeze_Record_Type): Remove code associated with creation of dispatch
5913 (Init_Secondary_Tags): Update type of actuals when generating calls to
5914 Ada.Tags.Set_Offset_To_Top
5915 (Stream_Operation_OK): Disable use of streams compiling under no
5917 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
5918 if Has_Init_Expression set.
5919 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
5920 Register_Primitive, which provides the same functionality.
5921 (Requires_Init_Proc): Return false in case of interface types.
5922 (Add_Secondary_Tables): Use the new attribute Related_Interface to
5924 (Predefined_Primitive_Freeze): Do not assume that an internal entity
5925 is always associated with a predefined primitive because the internal
5926 entities associated with interface types are not predefined primitives.
5927 Therefore, the call to Is_Internal is replaced by a call to the
5928 function Is_Predefined_Dispatching_Operation.
5929 (Make_Eq_If): When generating the list of comparisons for the
5930 components of a given variant, omit the controller component that is
5931 present if the variant has controlled components.
5933 2007-06-06 Javier Miranda <miranda@adacore.com>
5934 Hristian Kirtchev <kirtchev@adacore.com>
5935 Bob Duff <duff@adacore.com>
5937 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
5938 handle the creation of finalization lists and calls for nested
5939 coextensions when the root of the chains is part of a return statement.
5940 (Inside_A_Return_Statement): New function inside Complete_Coextension_
5942 (Expand_Record_Equality): Skip components that are interface types.
5943 (Displace_Allocator_Pointer): Add missing support for interface subtypes
5944 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
5945 with Rewrite_Coextension. Change the condition for detecting coextension
5947 (Is_Local_Access_Discriminant): Removed.
5948 (Rewrite_Coextension): New routine which rewrites a static coextension
5949 as a temporary and uses its unrestricted access in the construction of
5951 (Complete_Coextension_Finalization): New routine. Generate finalization
5952 attachment calls to all delayed coextensions.
5953 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
5954 the allocator is not a coextension itself and has delayed coextensions.
5955 If the current allocator is controlled, but also a coextension, delay
5956 the generation of the finalization attachment call.
5957 Rename local variable "Node" to "Nod" in order to avoid confusion with
5959 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
5960 limited types that are not inherently limited. Such an allocator is
5961 illegal, but is generated by the expander for a return statement, to
5962 copy the result onto the secondary stack. This is the only case where a
5963 limited object can be copied. Generate code to displace the pointer
5964 to the object if the qualified expression is a class-wide interface
5965 object. Such displacement was missing and hence the copy of the object
5967 (Apply_Accessibility_Check): Handle allocated objects initialized in
5969 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
5970 and Expand_Allocator_Expression. Allocating class-wide interface objects
5971 this routine displaces the pointer to the allocated object to reference
5972 the component referencing the corresponding secondary dispatch table.
5973 Expand_Allocator_Expression): Add missing support to allocate class-wide
5974 interface objects initialized with a qualified expression.
5975 (Get_Allocator_Final_List): Test for an anonymous access type that is a
5976 function result type, and use the finalization list associated with the
5977 function scope in that case (such an anonymous type should not be
5978 treated like an access parameter's type).
5980 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5981 Gary Dismukes <dismukes@adacore.com>
5982 Javier Miranda <miranda@adacore.com>
5984 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
5985 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
5986 required exception handler.
5987 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
5988 properly the case of a function whose return type is a limited
5989 class-wide interface type. Modify the code of the accessibility
5990 check to handle class-wide interface objects. In this case we need to
5991 displace "this" to reference the primary dispatch table to get access
5992 to the TSD of the object (to evaluate its accessibility level).
5993 (Expand_N_Extended_Return_Statement): Test for a tagged result type
5994 rather than a controlling result as one of the conditions for
5995 generating tests of the implicit BIP_Alloc_Form formal. The
5996 initialization assignment is also handled according to whether the
5997 result is tagged instead of controlling.
5998 In the case where the init assignment is inserted in the "then" part of
5999 the allocation conditional, rewrite the target to be a dereference of
6000 the implicit BIP_Object_Access formal.
6001 If the returned value is unconstrained and created on the secondary
6002 stack, mark the enclosing block and function so that the secondary
6003 stack is not reclaimed on return.
6004 Treat returns from functions with controlling results similarly to
6005 returns from functions with unconstrained result subtypes.
6006 If the object returned is unconstrained, and an allocator must be
6007 created for it, analyze the allocator once the block for the extended
6008 return is installed, to ensure that finalizable components
6009 of the expression use the proper finalization list. Guard the call to
6010 Move_Final_List with a check that there is something to finalize.
6011 (Make_Tag_Ctrl_Assignment): Use "old" handling
6012 of controlled type assignment for virtual machines, since new code uses
6013 unsupported features (such as direct access to bytes in memory).
6015 2007-06-06 Gary Dismukes <dismukes@adacore.com>
6016 Ed Schonberg <schonberg@adacore.com>
6018 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
6019 accessibility actual, check for the case of an aliased object that has
6020 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
6021 we fall into processing for the attribute rather than the name of the
6023 (Expand_Inline_Call): If an actual is a literal, and the corresponding
6024 formal has its address taken in the body, create a temporary to capture
6025 value. If the return type is a limited interface, do not treat the
6026 return value as Controlled.
6027 (Is_In_Place_Function): If the return type is a limited interface,
6028 treat as returning in place. The actual returned object may not always
6029 be limited, but the caller has to assume that it is returned in place.
6030 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
6031 context of an allocator, use the correct finalization chain (that is,
6032 the chain belonging to the access type, rather than the chain belonging
6033 to the current scope).
6034 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
6035 result type rather than a controlling result as a precondition for
6036 adding an allocation form actual to a build-in-place call.
6037 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
6038 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
6039 primitive in the dispatch tables. This work is now done by Make_DT when
6041 (Register_Predefined_DT_Entry): Removed.
6042 (Add_Return): If end label is not present, use sloc of last statement
6043 for generated return statement in procedure, for better gdb behavior
6045 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
6046 object address nodes to ensure proper processing by routines like
6048 (Expand_Call): Fix generation of validity check for parameter
6049 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
6050 the allocation form parameter if the result subtype is constrained,
6051 except when the function has a controlling result.
6052 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
6053 rather than Is_Controlled and Has_Controlled_Component, since we want to
6054 include class-wide result types in this treatment. Also test for a
6055 controlling result, since that also requires passing a finalization
6057 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
6058 even when the result subtype is constrained, to handle calls involving
6059 controlling results.
6060 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
6061 is now called even when the result subtype is constrained, to handle
6062 calls involving controlling results.
6063 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
6064 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
6065 now performs the test).
6066 (Make_Build_In_Place_Call_In_Object_Declaration):
6067 Add_Alloc_Form_Actual_* is now called even when the result subtype is
6068 constrained, to handle calls involving controlling results.
6069 (Add_Return): Accomodate rewritten pattern from local raise to goto
6070 transformation, so that we still recognize an transfer statement
6071 and do the right thing here in that case.
6072 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
6073 and end of subprogram code.
6074 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
6075 support for primitives that are functions (without formals) with a
6077 (Inherited_From_Formal): If the actual subtype has not generic parent
6078 type, it is not an actual for a formal derived type, and there is no
6079 operation to inherit from the formal.
6081 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6082 Thomas Quinot <quinot@adacore.com>
6084 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
6085 inserted cleanup code appropriately for GDB use.
6086 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
6087 exception handler for Deep_Adjust or Deep_Finalize.
6088 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
6089 Raise_From_Controlled_Operation is available, use a call to that
6090 subprogram instead of a plain "raise Program_Error" node to raise
6091 Program_Error if an exception is propagated from an Adjust or Finalize
6093 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
6094 appears in the optional statement list of a triggering alternative, the
6095 scope actions can be inserted directly there, and not in the list that
6096 includes the asynchronous select itself.
6098 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6099 Robert Dewar <dewar@adacore.com>
6100 Hristian Kirtchev <kirtchev@adacore.com>
6102 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
6103 generated exception handler appropriately when debugging generated code.
6104 Deal properly with No_Exception_Propagation restriction mode.
6105 (Expand_N_Abort_Statement): Add an unchecked type conversion from
6106 System.Address to System.Tasking.Task_Id when processing the result of
6107 the predefined primitive _disp_get_task_id.
6108 (Expand_N_Asynchronous_Select): Clarify comment.
6109 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
6110 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
6111 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
6112 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
6113 privals and for generated call to Complete_Entry_Body, for better gdb
6115 (Copy_Result_Type): Utility to construct a parameter and result profile
6116 for protected functions whose return type is an anonymous access to
6118 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
6120 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
6121 point when the local-raise-to-goto transformation has taken place.
6123 2007-06-06 Javier Miranda <miranda@adacore.com>
6124 Nicolas Setton <setton@adacore.com>
6126 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
6127 functionality when the backend is generating code.
6128 Otherwise any serious error
6129 reported by the backend calling the frontend routine Error_Msg
6130 changes the Compilation_Mode to Check_Semantics, disables the
6131 functionality of this routine and causes the generation of
6132 spureous additional errors.
6134 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
6135 debugging information now generated by the compiler for fat-pointer
6137 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
6139 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
6141 2007-06-06 Thomas Quinot <quinot@adacore.com>
6143 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
6144 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6145 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6146 For a remote call to a function with a classwide return type, apply an
6147 E.4(18) check to the returned value.
6148 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
6149 stream attributes of the designated type of an RACW, as they are not
6150 dispatching primitive operations.
6152 2007-06-06 Geert Bosch <bosch@adacore.com>
6154 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
6156 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
6158 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
6159 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
6161 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
6163 2007-06-06 Javier Miranda <miranda@adacore.com>
6165 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
6166 attribute compiling package Ada.Tags under No_Run_Time_Mode.
6168 2007-06-06 Javier Miranda <miranda@adacore.com>
6170 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
6171 deallocation of class-wide interface objects.
6172 (Expand_Dispatching_Constructor_Call): Take into account that if the
6173 result of the dispatching constructor is an interface type, the
6174 function returns a class-wide interface type; otherwise the returned
6175 object would be actual. The frontend previously accepted returning
6176 interface types because Expand_Interface_Actuals silently performed
6177 the management of the returned type "as if" it were a class-wide
6179 (Expand_Dispatching_Constructor_Call): Replace call to
6180 Make_DT_Access_Action by direct call to Make_Function_Call.
6182 2007-06-06 Robert Dewar <dewar@adacore.com>
6183 Ed Schonberg <schonberg@adacore.com>
6185 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
6186 compute masking constant, since we now set Esize properly to the
6188 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
6189 to match the alignment.
6190 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
6191 packed arrays of 8 bits or less.
6193 * freeze.adb (Freeze_Entity): When freezing the formals of a
6194 subprogram, freeze the designated type of a parameter of an access type
6195 only if it is an access parameter.
6196 Increase size of C convention enumeration object
6197 (Freeze_Entity, array type case): Make sure Esize value is properly
6198 adjusted for the alignment if it is known.
6199 (Freeze_Entity, array type case): When checking bit packed arrays for
6200 the size being incorrect, check RM_Size, not Esize.
6201 (Freeze_Record_Type): Check for bad discriminated record convention
6202 (In_Exp_Body): Return true if the body is generated for a subprogram
6203 renaming, either an attribute renaming or a renaming as body.
6204 (Check_Itype): If the designated type of an anonymous access component
6205 is a non-protected subprogram type, indicate that it is frozen, to
6206 prevent out-of-scope freeze node at some subsequent call.
6207 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
6208 only if the subprogram is neither imported nor exported, as well as the
6209 NCA descriptor class if the subprogram is exported.
6211 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6212 Arnaud Charlet <charlet@adacore.com>
6213 Robert Dewar <dewar@adacore.com>
6214 Gary Dismukes <dismukes@adacore.com>
6216 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
6217 default initialization on an imported object, when there is no
6218 initialization call generated for it.
6219 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
6222 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
6223 Static_Elaboration_Desired.
6224 Remove pragma Thread_Body.
6225 Implement a new pragma No_Body
6226 Removes the Explicit_Overriding pragma
6227 Remove Optional_Overriding pragma
6228 (Prag): Deal with Universal_Aliasing.
6229 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6230 Pragma_CIL_Constructor): New names.
6232 * sem_cat.adb (Validate_Object_Declaration): An initialization that
6233 uses the equivalent aggregate of a type must be treated as an implicit
6235 (Get_Categorization): Check a unit for pragma Preelaborate only if it
6236 has none of the other categories.
6237 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
6238 to apply Import to an object renaming declaration.
6240 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
6241 from a C++ class should be declared as limited and that it will be
6242 considererd limited.
6243 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
6244 should be declared as limited and that it will be considererd limited.
6245 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
6246 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
6247 (Analyze_Pragma): Deal with Universal_Aliasing.
6248 (Sig_Flags): Likewise.
6249 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
6250 (Overflow_Checks_Unsuppressed): New flag.
6251 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6252 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
6253 case of JVM or .NET targets, and compiling user code.
6254 Add debugging convenience routine rv
6256 2007-06-06 Robert Dewar <dewar@adacore.com>
6258 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
6260 (Build_Elementary_Input_Call): For floating-point use right type in the
6261 absence of strange size or stream size clauses.
6262 (Build_Elementary_Write_Call): Same fix
6263 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
6264 set to value that does not match base type size.
6266 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6268 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
6269 object of a limited type can be initialized with a call to a function
6270 that returns in place. If the limited type has unknown discriminants,
6271 and the underlying type is a constrained composite type, build an actual
6272 subtype from the function call, as is done for private types.
6273 (Side_Effect_Free): An expression that is the renaming of an object or
6274 whose prefix is the renaming of a object, is not side-effect free
6275 because it may be assigned through the renaming and its value must be
6276 captured in a temporary.
6277 (Has_Controlled_Coextensions): New routine.
6278 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
6279 as is done for other limited types.
6280 (Non_Limited_Designated_Type): new predicate.
6281 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
6283 Remove all handling of with_type clauses.
6285 * par-ch10.adb: Remove all handling of with_type clauses.
6287 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
6288 checksum if the main source could not be parsed.
6289 (Loat_Unit): When processing a child unit, determine properly whether
6290 the parent unit is a renaming when the parent is itself a child unit.
6291 Remove handling of with_type clauses.
6293 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
6294 (Set_Is_Static_Coextension): New procedure.
6295 (Has_Local_Raise): New function
6296 (Set_Has_Local_Raise): New procedure
6297 (Renaming_Exception): New field
6298 (Has_Init_Expression): New flag
6299 (Delay_Finalize_Attach): Remove because flag is obsolete.
6300 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
6301 Remove all handling of with_type clauses.
6302 (Exception_Junk): Can now be set in N_Block_Statement
6304 2007-06-06 Vincent Celier <celier@adacore.com>
6305 Robert Dewar <dewar@adacore.com>
6307 * frontend.adb (Frontend): Return immediately if the main source could
6308 not be parsed, because of preprocessing errors.
6310 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
6311 (Gnat1drv): Exit with errors if the main source could not be parsed,
6312 because of preprocessing errors.
6313 (Check_Rep_Info): New procedure
6315 2007-06-06 Robert Dewar <dewar@adacore.com>
6317 * g-hesorg.ads, g-heasor.ads,
6318 g-busorg.ads, g-bubsor.ads: Update documentation
6319 GNAT.Heap/Bubble_Sort_G is now pure
6321 2007-06-06 Robert Dewar <dewar@adacore.com>
6323 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
6325 2007-06-06 Robert Dewar <dewar@adacore.com>
6326 Ed Schonberg <schonberg@adacore.com>
6328 * g-comlin.ads, g-comlin.adb:
6329 Add new warning for renaming of function return objects
6331 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
6332 (Tree_Read): Use size of object instead of type'object_size, since the
6333 latter is incorrect for packed array types.
6334 (Tree_Write): Same fix
6336 * opt.ads: Add new warning for renaming of function return objects
6337 (Generating_Code): New boolean variable used to indicate that the
6338 frontend as finished its work and has called the backend to process
6339 the tree and generate the object file.
6340 (GCC_Version): Is now private
6341 (Static_Dispatch_Tables): New constant declaration.
6342 (Overflow_Checks_Unsuppressed): New flag.
6343 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6344 (List_Closure): New flag for gnatbind (-R)
6345 Zero_Formatting: New flag for gnatbind (-Z)
6346 (Special_Exception_Package_Used): New flag.
6347 (Warn_On_Unrepped_Components): New flag.
6349 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
6350 unit is a compilation unit, rather than relying on its scope, so that
6351 Standard can be renamed.
6352 (Analyze_Object_Renaming): Add new warning for renaming of function
6354 Also reject attempt to rename function return object in Ada 83 mode.
6355 (Attribute_Renaming): In case of tagged types, add the body of the
6356 generated function to the freezing actions of the type.
6357 (Find_Type): A protected type is visible right after the reserved word
6358 "is" is encountered in its type declaration. Set the entity and type
6359 rather than emitting an error message.
6360 (New_Scope): Properly propagate Discard_Names to inner scopes
6361 (Check_Nested_Access): New procedure.
6362 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
6363 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6365 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
6366 Add new warning for renaming of function return objects
6367 (Check_References): Suppress warnings for objects whose type or
6368 base type has Warnings suppressed.
6369 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
6370 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
6372 2007-06-06 Vincent Celier <celier@adacore.com>
6373 Emmanuel Briot <briot@adacore.com>
6374 Olivier Hainque <hainque@adacore.com>
6376 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
6377 absolute value of Header.Block_Size when displaying the freed physical
6379 (Allocate): Compute Storage_Address using Integer_Address, not
6380 Storage_Offset, because the range of Storage_Offset may not be large
6382 (Configure): New parameter Low_Level_Traces
6383 (Allocate, Deallocation, Free_Physically): Added low-level traces
6384 (Configure): new parameter Errors_To_Stdout.
6385 (Output_File): new subprogram
6386 (Deallocate, Dereference): Send error messages to the proper stream
6387 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
6388 documented. Previous code would send it to the current output file
6389 defined in GNAT.IO, which might not be stdout
6390 (Is_Valid): Adjust comment to mention that a positive reply means that
6391 Header_Of may be used to retrieve the allocation header associated with
6392 the subprogram Storage address argument. Return False early if this
6393 address argument is misaligned.
6395 2007-06-06 Vincent Celier <celier@adacore.com>
6397 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
6399 (ASIS_Main): New global variable
6400 (Get_Closure): New procedure
6401 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
6402 check, metric or pretty. Call Get_Closure in this case.
6403 (Check_Files): For GNAT LIST, check all sources of all projects when
6404 All_Projects is True.
6405 (GNATCmd): Accept -U for GNAT LIST
6407 2007-06-06 Vincent Celier <celier@adacore.com>
6409 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
6411 Correct error message when invocation of the linker fails
6412 Add explicit size clause for the C imported variables
6413 Object_List_File_Supported and Using_GNU_Linker to emphasize that
6414 we expect char size.
6415 Read target parameters earlier, since this is needed to set
6416 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
6419 2007-06-06 Vincent Celier <celier@adacore.com>
6422 Add 3 spaces before the default project directory when displaying
6423 the project search path.
6424 Add new command line switch '-l' to display license information.
6426 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
6428 * gmem.c: Add support for timestamps on memory operations.
6430 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
6431 operations (not used currently, just foundation for future
6432 enhancements). Add possibility to perform full dump of gmem.out file.
6433 (Print_Back_Traces): Declare accesses to root arrays constants since
6434 they aren't modified.
6435 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
6437 2007-06-06 Vincent Celier <celier@adacore.com>
6439 * gnatsym.adb: Update Copyright notice
6440 (Parse_Cmd_Line): Accept new switch -D
6441 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
6444 * prj.ads (Policy): New policy Direct
6445 (Yes_No_Unknown): New enumeration type
6446 (Project_Data): New component Libgnarl_Needed
6448 * prj-nmsc.adb (Check_For_Source): When recording a source file make
6449 use the untouched pathname casing.
6450 (Get_Directories): Ensure that the Display_Exec_Directory is using the
6451 proper casing on non case-sensitive platforms like Windows.
6452 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
6453 on all platforms, as it is not possible to know which one is allowed
6454 before processing the project files.
6455 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
6456 specified when symbol policy is Direct. Check that when there is a
6457 symbol file defined (either by default or with attribute
6458 Library_Symbol_File) it is not the same as the reference symbol file.
6459 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
6460 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
6462 (Record_Ada_Source): Record a source that has been locally removed in an
6465 * symbols.ads (Policy): New policy Direct
6467 * symbols-vms.adb (Initialize): Take new policy Direct in case
6470 2007-06-06 Vincent Celier <celier@adacore.com>
6472 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
6473 Correct obvious bug (return Dir; instead of return Directory;).
6474 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
6476 2007-06-06 Thomas Quinot <quinot@adacore.com>
6478 * g-pehage.adb (Produce): Open output files in Binary mode, so that
6479 they have UNIX line endings (LF only) even on Windows, and thus pass
6480 all GNAT style checks.
6482 2007-06-06 Emmanuel Briot <briot@adacore.com>
6484 * g-regpat.adb (Quote): Fix improper quoting of '.'
6486 2007-06-06 Thomas Quinot <quinot@adacore.com>
6488 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
6489 default, set False on a per-runtime basis.
6490 (Need_Netdb_Buffer): New constant.
6492 * g-socket.ads, g-socket.adb: Import new package
6493 GNAT.Sockets.Thin.Task_Safe_NetDB.
6494 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
6495 binding to obtain proper message.
6496 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
6497 Replace various occurrences of Arry (Arry'First)'Address with the
6498 equivalent Arry'Address (GNAT always follows implementation advice from
6500 (Get_Host_By_Address, Get_Host_By_Name,
6501 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
6502 instead, rely on platform-specific task safe netdb operations provided
6505 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
6506 parameter Process_Blocking_IO.
6507 (Host_Error_Messages): Add stub body.
6508 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
6509 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
6510 Safe_Getservbyport): Move functions into new child package
6512 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
6513 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
6514 (In_Addr): Add alignment clause.
6516 2007-06-06 Robert Dewar <dewar@adacore.com>
6518 * g-trasym.ads, g-traceb.ads: Update list of supported targets
6519 Add note about symbolic traceback
6521 2007-06-06 Pascal Obry <obry@adacore.com>
6523 * hostparm.ads (Normalized_CWD): Use the host directory separator
6524 instead of the hardcoded forward slash which is not the proper
6525 character on Windows for example.
6528 2007-06-06 Vincent Celier <celier@adacore.com>
6529 Arnaud Charlet <charlet@adacore.com>
6531 * a-clrefi.adb, a-clrefi.ads: New files
6533 * impunit.adb: Add s-os_lib in the list of user visible units.
6534 (Non_Imp_File_Names_95): Add a-clrefi to this list
6535 Remove obsolete run-time entries.
6536 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
6537 "a-exetim" -- Ada.Execution_Time
6538 "a-extiti" -- Ada.Execution_Time.Timers
6540 * mlib-prj.ads, mlib-prj.adb
6541 (Build_Library): Use untouched object dir and library dir. At the
6542 same time makes sure that the checks are done using the canonical
6543 form. Removes hard-coded directory separator and use the proper host
6545 (Process_Project): Do not look in object directory to check if libgnarl
6546 is needed for a library, if there is no object directory.
6547 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
6549 (Build_Library): When invoking gnatbind, use a response file if the
6550 total size of the arguments is too large.
6552 * Makefile.rtl: (g-sttsne): New object file.
6553 Add entry for a-clrefi, s-utf_32, System.Exceptions
6555 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
6556 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
6557 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
6558 Change g-string to s-string, g-os_lib to s-os_lib
6559 Change all g-utf_32 references to s-utf_32
6561 2007-06-06 Tristan Gingold <gingold@adacore.com>
6562 Olivier Hainque <hainque@adacore.com>
6564 * init.c: Do not adjust IP of an imported VMS exception of ia64.
6565 LIB$STOP is called to raise an exception and the IP of the exception
6566 is the instruction right after the call.
6567 (__gnat_adjust_context_for_raise, AIX): Implement.
6568 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
6569 adjust_context_for_raise before Raise_From_Signal_Hanler.
6570 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
6571 siginfo is passed to the handler, necessary to let the zcx propagation
6572 engine unwind past it.
6574 2007-06-06 Olivier Hainque <hainque@adacore.com>
6576 * initialize.c (__gnat_initialize for vxworks): Update documentation
6577 on the ZCX support, using different sets of crtstuff objects than with
6580 2007-06-06 Robert Dewar <dewar@adacore.com>
6582 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
6584 (Layout_Type): Fix recomputation of size from alignment.
6586 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6587 Javier Miranda <miranda@adacore.com>
6589 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
6590 association in an instance.
6591 (Copy_Generic_Node): If the node is a string literal, no need to copy
6593 (Is_Generic_Formal): For a formal subprogram, the declaration is the
6594 grandparent of the entity.
6595 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
6596 to simplify handling of formal interfaces that derive from other formal
6598 (Instantiate_Subprogram_Body): The defining unit name of the body of
6599 the instance should be a defining identifier.
6600 (Install_Formal_Packages): make global to the package, for use in
6601 instantiations of child units.
6602 (Analyze_Package_Instantiation): Do not attempt to set information on an
6603 enclosing master of an entry when expansion is disabled.
6604 (Instantiate_Type): If the actual is a tagged synchronized type and the
6605 generic ancestor is an interface, create a generic actual for the
6606 corresponding record.
6607 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
6608 declaration, to ensure that the interface list is processed correctly.
6609 (Inline_Instance_Body): If enclosing scope is an instance body, remove
6610 its entities from visibiility as well.
6611 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
6612 given with a named association, analyze the expression only, not the
6613 discriminant association itself.
6614 (Reset_Entity): If the analysis of a selected component is transformed
6615 into an expanded name in the prefix of a call with parameters, do not
6616 transform the original node into an expanded name, to prevent visibility
6617 errors in the case of nested generics.
6618 (Check_Private_View): For an array type, check whether the index types
6619 may need exchanging.
6621 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6622 Vincent Celier <celier@adacore.com>
6624 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
6625 since both are separated.
6626 Add support for imported CIL packages.
6627 Add further special handling of "value_type" for CIL.
6628 Add special handling of pragma Import for CIL.
6630 * make.ads, make.adb: When switch -eS is used, direct all outputs to
6631 standard output instead of standard error, except errors.
6632 (Absolute_Path): Use untouched casing for the parent directory.
6633 (Add_Library_Search_Dir): Use the untouched directory name.
6634 (Add_Source_Search_Dir): Idem.
6635 (Change_To_Object_Directory): Update output to use proper casing.
6636 (Create_Binder_Mapping_File): Use the untouched filename to set
6638 (Gnatmake): Use untouched library and executable directory names.
6639 (Insert_Project_Sources): Use untouched filename for spec and body.
6640 (Is_In_Object_Directory): Use untouched object directory.
6641 (Mark_Directory): Idem.
6642 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
6643 contains the non-canonical filename in all cases.
6644 (Change_To_Object_Directory): In verbose mode, display the name of the
6645 object directory we're changing to.
6646 (Compile_Sources): Make sure, when a project file is used, to compile
6647 the body of the unit, when there is one, even when only the spec is
6648 recorded in an ALI file.
6649 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
6651 (Report_Compilation_Failed): New procedure
6652 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
6653 procedures moved from the spec to the body.
6654 (Extract_Failure): Removed, not used
6655 Replace explicit raises of exception Bind_Failed and Link_Failed with
6656 calls to Make_Failed with the proper message.
6657 Replace explicit raises of exception Compilation_Failed with calls to
6658 procedure Report_Compilation_Failed.
6659 (Initialize): Create mapping files unconditionally when using project
6662 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6663 Pragma_CIL_Constructor): New names.
6665 * targparm.ads, targparm.adb
6666 (Compiler_System_Version): Removed, no longer used.
6667 (Get_Target_Parameters): Relax checks on system.ads validity. Add
6668 handling of two new system flags: JVM and CLI.
6670 2007-06-06 Jose Ruiz <ruiz@adacore.com>
6671 Arnaud Charlet <charlet@adacore.com>
6673 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
6674 time, use the default s-interr body that provides interrupt support
6676 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
6677 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
6678 g-soccon.ads, and s-taprop.adb for the marte run time.
6679 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
6680 timers are supported on marte.
6681 (EH_MECHANISM for marte): Do not use ZCX.
6682 (THREADSLIB for marte): Use -lmarte.
6683 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
6684 Add mlib-tgt-specific.o to gnatmake objects
6685 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
6687 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
6688 6, either kernel or rtp, use a specialized version of s-osinte.ads.
6690 2007-06-06 Pascal Obry <obry@adacore.com>
6692 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
6694 2007-06-06 Vincent Celier <celier@adacore.com>
6696 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
6697 separator, use instead the proper host directory separator.
6698 (Copy_ALI_Files): Make sure that an already existing ALI file in the
6699 ALI copy dir is writable, before doing the copy.
6701 * mlib-utl.ads, mlib-utl.adb:
6702 (Gcc): If length of command line is too long, put the list of object
6703 files in a response file, if this is supported by the platform.
6704 (Ar): If invocation of the archive builder is allowed to be done in
6705 chunks and building it in one shot would go above an OS dependent
6706 limit on the number of characters on the command line, build the archive
6709 2007-06-06 Vincent Celier <celier@adacore.com>
6711 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
6712 of specified object file is not equal to base name of source.
6714 2007-06-06 Javier Miranda <miranda@adacore.com>
6715 Hristian Kirtchev <kirtchev@adacore.com>
6716 Ed Schonberg <schonberg@adacore.com>
6718 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
6719 the full type declaration.
6720 (Analyze_Component_Declaration): Add local variable E to capture the
6721 initialization expression of the declaration. Replace the occurences of
6722 Expression (N) with E.
6723 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
6724 limited interface object with a function call.
6725 (Array_Type_Declaration): If the declaration lacks subtype marks for
6726 indices, create a simple index list to prevent cascaded errors.
6727 (Is_Null_Extension): Ignore internal components created for secondary
6728 tags when checking whether a record extension is a null extension.
6729 (Check_Abstract_Interfaces): Add missing support for interface subtypes
6730 and generic formals.
6731 (Derived_Type_Declaration): Add missing support for interface subtypes
6732 and generic formals.
6733 (Analyze_Object_Declaration): If an initialization expression is
6734 present, traverse its subtree and mark all allocators as static
6736 (Add_Interface_Tag_Component): When looking for components that may be
6737 secondary tags, ignore pragmas that can appear within a record
6739 (Check_Abstract_Overriding): an inherited function that dispatches on
6740 result does not need to be overriden if the controlling type is a null
6742 (Mentions_T): Handle properly a 'class attribute in an anonymous access
6743 component declaration, when the prefix is an expanded name.
6744 (Inherit_Component): If the derivation is for a private extension,
6745 inherited components remain visible and their ekind should not be set
6747 (Find_Type_Of_Object): In the case of an access definition, always set
6748 Is_Local_Anonymous_Access. We were previously not marking the anonymous
6749 access type of a return object as a local anonymous type.
6750 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
6751 range with character literal bounds.
6752 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
6753 (Access_Subprogram_Declaration): Indicate that the type declaration
6754 depends on an incomplete type only if the incomplete type is declared
6756 (Analyze_Subtype_Declaration): Handle properly subtypes of
6757 synchronized types that are tagged, and that may appear as generic
6759 (Access_Subprogram_Declaration): An anonymous access to subprogram can
6760 appear as an access discriminant in a private type declaration.
6761 (Add_Interface_Tag_Components): Complete decoration of the component
6762 containing the tag of a secondary dispatch table and the component
6763 containing the offset to the base of the object (this latter component
6764 is only generated when the parent type has discriminants --as documented
6766 (Inherit_Components): Use the new decoration of the tag components to
6767 improve the condition that avoids inheriting the components associated
6768 with secondary tags of the parent.
6769 (Build_Discriminanted_Subtype): Indicate to the backend that the
6770 size of record types associated with dispatch tables is known at
6772 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
6773 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
6774 to include task, protected, and synchronized interfaces as limited
6776 (Process_Discriminants): Remove the setting of
6777 Is_Local_Anonymous_Access on the type of (anonymous) access
6778 discriminants of nonlimited types.
6779 (Analyze_Interface_Type_Declaration): Complete the decoration of the
6780 class-wide entity it is is already present. This situation occurs if
6781 the limited-view has been previously built.
6782 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
6784 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
6787 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6789 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
6790 of the type that specify the position of interface tags when the type
6791 inherits discriminated array components from the parent type.
6792 If a component is initialized with a box, check for the presence of a
6793 default expression in its declaration before using its default
6794 initialization procedure.
6795 (Resolve_Record_Aggregate): If a component is box-initialized, and the
6796 component type has a discriminants, create a partial aggregate for it
6797 by copying the discriminants of the component subtype.
6798 Reject attempt to initialize a discriminant with a box.
6799 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
6800 associated with dispatch tables is known at compile time.
6801 (Get_Value): If an association in a record aggregate has a box
6802 association, and the corresponding record component has a default
6803 expression, always copy the default expression, even when the
6804 association has a single choice, in order to create a proper
6805 association for the expanded aggregate.
6807 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6808 Robert Dewar <dewar@adacore.com>
6810 * par-ch12.adb (P_Generic_Associations): The source position of an
6811 Others association is that of the others keyword, not that of the token
6812 that follows the box.
6813 (P_Formal_Type_Definition): Handle formal access types that carry a
6816 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
6817 multiple identifier are present, save Scan_State before scanning the
6818 colon, to ensure that separate trees are constructed for each
6820 (P_Identifier_Declarations): For object declaration, set new flag
6821 Has_Init_Expression if initialization expression present.
6822 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
6823 Improve NOT NULL error messages
6825 2007-06-06 Robert Dewar <dewar@adacore.com>
6827 * par-ch4.adb: (P_Name): Recover from literal used as name
6829 2007-06-06 Vincent Celier <celier@adacore.com>
6831 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
6833 In the "not" case, recursive call with Complemented set to True.
6834 Do not allow "or" or "and" operators when Complemented is True.
6836 2007-06-06 Vincent Celier <celier@adacore.com>
6838 * prj.adb (Project_Empty): Gives default value for new component
6841 * prj-attr.ads: Minor reformatting
6843 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
6844 directory using the untouched casing.
6845 (For_All_Source_Dirs): Idem.
6847 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
6848 directories specified with switches -aP.
6849 (Add_Search_Project_Directory): New procedure
6850 (Initialize_Project_Path): Put the directories in table
6851 Search_Directories in the project search path.
6852 (Initialize_Project_Path): For VMS, transform into canonical form the
6855 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6857 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
6858 true if configurable run-time or No_Run_Time is set.
6859 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
6860 processing an unit which is not the one being compiled.
6862 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6864 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
6865 Replace UC by Ada.UC
6867 * s-bitops.adb: Get rid of System.Pure_Exceptions.
6868 Replace UC by Ada.UC
6870 2007-06-06 Robert Dewar <dewar@adacore.com>
6872 * scng.adb: (Check_End_Of_Line): Deal with very long lines
6874 2007-06-06 Robert Dewar <dewar@adacore.com>
6876 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
6877 Remove no longer used nodes.
6879 2007-06-06 Javier Miranda <miranda@adacore.com>
6880 Ed Schonberg <schonberg@adacore.com>
6881 Robert Dewar <dewar@adacore.com>
6883 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
6884 on obsolescent withed unit in case of limited-withed units.
6885 (Analyze_Compilation_Unit): Add guard to code that removed an
6886 instantiation from visibility, to prevent compiler aborts when
6887 instantiation is abandoned early on.
6888 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
6889 current unit being analyzed, and Distinguish local incomplete types
6890 from limited views of types declared elsewhere.
6891 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
6892 to state that the class-wide entity is shared by the limited-view
6894 (Analyze_With_Clause): Improve placement of flag for case of
6896 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
6897 manner similar to GNAT.Current_Exception. This is a violation of
6898 restriction (No_Exception_Propagation), and also inhibits the
6899 optimization of local raise to goto.
6900 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
6901 and if so set Most_Recent_Exception_Used flag in Opt, and also check
6902 for violation of restriction No_Exception_Propagation.
6904 2007-06-06 Javier Miranda <miranda@adacore.com>
6905 Hristian Kirtchev <kirtchev@adacore.com>
6906 Gary Dismukes <dismukes@adacore.com>
6908 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
6909 use of entity Exception_Occurrence if it is not available in the
6912 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
6913 concurrent types are declared within an Ada 2005 generic, build their
6914 corresponding record types since they are needed for overriding-related
6916 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
6917 protected type does not implement a task interface or a nonlimited
6919 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
6920 type does not implement a protected interface or a nonlimited interface.
6921 (Single_Task_Declaration, Single_Protected_Declaration): use original
6922 entity for variable declaration, to ensure that debugging information
6923 is correcty generated.
6924 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
6925 routines if the expander is not active.
6926 (Analyze_Task_Body): Mark all handlers to stop optimization of local
6927 raise, since special things happen for task exception handlers.
6929 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
6930 concurrent types declared within a generic.
6931 (Check_Dispatching_Operation): Do not emit warning about late interface
6932 operations in the context of an instance.
6933 (Check_Dispatching_Call): Remove restriction against calling a
6934 dispatching operation with a limited controlling result.
6935 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
6936 Register_Interface_DT_Entry by calls to Register_Primitive.
6937 (Check_Dispatching_Formals): Handle properly a function with a
6938 controlling access result.
6940 2007-06-06 Robert Dewar <dewar@adacore.com>
6941 Arnaud Charlet <charlet@adacore.com>
6943 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
6944 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
6945 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
6946 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
6947 message when using a VM, since this attribute is not supported.
6948 (Analyze_Record_Representation_Clause): Give unrepped component warnings
6950 * usage.adb: Add new warning for renaming of function return objects
6951 Indicate that -gnatwp and -gnatwP concern front-end inlining
6952 Add line for -gnatyg
6953 Add usage information for -gnatw.c/C
6955 2007-06-06 Robert Dewar <dewar@adacore.com>
6956 Ed Schonberg <schonberg@adacore.com>
6959 (Find_Var): Do not consider function call in test for infinite loop
6960 warning if warnings set off for function entity.
6961 (One_Bound): Do not create a temporary for a loop bound if it is a
6963 (Analyze_Assignment): Traverse the right hand side of an assignment and
6964 mark all allocators as static coextensions.
6965 (Analyze_Assignment): Exempt assignments involving a dispatching call
6966 to a function with a controlling access result from the check requiring
6967 the target to be class-wide.
6969 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
6970 Ed Schonberg <schonberg@adacore.com>
6971 Robert Dewar <dewar@adacore.com>
6972 Javier Miranda <miranda@adacore.com>
6974 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
6975 chain of coextensions when an allocator serves as the root of such a
6977 (Propagate_Coextensions): Remove the test for the root being an
6979 (Resolve_Allocator): Add condition to ensure that all future decoration
6980 occurs on an allocator node. Add processing and cleanup for static
6982 (Valid_Conversion): If the operand type is the limited view of a
6983 class-wide type, use the non-limited view is available to determine
6984 legality of operation.
6985 (Ambiguous_Character): move to spec, for use elsewhere.
6986 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
6987 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
6989 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
6990 Do_Division_Check flag explicitly.
6991 (Resolve_Actuals): If the actual is of a synchronized type, and the
6992 formal is of the corresponding record type, this is a call to a
6993 primitive operation of the type, that is declared outside of the type;
6994 the actual must be unchecked-converted to the type of the actual
6995 (Resolve_Call): Kill all current values for any subprogram call if
6996 flag Suppress_Value_Tracking_On_Call is set.
6997 (Resolve_Type_Conversion): Generate error message the the operand
6998 or target of interface conversions come from a limited view.
6999 (Check_Infinite_Recursion): Ignore generated calls
7000 (Check_Allocator_Discrim_Accessibility): New procedure for checking
7001 that an expression that constrains an access discriminant in an
7002 allocator does not denote an object with a deeper level than the
7003 allocator's access type.
7004 (Resolve_Allocator): In the case of an allocator initialized by an
7005 aggregate of a discriminated type, check that associations for any
7006 access discriminants satisfy accessibility requirements by calling
7007 Check_Allocator_Discrim_Accessibility.
7008 (Resolve_Equality_Op): Handle comparisons of anonymous access to
7009 subprogram types in the same fashion as other anonymous access types.
7010 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
7011 message that is not a continuation message.
7012 (Resolve_Type_Conversion): Add missing support for conversion to
7014 (Resolve_Actuals): Introduce a transient scope around the call if an
7015 actual is a call to a function returning a limited type, because the
7016 resulting value must be finalized after the call.
7017 (Resolve_Actuals): If the call was given in prefix notations, check
7018 whether an implicit 'Access reference or implicit dereference must be
7019 added to make the actual conform to the controlling formal.
7021 2007-06-06 Robert Dewar <dewar@adacore.com>
7022 Javier Miranda <miranda@adacore.com>
7024 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
7025 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
7026 overriding of an inherited private subprogram now there is no need to
7027 inherit its dispatching slot and reduce the size of the dispatch table.
7028 Set_All_DT_Position now ensures that the same slot is now assigned to
7029 both entities. This is required to statically build the dispatch table.
7030 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
7031 of calling Set_All_DT_Position to re-evaluate the position of the
7032 entries in the dispatch table. Such reevaluation is not desired if
7033 the tagged type is already frozen.
7035 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7036 Gary Dismukes <dismukes@adacore.com>
7037 Robert Dewar <dewar@adacore.com>
7038 Javier Miranda <miranda@adacore.com>
7040 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
7041 reference acts as an lvalue when the attribute name modifies the prefix
7042 (Is_Coextension_Root): New routine.
7043 (Mark_Static_Coextensions): New routine.
7044 (Type_Access_Level): Revise code for checking the level of the
7045 anonymous access type of a return object.
7046 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
7047 (Matches_Prefixed_View_Profile): Remove the no longer necessary
7048 retrieval of the corresponding controlling record type.
7049 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
7050 concurrent types declared within a generic as well as class wide types.
7051 Emit a mode incompatibility error whenever a protected entry or routine
7052 override an interface routine whose first parameter is not of mode
7053 "out", "in out" or access to variable.
7054 (Overrides_Synchronized_Primitive): Rename to
7055 Find_Overridden_Synchronized_Primitive.
7056 (Collect_Interface_Components): New subprogram that collects all the
7057 components of a tagged record containing tags of secondary dispatch
7059 (Add_Global_Declaration): New procedure
7060 (Abstract_Interface_List): Handle properly the case of a subtype of a
7062 (Type_Access_Level): In the case of a type whose parent scope is a
7063 return statement, call Type_Access_Level recursively on the enclosing
7064 function's result type to determine the level of the return object's
7066 (Build_Elaboration_Entity): Build name of elaboration entity from the
7067 scope chain of the entity, rather than the unit name of the file name.
7068 (Check_Nested_Access): New procedure.
7069 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
7070 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
7071 (Get_Renamed_Entity): Utility routine for performing common operation
7072 of chasing the Renamed_Entity field of an entity.
7074 2007-06-06 Robert Dewar <dewar@adacore.com>
7076 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
7078 (Check_A_Call): Add check for entry call which was causing blowup
7080 2007-06-06 Olivier Hainque <hainque@adacore.com>
7082 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
7083 special code on ia64-vms to handle major incompatibilities between the
7084 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
7085 this routine with a very different set of arguments and expectations on
7088 2007-06-06 Thomas Quinot <quinot@adacore.com>
7090 * socket.c (__gnat_close_signalling_fd): New function.
7091 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
7092 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
7093 New supporting functions for task safe Netdb operations.
7095 2007-06-06 Thomas Quinot <quinot@adacore.com>
7096 Olivier Hainque <hainque@adacore.com>
7098 * a-except-2005.ads, a-except-2005.adb
7099 (Raise_From_Controlled_Operation): New procedure in
7100 (private part of) Ada.Exceptions (standard runtime version). Used to
7101 provide informational exception message when Program_Error is raised as
7102 a result of an Adjust or Finalize operation propagating an exception.
7103 (Rmsg_28): Fix description for E.4(18) check.
7104 (Raise_Current_Excep): Call Debug_Raise_Exception just before
7105 propagation starts, to let debuggers know about the event in a reliable
7107 Take the address of E and dereference to make sure it is homed on stack
7108 and prevent the stores from being deleted, necessary for proper
7109 debugger behavior on "break exception" hits.
7110 (Local_Raise): Moved to System.Exceptions
7112 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
7113 exception message from the current occurrence and raise Program_Error
7114 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
7116 2007-06-06 Jose Ruiz <ruiz@adacore.com>
7117 Arnaud Charlet <charlet@adacore.com>
7119 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
7122 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
7123 priority associated to a lock.
7125 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
7126 assertion to take into account case of no abort restriction.
7127 (Initialize_Protection_Entries): Add initialization for the field
7128 New_Ceiling associated to the protected object.
7129 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
7132 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7133 since this function needs to be set consistently with Update_Exception.
7135 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7136 since this function needs to be set consistently with Update_Exception.
7138 * s-taskin.ads: Update comments on
7139 Interrupt_Server_Blocked_On_Event_Flag.
7140 (Unbind_Handler): Fix handling of server_task wakeup
7141 (Server_Task): Set self's state so that Unbind_Handler can take
7142 appropriate actions.
7143 (Common_ATCB): Now use a constant from System.Parameters to determine
7144 the max size of the Task_Image field.
7146 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
7147 Initialize_Analyzer function.
7148 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
7149 take into account case of no abort restriction.
7150 ([Vulnerable_]Complete_Master): Modify assertion.
7152 * s-tataat.adb (Finalize): Use the nestable versions of
7153 Defer/Undefer_Abort.
7155 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
7157 * s-tpobop.ads: Update comments.
7159 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
7160 of locking the object manually, to avoid inconsistencies between
7161 Lock/Unlock_Entry assertions.
7163 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
7165 application and System.Parameters.No_Abort is True.
7166 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
7167 (Unbind_Handler): Fix handling of server_task wakeup
7168 (Server_Task): Set self's state so that Unbind_Handler can take
7169 appropriate actions.
7171 2007-06-06 Thomas Quinot <quinot@adacore.com>
7173 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
7174 declarations instead of an explicit null body, for conciseness.
7176 2007-06-06 Robert Dewar <dewar@adacore.com>
7178 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
7179 illegal aggregate and the type is still Any_Composite.
7180 (Subtypes_Statically_Match): Fix problem of empty discriminant list
7182 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7184 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
7185 to prevent subsequent expansion.
7187 2007-06-06 Robert Dewar <dewar@adacore.com>
7189 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
7191 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7192 Robert Dewar <dewar@adacore.com>
7194 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
7196 (Write_Itype): Handle case of string literal subtype, which
7197 comes up in this context.
7198 (Update_Itype): when debugging expanded code, update sloc of itypes
7199 associated with defining_identifiers and ranges, for gdb use.
7200 (Sprint_Node_Actual): Add static keyword to object or exception
7201 declaration output if Is_Statically_Allocated is True.
7202 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
7203 or task body, so that the tree carries the proper Sloc information for
7205 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
7207 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7209 * s-secsta.adb (Chunk): Ensure this object has a static size known at
7210 compile time, to avoid dynamic memory allocation
7211 (Elaboration code): Only use dynamic memory allocation when needed.
7213 2007-06-06 Quentin Ochem <ochem@adacore.com>
7215 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
7217 (Stack_Analyzer): Added field "Overflow_Guard"
7218 (Task_Result): Added field "Overflow_Guard".
7219 (Index_Str): New constant.
7220 (Task_Name_Str): New constant.
7221 (Actual_Size_Str): New constant.
7222 (Pattern_Array_Element_Size): New constant.
7223 (Get_Usage_Range): New subprogram.
7224 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
7225 Now align the output.
7227 (Initialize): Added value for Overflow_Guard.
7228 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
7229 Update the value of the overflow guard according to the actual
7230 beginning of the pattern array.
7231 (Initialize_Analyzer): Added parameter Overflow_Guard.
7232 Take this parameter into accound when computing the max size.
7233 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
7234 (Report_Result): Removed extra useless procedure.
7235 Updated call to Output_Result.
7236 Moved full computation of the Task_Result here.
7238 2007-06-06 Thomas Quinot <quinot@adacore.com>
7240 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
7241 Thread_Blocking_IO, always True by default, set False on a per-runtime
7243 Add Windows-specific constants
7244 Add new constant Need_Netdb_Buffer.
7245 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7246 not, whether to use getXXXbyYYY_r.
7248 * gsocket.h: Add new constant Need_Netdb_Buffer.
7249 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7250 not, whether to use getXXXbyYYY_r.
7252 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7254 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
7255 than their first call.
7256 Add type Dummy_Communication_Block used in the generation of the pre-
7257 defined dispatching primitive _disp_asynchronous_select.
7258 (Storage_Element): Put Pragma Universal_Aliasing on it.
7260 2007-06-06 Vincent Celier <celier@adacore.com>
7262 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
7265 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
7266 letter if it is not followed by a '/' or a '\'.
7267 (Windows): New Boolean function
7269 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
7271 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
7273 (Containing_Directory): Raise Use_Error when the directory is a root
7275 (Extension): When returning the result, use a conversion to Result_Type,
7276 not a qualification.
7278 2007-06-06 Robert Dewar <dewar@adacore.com>
7280 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
7281 (Set_Style_Check_Options): Recognize new -gnatyg style switch
7283 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
7284 Warn_On_Non_Local_Exception to False, to turn off warnings for
7285 No_Exception_Propagation in ZFP runtime.
7286 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
7288 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
7290 2007-06-06 Vincent Celier <celier@adacore.com>
7292 * switch-b.adb (Scan_Binder_Switches): Add processing for new
7295 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
7296 (Scan_Make_Switches): Recognize new switch -aP
7298 2007-06-06 Matthew Gingell <gingell@adacore.com>
7299 Jose Ruiz <ruiz@adacore.com>
7301 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
7302 VxWorks task descriptor in the Ada run time, call a C subprogram
7303 (__gnat_get_stack_info) that extracts the required information.
7305 * sysdep.c: Back out temporary lynxos workaround.
7306 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
7307 time the stack information associated to the currently executing task.
7308 Only VxWorks systems require this function.
7310 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7312 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
7313 add the stack bias if the offset is computed from a frame address.
7314 (__gnat_backtrace): Adjust for above change.
7316 2007-06-06 Thomas Quinot <quinot@adacore.com>
7318 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
7319 PE_Non_Transportable_Actual.
7320 (By_Descriptor_Last): New constant.
7321 (By_Copy_Return): Likewise.
7323 2007-06-06 Vincent Celier <celier@adacore.com>
7325 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
7328 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
7329 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
7330 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
7331 Add missing comment for /OPTIMIZE=SPACE
7332 Add entry for OPTIMIZE=SPACE
7333 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
7334 Add documentation for new qualifiers corresponding to -gnatw.c/.C
7336 2007-06-06 Vincent Celier <celier@adacore.com>
7337 Robert Dewar <dewar@adacore.com>
7339 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
7342 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
7343 Document gnatbind switch -a
7344 (case Constructions): Document that variables declarations are allowed
7345 for previously declared variables.
7346 Fix external lib project example
7347 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
7348 Indicate that "#if not X or Y then" is not allowed in input files to
7350 Document gnatw.x and gnatw.X warning flags
7351 Mention -Winline switch to activate warnings when back-end inlining is
7353 Add gnatcheck rule descriptions
7354 Describe how to use the GNAT driver to call a tool on a closure.
7355 Describe how to run project-wide checks or metrics.
7356 Document gnatbind's -R option
7357 Updated to account for Ada 2005 support
7359 * gnat_rm.texi (Case Construction): Allow variable declarations for
7360 previously declared variables.
7361 (Representation Clauses and Pragmas): Lift restriction on alignment
7362 clauses for record types.
7363 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
7364 Document No_Exception_Propagation restriction
7365 Document No_Body pragma
7366 Updated to account for Ada 2005 support; corrected some typos
7367 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
7369 * gnat-style.texi: Make it clear that we never use mode IN for
7370 procedures or functions
7372 * ug_words: Add entries for -gnatw.x and -gnatw.X
7373 Add entries for -gnatw.c/.C
7375 2007-06-06 Pascal Obry <obry@adacore.com>
7376 Vincent Celier <celier@adacore.com>
7378 * makegpr.adb (Add_Archive_Path): Use untouched object and library
7379 dirs and library name.
7380 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
7382 (Build_Library): Idem.
7383 (Compile_Individual_Sources): Idem.
7384 (Compile_Link_With_Gnatmake): Idem.
7385 (Compile_Sources): Idem.
7386 (Get_Imported_Directories): Idem.
7387 (Link_Executables): Idem. Same change for the executable dir.
7388 (Check_Compilation_Needed): C_Source_Path new variable containing
7389 the canonical form of Source_Path to check against the source names
7390 in the dependency file.
7391 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
7392 verbose mode, display the name of the object directory we're changing
7394 (Saved_Switches): New name of table X_Switches
7395 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
7396 (Usage): New line for switch -aP
7397 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
7398 testing if a directory should be added to the search path.
7400 2007-06-06 Javier Miranda <miranda@adacore.com>
7402 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
7403 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
7404 declaration after freezing point of all its associated tagged types;
7405 otherwise such types are frozen too early.
7407 2007-06-06 Robert Dewar <dewar@adacore.com>
7409 * a-reatim.adb: Documentation addition
7411 * g-cgideb.adb: Minor code reorganization
7413 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
7414 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
7415 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
7417 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
7418 function. Change name New_Scope to Push_Scope
7419 (Get_Debug_Flag_K): Remove unused obsolete function.
7421 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
7424 * makeusg.adb: Update Copyright notice
7425 Add line for switch -aP
7427 * makeusg.adb: Fix wording of some usage messages
7429 * s-assert.adb (Raise_Assert_Failure): Add call to
7430 Debug_Raise_Assert_Failure.
7432 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
7433 (2, Standard'Alignment) for compatibility with AAMP (where alignment
7434 is restricted to 1).
7436 * s-wchjis.adb: Remove use of System.Pure_Exceptions
7438 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
7439 node location to No_Location when we're not debugging the expanded
7442 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
7444 * misc.c (enumerate_modes): Consider log2_b to always be one.
7446 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
7448 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7450 2007-05-02 Pascal Obry <obry@adacore.com>
7452 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
7453 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
7454 encoding support of Stream_IO.
7457 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
7458 filename and corresponding encoding to match the OS requirement.
7459 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
7460 routine will fail on specific devices like CON: AUX: ...
7462 PR ada/29856: Add missing braces
7464 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
7467 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
7469 2007-04-21 Jan Hubicka <jh@suse.cz>
7471 * misc.c (gnat_expand_body): Don't call target for destructors,
7472 avoid redundant check on syntax errors.
7474 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
7476 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
7477 instead of checking GIMPLE_STMT_P in chain_next.
7479 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
7482 * system-linux-alpha.ads: Disable constant condition warning for the
7483 Default_Bit_Order variable.
7484 * system-linux-s390.ads: Likewise.
7485 * system-linux-s390x.ads: Likewise.
7486 * system-linux-sparc.ads: Likewise.
7488 2007-04-06 Javier Miranda <miranda@adacore.com>
7489 Matt Heaney <heaney@adacore.com>
7490 Robert Dewar <dewar@adacore.com>
7492 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7493 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
7494 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
7495 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
7496 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
7497 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
7498 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
7499 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
7500 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
7501 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
7502 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
7503 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
7504 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
7505 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
7506 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
7507 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
7508 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
7509 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
7510 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
7511 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
7512 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
7513 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
7514 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
7515 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
7516 s-taprop-tru64.adb, s-taprop-irix.adb,
7517 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
7518 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
7519 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
7520 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
7521 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
7522 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
7523 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
7524 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
7525 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
7526 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
7527 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
7528 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
7529 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
7530 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
7531 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
7532 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
7533 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
7534 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
7535 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
7536 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
7538 Update documentation.
7541 2007-04-06 Robert Dewar <dewar@adacore.com>
7543 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7544 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7545 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
7546 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7547 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
7548 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7549 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7550 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
7551 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7552 system-hpux-ia64.ads, targparm.adb,
7553 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
7555 * system.ads: Move Functions_Return_By_DSP to obsolete section,
7556 kept for bootstrap purposes only.
7558 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7560 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7561 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
7562 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
7563 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
7565 2007-04-06 Robert Dewar <dewar@adacore.com>
7567 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
7568 (Local_Raise): New dummy procedure called when a raise is converted
7569 to a local goto. Used for debugger to detect that the exception
7572 * debug.adb: Document new d.g flag (expand local raise statements to
7573 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
7575 * exp_sel.adb: Use Make_Implicit_Exception_Handler
7577 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
7578 suppress warnings for unused handlers.
7579 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
7580 warnings for raise statements not handled locally.
7581 (Get_RT_Exception_Entity): New function
7582 (Get_Local_Call_Entity): New function
7583 (Find_Local_Handler): New function
7584 (Warn_If_No_Propagation): New procedure
7585 (Expand_At_End_Handler): Call Make_Implicit_Handler
7586 (Expand_Exception_Handlers): Major additions to deal with local handlers
7587 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
7588 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
7591 * exp_ch11.ads (Get_RT_Exception_Entity): New function
7592 (Get_Local_Call_Entity): New function
7594 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
7595 of restrictions that the binder will never suggest adding.
7597 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
7600 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
7601 be with'ed in the presence of pragma Restriction
7602 (No_Exception_Propagation).
7604 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
7606 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
7607 parameter, then the handler is not a suitable target for a local raise,
7608 and this is a violation of restriction No_Exception_Propagation.
7609 (Analyze_Handled_Statements): Analyze choice parameters in exception
7610 handlers before analyzing statement sequence (needed for proper
7611 detection of local raise statements).
7612 (Analyze_Raise_Statement): Reraise statement is a violation of the
7613 No_Exception_Propagation restriction.
7615 * s-rident.ads: Add new restriction No_Exception_Propagation
7617 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
7618 function, like Make_Exception_Handler but sets Local_Raise_Statements
7620 (Add_Unique_Serial_Number): Deal with case where this is called during
7621 processing of configuration pragmas.
7623 2007-04-06 Thomas Quinot <quinot@adacore.com>
7624 Pat Rogers <rogers@adacore.com>
7625 Pascal Obry <obry@adacore.com>
7627 * g-stsifd-sockets.adb: New file.
7629 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
7630 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
7631 g-socthi-vms.adb: Move signalling
7632 fd management to a nested package, so that they can conveniently be
7633 moved to a subunit that is shared across Windows, VMS, and VxWorks
7634 (Ada implementation) or completed with imported bodies from socket.c
7636 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
7638 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
7639 the signalling file descriptor.
7640 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
7641 signalling file descriptor.
7642 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
7643 instead of creating a pair of sockets for signalling here.
7645 * g-socthi.adb: Ditto.
7646 Set the runtime process to ignore SIGPIPEs on platforms that support
7647 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7649 * g-socthi-mingw.adb: Ditto.
7650 (WS_Version): Use Windows 2.2.
7651 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7653 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
7654 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7656 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
7657 added GNAT byte swapping facility
7658 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
7660 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
7662 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
7664 (__gnat_create_signalling_fds): New subprogram.
7665 Set the runtime process to ignore SIGPIPEs on platforms that support
7666 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7668 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
7669 Vincent Celier <celier@adacore.com>
7671 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
7672 New version of Ada.Calendar which supports the new upper bound of Ada
7673 time (2399-12-31 86_399.999999999).
7674 The following modifications have been made to the package:
7675 - New representation of time as count of nanoseconds since the start of
7676 Ada time (1901-1-1 0.0).
7677 - Target independent Split and Time_Of routines which service both
7678 Ada 95 and Ada 2005 code.
7679 - Target independent interface to the Ada 2005 children of Calendar.
7680 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
7681 - Handling of non-leap centenial years.
7682 - Updated clock function.
7683 - Updated arithmetic and comparison operators.
7685 * a-caldel.adb (To_Duration): Add call to target independent routine in
7686 Ada.Calendar to handle the conversion of time to duration.
7688 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
7690 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
7692 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
7693 targets do not have a natural time zone, GMT is used as a default.
7694 (__gnat_get_task_options): New.
7696 * a-direct.adb (Modification_Time): Add with and use clauses for
7697 Ada.Calendar and Ada.
7698 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
7699 since it is no longer needed.
7700 (Duration_To_Time): Removed.
7701 (OS_Time_To_Long_Integer): Removed.
7702 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
7703 Formatting Time_Of routines which automatically handle time zones,
7704 buffer periods and leap seconds.
7706 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
7707 target independent routines in Ada.Calendar.
7709 * a-calfor.ads, a-calfor.adb:
7710 Code cleanup and addition of validity checks in various routines.
7711 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
7714 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
7715 independent routine in Ada.Calendar.
7717 2007-04-06 Olivier Hainque <hainque@adacore.com>
7720 (convert_addresses): Adjust prototype and dummy definition to expect an
7721 extra file_name argument.
7723 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
7724 filling the now expected file_name argument with the appropriate
7726 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
7727 (tracebk): Array of void * instead of char *, corresponding to what
7728 convert_addresses expects.
7729 (exename): New static global, to hold the executable file name to be
7730 used in all convert_addresses invocations.
7731 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
7733 (__gnat_gmem_a2l_initialize): Resolve exename.
7734 (__gnat_convert_addresses): Use exename as the convert_addresses
7737 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
7738 "convert_addresses", now expecting a filename argument. Import the
7739 necessary entities to compute the filename to use and pass it to
7742 2007-04-06 Matt Gingell <gingell@adacore.com>
7744 * system-aix.ads: Back out previous change.
7745 (Functions_Return_By_DSP): Removed
7747 2007-04-06 Pascal Obry <obry@adacore.com>
7749 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
7750 or the monotonic used by Ada.Real_Time) to compute the sleep duration
7753 2007-04-06 Jose Ruiz <ruiz@adacore.com>
7755 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
7756 function. Its value changes in different VxWorks versions, and it is
7757 now handled by the function __gnat_get_task_options.
7759 * s-taprop-vxworks.adb (Create_Task): Call the function
7760 __gnat_get_task_options to get the required options for creating a task.
7762 2007-04-06 Pascal Obry <obry@adacore.com>
7763 Thomas Quinot <quinot@adacore.com>
7765 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
7766 dealing with filename.
7767 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
7768 filename from a standard string to a wide-string depending on the
7770 (__gnat_freopen): Idem.
7771 (__gnat_current_time): New function (wrapper for time(3) standard C
7774 * g-os_lib.ads (Current_Time): New function. Returns the current
7775 system time as an OS_Time value.
7777 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
7778 (Monotonic_Clock): Same.
7780 2007-04-06 Quentin Ochem <ochem@adacore.com>
7782 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
7784 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
7786 2007-04-06 Jose Ruiz <ruiz@adacore.com>
7788 * a-retide.adb: Add elaboration code to ensure that the tasking run
7789 time is initialized when using delay operations even when no task is
7792 2007-04-06 Javier Miranda <miranda@adacore.com>
7794 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
7795 component Num_Prim_Ops.
7796 (Set_Num_Prim_Ops): Removed.
7797 Remove all the assertions because all the routines of this
7798 package are inline always.
7799 (Get_Offset_Index): Add support to primary dispatch tables.
7800 Move the documentation about the dispatch table to a-tags.ads
7801 (Set_External_Tag): Removed
7802 (Inherit_TSD): Removed.
7803 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
7805 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
7806 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
7807 of the TSD field "Table" because this field has been renamed to
7809 (Inherit_CPP_DT): Removed.
7810 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
7811 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
7812 declarations have been moved to a-tags.ads
7813 (Check_Size): Removed.
7814 (Expanded_Name): Updated to get access to the new field of TSD
7815 containing the address of the expanded name.
7816 (Get_Access_Level/Set_Access_Level): Removed.
7817 (Get_Predefined_Prim_Op_Address): Removed.
7818 (Set_Predefined_Prim_Op_Address): Removed.
7819 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
7820 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
7821 (Set_Expanded_Name): Removed.
7822 (Inherit_DT): Removed.
7823 (Inherit_CPP_DT): Removed.
7824 (Set_RC_Offset): Removed.
7826 (Base_Address): New function that displaces "this" to point to the base
7827 of the object (that is, to point to the primary tag of the object).
7829 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7830 Javier Miranda <miranda@adacore.com>
7832 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
7833 anonymous access component, do not create a master_id if type already
7834 has one, as may happen if the type is a subcomponent of a packed array
7836 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
7837 Initialize_Tag): Remove code associated with the old CPP pragmas.
7838 CPP_Virtual and CPP_Vtable are no longer supported.
7839 (Build_Offset_To_Top_Internal): Add support for concurrent record types
7840 (Build_Offset_To_Top_Functions): Add support for concurrent record types
7841 (Freeze_Record_Type): Remove call to
7842 Init_Predefined_Interface_Primitives.
7843 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
7844 code required to initialize the tags of the secondary dispatch tables.
7845 This leaves the algoritm more clear.
7846 (Init_Secondary_Tags): Add support for concurrent record types
7847 (Make_Predefined_Primitive_Specs): Code cleanup.
7848 (Predefined_Primitive_Bodies): Code cleanup.
7849 (Build_Master_Renaming): New local subprogram.
7850 (Expand_N_Full_Type_Declaration): Build the master_id associated with
7851 anonymous access to task type components.
7852 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
7853 subtype indication are resolved during analysis, and must not be done
7855 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
7857 2007-04-06 Geert Bosch <bosch@adacore.com>
7858 Ed Schonberg <schonberg@adacore.com>
7859 Javier Miranda <miranda@adacore.com>
7860 Bob Duff <duff@adacore.com>
7862 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
7863 for conversion of a Float_Type'Truncation to integer.
7865 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
7866 check if a node is an attribute that can be handled directly by the
7868 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
7869 attributes that can be handled directly by the back end.
7870 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
7871 use new predicate Is_Access_Protected_Subprogram_Type.
7872 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
7873 and Unchecked_Union if it is generated as part of the default Output
7874 procedure for a type with default discriminants.
7875 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
7876 if we are compiling under restriction No_Dispatching_Calls.
7877 (Constrained): Use Underlying_Type, in case the type is private without
7878 discriminants, but the full type has discriminants.
7879 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
7880 call to Build_Get_Access_Level.
7881 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
7882 interface objects requires a call to the run-time subprogram that
7883 returns the base address of the object.
7884 (Valid_Conversion): Improve error message on illegal attempt to store
7885 an anonymous access to subprogram value into a record component.
7887 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
7889 (Simplify_Type_Conversion): New procedure that performs simplification
7890 of Int_Type (Float_Type'Truncation (X)).
7891 (Resolve_Type_Conversion): Call above procedure after resolving operand
7892 and before performing checks. This replaces the existing ineffective
7894 (Set_String_Literal_Subtype): When creating the internal static lower
7895 bound subtype for a string literal, use a newly created copy of the
7896 subtree representing the lower bound.
7897 (Resolve_Call): Exclude build-in-place function calls from transient
7898 scope treatment. Update comments to describe this exception.
7899 (Resolve_Equality_Op): In case of dispatching call check violation of
7900 restriction No_Dispatching_Calls.
7901 (Resolve_Call): If the call returns an array, the context imposes the
7902 component type of the array, and the function has one non-defaulted
7903 parameter, rewrite the call as the indexing of a call with a single
7904 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
7906 (Resolve_Actuals): If an actual is an allocator for an access parameter,
7907 the master of the created object is the innermost enclosing statement.
7908 (Remove_Conversions): For a binary operator, check if type of second
7909 formal is numeric, to check if an abstract interpretation is present
7910 in the case of exponentiation as well.
7912 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7913 Bob Duff <duff@adacore.com>
7915 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
7916 copying a parameter list in a call, set properly the First_Named_Formal
7917 and Next_Named_Formal fields in the new list and in the enclosing call.
7918 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
7919 names, to ease typing in the debugger. Improve comments.
7920 (Watch_Node): New variable, intended to be set in the debugger.
7921 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
7922 called when the watched node is created.
7923 (New_Node_Debugging_Output): Combined version of local procedures
7924 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
7925 with a parameter so that conditional breakpoints like "if Node = 12345"
7927 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
7930 2007-04-06 Thomas Quinot <quinot@adacore.com>
7931 Ed Schonberg <schonberg@adacore.com>
7932 Gary Dismukes <dismukes@adacore.com>
7934 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
7935 required for a conversion between two access-to-unconstrained-array
7937 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
7938 to discriminant constraints on discriminant objects. This rule must
7939 apply as well to discriminants of protected types in private components.
7940 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
7941 object of a null-excluding access type then don't require the
7942 the object declaration to have an expression and don't emit a
7945 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7946 Eric Botcazou <botcazou@adacore.com>
7948 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
7951 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
7952 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
7955 * fe.h (Compiler_Abort): Add third parameter.
7957 * misc.c (internal_error_function): Build third argument from current
7958 input location and pass it to Compiler_Abort.
7960 2007-04-06 Gary Dismukes <dismukes@adacore.com>
7962 * cstand.adb (Create_Standard): When the target's storage unit size is
7963 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
7966 2007-04-06 Nicolas Roche <roche@adacore.com>
7968 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
7969 absolute path can have the following form: device:/a/b. In this case
7970 '/' should be inserted between the path and the filename.
7972 2007-04-06 Olivier Hainque <hainque@adacore.com>
7973 Eric Botcazou <botcazou@adacore.com>
7975 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
7976 VAR_DECL to a CONST_DECL we make for a public constant when we know the
7977 corresponding definition has created the so made visible variable.
7978 Handle anonymous access to protected subprogram.
7979 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
7980 object with an address clause volatile. Re-enable original fix.
7981 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
7983 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
7984 associated with either the Equivalent or Root type, instead of the
7986 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
7987 subtree for every field of a global record type.
7988 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
7989 discriminants, invoke again variable_size on its newly computed sizes.
7991 2007-04-06 Robert Dewar <dewar@adacore.com>
7992 Thomas Quinot <quinot@adacore.com>
7993 Ed Schonberg <schonberg@adacore.com>
7994 Bob Duff <duff@adacore.com>
7996 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
7997 (Next_Component_Or_Discriminant): New function and procedure
7998 (First_Index, First_Literal, Master_Id,
7999 Set_First_Index, Set_First_Literal, Set_Master_Id):
8000 Add missing Ekind assertions.
8001 (Is_Access_Protected_Subprogram_Type): New predicate.
8002 (Has_RACW): New entity flag, set on package entities to indicate that
8003 the package contains the declaration of a remote accecss-to-classwide
8005 (E_Return_Statement): This node type has the Finalization_Chain_Entity
8006 attribute, in case the result type has controlled parts.
8007 (Requires_Overriding): Add this new flag, because "requires
8008 overriding" is subtly different from "is abstract" (see AI-228).
8009 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
8010 Is_Abstract_Type. Make sure these are called only when appropriate.
8011 (Has_Pragma_Unreferenced_Objects): New flag
8013 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
8014 class-wide, the tag of the right-hand side must be an exact match, not
8015 an ancestor of that of the object on left-hand side.
8016 (Move_Activation_Chain): New procedure to create the call to
8017 System.Tasking.Stages.Move_Activation_Chain.
8018 (Expand_N_Extended_Return_Statement): Generate code to call
8019 System.Finalization_Implementation.Move_Final_List at the end of a
8020 return statement if the function's result type has controlled parts.
8021 Move asserts to Build_In_Place_Formal.
8022 (Move_Final_List): New function to create the call statement.
8023 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
8024 tagged type, replace generation of call to the run-time subprogram
8025 CW_Membership by call to Build_CW_Membership.
8026 (Expand_N_Return_Statement): Replace generation of call to the run-time
8027 subprogram Get_Access_Level by call to Build_Get_Access_Level.
8028 (Expand_N_Simple_Function_Return): Replace generation of call to the
8029 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8031 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
8032 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
8033 access to protected operations.
8034 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
8035 master and chain actual parameters to a build-in-place function call
8037 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
8039 (Make_Build_In_Place_Call_In_Allocator,
8040 Make_Build_In_Place_Call_In_Anonymous_Context,
8041 Make_Build_In_Place_Call_In_Assignment,
8042 Make_Build_In_Place_Call_In_Object_Declaration): Call
8043 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
8044 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
8045 stubbed procedure with a null body, replace the call with a null
8046 statement without using the full inlining machinery, for efficiency
8047 and to avoid invalid values in source file table entries.
8049 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
8050 renamings of calls to build-in-place functions.
8052 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
8053 provides the functionality of RTE_Available to record components.
8054 (RTU_Entity): The function Entity has been renamed to RTU_Entity
8055 to avoid undesired overloading.
8056 (Entity): New subprogram that returns the entity for the referened
8057 unit. If this unit has not been loaded, it returns Empty.
8058 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
8059 Remove no longer used entities.
8060 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
8061 (RE_Type_Specific_Data): New entity.
8062 (RE_Move_Any_Value): New entity.
8063 (RE_TA_A, RE_Get_Any_Type): New entities.
8064 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
8065 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
8066 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
8067 (Entity): New subprogram that returns the entity for the referened
8068 unit. If this unit has not been loaded, it returns Empty.
8069 (RTE): Addition of a new formal that extends the search to the scopes
8070 of the record types found in the chain of the package.
8072 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
8073 "abstract subprograms must be visible" message, whether or not the type
8074 is an interface; that is, remove the special case for interface types.
8075 (Analyze_Function_Return): Remove error message "return of task objects
8076 is not yet implemented" because this is now implemented.
8077 (Create_Extra_Formals): Add the extra master and activation chain
8078 formals in case the result type has tasks.
8079 Remove error message "return of limited controlled objects is not yet
8081 (Create_Extra_Formals): Add the extra caller's finalization list formal
8082 in case the result type has controlled parts.
8083 (Process_Formals): In case of access formal types there is no need
8084 to continue with the analysis of the formals if we already notified
8086 (Check_Overriding_Indicator): Add code to check overriding of predefined
8088 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
8089 flags for formals that do not require them,.
8090 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
8091 hidden entity is use visible or directly visible.
8092 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
8093 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
8094 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
8095 New_Overloaded_Entity): Split Is_Abstract flag into
8096 Is_Abstract_Subprogram and Is_Abstract_Type.
8098 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
8099 a return statement's finalization list to the caller's list, used for
8100 build-in-place functions with result type with controlled parts.
8101 Remove no longer used entities.
8103 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
8104 longer needed, because the full type is now limited, and therefore a
8105 pass-by-reference type.
8106 (Foreign_Task_Level): New constant.
8108 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
8109 move tasks from the activation chain belonging to a return statement to
8110 the one passed in by the caller, and update the master to the one
8111 passed in by the caller.
8112 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
8113 of unactivated tasks, so we don't kill the ones that are being returned
8114 by a build-in-place function.
8115 (Create_Task): Ignore AI-280 for foreign threads.
8117 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8118 Robert Dewar <dewar@adacore.com>
8119 Bob Duff <duff@adacore.com>
8120 Gary Dismukes <dismukes@adacore.com>
8122 * errout.adb (Unwind_Internal_Type): Use predicate
8123 Is_Access__Protected_Subprogram_Type.
8125 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
8126 (Freeze_Entity, packed array case): Do not override explicitly set
8127 alignment and size clauses.
8128 (Freeze_Entity): An entity declared in an outer scope can be frozen if
8129 the enclosing subprogram is a child unit body that acts as a spec.
8130 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
8131 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
8132 Remove all code for DSP option
8134 * layout.adb (Layout_Record_Type): Use First/
8135 Next_Component_Or_Discriminant
8136 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
8137 to handle properly the anonymous access case.
8139 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
8140 for all access attributes, because overload resolution should work the
8141 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
8142 causes the error message for the ambiguous "X'Access = Y'Access" and
8143 "X'Unrestricted_Access = Y'Access" and so forth to match.
8144 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
8145 now that anonymous access to protected operations have their own kind.
8146 (Resolve_Attribute): In case of dispatching call check the violation of
8147 restriction No_Dispatching_Calls.
8148 (Check_Array_Type): Check new -gnatyA array index style option
8150 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
8151 attempt to derive from a synchronized tagged type.
8152 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
8153 type, inherit the class-wide type already created, because it may
8154 already have been used in a self-referential anonymous access component.
8155 (Mentions_T): Recognize self-referential anonymous access components
8156 that use (a subtype of) the class-wide type of the enclosing type.
8157 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
8158 Derived_Type for Prev formal on call to
8159 Check_Anonymous_Access_Components rather than Empty.
8160 (Make_Incomplete_Type_Declaration): Add test for case where the type has
8161 a record extension in deciding whether to create a class-wide type,
8162 rather than just checking Tagged_Present.
8163 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
8164 to stand-alone object declarations as well as component declarations.
8165 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
8166 prevent accidental overwriting when enclosing package appears in
8167 a limited_with_clause.
8168 (Array_Type_Declaration): If the component type is an anonymous access,
8169 the associated_node for the itype is the type declaration itself.
8170 (Add_Interface_Tag_Components): Modified to support concurrent
8171 types with abstract interfaces.
8172 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
8173 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
8174 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
8175 to complete the decoration of synchronized interface types. Add also
8176 a call to Check_Abstract_Interfaces to verify the ARM rules.
8177 (Derive_Interface_Subprograms): Modified to support concurrent types
8178 with abstract interfaces.
8179 (Analyze_Subtype_Indication): Resolve the range with the given subtype
8180 mark, rather than delaying the full resolution depending on context.
8181 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
8182 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
8183 Array_Type_Declaration,Build_Derived_Record_Type,
8184 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
8185 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
8186 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
8187 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8188 called only when appropriate.
8189 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
8191 (Analyze_Subtype_Declaration): For an access subtype declaration, create
8192 an itype reference for the anonymous designated subtype, to prevent
8193 scope anonmalies in gigi.
8194 (Build_Itype_Reference): New utility, to simplify construction of such
8197 2007-04-06 Vincent Celier <celier@adacore.com>
8199 * errutil.adb (Initialize): Initialize warnings table, if all warnings
8200 are suppressed, supply an initial dummy entry covering all possible
8203 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
8204 and start with only one, such as "-RTS=none".
8205 (Collect_Arguments): Do not check for sources outside of projects.
8206 Do not collect arguments if project is externally built.
8207 (Compile_Sources): Do nothing, not even check if the source is up to
8208 date, if its project is externally built.
8209 (Compile): When compiling a predefined source, add -gnatpg
8210 as the second switch, after -c.
8211 (Compile_Sources): Allow compilation of Annex J renames without -a
8212 (Is_In_Object_Directory): Check if the ALI file is in the object
8213 even if there is no project extension.
8214 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
8215 gnatbind if the ALI file effectively exists.
8216 (Initialize): Add the directory where gnatmake is invoked in front of
8217 the path if it is invoked from a bin directory, even without directory
8218 information, so that the correct GNAT tools will be used when spawned
8219 without directory information.
8221 * makeusg.adb: Change switch -S to -eS
8222 Add lines for new switches -we, -wn and -ws
8223 Add line for new switch -p
8225 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
8226 Treat_As_Error and there are warnings.
8228 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
8229 -gnatww Change gnatmake switch -S to -eS
8230 (Scan_Make_Switches): Code reorganisation. Process separately multi
8231 character switches and single character switches.
8232 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
8233 False when switch is not recognized by gnatmake.
8234 (Scan_Make_Switches): Set Setup_Projects True when -p or
8235 --create-missing-dirs is specified.
8237 * fname.adb (Is_Predefined_File_Name): Return True for annex J
8238 renamings Calendar, Machine_Code, Unchecked_Conversion and
8239 Unchecked_Deallocation only when Renamings_Included is True.
8241 * par.adb: Allow library units Calendar, Machine_Code,
8242 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
8243 when -gnatg is not specified.
8244 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8245 there is no need to generate always a record_definition_node in case
8246 of synchronized interface types.
8247 (SIS_Entry_Active): Initialize global variable to False
8248 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
8249 indicate cases where AI-447 says "not null" is legal.
8251 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
8253 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
8254 files with with several lines starting with the object fileb name.
8255 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
8257 (Initialize): Add the directory where gprmake is invoked in front of the
8258 path, if it is invoked from a bin directory or with directory
8259 information, so that the correct GNAT tools will be used when invoked
8261 (Check_Compilation_Needed): Process correctly backslashes on Windows.
8263 * vms_data.ads: Update switches/qualifiers
8265 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8266 Thomas Quinot <quinot@adacore.com>
8269 If the array component is a discriminated record, the array aggregate
8270 is non-static even if the component is given by an aggregate with
8272 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
8273 (Convert_Aggr_In_Allocator): If the allocator is for an access
8274 discriminant and the type is controlled. do not place on a finalization
8275 list at this point. The proper list will be determined from the
8277 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
8278 initialize record controller if needed, before the components, to ensure
8279 that they are properly finalized.
8280 (Build_Record_Aggr_Code): For the case of an array component that has a
8281 corresponding array aggregate in the record aggregate, perform sliding
8284 2007-04-06 Javier Miranda <miranda@adacore.com>
8285 Gary Dismukes <dismukes@adacore.com>
8286 Ed Schonberg <schonberg@adacore.com>
8288 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
8289 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
8291 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
8292 accessibility on class-wide allocators if the allocator occurs at the
8293 same scope level as the allocator's type. The check is guaranteed to
8294 succeed in that case, even when the expression originates from a
8295 parameter of the containing subprogram.
8296 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
8297 under No_Dispatching_Calls restriction. During the semantic analysis
8298 we already notified such violation.
8299 (Tagged_Membership): Constant folding. There is no need to check
8300 the tag at run-time if the type of the right operand is non
8301 class-wide abstract.
8302 Replace call to Is_Ancestor by call to Is_Parent
8303 to support concurrent types with interface types.
8304 (Expand_N_Allocator): Add an assertion associated with the generation
8306 (Expand_N_Slice): Do not enable range check to nodes associated
8307 with the frontend expansion of the dispatch table.
8308 (Is_Local_Access_Discriminant): Subsidiary function to
8310 (Tagged_Membership): Replace generation of call to the run-time
8311 subprogram CW_Membership by call to Build_CW_Membership.
8312 (Expand_Allocator_Expression): Replace generation of call to the
8313 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8315 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
8316 initialize most the TSD components by means of an aggregate.
8317 Modify the declaration of the object containing the TSD
8318 because we now expand code that has a higher level of abstraction.
8319 The TSD has a discriminant containing the Inheritance Depth Level,
8320 value that is used in the membership test but also to fix the size
8321 of the table of ancestors.
8322 (Expand_Interface_Conversion): Insert function body at the closest place
8323 to the conversion expression, to prevent access-before-elaboration
8324 errors in the backend.
8325 Code improved to reduce the size of the dispatch table if
8326 compiling under restriction No_Dispatching_Calls plus code cleanup.
8327 Code reorganization plus removal of calls to Set_Num_Prim_Ops
8328 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
8329 (Expand_Dispatching_Call): Minor code reorganization plus addition of
8330 code to return immediately if compiling under No_Dispatching_Calls
8332 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
8333 CPP_Virtual and CPP_Vtable are no longer supported.
8334 (Expand_Interface_Conversion): Add missing support for interface type
8336 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
8337 Is_Parent to support concurrent types with interfaces.
8338 (Init_Predefined_Interface_Primitives): Removed.
8339 (Make_Secondary_DT): Modified to support concurrent record types.
8340 (Set_All_DT_Position): Modified to support concurrent record types.
8341 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8342 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
8343 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
8345 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8346 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
8347 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
8348 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
8349 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
8350 (Expand_Dispatching_Call): Replace generation of call to the run-time
8351 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
8352 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
8354 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
8355 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
8356 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
8357 Build_Set_Prim_Op_Address.
8358 (Get_Remotely_Callable): Subprogram removed.
8359 (Init_Predefined_Interface_Primitives): Replace generation of call to
8360 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
8363 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
8364 First (Parameter_Associations ()) with the call to First_Actual that
8365 returns an actual parameter expression for both named and positional
8368 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
8369 check violation of restriction No_Dispatching_Calls.
8370 (Check_Controlling_Type): A formal of a tagged incomplete type is a
8371 controlling argument.
8373 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
8374 First/Next_Component_Or_Discriminant
8375 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
8376 (Find_Implemented_Interface): Removed. All the calls to this subprogram
8377 specify Any_Limited_Interface, and this functionality is already
8378 provided by the function Has_Abstract_Interfaces.
8379 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
8380 support concurrent types implementing interfaces.
8381 (Find_Implemented_Interface): Removed. All the calls to this subprogram
8382 specify kind Any_Limited_Interface, and this functionality is already
8383 provided by the function Has_Abstract_Interfaces.
8384 (Remove_Side_Effects): replace Controlled_Type by
8385 CW_Or_Controlled_Type whenever the issue is related to
8386 using or not the secondary stack.
8388 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
8389 P_Interface_Type_Definition to fulfill the new interface (the formal
8390 Is_Synchronized is no longer required).
8392 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
8393 Update dependencies.
8395 * exp_atag.ads, exp_atag.adb: New file
8397 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8398 Bob Duff <duff@adacore.com>
8399 Cyrille Comar <comar@adacore.com>
8401 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
8402 anonymous, use finalization list of enclosing dynamic scope.
8403 (Expand_N_Package_Declaration): For a library package declaration
8404 without a corresponding body, generate RACW subprogram bodies in the
8405 spec (just as we do for the task activation call).
8406 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
8407 Is_Abstract_Type. Make sure these are called only when appropriate.
8408 Remove all code for DSP option
8409 (CW_Or_Controlled_Type): new subprogram.
8411 2007-04-06 Eric Botcazou <botcazou@adacore.com>
8412 Ed Schonberg <schonberg@adacore.com>
8413 Gary Dismukes <dismukes@adacore.com>
8415 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
8416 parameter. If it is set to true, return a result capped according to
8417 the global upper bound for the index of an entry family.
8418 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
8419 (Build_Find_Body_Index): Adjust for above change.
8420 (Entry_Index_Expression): Likewise.
8421 (Is_Potentially_Large_Family): New function extracted from...
8422 (Collect_Entry_Families): ...here. Call it to detect whether the family
8423 is potentially large.
8424 (Build_Entry_Count_Expression): If the family is potentially large, call
8425 Family_Size with 'Cap' set to true.
8426 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
8427 a protected version of an operation declared in the private part of
8428 a protected object, because they may be invoked through a callback.
8429 (Set_Privals): If the type of a private component is an anonymous access
8430 type, do not create a new itype for each protected body.
8431 If the body of a protected operation creates
8432 controlled types (including allocators for class-widetypes), the
8433 body of the corresponding protected subprogram must include a
8435 (Build_Activation_Chain_Entity): Build the chain entity for extended
8437 (Type_Conformant_Parameters): Use common predicate Conforming_Types
8438 to determine whether operation overrides an inherited primitive.
8439 (Build_Wrapper_Spec): Add code to examine the parents while looking
8440 for a possible overriding candidate.
8441 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
8442 hold an actual parameter value since its initialization is separated
8443 from the the declaration. Prevents errors on null-excluding access
8446 2007-04-06 Thomas Quinot <quinot@adacore.com>
8448 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
8449 Do an Unchecked_Conversion to handle the passage from the Underlying
8450 Type to the Base Type when calling Build_To_Any_Call and
8451 Build_From_Any_Call.
8452 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
8453 E_Constant, depending upon Variable formal.
8454 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8455 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
8456 parameter that requires an extra constrained parameter, declare
8457 temporary for actual as a variable, not a constant.
8458 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
8459 the unit being compiled is the one that contains the stub type.
8460 Change primitive operation name for the RACW associated with a RAS
8461 from Call to _Call so it cannot clash with any legal identifier.
8462 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
8464 (Append_RACW_Bodies): New subprogram.
8465 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
8466 Add_Receiving_Stubs_To_Declarations functions.
8467 When expanding a package body, this list correspond to the
8468 statements in the HSS at the end of the pacakge.
8469 When expanding a package spec, this list correspond to the
8471 (Add_Receiving_Stubs_To_Declarations): Append the function
8472 registering the receiving stubs at the end of the 'Stmts' list.
8473 (RCI_Package_Locator): Pass the new Version generic formal when
8474 instantiating a RCI_Locator package.
8475 (Build_From_Any_Function): To compute the High bound for an
8476 unconstrained array actual, we add the Low bound with the length.
8477 Thus we must convert the low bound and the length to an appropriate
8478 type before doing the sum.
8479 (Build_Subprogram_Receiving_Stubs, PolyORB):
8480 * Retrieve the extra formals parameters at the
8481 end of the parameter stream.
8482 * Use Move_Any_Value to write back out parameters
8483 after executing the request as it is more efficient
8484 than Copy_Any_Value.
8485 * Build the any containing Extra Formals with the
8486 appropriate typecode.
8487 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
8488 empty Component_List.
8489 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
8490 the tree the declaration for an object that serves as actual parameter
8491 in server-side stubs.
8492 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8493 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8494 Use Build_Actual_Object_Declaration to prepare the actuals.
8495 (Add_Parameter_To_NVList): Set the parameter mode to In for
8496 Extra Constrained Parameters.
8497 (Build_General_Calling_Stubs): Set the parameter type to boolean for
8498 Extra Constrained parameters.
8499 (Build_To_Any_Function, Build_From_Any_Function,
8500 Built_TypeCode_Function): When Typ is implicit, call the correct
8501 function with the first not implicit parent type.
8502 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
8503 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
8504 typecode from the Etype. Therefore we retrieve the correct typecode
8505 with a call to Get_Any_Type.
8506 (Copy_Specification): Do controlling formal type substitution based on
8507 Is_Controlling_Formal flag, instead of caller-provided object type.
8508 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
8509 a RACW primitive operation, we might get a subprogram declaration for an
8510 ancestor of the RACW designated type (not for the designated type
8511 itself), in the case where this operation is inherited. In this case we
8512 have no easy means of determining the original tagged type for which
8513 the primitive was declared, so instead we now rely on
8514 Copy_Specification to use the Is_Controlling_Formal flag to determine
8515 which formals require type substitution.
8517 2007-04-06 Robert Dewar <dewar@adacore.com>
8518 Ed Schonberg <schonberg@adacore.com>
8520 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
8521 GNAT.Current_Exception are not allowed if pragma Restrictions
8522 (No_Exception_Propagation) is set and in any case make the associated
8523 handler unsuitable as a target for a local raise statement.
8524 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
8525 run-time subprogram CW_Membership by call to Build_CW_Membership.
8526 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
8527 by a function call, a temporary must be created before expanding the
8528 Constructor_Call itself, to prevent out-of-order elaboration in the
8529 back-end when stack checking is enabled..
8531 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8533 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
8534 result are the bounds of the left operand, not the right.
8536 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8539 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
8540 discriminant defaults.
8541 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
8542 (Make_Component_List_Attributes): Ditto.
8544 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8545 Bob Duff <duff@adacore.com>
8547 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
8548 an association with a box as providing a value even though the
8549 initialization procedure for the type is not available.
8550 (Resolve_Record_Aggregate): Check that a choice of an association with a
8551 box corresponds to a component of the type.
8552 (Resolve_Record_Aggregate): Split Is_Abstract flag into
8553 Is_Abstract_Subprogram and Is_Abstract_Type.
8555 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
8558 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
8559 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8560 called only when appropriate.
8562 2007-04-06 Olivier Hainque <hainque@adacore.com>
8564 * g-alleve.ads (Low Level Vector type definitions): Map each to the
8565 associated vector view instead of all to the unsigned char view.
8567 * g-altcon.adb (Generic_Conversions): New internal generic package,
8568 offering facilities for all the Vector/View conversion routines
8569 implemented by this unit.
8570 (To_View/To_Vector - all versions): Reimplemented in a systematic
8571 manner, using the internal Generic_Conversions facilities.
8573 2007-04-06 Pascal Obry <obry@adacore.com>
8575 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
8577 (Create): Free the source string before storing the new one.
8579 2007-04-06 Vincent Celier <celier@adacore.com>
8581 * g-debpoo.adb (Validity): New package with a complete new
8582 implementation of subprograms Is_Valid and Set_Valid.
8583 (Is_Valid): Move to local package Validity
8584 (Set_Valid): Move to local package Validity
8586 2007-04-06 Arnaud Charlet <charlet@adacore.com>
8588 * g-expect.adb (Get_Command_Output): When expanding the output buffer
8589 we must ensure that there is enough place for the new data we are going
8592 2007-04-06 Thomas Quinot <quinot@adacore.com>
8594 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
8597 2007-04-06 Jose Ruiz <ruiz@adacore.com>
8598 Vincent Celier <celier@adacore.com>
8600 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
8601 (Stack_String): Add this String that contains the name of the Stack
8602 package in the project file.
8603 (Packages_To_Check_By_Stack): Add this list that contains the packages
8604 to be checked by gnatstack, which are the naming and the stack packages.
8605 (Check_Files): If no .ci files were specified for gnatstack we add all
8606 the .ci files belonging to the projects, including binder generated
8608 (Non_VMS_Usage): Document that gnatstack accept project file switches.
8609 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
8610 Add gnatstack to the list of commands that use project file related
8611 switches, and get the single attribute Switches from the stack package
8612 in a project file when calling gnatstack. Parse the -U flag for
8613 processing files belonging to all projects in the project tree.
8614 Remove all processing for command Setup
8616 * prj-attr.adb: Add new package Stack with single attribute Switches
8618 * vms_conv.ads (Command_Type): Add command Stack.
8619 Move to body declarations that are only used in the body: types Item_Id,
8620 Translation_Type, Item_Ptr, Item and its subtypes.
8622 * vms_conv.adb: (Initialize): Add data for new command Stack.
8623 Add declarations moved from the spec: types Item_Id, Translation_Type,
8624 Item_Ptr, Item and its subtypes.
8625 (Cargs_Buffer): New table
8626 (Cargs): New Boolean global variable
8627 (Process_Buffer): New procedure to create arguments
8628 (Place): Put character in table Buffer or Cargs_Buffer depending on the
8630 (Process_Argument): Set Cargs when processing qualifiers for GNAT
8632 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
8633 empty, for table Cargs_Buffer.
8634 (Initialize): Remove component Setup in Command_List
8636 2007-04-06 Vincent Celier <celier@adacore.com>
8638 * gprep.adb (Process_Files.Process_One_File): Use full file name when
8639 issuing pragma Source_Reference.
8641 2007-04-06 Emmanuel Briot <briot@adacore.com>
8643 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
8644 [[:xdigit:]] character class.
8645 Also raise an exception when an invalid character class is used.
8647 2007-04-06 Pascal Obry <obry@adacore.com>
8649 * i-cstrea.ads: (fopen): Add encoding parameter.
8651 Change reference from a-sysdep.c to sysdep.c in comment.
8652 Update copyright notice.
8653 This set of patch add support for the encoding form parameter.
8655 * mingw32.h (S2WSU): New macro to convert from a string to a
8656 wide-string using the UTF-8 encoding. The S2WS macro supports now only
8657 standard 8bits encoding.
8658 (WS2SU): As above but converting from wide-sring to string.
8659 This is needed as it is necessary to have access to both versions in the
8660 runtime for the form parameter encoding support.
8661 This set of patch add support for the encoding form parameter.
8662 (S2WS): Improve implementation to handle cases where the filename is not
8663 UTF-8 encoded. In this case we default to using the current code page
8666 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
8667 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
8668 the constants defined in adaint.h.
8669 (fopen): Add encoding parameter.
8672 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
8673 encoding. This is needed for the Reset routine (freopen low level-call).
8675 * s-fileio.adb (Open): Decode encoding form parameter and set the
8676 corresponding encoding value into AFCB structure.
8677 (Reset): Pass the encoding value to freopen.
8678 (Close): Move the call to Lock_Task to the beginning of the procedure.
8680 2007-04-06 Geert Bosch <bosch@adacore.com>
8681 Robert Dewar <dewar@adacore.com>
8683 * i-fortra.ads: Add Double_Complex type.
8685 * impunit.adb: (Is_Known_Unit): New function
8686 Add Gnat.Byte_Swapping
8688 Add new Ada 2005 units
8689 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
8690 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
8691 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
8692 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
8694 * impunit.ads (Is_Known_Unit): New function
8696 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
8697 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
8698 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
8699 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
8700 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
8701 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
8704 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
8706 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
8708 2007-04-06 Eric Botcazou <botcazou@adacore.com>
8709 Arnaud Charlet <charlet@adacore.com>
8711 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
8712 __gnat_adjust_context_for_raise.
8713 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
8714 implementation of floating point operations as native x86 targets.
8715 So the FPU should be initialized in the same way using finit. Fix
8716 floating point operations accuracy issues.
8717 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
8718 member in struct sigaction, so as to avoid warning for incompatible
8721 2007-04-06 Serguei Rybin <rybin@adacore.com>
8723 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
8724 switches from previously loaded tree
8726 2007-04-06 Thomas Quinot <quinot@adacore.com>
8728 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
8729 cases where a given dependency has a body or not.
8730 (Write_With_File_Names): New subprogram, common code for the two cases
8733 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8734 Javier Miranda <miranda@adacore.com>
8736 * lib-xref.ads, lib-xref.adb:
8737 Modify the loop that collects type references, to include interface
8738 types that the type implements. List each of these interfaces when
8739 building the entry for the type.
8740 (Generate_Definition): Initialize component Def and Typ of new entry
8741 in table Xrefs, to avoid to have these components unitialized.
8742 (Output_References): Split Is_Abstract flag into
8743 Is_Abstract_Subprogram and Is_Abstract_Type.
8744 (Generate_Reference): Add barrier to do not generate the warning
8745 associated with Ada 2005 entities with entities generated by the
8748 2007-04-06 Robert Dewar <dewar@adacore.com>
8749 Arnaud Charlet <charlet@adacore.com>
8750 Vincent Celier <celier@adacore.com>
8752 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
8753 Update 'Exception Handling Control' chapter which was outdated.
8754 Minor fix to documentation of -gnatwq
8755 Remove section "Adapting the Run Time to a New C++ Compiler" because
8757 Add passage on need of -nostart-files in some non-ada-main cases.
8758 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
8759 Update documentation about Interfacing with C++
8760 Add documentation for new gnatmake switch -p
8761 Add missing protocol part in URLs.
8763 Document pragma Compile_Time_Error
8764 Add documentation for Object_Size indicating that stand alone
8765 objects can have a larger size in some cases.
8766 Add node for GNAT.Byte_Swapping, GNAT.SHA1
8767 Update reference to the Ravenscar profile.
8768 Document pragma Unreferenced_Objects
8770 * gnat-style.texi: Fix typo
8772 2007-04-06 Vincent Celier <celier@adacore.com>
8774 * mlib.adb (Building_Library): Only output "building a library..." in
8777 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
8778 files in verbose mode.
8780 * mlib-utl.adb (Ar): Only output the first object files when not in
8782 (Gcc): Do not display all the object files if not in verbose mode, only
8785 2007-04-06 Robert Dewar <dewar@adacore.com>
8787 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
8788 it no longer destroys the contents of Name_Buffer or Name_Len and
8789 non-standard and invalid names are handled better.
8790 (Get_Decoded_Name_String): Improve performance by using
8791 Name_Has_No_Encodings flag in the name table.
8792 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
8793 Used for debugging printouts.
8795 2007-04-06 Robert Dewar <dewar@adacore.com>
8796 Javier Miranda <miranda@adacore.com>
8797 Bob Duff <duff@adacore.com>
8799 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
8800 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8801 there is no need to generate always a record_definition_node in case
8802 of synchronized interface types.
8803 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
8804 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
8805 illegal in Ada 95, in cases where it is legal. Change the warnings to
8806 errors in other cases. Don't give the error unless the "not null"
8807 parses properly. Correct the source position at which the error occurs.
8808 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
8809 P_Null_Exclusion, to suppress "not null" warnings.
8810 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
8811 associated goto statements.
8813 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
8816 * scans.ads (Type_Token_Location): New flag
8818 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
8819 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
8820 P_Null_Exclusion, to suppress "not null" warnings.
8822 2007-04-06 Robert Dewar <dewar@adacore.com>
8823 Javier Miranda <miranda@adacore.com>
8824 Bob Duff <duff@adacore.com>
8825 Vincent Celier <celier@adacore.com>
8827 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
8828 (Extensions_Allowed): No longer sets Ada_Version
8829 Entry for pragma Unreferenced_Objects
8831 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
8832 system.tasking if pragma priority used in a procedure
8833 (Analyze_Pragma, case Warning): Handle dot warning switches
8834 (Process_Compile_Time_Warning_Or_Error): New procedure
8835 (Analyze_Pragma): Add processing for Compile_Time_Error
8836 Add support for extra arguments External_Name and Link_Name.
8837 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
8838 (Process_Import_Or_Interface): Add support for the use of pragma Import
8840 (Extensions_Allowed): No longer affects Ada_Version
8841 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
8842 Is_Abstract_Type. Make sure these are called only when appropriate.
8843 Add processing for pragma Unreferenced_Objects
8845 * snames.h, snames.ads, snames.adb: Add entry for pragma
8847 Add new standard name Minimum_Binder_Options for new gprmake
8848 Add new standard names for gprmake: Archive_Suffix,
8849 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
8850 Library_Support, Library_Version_Options,
8851 Shared_Library_Minimum_Options,
8852 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
8853 Change Name_Call to Name_uCall so that it cannot clash with a legal
8855 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
8856 Append C_Plus_Plus to convention identifiers as synonym for CPP
8857 Add new standard names Stack and Builder_Switches
8858 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
8859 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
8860 Run_Path_Option, Toolchain_Version.
8861 Entry for pragma Unreferenced_Objects
8863 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
8864 switches, without repetition of "eD". Make sure that last character of
8865 -gnatep= switch is not taken as -gnat switch character.
8866 Complete rewrite of circuit for handling saving compilation options
8867 Occasioned by need to support dot switchs for -gnatw, but cleans up
8869 -gnatX does not affect Ada_Version
8870 Include -gnatyA in -gnatg style switches
8872 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
8873 warnings on return objects.
8874 (Warn_On_Useless_Assignment): Exclude warnings on return objects
8875 (Set_Dot_Warning_Switch): New procedure
8876 (Check_References): Add missing case of test for
8877 Has_Pragma_Unreferenced_Objects
8878 (Output_Unreferenced_Messages): Implement effect of new pragma
8879 Unreferenced_Objects, remove special casing of limited controlled
8882 2007-04-06 Vincent Celier <celier@adacore.com>
8884 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
8885 the default project path, initially done during elaboration of the
8887 If the prefix returned by Sdefault is null, get the prefix from a call
8888 to Executable_Prefix_Path.
8889 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
8892 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
8893 canonical directory name to open the directory from which files are
8895 (Record_Other_Sources): Idem.
8896 (Locate_Directory): Add the possibility to create automatically missing
8897 directories when Setup_Projects is True.
8898 Call Locate_Directory so that the directory will be created when
8899 Setup_Projects is True, for object dir, library dir, library ALI dir,
8900 library source copy dir and exec dir.
8902 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
8905 2007-04-06 Robert Dewar <dewar@adacore.com>
8907 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
8908 Use First/Next_Component_Or_Discriminant
8909 (Analyze_Record_Representation_Clause):
8910 Use First/Next_Component_Or_Discriminant
8911 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
8912 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
8913 definition if type is unconstrained.
8914 (Adjust_Record_For_Reverse_Bit_Order): New procedure
8915 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
8916 Is_Abstract_Subprogram and Is_Abstract_Type.
8917 (Adjust_Record_For_Reverse_Bit_Order): New procedure
8919 * repinfo.adb (List_Record_Info): Use First/
8920 Next_Component_Or_Discriminant.
8922 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
8925 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
8926 Include -gnatyA in default switches
8928 * opt.ads: (Warn_On_Non_Local_Exception): New flag
8929 (Warn_On_Reverse_Bit_Order): New flag
8930 (Extensions_Allowed): Update the documentation.
8931 (Warn_On_Questionable_Missing_Parens): Now on by default
8933 * usage.adb: Add documentation of -gnatw.x/X switches
8934 Document new -gnatyA style switch
8935 -gnatq warnings are on by default
8937 2007-04-06 Ed Falis <falis@adacore.com>
8939 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
8940 full word is no longer compared twice.
8942 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8944 * sem_ch10.adb (Install_Limited_Context_Clauses.
8945 Expand_Limited_With_Clause): Use a new copy of selector name in the
8946 call to Make_With_Clause. This fixes the tree structure for ASIS
8947 purposes. Nothing is changed in the compiler behaviour.
8948 (Process_Body_Clauses): Handle properly use clauses whose prefix is
8950 (Install_Limited_With_Clauses): Do not install non-limited view when it
8951 is still incomplete.
8953 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8954 Gary Dismukes <dismukes@adacore.com>
8956 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
8957 when capturing size information, instead of base type, which for a
8958 formal array type will be the unconstrained type.
8959 (Analyze_Formal_Object_Declaration): Add check for illegal default
8960 expressions for a formal in object of a limited type.
8961 (Instantiate_Object): Ditto.
8962 (Check_Formal_Package_Instance): Skip entities that are formal objects,
8963 because they were defaulted in the formal package and no check applies
8965 (Check_Formal_Package_Instance): Extend conformance check to other
8966 discrete types beyond Integer.
8967 (Process_Default): Copy directly the unmatched formal. A generic copy
8968 has already been performed in Analyze_Formal_Package.
8969 (Analyze_Associations): If a formal subprogram has no match, check for
8970 partial parametrization before looking for a default, to prevent
8972 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
8973 not set the instantiation environment before analyzing the actuals.
8974 Fixes regression on 8515-003 with implementation of AI-133.
8975 Set_Instance_Env checks whether the generic unit is a predefined
8976 unit, in which case the instance must be analyzed with the latest Ada
8977 mode. This setting must take place after analysis of the actuals,
8978 because the actuals must be analyzed and frozen in the Ada mode extant
8979 outside of the current instantiation.
8980 (Save_Env, Restore_Env): Preserve and restore the configuration
8981 parameters so that predefined units can be compiled in the proper Ada
8983 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
8984 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
8985 and Is_Abstract_Type.
8986 (Analyze_Formal_Package): For better error recovery, Add exception
8987 handler to catch Instantion_Error, which can be raised in
8988 Analyze_Associations
8990 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8991 Bob Duff <duff@adacore.com>
8992 Gary Dismukes <dismukes@adacore.com>
8994 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
8995 prefix type is a discriminated subtype of the type of the formal.
8996 (Analyze_Allocator): Collect all coextensions regardless of the context.
8997 Whether they can be allocated statically is determined in exp_ch4.
8998 (Analyze_Selected_Component): If the prefix is a limited view and the
8999 non-limited view is available, use the non-limited one.
9000 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
9001 therefore illegal), suggest a qualified expression rather than a type
9002 conversion, because a type conversion would be illegal in this context.
9003 (Anayze_Allocator): Trace recursively all nested allocators so that all
9004 coextensions are on the corresponding list for the root. Do no mark
9005 coextensions if the root allocator is within a declaration for a stack-
9006 allocated object, because the access discriminants will be allocated on
9008 (Analyze_Call): Remove restriction on calls to limited functions for the
9009 cases of generic actuals for formal objects, defaults for formal objects
9010 and defaults for record components.
9011 (Analyze_Allocator): Before analysis, chain coextensions on the proper
9012 element list. Their expansion is delayed until the enclosing allocator
9013 is processed and its finalization list constructed.
9014 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
9015 for an operation with the given name among the primitive operations of
9016 the corresponding record type.
9017 (Analyze_Selected_Component): If the prefix is a task type that
9018 implements an interface, and there is no entry with the given name,
9019 check whether there is another primitive operation (e.g. a function)
9021 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
9022 properly the indexing of a function call written in prefix form, where
9023 the function returns an array type, and all parameters of the function
9024 except the first have defaults.
9025 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
9026 the original operands, rather than relocating them, for efficiency and
9027 to work properly when an operand is overloaded.
9028 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
9029 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
9030 (Analyze_Selected_Component): If the prefix is a private extension, only
9031 scan the visible components, not those of the full view.
9032 (Try_Primitive_Operation): If the operation is a procedure, collect all
9033 possible interpretations, as for a function, because in the presence of
9034 classwide parameters several primitive operations of the type can match
9035 the given arguments.
9037 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9038 Robert Dewar <dewar@adacore.com>
9040 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
9041 tag-indeterminate call to an abstract function, when the left-hand side
9043 (Analyze_Loop_Statement): Improve detection of infinite loops
9045 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9046 Thomas Quinot <quinot@adacore.com>
9048 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
9049 out of Analyze_Package_Declaration, because processing must be applied
9050 to package bodies as well, for deferred constants completed by pragmas.
9051 (Analyze_Package_Declaration): When the package declaration being
9052 analyzed does not require an explicit body, call Check_Completion.
9053 (May_Need_Implicit_Body): An implicit body is required when a package
9054 spec contains the declaration of a remote access-to-classwide type.
9055 (Analyze_Package_Body): If the package contains RACWs, append the
9056 pending subprogram bodies generated by exp_dist at the end of the body.
9057 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
9058 Is_Abstract_Subprogram and Is_Abstract_Type.
9059 (Preserve_Full_Attributes): The full entity list is not an attribute
9060 that must be preserved from full to partial view.
9062 * sem_dist.adb (Add_RAS_Dereference_TSS):
9063 Change primitive name to _Call so it cannot clash with any legal
9064 identifier, and be special-cased in Check_Completion.
9065 Mark the full view of the designated type for the RACW associated with
9066 a RAS as Comes_From_Source to get proper view switching when installing
9067 private declarations.
9068 Provite a placeholder nested package body along with the nested spec
9069 to have a place for Append_RACW_Bodies to generate the calling stubs
9070 and stream attributes.
9072 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9073 Robert Dewar <dewar@adacore.com>
9075 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
9076 that is a limited view, check the non-limited view if available.
9077 (Undefined): Refine error message for missing with of Text_IO
9078 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
9079 to distinguish real missing with cases.
9080 Fix format of all missing with messages
9081 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
9082 renaming as body when renamed entity is abstract.
9084 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9085 Javier Miranda <miranda@adacore.com>
9087 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
9088 predicate recursive, to handle complex expressions on literals whose
9089 spurious ambiguity comes from the abstract interpretation of some
9091 (Interface_Present_In_Ancestor): Add support to concurrent record
9093 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
9094 Is_Abstract_Subprogram and Is_Abstract_Type.
9096 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9097 Javier Miranda <miranda@adacore.com>
9099 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
9100 dereference of a local object R created as a reference to another
9101 object O, use the access level of O.
9102 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
9103 rather than local Same_Formal_Type, to check whether protected operation
9104 overrides an inherited one.
9105 (Same_Formal_Type): New predicate, used when matching signatures of
9106 overriding synchronized operations, to handle the case when a formal
9107 has a type that is a generic actual.
9108 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
9109 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
9110 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
9111 syntactic ambiguities involving indexing of function calls that return
9113 (Abstract_Interface_List): New subprogram that returns the list of
9114 abstract interfaces associated with a concurrent type or a
9115 concurrent record type.
9116 (Interface_Present_In_Parent): New subprogram used to check if a
9117 given type or some of its parents implement a given interface.
9118 (Collect_Abstract_Interfaces): Add support for concurrent types
9119 with interface types.
9120 (Has_Abstract_Interfaces): Add support for concurrent types with
9122 (Is_Parent): New subprogram that determines whether E1 is a parent
9123 of E2. For a concurrent type its parent is the first element of its
9124 list of interface types; for other types this function provides the
9125 same result than Is_Ancestor.
9126 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
9127 (Collect_Synchronized_Interfaces): Removed because the subprogram
9128 Collect_Abstract_Interfaces provides this functionality.
9129 (Collect_Abstract_Interfaces): Minor update to give support to
9130 concurrent types and thus avoid undesired code duplication.
9131 (Get_Subprogram_Entity): Handle entry calls.
9132 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
9134 (Enter_Name): Do not give -gnatwh hiding warning for record component
9135 entities, they never result in hiding.
9137 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9138 Robert Dewar <dewar@adacore.com>
9140 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
9141 to chain nested components that are allocators for access discriminants
9142 of the enclosing object.
9143 Add N_Push and N_Pop nodes
9144 New field Exception_Label added
9145 (Local_Raise_Statements): New field in N_Exception_Handler_Node
9146 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
9147 (Is_Coextension): New flag for allocators, to mark allocators that
9148 correspond to access discriminants of dynamically allocated objects.
9149 (N_Block_Statement): Document the fact that the corresponding entity
9150 can be an E_Return_Statement.
9151 (Is_Coextension): New flag for allocators.
9152 Remove all code for DSP option
9154 * sprint.ads, sprint.adb: Display basic information for class_wide
9155 subtypes. Add handling of N_Push and N_Pop nodes
9157 2007-04-06 Arnaud Charlet <charlet@adacore.com>
9159 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
9160 before propagating exception.
9162 2007-04-06 Olivier Hainque <hainque@adacore.com>
9164 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
9165 an address always within the call instruction from a return address.
9167 2007-04-06 Olivier Hainque <hainque@adacore.com>
9168 Eric Botcazou <botcazou@adacore.com>
9170 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
9171 expression with a COMPOUND_EXPR including the call instead of emitting
9172 the call directly here.
9173 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
9174 high bound is constant and the slice is empty. Tidy.
9175 (tree_transform, case N_Op_Not): Handle properly the case where the
9176 operation applies to a private type whose full view is a modular type.
9177 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
9178 Address_Clause, use the associated Expression as the GNAT tree
9179 representing the choice value to ensure the corresponding GCC tree is
9181 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
9182 instead of just the operands, as the base GCC stabilize_reference does.
9183 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
9184 requested; otherwise fail.
9185 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
9187 2007-04-06 Thomas Quinot <quinot@adacore.com>
9189 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
9190 implementation of UI_Div.
9191 (UI_Div): Reimplement as a call to UI_Div_Rem.
9192 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
9193 remainder, avoiding the cost of a multiplication and a subtraction.
9194 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
9195 provides both quotient and remainder in a single computation.
9196 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
9198 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
9199 is undefined if the given n is not inversible.
9201 2007-04-06 Olivier Hainque <hainque@adacore.com>
9203 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
9204 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
9207 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9208 Olivier Hainque <hainque@adacore.com>
9210 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
9211 when updating the contents of the old pointer to an unconstrained array.
9212 (end_subprog_body): Set error_gnat_node to Empty.
9213 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
9214 (unchecked_convert): For subtype to base type conversions, require that
9215 the source be a subtype if it is an integer type.
9216 (builtin_decls): New global, vector of available builtin functions.
9217 (gnat_pushdecl): Add global builtin function declaration nodes to the
9219 (gnat_install_builtins): Adjust comments.
9220 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
9221 calling gnat_pushdecl, so that it knows when it handed a builtin
9222 function declaration node.
9223 (builtin_decl_for): Search the builtin_decls list.
9225 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9227 * s-stchop-vxworks.adb:
9228 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
9230 2007-04-06 Robert Dewar <dewar@adacore.com>
9231 Arnaud Charlet <charlet@adacore.com>
9233 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
9235 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
9237 Add mention of -Sev (set initialize_scalars option from environment
9238 variable at run time) in gnatbind usage message.
9240 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
9242 * fname-uf.ads: Minor comment fix
9244 * osint.ads: Change pragma Elaborate to Elaborate_All
9246 * par-load.adb: Add documentation.
9248 * sem_cat.ads, sem_cat.adb: Minor code reorganization
9250 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
9252 * s-secsta.ads: Extra comments
9254 * s-soflin.ads: Minor comment fixes
9256 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
9258 * s-wchcon.ads: Minor comment addition
9260 * treepr.adb: Minor change in message
9261 (Print_Name,Print_Node): Make these debug printouts more robust: print
9262 "no such..." instead of crashing on bad input.
9264 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
9266 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
9267 instead of gnat_signed_or_unsigned_type.
9268 * utils.c (gnat_signed_or_unsigned_type): Remove.
9269 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
9270 * gigi.h (gnat_signed_or_unsigned_type): Remove
9272 2007-03-09 Roger Sayle <roger@eyesopen.com>
9274 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
9275 fold with the result of buildN.
9276 * decl.c (gnat_to_gnu_entity): Likewise.
9277 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
9278 * utils.c (finish_record_type, merge_sizes, max_size, convert):
9280 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
9281 nonbinary_modular_operation, build_binary_op, build_unary_op,
9282 build_cond_expr): Likewise.
9284 * utils.c (convert): Use fold_build1 when casting values to void.
9285 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
9286 fold_convert instead of convert when appropriate.
9288 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
9290 * Make-lang.in: Add install-pdf target as copied from
9291 automake v1.10 rules.
9293 2007-02-28 Andreas Schwab <schwab@suse.de>
9295 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
9296 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
9297 (doc/gnat-style.info): Likewise.
9299 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
9301 * gnat-style.texi: Standardize title page.
9302 * gnat_rm.texi: Likewise.
9303 * gnat_ugn.texi: Likewise.
9305 2007-02-25 Mark Mitchell <mark@codesourcery.com>
9307 * decl.c (annotate_value): Adjust for refactoring of tree_map
9310 2007-02-24 Mark Mitchell <mark@codesourcery.com>
9312 * decl.c (annotate_value): Adjust for refactoring of tree_map
9315 2007-02-21 Ed Schonberg <schonberg@adacore.com>
9318 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
9319 untagged derived type, add hidden components to keep discriminant
9320 layout consistent, when a given discriminant of the derived type
9321 constraints several discriminants of the parent type.
9323 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
9324 Sandra Loosemore <sandra@codesourcery.com>
9326 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
9327 build the call expression.
9328 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
9329 * utils.c (max_size) <tcc_exceptional>: Delete.
9330 <tcc_vl_exp>: New case.
9331 <tcc_expression>: Delete CALL_EXPR subcase.
9332 (build_global_cdtor): Use build_call_nary instead of build3.
9333 * utils2.c (build_call_1_expr): Likewise.
9334 (build_call_2_expr): Likewise.
9335 (build_call_0_expr): Likewise.
9336 (build_call_alloc_dealloc): Likewise.
9338 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
9340 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9341 get_action_description_for): Replace _Unwind_Word with _uleb128_t
9342 and _Unwind_SWord with _sleb128_t.
9344 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
9346 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
9347 * decl.c: Include gt-ada-decl.h.
9348 (annotate_value_cache): New.
9349 (annotate_value): Use it instead of TREE_COMPLEXITY.
9351 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
9353 * misc.c, utils2.c: Fix comment typos.
9355 2007-01-24 Roger Sayle <roger@eyesopen.com>
9357 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
9358 TREE_CONSTANT_OVERFLOW.
9359 (allocatable_size_p, annotate_value): Likewise.
9360 * trans.c (gnat_to_gnu): Likewise.
9361 * utils.c (unchecked_convert): Likewise.
9362 * utils2.c (build_simple_component_ref): Likewise.
9364 2007-01-23 Richard Guenther <rguenther@suse.de>
9367 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
9368 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
9369 (gnatboot3): Likewise.
9370 (GNATBIND): Do not define.
9371 * Makefile.in (GNATBIND): Do not define.
9373 2007-01-08 Richard Guenther <rguenther@suse.de>
9375 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
9376 * trans.c (gnat_to_gnu): Likewise.
9378 2006-12-07 Geoffrey Keating <geoffk@apple.com>
9380 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
9381 * adaint.c: Likewise.
9383 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
9385 Merge from gimple-tuples-branch:
9386 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
9388 * ada-tree.h (lang_tree_node): Handle gimple tuples.
9389 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
9392 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
9394 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
9395 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
9398 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
9401 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
9402 if the initializer takes into account the padding.
9404 2006-11-11 Richard Guenther <rguenther@suse.de>
9406 * trans.c (maybe_stabilize_reference): Remove handling of
9407 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
9409 2006-11-05 Arnaud Charlet <charlet@adacore.com>
9412 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
9413 (To_Target_Priority): New function.
9415 2006-10-31 Robert Dewar <dewar@adacore.com>
9417 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
9418 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
9419 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
9420 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
9421 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
9422 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
9423 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
9424 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
9425 a-szbzha.adb: Minor reformatting. Fix header.
9427 * a-numaux-x86.adb: Add parentheses for use of unary minus
9428 * a-ngcefu.adb: Supply missing parentheses for unary minus
9429 * a-ngcoty.adb: Add parens for use of unary minus
9430 * a-ngelfu.adb: Add missing parens for unary minus
9431 * a-tifiio.adb: Add parentheses for uses of unary minus
9433 2006-10-31 Robert Dewar <dewar@adacore.com>
9434 Bob Duff <duff@adacore.com>
9435 Ed Schonberg <schonberg@adacore.com>
9437 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
9438 with multiplying operator.
9439 (Expected_Type_Is_Any_Real): New function to determine from the Parent
9440 pointer whether the context expects "any real type".
9441 (Resolve_Arithmetic_Op): Do not give an error on calls to the
9442 universal_fixed "*" and "/" operators when they are used in a context
9443 that expects any real type. Also set the type of the node to
9444 Universal_Real in this case, because downstream processing requires it
9445 (mainly static expression evaluation).
9446 Reword some continuation messages
9447 Add some \\ sequences to continuation messages
9448 (Resolve_Call): Refine infinite recursion case. The test has been
9449 sharpened to eliminate some false positives.
9450 Check for Current_Task usage now includes entry barrier, and is now a
9451 warning, not an error.
9452 (Resolve): If the call is ambiguous, indicate whether an interpretation
9453 is an inherited operation.
9454 (Check_Aggr): When resolving aggregates, skip associations with a box,
9455 which are priori correct, and will be replaced by an actual default
9456 expression in the course of expansion.
9457 (Resolve_Type_Conversion): Add missing support for conversion from
9458 a class-wide interface to a tagged type. Minor code cleanup.
9459 (Valid_Tagged_Converion): Add support for abstact interface type
9461 (Resolve_Selected_Component): Call Generate_Reference here rather than
9462 during analysis, and use May_Be_Lvalue to distinguish read/write.
9463 (Valid_Array_Conversion): New procedure, abstracted from
9464 Valid_Conversion, to incorporate accessibility checks for arrays of
9465 anonymous access types.
9466 (Valid_Conversion): For a conversion to a numeric type occurring in an
9467 instance or inlined body, no need to check that the operand type is
9468 numeric, since this has been checked during analysis of the template.
9469 Remove legacy test for scope name Unchecked_Conversion.
9471 * sem_res.ads: Minor reformatting
9473 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
9474 (PE_Current_Task_In_Entry_Body): New exception code
9475 (SE_Restriction_Violation): Removed, not used
9477 * a-except.ads: Update comments.
9479 * types.h, types.ads: Add definition for Validity_Check
9480 (PE_Current_Task_In_Entry_Body): New exception code
9481 (SE_Restriction_Violation): Removed, not used
9483 2006-10-31 Thomas Quinot <quinot@adacore.com>
9485 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
9488 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9489 Jose Ruiz <ruiz@adacore.com>
9491 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
9492 part of Ada.Calendar: all subprogram raise Unimplemented.
9493 (Split_W_Offset): Temp function body, raising Unimplemented
9495 * a-calend.ads, a-calend-vms.ads:
9496 Add imported variable Invalid_TZ_Offset used to designate targets unable
9497 to support time zones.
9498 (Unimplemented): Temporary function raised by the body of new
9500 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
9501 unit provides handling of leap seconds and is used by the new Ada 2005
9502 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
9503 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
9504 version returns an extra value which is the offset to UTC.
9506 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
9507 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
9508 (Split_W_Offset): New function body.
9509 (Time_Of): When a date is close to UNIX epoch, compute the time for
9510 that date plus one day (that amount is later substracted after
9511 executing mktime) so there are no problems with time zone adjustments.
9513 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
9515 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
9516 a-catizo.ads, a-catizo.adb: New files.
9518 * impunit.adb: Add new Ada 2005 entries
9520 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
9521 Rename all occurences of "__gnat_localtime_r" to
9522 "__gnat_localtime_tzoff".
9523 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
9524 zone data and calculate the GMT offset.
9525 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
9526 Use the field "tm_gmtoff" to extract the GMT offset.
9527 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
9528 the external variable "timezone" to calculate the GMT offset.
9530 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9531 Jose Ruiz <ruiz@adacore.com>
9533 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
9534 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
9535 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
9536 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
9537 System.Any_Priority to a POSIX priority on the target.
9539 * system-linux-ia64.ads:
9540 Extend range of Priority types on Linux to use the whole range made
9541 available by the system.
9543 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
9544 function maps from System.Any_Priority to a POSIX priority on the
9546 (PTHREAD_PRIO_PROTECT): Set real value.
9547 (PTHREAD_PRIO_INHERIT): Now a function.
9548 (SIGCPUFAIL): New signal.
9549 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
9550 are documented as reserved by the OS.
9552 * system-aix.ads: Use the full range of priorities provided by the
9555 * s-taprop-posix.adb: Call new function To_Target_Priority.
9556 (Set_Priority): Take into account Task_Dispatching_Policy and
9557 Priority_Specific_Dispatching pragmas when determining if Round Robin
9558 must be used for scheduling the task.
9560 * system-linux-x86_64.ads, system-linux-x86.ads,
9561 system-linux-ppc.ads: Extend range of Priority types on Linux to use
9562 the whole range made available by the system.
9564 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
9565 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
9566 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
9567 when deallocating the TCB in order to avoid potential references to
9569 (Set_Priority): Take into account Task_Dispatching_Policy and
9570 Priority_Specific_Dispatching pragmas when determining if Round Robin
9571 or FIFO within priorities must be used for scheduling the task.
9573 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
9574 the Thread field (to be used internally by the run-time system) and the
9575 kernel-level task id in the LWP field (to be used by the debugger).
9576 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
9577 instance, and propagate the current task options to the spawned task.
9578 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
9579 (Initialize): Set Round Robin dispatching when the corresponding pragma
9582 2006-10-31 Robert Dewar <dewar@adacore.com>
9584 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
9585 system-linux-hppa.ads, system-hpux-ia64.ads,
9586 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
9587 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9588 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
9589 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
9590 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
9591 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
9592 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
9593 Default_Bit_Order) to kill constant condition warnings for references
9596 2006-10-31 Vincent Celier <celier@adacore.com>
9597 Eric Botcazou <ebotcazou@adacore.com>
9599 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
9600 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
9601 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
9602 Ext_To, when building the library file name
9604 * mlib-tgt-vxworks.adb: ditto.
9605 (Get_Target_Suffix): Add support for x86 targets.
9607 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
9609 * mlib-tgt-darwin.adb:
9610 Use Append_To, instead of Ext_To, when building the library file name
9611 (Flat_Namespace): New global variable.
9612 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
9613 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
9614 (Link_Shared_Libgcc): Delete.
9615 (Build_Dynamic_Library): Adjust for above changes.
9617 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
9619 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
9621 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
9622 (Initialize): Add type conversions required by above change.
9624 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9626 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
9627 (getpid): New body for this function that uses the underlying taskIdSelf
9628 function for VxWorks 5 and VxWorks 6 in kernel mode.
9629 (unsigned_int): New type, modular to allow logical bit operations.
9630 (taskOptionsGet): New imported function.
9632 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
9633 field to be compliant with the type used by the corresponding operating
9636 2006-10-31 Pascal Obry <obry@adacore.com>
9637 Eric Botcazou <ebotcazou@adacore.com>
9638 Vincent Celier <celier@adacore.com>
9640 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
9641 ASCII version of the registry API. This is needed as the GNAT runtime
9642 is now UNICODE by default.
9644 (get_gcc_version): Do not hardcode the return value.
9645 (__gnat_file_time_name): On Windows properly set the default returned
9646 value to -1 which corresponds to Invalid_Time.
9647 (__gnat_fopen): New routine. A simple wrapper on all plateforms
9648 except on Windows where it does conversion for unicode support.
9649 (__gnat_freopen): Idem.
9650 (__gnat_locate_exec_on_path): If environment variable PATH does not
9651 exist, return a NULL pointer
9653 * adaint.h: (__gnat_fopen): Declare.
9654 (__gnat_freopen): Likewise.
9656 * mingw32.h (_tfreopen): Define this macro here for older MingW
9658 Activate the unicode support on platforms using a MingW runtime
9659 version 3.9 or newer.
9661 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
9662 This is needed for proper unicode support on Windows.
9665 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
9666 Nicolas Setton <setton@adacore.com>
9667 Olivier Hainque <hainque@adacore.com>
9668 Gary Dismukes <dismukes@adacore.com>
9670 * gigi.h: (tree_code_for_record_type): Declare.
9671 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
9672 (get_global_renaming_pointers): Rename to
9673 invalidate_global_renaming_pointers.
9674 (static_ctors): Delete.
9675 (static_dtors): Likewise.
9676 (gnat_write_global_declarations): Declare.
9677 (create_var_decl): Adjust descriptive comment to indicate that the
9678 subprogram may return a CONST_DECL node.
9679 (create_true_var_decl): Declare new function, similar to
9680 create_var_decl but forcing the creation of a VAR_DECL node.
9681 (get_global_renaming_pointers): Declare.
9682 (add_global_renaming_pointer): Likewise.
9684 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
9686 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
9687 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
9689 (gnat_to_gnu_entity): Remove From_With_Type from computation for
9691 <E_Access_Type>: Use the Non_Limited_View as the full view of the
9692 designated type if the pointer comes from a limited_with clause. Make
9693 incomplete designated type if it is in the main unit and has a freeze
9695 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
9696 Underlying_Full_View similarly. Return earlier if the full view already
9697 has an associated tree.
9698 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
9699 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
9700 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
9701 reference type built for objects with an address clause.
9702 Use create_true_var_decl with const_flag set for
9703 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
9705 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
9706 for Character and Wide_Character types. This info is read by the
9707 dwarf-2 writer, and is needed to be able to use the command "ptype
9708 character" in the debugger.
9709 (gnat_to_gnu_entity): When generating a type representing
9710 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
9711 so that debug writers can distinguish it from ordinary integers.
9712 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
9713 addition to TREE_READONLY to assert the constantness of variables for
9714 elaboration purposes.
9715 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
9716 parameters to call new Einfo function First_Formal_With_Extras.
9717 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
9718 protected type with its corresponding discriminant, to obtain a usable
9720 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
9721 for a multiple elaboration of the "equivalent" type.
9722 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
9723 into record_global_renaming_pointer.
9724 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
9725 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
9726 <E_Array_Subtype>: Likewise.
9727 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
9728 incomplete subtypes and incomplete subtypes of incomplete types visible
9729 through a limited with clause.
9730 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
9731 the base index type for the maximum size of the array only if they are
9733 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
9734 expression into a SAVE_EXPR if stabilization failed.
9736 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
9737 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
9738 by lower level compilation passes.
9739 (gnat_genericize): New function, lowering a function body to GENERIC.
9740 Turn the type of RESULT_DECL into a real reference type if the decl
9741 has been marked DECL_BY_REFERENCE, and adjust references to the latter
9743 (gnat_genericize_r): New function. Tree walking callback for
9745 (convert_from_reference, is_byref_result): New functions. Helpers for
9747 (create_type_decl): Call gnat_pushdecl before calling
9748 rest_of_decl_compilation, to make sure that field TYPE_NAME of
9749 type_decl is properly set before calling the debug information writers.
9750 (write_record_type_debug_info): The heuristics which compute the
9751 alignment of a field in a variant record might not be accurate. Add a
9752 safety test to make sure no alignment is set to a smaller value than
9753 the alignment of the field type.
9754 (make_dummy_type): Use the Non_Limited_View as the underlying type if
9755 the type comes from a limited_with clause. Do not loop on the full view.
9756 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
9757 (dummy_node_table): New global variable, moved from decl.c.
9758 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
9759 (save_gnu_tree): Use above macros.
9760 (get_gnu_tree): Likewise.
9761 (present_gnu_tree): Likewise.
9762 (init_dummy_type): New function, moved from decl.c. Use above macros.
9763 (make_dummy_type): Likewise.
9764 (tree_code_for_record_type): New function extracted from make_dummy_type
9765 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
9766 (static_ctors): Change it to a vector, make static.
9767 (static_dtors): Likewise.
9768 (end_subprog_body): Adjust for above change.
9769 (build_global_cdtor): Moved from trans.c.
9770 (gnat_write_global_declarations): Emit global constructor and
9771 destructor, and call cgraph_optimize before emitting debug info for
9772 global declarations.
9773 (global_decls): New global variable.
9774 (gnat_pushdecl): Store the global declarations in global_decls, for
9776 (gnat_write_global_declarations): Emit debug information for global
9778 (create_var_decl_1): Former create_var_decl, with an extra argument to
9779 state whether the creation of a CONST_DECL is allowed.
9780 (create_var_decl): Behavior unchanged. Now a wrapper around
9781 create_var_decl_1 allowing CONST_DECL creation.
9782 (create_true_var_decl): New function, similar to create_var_decl but
9783 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
9784 (create_field_decl): Do not always mark the field as addressable
9785 if its type is an aggregate.
9786 (global_renaming_pointers): New static variable.
9787 (add_global_renaming_pointer): New function.
9788 (get_global_renaming_pointers): Likewise.
9790 * misc.c (gnat_dwarf_name): New function.
9791 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
9792 (gnat_post_options): Add comment about structural alias analysis.
9793 (gnat_parse_file): Do not call cgraph_optimize here.
9794 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
9796 * trans.c (process_freeze_entity): Don't abort if we already have a
9797 non dummy GCC tree for a Concurrent_Record_Type, as it might
9798 legitimately have been elaborated while processing the associated
9799 Concurrent_Type prior to this explicit freeze node.
9800 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
9801 exception handler volatile if it is of variable size.
9802 (process_type): Remove bypass for types coming from a limited_with
9804 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
9805 actual, convert the corresponding gnu_actual to the real destination
9806 type when necessary.
9807 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
9808 originally TREE_READONLY but whose elaboration cannot be performed
9810 Part of fix for F504-021.
9811 (tree_transform, subprogram cases): Change loops on formal parameters to
9812 call new Einfo function First_Formal_With_Extras.
9813 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
9814 stemming from type conversion for the lhs.
9815 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
9816 number of bits per unit for components of records.
9817 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
9818 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
9819 with At_End_Proc after the SJLJ EH cleanup.
9820 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
9822 (elaborate_all_entities): Do not retest type_annotate_only.
9823 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
9824 result type of an abstract subprogram, which may be an itype associated
9825 with an anonymous access result (related to AI-318-02).
9826 (build_global_cdtor): Move to utils.c.
9827 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
9828 this choice is not a null tree nor an integer constant.
9829 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
9830 on the body of elaboration routines instead of mark_unvisited.
9831 (add_stmt): Do not mark the tree.
9832 (add_decl_expr): Tweak comment.
9833 (mark_unvisited): Delete.
9834 (unshare_save_expr): New static function.
9835 (call_to_gnu): Issue an error when making a temporary around a
9836 procedure call because of non-addressable actual parameter if the
9837 type of the formal is by_reference.
9838 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
9839 after building the elaboration routine.
9841 2006-10-31 Bob Duff <duff@adacore.com>
9843 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
9844 as finalization-started, so we can raise Program_Error on 'new'.
9846 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
9847 collection has already started.
9849 * s-finimp.ads (Collection_Finalization_Started): Added new special
9850 flag value for indicating that a collection's finalization has started.
9852 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
9853 create a task whose master has already waited for dependent tasks.
9855 2006-10-31 Robert Dewar <dewar@adacore.com>
9857 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
9859 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
9860 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
9861 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
9862 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
9863 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
9864 a-except-2005.ads: Add pragma Preelaborable_Warning
9866 2006-10-31 Robert Dewar <dewar@adacore.com>
9867 Jose Ruiz <ruiz@adacore.com>
9869 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
9871 * ali.adb (Get_Name): Properly handle scanning of wide character names
9872 encoded with brackets notation.
9873 (Known_ALI_Lines): Add S lines to this list.
9874 (Scan_ALI): Acquire S (priority specific dispatching) lines.
9875 New flag Elaborate_All_Desirable in unit table
9877 * ali.ads (Priority_Specific_Dispatching): Add this range of
9878 identifiers to be used for Priority_Specific_Dispatching table entries.
9879 (ALIs_Record): Add First_Specific_Dispatching and
9880 Last_Specific_Dispatching that point to the first and last entries
9881 respectively in the priority specific dispatching table for this unit.
9882 (Specific_Dispatching): Add this table for storing each S (priority
9883 specific dispatching) line encountered in the input ALI file.
9884 New flag Elaborate_All_Desirable in unit table
9886 * bcheck.adb: (Check_Configuration_Consistency): Add call to
9887 Check_Consistent_Dispatching_Policy.
9888 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
9889 verifying that the use of Priority_Specific_Dispatching,
9890 Task_Dispatching_Policy, and Locking_Policy is consistent across the
9893 * bindgen.adb: (Public_Version_Warning): function removed.
9894 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
9895 required information from ALI files in order to initialize the table
9896 containing the specific dispatching policy.
9897 (Gen_Adainit_Ada): Generate the variables required for priority specific
9898 dispatching entries (__gl_priority_specific_dispatching and
9899 __gl_num_specific_dispatching).
9900 (Gen_Adainit_C): Generate the variables required for priority specific
9901 dispatching entries (__gl_priority_specific_dispatching and
9902 __gl_num_specific_dispatching).
9903 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
9905 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
9906 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
9908 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
9909 a call to gnat_set_globals.
9910 Generate a string containing settings from
9911 Priority_Specific_Dispatching pragma entries.
9912 (Gen_Object_Files_Options): Do not include the runtime libraries when
9913 pragma No_Run_Time is specified.
9915 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
9916 consistency with s-intman-posix.adb.
9917 (__gnat_error_handler, case FreeBSD): Account for the fact that the
9918 handler is installed with SA_SIGINFO.
9919 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
9920 FreeBSD ZCX support, copied from Linux version.
9921 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
9922 sigfillset, and sigemptyset so the routines defined by MaRTE.
9923 (__gl_priority_specific_dispatching): Add this variable that stores the
9924 string containing priority specific dispatching policies in the
9926 (__gl_num_specific_dispatching): Add this variable that indicates the
9927 highest priority for which a priority specific dispatching pragma
9929 (__gnat_get_specific_dispatching): Add this routine that returns the
9930 priority specific dispatching policy, as set by a
9931 Priority_Specific_Dispatching pragma appearing anywhere in the current
9932 partition. The input argument is the priority number, and the result
9933 is the upper case first character of the policy name.
9934 (__gnat_set_globals): Now a dummy function.
9935 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
9936 mechargs instead of sigargs, as the latter can be retrieved from the
9937 former and sigargs is not what we want on ia64.
9938 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
9940 (__gnat_adjust_context_for_raise, ia64-vms): New function.
9941 (tasking_error): Remove unused symbol.
9942 (_abort_signal): Move this symbol to the IRIX specific part since this
9943 is the only target that uses this definition.
9944 (Check_Abort_Status): Move this symbol to the IRIX specific part since
9945 this is the only target that uses this definition.
9946 (Lock_Task): Remove unused symbol.
9947 (Unlock_Task): Remove unused symbol.
9949 * lib-writ.adb (Write_ALI): Output new S lines for
9950 Priority_Specific_Dispatching pragmas.
9951 Implement new flag BD for elaborate body desirable
9953 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
9954 (Specific_Dispatching): Add this table for storing the entries
9955 corresponding to Priority_Specific_Dispatching pragmas.
9956 Document new BD flag for elaborate body desirable
9958 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
9961 2006-10-31 Javier Miranda <miranda@adacore.com>
9963 * a-tags.ads, a-tags.adb:
9964 (Predefined_DT): New function that improves readability of the code.
9965 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
9966 Inherit_DT): Use the new function Predefined_DT to improve code
9968 (Register_Interface_Tag): Update assertion.
9969 (Set_Interface_Table): Update assertion.
9970 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
9971 determining progenitor interfaces in Tags.
9972 (Inherit_CPP_DT): New subprogram.
9974 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
9975 analysis of the thunk code.
9976 (Expand_Interface_Conversion): Handle run-time conversion of
9977 access to class wide types.
9978 (Expand_Dispatching_Call): When generating the profile for the
9979 subprogram itype for a dispatching operation, properly terminate the
9980 formal parameters chaind list (set the Next_Entity of the last formal
9982 (Collect_All_Interfaces): Removed. This routine has been moved to
9983 sem_util and renamed as Collect_All_Abstract_Interfaces.
9984 (Set_All_DT_Position): Hidden entities associated with abstract
9985 interface primitives are not taken into account in the check for
9986 3.9.3(10); this check is done with the aliased entity.
9987 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
9988 interfacing with CPP by default.
9989 (Expand_Interface_Conversion): Add missing support for static conversion
9990 from an interface to a tagged type.
9991 (Collect_All_Interfaces): Add new out formal containing the list of
9992 abstract interface types to cleanup the subprogram Make_DT.
9993 (Make_DT): Update the code to generate the table of interfaces in case
9994 of abstract interface types.
9995 (Is_Predefined_Dispatching_Alias): New function that returns true if
9996 a primitive is not a predefined dispatching primitive but it is an
9997 alias of a predefined dispatching primitive.
9998 (Make_DT): If the ancestor of the type is a CPP_Class and we are
9999 compiling under full ABI compatibility mode we avoid the generation of
10000 calls to run-time services that fill the dispatch tables because under
10001 this mode we currently inherit the dispatch tables in the IP subprogram.
10002 (Write_DT): Emit an "is null" indication for a null procedure primitive.
10003 (Expand_Interface_Conversion): Use an address as the type of the formal
10004 of the internally built function that handles the case in which the
10005 target type is an access type.
10007 2006-10-31 Robert Dewar <dewar@adacore.com>
10009 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
10011 2006-10-31 Robert Dewar <dewar@adacore.com>
10013 * bindusg.ads, bindusg.adb:
10014 Change to package and rename procedure as Display, which
10015 now ensures that it only outputs usage information once.
10017 2006-10-31 Jose Ruiz <ruiz@adacore.com>
10019 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
10022 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
10025 2006-10-31 Robert Dewar <dewar@adacore.com>
10026 Ed Schonberg <schonberg@adacore.com>
10028 * treepr.adb: Use new subtype N_Membership_Test
10030 * checks.ads, checks.adb: Add definition for Validity_Check
10031 (Range_Or_Validity_Checks_Suppressed): New function
10032 (Ensure_Valid): Test Validity_Check suppressed
10033 (Insert_Valid_Check): Test Validity_Check suppressed
10034 (Insert_Valid_Check): Preserve Do_Range_Check flag
10035 (Validity_Check_Range): New procedure
10036 (Expr_Known_Valid): Result of membership test is always valid
10037 (Selected_Range_Checks): Range checks cannot be applied to discriminants
10038 by themselves. Disabling those checks must also be done for task types,
10039 where discriminants may be used for the bounds of entry families.
10040 (Apply_Address_Clause_Check): Remove side-effects if address expression
10041 is non-static and is not the name of a declared constant.
10042 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
10043 Code cleanup and new error messages.
10044 (Enable_Range_Check): Test for some cases of suppressed checks
10045 (Generate_Index_Checks): Suppress index checks if index checks are
10046 suppressed for array object or array type.
10047 (Apply_Selected_Length_Checks): Give warning for compile-time detected
10048 length check failure, even if checks are off.
10049 (Ensure_Valid): Do not generate a check on an indexed component whose
10050 prefix is a packed boolean array.
10051 * checks.adb: (Alignment_Checks_Suppressed): New function
10052 (Apply_Address_Clause_Check): New procedure, this is a completely
10053 rewritten replacement for Apply_Alignment_Check
10054 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
10055 we request a discriminal value only in case of discriminants.
10056 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
10057 assignments where the target subtype is unconstrained and the target
10058 object is a parameter or dereference (other aliased cases are known
10059 to be unconstrained).
10061 2006-10-31 Robert Dewar <dewar@adacore.com>
10063 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
10064 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
10065 vms_conv.adb: Fix bad table increment values (much too small)
10067 * table.adb (Realloc): Make sure we get at least some new elements
10068 Defends against silly small values for table increment
10070 2006-10-31 Robert Dewar <dewar@adacore.com>
10071 Ed Schonberg <schonberg@adacore.com>
10072 Bob Duff <duff@adacore.com>
10074 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
10075 entities. Move other fields around to make this possible
10076 (Is_Derived_Type): Add missing call to Is_Type.
10077 (Extra_Formals): New function for subprograms, entries, subprogram
10079 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
10080 (First_Formal_With_Extras): New function for subprogs, entries, subp
10082 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
10083 Add node information for E_Return_Statement.
10084 (Elaborate_Body_Desirable): New flag
10085 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
10086 to be Is_Inherently_Limited_Type, because return-by-reference has
10087 no meaning in Ada 2005.
10088 (E_Return_Statement): New entity kind.
10089 (Return_Applies_To): Field of E_Return_Statement.
10090 (Is_Return_Object): New flag in object entities.
10091 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
10092 (Must_Have_Preelab_Init): New flag
10093 (Known_To_Have_Preelab_Init): New flag
10094 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
10095 (Is_Visible_Formal): New flag on entities in formal packages.
10096 (Low_Bound_Known): New flag
10097 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
10099 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
10100 output when Id is an incomplete subtype.
10102 2006-10-31 Robert Dewar <dewar@adacore.com>
10104 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
10105 Avoid abbreviation Creat
10106 (Finalize): List all sources in extended mail source if -gnatl
10108 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
10109 (Finalize): Implement new -gnatl=xxx switch to output listing to file
10110 (Set_Specific_Warning_On): New procedure
10111 (Set_Specific_Warning_Off): New procedure
10112 Add implementation of new insertion \\
10113 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
10114 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
10116 (Error_Msg_Internal): Make sure that we set Last_Killed to
10117 True when a message from another package is suppressed.
10118 Implement insertion character ~ (insert string)
10119 (First_Node): Minor adjustments to get better placement.
10122 Implement new -gnatl=xxx switch to output listing to file
10125 Implement new -gnatl=xxx switch to output listing to file
10127 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
10128 (Commands_To_Stdout): New flag
10129 Implement new -gnatl=xxx switch to output listing to file
10130 New switch Dump_Source_Text
10131 (Warn_On_Deleted_Code): New warning flag for -gnatwt
10132 Define Error_Msg_Line_Length
10133 (Warn_On_Assumed_Low_Bound): New switch
10135 * osint.ads, osint.adb
10136 (Normalize_Directory_Name): Fix bug.
10137 Implement new -gnatl=xxx switch to output listing to file
10138 (Concat): Removed, replaced by real concatenation
10139 Make use of concatenation now allowed in compiler
10140 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
10141 we find the 'lib' or 'bin' directory even when the tool has been
10142 invoked with a relative path.
10143 (Executable_Name): New function taking string parameters.
10145 * osint-c.ads, osint-c.adb:
10146 Implement new -gnatl=xxx switch to output listing to file
10148 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
10151 Implement new -gnatl=xxx switch to output listing to file
10152 Recognize new -gnatL switch
10153 (no longer keep in old warning about old style usage)
10154 Use concatenation to simplify code
10155 Recognize -gnatjnn switch
10156 (Scan_Front_End_Switches): Clean up handling of -gnatW
10157 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
10159 2006-10-31 Robert Dewar <dewar@adacore.com>
10161 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
10162 (Set_Specific_Warning_Off): New procedure
10163 (Warning_Specifically_Suppressed): New function
10164 (Validate_Specific_Warnings): New procedure
10165 (Output_Msg_Text): Complete rewrite to support -gnatjnn
10167 * err_vars.ads: Implement insertion character ~ (insert string)
10169 2006-10-31 Bob Duff <duff@adacore.com>
10170 Ed Schonberg <schonberg@adacore.com>
10172 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
10173 the parent part is a build-in-place function call, generate assignments.
10174 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
10175 are build-in-place function calls.
10176 (Replace_Self_Reference): New subsidiary of
10177 Make_OK_Assignment_Statement, to replace an access attribute that is a
10178 self-reference into an access to the appropriate component of the
10179 target object. Generalizes previous mechanism to handle self-references
10180 nested at any level.
10181 (Is_Self_Referential_Init): Remove, not needed.
10182 (Is_Self_Referential_Init): New predicate to simplify handling of self
10183 referential components in record aggregates.
10184 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
10185 check for presence of entity before checking for self-reference.
10186 (Has_Default_Init_Comps): Return True if a component association is a
10187 self-reference to the enclosing type, which can only come from a
10188 default initialization.
10189 (Make_OK_Assignment_Statement): If the expression is of the form
10190 Typ'Acc, where Acc is an access attribute, the expression comes from a
10191 default initialized self-referential component.
10192 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
10193 that has been derived from several abstract interfaces we must also
10194 initialize the tags of the secondary dispatch tables.
10196 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10197 Thomas Quinot <quinot@adacore.com>
10198 Javier Miranda <miranda@adacore.com>
10199 Robert Dewar <dewar@adacore.com>
10202 (Expand_Access_To_Protected_Op): If the context indicates that an access
10203 to a local operation may be transfered outside of the object, create an
10204 access to the wrapper operation that must be used in an external call.
10205 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
10206 target, pass the Valid attribute applied to a floating-point prefix on
10207 to the back end without expansion.
10208 (Storage_Size): Use the new run-time function Storage_Size to retrieve
10209 the allocated storage when it is specified by a per-object expression.
10210 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
10211 Nothing to do here, the attribute has been rewritten during semantic
10213 (Expand_Attribute_Reference): Handle expansion of the new Priority
10215 (Find_Fat_Info): Handle case of universal real
10216 (Expand_Access_To_Protected_Op): Fix use of access to protected
10217 subprogram from inside the body of a protected entry.
10218 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
10219 'Access and 'Unrestricted_Access, to transform the attribute reference
10220 into a fat pointer.
10221 (Is_Constrained_Aliased_View): New predicate to help determine whether a
10222 subcomponent's enclosing variable is aliased with a constrained subtype.
10223 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
10224 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
10225 an aliased prefix must be known to be constrained in order to use True
10226 for the attribute value, and now it's possible for some aliased views
10227 to be unconstrained.
10229 2006-10-31 Robert Dewar <dewar@adacore.com>
10231 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
10232 (Expand_Entity_Reference): Correct error of not handling subprogram
10233 formals in current_value processing.
10235 2006-10-31 Javier Miranda <miranda@adacore.com>
10236 Robert Dewar <dewar@adacore.com>
10237 Ed Schonberg <schonberg@adacore.com>
10238 Gary Dismukes <dismukes@adacore.com>
10240 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
10241 register in the final list objects containing class-wide interfaces;
10242 otherwise we incorrectly register the tag of the interface in the final
10244 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
10245 generate the wrapper if the parent primitive is abstract. This is
10246 required to report the correct error message.
10247 (Expand_N_Subtype_Indication): Do validity checks on range
10248 (Clean_Task_Names): If an initialization procedure includes a call to
10249 initialize a task (sub)component, indicate that the procedure will use
10250 the secondary stack.
10251 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
10252 compatibility for interfacing with CPP by default.
10253 (Expand_N_Object_Declaration): Only build an Adjust call when the
10254 object's type is a nonlimited controlled type.
10255 * exp_ch3.adb: Add with and use of Exp_Ch6.
10256 (Expand_N_Object_Declaration): Check for object initialization that is a
10257 call to build-in-place function and apply Make_Build_In_Place_Call_In_
10258 Object_Declaration to the call.
10259 (Freeze_Type): When the designated type of an RACW was not frozen at the
10260 point where the RACW was declared, validate the primitive operations
10261 with respect to E.2.2(14) when it finally is frozen.
10262 (Build_Initialization_Call,Expand_Record_Controller): Rename
10263 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
10264 return-by-reference has no meaning in Ada 2005.
10265 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
10266 to register tag of the immediate ancestor interfaces in the
10267 run-time structure.
10268 (Init_Secondary_Tags): Moved to the specification to allow the
10269 initialization of extension aggregates with abstract interfaces.
10270 (Build_Master_Renaming): Make public, for use by function declarations
10271 whose return type is an anonymous access type.
10272 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
10273 Insert_List_Before_And_Analyze after the generation of the specs
10274 associated with null procedures.
10275 (Expand_Tagged_Root): Update documentation in its specification.
10276 (Init_Secondary_Tags): Update documentation.
10277 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
10278 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
10279 then generate code to inherit the contents of the dispatch table
10280 directly from the ancestor.
10281 (Expand_Record_Controller): Insert controller component after tags of
10282 implemented interfaces.
10283 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
10284 create null procedure overridings when null procedures are inherited
10286 (Make_Null_Procedure_Specs): New procedure to generate null procedure
10287 declarations for overriding null primitives inherited from interfaces.
10288 (Is_Null_Interface_Procedure): New function in
10289 Make_Null_Procedure_Specs.
10290 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
10291 immediate ancestor of a tagged type is an abstract interface type we
10292 must generate the specification of the predefined primitives associated
10293 with controlled types (because the dispatch table of the ancestor is
10294 null and hence these entries cannot be inherited). This is required to
10295 elaborate well the dispatch table.
10297 2006-10-31 Javier Miranda <miranda@adacore.com>
10298 Ed Schonberg <schonberg@adacore.com>
10299 Bob Duff <duff@adacore.com>
10300 Gary Dismukes <dismukes@adacore.com>
10301 Robert Dewar <dewar@adacore.com>
10303 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
10305 (Expand_N_In): Do validity checks on range
10306 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
10307 (Expand_N_Allocator): For "new T", if the object is constrained by
10308 discriminant defaults, allocate the right amount of memory, rather than
10309 the maximum for type T.
10310 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
10311 when the allocator is initialized by a build-in-place call, since the
10312 allocator is already rewritten as a reference to the function result,
10313 and this prevents an unwanted duplication of the function call.
10314 Add with and use of Exp_Ch6.
10315 (Expand_Allocator_Expresssion): Check for an allocator whose expression
10316 is a call to build-in-place function and apply
10317 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
10318 untagged designated types).
10319 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
10320 optimization if source or target is biased.
10321 (Expand_N_Allocator): Add comments for case of an allocator within a
10322 function that returns an anonymous access type designating tasks.
10323 (Expand_N_Allocator): apply discriminant checks for access
10324 discriminants of anonymous access types (AI-402, AI-416)
10326 2006-10-31 Bob Duff <duff@adacore.com>
10327 Robert Dewar <dewar@adacore.com>
10328 Gary Dismukes <dismukes@adacore.com>
10329 Ed Schonberg <schonberg@adacore.com>
10331 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
10333 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
10334 (Expand_N_Assignment_Statement): Call
10335 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
10336 build-in-place function call. Currently, this can happen only for
10337 assignments that come from aggregates.
10338 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10339 in order to alleviate the upward compatibility introduced by AI-318.
10340 (Expand_N_Extended_Return_Statement): Add support for handling the
10341 return object as a build-in-place result.
10342 (Expand_Non_Function_Return): Implement simple return statements nested
10343 within an extended return.
10344 (Enable_New_Return_Processing): Turn on the new processing of return
10346 (Expand_Non_Function_Return): For a return within an extended return,
10347 don't raise Program_Error, because Sem_Ch6 now gives a warning.
10348 (Expand_N_Extended_Return_Statement): Implement AI-318
10349 (Expand_Simple_Function_Return): Ditto.
10350 (Expand_N_If_Statement): Handle new -gnatwt warning
10351 (Expand_N_Case_Statement): Handle new -gnatwt warning
10352 (Expand_N_Assignment): Handle assignment to the Priority attribute of
10353 a protected object.
10354 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
10355 validity checking of assignments to elementary record components.
10356 (Expand_N_Return_Statement): return Class Wide types on the secondary
10357 stack independantly of their controlled status since with HIE runtimes,
10358 class wide types are not potentially controlled anymore.
10360 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
10363 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
10364 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
10365 it expects a block, procedure, or task. The return statement will get
10366 turned into a block, and Expand_Cleanup_Actions will happen then.
10368 2006-10-31 Robert Dewar <dewar@adacore.com>
10369 Ed Schonberg <schonberg@adacore.com>
10370 Bob Duff <duff@adacore.com>
10371 Gary Dismukes <dismukes@adacore.com>
10373 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
10375 (Expand_Inlined_Call): Tagged types are by-reference types, and
10376 therefore should be replaced by a renaming declaration in the expanded
10377 body, as is done for limited types.
10378 (Expand_Call): If this is a call to a function with dispatching access
10379 result, propagate tag from context.
10380 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
10382 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
10383 build-in-place when the right-hand side of an assignment is a
10384 build-in-place function call.
10385 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
10386 of the explicit dereference of the allocator to the result subtype of
10387 the build-in-place function. This is needed to satisfy type checking
10388 in cases where the caller's return object is created by an allocator for
10389 a class-wide access type and the type named in the allocator is a
10391 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
10392 conversion of the reference to the declared object to the result subtype
10393 of the build-in-place function. This is needed to satisfy type checking
10394 in cases where the declared object has a class-wide type. Also, in the
10395 class-wide case, change the type of the object entity to the specific
10396 result subtype of the function, to avoid passing a class-wide object
10397 without explicit initialization to the back end.
10398 (Register_Interface_DT_Entry): Moved outside the body of
10399 Freeze_Subprogram because this routine is now public; it is called from
10400 Check_Dispatching_Overriding to handle late overriding of abstract
10401 interface primitives.
10402 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
10403 adding an implicit access actual on a call to a build-in-place function.
10404 (Expand_Actuals): Test for an actual parameter that is a call to a
10405 build-in-place function and apply
10406 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
10407 (Is_Build_In_Place_Function): New function to determine whether an
10408 entity is a function whose calls should be handled as build-in-place.
10409 (Is_Build_In_Place_Function_Call): New function to determine whether an
10410 expression is a function call that should handled as build-in-place.
10411 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
10412 calls to build-in-place functions as the initialization of an allocator.
10413 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
10414 handling calls to build-in-place functions in contexts that do not
10415 involve init of a separate object (for example, actuals of subprogram
10417 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
10418 handling calls to build-in-place functions as the initialization of an
10419 object declaration.
10420 (Detect_Infinite_Recursion): Add explicit parameter Process to
10421 instantiation of Traverse_Body to avoid unreferenced warning.
10422 (Check_Overriding_Inherited_Interfaces): Removed.
10423 (Register_Interface_DT_Entry): Code cleanup.
10424 (Register_Predefined_DT_Entry): Code cleanup.
10425 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
10426 inlined statements if within a transient scope.
10427 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
10428 formal parameters with occurrences of actuals in inlined body, establish
10429 visibility on the proper view of the actual's subtype for the body's
10431 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
10432 compatibility mode and we have an imported CPP subprogram because
10433 for now we assume that imported CPP primitives correspond with
10434 objects whose constructor is in the CPP side (and therefore we
10435 don't need to generate code to register them in the dispatch table).
10436 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
10437 aligned selected component.
10438 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
10439 the actual of an in-mode parameter is a type conversion.
10440 (Expand_Actuals): If the call does not come from source and the actual
10441 is potentially misaligned, let gigi handle it rather than rejecting the
10442 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
10443 Class Wide types as returning by reference independantly of their
10444 controlled status since with HIE runtimes class wide types are not
10445 potentially controlled anymore.
10447 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10449 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
10450 references that are private components of the protected object.
10451 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
10452 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
10453 instantiation to deal with warnings.
10454 (Initialize_Protection): If expression for priority is non-static, use
10455 System_Priority as its expected type, in case the expression has not
10458 2006-10-31 Robert Dewar <dewar@adacore.com>
10460 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
10461 initialization of Homonym_Len.
10462 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
10463 names from fully qualified name. Fixes problem of duplicate
10464 external names differing only in the presence of such a block name.
10466 2006-10-31 Thomas Quinot <quinot@adacore.com>
10467 Pablo Oliveira <oliveira@adacore.com>
10469 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
10470 subprogram Ids, even if they are not yet assigned.
10471 (Build_Subprogram_Id): It is now this function that will take care of
10472 calling Assign_Subprogram_Ids if necessary.
10473 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
10474 should be done only once they are assigned.
10475 (Build_From_Any_Function, case of tagged types): Add missing call to
10477 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
10478 type for an RACW type.
10479 (Add_RACW_Features): When processing an RACW declaration for which the
10480 designated type is already frozen, enforce E.2.2(14) rules immediately.
10481 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
10482 special reordering of controlling formals.
10484 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
10485 associated stub type for an RACW type.
10487 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10489 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
10490 fixed-point operations in an integer context, i.e. as operands of a
10491 conversion to an integer type, indicate that result must be rounded.
10493 2006-10-31 Robert Dewar <dewar@adacore.com>
10495 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
10496 cases, pass the encoding method, since it is now required by the run
10499 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
10500 assumption that Str'First = 1.
10501 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
10502 it on to the Value_Wide_Wide_Character call.
10503 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
10504 properly handles a string of the form quote-encoded_wide_char-quote.
10506 * s-wchcnv.adb: Minor reformatting
10508 2006-10-31 Javier Miranda <miranda@adacore.com>
10510 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
10511 run-time membership test to ensure that the constructed object
10512 implements the target abstract interface.
10514 2006-10-31 Robert Dewar <dewar@adacore.com>
10516 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
10517 Machine_Attribute pragma internally to implement the user pragma.
10518 Add processing for pragma Interface so that it is now completely
10519 equivalent to pragma Import.
10521 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
10522 so that it can be applied to all entities, including record components
10523 and enumeration literals.
10524 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
10525 priority ranges are correct, verify compatibility against task
10526 dispatching and locking policies, and if everything is correct an entry
10527 is added to the table containing priority specific dispatching entries
10528 for this compilation unit.
10529 (Delay_Config_Pragma_Analyze): Delay processing
10530 Priority_Specific_Dispatching pragmas because when processing the
10531 pragma we need to access run-time data, such as the range of
10532 System.Any_Priority.
10533 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
10534 Allow pragma Unreferenced as a context item
10535 Add pragma Preelaborable_Initialization
10536 (Analyze_Pragma, case Interface): Interface is extended so that it is
10537 now syntactically and semantically equivalent to Import.
10538 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
10539 insertion characters.
10540 Add handling for Pragma_Wide_Character_Encoding
10541 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
10542 never supercedes a real restriction, and that a real restriction
10543 always supercedes a warning.
10544 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
10547 2006-10-31 Bob Duff <duff@adacore.com>
10548 Ed Schonberg <schonberg@adacore.com>
10549 Robert Dewar <dewar@adacore.com>
10551 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
10552 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
10553 Is_Inherently_Limited_Type, because return-by-reference has no meaning
10555 (Find_Node_To_Be_Wrapped): Use new method of determining the result
10556 type of the function containing a return statement, because the
10557 Return_Type field was removed. We now use the Return_Applies_To field.
10559 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
10560 (Build_Task_Image_Decl): If procedure is not called from an
10561 initialization procedure, indicate that function that builds task name
10562 uses the sec. stack. Otherwise the enclosing initialization procedure
10563 will carry the indication.
10564 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
10565 N_Object_Declaration instead.
10566 (Kill_Dead_Code): New interface to implement -gnatwt warning for
10567 conditional dead code killed, and change implementation accordingly.
10568 (Insert_Actions): Add N_Return_Object_Declaration case.
10569 Correct comment to mention N_Extension_Aggregate node.
10570 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
10571 attempts to save information for global variables which cannot be
10573 (Get_Current_Value_Condition): Handle conditions the other way round
10574 (constant on left). Also handle right operand of AND and AND THEN
10575 (Set_Current_Value_Condition): Corresponding changes
10576 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
10577 (Get_Current_Value_Condition): Handle simple boolean operands
10578 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
10579 (Get_Current_Value_Condition): If the variable reference is within an
10580 if-statement, does not appear in the list of then_statments, and does
10581 not come from source, treat it as being at unknown location.
10582 (Get_Current_Value_Condition): Enhance to allow while statements to be
10583 processed as well as if statements.
10584 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
10586 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
10587 of loop. This is safe now that we fixed Kill_Current_Values.
10588 (OK_To_Do_Constant_Replacement): Check whether current scope is
10589 Standard, before examining outer scopes.
10591 2006-10-31 Vincent Celier <celier@adacore.com>
10593 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
10594 When True, apply VMS treatment to children of packages A, G, I and S.
10597 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
10599 2006-10-31 Robert Dewar <dewar@adacore.com>
10600 Ed Schonberg <schonberg@adacore.com>
10602 * freeze.adb: Add handling of Last_Assignment field
10603 (Warn_Overlay): Supply missing continuation marks in error msgs
10604 (Freeze_Entity): Add check for Preelaborable_Initialization
10606 * g-comlin.adb: Add Warnings (Off) to prevent new warning
10608 * g-expect.adb: Add Warnings (Off) to prevent new warning
10610 * lib-xref.adb: Add handling of Last_Assignment field
10611 (Generate_Reference): Centralize handling of pragma Obsolescent here
10612 (Generate_Reference): Accept an implicit reference generated for a
10613 default in an instance.
10614 (Generate_Reference): Accept a reference for a node that is not in the
10615 main unit, if it is the generic body corresponding to an subprogram
10618 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
10620 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
10622 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
10624 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
10625 use clauses, to avoid messages on packages used to qualify, and also
10626 to avoid messages from obsolescent units.
10627 (Warn_On_Useless_Assignments): Don't generate messages for imported
10628 and exported variables.
10629 (Warn_On_Useless_Assignments): New procedure
10630 (Output_Obsolescent_Entity_Warnings): New procedure
10631 (Check_Code_Statement): New procedure
10633 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
10634 Change name Is_Ada_2005 to Is_Ada_2005_Only
10635 (Last_Assignment): New field for useless assignment warning
10637 2006-10-31 Olivier Hainque <hainque@adacore.com>
10639 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
10640 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
10642 2006-10-31 Bob Duff <duff@adacore.com>
10643 Robert Dewar <dewar@adacore.com>
10644 Ed Schonberg <schonberg@adacore.com>
10646 * g-awk.adb (Default_Session, Current_Session): Compile this file in
10647 Ada 95 mode, because it violates the new rules for AI-318.
10649 * g-awk.ads: Use overloaded subprograms in every case where we used to
10650 have a default of Current_Session. This makes the code closer to be
10651 correct for both Ada 95 and 2005.
10653 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
10654 code, relying on the fact that the compiler generates a warning
10655 instead of an error in -gnatg mode.
10657 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
10658 E_Return_Statement entity kind.
10659 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
10661 * par.adb (P_Interface_Type_Definition): Addition of one formal to
10662 report an error if the reserved word abstract has been previously found.
10663 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
10665 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
10666 parenthesized range attribute usage
10667 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
10669 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
10670 in the syntax for extended_return_statement. This is not in the latest
10671 RM, but the ARG is expected to issue an AI allowing this.
10672 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
10673 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
10674 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
10675 P_Return_Statement): Parse the new syntax for extended_return_statement.
10677 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
10678 Output_End_Missing): Add error-recovery code for the new
10679 extended_return_statement syntax; that is, the new E_Return entry on
10682 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
10683 limited to nonlimited, because otherwise we violate the new Ada 2005
10684 rules about returning limited types in function Create_AST_Handler in
10687 * sem.adb (Analyze): Add cases for new node kinds
10688 N_Extended_Return_Statement and N_Return_Object_Declaration.
10690 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
10691 type is in the same category as type of context before applying check,
10692 to prevent anomalies in instantiations.
10693 (Resolve_Aggregate): Remove test for limited components in aggregates.
10694 It's unnecessary in Ada 95, because if it has limited components, then
10695 it must be limited. It's wrong in Ada 2005, because limited aggregates
10697 (Resolve_Record_Aggregate): Move check for limited types later, because
10698 OK_For_Limited_Init requires its argument to have been resolved.
10699 (Get_Value): When copying the component default expression for a
10700 defaulted association in an aggregate, use the sloc of the aggregate
10701 and not that of the original expression, to prevent spurious
10702 elaboration errors, when the expression includes function calls.
10703 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
10704 were missing. We also didn't handle qualified expressions. Now also
10705 allow function calls. Use new common routine OK_For_Limited_Init.
10706 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
10707 with space can upper case letter).
10709 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
10710 Has_Static_Discriminants flag
10711 (Record_Type_Declaration): Diagnose an attempt to declare an interface
10712 type with discriminants.
10713 (Process_Range_Expr_In_Decl): Do validity checks on range
10714 (Build_Discriminant_Constraints): Use updated form of
10715 Denotes_Discriminant.
10716 (Process_Subtype): If the subtype is a private subtype whose full view
10717 is a concurrent subtype, introduce an itype reference to prevent scope
10719 (Build_Derived_Record_Type, Collect_Interface_Primitives,
10720 Record_Type_Declaration): The functionality of the subprograms
10721 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
10722 is now performed by a single routine.
10723 (Build_Derived_Record_Type): If the type definition includes an explicit
10724 indication of limitedness, then the type must be marked as limited here
10725 to ensure that any access discriminants will not be treated as having
10726 a local anonymous access type.
10727 (Check_Abstract_Overriding): Issue a detailed error message when an
10728 abstract subprogram was not overridden due to incorrect mode of its
10730 (Analyze_Private_Extension_Declaration): Add support for the analysis of
10731 synchronized private extension declarations. Verify that the ancestor is
10732 a limited or synchronized interface or in the generic case, the ancestor
10733 is a tagged limited type or synchronized interface and all progenitors
10734 are either limited or synchronized interfaces.
10735 Derived_Type_Declaration): Check for presence of private extension when
10736 dealing with synchronized formal derived types.
10737 Process_Full_View): Enchance the check done on the usage of "limited" by
10738 testing whether the private view is synchronized.
10739 Verify that a synchronized private view is completed by a protected or
10741 (OK_For_Limited_Init_In_05): New function.
10742 (Analyze_Object_Declaration): Move check for limited types later,
10743 because OK_For_Limited_Init requires its argument to have been resolved.
10744 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10745 in order to alleviate the upward compatibility introduced by AI-318.
10746 (Constrain_Corresponding_Record): If the constraint is for a component
10747 subtype, mark the itype as frozen, to avoid out-of-scope references to
10748 discriminants in the back-end.
10749 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
10750 this subprogram against wrong sources.
10751 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
10752 discriminant of limited type completed with a protected type, when the
10753 discriminant is used to constrain a private component of the type, and
10754 expansion is disabled.
10755 (Find_Type_Of_Object): Do not treat a return subtype that is an
10756 anonymous subtype as a local_anonymous_type, because its accessibility
10757 level is the return type of the enclosing function.
10758 (Check_Initialization): In -gnatg mode, turn the error "cannot
10759 initialize entities of limited type" into a warning.
10760 (OK_For_Limited_Init): Return true for generated nodes, since it
10761 sometimes violates the legality rules.
10762 (Make_Incomplete_Declaration): If the type for which an incomplete
10763 declaration is created happens to be the currently visible entity,
10764 preserve the homonym chain when removing it from visibility.
10765 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
10766 inherited subprograms.
10767 (Access_Definition): If this is an access to function that is the return
10768 type of an access_to_function definition, context is a type declaration
10769 and the scope of the anonymous type is the current one.
10770 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
10771 incomplete subtype to the set of private dependents of the original
10773 (Constrain_Discriminated_Type): Emit an error message whenever an
10774 incomplete subtype is being constrained.
10775 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
10776 corresponding subtype of the full view of the original incomplete type.
10777 (Check_Incomplete): Properly detect invalid usage of incomplete types
10780 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
10782 * g-catiio.ads, g-catiio.adb (Value): New function.
10783 Given an input String, try and parse a valid Time value.
10785 2006-10-31 Vincent Celier <celier@adacore.com>
10787 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
10788 Integer_Address arithmetic, as in Set_Valid.
10790 2006-10-31 Arnaud Charlet <charlet@adacore.com>
10791 Robert Dewar <dewar@adacore.com>
10793 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
10794 handling executable extension manually and duplicating code.
10796 * make.adb: Implement new -S switch
10797 (Gnatmake): Use new function Osint.Executable_Name instead
10798 of handling executable extension manually.
10800 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
10801 is specified, the executable name ends with this suffix.
10802 Take advantage of Osint.Executable_Name instead of duplicating code.
10804 * switch-m.adb: Recognize new gnatmake -S switch
10806 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
10808 (Get_Target_Parameters): Set Executable_Extension_On_Target if
10811 * makeusg.adb: Add line for gnatmake -S switch
10813 2006-10-31 Vincent Celier <celier@adacore.com>
10815 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
10816 call it with -static-libgcc, as there are some platforms, such as
10817 Darwin, where one of these two switches is compulsory to link.
10819 2006-10-31 Vincent Celier <celier@adacore.com>
10821 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
10822 instead of ADA_PROJECT_PATH, for the project path.
10823 (Gnatls): When displaying the project path directories, use host dir
10826 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
10827 names in the project path, as absolute paths may correspond to
10828 multi-valued VMS logical names.
10830 2006-10-31 Vincent Celier <celier@adacore.com>
10832 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
10833 absolute path name.
10834 (Locate_Regular_File): Ditto
10835 (Change_Dir): Remove, no longer used
10836 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
10837 on Windows. Get it calling Get_Current_Dir.
10838 (OpenVMS): Remove imported boolean, no longer needed.
10839 (Normalize_Pathname)[VMS]: Do not resolve directory names.
10840 (Pid_To_Integer): New function to convert a Process_Id to Integer
10842 2006-10-31 Thomas Quinot <quinot@adacore.com>
10844 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
10845 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
10847 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
10850 2006-10-31 Robert Dewar <dewar@adacore.com>
10852 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
10853 initial letter o as a zero.
10855 2006-10-31 Robert Dewar <dewar@adacore.com>
10857 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
10859 2006-10-31 Robert Dewar <dewar@adacore.com>
10861 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
10863 (Layout_Variant_Record): Retrieve the discriminants from the entity
10864 rather than from the type definition, because in the case of a full
10865 type for a private type we need to take the discriminants from the
10867 (Layout_Component_List): When applying the Max operator to variants with
10868 a nonstatic size, check whether either operand is static and scale that
10869 operand from bits to storage units before applying Max.
10870 (Layout_Type): In VMS, if a C-convention access type has no explicit
10871 size clause (and does not inherit one in the case of a derived type),
10872 then the size is reset to 32 from 64.
10874 2006-10-31 Vincent Celier <celier@adacore.com>
10876 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
10877 its file has already been loaded, according to the unit being loaded,
10878 not to the current value of Multiple_Unit_Index.
10880 2006-10-31 Thomas Quinot <quinot@adacore.com>
10881 Eric Botcazou <ebotcazou@adacore.com>
10882 Arnaud Charlet <charlet@adacore.com>
10884 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
10885 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
10887 (a-except.o): Pass it to the compiler.
10888 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
10889 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
10890 a-calend-mingw.adb version.
10892 * Makefile.rtl: Added s-dsaser.
10893 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
10894 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
10895 Ada.Dispatching.Round_Robin.
10896 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
10898 * Make-lang.in: Remove all references to gt-ada-decl.h.
10899 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
10901 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
10902 Update dependencies.
10904 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
10906 2006-10-31 Vincent Celier <celier@adacore.com>
10908 * mlib-utl.adb (Initialized): Remove, no longer used
10909 (Initialize): Remove, no longer used
10910 (Ar): If Ar_Exec is null, get the location of the archive builder and,
10911 if there is one, the archive indexer. Fail if the archive builder cannot
10913 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
10916 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10918 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
10919 Process_Body_Clauses): If the context of a body includes a use clause
10920 for P.Q then a with_clause for P in the same body is not redundant,
10921 even if the spec also has a with_clause on P.
10922 Add missing continuation mark to error msg
10923 (Build_Limited_Views): A limited view of a type is tagged if its
10924 declaration includes a record extension.
10925 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
10926 node, even if the subunit has errors. This avoids malfunction by
10927 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
10928 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
10929 generation of obsolescent messages for with statements (cannot do
10930 this too early, or we cannot implement avoiding the messages in the
10931 case of obsolescent units withing obsolescent units).
10932 (Install_Siblings): If the with_clause is on a remote descendant of
10933 an ancestor of the current compilation unit, find whether there is
10934 a sibling child unit that is immediately visible.
10935 (Remove_Private_With_Clauses): New procedure, invoked after completing
10936 the analysis of the private part of a nested package, to remove from
10937 visibility the private with_clauses of the enclosing package
10939 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
10940 now centralized in Generate_Reference.
10941 (Install_Limited_Context_Clauses): Remove superfluous error
10942 message associated with unlimited view visible through use
10943 and renamings. In addition, at the point in which the error
10944 is reported, we add the backslash to the text of the error
10945 to ensure that it is reported as a single error message.
10946 Use new // insertion for some continuation messages
10947 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
10948 to create implicit with_clause for parent unit mentioned in original
10949 limited_with_clause.
10950 (Install_Limited_With_Unit): Set entity of parent identifiers if the
10951 unit is a child unit. For ASIS queries.
10952 (Analyze_Subunit): If the subunit appears within a child unit, make all
10953 ancestor child units directly visible again.
10955 2006-10-31 Robert Dewar <dewar@adacore.com>
10957 * par-ch10.adb (P_Context_Clause): Minor error message fix
10959 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
10960 Javier Miranda <miranda@adacore.com>
10962 * par-ch12.adb: Grammar update and cleanup.
10963 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
10964 support for synchronized derived type definitions.
10965 Add the new actual Abstract_Present to every call to
10966 P_Interface_Type_Definition.
10967 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
10968 a formal object declaration with an access definition or a subtype mark
10969 with a null exclusion.
10970 (P_Generic_Association): Handle association with box, and others_choice
10971 with box, to support Ada 2005 partially parametrized formal packages.
10973 2006-10-31 Robert Dewar <dewar@adacore.com>
10974 Javier Miranda <miranda@adacore.com>
10976 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
10977 (P_Type_Declaration): Remove barrier against the reserved word "limited"
10978 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
10979 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
10980 private extensions.
10981 (P_Type_Declaration): Add the new actual Abstract_Present to every call
10982 to P_Interface_Type_Definition.
10983 (P_Interface_Type_Definition): Addition of one formal to report an error
10984 if the reserved word abstract has been previously found.
10985 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
10986 object renaming declaration with an access definition or subtype mark
10987 with a possible null exclusion.
10989 * par-ch9.adb: Minor error msg fix
10991 * par-load.adb: Add missing continuation mark to error msg
10993 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
10995 2006-10-31 Vincent Celier <celier@adacore.com>
10997 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
10998 unknown attribute in unknown package or in package that does not need
11000 (Parse_Package_Declaration): Do not issue warning for unknown package in
11003 2006-10-31 Vincent Celier <celier@adacore.com>
11005 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
11006 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
11009 2006-10-31 Vincent Celier <celier@adacore.com>
11011 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
11012 on VMS, change "__" to '.' before checking the name.
11013 (Record_Ada_Source): Always add the source file name in the list of
11014 of sources, even if it is not the first time, as it is for another
11016 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
11017 dot, instead of replacing only the first '_'.
11019 * prj-part.adb (Parse): Convert project file path to canonical form
11021 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
11022 extended, the project id of the project extending it is recorded in its
11023 data, even when it has already been processed as an imported project.
11025 2006-10-31 Robert Dewar <dewar@adacore.com>
11027 * repinfo.adb (List_Entities): Don't list entities from renaming
11030 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11031 Robert Dewar <dewar@adacore.com>
11033 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
11034 only a restriction warning is active for the given restriction. This is
11035 desirable because we do not want to modify code in the case where only
11037 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
11038 causes overriding of real restrictions.
11039 Take advantage of new No_Restrictions constant.
11041 * raise.h: (__gnat_set_globals): Change profile.
11043 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11045 * rtsfind.adb: Remove s-polint from comment as it exists no more.
11048 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
11049 Move all the entities in obsolete package System.PolyORB_Interface to
11050 System.Partition_Interface.
11051 (RE_Storage_Size): New function in System.Tasking.
11052 (RE_Get_Ceiling): New entity.
11053 (RE_Set_Ceiling): New entity.
11054 (RO_PE_Get_Ceiling): New entity.
11055 (RO_RE_Set_Ceiling): New entity.
11056 (Inherit_CPP_DT): New entity
11058 2006-10-31 Robert Dewar <dewar@adacore.com>
11060 * scng.adb (Scan, case of numeric literal): Better msg for identifier
11061 starting with a digit.
11063 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11064 Thomas Quinot <quinot@adacore.com>
11065 Javier Miranda <miranda@adacore.com>
11066 Gary Dismukes <dismukes@adacore.com>
11068 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
11069 properly an attempt to apply Unchecked_Access to a protected operation.
11070 (OK_Self_Reference): New subprogram to check the legality of an access
11071 attribute whose prefix is the type of an enclosing aggregate.
11072 Generalizes previous mechanism to handle attribute references nested
11073 arbitrarily deep within the aggregate.
11074 (Analyze_Access_Attribute): An access attribute whose prefix is a type
11075 can appear in an aggregate if this is a default-initialized aggregate
11076 for a self-referential type.
11077 (Resolve_Attribute, case Access): Ditto.
11078 Add support for new implementation defined attribute Stub_Type.
11079 (Eval_Attribute, case Attribute_Stub_Type): New case.
11080 (Analyze_Attribute, case Attribute_Stub_Type): New case.
11081 (Stream_Attribute_Available): Implement using new subprogram from
11082 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
11083 Has_Specified_Stream_Attribute flag.
11084 Disallow Storage_Size and Storage_Pool for access to subprogram
11085 (Resolve_Attribute, case 'Access et al): Take into account anonymous
11086 access types of return subtypes in extended return statements. Remove
11087 accessibility checks on anonymous access types when Unchecked_Access is
11089 (Analyze_Attribute): Add support for the use of 'Class to convert
11090 a class-wide interface to a tagged type.
11091 Add support for the attribute Priority.
11092 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
11093 whether the designated type is discriminated with a constrained partial
11094 view and require static matching in that case.
11095 Add local variable Des_Btyp. The Designated_Type
11096 of an access to incomplete subtype is either its non-limited view if
11097 coming from a limited with or its etype if regular incomplete subtype.
11099 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
11100 Fix predicate to identify and allow cases of (expander-generated)
11101 references to tag of designated object of a RACW.
11102 (Validate_Static_Object_Name): In Ada 2005, a formal object is
11103 non-static, and therefore cannot appear as a primary in a preelaborable
11105 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
11106 Has_Read_Write_Attributes.
11107 (Has_Read_Write_Attributes): Reimplement in termes of
11108 Has_Stream_Attribute_Definition.
11109 (Missing_Read_Write_Attributes): When checking component types in a
11110 record, unconditionally call Missing_Read_Write_Attributes recursively
11111 (remove guard checking for Is_Record_Type / Is_Access_Type).
11113 2006-10-31 Robert Dewar <dewar@adacore.com>
11115 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
11116 useless assignments here and conditionalize it on absence of exception
11118 (Analyze_Exception_Handlers): Small code reorganization of error
11119 detection code, for new handling of formal packages.
11121 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11122 Hristian Kirtchev <kirtchev@adacore.com>
11124 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
11125 that has been constant-folded, preserve information of original tree,
11127 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
11128 generated private extension declaration if the formal derived type is
11129 synchronized. Carry synchronized present over to the generated private
11131 (Validate_Derived_Type_Instance): Ensure that the actual of a
11132 synchronized formal derived type is a synchronized tagged type.
11133 (Instantiate_Formal_Package): When creating the instantiation used to
11134 validate the actual package of a formal declared without a box, check
11135 whether the formal itself depends on a prior actual.
11136 (Instantiate_Formal_Subprogram): Create new entities for the defining
11137 identifiers of the formals in the renaming declaration, for ASIS use.
11138 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
11139 a renaming declaration or a subtype declaration for an actual in an
11140 instance, capture location information of declaration in generic, for
11142 (Instantiate_Formal_Package): Add comments on needed additional tests.
11143 AI-317 (partial parametrization) is fully implemented.
11144 (Validate_Private_Type_Instance): Add check for actual which
11145 must have preelaborable initialization
11146 Use new // insertion for some continuation messages
11147 (Analyze_Formal_Object_Declaration): Change usage of Expression to
11148 Default_Expression. Add type retrieval when the declaration has an
11149 access definition. Update premature usage of incomplete type check.
11150 (Check_Access_Definition): New subsidiary routine. Check whether the
11151 current compilation version is Ada 05 and the supplied node has an
11153 (Instantiate object): Alphabetize local variables. Handle the creation
11154 of new renaming declarations with respect to the kind of definition
11155 used - either an access definition or a subtype mark. Guard against
11156 unnecessary error message in the context of anonymous access types after
11157 they have been resolved. Add check for required null exclusion in a
11158 formal object declaration.
11159 (Switch_View): A private subtype of a non-private type needs to be
11160 switched (the base type can have been switched without its private
11161 dependents because of the last branch of Check_Private_View.
11162 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
11164 (Instantiate_Type): Emit an error message whenever a class-wide type of
11165 a tagged incomplete type is used as a generic actual.
11166 (Find_Actual_Type): Extend routine to handle a component type in a child
11167 unit that is imported from a formal package in a parent.
11168 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
11169 agree on constrainedness, rather than checking against ultimate ancestor
11170 (Instantiate_Subprogram_Body): Create a cross-reference link to the
11171 generic body, for navigation purposes.
11173 2006-10-31 Robert Dewar <dewar@adacore.com>
11174 Thomas Quinot <quinot@adacore.com>
11176 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
11178 (New_Stream_Subprogram): When processing an attribute definition clause
11179 for a stream-oriented subprogram, record an entity node occurring at
11180 the point of clause to use for checking the visibility of the clause,
11181 as defined by 8.3(23) as amended by AI-195.
11182 (New_Stream_Subprogram): New procedure, factoring behaviour from both
11183 New_Stream_Function and New_Stream_Procedure.
11184 (New_Stream_Function, New_Stream_Procedure): Removed.
11185 (Analyze_Attribute_Definition_Clause, case Address): Check new
11186 Alignment_Check check
11188 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11189 Javier Miranda <miranda@adacore.com>
11190 Robert Dewar <dewar@adacore.com>
11192 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
11193 generate the same errors compiling under -gnatc.
11194 (Try_Object_Operation): If no candidate interpretation succeeds, but
11195 there is at least one primitive operation with the right name, report
11196 error in call rather than on a malformed selected component.
11197 (Analyze_Selected_Component): If the prefix is an incomplete type from
11198 a limited view, and the full view is available, use the full view to
11199 determine whether this is a prefixed call to a primitive operation.
11200 (Operator_Check): Verify that a candidate interpretation is a binary
11201 operation before checking the type of its second formal.
11202 (Analyze_Call): Add additional warnings for function call contexts not
11204 (Analyze_Allocator): Move the check for "initialization not allowed for
11205 limited types" after analyzing the expression. This is necessary,
11206 because OK_For_Limited_Init looks at the structure of the expression.
11207 Before analysis, we don't necessarily know what sort of expression it
11208 is. For example, we don't know whether F(X) is a function call or an
11209 indexed component; the former is legal in Ada 2005; the latter is not.
11210 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
11211 were missing. We also didn't handle qualified expressions. Now also
11212 allow function calls. Use new common routine OK_For_Limited_Init.
11213 (Analyze_Type_Conversion): Do not perform some legality checks in an
11214 instance, because the error message will be redundant or spurious.
11215 (Analyze_Overloaded_Selected_Component): Do not do style check when
11216 setting an entity, since we do not know it is the right entity yet.
11217 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
11218 (Analyze_Overloaded_Selected_Component): Same change
11219 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
11220 since regular incomplete subtypes are transformed into corresponding
11221 subtypes of their full views.
11222 (Complete_Object_Operation): Treat name of transformed subprogram call
11223 as coming from source, for browsing purposes.
11224 (Try_Primitive_Operation): If formal is an access parameter, compare
11225 with base type of object to determine whether it is a primitive
11227 (Operator_Check): If no interpretation of the operator matches, check
11228 whether a use clause on any candidate might make the operation legal.
11229 (Try_Class_Wide_Operation): Check whether the first parameter is an
11230 access type whose designated type is class-wide.
11232 2006-10-31 Robert Dewar <dewar@adacore.com>
11233 Ed Schonberg <schonberg@adacore.com>
11234 Gary Dismukes <dismukes@adacore.com>
11236 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
11237 warn on infinite loops.
11238 Add \\ to some continuation messages
11239 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
11240 (Process_Bounds): If the bounds are integer literals that result from
11241 constant-folding, and they carry a user-defined type, preserve that type
11242 rather than treating this as an integer range.
11243 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
11244 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
11245 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
11246 left hand side of assignment.
11247 (Analyze_Assignment): Add suport to manage assigments to the attribute
11248 priority of a protected object.
11249 (Check_Possible_Current_Value_Condition): Allow fully qualified names
11250 not just identifiers.
11251 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
11252 or AND THEN for possible tracking.
11253 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
11254 case of while loops so we can track values in the loop body.
11256 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11257 Hristian Kirtchev <kirtchev@adacore.com>
11258 Bob Duff <duff@adacore.com>
11260 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
11261 procedure cannot be a protected operation (it is a basic_declaration,
11262 not a subprogram_declaration).
11263 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
11264 Subp. Add logic for entry processing.
11265 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
11266 Determine whether an entry or subprogram of a protected or task type
11267 override an inherited primitive of an implemented interface.
11268 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
11269 Update the actual used in calls to Check_Overriding_Indicator.
11270 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
11271 generate the proper reference to the parent unit, for cross-reference.
11272 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
11274 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11275 (Add_Extra_Formal): Revise procedure to allow passing in associated
11276 entity, scope, and name suffix, and handle setting of the new
11277 Extra_Formals field.
11278 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
11279 pass new parameters. Add support for adding the new extra access formal
11280 for functions whose calls are treated as build-in-place.
11281 (Analyze_A_Return_Statement): Correct casing in error message.
11282 Move Pop_Scope to after Analyze_Function_Return, because an extended
11283 return statement really is a full-fledged scope. Otherwise, visibility
11284 doesn't work right. Correct use of "\" for continuation messages.
11285 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
11286 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
11287 the node doesn't get properly marked as analyzed.
11288 (Analyze_Subprogram_Body): If subprogram is a function that returns
11289 an anonymous access type that denotes a task, build a Master Entity
11291 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
11292 proper usage of null exclusion in a result definition.
11293 (Process_Formals): Code cleanup and new error message.
11294 (Process_Formals): Detect incorrect application of null exclusion to
11296 (Conforming_Types): Handle conformance between [sub]types and itypes
11297 generated for entities that have null exclusions applied to them.
11298 (Maybe_Primitive_Operation): Add an additional type retrieval when the
11299 base type is an access subtype. This case arrises with null exclusions.
11300 (New_Overloaded_Entity): Do not remove the overriden entity from the
11301 homonym chain if it corresponds with an abstract interface primitive.
11302 (Process_Formals): Replace membership test agains Incomplete_Kind with a
11303 call to the synthesized predicate Is_Incomplete_Type.
11304 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
11306 (Analyze_Subprogram_Declaration): Check that abstract interface
11307 primitives are abstract or null.
11308 (Analyze_Subprogram_Specification): Remove previous check for abstract
11309 interfaces because it was not complete.
11310 (Has_Interface_Formals): Removed.
11312 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11313 Javier Miranda <miranda@adacore.com>
11315 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
11316 of Analyze_Package_Body, to create Itype references for anonymous
11317 access types created in the package declaration, whose designated types
11318 may have only a limited view.
11319 (Analyze_Package_Specification): For the private part of a nested
11320 package, install private_with_clauses of enclosing compilation unit if
11321 we are in its visible part.
11322 (Declare_Inherited_Private_Subprograms): Complete barrier
11323 to ensure that the primitive operation has an alias to some parent
11324 primitive. This is now required because, after the changes done for the
11325 implementation of abstract interfaces, the contents of the list of
11326 primitives has entities whose alias attribute references entities of
11327 such list of primitives.
11328 (Analyze_Package_Specification): Simplify code that handles parent units
11329 of instances and formal packages.
11330 (Uninstall_Declarations): Check the convention consistency among
11331 primitive overriding operations of a tagged record type.
11333 2006-10-31 Robert Dewar <dewar@adacore.com>
11334 Hristian Kirtchev <kirtchev@adacore.com>
11335 Javier Miranda <miranda@adacore.com>
11336 Ed Schonberg <schonberg@adacore.com>
11338 * sem_ch8.adb: Minor error msg rewording
11339 (Undefined): When checking for misspellings, invert arguments (to get
11340 expected and found set right)
11341 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
11342 (Analyze_Generic_Renaming): Same fix
11343 (Use_One_Package): Do not take into account the internal entities of
11344 abstract interfaces during the analysis of entities that are marked
11345 as potentially use-visible.
11346 (Find_Type): Handle the case of an attribute reference for
11347 implementation defined attribute Stub_Type (simply let the analysis of
11348 the attribute reference rewrite it).
11349 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
11350 type that appears in a Use_Type clause.
11351 (Analyze_Object_Renaming): Add support for renaming of the Priority
11353 (Find_Type): In Ada 2005, a task type can be used within its own body,
11354 when it appears in an access definition.
11355 (Analyze_Object_Renaming): Remove warning on null_exclusion.
11356 (Analyze_Object_Renaming): Introduce checks for required null exclusion
11357 in a formal object declaration or in a subtype declaration.
11358 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
11359 (Check_Null_Exclusion): New local routine to
11360 Analyze_Subprogram_Renaming. Check whether the formals and return
11361 profile of a renamed subprogram have required null exclusions when
11362 their counterparts of the renaming already impose them.
11363 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
11364 Determine whether an entity is inside a generic scope.
11365 (In_Open_Scope): First pass of documentation update.
11366 (Find_Expanded_Name): Add support for shadow entities associated with
11367 limited withed packages. This is required to handle nested packages.
11368 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
11369 that makes a renaming of a limited withed package illegal.
11371 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11372 Ed Schonberg <schonberg@adacore.com>
11374 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
11375 Check_Overriding_Indicator.
11376 (Analyze_Task_Definition): Ditto.
11377 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
11378 (Check_Overriding_Indicator): To find overridden interface operation,
11379 examine only homonyms that have an explicit subprogram declaration, not
11380 inherited operations created by an unrelated type derivation.
11381 (Check_Overriding_Indicator): When checking for the presence of "null"
11382 in a procedure, ensure that the queried node is a procedure
11384 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
11385 type when the formal is an access to variable.
11386 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
11387 (Analyze_Task_Type): Same addition
11388 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
11389 provide navigation capabilities for entries.
11391 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11392 Ed Schonberg <schonberg@adacore.com>
11393 Javier Miranda <miranda@adacore.com>
11394 Gary Dismukes <dismukes@adacore.com>
11396 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
11397 inherited from an interface ancestor by another interface in the
11398 context of an instance as 'late'.
11399 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
11400 of a call to a function that dispatches on access result.
11401 (Check_Dispatching_Operation): In case of late overriding of a primitive
11402 that covers abstract interface subprograms we register it in all the
11403 secondary dispatch tables associated with abstract interfaces.
11404 (Check_Dispatching_Call): Add check that a dispatching call is not made
11405 to a function with a controlling result of a limited type. This is a
11406 current implementation restriction.
11407 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
11408 (Check_Dispatching_Operation): Do no emit a warning if the controlling
11409 argument is an interface type that is a generic formal.
11410 (Is_Interface_Subprogram): Removed.
11411 (Check_Dispatching_Operation): If the subprogram is not a dispatching
11412 operation, check the formals to handle the case in which it is
11413 associated with an abstract interface type.
11415 2006-10-31 Robert Dewar <dewar@adacore.com>
11416 Ed Schonberg <schonberg@adacore.com>
11418 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
11419 Add new calls to this procedure during traversal
11420 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
11421 another unit if expansion is disabled.
11423 2006-10-31 Robert Dewar <dewar@adacore.com>
11425 * sem_eval.adb (Compile_Time_Compare): Make use of information from
11426 Current_Value in the conditional case, to evaluate additional
11427 comparisons at compile time.
11429 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11430 Hristian Kirtchev <kirtchev@adacore.com>
11431 Javier Miranda <miranda@adacore.com>
11433 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
11434 subprogram type to provide better diagnostics in case of ambiguity.
11435 (Covers): Handle coverage of formal and actual anonymous access types in
11436 the context of generic instantiation.
11437 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
11438 abstract interface types; this is required to handle concurrent types
11439 with discriminants and abstract interface types.
11440 (Covers): Include type coverage of both regular incomplete subtypes and
11441 incomplete subtypes of incomplete type visibles through a limited with
11444 2006-10-31 Robert Dewar <dewar@adacore.com>
11445 Hristian Kirtchev <kirtchev@adacore.com>
11446 Ed Schonberg <schonberg@adacore.com>
11448 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
11449 messages for entities in packages which are not used.
11450 (Collect_Synchronized_Interfaces): New procedure.
11451 (Overrides_Synchronized_Primitive): New function.
11452 (Denotes_Discriminant): Extend predicate to apply to task types.
11453 Add missing continuation marks in error msgs
11454 (Unqualify): New function for removing zero or more levels of
11455 qualification from an expression. There are numerous places where this
11456 ought to be used, but we currently only deal properly with zero or one
11458 (In_Instance); The analysis of the actuals in the instantiation of a
11459 child unit is not within an instantiation, even though the parent
11460 instance is on the scope stack.
11461 (Safe_To_Capture_Value): Exclude the case of variables that are
11463 (Check_Obsolescent): Removed
11464 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
11465 is an aliased view, even when rewritten as a reference to the target
11466 object in an assignment.
11467 (Get_Subprogram_Entity): New function
11468 (Known_To_Be_Assigned): New function
11469 (Type_Access_Level): Compute properly the access level of a return
11470 subtype that is an anonymous access type.
11471 (Explain_Limited_Type): Correct use of "\" for continuation messages.
11472 (Is_Transfer): The new extended_return_statement causes a transfer of
11474 (Has_Preelaborable_Initialization): New function
11475 (Has_Null_Exclusion): New function. Given a node N, determine whether it
11476 has a null exclusion depending on its Nkind.
11477 Change Is_Lvalue to May_Be_Lvalue
11478 (May_Be_Lvalue): Extensive additional code to deal with subprogram
11479 arguments (IN parameters are not Lvalues, IN OUT parameters are).
11480 (Safe_To_Capture_Value): Extend functionality so it can be used for
11481 the current value condition case.
11482 (Has_Compatible_Alignment): New function
11483 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
11484 objects to handle the Ada 2005 case, where aliasedness no longer implies
11485 that the object is constrained. In particular, for dereferenced names,
11486 the designated object must be assumed to be unconstrained.
11487 (Kill_Current_Values): Properly deal with the case where we encounter
11488 a loop in the scope chain.
11489 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
11491 (Compile_Time_Constraint_Error): Improve error message in error case
11493 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
11494 associated with entities of abstract interface primitives.
11495 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
11497 2006-10-31 Robert Dewar <dewar@adacore.com>
11499 * s-osinte-tru64.adb:
11500 Mark Asm statements Volatile to prevent warnings (seems a
11501 reasonable change anyway)
11504 * s-mastop-irix.adb: Add Volatile to Asm statements
11505 Suppresses warning, and seems appropriate in any case
11507 * s-osinte-vms.adb: Add Volatile to Asm statement
11509 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
11511 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
11513 Add call to Check_Code_Statement
11515 2006-10-31 Robert Dewar <dewar@adacore.com>
11516 Ed Schonberg <schonberg@adacore.com>
11517 Bob Duff <duff@adacore.com>
11519 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
11520 Synchronized_Present): Add Formal_Derived_Type_Definition and
11521 Private_Extension_Declaration to the list of assertions.
11522 (Is_Entry_Barrier_Function): New flag
11523 (Has_Self_Reference): New flag on aggregates, to indicate that they
11524 contain a reference to the enclosing type, inserted through a default
11526 (Next_Rep_Item): Move from Node4 to Node5.
11527 (Entity): Add this field for N_Attribute_Definition_Clause.
11528 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
11529 (N_Return_Object_Declaration): Remove this node kind. We now use
11530 N_Object_Declaration instead.
11531 (Actual_Designated_Subtype): Move to a different place to make room in
11532 N_Extended_Return_Statement.
11533 (Procedure_To_Call): Move to a different place to make room in
11534 N_Extended_Return_Statement.
11535 (Return_Type): Removed this field to make room in return statements
11537 (Return_Statement_Entity): New field in return statements, in part to
11538 replace Return_Type, and in part to support the fact that return
11539 statements are now pushed on the scope stack during semantic analysis.
11540 (Return_Object_Declarations): New field to support extended return
11542 (N_Extended_Return_Statement): New node for extended_return_statement
11544 (N_Return_Object_Declaration): New node for part of
11545 extended_return_statement nonterminal. Needed because all the necessary
11546 fields won't fit in N_Extended_Return_Statement.
11547 Generic_associations now carry the Box_Present flag, to indicate a
11548 default for an actual in a partially parametrized formal package.
11550 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
11551 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
11552 and for the new predefined dispatching policies: EDF_Across_Priorities,
11553 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
11554 Introduce new name Stub_Type for implementation defined attribute.
11555 Add pragma Preelaborable_Initialization
11556 Add entry for Priority attribute.
11557 Add Pragma_Wide_Character_Encoding
11558 (Get_Convention_Name): Given a convention id, this function returns the
11559 corresponding name id from the names table.
11561 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11562 Robert Dewar <dewar@adacore.com>
11563 Bob Duff <duff@adacore.com>
11565 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
11566 print null exclusion twice in the case of an access definition,
11567 Implement new -gnatL switch
11568 Remove N_Return_Object_Declaration. We now use
11569 N_Object_Declaration instead. Implement the case for
11570 N_Extended_Return_Statement. Alphabetize the cases.
11571 Add cases for new nodes N_Extended_Return_Statement and
11572 N_Return_Object_Declaration. The code is not yet written.
11573 Update the output for N_Formal_Object_Declaration
11574 and N_Object_Renaming_Declaration.
11575 (Write_Itype): Account for the case of a modular integer subtype whose
11576 base type is private.
11578 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11580 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
11581 Remove elaboration code, now done in the binder.
11583 * s-rident.ads: Make this unit Preelaborate.
11584 (No_Restrictions): New constant used to clean up code and follow
11585 preelaborate constraints.
11588 Add System.Restrictions dependence, referenced directly from the
11589 binder generated file.
11591 2006-10-31 Gary Dismukes <dismukes@adacore.com>
11593 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
11594 True when AAMP extended floating-point is in use (48-bit). Change type
11595 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
11596 the two byte array types on AFloat. Change type of IV_Ilf overlay
11597 variable from Byte8 to ByteLF. Add appropriate initializations of
11598 floating-point overlays for AAMP cases.
11600 2006-10-31 Javier Miranda <miranda@adacore.com>
11602 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
11603 (Get_Ceiling): New subprogram that returns
11604 the ceiling priority of the protected object.
11605 (Set_Ceiling): New subprogram that sets the new ceiling priority of
11606 the protected object.
11608 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
11610 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
11612 2006-10-31 Jose Ruiz <ruiz@adacore.com>
11614 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
11615 requeuing to the same protected object to give higher priority tasks
11616 the opportunity to execute.
11618 2006-10-31 Robert Dewar <dewar@adacore.com>
11620 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
11621 add more precise check for the character sequence that follows '[' to
11622 avoid possible confusion in case if '[' is the last character of a
11624 (Scan_Wide): Always allow brackets encoding
11626 2006-10-31 Olivier Hainque <hainque@adacore.com>
11628 * s-stchop.ads: make this unit preelaborate. This is desirable in
11629 general and made mandatory by the use of this unit by s-taprop which
11630 is itself preelaborate.
11632 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
11633 Td_Events component.
11635 2006-10-31 Vincent Celier <celier@adacore.com>
11637 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
11640 2006-10-31 Vincent Celier <celier@adacore.com>
11642 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
11644 2006-10-31 Vincent Celier <celier@adacore.com>
11646 * makegpr.adb (Check_Compilation_Needed): Take into account path names
11648 (Check_Compilation_Needed): When checking a C or C++ source, do not
11649 resolve symbolic links.
11650 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
11651 When not in verbose mode and Ellipse is True, display "..." for the
11652 first argument with Display set to False.
11653 (Build_Global_Archive): Always set Display True for the first object
11654 file. Call Display_Command with Ellipse set to True.
11656 2006-10-31 Matt Heaney <heaney@adacore.com>
11658 * a-crbtgo.ads: Commented each subprogram
11660 * a-crbtgo.adb: Added reference to book from which algorithms were
11663 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
11664 indicate which child.
11665 (Generic_Conditional_Insert): changed parameter name from "Success" to
11667 (Generic_Unconditional_Insert_With_Hint): improved algorithm
11669 * a-coorse.adb (Replace_Element): changed parameter name in call to
11670 conditional insert operation.
11672 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
11674 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
11677 * a-ciorse.adb (Replace_Element): changed parameter name in call to
11678 conditional insert operation.
11680 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
11683 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
11684 instead of mode inout.
11686 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
11688 (Generic_Read): preserve existing buckets array if possible
11689 (Generic_Write): don't send buckets array length anymore
11691 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
11692 instead of mode inout.
11694 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
11695 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11697 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
11698 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11699 (Replace_Element): local operation is now an instantiation
11701 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
11702 check current length.
11703 (Generic_Replace_Element): new operation
11705 2006-10-31 Doug Rupp <rupp@adacore.com>
11707 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
11708 Call TBK$SYMBOLIZE without omitting parameters.
11710 2006-10-31 Vincent Celier <celier@adacore.com>
11712 * symbols-processing-vms-ia64.adb,
11713 symbols-processing-vms-alpha.adb (Process): Do not include symbols
11714 that come from generic instantiations in bodies.
11716 2006-10-31 Pat Rogers <rogers@adacore.com>
11718 * a-rttiev.ads, a-rttiev.adb:
11719 This is a significant redesign primarily for the sake of automatic
11720 timer task termination but also to fix a design flaw.
11721 Therefore we are now using an RTS lock, instead of a protected
11722 object, to provide mutual exclusion to the queue of pending events
11723 and the type Timing_Event is no longer a protected type.
11725 2006-10-31 Robert Dewar <dewar@adacore.com>
11726 Cyrille Comar <comar@adacore.com>
11727 Ben Brosgol <brosgol@adacore.com>
11729 * debug.adb: Update flags documentation
11731 * gnat_ugn.texi: Add documentation for new -gnatwq switch
11732 Clean up documentation for several other warning switches
11733 Clarify how task stack size can be specified with various
11734 versions of Windows.
11735 Add note that -gnatVo includes ranges including loops
11736 Add documentation for -gnatL switch
11737 Add note on elaboration warning for initializing variables
11738 Add documentation for new -gnatwt warning switch
11739 Document new form of pragma Warnings (On|Off, string)
11740 Add comment on use of pragma Warnings to control warnings
11741 Add documentation for -gnatjnn switch
11742 Modify section on interfacing with C for VMS 64-bit.
11743 Add doc for -gnatVe/E
11744 Add documentation of new warning flags -gnatww/-gnatwW
11745 Add warnings about address clause overlays to list of warnings
11746 (Exception Handling Control): Document that the option --RTS must be
11747 used consistently for gcc and gnatbind.
11748 Clarify that inlining is not always possible
11749 Update documentation on pragma Unchecked_Union.
11752 Add documentation for new extended version of pragma Obsolescent
11753 Add documentation for implementation defined attribute 'Stub_Type.
11754 Add note on use of Volatile in asm statements
11755 Add documentation on use of pragma Unreferenced in context clause
11756 Document new form of pragma Warnings (On|Off, pattern)
11757 Document pragma Wide_Character_Encoding
11758 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
11759 enforced if code generation is active.
11760 Add section on pragma Suppress to document GNAT specific check
11762 Clarify difference between No_Dispatching_Calls & No_Dispatch.
11763 Add documentation for pragma Restrictions (No_Elaboration_Code)
11766 Add comments on layout of subprogram local variables in the
11767 presence of nested subprograms.
11769 * ug_words: Resync.
11771 * elists.ads: Minor reformatting
11772 Node returns Node_Or_Entity_Id (doc change only)
11774 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
11776 * g-arrspl.ads (Create): Update comments.
11778 * sem.ads: Add details on the handling of the scope stack.
11780 * usage.adb: Update documentation.
11782 * validsw.ads, validsw.adb:
11783 Add definition of Validity_Check_Components and implement -gnatVe/E
11785 * vms_data.ads: Add missing VMS qualifiers.
11787 * s-addope.ads: Add documentation on overflow and divide by zero
11789 2006-10-31 Robert Dewar <dewar@adacore.com>
11790 Thomas Quinot <quinot@adacore.com>
11791 Arnaud Charlet <charlet@adacore.com>
11793 * fmap.adb: Put routines in alpha order
11795 * g-boumai.ads: Remove redundant 'in' keywords
11797 * g-cgi.adb: Minor reformatting
11799 * g-cgi.ads: Remove redundant 'in' keywords
11801 * get_targ.adb: Put routines in alpha order
11803 * prj-attr.ads: Minor reformatting
11805 * s-atacco.ads: Minor reformatting
11807 * scn.adb: Put routines in alpha order
11809 * sinput-l.adb: Minor comment fix
11811 * sinput-p.adb: Minor comment fix
11813 * s-maccod.ads: Minor reformatting
11815 * s-memory.adb: Minor reformatting
11817 * s-htable.adb: Fix typo in comment.
11819 * s-secsta.adb: Minor comment update.
11821 * s-soflin.adb: Minor reformatting
11824 Add comment about odd qualification in Storage_Offset declaration
11827 Remove unnecessary 'in' keywords for formal parameters.
11829 * treeprs.adt: Minor reformatting
11831 * urealp.adb: Put routines in alpha order
11833 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
11836 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11838 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
11840 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
11841 workaround as on other platforms.
11843 * g-eacodu-vms.adb: Remove redundant 'in' keywords
11844 * g-expect-vms.adb: Remove redundant 'in' keywords
11846 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
11847 clear error message if the list-of-files file cannot be opened.
11849 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
11850 equality operator is always visible.
11852 * lang.opt: Woverlength-strings: New option.
11855 Update copyright, since nmake.ads and nmake.adb have changed.
11857 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
11858 (Binder_Output_Time_Stamps_Set): removed.
11859 (Old_Binder_Output_Time_Stamp): idem.
11860 (New_Binder_Output_Time_Stamp): idem.
11861 (Recording_Time_From_Last_Bind): idem.
11862 (Recording_Time_From_Last_Bind): Make constant.
11864 * output.ads, output.adb (Write_Str): Allow LF characters
11865 (Write_Spaces): New procedure
11867 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
11869 * inline.adb: Minor reformatting
11871 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11873 * s-mastop-vms.adb: Remove redundant 'in' keywords
11875 * s-osprim-vms.adb: Remove redundant 'in' keywords
11877 * s-trafor-default.adb: Remove redundant 'in' keywords
11879 * 9drpc.adb: Remove redundant 'in' keywords
11881 * s-osinte-mingw.ads: Minor reformatting
11883 * s-inmaop-posix.adb: Minor reformatting
11885 * a-direio.ads: Remove quotes from Compile_Time_Warning message
11887 * a-exexda.adb: Minor code reorganization
11889 * a-filico.adb: Minor reformatting
11891 * a-finali.adb: Minor reformatting
11893 * a-nudira.ads: Remove quote from Compile_Time_Warning message
11895 * a-numeri.ads: Minor reformatting
11897 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
11899 * exp_pakd.ads: Fix obsolete comment
11901 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
11902 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
11903 Probably not a bug, but certainly neater and more efficient.
11905 * a-tienio.adb: Minor reformatting
11907 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
11908 Avoid assuming low bound of string is 1.
11910 * gnatbind.adb: Change Bindusg to package and rename procedure as
11911 Display, which now ensures that it only outputs usage information once.
11912 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
11914 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
11917 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
11919 (Match): Add pragma Assert to ensure that Matches'First is zero
11921 * g-regpat.ads (Match): Document that Matches lower bound must be zero
11923 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
11924 documented preconditions (also kills warnings about bad indexes).
11926 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
11928 (Build_Import_Library): Ditto;
11930 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
11932 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
11934 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
11935 lower bound of choice table is 1.
11937 * sem_case.ads (Analyze_Choices): Document that lower bound of
11940 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
11943 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
11944 and add appropriate Assert pragma to suppress warnings.
11946 * atree.h, atree.ads, atree.adb
11947 Change Elist24 to Elist25
11948 Add definitions of Field28 and Node28
11949 (Traverse_Field): Use new syntactic parent table in sinfo.
11951 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11953 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11955 * exp_tss.adb: Put routines in alpha order
11957 * fe.h: Remove redundant declarations.
11959 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
11961 * utils.c (builtin_function): Rename to gnat_builtin_function.
11962 Move common code to add_builtin_function.
11963 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
11964 gnat_builtin_function.
11965 * gigi.h (builtin_function): Rename to gnat_builtin_function.
11966 Change the signature.
11968 2006-10-16 Brooks Moses <bmoses@stanford.edu>
11970 * Makefile.in: Add TEXI2PDF definition.
11971 * Make-lang.in: Add "ada.pdf" target.
11973 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
11975 * decl.c, utils.c: Fix comment typos.
11976 * utils.c: Fix a typo.
11978 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
11980 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
11981 on "pure" Ada subprograms if SJLJ exceptions are used.
11982 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
11983 on the declaration node of JMPBUF_SAVE.
11984 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
11985 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
11986 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
11988 2006-08-20 Laurent GUERBY <laurent@guerby.net>
11991 g-socket.adb (Bind_Socket): Call Set_Address.
11993 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
11996 * decl.c (same_discriminant_p): New static function.
11997 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
11998 subtype and we have discriminants, fix up the COMPONENT_REFs
11999 for the discriminants to make them reference the corresponding
12000 fields of the parent subtype after it has been built.
12002 2006-09-15 Roger Sayle <roger@eyesopen.com>
12005 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
12006 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
12008 2006-09-13 Olivier Hainque <hainque@adacore.com>
12011 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
12012 of a SAVE_EXPR, just make the operand addressable/not-readonly and
12013 let the common gimplifier code make and propagate a temporary copy.
12014 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
12015 out/in-out actuals and defer setting the addressable/readonly bits
12018 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
12021 * decl.c (components_to_record): Defer emitting debug info for the
12022 record type associated with the variant until after we are sure to
12025 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
12028 * gigi.h (gnat_internal_attribute_table): Declare.
12029 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
12030 * utils.c (gnat_internal_attribute_table): New global variable.
12031 (builtin_function): Always call decl_attributes on the builtin.
12032 (handle_const_attribute): New static function.
12033 (handle_nothrow_attribute): Likewise.
12035 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12037 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
12039 2006-06-23 Olivier Hainque <hainque@adacore.com>
12041 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
12042 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
12044 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
12045 Eric Botcazou <ebotcazou@adacore.com>
12048 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
12049 check-gnat into check-acats.
12051 2006-06-17 Karl Berry <karl@gnu.org>
12053 * gnat-style.texi (@dircategory): Use "Software development"
12054 instead of "Programming", following the Free Software Directory.
12056 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12059 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
12061 2006-06-06 Laurent GUERBY <laurent@guerby.net>
12064 mlib-utl.adb: Use Program_Name.
12066 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
12068 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
12069 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
12070 trans.c, utils.c: Fix comment typos. Follow spelling
12072 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
12075 2006-05-19 Nicolas Setton <setton@adacore.com>
12077 * misc.c (gnat_dwarf_name): New function.
12078 (LANG_HOOKS_DWARF_NAME): Define to it.
12080 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
12082 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
12083 (ada/misc.o): Likewise.
12084 (ada/utils.o): Likewise.
12086 2006-04-08 Aurelien Jarno <aurel32@debian.org>
12088 * Makefile.in: Add Ada support for GNU/kFreeBSD.
12089 * s-osinte-kfreebsd-gnu.ads: New file.
12091 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
12093 * Make-lang.in: Rename docdir to gcc_docdir.
12095 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
12097 * gigi.h (get_ada_base_type): Delete.
12098 * utils2.c (get_ada_base_type): Likewise.
12099 * trans.c (convert_with_check): Operate in the real base type.
12101 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12103 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
12105 2006-03-02 Richard Sandiford <richard@codesourcery.com>
12107 * utils.c (create_var_decl): Use have_global_bss_p when deciding
12108 whether to make the decl common.
12110 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12112 * Make-lang.in (Ada): Remove.
12113 (.PHONY): Remove Ada
12115 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12117 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
12118 aggregate, check the interpretations of the other operand to find one
12119 that may be a boolean array.
12121 (Analyze_Selected_Component): Fix flow-of-control typo in case where
12122 the prefix is a private extension.
12124 2006-02-17 Eric Botcazou <botcazou@adacore.com>
12127 * utils2.c (find_common_type): If both input types are BLKmode and
12128 have the same constant size, keep using the first one.
12130 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
12132 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
12134 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
12136 2006-02-17 Jose Ruiz <ruiz@adacore.com>
12138 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
12139 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12140 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
12141 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
12142 Abort_Defer/Undefer pairs to avoid the possibility of a task being
12143 aborted while owning a lock.
12145 2006-02-17 Javier Miranda <miranda@adacore.com>
12146 Robert Dewar <dewar@adacore.com>
12148 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
12149 through an access to class-wide interface we force the displacement of
12150 the pointer to the allocated object to reference the corresponding
12151 secondary dispatch table.
12152 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
12153 if Long_Shifts are supported on the target, even if 64 bit divides
12154 are not supported (configurable run time mode).
12155 (Expand_N_Type_Conversion): Do validity check if validity checks on
12156 operands are enabled.
12157 (Expand_N_Qualified_Expression): Do validity check if validity checks
12158 on operands are enabled.
12160 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12162 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
12163 must be materialized when the renamed expression is an explicit
12166 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12168 * freeze.adb (Statically_Discriminated_Components): Return false if
12169 the bounds of the type of the discriminant are not static expressions.
12171 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
12172 the bounds of the discriminant type are not static.
12174 2006-02-17 Robert Dewar <dewar@adacore.com>
12176 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
12177 then we close To if it is valid.
12179 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
12181 * init.c (facility_resignal_table): new array
12182 (__gnat_default_resignal_p): enhance default predicate to resignal if
12183 VMS condition has one of the predefined facility codes.
12185 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
12187 * Makefile.in: Use VMS64 specialized versions of several units in
12188 Interfaces.C hierarchy to be compatible with HP C default size choices.
12189 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
12191 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12193 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
12194 instantiation, the corresponding entity is the related_instance of the
12195 wrapper package created for the instance.
12197 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12199 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
12200 the current instance is nested within another instance in a child unit.
12202 2006-02-17 Javier Miranda <miranda@adacore.com>
12203 Ed Schonberg <schonberg@adacore.com>
12205 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
12206 type we cannot inherit the primitive operations; we inherit the
12207 Corresponding_Record_Type (which has the list of primitive operations).
12208 (Check_Anonymous_Access_Types): When creating anonymous access types for
12209 access components, use Rewrite in order to preserve the tree structure,
12211 (Analyze_Object_Declaration): For limited types with access
12212 discriminants with defaults initialized by an aggregate, obtain
12213 subtype from aggregate as for other mutable types.
12214 (Derived_Type_Declaration): If the derived type is a limited interface,
12215 set the corresponding flag (Is_Limited_Record is not sufficient).
12217 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12219 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
12220 to inline a function that returns an unconstrained type, the return
12221 expression must be the first variable declared in the body of the
12224 2006-02-17 Javier Miranda <miranda@adacore.com>
12226 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
12227 abstract interface type, the static analysis is not enough to know if
12228 the interface is implemented or not by the source tagged type. Hence
12229 we must pass the work to the expander to generate the required code to
12230 evaluate the conversion at run-time.
12231 (Resolve_Equality_Op): Do not apply previous
12232 transformation if expansion is disasbled, to prevent anomalies when
12233 locating global references in a generic unit.
12235 2006-02-17 Vincent Celier <celier@adacore.com>
12237 * snames.ads, snames.adb: New standard names for new project attributes:
12238 archive_builder, archive_indexer, compiler_pic_option,
12239 config_body_file_name, config_body_file_name_pattern,
12240 config_file_switches, config_file_unique, config_spec_file_name,
12241 config_spec_file_name_pattern, default_builder_switches,
12242 default_global_compiler_switches, default_language,
12243 dependency_file_kind, global_compiler_switches, include_path,
12244 include_path_file, language_kind, linker_executable_option,
12245 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
12246 roots, runtime_project.
12248 2006-02-17 Matthew Heaney <heaney@adacore.com>
12250 * a-convec.ads, a-convec.adb:
12251 (operator "&"): handle potential overflow for large index types
12252 (Insert): removed Contraint_Error when using large index types
12253 (Insert_Space): removed Constraint_Error for large index types
12254 (Length): moved constraint check from Length to Insert
12256 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
12257 as not null access.
12258 Explicit raise statements now include an exception message.
12259 (operator "&"): handle potential overflow for large index types
12260 (Insert): removed Contraint_Error when using large index types
12261 (Insert_Space): removed Constraint_Error for large index types
12262 (Length): moved constraint check from Length to Insert
12264 2006-02-17 Robert Dewar <dewar@adacore.com>
12266 * s-wchcnv.adb: Document handling of [ on output (we do not change
12267 this to ["5B"] and the new comments say why not.
12270 Add note for -gnatVo that this now includes the cases of type
12271 conversions and qualified expressions.
12272 Add comments on handling of brackets encoding for Text_IO
12274 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
12275 Thomas Quinot <quinot@adacore.com>
12276 Robert Dewar <dewar@adacore.com>
12277 Javier Miranda <miranda@adacore.com>
12279 * expander.adb: Fix typo in comment
12281 * exp_pakd.adb: Fix typo
12282 Minor comment reformatting.
12284 * g-dyntab.adb: Minor reformatting
12286 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
12287 aliased subprograms to look for the abstract interface subprogram.
12289 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
12291 * env.c (__gnat_setenv): Use size_t.
12292 (__gnat_unsetenv): Likewise.
12293 (__gnat_clearenv): Likewise.
12295 2006-02-16 Arnaud Charlet <charlet@adacore.com>
12297 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
12299 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12301 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
12302 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
12303 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
12304 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
12305 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
12306 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
12307 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
12308 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
12309 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
12312 2006-02-13 Jose Ruiz <ruiz@adacore.com>
12314 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
12315 protection against race conditions is not needed.
12316 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
12318 (Set_Specific_Handler): Add mutual exclusive access to the specific
12320 (Specific_Handler): Add mutual exclusive access for retrieving the
12323 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
12326 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
12327 Fall_Back_Handler and Specific_Handler.
12329 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
12330 termination handlers.
12331 Set two different owerflow depending on the maximal stack size.
12333 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
12334 protection against race conditions is not needed when executing the
12335 task termination handler.
12337 2006-02-13 Robert Dewar <dewar@adacore.com>
12339 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
12340 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
12341 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
12342 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
12343 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
12344 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
12345 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
12346 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
12347 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
12348 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
12349 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
12350 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
12351 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
12352 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
12353 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
12354 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
12355 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
12356 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
12357 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
12358 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
12359 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
12360 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
12361 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
12362 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
12363 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
12364 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
12365 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
12366 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
12367 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
12368 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
12369 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
12370 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
12371 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
12372 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
12375 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
12377 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
12378 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
12379 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
12380 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
12381 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
12382 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
12383 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
12384 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
12385 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
12387 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12389 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
12390 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
12391 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
12392 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
12393 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
12394 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
12395 replaced by anonymous access type.
12396 (pthread_sigmask): Now take an access sigset_t
12398 * s-osinte-hpux.ads: Ditto.
12399 (pthread_mutex_t, pthread_cond_t): Update definitions to support
12400 properly 32 and 64 bit ABIs.
12402 2006-02-13 Pascal Obry <obry@adacore.com>
12404 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
12405 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
12406 s-taprop-linux.adb, s-taprop-solaris.adb,
12407 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
12408 adjustement is already done when calling this routine.
12410 2006-02-13 Pascal Obry <obry@adacore.com>
12412 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
12413 table to take advantage of the 16 priority levels available on Windows
12414 2000 and XP. On NT4 there are only 7 priority levels, this is properly
12415 supported by this new mapping.
12417 2006-02-13 Nicolas Setton <setton@adacore.com>
12419 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
12420 (get_encoding): New subprogram. Extracts the encodings from an encoded
12423 2006-02-13 Pascal Obry <obry@adacore.com>
12424 Nicolas Roche <roche@adacore.com>
12425 Arnaud Charlet <charlet@adacore.com>
12427 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
12429 (__gnat_try_lock): Add unicode support by using a specific section on
12431 (__gnat_get_current_dir): Idem.
12432 (__gnat_open_read): Idem.
12433 (__gnat_open_rw): Idem.
12434 (__gnat_open_create): Idem.
12435 (__gnat_create_output_file): Idem.
12436 (__gnat_open_append): Idem.
12437 (__gnat_open_new): Idem.
12438 (__gnat_file_time_name): Idem.
12439 (__gnat_set_file_time_name): Idem.
12440 (__gnat_stat): Idem.
12441 (win32_no_block_spawn): Idem.
12442 (__gnat_locate_exec_on_path): Idem.
12443 (__gnat_opendir): New routine.
12444 (__gnat_closedir): Idem.
12445 (__gnat_readdir): Add new parameter length (pointer to int). Update
12446 implementation to use it and add specific Win32 code for Unicode
12448 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
12449 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
12450 (convert_addresses): Do not define this dummy routine on VMS.
12452 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
12453 runtime Unicode support will be activated.
12454 (S2WS): String to Wide-String conversion. This version just copy a
12455 string in non Unicode version.
12456 (WS2S): Wide-String to String conversion. This version just copy a
12457 string in non Unicode version.
12459 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
12460 (Open): Now import __gnat_opendir from adaint.c.
12461 (Read): Change the implementation to support unicode characters. It is
12462 not possible to use strlen() on Windows as this version supports only
12463 standard ASCII characters. So the length of the directory entry is now
12464 returned from the imported __gnat_readdir routine.
12465 Update copyright notice.
12467 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
12468 (opendir): Moved to adaint.c.
12470 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
12471 (Get_Directory): Fix wrong indexing.
12472 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
12473 __gnat_getenv from env.c
12474 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
12477 * env.h, env.c: New file.
12479 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
12480 adaint.c by __gnat_getenv from env.c
12482 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
12483 adaint.c by __gnat_getenv from env.c
12485 * Make-lang.in: Add env.o in the list of C object needed by gnat1
12487 Update dependencies.
12489 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12490 Olivier Hainque <hainque@adacore.com>
12491 Eric Botcazou <ebotcazou@adacore.com>
12493 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
12495 * gigi.h (value_factor_p): Add prototype and description, now public.
12497 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
12498 promotion for field with rep clause if the associated size was proven
12500 Expand comments describing attempts to use a packable type.
12501 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
12502 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
12503 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
12504 necessary since these are not different types and pointers may
12505 actually designate any subtype in this hierarchy.
12506 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
12507 discriminants but put them into record only if not Unchecked_Union;
12508 pass flag to components_to_record showing Unchecked_Union.
12509 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
12510 components before variants; don't set TYPE_UNCHECKED_UNION_P.
12511 (components_to_record): New argument UNCHECKED_UNION.
12512 Remove special case code for Unchecked_Union and instead use main code
12513 with small changes.
12516 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
12517 variable with the expression being built, only its inner field.
12519 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
12520 emit_sequence_entry_statements.
12521 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
12522 (establish_gnat_vms_condition_handler): Move before
12523 Subprogram_Body_to_gnu.
12524 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
12525 for a subprogram if it has a foreign convention or is exported.
12526 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
12527 substituted for a CONST_DECL.
12528 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
12529 Etype to assoc_to_constructor.
12530 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
12531 discriminants of Unchecked_Union.
12532 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
12533 don't need cluttering preprocessor directives.
12534 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
12535 condition handler as current in the compiled function.
12536 (body_with_handlers_p): New function. Tell whether a given sequence of
12537 statements node is attached to a package or subprogram body and involves
12538 exception handlers possibly nested within inner block statements.
12539 (emit_sequence_entry_statements): New function, to emit special
12540 statements on entry of sequences when necessary. Establish GNAT
12541 condition handler in the proper cases for VMS.
12542 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
12543 emit_sequence_entry_statements.
12545 * utils2.c (find_common_type): If both input types are BLKmode and
12546 have a constant size, use the smaller one.
12547 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
12550 * utils.c (value_factor_p): Make public, to allow uses from other gigi
12552 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
12553 (convert, case UNION_TYPE): Remove special treatment for unchecked
12557 (update_pointer_to): Update variants of pointer types to unconstrained
12558 arrays by attaching the list of fields of the main variant.
12560 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12561 Robert Dewar <dewar@adacore.com>
12563 * a-exexpr.adb, a-exexpr-gcc.adb
12564 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
12565 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
12566 Remove code unused for exception propagation for the compiler itself
12567 from a-except.adb and update to still share separate packages.
12569 * a-except.ads, a-except.adb: Ditto.
12570 Add comments that this version is now used only by the compiler and
12571 other basic tools. The full version that includes the Ada 2005 stuff
12572 is in separate files a-except-2005.ads/adb. The reason is that we do
12573 not want to cause bootstrap problems with compilers not recognizing
12575 Add exception reason code PE_Implicit_Return
12576 Add new exception reason code (Null Exception_Id)
12578 * a-except-2005.adb, a-except-2005.ads: New files.
12580 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
12582 * s-wchcon.adb: New file.
12584 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
12585 (traceback.o deps): Likewise.
12586 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
12587 Activate build of GMEM instrumentation library on VMS targets.
12588 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
12589 Use a-except-2005.ads/adb for all run-time library builds unless
12590 specified otherwise.
12591 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
12592 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
12593 Use s-parame.adb on all native platforms.
12594 Use s-parame-vxworks.adb on all vxworks platforms.
12595 Add env.c env.h in LIBGNAT_SRCS
12596 Add env.o in LIBGNAT_OBJS
12597 (GNATMAKE_OBJS): Remove ctrl_c.o object.
12598 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
12599 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
12600 supports VxWorks 6 RTPs.
12601 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
12602 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
12604 * types.h, types.ads (Terminate_Program): New exception
12605 Add comment on modifying multiple versions of a-except.adb when the
12606 table of exception reasons is modified.
12607 Add exception reason code PE_Implicit_Return
12608 Add new exception reason code (Null Exception_Id)
12610 * clean.adb (Initialize): Get the target parameters before checking
12611 if target is OpenVMS. Move the OpenVMS specific code here from package
12612 body elaboration code.
12614 2006-02-13 Thomas Quinot <quinot@adacore.com>
12615 Vincent Celier <celier@adacore.com>
12616 Robert Dewar <dewar@adacore.com>
12618 * ali-util.adb (Get_File_Checksum): Update to account for change in
12619 profile of Initialize_Scanner.
12621 * gprep.adb (Gnatprep): Update to account for change in profile of
12622 Initialize_Scanner.
12623 (Process_One_File): Same.
12625 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
12626 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
12627 that behaviour using the new Unit information recorded in the source
12628 files table, rather than going through all units every time.
12629 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
12630 (Get_Source_Unit): Same.
12632 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
12633 change in profile of Initialize_Scanner.
12634 (Prepare_To_Preprocess): Same.
12636 * lib.ads: Fix typo in comment (templace -> template).
12638 * prj-part.adb (Parse_Single_Project): Update to account for change in
12639 profile of Initialize_Scanner.
12641 * scn.adb (Initialize_Scanner): Account for change in profile of
12642 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
12643 Also record the association of the given Source_File_Index to the
12644 corresponding Unit_Number_Type.
12646 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
12648 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
12649 Remove Unit formal for generic scanner: this formal
12650 is only relevant to Scn (the scanner instance used to parse Ada source
12651 files), not to other instances. Update comment accordingly.
12652 (Scan): Use new function Snames.Is_Keyword_Name.
12654 * sinfo-cn.adb: Fix typo in comment.
12656 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
12659 * sinput.ads (Source_File_Record): New component Unit, used to capture
12660 the unit identifier (if any) associated to a source file.
12662 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
12663 Unit in Source_File_Record.
12665 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
12666 in profile of Initialize_Scanner.
12668 * scans.adb (Initialize_Ada_Keywords): New procedure
12670 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
12671 Ada keywords in the Namet table, without the need to call
12672 Initialize_Scanner.
12674 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
12675 (Is_Keyword_Name): New function
12677 * snames.ads: Add subtype Configuration_Pragma_Names
12678 Add pragma Ada_2005 (synonym for Ada_05)
12679 (Is_Keyword_Name): New function
12681 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
12683 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12685 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
12688 * a-stwima.adb (To_Set): Add extra check when N = 0.
12690 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
12692 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12694 * s-parame-mingw.adb, s-parame-linux.adb,
12695 s-parame-solaris.adb: Removed, replaced by s-parame.adb
12697 * s-parame-vxworks.ads: Fix typo.
12699 * s-parame-vxworks.adb: New file.
12701 * s-parame.adb: Version now used by all native platforms.
12702 (Default_Stack_Size): Use 2 megs for default stack size and use
12703 __gl_default_stack_size when available.
12704 (Minimum_Stack_Size): Use 12K.
12706 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
12707 (Create_Task): Refine implementation taking advantage of the XP stack
12708 size support. On XP, we now create the thread using the flag
12709 STACK_SIZE_PARAM_IS_A_RESERVATION.
12711 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
12713 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
12714 XP and 0 on older Windows versions.
12716 * interfac-vms.ads: Removed, no longer used.
12718 2006-02-13 Matthew Heaney <heaney@adacore.com>
12720 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
12721 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
12722 a-cohase.adb: All explicit raise statements now include an exception
12725 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
12726 (Update_Element_Preserving_Key): renamed op to just Update_Element.
12727 Explicit raise statements now include an exception message
12729 * a-cihase.ads, a-cohase.ads: Removed comment.
12731 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
12732 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
12733 a-szbzha.adb, a-szfzha.ads: New files.
12735 2006-02-13 Matthew Heaney <heaney@adacore.com>
12737 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
12740 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12742 * lang.opt: Wvariadic-macros: New option.
12743 Wold-style-definition: Likewise.
12744 Wmissing-format-attribute: Likewise.
12746 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
12747 -Wold-style-definition and -Wmissing-format-attribute.
12749 2006-02-13 Robert Dewar <dewar@adacore.com>
12751 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
12753 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
12755 2006-02-13 Nicolas Roche <roche@adacore.com>
12757 * a-envvar.adb, a-envvar.ads: New files.
12759 2006-02-13 Douglas Rupp <rupp@adacore.com>
12761 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
12763 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
12765 2006-02-13 Pat Rogers <rogers@adacore.com>
12767 * a-rttiev.adb, a-rttiev.ads: New files.
12769 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
12771 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
12772 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
12774 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
12776 2006-02-13 Robert Dewar <dewar@adacore.com>
12778 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
12779 sem_case.adb: Minor code reorganization (not Present should be No)
12781 2006-02-13 Geert Bosch <bosch@adacore.com>
12782 Gary Dismukes <dismukes@adacore.com>
12784 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
12785 0, since the lower bound of the actual string may be greater than one.
12788 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
12789 layout is requested.
12791 2006-02-13 Vincent Celier <celier@adacore.com>
12793 * back_end.adb (Scan_Compiler_Arguments): Check if
12794 Search_Directory_Present is True and, if it is, add the argument in
12795 the source search directory path.
12797 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
12798 Search_Directory_Present to True.
12800 2006-02-13 Joel Brobecker <brobecke@adacore.com>
12802 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
12803 volatile, to tell the compiler to preserve this variable at any level
12805 (Gen_Versions_Ada): Temporarily work around codegen bug.
12807 2006-02-13 Vincent Celier <celier@adacore.com>
12809 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
12810 gcc to link with option -shared-libgcc.
12811 (Gnatlink): Remove duplicate switches -shared-libgcc
12813 2006-02-13 Robert Dewar <dewar@adacore.com>
12815 * gnatvsn.ads (Current_Year): New constant, used to easily update
12816 copyright on all GNAT tools.
12818 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
12821 2006-02-13 Robert Dewar <dewar@adacore.com>
12823 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
12824 after hyphen (small aesthetic change useful for a range of numbers
12826 Suppress range checks for a couple of assignments which otherwise
12827 cause validity checks with validity checking turned on.
12829 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
12830 Improvement in error message for object.
12831 (Rep_Item_Too_Late): Remove '!' in warning message.
12833 2006-02-13 Robert Dewar <dewar@adacore.com>
12834 Eric Botcazou <ebotcazou@adacore.com>
12836 * err_vars.ads: Suppress range checks for a couple of assignments
12837 which otherwise cause validity checks with validity checking turned on.
12840 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
12841 Make message unconditional if it is a warning.
12842 (Error_Msg_NEL): Always output warning messages.
12843 Suppress range checks for a couple of assignments which otherwise
12844 cause validity checks with validity checking turned on.
12846 * errout.ads (Message Insertion Characters): Document that '!' is
12847 implied by '?' in error messages.
12849 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
12850 (Gnat1drv): Use a goto to end of main subprogram instead of
12851 Exit_Program (E_Success) so that finalization can occur normally.
12853 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12855 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
12858 2006-02-13 Vincent Celier <celier@adacore.com>
12860 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
12861 Unchecked_Conversion functions.
12862 (Modification_Time): Use direct conversion of OS_Time to Calendar time
12863 when OpenVMS returns False.
12865 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
12866 a-dirval.adb (OpenVMS): New Boolean function
12868 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12869 Thomas Quinot <quinot@adacore.com>
12871 * checks.adb (Build_Discriminant_Checks): If the expression being
12872 checks is an aggregate retrieve the values of its discriminants to
12873 generate the check, rather than creating a temporary and a reference
12875 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
12876 (Install_Null_Excluding_Check): Ditto
12877 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
12878 not for the renamed object, so that the actual itype is attached in the
12881 2006-02-13 Robert Dewar <dewar@adacore.com>
12882 Vincent Celier <celier@adacore.com>
12884 * debug.adb: Eliminate numeric switches for binder/gnatmake
12886 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
12887 switches for the compiler.
12888 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
12889 (Scan_Make_Switches): When failing with an illegal switch, output an
12890 error message with the full switch.
12891 Eliminate numeric switches for binder/gnatmake
12893 * switch.ads, switch.adb (Bad_Switch): New procedure
12895 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
12896 Remove 0-9 as debug flag character possibilities
12897 -d is now controlling the primary stack size when its value is a
12898 positive. Also add checks against invalid values, and support for kb,
12899 mb. Ditto for -D switch.
12901 2006-02-13 Robert Dewar <dewar@adacore.com>
12902 Serguei Rybin <rybin@adacore.com>
12904 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
12905 save/restore routines.
12906 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12907 were not always properly handled previously.
12908 Since we are changing the tree format anyway, also get rid of the
12909 junk obsolete Immediate_Errors flag.
12910 (Tree_Read): Change the way of reading Tree_Version_String - now we
12911 read the version string from the tree even if its length is not the
12912 same as the length of the version string computed from Gnatvsn.
12913 (Search_Directory_Present): New Boolean flag for the compiler.
12914 Define Tree_Version_String as a dynamic string.
12915 (Default_Stack_Size): new variable, used to handle switch -d.
12918 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
12919 only for main unit.
12920 Add pragma Ada_2005 (synonym for Ada_05)
12921 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12922 were not always properly handled previously.
12924 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
12925 explicit Ada_95 to Ada_2005.
12927 2006-02-13 Javier Miranda <miranda@adacore.com>
12928 Robert Dewar <dewar@adacore.com>
12929 Ed Schonberg <schonberg@adacore.com>
12931 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
12932 against errors in the source program: a private types for which the
12933 corresponding full type declaration is missing and pragma CPP_Virtual
12935 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
12936 (Is_Known_Null): New flag
12937 (Has_Pragma_Pure): New flag
12938 (No_Return): Present in all entities, set only for procedures
12939 (Is_Limited_Type): A type whose ancestor is an interface is limited if
12940 explicitly declared limited.
12941 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
12942 entities. Only used for component marked Is_Tag. If present it stores
12943 the Offset_To_Top function used to provide this value in tagged types
12944 whose ancestor has discriminants.
12946 * exp_ch2.adb: Update status of new Is_Known_Null flag
12948 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
12950 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
12951 the categorization sense if Is_Pure was set by pragma Pure_Function.
12953 2006-02-13 Quentin Ochem <ochem@adacore.com>
12954 Olivier Hainque <hainque@adacore.com>
12956 * bindusg.adb: Updated documentation for -d and -D switches.
12958 * raise.h (__gnat_set_globals): added new parameter for
12959 Default_Stack_Size.
12961 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
12962 (__gnat_handle_vms_condition): Adjust context before raise.
12963 (__gnat_install_handler): Restore the global vector setup for GCC
12964 versions before 3.4, as the frame based circtuitry is not available
12966 (__gnat_set_globals): added a parameter default_stack_size
12967 (__gl_default_stack_size): new variable.
12969 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12971 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
12972 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
12973 does not exist in the Ada RM.
12974 (Compatible_Int_Bounds): Determine whether two integer range bounds
12975 are of equal length and have the same start and end values.
12976 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
12977 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
12978 aggregate when it is part of an object declaration.
12979 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
12980 constrains discriminants of its parent, add explicitly the discriminant
12981 constraints of the ancestor by retrieving them from the
12982 stored_constraint of the parent.
12984 2006-02-13 Robert Dewar <dewar@adacore.com>
12986 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
12987 attribute Mechanism_Code is applied to renamed subprogram, modify
12988 prefix to point to base subprogram.
12989 Max/Min attributes now violate Restriction No_Implicit_Conditionals
12991 * sinfo.ads: Document that Mechanism_Code cannot be applied to
12992 renamed subprograms so that the front-end must replace the prefix
12995 2006-02-13 Javier Miranda <miranda@adacore.com>
12996 Gary Dismukes <dismukes@adacore.com>
12998 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
12999 availability of RE_Interface_Tag.
13000 (Build_Initialization_Call): Fix wrong access to the discriminant value.
13001 (Freeze_Record_Type): Do not generate the tables associated with
13002 timed and conditional dispatching calls through synchronized
13003 interfaces if compiling under No_Dispatching_Calls restriction.
13004 When compiling for Ada 2005, for a nonabstract
13005 type with a null extension, call Make_Controlling_Function_Wrappers
13006 and insert the wrapper function declarations and bodies (the latter
13007 being appended as freeze actions).
13008 (Predefined_Primitive_Bodies): Do not generate the bodies of the
13009 predefined primitives associated with timed and conditional
13010 dispatching calls through synchronized interfaces if we are
13011 compiling under No_Dispatching_Calls.
13012 (Build_Init_Procedure): Use RTE_Available to check if a run-time
13013 service is available before generating a call.
13014 (Make_Controlling_Function_Wrappers): New procedure.
13015 (Expand_N_Full_Type_Declaration): Create a class-wide master for
13016 access-to-limited-interfaces because they can be used to reference
13017 tasks that implement such limited interface.
13018 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
13019 procedure spec and body of the Offset_To_Top function that is generated
13020 when the parent of a type with discriminants has secondary dispatch
13022 (Init_Secondary_Tags): Handle the case in which the parent of the type
13023 containing secondary dispatch tables has discriminants to generate the
13024 correct arguments to call Set_Offset_To_Top.
13025 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
13027 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
13028 Add Wide_[Wide_]Expanded_Name.
13029 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
13030 the same functionality of Get_Prim_Op_Address but applied to predefined
13031 primitive operations because the pointers to the predefined primitives
13032 are now saved in a separate table.
13033 (Parent_Size): Modified to get access to the separate table of primitive
13034 operations or the parent type.
13035 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
13036 functionality of Set_Prim_Op_Address but applied to predefined primitive
13038 (Set_Signature): New subprogram used to store the signature of a DT.
13039 (Displace): If the Offset_To_Top value is not static then call the
13040 function generated by the expander to get such value; otherwise use
13041 the value stored in the table of interfaces.
13042 (Offset_To_Top): The type of the actual has been changed to Address to
13043 give the correct support to tagged types with discriminants. In this
13044 case this value is stored just immediately after the tag field.
13045 (Set_Offset_To_Top): Two new formals have been added to indicate if the
13046 offset_to_top value is static and hence pass this value to the run-time
13047 to store it in the table of interfaces, or else if this value is dynamic
13048 and then pass to the run-time the address of a function that is
13049 generated by the expander to provide this value for each object of the
13052 * rtsfind.ads (Default_Prin_Op_Count): Removed.
13053 (Default_Prim_Op_Count): New entity
13054 (Get_Predefined_Prim_Op_Address): New entity
13055 (Set_Predefined_Prim_Op_Address): New entity
13056 (RE_Set_Signature): New entity
13058 2006-02-13 Thomas Quinot <quinot@adacore.com>
13059 Ed Schonberg <schonberg@adacore.com>
13061 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
13062 Make_Adjust_Call done for a newly-allocated object.
13064 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
13065 in a subprogram are wrapped in a cleanup block, indicate that the
13066 subprogram contains an inner block with an exception handler.
13067 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
13068 Adjust call is for a newly-allocated object. In that case we must not
13069 assume that the finalization list chain pointers are correct (since they
13070 come from a bit-for-bit copy of the original object's pointers) so if
13071 the attach level would otherwise be zero (no change), we set it to 4
13072 instead to cause the pointers to be reset to null.
13074 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
13075 reset chain pointers to null.
13077 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13079 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
13080 string, and the context requires a loop for the assignment (e.g.
13081 because the left-hand side is packed), generate a unique name for the
13082 temporary that holds the string, to prevent spurious name clashes.
13084 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13085 Javier Miranda <miranda@adacore.com>
13086 Robert Dewar <dewar@adacore.com>
13087 Gary Dismukes <dismukes@adacore.com>
13089 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
13090 return unconstrained arrays.
13092 (Expand_Call): An indirect call through an access parameter of a
13093 protected operation is not a protected call.
13094 Add circuit to raise CE in Ada 2005 mode following call
13095 to Raise_Exception.
13096 (Register_DT_Entry): Do nothing if
13097 the run-time does not give support to abstract interfaces.
13098 (Freeze_Subprogram): In case of dispatching operations, do not generate
13099 code to register the operation in the dispatch table if the source
13100 is compiled with No_Dispatching_Calls.
13101 (Register_Predefined_DT_Entry): Generate code that calls the new
13102 run-time subprogram Set_Predefined_Prim_Op_Address instead of
13103 Set_Prim_Op_Address.
13105 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
13106 on array assignments if the right-hand side is a function call that has
13107 been inlined. Check is performed on the assignment in the block.
13108 (Process_Bounds): If bounds and range are overloaded, apply preference
13109 rule for root operations to disambiguate, and diagnose true ambiguity.
13110 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
13111 a tag-indeterminate right-hand side even when Expander_Active is True.
13112 Needed to ensure that dispatching calls to T'Input are allowed and
13113 get the tag of the target class-wide object.
13115 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
13116 an inherited primitive operation that already overrides several
13117 abstract interface primitives. For transitivity, the new entity must
13118 also override all the abstract interface primitives covered by the
13119 inherited overriden primitive.
13120 Emit warning if new entity differs from homograph in same scope only in
13121 that one has an access parameter and the other one has a parameter of
13122 a general access type with the same designated type, at the same
13123 position in the signature.
13124 (Make_Inequality_Operator): Use source locations of parameters and
13125 subtype marks from corresponding equality operator when creating the
13126 tree structure for the implicit declaration of "/=". This does not
13127 change anything in behaviour except that the decoration of the
13128 components of the subtree created for "/=" allows ASIS to get the
13129 string images of the corresponding identifiers.
13130 (Analyze_Return_Statement): Remove '!' in warning message.
13131 (Check_Statement_Sequence): Likewise.
13132 (Analyze_Subprogram_Body): For an access parameter whose designated type
13133 is an incomplete type imported through a limited_with clause, use the
13134 type of the corresponding formal in the body.
13135 (Check_Returns): Implicit return in No_Return procedure now raises
13136 Program_Error with a compile time warning, instead of beging illegal.
13137 (Has_Single_Return): Function returning unconstrained type cannot be
13138 inlined if expression in unique return statement is not an identifier.
13139 (Build_Body_To_Inline): It is possible to inline a function call that
13140 returns an unconstrained type if all return statements in the function
13141 return the same local variable. Subsidiary procedure Has_Single_Return
13142 verifies that the body conforms to this restriction.
13144 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
13145 same type, and one of them is of an anonymous access type, convert
13146 the other operand to it, so that this is a valid binary operation for
13148 (Resolve_Type_Conversion): Handle subtypes of protected types and
13149 task types when accessing to the corresponding record type.
13150 (Resolve_Allocator): Add '\' in 2-line warning message.
13151 Remove '!' in warning message.
13152 (Resolve_Call): Add '\' in 2-line warning message.
13153 (Valid_Conversion): Likewise.
13154 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
13155 resulting type may be an access type with an implicit dereference.
13156 Obtain the proper component from the designated type.
13157 (Make_Call_Into_Operator): Handle properly a call to predefined equality
13158 given by an expanded name with prefix Standard, when the operands are
13159 of an anonymous access type.
13160 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
13161 Explicit_Dereference and Resolve_Selected_Component, to verify that the
13162 prefix of the expression is not of an incomplete type. Allows full
13163 diagnoses of all semantic errors.
13164 (Resolve_Actuals): If the actual is an allocator whose directly
13165 designated type is a class-wide interface we build an anonymous
13166 access type to use it as the type of the allocator. Later, when
13167 the subprogram call is expanded, if the interface has a secondary
13168 dispatch table the expander will add a type conversion to force
13169 the displacement of the pointer.
13170 (Resolve_Call): If a function that returns an unconstrained type is
13171 marked Inlined_Always and inlined, the call will be inlined and does
13172 not require the creation of a transient scope.
13173 (Check_Direct_Boolean_Op): Removed
13174 (Resolve_Comparison_Op): Remove call to above
13175 (Resolve_Equality_Op): Remove call to above
13176 (Resolve_Logical_Op): Inline above, since this is only call.
13177 (Valid_Conversion): Handle properly conversions between arrays of
13178 convertible anonymous access types.
13181 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
13182 the literal in an unchecked conversion, because GCC 4.x needs a static
13183 value for a string bound.
13185 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13186 Hristian Kirtchev <kirtchev@adacore.com>
13188 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
13189 components of the corresponding record, take into account component
13190 definitions that are access definitions.
13191 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
13192 procedure is not considered a dispatching call and will be expanded
13195 2006-02-13 Javier Miranda <miranda@adacore.com>
13197 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
13198 controlling argument of the dispatching call is an abstract interface
13199 class-wide type then we use it directly.
13200 Check No_Dispatching_Calls restriction.
13201 (Default_Prim_Op_Position): Remove the code that looks for the last
13202 entity in the list of aliased subprograms. This code was wrong in
13204 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
13205 when the source is compiled with the No_Dispatching_Calls restriction.
13206 (Init_Predefined_Interface_Primitives): No need to inherit primitives
13207 if we are compiling with restriction No_Dispatching_Calls.
13208 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
13209 subprograms if we are compiling under No_Dispatching_Calls restriction.
13210 (Make_DT): Generate a dispatch table with a single dummy entry if
13211 we are compiling with the No_Dispatching_Calls restriction. In
13212 addition, in this case we don't generate code that calls to the
13213 following run-time subprograms: Set_Type_Kind, Inherit_DT.
13214 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
13215 of this subprogram if compiling with the No_Dispatching_Calls
13217 (Expand_Type_Conversion): Instead of using the actual parameter,
13218 the argument passed as parameter to the conversion function was
13219 erroneously referenced by the expander.
13220 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
13221 Set_Predefined_Primitive_Op_Address and Set_Signature.
13222 (Expand_Dispatching_Call): Generate call to
13223 Get_Predefined_Prim_Op_Address for predefined primitives.
13224 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
13225 predefined primitives.
13226 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
13227 primitives we reserve one dummy entry to ensure that the tag does not
13228 point to some memory that is associated with some other object. In
13229 addition, remove all the old code that generated the assignments
13230 associated with the signature of the dispatch table and replace them
13231 by a call to the new subprogram Set_Signature.
13232 (Set_All_DT_Position): Change the algorithm because now we have a
13233 separate dispatch table associated with predefined primitive operations.
13234 (Expand_Interface_Conversion): In case of non-static offset_to_top
13235 add explicit dereference to get access to the object after the call
13236 to displace the pointer to the object.
13237 (Expand_Interface_Thunk): Modify the generation of the actual used
13238 in the calls to the run-time function Offset_To_Top to fulfil its
13240 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
13242 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13244 * exp_dist.adb (Copy_Specification): For access parameters, copy
13245 Null_Exclusion flag, which will have been set for stream subprograms
13248 2006-02-13 Pascal Obry <obry@adacore.com>
13250 * expect.c (__gnat_expect_portable_execvp): New implementation. The
13251 previous implementation was using the C runtime spawnve routine but
13252 the corresponding wait was using directly the Win32 API. This was
13253 causing some times a lock when waiting for an event using
13254 WaitForSingleObject in __gnat_waitpid. This new implementation uses
13255 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
13256 API fixes this problem.
13258 2006-02-13 Robert Dewar <dewar@adacore.com>
13260 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
13263 2006-02-13 Thomas Quinot <quinot@adacore.com>
13265 * exp_pakd.ads: Fix typos in comments.
13267 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
13268 array reference that is an explicit dereference, mark the converted
13269 (packed) array reference as analyzed to prevent a forthcoming
13270 reanalysis from resetting its type to the original (non-packed) array
13273 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13274 Javier Miranda <miranda@adacore.com>
13275 Eric Botcazou <ebotcazou@adacore.com>
13277 * exp_util.ads, exp_util.adb (Find_Prim_Op,
13278 Is_Predefined_Primitive_Operation): When
13279 searching for the predefined equality operator, verify that operands
13280 have the same type.
13281 (Is_Predefined_Dispatching_Operation): Remove the code that looks
13282 for the last entity in the list of aliased subprograms. This code
13283 was wrong in case of renamings.
13284 (Set_Renamed_Subprogram): New procedure
13285 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
13286 Exp_Type constant computed when entering this subprogram.
13287 (Known_Null): New function
13288 (OK_To_Do_Constant_Replacement): New function
13289 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
13290 (Side_Effect_Free): An attribute reference 'Input is not free of
13291 side effect, unlike other attributes that are functions. (from code
13293 (Remove_Side_Effects): Expressions that involve packed arrays or records
13294 are copied at the point of reference, and therefore must be marked as
13295 renamings of objects.
13296 (Is_Predefined_Dispatching_Operation): Return false if the operation is
13297 not a dispatching operation.
13300 (Remove_Side_Effects): Lift enclosing type conversion nodes for
13301 elementary types in all cases.
13303 2006-02-13 Javier Miranda <miranda@adacore.com>
13305 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
13306 task types when accessing to the corresponding record type.
13307 Remove '!' in warning message.
13309 2006-02-13 Olivier Hainque <hainque@adacore.com>
13311 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
13312 to avoid useless and space inefficient overalignments on targets where
13313 Max_Alignment is larger than 16.
13315 2006-02-13 Pascal Obry <obry@adacore.com>
13317 * g-catiio.adb (Sec_Number): New type used to compute the number of
13318 seconds since 1-1-1970.
13319 (Image) [Natural]: The parameter was an Integer, as we can't deal with
13320 negative numbers (years, months...) it is better to have a Natural here.
13322 (Image) [Number]: Change parameter from Long_Integer to Number.
13323 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
13324 overflow for dates past year 2038.
13326 2006-02-13 Matthew Heaney <heaney@adacore.com>
13328 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
13331 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13333 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
13335 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
13336 finalization can occur normally.
13338 2006-02-13 Vincent Celier <celier@adacore.com>
13340 * gnatcmd.adb (Rules_Switches): New table
13341 (Add_To_Rules_Switches): New procedure
13342 (GNATCmd): For command CHECK, put all options following "-rules" in the
13343 Rules_Switches table. Append these -rules switches after the -cargs
13346 2006-02-13 Robert Dewar <dewar@adacore.com>
13348 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
13349 These two cases were generating incorrect output, and if this unit
13350 was built with checks on, generated a discriminant mismatch constraint
13353 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13354 Robert Dewar <dewar@adacore.com>
13356 * lib-xref.adb (Get_Type_Reference): For a private type whose full
13357 view is an array type, indicate the component type as well, for
13358 navigation purposes.
13359 (Generate_Reference): Don't consider array ref on LHS to be a case
13360 of violating pragma Unreferenced.
13361 Do not give Ada 2005 warning except on real reference.
13363 2006-02-13 Vincent Celier <celier@adacore.com>
13365 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
13366 main source, add switch -mdebug-main=_ada_ so that the executable can
13367 be debugged by the standard VMS debugger.
13368 (Gnatmake): Set No_Main_Subprogram to True when there is no main
13369 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
13370 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
13371 of the last source, as the binding and linking phases are never
13373 Set all executable obsolete when rebuilding a library.
13375 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
13378 2006-02-13 Javier Miranda <miranda@adacore.com>
13381 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
13382 code to improve the error message reported when the program has
13383 declarations of abstract interface types and it is not compiled with
13384 the -gnat05 switch.
13385 (P_Access_Definition): Reorganize the code to improve the error
13386 message reported when the new Ada 2005 syntax for anonymous
13387 access types is used and the program is not compiled with the
13390 2006-02-13 Robert Dewar <dewar@adacore.com>
13392 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
13393 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
13396 2006-02-13 Javier Miranda <miranda@adacore.com>
13398 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
13399 against source containing syntax errors.
13401 2006-02-13 Vincent Celier <celier@adacore.com>
13403 * prj.adb (Reset): Initialize the first element of table Namings with
13404 the standard naming data.
13406 2006-02-13 Vincent Celier <celier@adacore.com>
13408 * prj.ads (Error_Warning): New enumeration type
13410 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
13411 unknown, use the location of the project to report the error.
13412 (When_No_Sources): New global variable
13413 (Report_No_Ada_Sources): New procedure
13414 (Check): New parameter When_No_Sources. Set value of global variable
13416 (Find_Sources): Call Report_No_Ada_Sources when appropriate
13417 (Get_Sources_From_File): Ditto
13418 (Warn_If_Not_Sources): Better warning messages indicating the unit name
13421 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
13422 Call Prj.Proc.Process with parameter When_No_Sources.
13424 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
13425 Call Recursive_Check with parameter When_No_Sources.
13426 (Recursive_Check): New parameter When_No_Sources. Call itself and
13427 Prj.Nmsc.Check with parameter When_No_Sources.
13428 (Process): New parameter When_No_Sources. Call Check with parameter
13430 (Copy_Package_Declarations): New procedure to copy renamed parameters
13431 and setting the location of the declared attributes to the location
13432 of the renamed package.
13433 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
13436 2006-02-13 Vincent Celier <celier@adacore.com>
13438 * prj-makr.adb (Make): Preserve the comments from the original project
13440 When removing nodes (attributes Source_Dirs, Source_Files,
13441 Source_List_File and package Naming), save the comments and attach the
13442 saved comments to the newly created nodes.
13443 Do not add a with clause for the naming package if one already exists.
13445 2006-02-13 Javier Miranda <miranda@adacore.com>
13446 Gary Dismukes <dismukes@adacore.com>
13447 Robert Dewar <dewar@adacore.com>
13449 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
13451 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
13452 aliased entities to look for the overriden abstract interface
13454 (Is_Interface_Subprogram): Complete documentation.
13455 (Check_Dispatching_Operation): Do not generate code to register the
13456 operation in the dispatch table if the source is compiled with
13457 restriction No_Dispatching_Calls.
13458 (Override_Dispatching_Operation): Check for illegal attempt to override
13459 No_Return procedure with procedure that is not No_Return
13460 (Check_Dispatching_Call): Suppress the check for an abstract operation
13461 when the original node of an actual is a tag-indeterminate attribute
13462 call, since the attribute, which must be 'Input, can never be abstract.
13463 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
13464 call to the Input attribute (even when rewritten).
13465 (Propagate_Tag): Augment comment to indicate the possibility of a call
13466 to an Input attribute.
13468 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
13469 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
13471 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
13472 No_Wide_Characters is no longer partition-wide
13473 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
13476 2006-02-13 Douglas Rupp <rupp@adacore.com>
13478 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
13480 2006-02-13 Javier Miranda <miranda@adacore.com>
13482 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
13483 handles default-initialized components to keep separate the management
13484 of this feature but also avoid the unrequired resolution and
13485 expansion of components that do not have partially initialized
13487 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
13488 (Check_Bounds): Likewise.
13489 (Check_Length): Likewise.
13491 2006-02-13 Javier Miranda <miranda@adacore.com>
13492 Ed Schonberg <schonberg@adacore.com>
13494 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
13495 abstract interface type call analyze_and_resolve to expand the type
13496 conversion into the corresponding displacement of the
13497 reference to the base of the object.
13498 (Eval_Attribute, case Width): For systems where IEEE extended precision
13499 is supported, the maximum exponent occupies 4 decimal digits.
13500 (Accessibility_Message): Add '\' in 2-line warning message.
13501 (Resolve_Attribute): Likewise.
13502 (case Attribute_Access): Significantly revise checks
13503 for illegal access-to-subprogram Access attributes to properly enforce
13504 the rules of 3.10.2(32/2).
13505 Diagnose use of current instance with an illegal attribute.
13507 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
13509 (Enclosing_Generic_Unit): New function to return a node's innermost
13510 enclosing generic declaration node.
13511 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
13512 (Type_Access_Level): The accessibility level of anonymous acccess types
13513 associated with discriminants is that of the current instance of the
13514 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
13515 (Compile_Time_Constraint_Error): Handle case of conditional expression.
13516 (Kill_Current_Values_For_Entity): New function
13517 (Enter_Name): Change formal type to Entity_Id
13519 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
13520 Ed Schonberg <schonberg@adacore.com>
13521 Gary Dismukes <dismukes@adacore.com>
13523 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
13524 Analyze_Compilation_Unit.
13525 Detect and warn on redundant with clauses detected in a package spec
13526 and/or body when -gnatwr is used.
13527 (Analyze_Context): Analyze config pragmas before other items
13528 (Install_Context_Items): Don't analyze config pragmas here
13529 (Install_Limited_Withed_Unit): Set limited entity of package in
13530 with_clause so that cross-reference information or warning messages on
13531 unused packages can be properly generated
13532 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
13533 has Error_Posted set. Prevent infinite loops in illegal programs.
13534 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
13535 to the point of the error test requiring the current unit to be private.
13536 This ensures that private with clauses are not exempted from the basic
13537 checking for being a descendant of the same library unit parent as a
13538 withed private descendant unit.
13539 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
13540 handle private with clauses properly, as well as to account for cases
13541 where the withed unit is a public descendant of a private ancestor
13542 (in which case the current unit must be a descendant of the private
13543 ancestor's parent). The spec comments were updated accordingly. Also,
13544 the old error message in this subprogram was replaced with error
13545 messages that mirror the errors tested and reported by
13546 Check_Private_Child_Unit.
13547 Parameter and variable names improved for readability.
13548 (Install_Limited_Context_Clauses): Remove test for a withed unit being
13549 private as the precondition for calling
13550 Check_Private_Limited_Withed_Unit since that subprogram has been
13551 revised to test public units as well as private units.
13553 2006-02-13 Thomas Quinot <quinot@adacore.com>
13554 Robert Dewar <dewar@adacore.com>
13555 Ed Schonberg <schonberg@adacore.com>
13556 Javier Miranda <miranda@adacore.com>
13558 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
13559 that Scope_Stack.First = 1.
13560 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13561 were not always properly handled previously.
13562 (Formal_Entity): Complete rewrite, to handle properly some complex case
13563 with multiple levels of parametrization by formal packages.
13564 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
13565 to the corresponding derived type declaration for proper semantics.
13567 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
13568 (Check_Component): Enforce restriction on components of
13569 unchecked_unions: a component in a variant cannot contain tasks or
13571 (Unchecked_Union): Allow nested variants and multiple discriminants, to
13573 Add pragma Ada_2005 (synonym for Ada_05)
13574 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13575 were not always properly handled previously.
13576 Document that pragma Propagate_Exceptions has no effect
13577 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
13578 (Set_Convention_From_Pragma): Check that if a convention is
13579 specified for a dispatching operation, then it must be
13580 consistent with the existing convention for the operation.
13581 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
13582 longer required to specify an vtable-ptr component in the record. For
13583 compatibility reasons we leave the support for the previous definition.
13584 (Analyze_Pragma, case No_Return): Allow multiple arguments
13586 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
13587 non-overrideen inherited operation with a controlling result as
13588 illegal only its implicit declaration comes from the derived type
13589 declaration of its result's type.
13590 (Check_Possible_Deferred_Completion): Relocate the object definition
13591 node of the subtype indication of a deferred constant completion rather
13592 than directly analyzing it. The analysis of the generated subtype will
13593 correctly decorate the GNAT tree.
13594 (Record_Type_Declaration): Check whether this is a declaration for a
13595 limited derived record before analyzing components.
13596 (Analyze_Component_Declaration): Diagnose record types not explicitly
13597 declared limited when a component has a limited type.
13598 (Build_Derived_Record_Type): Code reorganization to check if some of
13599 the inherited subprograms of a tagged type cover interface primitives.
13600 This check was missing in case of a full-type associated with a private
13602 (Constant_Redeclaration): Check that the subtypes of the partial and the
13603 full view of a constrained deferred constant statically match.
13604 (Mentions_T): A reference to the current type in an anonymous access
13605 component declaration must be an entity name.
13606 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
13607 class_wide type to refer to full type, not to the incomplete one.
13608 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
13609 available. Required to give support to the certified run-time.
13610 (Analyze_Component_Declaration): In case of anonymous access components
13611 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
13612 (Process_Discriminants): For an access discriminant, use the
13613 discriminant specification as the associated_node_for_itype, to
13614 simplify accessibility checks.
13616 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13617 Javier Miranda <miranda@adacore.com>
13619 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
13620 abstract interpretations on an operator, remove interpretations that
13621 yield Address or a type derived from it, if one of the operands is an
13623 (Try_Object_Operation.Try_Primitive_Operation,
13624 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
13625 location when creating the new reference to a primitive or class-wide
13626 operation as a part of rewriting a subprogram call.
13627 (Try_Primitive_Operations): If context requires a function, collect all
13628 interpretations after the first match, because there may be primitive
13629 operations of the same type with the same profile and different return
13630 types. From code reading.
13631 (Try_Primitive_Operation): Use the node kind to choose the proper
13632 operation when a function and a procedure have the same parameter
13634 (Complete_Object_Operation): If formal is an access parameter and prefix
13635 is an object, rewrite as an Access reference, to match signature of
13636 primitive operation.
13637 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
13638 by an expanded name with prefix Standard, when the operands are of an
13639 anonymous access type.
13640 (Remove_Abstract_Operations): If the operation is abstract because it is
13641 inherited by a user-defined type derived from Address, remove it as
13642 well from the set of candidate interpretations of an overloaded node.
13643 (Analyze_Membership_Op): Membership test not applicable to cpp-class
13646 2006-02-13 Bob Duff <duff@adacore.com>
13648 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
13649 redundant use clauses.
13650 In particular, if the scope of two use clauses overlaps, but one is not
13651 entirely included in the other, we should not warn. This can happen
13652 with nested packages.
13653 (Analyze_Subprogram_Renaming): Protect the compiler against previously
13654 reported errors. The bug was reported when the compiler was built
13655 with assertions enabled.
13656 (Find_Type): If the node is a 'Class reference and the prefix is a
13657 synchronized type without a corresponding record, return the type
13660 2006-02-13 Javier Miranda <miranda@adacore.com>
13662 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
13663 if this is the full-declaration associated with a private declaration
13664 that implement interfaces, then the private type declaration must be
13666 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
13667 as aliased. The use of the 'access attribute is not available for such
13668 object (for this purpose the object should be explicitly marked as
13669 aliased, but being an anonymous type this is not possible).
13671 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13672 Robert Dewar <dewar@adacore.com>
13674 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
13675 compilation unit is an elaboration scope.
13676 (Add_Task_Proc): Add '\' in 2-line warning message.
13677 (Activate_All_Desirable): Deal with case of unit with'ed by parent
13679 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13680 Javier Miranda <miranda@adacore.com>
13682 * sem_type.adb (Write_Overloads): Improve display of candidate
13684 (Add_One_Interp): Do not add to the list of interpretations aliased
13685 entities corresponding with an abstract interface type that is an
13686 immediate ancestor of a tagged type; otherwise we have a dummy
13687 conflict between this entity and the aliased entity.
13688 (Disambiguate): The predefined equality on universal_access is not
13689 usable if there is a user-defined equality with the proper signature,
13690 declared in the same declarative part as the designated type.
13691 (Find_Unique_Type): The universal_access equality operator defined under
13692 AI-230 does not cover pool specific access types.
13693 (Covers): If one of the types is a generic actual subtype, check whether
13694 it matches the partial view of the other type.
13696 2006-02-13 Thomas Quinot <quinot@adacore.com>
13698 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
13699 line. This is necessary to allow In_Extended_Main_Unit to provide
13700 correct results for itypes while writing out expanded source.
13701 (Close_File): No need to update the source_index_table here since it's
13702 now done for each line.
13704 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13705 Robert Dewar <dewar@adacore.com>
13707 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
13708 preserve the source unit where the itype is declared, and prevent a
13710 (Note_Implicit_Run_Time_Call): New procedure
13711 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
13714 * sprint.ads: Document use of $ for implicit run time routine call
13716 2006-02-13 Quentin Ochem <ochem@adacore.com>
13718 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
13721 2006-02-13 Bob Duff <duff@adacore.com>
13723 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
13724 Scan_Unsigned, so we do not scan leading blanks and sign twice.
13725 Integer'Value("- 5") and Integer'Value("-+5") now correctly
13726 raise Constraint_Error.
13728 * s-vallli.adb (Scan_Long_Long_Integer): Call
13729 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
13730 do not scan leading blanks and sign twice.
13731 Integer'Value("- 5") and Integer'Value("-+5") now correctly
13732 raise Constraint_Error.
13734 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
13735 Scan_Long_Long_Unsigned): Split out most of the processing from
13736 Scan_Long_Long_Unsigned out into
13737 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
13738 This prevents scanning leading blanks and sign twice.
13739 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
13742 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
13743 out most of the processing from Scan_Unsigned out into
13744 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
13745 This prevents scanning leading blanks and sign twice.
13747 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
13748 use with Modular'Value attribute.
13749 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
13752 2006-02-13 Robert Dewar <dewar@adacore.com>
13754 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
13756 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
13758 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
13759 (PPC VxWorks): Likewise.
13760 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
13761 (forced_callee): Make non-inlinable and non-pure.
13762 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
13764 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13765 Ben Brosgol <brosgol@adacore.com>
13766 Robert Dewar <dewar@adacore.com>
13768 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
13770 Document that gnatbind -M option is for cross environments only.
13771 Added description of using gnatmem to trace gnat rtl allocs and deallocs
13772 Add note on use of $ to label implicit run time calls
13773 Add documentation for -gnatyI (check mode IN)
13774 Updated chapter on compatibility with HP Ada
13775 VMS-oriented edits.
13776 Ran spell and corrected errors
13777 Add documentation for gnatbind -d and rework documentation of -D
13779 Add subprogram/data elimination section.
13780 Minor editing of annex A.
13781 Add section for gnatcheck.
13782 Add documentation for restriction No_Dispatching_Calls
13783 Add documentation for pragma Ada_2005
13784 Remove mention of obsolete pragma Propagate_Exceptions
13785 Document that pragma Unreferenced can appear after DO in ACCEPT
13786 Clarify Pure_Function for library level units
13787 Mention Max/Min in connection with No_Implicit_Conditionals
13788 No_Wide_Characters restriction is no longer partition-wide
13789 Add a nice example for Universal_Literal_String attribute
13790 Document that pragma No_Return can take multiple arguments
13792 * ug_words: Added entry for gnatcheck
13794 * g-ctrl_c.ads (Install_Handler): Enhance comments
13796 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
13798 * g-trasym.ads: Add documentation on how to do off line symbolic
13799 traceback computation.
13801 * s-fatgen.adb: Add comments for Unaligned_Valid
13803 * stand.ads: Fix typo in comment
13805 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13807 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
13809 2006-02-06 Roger Sayle <roger@eyesopen.com>
13811 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
13813 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13816 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
13817 implementation that calls __main.
13819 2006-01-25 Peter O'Gorman <peter@pogma.com>
13822 * Makefile.in (GCC_LINK): Remove quotes.
13823 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
13826 (powerpc-darwin): Pass -shared-libgcc when building shared library.
13828 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13831 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
13833 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13835 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
13837 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13839 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
13842 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13844 * Make-lang.in: Update dependencies
13846 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13848 * Make-lang.in: Add rule for ada/exp_sel.o
13850 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13852 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
13854 2005-12-09 Arnaud Charlet <charlet@adacore.com>
13856 * gnatvsn.ads (Library_Version): Bump to version 4.2
13857 (ASIS_Version_Number): Bumped.
13859 2005-12-09 Doug Rupp <rupp@adacore.com>
13861 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
13862 Ada bind file prefix on VMS from b$ to b__.
13863 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
13866 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
13867 Targparm.OpenVMS_On_Target.
13868 (Object_Suffix): Initialize with target object suffix.
13869 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
13871 * butil.adb: Change some Hostparm.OpenVMS checks to
13872 Targparm.OpenVMS_On_Target.
13874 * clean.adb: Change some Hostparm.OpenVMS checks to
13875 Targparm.OpenVMS_On_Target.
13876 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
13877 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
13878 Ada bind file prefix on VMS from b$ to b__.
13880 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
13881 --GCC so that Get_Target_Parameters can find system.ads.
13882 (Gnatlink): Call Get_Target_Parameters in mainline.
13883 Initialize standard packages for Targparm.
13884 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
13885 (Process_Args): Also Check for object files with target object
13887 (Make_Binder_File_Names): Create with target object extension.
13888 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
13891 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
13892 Targparm.OpenVMS_On_Target.
13893 ({declaration},Build_Library,Check_Library): Change Ada bind file
13894 prefix on VMS from b$ to b__.
13896 * osint-b.adb: Change some Hostparm.OpenVMS checks to
13897 Targparm.OpenVMS_On_Target.
13898 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
13901 * targext.c: New file.
13903 * Makefile.in: add support for vxworks653 builds
13904 (../../vxaddr2line): gnatlink with targext.o.
13905 (TOOLS_LIBS): Move targext.o to precede libgnat.
13906 (init.o, initialize.o): Minor clean up in dependencies.
13907 (GNATLINK_OBJS): Add targparm.o, snames.o
13908 Add rules fo building targext.o and linking it explicitly with all
13910 Also add targext.o to gnatlib.
13912 * Make-lang.in: Add rules for building targext.o and linking it in
13913 with gnat1 and gnatbind.
13914 Add entry for exp_sel.o.
13916 * osint.adb Change some Hostparm.OpenVMS checks to
13917 Targparm.OpenVMS_On_Target.
13918 (Object_File_Name): Use target object suffix.
13920 * osint.ads (Object_Suffix): Remove, no longer used.
13921 (Target_Object_Suffix): Initialize with target object suffix.
13923 * rident.ads: Add special exception to license.
13925 * targparm.adb (Get_Target_Parameters): Set the value of
13926 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
13928 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
13930 * targparm.ads: Add special exception to license.
13932 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
13934 (Copy_File): Make sure from file is closed if error on to file
13935 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
13937 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
13938 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
13940 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
13941 target object suffix.
13943 2005-12-09 Jose Ruiz <ruiz@adacore.com>
13944 Quentin Ochem <ochem@adacore.com>
13945 Florian Villoing <villoing@adacore.com>
13947 * a-taster.ads, a-taster.adb: New files.
13949 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
13950 link to the version that does nothing. This way the task termination
13951 routine is not executed twice for the environment task when finishing
13952 because of an unhandled exception.
13954 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
13955 handler because of an unhandled exception.
13957 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
13958 System.Tasking.Utilities instead of that in System.Tasking.Stages.
13960 * s-finimp.adb (initialization code): Modify the soft link for the
13961 finalization of the global list instead of Adafinal.
13963 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
13964 non-tasking version of the soft link for task termination. We do
13965 nothing since if we are using the non-tasking version it
13966 means that the task termination functionality is not used.
13967 (Null_Finalize_Global_List): Add this null version for the procedure
13968 in charge of finalizing the global list for controlled objects.
13969 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
13970 instead for handling run-time termination in a more flexible way.
13971 (Adafinal_NT): This new procedure will take care of finalizing the
13972 global list for controlled objects if needed, but no tasking
13975 * s-tarest.adb (Task_Lock): Do not try to lock again the
13976 Global_Task_Lock if we already own it. Otherwise, we get blocked in
13977 some run-time operations.
13978 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
13979 until all nested locks have been released.
13980 (Task_Wrapper): Call the fall-back task termination handler. It
13981 applies to all tasks but the environment task.
13982 (Finalize_Global_Tasks): Add the call for the task termination
13983 procedure for the environment task.
13984 (Task_Wrapper): suppress warnings around declaration of
13985 Secondary_Stack_Address.
13987 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
13988 moved to the Common_ATCB record.
13989 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
13990 Common_ATCB record.
13991 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
13992 Common_ATCB record.
13994 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
13995 Fall_Back_Handler, and Specific_Handler.
13997 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
13998 defined in Ada.Task_Termination, to avoid circular dependencies.
13999 (Termination_Handler): Redefine this type here, alredy defined in
14000 Ada.Task_Termination, for avoiding circular dependencies.
14001 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
14002 for storing task termination handlers. In addition,
14003 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
14004 Common_ATCB because it is used by both the regular and the restricted
14006 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
14007 Common_ATCB because it is used by both the regular and the restricted
14009 (Common_ATCB): Added a dynamic task analyzer field.
14011 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
14012 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
14013 (Task_Wrapper): Call the task termination handler. It applies to all
14014 tasks but the environment task.
14015 (Finalize_Global_Tasks): Call the task termination procedure for the
14016 environment task. The call to Finalize_Global_List is now performed
14017 using the soft links mechanism.
14018 (Task_Wrapper): added dynamic stack analysis.
14020 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
14021 potentially blocking operations has been moved from
14022 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
14023 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
14024 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
14025 this run-time check.
14027 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
14028 of task termination procedure.
14029 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
14030 link for the task termination procedure.
14032 * bindusg.adb: (Bindusg): Added documentation for -u option.
14034 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
14035 (Get_Main_C): Add handling of dynamic stack analysis.
14036 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
14038 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
14039 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
14040 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
14042 * opt.ads: Added flags used by dynamic stack measurement.
14043 (Max_Line_Length): Remove (not used anymore)
14045 * s-io.ads, s-io.adb (Standard_Error): new subprogram
14046 (Standart_Output): new subprogram
14047 (Set_Output): new subprogram
14048 (Put): now uses the value of Current_Out to know if the output has to be
14049 send to stderr or stdout.
14051 * s-stausa.ads: Complete implementation.
14053 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
14055 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
14056 list of Ada 05 files.
14057 (GNAT Library Units): Add AltiVec files.
14059 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
14060 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
14061 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
14063 2005-12-09 Nicolas Setton <setton@adacore.com>
14065 * adaint.c (__gnat_locate_regular_file): Return immediately if
14066 file_name is empty.
14068 2005-12-09 Javier Miranda <miranda@adacore.com>
14069 Hristian Kirtchev <kirtchev@adacore.com>
14071 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
14072 to the specification because the frontend generates code that uses this
14074 (Set_Interface_Table): Add missing assertion.
14075 Update documentation describing the run-time structure.
14076 (Displace): New subprogram that displaces the pointer to the object
14077 to reference one of its secondary dispatch tables.
14078 (IW_Membership): Modified to use the new table of interfaces.
14079 (Inherit_TSD): Modified to use the new table of interfaces.
14080 (Register_Interface_Tag): Use the additional formal to fill the
14081 contents of the new table of interfaces.
14082 (Set_Interface_Table): New subprogram that stores in the TSD the
14083 pointer to the table of interfaces.
14084 (Set_Offset_To_Top): Use the additional formal to save copy of
14085 the offset value in the table of interfaces.
14086 Update structure of GNAT Primary and Secondary dispatch table diagram.
14087 Add comment section on GNAT dispatch table prologue.
14088 (Offset_To_Signature): Update the constant value of the Signature field.
14089 (Dispatch_Table): Update comment on hidden fields in the prologue.
14090 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
14091 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
14092 the type of formal parameter T to Tag, introduce additional assertions.
14093 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
14095 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
14097 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
14098 in all the calls to Expand_Interface_Thunk. Instead of referencing the
14099 record component containing the tag of the secondary dispatch table we
14100 have to use the Offset_To_Top run-time function to get this information;
14101 otherwise if the pointer to the base of the object has been displace
14102 we get a wrong value if we use the 'position attribute.
14104 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
14105 all the calls to Expand_Interface_Thunk.
14106 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
14107 interfaces; hence the call to Set_Interface_Table was clearly wrong.
14108 (Collect_All_Interfaces): Modify the internal subprogram Collect to
14109 ensure that the interfaces implemented by the ancestors are placed
14110 at the header of the generated list.
14111 (Expand_Interface_Conversion): Handle the case in which the displacement
14112 associated with the interface conversion is not statically known. In
14113 this case we generate a call to the new run-time subprogram Displace.
14114 (Make_DT): Generate and fill the new table of interfaces.
14115 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
14116 Get_Tagged_Kind and Set_Tagged_Kind.
14117 (Tagged_Kind): New function that determines the tagged kind of a type
14118 with respect to limitedness and concurrency and returns a reference to
14120 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
14121 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
14122 primary dispatch table for a type.
14123 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
14124 secondary dispatch table respectively of a tagged type.
14126 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
14127 (Expand_Interface_Conversion): New subprogram to indicate if the
14128 displacement of the type conversion is statically known.
14129 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
14131 * rtsfind.ads (RE_Offset_To_Top): New entity
14132 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
14133 accessible to users.
14134 (Re_Displace): New entity
14135 (RE_Interface_Data): New entity
14136 (RE_Set_Interface_Data): New_Entity
14137 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
14138 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
14139 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
14140 RE_TK_Tagged, RE_TK_Task.
14142 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
14143 Init_Secondary_Tags_Internal to allow its use with interface types and
14144 also to generate the code for the new additional actual required
14145 by Set_Offset_To_Top.
14146 (Build_Init_Statements): In case of components associated with abstract
14147 interface types there is no need to generate a call to its IP.
14148 (Freeze_Record_Type): Generate Select Specific Data tables only for
14150 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
14151 the bodies and specifications of the predefined primitive operations
14152 dealing with dispatching selects and abort, 'Callable, 'Terminated only
14153 for concurrent types.
14155 * exp_sel.ads, exp_sel.adb: New files.
14157 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
14158 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
14159 properly protected objects and attach handler in the case of the
14160 restricted profile.
14161 Move embeded package Select_Expansion_Utilities into a separate external
14163 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
14164 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
14165 (Build_K, Build_S_Assignment): New subprograms, part of the select
14166 expansion utilities.
14167 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
14168 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
14169 where the trigger is a dispatching procedure of a limited tagged type.
14171 2005-12-09 Olivier Hainque <hainque@adacore.com>
14173 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
14174 pointer initialization values. Make a SAVE_EXPR instead. Add comments
14175 about the use and expansion of SAVE_EXPRs in the various possible
14176 renaming handling cases.
14177 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
14178 abusing DECL_FCONTEXT.
14180 2005-12-09 Matthew Heaney <heaney@adacore.com>
14182 * a-convec.adb (Merge): Added assertions to check whether vector params
14185 * a-coinve.adb (Merge): Added assertions to check whether vector params
14188 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
14190 (Cursor'Read): raises PE
14192 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
14193 to its default value.
14195 * a-cihama.adb: Manually check whether cursor's key and elem are
14198 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
14199 (Merge): Assert that target and source lists are in order
14200 (Swap): Declare non-const temporaries, to pass to Splice
14202 * a-cdlili.ads: (Splice): Changed param name and param mode
14204 * a-cdlili.adb: (Splice): Changed param name and param mode
14205 (Merge): Assert that target and source lists are in order
14206 (Swap): Declare non-const temporaries, to pass to Splice
14208 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
14209 (Write): declare Stream param as not null
14211 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
14212 an exception message.
14214 2005-12-09 Thomas Quinot <quinot@adacore.com>
14215 Robert Dewar <dewar@adacore.com>
14217 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
14218 which is the absolute maximum length we can support.
14220 * frontend.adb: For the processing of configuration pragma files,
14221 remove references to Opt.Max_Line_Length, which is not checked anymore.
14223 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
14226 * scn.adb, scng.adb:
14227 Always check line length against the absolute supported maximum,
14228 Hostparm.Max_Line_Length.
14230 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
14231 value for the maximum line length is Max_Line_Length (not
14232 Column_Number'Last).
14233 Minor error msg update
14234 (Set_Style_Check_Options): New interface returning error msg
14235 Minor code reorganization (processing for 'M' was out of alpha order)
14237 * switch-c.adb: New interface for Set_Style_Check_Options
14239 * stylesw.ads (Set_Style_Check_Options): New interface returning error
14242 2005-12-09 Javier Miranda <miranda@adacore.com>
14244 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
14245 with IP subprogram were only supported if there were limited types.
14247 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
14248 records with IP subprogram were only supported if there were limited
14251 2005-12-09 Olivier Hainque <hainque@adacore.com>
14252 Eric Botcazou <ebotcazou@adacore.com>
14254 * trans.c (tree_transform, emit_check): Adjust calls to
14255 build_call_raise, passing the now expected GNAT_NODE argument.
14257 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
14258 source line information than what the current global locus indicates
14261 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
14262 field has overflowed.
14263 (build_call_raise): Add a GNAT_NODE argument to convey better source
14264 line information than what the current global locus indicates when
14266 (build_component_ref): Adjust call to build_call_raise.
14268 2005-12-09 Pascal Obry <obry@adacore.com>
14270 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
14271 the iterator is quitting iteration on parent directory.
14273 2005-12-09 Javier Miranda <miranda@adacore.com>
14275 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
14276 and the assignment to a class-wide object, before the assignment we
14277 generate a run-time check to ensure that the tag of the Target is
14278 covered by the tag of the source.
14280 2005-12-09 Robert Dewar <dewar@adacore.com>
14282 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
14283 parameter in call to Image_Wide_Character.
14285 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
14286 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
14287 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
14288 annoying FFFE/FFFF inconsistency.
14290 2005-12-09 Robert Dewar <dewar@adacore.com>
14291 Javier Miranda <miranda@adacore.com>
14292 Ed Schonberg <schonberg@adacore.com>
14294 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
14295 of type conversion.
14296 (Find_Interface): New subprogram that given a tagged type and one of its
14297 component associated with the secondary table of an abstract interface
14298 type, return the entity associated with such abstract interface type.
14299 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
14300 base type to create anonymous subtype, because entity may be a locally
14301 declared subtype or generic actual.
14302 (Find_Interface): New subprogram that given a tagged type and one of its
14303 component associated with the secondary table of an abstract interface
14304 type, return the entity associated with such abstract interface type.
14306 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
14307 conversion cannot be handled at compile time. In this case we pass this
14308 information to the expander to generate the appropriate code.
14310 2005-12-09 Robert Dewar <dewar@adacore.com>
14311 Ed Schonberg <schonberg@adacore.com>
14312 Gary Dismukes <dismukes@adacore.com>
14313 Javier Miranda <miranda@adacore.com>
14314 Hristian Kirtchev <kirtchev@adacore.com>
14316 * einfo.adb (Itype_Printed): New flag
14317 (Is_Limited_Type): Derived types do not inherit limitedness from
14318 interface progenitors.
14319 (Is_Return_By_Reference_Type): Predicate does not apply to limited
14322 * einfo.ads (Itype_Printed): New flag
14323 Move Is_Wrapper_Package to proper section
14324 Add missing Inline for Is_Volatile
14326 * output.ads, output.adb (Write_Erase_Char): New procedure
14327 (Save/Restore_Output_Buffer): New procedures
14328 (Save/Restore_Output_Buffer): New procedures
14330 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
14331 Add missing support for anonymous access type
14332 (Write_Id): Insert calls to Write_Itype
14333 (Write_Itype): New procedure to output itypes
14335 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
14336 use of "limited" in declaration.
14338 * sinfo.ads, sinfo.adb:
14339 Formal derived types can carry an explicit "limited" indication.
14341 * sem_ch3.adb: Add with and use of Targparm.
14342 (Create_Component): If Frontend_Layout_On_Target is True and the
14343 copied component does not have a known static Esize, then reset
14344 the size and positional fields of the new component.
14345 (Analyze_Component_Declaration): A limited component is
14346 legal within a protected type that implements an interface.
14347 (Collect_Interfaces): Do not add to the list the interfaces that
14348 are implemented by the ancestors.
14349 (Derived_Type_Declaration): If the parent of the full-view is an
14350 interface perform a transformation of the tree to ensure that it has
14351 the same parent than the partial-view. This simplifies the job of the
14352 expander in order to generate the correct object layout, and it is
14353 needed because the list of interfaces of the full-view can be given in
14355 (Process_Full_View): The parent of the full-view does not need to be
14356 a descendant of the parent of the partial view if both parents are
14358 (Analyze_Private_Extension_Declaration): If declaration has an explicit
14359 "limited" the parent must be a limited type.
14360 (Build_Derived_Record_Type): A derived type that is explicitly limited
14361 must have limited ancestor and progenitors.
14362 (Build_Derived_Type): Ditto.
14363 (Process_Full_View): Verify that explicit uses of "limited" in partial
14364 and full declarations are consistent.
14365 (Find_Ancestor_Interface): Remove function.
14366 (Collect_Implemented_Interfaces): New procedure used to gather all
14367 implemented interfaces by a type.
14368 (Contain_Interface): New function used to check whether an interface is
14370 (Find_Hidden_Interface): New function used to determine whether two
14371 lists of interfaces constitute a set equality. If not, the first
14372 differing interface is returned.
14373 (Process_Full_View): Improve the check for the "no hidden interface"
14374 rule as defined by AI-396.
14376 2005-12-09 Robert Dewar <dewar@adacore.com>
14378 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
14379 types, not on record subtypes.
14380 (Freeze_Entity): Code cleanup. Add barrier to the loop
14381 that generates the references for primitive operations. This allows to
14382 remove an unnecessary exception handler.
14383 Code reformatting and comment clean ups.
14385 2005-12-09 Vincent Celier <celier@adacore.com>
14387 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
14388 If GNAT CHECK is called with a project file, but with no
14389 source on the command line, call gnatcheck with all the compilable
14390 sources of the project.
14391 Take into account the new command Check, for gnatcheck. Treat as for
14392 other ASIS tools: take into account project, specific package Check and
14394 For ASIS tools, add the switches in package Compiler for
14395 the invocation of the compiler.
14397 * prj-attr.adb: Add package Check and its attributes
14399 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
14401 * vms_conv.adb (Initialize): Change Params of command Check to
14403 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
14404 Add data for new command Check
14406 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
14408 Add qualifiers for Check command options
14409 (Command_Type): New command Check
14411 2005-12-09 Thomas Quinot <quinot@adacore.com>
14413 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
14414 command line switch overruns the output buffer.
14416 2005-12-09 Robert Dewar <dewar@adacore.com>
14418 * sem_prag.adb: Processing for new pragma Complete_Representation
14419 (Analyze_Pragma, case Debug): Implement two argument form.
14421 * par-prag.adb: Entry for new pragma Complete_Representation
14422 (Prag, case Debug): Recognize two argument form of pragma Debug
14423 New interface for Set_Style_Check_Options.
14425 * sem_ch13.adb: Implement new pragma Complete_Representation.
14427 * snames.adb, snames.ads, snames.h: Entry for new pragma
14428 Complete_Representation.
14430 2005-12-09 Gary Dismukes <dismukes@adacore.com>
14432 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
14433 available user-specified stream attributes on limited parameters to
14434 also test the type directly rather than only its underlying type (for
14435 Ada 95) and, in the case of Ada 2005, to check that the user-specified
14436 attributes are visible at the point of the subprogram declaration.
14437 For Ada 2005, the error message is modified to indicate that the
14438 type's stream attributes must be visible (again, only for -gnat05).
14440 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14442 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
14443 anonymous access types.
14445 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
14446 matching of anonymous access types and anonymous access to subprogram
14447 types. 'R'M 4.9.1 (2/2).
14449 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14451 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
14452 rule prematurely when operands are universal, remaining ambiguities
14453 will be removed during resolution.
14456 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
14457 that are Ada 2005 functions.
14458 (Has_Abstract_Interpretation): Subsidiary to
14459 Remove_Conversions, to remove ambiguities caused by abstract operations
14460 on numeric types when operands are universal.
14462 2005-12-09 Robert Dewar <dewar@adacore.com>
14464 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
14465 for case where spec is categorized.
14467 2005-12-09 Javier Miranda <miranda@adacore.com>
14469 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
14470 types use the corresponding record type. This was not needed before
14471 the implementation of Ada 2005 synchronized types because
14472 concurrent types were never tagged types in Ada 95.
14474 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14476 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
14477 first subtype of the type of the expression to verify that it is a
14480 2005-12-09 Robert Dewar <dewar@adacore.com>
14482 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
14485 2005-12-09 Quentin Ochem <ochem@adacore.com>
14486 Robert Dewar <dewar@adacore.com>
14487 Ed Falis <falis@adacore.com>
14488 Florian Villoing <villoing@adacore.com>
14489 Thomas Quinot <quinot@adacore.com>
14490 Arnaud Charlet <charlet@adacore.com>
14492 * gnat_ugn.texi: Created section "Stack Related Tools"
14493 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
14494 "Stack Related Tools"
14495 Added subsection "Static Stack Usage Analysis"
14496 Added subsection "Dynamic Stack Usage Analysis"
14497 Include documentation of itypes in sprint listing (-gnatG)
14498 Documented gnatbind -D switch (default sec stack size for fixed sec
14500 Added Interrupt_State and Persistent_BSS to list of configuration
14502 Add missing doc for maximum value of nnn in -gnatyMnnn
14504 * gnat_rm.texi: Document the AltiVec binding.
14505 Add documentation for pragma Complete_Representation
14506 Shortened an overly long line (> 79 chars)
14507 Clarify documentation of unchecked conversion in implementation
14509 Document two argument form of pragma Debug
14511 * types.ads (Column_Number): Update documentation.
14513 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
14514 library level Finalize_Storage_Only objects (these are not attached to
14515 any finalization list).
14517 * system-mingw.ads: (Underlying_Priorities): Update comment.
14519 2005-12-09 Robert Dewar <dewar@adacore.com>
14521 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
14522 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
14523 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
14524 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
14525 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
14526 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
14527 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
14528 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
14531 2005-12-09 Robert Dewar <dewar@adacore.com>
14533 * s-vaflop-vms-alpha.adb: (Ne_F): New function
14534 (Ne_G): New function
14536 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
14537 for tag assignment.
14538 (Rewrite_Comparison): Handle case where operation is not a comparison
14539 and ignore, and also handle type conversion case.
14541 2005-12-09 Thomas Quinot <quinot@adacore.com>
14543 * exp_aggr.ads: Fix typo in comment.
14544 ???-mark Convert_Aggr_In_Assignment as needing documentation.
14546 2005-12-09 Gary Dismukes <dismukes@adacore.com>
14548 * layout.adb: Replace various uses of byte by storage unit throughout.
14549 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
14550 static size, convert to storage units before returning, to conform to
14553 2005-12-09 Matthew Gingell <gingell@adacore.com>
14555 * g-exctra.ads: Fix typo in comment.
14557 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14559 * utils.c: Minor reformatting.
14561 2005-12-09 Robert Dewar <dewar@adacore.com>
14564 Further comment fixes to make the status of the default file clear
14566 * s-bitops.adb: Clarify comment for Bits_Array
14568 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14570 * Make-lang.in (ada.install-normal): Remove.
14572 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14574 * Make-lang.in: Remove all dependencies on s-gtype.
14576 2005-12-05 Richard Guenther <rguenther@suse.de>
14578 * utils.c (convert): Use fold_convert where appropriate.
14580 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
14582 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
14585 2005-12-02 Richard Guenther <rguenther@suse.de>
14587 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
14589 2005-12-01 Roger Sayle <roger@eyesopen.com>
14591 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
14594 2005-11-23 Laurent GUERBY <laurent@guerby.net>
14596 * mlib-prj.adb (Build_Library): Initialize Delete.
14598 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
14600 * socket.c: Add extern int h_errno for rtems since networking header
14601 files are not available at this point in a tool bootstrap. Newlib
14602 only has basic C library header files.
14604 2005-11-19 Richard Guenther <rguenther@suse.de>
14605 Roger Sayle <roger@eyesopen.com>
14608 * misc.c (internal_error_function): Don't use vsprintf to format
14609 the error message text, instead use pp_format_text and the new
14610 pretty printer APIs. This allows handling of %qs, %w, etc.
14612 2005-11-18 Laurent GUERBY <laurent@guerby.net>
14615 * Makefile.in: Use s-auxdec-empty for RTEMS.
14617 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14620 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
14621 a temporary if taking the address of something that is neither
14622 reference, declaration, or constant, since the gimplifier
14623 can't handle that case.
14625 2005-11-17 Laurent GUERBY <laurent@guerby.net>
14628 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
14630 2005-11-16 Richard Guenther <rguenther@suse.de>
14632 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
14634 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
14637 * raise-gcc.c: Add missing stdarg.h include.
14639 2005-11-16 Richard Guenther <rguenther@suse.de>
14641 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
14642 (ada/misc.o): Likewise.
14644 2005-11-14 Thomas Quinot <quinot@adacore.com>
14646 * g-soccon.ads: Minor reformatting. Update comments.
14648 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
14649 gain visibility on the declaration of struct timeval.
14651 * g-soccon-freebsd.ads,
14652 g-soccon-darwin.ads,
14653 g-soccon-tru64.ads,
14657 g-soccon-solaris.ads,
14659 g-soccon-mingw.ads,
14660 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
14662 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
14663 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
14664 g-soccon-linux-x86.ads: New files.
14666 * g-socthi-mingw.adb:
14667 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
14669 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
14670 (time_t, suseconds_t): New types constructed to match the tv_sec
14671 and tv_usec fields of C struct timeval.
14672 (Timeval): Construct structure in terms of the new types.
14673 (Host_Errno): New function (imported from socket.c), returns last hosts
14676 * g-socthi-vxworks.adb: Add error handling circuitry.
14678 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
14679 components of struct timeval.
14680 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
14681 (Check_Selector): In error conditions, clear internal socket sets to
14682 avoid a memory leak.
14683 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
14684 Send_Timeout, Receive_Timeout.
14686 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
14687 the tv_sec and tv_usec fields of C struct timeval.
14688 (Timeval): Construct structure in terms of the new types.
14689 (Host_Errno): New function (imported from socket.c), returns last hosts
14692 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
14693 hosts database last error code.
14695 * gen-soccon.c: Complete value expansion should not be performed on
14696 TARGET, as it has the form of a math expression, and some components
14697 may be platform-defined macros.
14698 For VxWorks, generate the OK and ERROR values.
14699 New constants giving the sizes of the components of C struct timeval.
14701 2005-11-14 Robert Dewar <dewar@adacore.com>
14702 Ed Schonberg <schonberg@adacore.com>
14705 * types.ads: Include All_Checks in Suppress_Array
14707 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
14708 not(a=b), since we no longer do this rewriting, and hence it is not
14710 (Elaboration_Checks_Suppressed): Add special casing to
14711 deal with different cases of static and dynamic elaboration checks (all
14712 checks does not count in the first case, but does in the second).
14713 (Expr_Known_Valid): Do not assume that the result of any arbitrary
14714 function call is valid, since this is not the case.
14715 (Ensure_Valid): Do not apply validity check to a real literal
14716 in a universal or fixed context
14718 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
14719 elementary types using the operator in standard. It is cleaner not to
14720 modify the programmers intent, especially in the case of floating-point.
14721 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
14722 it did not matter because we always rewrote a/=b to not(a=b).
14723 (Expand_Allocator_Expression): For an allocator expression whose nominal
14724 subtype is an unconstrained packed type, convert the expression to its
14725 actual constrained subtype.
14726 Implement warning for <= or >= where < or > not possible
14727 Fix to Vax_Float tests (too early in many routines, causing premature
14728 Vax_Float expansions.
14730 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
14731 to be used with packages and generic packages as well as with
14733 (Suppress): Set All_Checks, but not Elaboration_Check, for case
14734 of pragma Suppress (All_Checks)
14735 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
14736 a string literal for precise control over warnings.
14737 Avoid raise of pragma in case of unrecognized pragma and just return
14740 * sem_prag.ads: Minor reformatting
14742 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
14743 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
14744 Switch. Do not handle any exception.
14745 Include -gnatwx as part of -gnatg (warn on redundant parens)
14746 Allow optional = after -gnatm
14747 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
14748 longer sets Elaboration_Checks.
14749 Code to set warning mode moved to Sem_Warn
14750 so that it can be shared by pragma processing.
14752 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
14755 * s-taprop-solaris.adb:
14756 Change some <= to =, to avoid new warning
14758 * a-exexda.adb, prj-proc.adb:
14759 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
14760 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
14762 2005-11-14 Robert Dewar <dewar@adacore.com>
14764 * exp_vfpt.adb: Handle /= case
14765 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
14766 so that we do not get duplicate scaling for fixed point conversions.
14768 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
14770 2005-11-14 Matthew Gingell <gingell@adacore.com>
14772 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
14773 Increase default priority on Lynx from 15 to 17, and meet the Ada
14774 requirement that Default_Priority be ((Priority'First +
14775 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
14777 2005-11-14 Vincent Celier <celier@adacore.com>
14779 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14780 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14781 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
14782 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
14783 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
14784 mlib-tgt-lynxos.adb (DLL_Prefix): New function
14786 2005-11-14 Doug Rupp <rupp@adacore.com>
14788 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
14791 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14793 * s-traces-default.adb, s-trafor-default.ads,
14794 s-tratas-default.adb: Fix compilation errors.
14796 2005-11-14 Jose Ruiz <ruiz@adacore.com>
14798 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
14799 raising the exception so the memory used is freed.
14801 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14803 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
14804 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
14805 (convert_address): Update comments and list of platforms using this.
14807 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
14810 2005-11-14 Pascal Obry <obry@adacore.com>
14811 Vincent Celier <celier@adacore.com>
14813 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
14816 * memroot.adb: Remove redundant with/use clause on
14817 System.Storage_Elements.
14819 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14821 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
14822 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
14823 related code to a-exexpr.adb
14824 (Save_Occurrence_And_Private): Move GCC EH related code to
14826 (Raise_Current_Excep): Add new variable Id with pragma
14827 volatile, to ensure that the variable lives on stack.
14829 * a-exexpr-gcc.adb, raise-gcc.c: New file.
14831 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
14833 Move GCC EH related code to a-exexpr-gcc.adb
14835 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
14837 Split the Linux version of g-soccon into separate variants for 32 and 64
14839 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
14840 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
14841 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
14842 of host variable $(RANLIB_FLAGS).
14843 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
14844 Code clean up: remove unused/obsolete targets.
14845 (EH_MECHANISM): New variable introduced to differenciate between the
14846 two EH mechanisms statically.
14847 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
14848 (LIBGNAT_OBJS): Add raise-gcc.o
14849 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
14850 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
14851 supports VxWorks 6 RTPs.
14852 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
14853 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
14855 * raise.c: Move all GCC EH-related routines to raise-gcc.c
14857 2005-11-14 Jose Ruiz <ruiz@adacore.com>
14859 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
14860 deferral level, when abort is not allowed, to a later stage (the
14862 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
14863 it will not get changed by the generated code. It was previously done
14866 2005-11-14 Thomas Quinot <quinot@adacore.com>
14867 Olivier Hainque <hainque@adacore.com>
14868 Eric Botcazou <ebotcazou@adacore.com>
14871 Factor common code to build a storage type for an unconstrained object
14872 from a fat or thin pointer type and a constrained object type.
14873 (annotate_value): Handle BIT_AND_EXPR.
14874 (annotate_rep): Don't restrict the back annotation of inherited
14875 components to the type_annotate_only case.
14876 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
14877 we are not defining the type.
14878 <E_Record_Type>: Likewise.
14879 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
14880 to get advantage of the new maybe_stabilize_reference interface, to
14881 ensure that what we reference is indeed stabilized instead of relying
14882 on assumptions on what the stabilizer does.
14883 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
14884 type imported through a limited_with clause, use its non-limited view.
14885 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
14887 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
14888 of #if sections + explicit comparisons of convention identifiers.
14889 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
14890 before early-returning for certain types when code generation is
14892 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
14893 nullification of gnu_expr we do for objects with address clause and
14894 that we are not defining.
14895 (elaborate_expression_1): Do not create constants when creating
14896 variables needed by the debug info: the dwarf2 writer considers that
14897 CONST_DECLs is used only to represent enumeration constants, and emits
14899 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
14900 object with an address clause into an indirect reference, drop the
14901 initializing expression.
14903 (STACK_CHECK_BUILTIN): Delete.
14904 (STACK_CHECK_PROBE_INTERVAL): Likewise.
14905 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
14906 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
14907 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
14908 corresponding to the renamed object as ignored for debugging purposes.
14910 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
14911 related): For a prefix that is a dereference of a fat or thin pointer,
14912 if there is an actual subtype provided by the front-end, use that
14913 subtype to build an actual type with bounds template.
14914 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
14915 is provided by the front-end, use that subtype to compute the size of
14916 the deallocated object.
14917 (gnat_to_gnu): When adding a statement into an elaboration procedure,
14918 check for a potential violation of a No_Elaboration_Code restriction.
14919 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14920 with extra arguments to control whether to recurse through non-values
14921 and to let the caller know if the stabilization has succeeded.
14922 (gnat_stabilize_reference): Now a simple wrapper around
14923 maybe_stabilize, for common uses without restriction on lvalues and
14924 without need to check for the success indication.
14925 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
14926 pass false instead of 0 as the FORCE argument which is a bool.
14927 (Identifier_to_gnu): Remove checks ensuring that an renamed object
14928 attached to a renaming pointer has been properly stabilized, as no such
14929 object is attached otherwise.
14930 (call_to_gnu): Invoke create_var_decl to create the temporary when the
14931 function uses the "target pointer" return mechanism.
14932 Reinstate conversion of the actual to the type of the formal
14933 parameter before any other specific treatment based on the passing
14934 mechanism. This turns out to be necessary in order for PLACEHOLDER
14935 substitution to work properly when the latter type is unconstrained.
14937 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
14939 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14940 with extra arguments to control whether to recurse through non-values
14941 and to let the caller know if the stabilization has succeeded.
14943 * utils2.c (gnat_build_constructor): Only sort the fields for possible
14944 static output of record constructor if all the components are constant.
14945 (gnat_build_constructor): For a record type, sort the list of field
14946 initializers in increasing bit position order.
14947 Factor common code to build a storage type for an unconstrained object
14948 from a fat or thin pointer type and a constrained object type.
14949 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
14950 types variants, and process special cases of VIEW_CONVERT expressions
14951 as their NOP_EXPR counterpart to ensure we get to the
14952 CORRESPONDING_VARs associated with CONST_DECls.
14953 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
14954 on the right-hand side.
14956 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
14958 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
14959 are converting back to its original type.
14960 (convert) <JM input>: Fallthrough regular conversion code instead of
14961 extracting the object if converting to a type variant.
14962 (create_var_decl): When a variable has an initializer requiring code
14963 generation and we are at the top level, check for a potential violation
14964 of a No_Elaboration_Code restriction.
14965 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
14966 SIZE and SIZE_UNIT which we need for later back-annotations.
14967 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
14968 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
14969 is an unchecked union.
14970 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
14971 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
14972 main variant, just replace the VIEW_CONVERT_EXPR.
14973 <UNION_TYPE>: Revert 2005-03-02 change.
14975 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
14977 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
14979 2005-11-14 Matthew Heaney <heaney@adacore.com>
14981 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
14982 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
14983 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
14984 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
14985 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
14986 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
14987 Compiles against the spec for ordered maps described in sections
14988 A.18.6 of the most recent (August 2005) AI-302 draft.
14990 2005-11-14 Olivier Hainque <hainque@adacore.com>
14992 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
14993 to ensure bias adjustments take place when need be and to prevent
14994 occurrences of intermediate overflows.
14996 2005-11-14 Matthew Gingell <gingell@adacore.com>
14997 Olivier Hainque <hainque@adacore.com>
14999 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
15002 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
15003 tracebacks on ia64 HP-UX and provide explanatory comment.
15004 Enable backtraces on ia64 GNU/Linux.
15005 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
15006 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
15008 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
15009 Javier Miranda <miranda@adacore.com>
15011 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
15012 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
15013 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
15014 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
15016 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
15017 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
15020 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
15021 subprogram that generates the external name associated with a
15022 secondary dispatch table.
15023 (Get_Secondary_DT_External_Name): New subprogram that generates the
15024 external name associated with a secondary dispatch table.
15026 2005-11-14 Emmanuel Briot <briot@adacore.com>
15028 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
15029 line in the ALI file to include both an instantiation reference, and a
15032 2005-11-14 Vincent Celier <celier@adacore.com>
15034 * clean.adb (Check_Project): Look for Ada code in extending project,
15035 even if Ada is not specified as a language.
15036 Use new function DLL_Prefix for DLL_Name
15037 (Clean_Interface_Copy_Directory): New procedure
15038 (Clean_Library_Directory): New procedure
15039 (Clean_Directory): Remove procedure, no longer used
15040 (Clean_Project): Do not delete any file in an externally built project
15042 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
15043 directory of an extending project, even when there are no Ada source
15045 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
15046 (Set_Ada_Paths.Add.Recursive_Add): Ditto
15048 * mlib-prj.adb (Check_Library): For all library projects, get the
15049 library file timestamp.
15050 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
15051 (Build_Library): Use new function DLL_Prefix for the DLL_Name
15052 (Clean): Remove procedure, no longer used
15053 (Ultimate_Extension_Of): New function
15054 (Build_Library): When cleaning the library directory, only remove an
15055 existing library file and any ALI file of a source of the project.
15056 When cleaning the interface copy directory, remove any source that
15057 could be a source of the project.
15059 * prj.ads, prj.adb (Project_Empty): Add values of new components
15060 Library_TS and All_Imported_Projects.
15061 (Project_Empty): Add values for new components of Project_Data:
15062 Library_ALI_Dir and Display_Library_ALI_Dir
15064 * prj-attr.adb: New project level attribute name Library_ALI_Dir
15066 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
15067 attribute Library_ALI_Dir.
15068 (Check_Library_Attributes): The library directory cannot be the same as
15069 any source directory of the project tree.
15070 (Check_Stand_Alone_Library): The interface copy directory cannot be
15071 the same as any source directory of the project tree.
15073 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
15074 all temporary files.
15076 2005-11-14 Robert Dewar <dewar@adacore.com>
15077 Ed Schonberg <schonberg@adacore.com>
15079 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15080 (Check_Elab_Call): A call within a protected body is never an
15081 elaboration call, and does not require checking.
15082 (Same_Elaboration_Scope): Take into account protected types for both
15084 (Activate_Elaborate_All_Desirable): New procedure
15086 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
15089 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
15090 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
15092 * lib-writ.ads, lib-writ.adb:
15093 Implement new AD/ED for Elaborate_All/Elaborate desirable
15094 Use new Elaborate_All_Desirable flag in N_With_Clause node
15096 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
15097 N_Free_Statement nodes.
15098 Define new class N_Subprogram_Instantiation
15099 Add Elaborate_Desirable flag to N_With_Clause node
15100 Add N_Delay_Statement (covering two kinds of delay)
15102 * debug.adb: Introduce d.f flag for compiler
15103 Add -da switch for binder
15105 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15106 Cyrille Comar <comar@adacore.com>
15108 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
15109 for task component, in the case of a limited aggregate. The enclosed
15110 object declaration will create it earlier. Otherwise, in the case of a
15111 nested aggregate, the object may appear in the wrong scope.
15112 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
15113 (Gen_Assign): If the component being assigned is an array type and the
15114 expression is itself an aggregate, wrap the assignment in a block to
15115 force finalization actions on the temporary created for each row of the
15117 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
15118 structures are initialized after all discriminants are set so that
15119 they can be accessed even when their offset is dynamic.
15121 2005-11-14 Robert Dewar <dewar@adacore.com>
15122 Hristian Kirtchev <kirtchev@adacore.com>
15124 * sem_attr.adb: Implement Machine_Rounding attribute
15125 (Analyze_Access_Attribute): The access attribute may appear within an
15126 aggregate that has been expanded into a loop.
15127 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
15128 'Terminated whenever the prefix is of a task interface class-wide type.
15129 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
15130 the prefix is of a task interface class-wide type.
15132 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
15135 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
15136 Remove pragma Inline for [Unaligned_]Valid.
15137 Add comments that Valid routines do not work for Vax_Float
15139 * exp_attr.adb: Implement Machine_Rounding attribute
15141 * snames.h: Add entry for Machine_Rounding attribute
15143 2005-11-14 Javier Miranda <miranda@adacore.com>
15144 Robert Dewar <dewar@adacore.com>
15145 Hristian Kirtchev <kirtchev@adacore.com>
15147 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
15148 and related): For a prefix that is an explicit dereference of an
15149 access to unconstrained packed array type, annotate the dereference
15150 with an actual subtype so GIGI can make a correct size computation.
15151 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
15152 'Unrestricted_Access, if the designated type is an interface we
15153 add a type conversion to force the displacement of the pointer
15154 to the secondary dispatch table.
15155 Use Universal_Real instead of Long_Long_Float when we need a high
15156 precision float type for the generated code (prevents gratuitous
15157 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15158 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
15159 'Terminated for task interface class-wide objects. Generate a call to
15160 the predefined dispatching routine used to retrieve the _task_id from
15161 a task corresponding record.
15162 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
15164 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15165 (Check_Dispatching_Operation): Protect the frontend againts
15166 previously detected errors.
15168 * Makefile.rtl: Add new instantiations of system.fat_gen
15170 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
15171 Change name of instantiated package for better consistency
15172 with newly added system.fat_gen instantiations.
15174 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
15175 s-fvagfl.ads: New files.
15177 2005-11-14 Cyrille Comar <comar@adacore.com>
15178 Thomas Quinot <quinot@adacore.com>
15180 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
15181 assignment of a value of a tagged type that has been rewritten to a
15182 block statement, it is known by construction that no checks are
15183 necessary for the statements within the block: analyze it with checks
15185 (Expand_N_If_Statement): When killing a dead then-branch in an
15186 if-statement that has elsif_parts, recompute the Current_Value node
15187 for any entity whose value is known from the condition of the first
15189 (Expand_N_Return_Statement): When returning a mutable record, convert
15190 the return value into its actual subtype in order to help the backend
15191 to return the actual size instead of the maximum. This is another
15192 aftermath of not returning mutable records on the sec-stack anymore.
15194 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
15195 handling of error msg for suspicious reverse range iteration.
15196 (Check_Possible_Current_Value_Condition): Move declaration from body to
15197 spec, to allow this subprogram to be called from exp_ch5.
15199 2005-11-14 Thomas Quinot <quinot@adacore.com>
15201 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
15202 generate a set of nested array aggregates instead of a single flat
15203 aggregate for multi-dimensional arrays.
15205 2005-11-14 Pascal Obry <obry@adacore.com>
15207 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
15208 by spawnve is a process handle, no need to convert. Add a parameter
15209 close to control wether the process handle must be closed.
15210 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
15211 a process handle, not need to convert.
15212 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
15214 * g-expect.adb: (Kill): Document the new close parameter.
15215 (Close): Do not release the process handle in the kill there as
15216 waitpid() is using it.
15217 (Send_Signal): Release the process handle.
15219 2005-11-14 Robert Dewar <dewar@adacore.com>
15221 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
15222 need a high precision float type for the generated code (prevents
15223 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15226 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
15227 need a high precision float type for the generated code (prevents
15228 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15230 (Expand_Width_Attribute): In configurable run-time, the attribute is not
15231 allowed on non-static enumeration subtypes. Force a load error to emit
15232 the correct diagnostic.
15234 2005-11-14 Thomas Quinot <quinot@adacore.com>
15235 Robert Dewar <dewar@adacore.com>
15236 Ed Schonberg <schonberg@adacore.com>
15238 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
15239 subtype to compute the size of the designated object at run-time,
15240 create such a subtype and store it in the Actual_Designated_Subtype
15241 attribute of the N_Free_Statement.
15242 Generate itype for classwide designated object in both cases of
15243 user-specified storage pool: specific and class-wide, not only in the
15245 Raise CE when trying to set a not null access type object to null.
15246 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
15247 an explicit loop, because freeze nodes make its position variable.
15249 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
15252 2005-11-14 Javier Miranda <miranda@adacore.com>
15254 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
15255 Build_Stream_Procedure): Add the null-excluding attribute to the first
15257 This has no semantic meaning under Ada95 mode but it is a
15258 requirement under Ada05 mode.
15260 * par-ch3.adb (P_Access_Definition): Addition of warning message if
15261 the null exclusion is used under Ada95 mode
15262 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
15263 (P_Access_Definition): Remove assertion that forbids the use of
15264 the null-exclusion feature in Ada95.
15266 2005-11-14 Robert Dewar <dewar@adacore.com>
15268 * impunit.adb: Exclude container helper units not intended for use by
15271 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15273 * freeze.adb (Freeze_Entity): For an access formal that is an access
15274 to subprogram, freeze the anonymous subprogram type at the same time,
15275 to prevent later freezing in the wrong scope, such as the enclosing
15277 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
15278 subprogram whenever available.
15280 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15283 * gnatvsn.ads (Library_Version): Bump to 4.1
15285 2005-11-14 Robert Dewar <dewar@adacore.com>
15287 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
15288 Storage_Offset to avoid wrap around causing invalid results.
15290 2005-11-14 Pascal Obry <obry@adacore.com>
15292 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
15294 (Scan_Bind_Arg): Fail with an error message if -M option is used
15295 on a native compiler.
15297 2005-11-14 Robert Dewar <dewar@adacore.com>
15298 Vincent Celier <celier@adacore.com>
15300 * gprep.adb: Implement -C switch to scan comments
15302 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
15304 * scans.ads: Comment updates (including new use of Tok_Comment in
15307 * opt.ads: Add documentation for flags that are used by gprmake,
15308 currently and in the next version of gprmake.
15309 (Verbosity_Level): New variable
15310 Add Replace_In_Comments switch
15312 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
15314 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
15316 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15318 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
15319 message, friendlier.
15321 2005-11-14 Robert Dewar <dewar@adacore.com>
15323 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
15325 2005-11-14 Doug Rupp <rupp@adacore.com>
15327 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
15329 2005-11-14 Robert Dewar <dewar@adacore.com>
15331 * interfac.ads: Change declarations of IEEE float types so that we no
15332 longer need a separate version of this package for VMS.
15334 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15336 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
15337 internal entity created for the declaration of a child subprogram body
15338 with no spec as coming from source, to generate proper cross-reference
15341 2005-11-14 Vincent Celier <celier@adacore.com>
15343 * make.adb (Compile_Sources): Change verbose message to minimum
15344 verbosity level High for "is in an Ada library", "is a read-only
15345 library" and "is an internal library",
15346 (Create_Binder_Mapping_File): Path name of ALI file for library project
15347 must include the library directory, not the object directory.
15348 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
15349 for new switches -vl, -vm and -vh.
15350 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
15351 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
15352 (Compile_Sources): Do not attempt to compile if an ALI file is missing
15353 in a project that is externally built.
15354 (Compute_All_Imported_Projects): New procedure
15355 (Gnatmake): Check if importing libraries should be regenerated because
15356 at least an imported library is more recent.
15357 (Initialize): For each project compute the list of the projects it
15358 imports directly or indirectly.
15359 (Add_Library_Search_Dir): New procedure, used in place of
15360 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15361 put in the search paths.
15362 (Add_Source_Search_Dir): New procedure, used in place of
15363 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15364 put in the search paths.
15365 (Mark_Directory): Resolve the absolute path the directory before marking
15368 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
15369 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
15370 Switch. Do not handle any exception.
15371 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
15372 so that the switch is recognized as valid.
15373 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
15375 2005-11-14 GNAT Script <nobody@adacore.com>
15377 * Make-lang.in: Makefile automatically updated
15379 2005-11-14 Pascal Obry <obry@adacore.com>
15381 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
15383 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
15384 In both cases the last argument was dropped.
15386 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
15388 * namet.h: (Column_Numbe): New type.
15389 (Get_Column_Number): Define to sinput__get_column_number.
15390 (Instantiation): Define to sinput__instantiation.
15391 (Get_Column_Number): Declare.
15392 (Instantiation): Likewise.
15394 2005-11-14 Robert Dewar <dewar@adacore.com>
15396 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
15397 syntax, which could cause compiler hangs.
15399 2005-11-14 Vincent Celier <celier@adacore.com>
15401 * prj-ext.adb: Take into account new environment variable
15402 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
15404 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
15405 normalize its path name, making it absolute and resolving symbolic
15406 links, and replace the original if resolved path is different.
15408 2005-11-14 Vincent Celier <celier@adacore.com>
15410 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
15411 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
15413 2005-11-14 Emmanuel Briot <briot@adacore.com>
15415 * prj-pp.adb (Print): Do not output the with statement if the
15416 associated name is empty, which happens for virtual extending projects.
15417 (Print): Preserve the "extends all" attribute when printing the project.
15419 * prj-tree.ads (String_Value_Of): Add comment about returned value for
15420 a virtual extending project.
15422 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15424 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
15425 rhs of an assignment even if the type is unconstrained, when the
15426 context is non-expanding.
15427 In an inlined body, if the context type is private,
15428 resolve with its full view, which must be a composite type.
15430 2005-11-14 Robert Dewar <dewar@adacore.com>
15431 Ed Schonberg <schonberg@adacore.com>
15433 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15434 Do not give obsolescent warning on with of subprogram (since we
15436 (Analyze_With_Clause): Add test for obsolescent package
15437 (Install_Context_Clauses): If the unit is the body of a child unit, do
15438 not install twice the private declarations of the parents, to prevent
15439 circular lists of Use_Clauses in a parent.
15440 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
15441 compiling body of child unit.
15442 Use new class N_Subprogram_Instantiation
15443 (Expand_With_Clause): If this is a private with_clause for a child unit,
15444 appearing in the context of a package declaration, then the implicit
15445 with_clauses generated for parent units are private as well.
15446 (License_Check): Do not generate message if with'ed unit is internal
15448 2005-11-14 Gary Dismukes <dismukes@adacore.com>
15449 Ed Schonberg <schonberg@adacore.com>
15450 Thomas Quinot <quinot@adacore.com>
15452 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
15453 names are internal, because they will not have a corresponding partner
15454 in the actual package.
15455 (Analyze_Formal_Package): Move the setting of the formal package spec's
15456 Generic_Parent field so that it occurs prior to analyzing the package,
15457 to allow proper operation of Install_Parent_Private_Declarations.
15458 (Analyze_Package_Instantiation): Set the instantiated package entity's
15459 Package_Instantiation field.
15460 (Get_Package_Instantiation_Node): Move declaration to package spec.
15461 Retrieve the N_Package_Instantiation node when the Package_Instantiation
15463 (Check_Generic_Child_Unit): Within an inlined call, the only possible
15464 instantiation is Unchecked_Conversion, for which no parents are needed.
15465 (Inline_Instance_Body): Deinstall and record the use_clauses for all
15466 parent scopes of a scope being removed prior to inlining an instance
15468 (Analyze_Package_Instantiation): Do not perform front-end inlining when
15469 the current context is itself an instance within a non-instance child
15470 unit, to prevent scope stack errors.
15471 (Save_References): If the node is an aggregate that is an actual in a
15472 call, rewrite as a qualified expression to preserve some type
15473 information, to resolve possible ambiguities in the instance.
15474 (Instance_Parent_Unit): New global variable to record the ultimate
15475 parent unit associated with a generic child unit instance (associated
15476 with the existing Parent_Unit_Visible flag).
15477 (type Instance_Env): New component Instance_Parent_Unit for stacking
15478 parents recorded in the global Instance_Parent_Unit.
15479 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
15481 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
15482 it's not a top-level unit, and only do this if Instance_Parent_Unit is
15483 not already set. Replace test of Is_Child_Unit with test of parent's
15484 scope against package Standard. Add comments and a ??? comment.
15485 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
15486 on a child instance parent to test that the parent equals
15487 Instance_Parent rather than simply checking that the unit is not a
15489 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
15490 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
15491 a formal interface are ancestors of the corresponding actual.
15492 (Validate_Formal_Interface_Type): Additional legality checks.
15493 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
15494 interface types with ancestors.
15495 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
15496 to diagnose attempts to use generic within its own declaration.
15498 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15499 Javier Miranda <miranda@adacore.com>
15501 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
15503 (Build_Private_Derived_Type): The entity of the created full view of the
15504 derived type does not come from source. If after installing the private
15505 declarations of the parent scope the parent is still private, use its
15506 full view to construct the full declaration of the derived type.
15507 (Build_Derived_Record_Type): Relax the condition that controls the
15508 execution of the check that verifies that the partial view and
15509 the full view agree in the set of implemented interfaces. In
15510 addition, this test now only takes into account the progenitors.
15511 (Derive_Interface_Subprograms): No need to derive subprograms
15512 of ancestors that are interfaces.
15513 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
15515 Change name Is_Package to Is_Package_Or_Generic_Package
15516 (Complete_Subprograms_Derivation): Handle the case in which the full
15517 view is a transitive derivation of the ancestor of the partial view.
15518 (Process_Full_View): Rename local subprogram Find_Interface_In_
15519 Descendant to Find_Ancestor_Interface to leave the code more clear.
15520 Remove wrong code that avoids the generation of an error message
15521 when the immediate ancestor of the partial view is an interface.
15522 In addition some minor reorganization of the code has been done to
15523 leave it more clear.
15524 (Analyze_Type_Declaration): If type has previous incomplete tagged
15525 partial view, inherit properly its primitive operations.
15526 (Collect_Interfaces): Make public, for analysis of formal
15528 (Analyze_Interface_Declaration): New procedure for use for regular and
15529 formal interface declarations.
15530 (Build_Derived_Record_Type): Add support for private types to the code
15531 that checks if a tagged type implements abstract interfaces.
15532 (Check_Aliased_Component_Type): The test applies in the spec of an
15534 (Access_Type_Declaration): Clean up declaration of malformed type
15535 declared as an access to its own classwide type, to prevent cascaded
15537 (Collect_Interfaces): For private extensions and for derived task types
15538 and derived protected types, the parent may be an interface that must
15539 be included in the interface list.
15540 (Access_Definition): If the designated type is an interface that may
15541 contain tasks, create Master_Id for it before analyzing the expression
15542 of the declaration, which may be an allocator.
15543 (Record_Type_Declaration): Set properly the interface kind, for use
15544 in allocators, the creation of master id's for task interfaces, etc.
15546 2005-11-14 Javier Miranda <miranda@adacore.com>
15547 Ed Schonberg <schonberg@adacore.com>
15549 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
15550 omitted in case of stream attribute subprograms.
15551 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
15552 appear immediately after a subprogram body, when there is no previous
15553 subprogram declaration.
15554 Change name Is_Package to Is_Package_Or_Generic_Package
15555 (Process_Formals): A non null qualifier on a non null named access
15556 type is not an error, and is a warning only if Redundant_Constructs
15559 2005-11-14 Gary Dismukes <dismukes@adacore.com>
15560 Ed Schonberg <schonberg@adacore.com>
15562 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
15563 nested within Analyze_Package_Specification to install the private
15564 declarations and use clauses within each of the parent units of a
15565 package instance of a generic child package.
15566 (Analyze_Package_Specification): When entering a private part of a
15567 package associated with a generic instance or formal package, the
15568 private declarations of the parent must be installed (by calling new
15569 procedure Install_Parent_Private_Declarations).
15570 Change name Is_Package to Is_Package_Or_Generic_Package
15571 (Preserve_Full_Attributes): For a synchronized type, the corresponding
15572 record is absent in a generic context, which does not indicate a
15575 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15577 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
15578 not try to rewrite a renamed stream attribute, because the operations
15579 on the type may not have been generated.
15580 Handle properly a renaming_as_body generated for a stream operation
15581 whose default is abstract because the object type itself is abstract.
15582 (Find_Type): If the type is incomplete and appears as the prefix of a
15583 'Class reference, it is tagged, and its list of primitive operations
15584 must be initialized properly.
15585 (Chain_Use_Clauses): When chaining the use clauses that appear in the
15586 private declaration of a parent unit, prior to compiling the private
15587 part of a child unit, find on the scope stack the proper parent entity
15588 on which to link the use clause.
15589 (Note_Redundant_Use): Emit a warning when a redundant use clause is
15591 (Analyze_Object_Renaming): An attribute reference is not a legal object
15592 if it is not a function call.
15594 2005-11-14 Robert Dewar <dewar@adacore.com>
15595 Ed Schonberg <schonberg@adacore.com>
15597 * sem_eval.adb: Implement d.f flag
15598 (Subtype_Statically_Match): A generic actual type has unknown
15599 discriminants when the corresponding actual has a similar partial view.
15600 If the routine is called to validate the signature of an inherited
15601 operation in a child instance, the generic actual matches the full view,
15603 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
15604 Ed Schonberg <schonberg@adacore.com>
15605 Robert Dewar <dewar@adacore.com>
15606 Thomas Quinot <quinot@adacore.com>
15608 * sem_res.adb (Resolve_Call): Provide a better error message whenever
15609 a procedure call is used as a select statement trigger and is not an
15610 entry renaming or a primitive of a limited interface.
15611 (Valid_Conversion): If the operand has a single interpretation do not
15612 remove address operations.
15613 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
15614 statement to inhibit warning.
15615 (Resolve_Unary_Op): Do not produce a warning when
15616 processing an expression of the form -(A mod B)
15617 Use Universal_Real instead of Long_Long_Float when we need a high
15618 precision float type for the generated code (prevents gratuitous
15619 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15620 (Resolve_Concatenation_Arg): Improve error message when argument is an
15621 ambiguous call to a function that returns an array.
15622 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
15623 there is an implicit operator in the given scope if we are within an
15624 instance: legality check has been performed on the generic.
15625 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
15626 after resolving operand, to avoid false warnings on overloaded calls.
15628 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15629 Javier Miranda <miranda@adacore.com>
15632 * sem_type.adb (Covers): In an inlined body, a composite type matches
15633 a private type whose full view is a composite type.
15634 (Interface_Present_In_Ancestor): Protect the frontend against
15635 previously detected errors to ensure that its compilation
15636 with assertions enabled gives the same output that its
15637 compilation without assertions.
15638 (Interface_Present_In_Ancestor): Add support for private types.
15639 Change name In_Actual to In_Generic_Actual (clean up)
15640 (Disambiguate): New predicate In_Actual, to recognize expressions that
15641 appear in the renaming declaration generated for generic actuals, and
15642 which must be resolved in the outer context.
15644 2005-11-14 Robert Dewar <dewar@adacore.com>
15645 Thomas Quinot <quinot@adacore.com>
15646 Hristian Kirtchev <kirtchev@adacore.com>
15647 Ed Schonberg <schonberg@adacore.com>
15649 * sem_util.ads, sem_util.adb: Change name Is_Package to
15650 Is_Package_Or_Generic_Package.
15651 (Check_Obsolescent): New procedure.
15652 (Set_Is_Public): Remove obsolete junk test.
15653 (Set_Public_Status): Do not set Is_Public on an object whose declaration
15654 occurs within a handled_sequence_of_statemets.
15655 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
15656 for a parameterless procedure.
15657 (Enter_Name): Recognize renaming declarations created for private
15658 component of a protected type within protected operations, so that
15659 the source name of the component can be used in the debugger.
15661 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15662 Robert Dewar <dewar@adacore.com>
15664 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
15665 of a generic subprogram are not visible outside the body.
15666 (Set_Warning_Switch): New procedure (code to set warning mode moved
15667 here from Switch.C so that it can be shared by pragma processing.
15668 (Check_References): Special case warning for non-modified non-imported
15670 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
15671 form with a string literal argument
15673 2005-11-14 Javier Miranda <miranda@adacore.com>
15675 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
15677 (Write): Addition of "not null" to the anonymous access.
15678 (Read): Addition of "not null" to the anonymous access.
15679 (Write): Addition of "not null" to the anonymous access.
15681 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
15682 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
15683 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
15684 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
15685 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
15686 "not null" to the anonymous access.
15688 2005-11-14 Robert Dewar <dewar@adacore.com>
15690 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
15693 2005-11-14 Vincent Celier <celier@adacore.com>
15695 * switch.adb (Bad_Switch): New procedure
15696 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
15697 message when in error.
15699 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
15700 Too_Many_Output_Files): Remove declarations, no longer used.
15701 (Scan_Nat): New parameter Switch
15703 (Bad_Switch): New procedure
15705 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
15706 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
15707 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
15708 to Osint.Fail. Do not handle any exception.
15710 2005-11-14 Vincent Celier <celier@adacore.com>
15712 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
15713 designates a non existent directory.
15715 2005-11-14 Robert Dewar <dewar@adacore.com>
15717 * xgnatugn.adb: Replace invalid membership test by 'Valid
15719 2005-11-14 Vincent Celier <celier@adacore.com>
15721 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
15722 there is no object directory.
15724 2005-11-14 Robert Dewar <dewar@adacore.com>
15726 * usage.adb: Minor adjustment to output format, use nn instead of nnn
15727 (so that -gnateInnn does not run into next column)
15729 2005-11-14 Ed Falis <falis@adacore.com>
15731 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
15734 2005-11-14 Cyrille Comar <comar@adacore.com>
15736 * s-chepoo.ads: Add comments on Dereference.
15737 Remove unnecessary inherited abstract primitives.
15740 2005-11-14 Robert Dewar <dewar@adacore.com>
15742 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
15743 node parameter, not needed, since it is available as Declaration_Node.
15745 2005-11-14 Geert Bosch <bosch@adacore.com>
15747 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
15748 grammatically correct.
15750 2005-11-14 Vincent Celier <celier@adacore.com>
15752 * s-fileio.ads: Correct spelling error in comment
15754 2005-11-14 Cyrille Comar <comar@adacore.com>
15755 Robert Dewar <dewar@adacore.com>
15756 Vincent Celier <celier@adacore.com>
15757 Ben Brosgol <brosgol@adacore.com>
15758 Jose Ruiz <ruiz@adacore.com>
15759 Pascal Obry <obry@adacore.com>
15762 Document that -fstack-check is needed for strict compliance with the
15763 Ada 95 Reference Manual.
15764 Correct reference to VAX systems to meet HP guidelines
15765 Add documentation for new gnatmake switches -vl, -vm and -vh
15766 Replace DEC Ada by HP Ada
15767 Replace DIGITAL by HP
15768 Remove empty section on tools in compatibility section
15769 Clarify the Windows convention semantics.
15770 Document the Win32 calling convention.
15771 The Stdcall, Win32 and DLL convention are synonyms.
15772 Add a note in -gnatR description about zero size record components
15773 Note on new >= and <= warnings for -gnatwc
15774 Document that equal sign after -gnatm is optional.
15775 Note that strip is working fine on DLL built with a Library
15776 Project. The restriction apply only to DLL built with gnatdll.
15777 Update section about the way to debug a DLL.
15778 Update information about the DLL convention.
15779 Document -C switch for gnatprep
15780 Document new attribute Library_ALI_Dir
15781 Update elaboration doc to include implicit Elaborate pragmas now
15782 generated for subprogram instantiations.
15783 Document limitation on executable names that include spaces for --GCC,
15784 --GNATBIND, and --GNATLINK switches.
15785 Document that -w causes -gnatws to be added at start of gcc switches
15787 * gnat_rm.texi: Document that -mieee is needed for generating infinite
15788 and NaN values in case of overflow on machines that are not fully
15789 compliant with the IEEE floating-point standard.
15790 Create a section describing the set of compiler options needed for
15791 strict compliance with the Ada 95 Reference Manual.
15792 Add documentation for pragma Obsolescent applied to a package
15793 Clarify potential issues of mixed language programs related to the
15794 I/O buffering enabling in the elaboration of the GNAT runtime.
15795 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
15796 This documentation only patch adds extra documentsion for pragma
15797 Restrictions (No_Elaboration_Code), explaining why it is not possible
15798 to document this restriction in terms of allowed source constructs.
15799 Document string literal form of pragma Warnings
15800 Document new attribute Library_ALI_Dir
15801 Add documentation on stable attributes in project files that was missing
15803 * gnat-style.texi: Indicate that paragraphs within a single comment
15804 should be separated by empty comment lines
15806 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
15809 * bindusg.adb: Minor cleanup, put -m before -M for consistency
15811 2005-11-14 Robert Dewar <dewar@adacore.com>
15813 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
15814 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
15815 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
15816 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
15817 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
15818 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
15819 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
15820 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
15821 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
15822 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
15823 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
15824 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
15825 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
15826 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15827 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
15828 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
15829 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
15830 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
15831 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
15832 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
15833 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15834 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
15835 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
15836 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
15837 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
15838 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
15839 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
15840 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
15841 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
15842 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
15843 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
15844 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
15845 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
15846 system-interix.ads, system-solaris-sparc.ads,
15847 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
15848 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
15849 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
15850 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
15851 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
15852 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
15853 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
15854 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15855 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
15856 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
15857 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
15858 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
15859 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
15860 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
15861 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
15862 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
15863 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
15864 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
15865 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
15866 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
15867 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
15868 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
15869 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
15870 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
15871 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
15872 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15873 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
15874 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
15875 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
15876 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
15877 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
15878 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
15879 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15880 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
15881 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
15882 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
15883 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15884 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
15885 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
15886 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
15887 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
15888 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
15889 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
15890 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
15891 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
15892 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
15893 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
15894 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
15895 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
15896 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
15897 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
15898 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
15899 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
15900 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
15901 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
15902 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
15903 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
15904 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
15905 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
15906 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
15907 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
15908 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
15909 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
15910 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
15911 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
15912 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
15913 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
15914 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
15915 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
15916 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
15917 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
15918 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
15919 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
15920 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
15921 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
15922 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
15923 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
15924 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
15925 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
15926 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
15927 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
15928 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
15929 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
15930 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
15931 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
15932 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
15933 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
15934 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
15935 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
15936 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
15937 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
15938 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
15939 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
15940 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
15941 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
15942 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
15943 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
15944 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
15945 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
15946 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
15947 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
15948 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
15949 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
15950 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
15951 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
15952 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
15953 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
15954 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
15955 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
15956 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
15957 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
15958 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
15959 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
15960 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
15961 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
15962 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
15963 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
15964 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
15965 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
15966 a-numaux-darwin.ads, a-numaux-darwin.adb,
15967 a-swuwha.ads, a-stunha.ads: Minor reformatting
15969 2005-11-14 Robert Dewar <dewar@adacore.com>
15972 * osint-m.adb: Add pragma Elaborate_All for Osint
15974 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
15977 * trans.c (call_to_gnu): Restore statement lost in translation.
15979 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
15981 * init.c: Use the Linux-specific section for the IA-64/Linux target.
15982 (__gnat_adjust_context_for_raise): Add conditional code so that the
15983 IA-64 is also supported.
15985 2005-11-03 James E Wilson <wilson@specifix.com>
15988 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
15989 TREE_OVERFLOW check.
15991 2005-09-21 Olivier Hainque <hainque@adacore.com>
15994 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
15995 as we create them to store a size in bits.
15997 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
16005 * utils2.c (build_return_expr): New helper function.
16006 * gigi.h (build_return_expr): Declare it.
16007 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
16008 of manually building the RETURN_EXPR tree.
16009 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
16010 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
16011 build_binary_op for the "target pointer" case. Use build_return_expr
16012 instead of manually building the RETURN_EXPR tree.
16014 2005-09-16 Laurent GUERBY <laurent@guerby.net>
16017 * s-tpinop.ads: Make this unit Preelaborate.
16019 2005-09-16 Andreas Jaeger <aj@suse.de>
16021 * socket.c: Add string.h for memcpy.
16023 2005-09-05 Arnaud Charlet <charlet@adacore.com>
16025 * dec-io.ads, dec-io.adb: Removed, no longer used.
16027 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16029 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
16031 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16032 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
16033 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
16034 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
16035 dependent units are Preelaborate.
16036 (Initialize): Call Interrupt_Managemeent.Initialize and
16037 OS_Primitives.Initialize to ensure proper initialization of this unit.
16038 Remove use of System.Soft_Links
16039 Make this unit Preelaborate.
16041 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16042 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
16043 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
16044 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
16045 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
16046 s-tratas.ads, s-tasinf.ads: Minor reformatting.
16047 Add pragma Preelaborate, since these packages are suitable for this
16051 * s-traent-vms.ads, s-intman-dummy.adb,
16052 s-taprop-dummy.adb: Make this unit Preelaborate.
16054 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
16055 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
16056 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
16057 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
16058 s-intman-solaris.adb, s-intman-irix-athread.adb,
16059 s-intman-irix.adb: Mark this unit Preelaborate.
16060 (Initialize): New procedure.
16063 * s-taspri-linux.ads: Removed.
16065 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
16066 as done by other implementations (e.g. posix).
16068 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
16069 responsible for deferring abort.
16070 Mark this unit Preelaborate.
16072 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
16073 proper initialization of the tasking run-time.
16075 * s-tasdeb.ads: Mark this unit Preelaborate.
16076 (Known_Tasks): Add explicit default value to avoid elaboration code.
16078 * s-inmaop-vms.adb (Elaboration code): Add call to
16079 Interrupt_Management.Initialize since the elaboration code depends on
16080 proper initialization of this package.
16082 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
16083 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
16084 s-osprim-posix.adb: Make this unit Preelaborate.
16086 * a-calend.adb: Add call to OS_Primitives.Initialize
16088 * a-elchha.adb: Update use of Except.Id.Full_Name.
16089 Minor reformatting.
16090 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
16092 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
16093 Move with clauses outside Warnings Off now that dependent units are
16095 Use raise xxx with "..."; Ada 2005 form.
16097 * a-taside.ads, a-taside.adb:
16098 Remove some dependencies, to make it easier to make this unit truly
16100 Rewrite some code to be conformant with Preelaborate rules.
16102 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
16103 marked Preelaborate in the future.
16105 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
16106 these units Preelaborate.
16108 * s-exctab.adb: Update use of Except.Id.Full_Name.
16110 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
16111 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
16112 Set_Exc_Stack_Addr): Removed, no longer used.
16113 Remove reference to *Machine_State_Addr*, no longer needed.
16115 * s-stalib.ads: Mark this unit as Preelaborate[_05].
16116 (Exception_Data): Full_Name is now a System.Address so that this unit
16117 can be made Preelaborate.
16118 Clean up/simplify code thanks to Full_Name being a System.Address.
16119 Remove obsolete pragma Suppress (All_Checks), no longer needed.
16121 * s-taskin.ads, s-taskin.adb:
16122 Move with clauses outside Warnings Off now that dependent units are
16124 Make this unit Preelaborate.
16125 (Initialize): New proceduure, replace elaboration code and makes the
16126 set up of the tasking run-time cleaner.
16127 (Detect_Blocking): Now a function instead of a deferred boolean, to
16128 obey Preelaborate rules.
16130 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
16131 soft links, no longer used.
16133 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
16134 packages are suitable for this categorization.
16136 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
16137 since we compile run-time sources in Ada 2005 mode.
16138 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
16139 avoid having s-taprop*.adb depend on s-soflin and to avoid code
16141 Remove reference to *Machine_State_Addr*, no longer needed.
16143 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16145 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
16146 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16147 Remove reference to System.Exceptions.
16149 * s-mastop-x86.adb: Removed, no longer used.
16151 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
16153 * a-excach.adb: Minor reformatting.
16155 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
16156 instead fix new warnings that were hidden by this change.
16157 (AAA, ZZZ): Removed, replaced by...
16158 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
16159 are used instead of constants, to help make Ada.Exception truly
16161 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
16162 Raise_Storage_Error): File is now a System.Address, to simplify code.
16163 (Elab code): Removed, no longer used.
16164 (Null_Occurrence): Remove Warnings Off and make this construct
16166 Remove code related to front-end zero cost exception handling, since
16167 it is no longer used.
16168 Remove -gnatL/-gnatZ switches.
16170 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
16171 Update use of Except.Msg.
16173 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
16174 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
16175 to front-end zero cost exception handling, since it is no longer used.
16176 Remove -gnatL/-gnatZ switches.
16178 * lib-writ.ads: Minor reformatting
16181 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
16183 * Make-lang.in: Remove references to s-except.ads
16185 * s-except.ads: Removed, no longer used.
16187 * s-mastop.ads, s-mastop.adb:
16188 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16189 Remove reference to System.Exceptions.
16191 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
16192 switch-b.adb: Remove code related to front-end zero cost exception
16193 handling, since it is no longer used.
16194 Remove -gnatL/-gnatZ switches.
16196 2005-09-01 Robert Dewar <dewar@adacore.com>
16197 Gary Dismukes <dismukes@adacore.com>
16198 Javier Miranda <miranda@adacore.com>
16200 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
16201 type by valid test and generate warning.
16202 (Tagged_Membership): Generate call to the run-time
16203 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
16204 Change formal name Subtype_Mark to Result_Definition in several calls to
16205 Make_Function_Specification.
16206 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
16207 check for proper accessibility of the operand of a class-wide allocator.
16208 The check can be left out if checks are suppressed or if the expression
16209 has a specific tagged type whose level is known to be safe.
16211 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
16212 generates the run-time check associated with null-excluding entities.
16213 (Expand_N_Return_Statement): Add tests to determine if the accessibility
16214 check on the level of the return expression of a class-wide function
16215 can be elided. The check usually isn't needed if the expression has a
16216 specific type (unless it's a conversion or a formal parameter). Also
16217 add a test for whether accessibility checks are suppressed. Augment
16218 the comments to describe the conditions for performing the check.
16220 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
16221 Javier Miranda <miranda@adacore.com>
16222 Gary Dismukes <dismukes@adacore.com>
16223 Ed Schonberg <schonberg@adacore.com>
16225 * a-tags.adb (IW_Membership): Give support to
16226 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
16227 subprogram has been extended to look for the tag in the ancestors tag
16229 Update the structure of the GNAT Dispatch Table to reflect the
16230 additional two tables used in dispatching selects.
16231 Introduce appropriate array types and record components in
16232 Type_Specific_Data to reflect the two tables.
16233 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
16234 the TSD of a tag, indexed by position.
16235 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
16236 operation kind in the TSD of a tag, indexed by position.
16238 * a-tags.ads: Introduce an enumeration type to capture different
16239 primitive operation kinds. Define a constant reflecting the number of
16240 predefined primitive operations.
16241 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
16242 of an entry wrapper.
16243 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
16244 callable entity of a primitive operation.
16246 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
16247 primitive operations used in dispatching selects for limited
16248 interfaces, limited tagged, task and protected types what implement a
16250 (Freeze_Type): Generate the bodies of the primitive operations used in
16251 dispatching selects for limited tagged, task and protected types that
16252 implement a limited interface. Generate statements to populate the two
16253 auxiliary tables used for dispatching in select statements.
16254 (Freeze_Record_Type): Add call to initialize the dispatch table entries
16255 associated with predefined interface primitive operations.
16256 (Build_Dcheck_Function): Change Set_Subtype_Mark to
16257 Set_Result_Definition.
16258 (Build_Variant_Record_Equality): Change Subtype_Mark to
16260 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
16261 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
16262 (Build_Assignment): Simplify the code that adds the run-time-check.
16263 (Expand_N_Object_Declaration): Code cleanup.
16265 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
16266 entries when there is a protected type that implements a limited
16269 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
16270 common routines used in expansion of dispatching selects.
16271 (Add_Private_Declarations): Select the appropriate protection type when
16272 there is a protected type that implements a limited interface.
16273 (Build_Parameter_Block): Generate a wrapped parameter block.
16274 (Build_Protected_Subprogram_Body): Select the appropriate type for
16275 locking entries when there is a protected type that implements a
16277 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
16278 classified as entry wrappers.
16279 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
16280 asynchronous selects.
16281 (Expand_N_Conditional_Entry_Call): Add support for expansion of
16282 dispatching conditional selects.
16283 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
16284 protection when there is a protected type that implements limited
16286 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
16288 (Extract_Dispatching_Call): Extract the entity of the name of a
16289 dispatching call, the object parameter, actual parameters and
16290 corresponding formals.
16291 (Make_Initialize_Protection): Correct logic of protection initialization
16292 when there is a protected type that implements a limited interface.
16293 (Parameter_Block_Pack): Populate a wrapped parameter block with the
16294 values of actual parameters.
16295 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
16296 block and assign them to the original actual parameters.
16298 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
16299 (Build_Protected_Sub_Specification): Change the type and name of the
16300 last formal to account for the increased variety of protection modes.
16302 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
16303 entities. Used to save the value of the Is_Hidden attribute when the
16304 limited-view is installed.
16305 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
16306 the attribute of procedures classified as entry wrappers.
16307 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
16308 entity of a primitive wrapper.
16309 (Write_Entity_Flags): Output the name and value of the
16310 Is_Primitive_Wrapper attribute.
16311 (Write_Field27_Name): Output the name and entity of the field Wrapped_
16313 (Underlying_Type): If we have an incomplete entity that comes from
16314 the limited view then we return the Underlying_Type of its non-limited
16315 view if it is already available.
16316 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
16317 including operators.
16318 (Write_Field26_Name): Add entry for Overridden_Operation
16319 (Overridden_Operation): New attribute of functions and procedures.
16321 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
16322 predefined position in the dispatch table for the primitive operations
16323 used in dispatching selects.
16324 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
16325 predefined primitive operations and replace it with
16326 Default_Prim_Op_Count.
16327 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
16328 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
16329 the names of the generated primitive operations used in dispatching
16331 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
16332 case of abstract interface types. They will be inherit by the objects
16333 implementing the interface.
16334 (Make_DT): There is no need to inherit the dispatch table of the
16335 ancestor interface for the elaboration of abstract interface types.
16336 The dispatch table will be inherited by the object implementing the
16338 (Copy_Secondary_DTs): Add documentation.
16339 (Validate_Position): Improve this static check in case of
16340 aliased subprograms because aliased subprograms must have
16342 (Init_Predefined_Interface_Primitives): New subprogram that initializes
16343 the entries associated with predefined primitives of all the secondary
16345 (Build_Anonymous_Access_Type): Removed.
16346 (Expand_Interface_Actuals): With the previous cleanup there is no need
16347 to build an anonymous access type. This allows further cleanup in the
16348 code generated by the expander.
16349 (Expand_Interface_Conversion): If the actual is an access type then
16350 build an internal function to handle the displacement. If the actual
16351 is null this function returns null because no displacement is
16352 required; otherwise performs a type conversion that will be
16353 expanded in the code that returns the value of the displaced actual.
16354 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
16355 conversions that have no effect in the generated code because no
16356 displacement is required. Code cleanup; use local variables to
16357 avoid repeated calls to the subprogram directly_designated_type().
16359 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
16360 Classify the primitive operations used in dispatching selects as
16362 (Implements_Limited_Interface): Determine whether some type either
16363 directly implements a limited interface or extends a type that
16364 implements a limited interface.
16365 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
16366 (Expand_Subtype_From_Expr): Do not build actual subtype if the
16367 expression is limited.
16368 (Find_Interface_Tag): Add code to handle class-wide types and
16369 entities from the limited-view.
16371 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
16372 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
16373 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
16374 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
16377 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
16378 of procedure name or prefix that appears as a trigger in a triggering
16381 * uintp.ads: Introduce constants Uint_11 and Uint_13.
16383 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16385 * s-tataat.adb, a-tasatt.adb:
16386 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
16388 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
16389 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
16390 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
16393 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16394 Jose Ruiz <ruiz@adacore.com>
16396 * s-taprop-vxworks.adb:
16397 Move with clauses outside Warnings Off now that dependent units are
16399 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
16400 initialization of this unit.
16401 (Specific): Add new procedures Initialize and Delete so that this
16402 package can be used for VxWorks 5.x and 6.x
16403 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
16404 differences between VxWorks 5.x and 6.x
16405 Minor reformatting.
16406 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
16408 Use only Preelaborate-compatible constructs.
16410 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
16411 Primitives.Operations.
16412 (Delete, Initialize): New procedures.
16414 * s-osinte-vxworks.adb: Body used to handle differences between
16415 VxWorks 5.x and 6.x
16416 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
16418 * s-osinte-vxworks.ads: Minor reformatting.
16419 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
16420 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
16422 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
16423 between Vxworks 5 and 6.
16424 (taskLock, taskUnlock): Removeed, no longer used.
16426 * adaint.c: The wait.h header is not located in the sys directory on
16427 VxWorks when using RTPs.
16428 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
16430 (__gnat_dup): dup is available on Vxworks when using RTPs.
16431 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
16433 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
16435 * expect.c: The wait.h header is not located in the sys directory on
16436 VxWorks when using RTPs.
16438 2005-09-01 Thomas Quinot <quinot@adacore.com>
16440 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
16442 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
16444 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
16445 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16446 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
16447 g-soccon-freebsd.ads: Add new constants:
16449 SO_RCVTIMEO/SO_SNDTIMEO
16453 Move all target-specific file inclusions and macro definitions to
16454 gsocket.h, in order to ensure that any C code in socket.c will see a
16455 set of constants that is consistent with the contents of g-soccon.ads.
16457 * gsocket.h: Code imported from gen-soccon.c:
16458 Move all target-specific file inclusions and macro definitions to
16459 gsocket.h, in order to ensure that any C code in socket.c will see a set
16460 of constants that is consistent with the contents of g-soccon.ads.
16461 This change also makes gen-soccon self-contained (removing dependencies
16462 upon GCC internal headers).
16464 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
16466 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
16468 * socket.c: Minor reformatting.
16470 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16471 Thomas Quinot <quinot@adacore.com>
16473 * fname-sf.adb, mlib-tgt.ads,
16474 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
16475 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
16476 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
16477 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
16478 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
16479 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
16480 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
16481 makegpr.adb: Remove redundant use_clauses.
16483 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16485 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
16486 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
16487 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
16488 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
16489 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
16490 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
16491 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
16492 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
16493 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16494 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
16495 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
16496 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
16497 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
16498 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
16499 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
16500 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
16501 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16502 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
16503 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
16504 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
16505 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
16506 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
16507 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
16508 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
16509 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
16510 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
16511 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
16512 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
16513 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
16514 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
16515 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
16516 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
16517 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
16518 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
16519 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
16520 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
16521 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
16522 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
16523 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
16524 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
16525 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
16526 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
16527 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
16528 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
16529 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
16530 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
16531 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
16532 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
16533 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
16534 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
16535 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
16536 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
16537 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
16538 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
16539 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
16540 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
16541 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
16542 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
16543 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
16544 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
16545 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
16546 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
16547 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
16548 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
16549 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
16550 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
16551 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
16552 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
16553 and always use the no parameter form for consistency.
16555 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
16557 2005-09-01 Robert Dewar <dewar@adacore.com>
16559 * binde.adb: Minor reformatting
16560 (Find_Elab_Order): Output warning if -p used with static elab order
16562 2005-09-01 Robert Dewar <dewar@adacore.com>
16564 * checks.adb (Check_Needed): New procedure, deals with removing checks
16565 based on analysis of short-circuited forms. Also generates warnings for
16566 improper use of non-short-circuited forms.
16569 2005-09-01 Robert Dewar <dewar@adacore.com>
16571 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
16574 2005-09-01 Robert Dewar <dewar@adacore.com>
16576 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
16578 Implement new insertion char < (conditional warning)
16579 * errutil.adb, erroutc.adb: Implement new insertion char <
16580 (conditional warning).
16581 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
16582 (Error_Msg_Warn): New variable for < insertion char.
16583 * prj-nmsc.adb: Implement new errout insertion char < (conditional
16585 (Check_For_Source): Change value of Source_Id only after the current
16586 source has been dealt with.
16588 2005-09-01 Robert Dewar <dewar@adacore.com>
16589 Doug Rupp <rupp@adacore.com>
16591 * exp_attr.adb: Handle vax fpt for 'Valid attribute
16592 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
16593 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
16594 (Valid_D, Valid_F, Valid_G): New functions
16596 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16597 Hristian Kirtchev <kirtchev@adacore.com>
16598 Javier Miranda <miranda@adacore.com>
16600 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
16601 from object notation, the original node is unanalyzed and carries no
16602 semantic information, so that accessiblity checks must be performed on
16603 the type of the actual itself.
16604 (Expand_N_Subprogram_Declaration): Change last actual parameter for
16605 compatibility with Build_Protected_Sub_Specification.
16606 (Check_Overriding_Inherited_Interfaces): Add suport to handle
16607 overloaded primitives.
16608 (Register_Interface_DT_Entry): Use the new name of the formal
16609 the the calls to Expand_Interface_Thunk
16611 * exp_dbug.ads: Augment comments on encoding of protected types to
16612 include the generation of dispatching subprograms when the type
16613 implements at least one interface.
16615 * lib.ads: Extend information in Load_Stack to include whether a given
16616 load comes from a Limited_With_Clause.
16618 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
16619 whether a potential circularity is harmless, because it includes units
16620 loaded through a limited_with clause. Extends previous treatment which
16621 did not handle properly arbitrary combinations of limited and
16622 non-limited clauses.
16624 2005-09-01 Nicolas Setton <setton@adacore.com>
16626 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
16627 to be encoded as typ___XBLU_lowerbound__upperbound instead of
16628 typ___XB_lowerbound__upperbound.
16630 2005-09-01 Thomas Quinot <quinot@adacore.com>
16632 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
16633 dummy access formal for RACW/RAS TypeCode TSS.
16634 (Build_TypeCode_Call): Do not generate dummy null access actual for
16635 calls to the TypeCode TSS.
16637 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16639 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
16640 fully qualified name, to distinguish instances with the same local name.
16642 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
16645 2005-09-01 Robert Dewar <dewar@adacore.com>
16647 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
16650 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
16652 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
16653 (Free): New deallocation procedure for filter elements
16654 (Close): Deallocate any existing filter for the concerned connection
16656 2005-09-01 Laurent Pautet <pautet@adacore.com>
16658 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
16659 position set is provided, we compute one in order to reduce the maximum
16660 length of the keys. This computation first selects a character
16661 position between 1 and the minimum length of the keys in order to
16662 avoid reducing one of the keys to an empty string.
16663 (Initialize, Compute): When the ratio V to K is too low, the algorithm
16664 does not converge. The initialization procedure now comes with a
16665 maximum number of iterations such that when exceeded, an exception is
16666 raised in Compute. The user can initialize this ratio to another value
16668 Reformating and updated headers.
16670 2005-09-01 Javier Miranda <miranda@adacore.com>
16672 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
16673 that given an entity T creates and returns an Itype that duplicates the
16674 contents of T. The returned Itype has the null-exclusion
16675 attribute set to True, and its Etype attribute references T
16676 to keep the association between the two entities.
16677 Update copyright notice
16679 * sem_aggr.adb (Check_Can_Never_Be_Null,
16680 Aggregate_Constraint_Checks, Resolve_Aggregate,
16681 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
16683 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
16685 2005-09-01 Gary Dismukes <dismukes@adacore.com>
16686 Robert Dewar <dewar@adacore.com>
16687 Hristian Kirtchev <kirtchev@adacore.com>
16689 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
16692 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
16694 Call Set_Result_Definition instead of Set_Subtype_Mark.
16695 (P_Subprogram_Specification): Add parsing of anonymous access result
16696 plus null exclusions. Call Set_Result_Definition instead of
16699 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16700 (P_Access_Type_Definition): Add parsing for an anonymous access result
16701 subtype, plus parsing for null exclusions. Call Set_Result_Definition
16702 instead of Set_Subtype_Mark.
16704 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16705 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
16706 (Result_Definition): New function for N_Function_Specifications.
16707 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
16708 N_Function_Specification.
16709 (Set_Null_Exclusion_Present): Allow this flag for
16710 N_Function_Specification.
16711 (Set_Result_Definition): New procedure for N_Function_Specifications.
16712 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
16713 and N_Function_Specification.
16715 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
16716 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
16717 Add support for LIMITED NEW for Ada 2005 AI-419
16718 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
16719 syntax for anonymous access results.
16720 Replace Subtype_Mark field by Result_Definition in
16721 N_Function_Specification and N_Access_Definition specs.
16722 Add Null_Exclusion_Present to spec of N_Function_Specification.
16723 (Result_Definition): New function for N_Function_Specification and
16724 N_Access_Function_Definition.
16725 (Set_Result_Definition): New procedure for N_Function_Specification and
16726 N_Access_Function_Definition.
16728 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
16729 Result_Definition for cases of N_Access_Function_Definition and
16730 N_Function_Specification.
16731 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
16733 2005-09-01 Vincent Celier <celier@adacore.com>
16735 * lib-writ.adb: Update Copyright notice
16736 (Write_With_Lines): On platforms where file names are case-insensitive,
16737 record the file names in lower case.
16738 (Write_ALI): For D lines, on platforms where file names are
16739 case-insensitive, record the file names in lower case.
16741 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16742 Emmanuel Briot <briot@adacore.com>
16744 * lib-xref.adb (Output_Overridden_Op): Display information on
16745 overridden operation.
16747 * lib-xref.ads: Add documentation on overridden operations.
16749 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
16752 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
16753 overriding entity information.
16755 2005-09-01 Vincent Celier <celier@adacore.com>
16757 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
16758 including those that are inherited.
16760 2005-09-01 Robert Dewar <dewar@adacore.com>
16762 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
16764 * par-prag.adb: Implement new pragma Debug_Policy
16766 * sem_prag.adb Implement new pragma Debug_Policy
16767 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
16768 Component_Size attribute specification. Give warning for ignored pragma
16771 * snames.h, snames.ads, snames.adb: Introduce entries in
16772 Preset_Names for Name_Disp_Asynchronous_Select,
16773 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
16774 Name_Disp_Timed_Select.
16775 New pragma Debug_Policy
16777 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
16779 Switch -gnata also sets Debug_Pragmas_Enabled
16781 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
16782 handle an explicit -gnata when compiling predefined files.
16784 2005-09-01 Vincent Celier <celier@adacore.com>
16786 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
16787 directories of projects that have no Ada sources.
16789 2005-09-01 Robert Dewar <dewar@adacore.com>
16791 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
16792 (makes a difference for wide characters)
16794 * widechar.adb, widechar.ads:
16795 Add Wide_Char_Byte_Count feature to count chars vs bytes
16797 2005-09-01 Thomas Quinot <quinot@adacore.com>
16798 Ed Schonberg <schonberg@adacore.com>
16799 Robert Dewar <dewar@adacore.com>
16801 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
16802 'Address attribute reference with an overloaded prefix, use the
16803 location of the prefix (not the location of the attribute reference) as
16804 the error location.
16805 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
16806 a function renaming thereof, is a valid prefix for 'Size (where it is
16807 intepreted as a function call).
16808 (Statically_Denotes_Entity): New predicate to determine whether the
16809 prefix of an array attribute can be considered static.
16812 (Eval_Attr): Fix failure to evaluate Component_Size for
16813 unconstrained arrays (resulted in wrong value in packed case, since
16814 back end cannot handle this case)
16816 2005-09-01 Robert Dewar <dewar@adacore.com>
16818 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
16819 error msgs for most common cases.
16820 Use new errout insertion char < (conditional warning)
16822 2005-09-01 Javier Miranda <miranda@adacore.com>
16823 Ed Schonberg <schonberg@adacore.com>
16825 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
16826 become local to the whole package.
16827 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
16828 the package was already analyzed the new algorithm "replaces" the
16829 real entities by the shadow ones. This is required to ensure that
16830 the order of these entities in the homonym chains does not change;
16831 otherwise we can have undefined references at linking time because
16832 in case of conflicts the external name of the entities will have
16833 a suffix that depends on the order of the entities in the chain.
16834 (Remove_Limited_With_Clause): Complementary code that completes the
16835 new algorithm and replaces the shadow entities by the real ones.
16836 (Install_Limited_Withed_Unit): When unchaining entities before the
16837 installation of the shadow entities, only regular entities of the
16838 public part must be taken into account. This is required to
16839 keep this routine in synch with the work done by Remove_Limited_
16841 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
16842 even if unit is analyzed, because the analysis of the unit is
16843 idempotent in any case, and the limited view of the unit may have to
16844 be installed for proper visibility.
16845 (Expand_Limited_With_Clause): Even if the unit in the implicit
16846 with_clause has been analyzed already, a limited view of the package
16847 must be built for the current context, if it does not exist yet.
16849 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16850 Javier Miranda <miranda@adacore.com>
16851 Gary Dismukes <dismukes@adacore.com>
16853 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
16854 defining entity for the instance body, make a new defining identifier
16855 rather than copying the entity of the spec, to prevent accidental
16856 sharing of the entity list.
16857 (Check_Private_View): When exchanging views of private types, build the
16858 list of exchanged views as a stack, to ensure that on exit the exchanges
16859 are undone in the proper order.
16860 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
16861 Restore the compilation environment in case of instantiation_error.
16862 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
16863 for an anonymous access result.
16864 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
16865 (Formal_Entity): Handle properly the case of a formal package that
16866 denotes a generic package renaming.
16868 2005-09-01 Thomas Quinot <quinot@adacore.com>
16870 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
16871 clause if the array aggregate is surrounded by parentheses.
16873 2005-09-01 Cyrille Comar <comar@adacore.com>
16874 Gary Dismukes <dismukes@adacore.com>
16875 Ed Schonberg <schonberg@adacore.com>
16876 Javier Miranda <miranda@adacore.com>
16878 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
16880 to check if a type is Constrained in cases related to code generation
16881 (rather than semantic checking) since otherwise we do not generate
16882 similar code for mutable private types depending if their
16883 discriminants are visible or not.
16884 (Check_Abstract_Overriding): Do not complain about failure to override
16885 the primitive operations used in dispatching selects since they will
16886 always be overriden at the freeze point of the type.
16887 (Access_Definition): Separate out handling for resetting the scope
16888 of an anonymous access function result type. Retrieve the scope
16889 of the associated function rather than using Current_Scope, which
16890 does not have a consistent value (depends on whether we're in the
16891 middle of analyzing formal parameters). Add ??? comment about
16892 finding a cleaner way to handle the special cases of scope setting.
16893 (Process_Incomplete_Dependents): A protected operation is never a
16894 dispatching operation (only its wrapper may be).
16895 (Build_Derived_Record_Type): In case of tagged private types that
16896 implement interfaces add derivation of predefined primitive
16898 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
16899 by two parameters that are used in case of derivation from abstract
16900 interface types: No_Predefined_Prims is used to avoid the derivation
16901 of predefined primitives from the interface, and Predefined
16902 Prims_Only is used to complete the derivation predefined primitives
16903 in case of private tagged types implementing interfaces.
16904 Fix typo in comments
16905 (Find_Interface_In_Descendant): Protect the frontend against
16906 wrong code with large circularity chains.
16907 (Is_Private_Overriding): Add support for entities overriding interface
16908 subprograms. The test failed because Entities associated with overriden
16909 interface subprograms are always marked as hidden (and used to build
16910 the secondary dispatch table); in this case the overriden entity is
16911 available through the field abstract_interface_alias (cf. override_
16912 dispatching_operation)
16913 (Access_Definition): Set the scope of the type to Current_Scope for the
16914 case of a function with an anonymous access result type.
16915 (Access_Subprogram_Declaration): Handle creation of the type entity for
16916 an access-to-function type with an anonymous access result.
16917 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
16918 in handling for N_Access_Function_Definition.
16919 (Analyze_Subtype_Declaration): Modify the text of error message.
16920 (Derived_Type_Declaration): Modify the text of error message.
16921 (Process_Subtype): Modify the text of error message plus cleanup
16922 of one redundant error message.
16923 (Analyze_Component_Declaration): Code cleanup.
16924 (Analyze_Object_Declaration): Code cleanup.
16925 (Analyze_Subtype_Declaration): Propagate the null-exclusion
16926 attribute in case of access types. Code cleanup.
16927 (Array_Type_Declaration): Code cleanup.
16928 (Process_Discriminants): Create the new null-excluding itype
16929 if required. Code cleanup.
16930 (Process_Subtype): Create the new null-excluding itype if
16931 required. Code cleanup.
16932 (Build_Derived_Record_Type): Code cleanup to avoid calling
16933 twice the subprogram derive_subprograms in case of private
16934 types that implement interfaces. In this particular case the
16935 subprogram Complete_Subprograms_Derivation already does the
16936 job associated with the second call.
16938 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
16939 conversion to the full view when generating an operation for a
16940 discriminant whose type may currently be private.
16942 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16943 Javier Miranda <miranda@adacore.com>
16945 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
16946 V (Obj.F), the rewriting does not involve the indexed component, but
16947 only the selected component itself.
16948 Do not apply the transformation if the analyzed node is an actual of a
16949 call to another subprogram.
16950 (Complete_Object_Operation): Retain the entity of the
16951 dispatching operation in the selector of the rewritten node. The
16952 entity will be used in the expansion of dispatching selects.
16953 (Analyze_One_Call): Improve location of the error message associated
16955 (Analyze_Selected_Component): No need to resolve prefix when it is a
16956 function call, resolution is done when parent node is resolved, as
16958 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
16959 when attempting to resolve a call transformed from its object notation.
16960 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
16961 of the argument list for each interpretation of the operation.
16962 (Try_Object_Operation): The designated type of an access parameter may
16963 be an incomplete type obtained through a limited_with clause, in which
16964 case the primitive operations of the type are retrieved from its full
16966 (Analyze_Call): If this is an indirect call, and the return type of the
16967 access_to_subprogram is incomplete, use its full view if available.
16969 2005-09-01 Javier Miranda <miranda@adacore.com>
16970 Gary Dismukes <dismukes@adacore.com>
16972 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
16973 access types the null-exclusion and access-to-constant attributes must
16975 (Analyze_Return_Statement): When the result type is an anonymous access
16976 type, apply a conversion of the return expression to the access type
16977 to ensure that appropriate accessibility checks are performed.
16978 (Analyze_Return_Type): For the case of an anonymous access result type,
16979 generate the Itype and set Is_Local_Anonymous_Access on the type.
16980 Add ??? placeholder for check to disallow returning a limited object
16981 in Ada 2005 unless it's an aggregate or a result of a function call.
16982 Change calls from Subtype_Mark to Result_Definition.
16983 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
16984 Result_Definition in call to Make_Function_Specification.
16985 (Build_Body_To_Inline): Change Set_Subtype_Mark to
16986 Set_Result_Definition.
16987 (Make_Inequality_Operator): Change formal Subtype_Mark to
16988 Result_Definition in call to Make_Function_Specification.
16989 (Process_Formals): Create the new null-excluding itype if required.
16990 (New_Overloaded_Entity): For an entity overriding an interface primitive
16991 check if the entity also covers other abstract subprograms in the same
16992 scope. This is required to handle the general case, that is, overriding
16993 other interface primitives and overriding abstract subprograms inherited
16994 from some abstract ancestor type.
16995 (New_Overloaded_Entity): For an overriding entity that comes from
16996 source, note the operation that it overrides.
16997 (Check_Conformance, Type_Conformant): Addition of one new formal
16998 to skip controlling formals in the analysis. This is used to
16999 handle overloading of abstract interfaces.
17000 (Base_Types_Match): Add missing case for types imported from
17001 limited-with clauses
17002 (New_Overloaded_Entity): Add barrier to protect the use of
17003 the "alias" attribute.
17005 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17007 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
17008 verify that the procedure and the entry are mode conformant.
17009 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
17010 as a different operator, which is often a cut-and-paste error.
17012 2005-09-01 Javier Miranda <miranda@adacore.com>
17013 Ed Schonberg <schonberg@adacore.com>
17015 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
17016 used in controlling parameters exclude null because it is necessary to
17017 read the tag to dispatch, and null has no tag.
17018 (Override_Dispatching_Operation): If the previous operation is inherited
17019 from an interface, it becomes hidden and does not participate in later
17022 2005-09-01 Javier Miranda <miranda@adacore.com>
17023 Ed Schonberg <schonberg@adacore.com>
17024 Gary Dismukes <dismukes@adacore.com>
17026 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
17027 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
17028 the expander will generate the corresponding run-time check to evaluate
17030 (Resolve_Call): Check for legal type of procedure name or prefix that
17031 appears as a trigger in a triggering alternative.
17032 (Valid_Conversion): If expression is ambiguous and the context involves
17033 an extension of System, remove System.Address interpretations.
17034 (Resolve_Qualified_Expression): Reject the case of a specific-type
17035 qualification applied to a class-wide argument. Enhance comment
17036 to explain checking of Original_Node.
17037 (Resolve_Type_Conversion): The location of the error message was not
17038 general enough to handle the general case and hence it has been removed.
17039 In addition, this patch improves the text of the message.
17040 (Resolve_Type_Conversion): Add missing support for access to interface
17042 (Resolve_Type_Conversion): If the target is a class-wide interface type,
17043 do not expand if the expression is the actual in a call, because proper
17044 expansion will take place when the call itself is expanded.
17045 (Resolve_Allocator): If the context is an unchecked conversion, the
17046 allocator inherits its storage pool, if any, from the target type of
17049 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17050 Javier Miranda <miranda@adacore.com>
17052 * sem_type.adb (Add_One_Interp): If a candidate operation is an
17053 inherited interface operation that has an implementation, use the
17054 implementation to avoid spurious ambiguities.
17055 (Interface_Present_In_Ancestor): In case of concurrent types we can't
17056 use the Corresponding_Record_Typ attribute to look for the interface
17057 because it is set by the expander (and hence it is not always
17058 available). For this reason we traverse the list of interfaces
17059 (available in the parent of the concurrent type).
17060 (Interface_Present_In_Ancestor): Handle entities from the limited view
17062 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17064 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
17065 from the list of required components.
17066 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
17067 primitive procedure of a limited interface with a controlling first
17069 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
17071 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
17072 capture if it is generated in the second operand of a short-circuit
17074 Do not capture values for variables with address clauses.
17075 (Is_Object_Reference): Treat a function call as an object reference only
17076 if its type is not Standard_Void_Type.
17078 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17080 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
17081 to a variable that is statically known to be constant.
17083 2005-09-01 Geert Bosch <bosch@adacore.com>
17084 Robert Dewar <dewar@adacore.com>
17086 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
17087 (VAXGF_Safe_First): Idem.
17089 2005-09-01 Robert Dewar <dewar@adacore.com>
17090 Arnaud Charlet <charlet@adacore.com>
17092 * g-dirope.ads: Minor reformatting
17093 Document that bounds of result of Base_Name match the input index
17095 Add documentation on environment variable syntax for Expand_Path
17097 * gnat_ugn.texi: Update documentation to include mention of -m switches
17098 Document new treatment of wide characters in max line length
17100 Remove -gnatL/-gnatZ switches, no longer used.
17101 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
17104 * gnat_rm.texi: Add doc for two argument form of pragma
17105 Float_Representation.
17106 Add documentation for pragma No_Strict_Aliasing
17107 Add note that explicit component clause overrides pragma Pack.
17108 Add documentation of pragma Debug_Policy
17110 2005-09-01 Matthew Heaney <heaney@adacore.com>
17112 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
17113 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
17114 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
17115 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
17116 draft (Draft 13, August 2005) of Ada Amendment 1.
17118 2005-09-01 Arnaud Charlet <charlet@adacore.com>
17120 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
17121 Note that the platform-specific version of g-soccon.ads for VMS is now
17122 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
17123 really is a package spec).
17124 Replace s-taspri-linux.ads by s-taspri-posix.ads
17125 Remove references to s-mastop-x86.adb
17127 * system-vxworks-xscale.ads: Removed, no longer used.
17128 * s-vxwork-xscale.ads: Removed, no longer used.
17130 2005-09-01 Robert Dewar <dewar@adacore.com>
17132 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
17133 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
17134 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
17135 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
17136 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
17137 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
17138 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
17139 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
17140 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
17141 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
17142 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
17143 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
17144 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
17145 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
17146 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
17147 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
17148 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
17149 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
17150 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
17151 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
17152 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
17154 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17158 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
17160 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17161 Doug Rupp <rupp@adacore.com>
17163 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
17165 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
17166 this code in the GNAT run-time.
17168 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
17171 * init.c (__gnat_error_handler [many]): Mark "msg" as const
17172 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
17174 (__gnat_inside_elab_final_code): Moved here from
17175 Standard_Library and only defined for the compiler.
17176 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
17177 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
17178 using RTPs because directly vectored Interrupt routines are not
17179 supported on this configuration.
17180 (getpid): Do not redefine this function on VxWorks when using RTPs
17181 because this primitive is well supported by the RTP libraries.
17182 (copy_msg): Correct the code that checks for buffer overflow.
17183 Discovered during code reading.
17185 2005-08-29 Olivier Hainque <hainque@adacore.com>
17187 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
17188 a library level mutable variable with an initializer, tell
17189 build_allocator to ignore the initializer's size. It may not be large
17190 enough for all the values that might be assigned to the variable later
17193 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17194 Eric Botcazou <ebotcazou@adacore.com>
17196 * trans.c: Protect < in error msg with quote
17197 Replace GCC_ZCX by Back_End_Exceptions.
17198 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
17199 has been sufficiently aligned in the record.
17201 2005-08-15 James E. Wilson <wilson@specifix.com>
17203 * system-linux-alpha.ads: Change ia64 to alpha.
17205 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
17207 * decl.c, utils.c: Fix comment typos.
17209 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
17211 * decl.c, init.c, initialize.c: Fix comment typos.
17213 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
17215 Make CONSTRUCTOR use VEC to store initializers.
17216 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
17218 * trans.c (extract_values): Likewise.
17219 * utils.c (convert, remove_conversions): Likewise.
17220 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
17221 gnat_build_constructor): Likewise.
17223 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
17225 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
17227 (compare_field_bitpos): Likewise.
17229 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
17231 * utils.c (create_var_decl): Only set DECL_COMMON on
17232 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
17233 VAR_OR_FUNCTION_DECL_P.
17235 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
17237 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
17240 2005-07-07 Pascal Obry <obry@adacore.com>
17242 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
17243 returned type on Windows.
17245 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
17248 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
17249 exception in this case.
17250 Simplify the code as "Image (Image'Range)" = "Image".
17252 2005-07-07 Vincent Celier <celier@adacore.com>
17254 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
17255 the destructor/constructor attributes for <lib>final/<lib>init.
17257 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
17259 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
17261 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
17262 type if the parameter is not passed by copy but reference by default.
17264 2005-07-07 Javier Miranda <miranda@adacore.com>
17266 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
17267 Reimplementation of the support for abstract interface types in order
17268 to leave the code more clear and easy to maintain.
17270 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
17271 abstract interface types in order to leave the code clearer and easier
17274 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
17275 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
17276 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
17277 appropriate entry of the secondary dispatch table.
17278 (Make_DT): Add code to inherit the secondary dispatch tables of
17281 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
17282 implementing both functionalities by means of a common routine, each
17283 routine has its own code.
17285 2005-07-07 Javier Miranda <miranda@adacore.com>
17287 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
17289 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
17292 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17295 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
17296 use of tag incomplete types.
17298 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
17299 give support to tagged incomplete types.
17301 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
17302 expression is a discriminant reference and its type is private, as can
17303 happen within a stream operation for a mutable record, use the full
17304 view of the type to resolve the case alternatives.
17305 (Analyze_Assignment): Check wrong dereference of incomplete types.
17307 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
17310 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
17313 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
17314 N_Incomplete_Type_Declaration nodes.
17316 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
17317 Tag_Present to give support to tagged incomplete types:
17319 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17322 2005-07-07 Olivier Hainque <hainque@adacore.com>
17325 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
17326 definitions for the Unwind wrappers in the compiler case.
17328 2005-07-07 Ed Schonberg <schonberg@adacore.com>
17329 Javier Miranda <miranda@adacore.com>
17331 * par-load.adb (Load): If a child unit is loaded through a limited_with
17332 clause, each parent must be loaded as a limited unit as well.
17334 * sem_ch10.adb (Previous_Withed_Unit): Better name for
17335 Check_Withed_Unit. Return true if there is a previous with_clause for
17336 this unit, whether limited or not.
17337 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
17339 (Is_Visible_Through_Renamings): New local subprogram of install_limited
17340 _withed_unit that checks if some package installed through normal with
17341 clauses has a renaming declaration of package whose limited-view is
17342 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
17343 of the current Draft document for Ada 2005.
17344 (Analyze_Context): Complete the list of compilation units that
17345 are allowed to contain limited-with clauses. It also contains
17346 checks that were previously done by Install_Limited_Context_Clauses.
17347 This makes the code more clear and easy to maintain.
17348 (Expand_Limited_With_Clause) It is now a local subprogram of
17349 Install_Limited_Context_Clauses, and contains the code that adds
17350 the implicit limited-with clauses for parents of child units.
17351 This functionality was prevously done by Analyze_Context.
17353 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
17356 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
17357 been erroneously named in a limited-with clause of its own context.
17358 In this case the error has been previously notified by Analyze_Context.
17360 2005-07-07 Ed Schonberg <schonberg@adacore.com>
17362 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
17363 generic package that contains local declarations with the same name.
17364 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
17366 2005-07-07 Bernard Banner <banner@adacore.com>
17368 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
17369 ia64 platform only on platforms that you the GCC unwind library
17370 rather than the system unwind library.
17372 2005-07-07 Thomas Quinot <quinot@adacore.com>
17374 * expect.c: Minor reformatting
17376 2005-07-07 Sergey Rybin <rybin@adacore.com>
17378 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
17381 * gnat_ugn.texi: Add description for new gnatpp option
17384 2005-07-04 Thomas Quinot <quinot@adacore.com>
17386 * g-expect-vms.adb, g-expect.ads, g-expect.adb
17387 (Get_Command_Output): New subprogram to launch a process and get its
17388 standard output as a string.
17390 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17391 Olivier Hainque <hainque@adacore.com>
17393 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
17394 fetch a code-range descriptor associated with the machine state. On
17395 failure set the machine state's PC to 0; on success, pass the
17396 descriptor to exc_virtual_unwind.
17398 * init.c (Tru64 section): New function __gnat_set_code_loc.
17400 2005-07-04 Vincent Celier <celier@adacore.com>
17402 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17403 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17404 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
17405 Remove all auto-initialization code, as this is now done through the
17406 constructor mechanism.
17408 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
17409 __gnat_sals_init_using_constructors): New functions.
17411 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
17412 Linker_Constructor and Linker_Destructor when switch -a is used.
17414 * bindusg.adb: Add line for new switch -a
17416 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
17417 (Gnatbind): When switch -a is used, check if it is allowed
17419 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
17421 2005-07-04 Joel Brobecker <brobecker@adacore.com>
17423 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
17424 This prevents us from hitting a limitation during the debug info
17425 generation when using stabs.
17426 (Prims_Ptr): Likewise.
17428 2005-07-04 Gary Dismukes <dismukes@adacore.com>
17429 Ed Schonberg <schonberg@adacore.com>
17430 Javier Miranda <miranda@adacore.com>
17432 * checks.adb (Null_Exclusion_Static_Checks): In the case of
17433 N_Object_Declaration, only perform the checks if the Object_Definition
17434 is not an Access_Definition.
17436 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
17437 where the parent of an the access definition is an N_Object_Declaration
17438 when determining the Associated_Node_For_Itype and scope of an
17439 anonymous access-to-subprogram type.
17441 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
17442 Corresponding_Spec on the body created for a null procedure. Add ???
17443 comment. Remove New_Copy_Tree call on body argument to
17444 Set_Body_To_Inline.
17446 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
17447 discriminants, use the type of the actual as well, because the
17448 discriminants may be read by the called subprogram.
17450 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
17451 access type we do not need to handle non-limited views.
17452 (Build_Derived_Record_Type): Additional check to check that in case of
17453 private types, interfaces are only allowed in private extensions.
17455 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17457 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
17458 <Pragma_Linker_Destructor>: Likewise.
17460 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
17461 Pragma_Linker_Destructor.
17463 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
17464 ATTR_LINK_DESTRUCTOR.
17465 (static_ctors, static_dtors): New variables.
17467 * misc.c (gnat_expand_body): Output current function as constructor
17468 and destructor if requested.
17470 * par-prag.adb: Add processing for pragma Linker_Constructor and
17473 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
17474 extracted from Check_Interrupt_Or_Attach_Handler.
17475 (Check_Interrupt_Or_Attach_Handler): Invoke it.
17476 Implement pragma Linker_Constructor and Linker_Destructor with the
17477 help of Find_Unique_Parameterless_Procedure.
17478 Replace Name_Alias with Name_Target for pragma Linker_Alias.
17480 * snames.h, snames.ads, snames.adb:
17481 Add Name_Linker_Constructor and Name_Linker_Destructor.
17482 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
17483 * snames.adb: Remove Name_Alias.
17485 * trans.c: Include cgraph.h.
17486 (build_global_cdtor): New function.
17487 (Compilation_Unit_to_gnu): Build global constructor and destructor if
17489 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
17491 (addressable_p) <COMPONENT_REF>: Unconditionally test
17492 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
17494 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
17495 variable if it is external.
17497 (static_ctors, static_dtors): New global variables.
17498 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
17499 <ATTR_LINK_DESTRUCTOR>: Likewise.
17500 (end_subprog_body): Chain function as constructor and destructor
17503 * exp_util.adb (Force_Evaluation): Unconditionally invoke
17504 Remove_Side_Effects with Variable_Ref set to true.
17505 (Remove_Side_Effects): Handle scalar types first. Use a renaming
17506 for non-scalar types even if Variable_Ref is true and for class-wide
17509 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17511 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
17512 to prevent spurious warnings.
17514 2005-07-04 Thomas Quinot <quinot@adacore.com>
17516 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
17517 Itypes. Itypes are really unexpected there.
17518 (Build_TypeCode_Function): Generalise special processing for Itypes to
17519 handle the case of numeric implicit base types as well as enumerated
17522 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17524 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
17525 controlled, indicate the expected type of the dereference that is
17526 created for the call to Deep_Finalize, to prevent spurious errors when
17527 the designated type is private and completed with a derivation from
17528 another private type.
17530 2005-07-04 Vincent Celier <celier@adacore.com>
17532 * make.adb (Change_To_Object_Directory): When unable to change the
17533 current dir to the object directory, output the full path of the
17536 2005-07-04 Matthew Gingell <gingell@adacore.com>
17538 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
17540 * indepsw-linux.adb: Replace by...
17542 * indepsw-gnu.adb: ...this new file
17544 2005-07-04 Vincent Celier <celier@adacore.com>
17546 * mlib-prj.adb (Auto_Initialize): New constant String
17547 (SALs_Use_Constructors): New Boolean function
17548 (Build_Library): Call gnatbind with Auto_Initialize switch when
17549 SALs_Use_Constructors returns True.
17551 * mlib-tgt.ads: Minor reformatting
17553 * mlib-utl.ads: Minor reformatting
17555 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
17557 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17559 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
17560 single protected declarations can have an interface list.
17561 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
17562 with seriously malformed entry declarations, and lead to compilation
17563 abandoned messages.
17565 2005-07-04 Javier Miranda <miranda@adacore.com>
17567 * par-load.adb: Load the context items in two rounds.
17569 2005-07-04 Robert Dewar <dewar@adacore.com>
17571 * scng.adb: Do not consider Mod used as an attribute to be a keyword
17573 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17574 Javier Miranda <miranda@adacore.com>
17576 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
17577 type extension needs a limited view.
17578 Remove previous restriction on private types available through the
17579 limited-view (only tagged private types were previously allowed).
17580 (Install_Withed_Unit): In the code that implements the
17581 legality rule given in AI-377, exclude a child unit with the name
17582 Standard, because it is a homonym of the Standard environment package.
17584 2005-07-04 Thomas Quinot <quinot@adacore.com>
17586 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
17587 overloaded function call, carry interpretations from the original tree
17590 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17592 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
17593 types check whether some designated type is a limited view, and use
17594 the non-limited view if available.
17596 2005-07-04 Gary Dismukes <dismukes@adacore.com>
17598 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
17599 constraint of full view of a private view T1 if present, when T2 is a
17600 discriminated full view.
17602 2005-07-04 Thomas Quinot <quinot@adacore.com>
17604 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
17605 actual that is a view conversion of a bit packed array reference.
17607 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17609 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
17610 present before checking whether an interface type covers a synchronized
17613 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17615 * sem_util.adb (Is_Object_Reference): An indexed or selected component
17616 whose prefix is an implicit dereference is an object reference. Removes
17617 spurious errors when compiling with -gnatc.
17619 2005-07-04 Robert Dewar <dewar@adacore.com>
17622 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
17624 2005-07-04 Matthew Gingell <gingell@adacore.com>
17626 * tracebak.c: Enable tracebacks on ia64 platforms
17628 2005-07-04 Vincent Celier <celier@adacore.com>
17630 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
17631 the GNAT BIND command, as gnatbind accepts multiples ALI files with
17632 the -L or -n switches.
17634 2005-07-04 Vincent Celier <celier@adacore.com>
17636 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
17637 correctly computed and the main project data is not modified while
17639 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
17640 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
17641 c++linker as this does not work on some platforms.
17643 2005-07-04 Matthew Heaney <heaney@adacore.com>
17645 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
17647 * a-coinve.adb: Perform constraint checks explicitly.
17649 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17650 Thomas Quinot <quinot@adacore.com>
17652 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
17653 new target gen-soccon.
17655 2005-07-04 Robert Dewar <dewar@adacore.com>
17657 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
17659 2005-07-04 Thomas Quinot <quinot@adacore.com>
17661 * g-socket.ads (Check_Selector): Minor rewording of comment.
17663 2005-07-04 Vincent Celier <celier@adacore.com>
17665 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
17667 2005-07-04 Thomas Quinot <quinot@adacore.com>
17669 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
17671 2005-07-04 Sergey Rybin <rybin@adacore.com>
17673 * gnat_ugn.texi: Add description of --eol gnatpp option
17675 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17676 Thomas Quinot <quinot@adacore.com>
17678 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
17679 if the user wants all calls of a subprogram to be flagged,
17680 independently of whether they are made from within the same unit or
17682 Mention restriction for pragma Linker_Alias on some platforms.
17683 Document pragma Linker_Constructor and Linker_Destructor.
17684 Rewrite documentation of Weak_External, Linker_Section and
17685 Linker_Alias pragmas.
17687 2005-07-04 Arnaud Charlet <charlet@adacore.com>
17689 * s-stausa.ads, s-stausa.adb: New files.
17691 2005-06-30 Kelley Cook
17693 * all files: Update FSF address in copyright headers.
17694 * gen-soccon.co (main): Output new FSF address in generated files.
17696 2005-06-28 Paul Brook <paul@codesourcery.com>
17698 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
17700 2005-06-14 Olivier Hainque <hainque@adacore.com>
17701 Eric Botcazou <ebotcazou@adacore.com>
17703 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
17704 exc_unwind, now that we are generating proper .debug_frame output for
17707 * tracebak.c: Remove the mips-irix section, as we are now using the
17708 s-mastop based unwinder again.
17709 Under SPARC/Solaris, take into account the stack bias to compute the
17710 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
17713 2005-06-14 Doug Rupp <rupp@adacore.com>
17715 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
17717 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
17719 2005-06-14 Pascal Obry <obry@adacore.com>
17721 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
17722 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
17723 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
17726 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
17727 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
17728 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
17729 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
17730 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
17731 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
17732 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
17733 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
17734 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
17735 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
17736 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
17737 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
17738 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
17739 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
17740 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
17741 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
17742 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
17743 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
17744 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
17745 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
17746 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
17747 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
17748 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
17749 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
17750 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
17751 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
17752 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
17753 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
17754 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
17755 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
17756 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
17757 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
17758 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
17759 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
17760 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
17761 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
17762 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
17763 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
17764 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
17765 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
17766 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
17767 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
17768 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
17769 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
17770 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
17771 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
17772 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
17773 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
17774 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
17775 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
17776 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
17777 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
17778 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
17779 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
17780 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
17781 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
17782 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
17783 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
17784 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
17785 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
17786 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
17787 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
17788 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
17789 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
17790 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
17791 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
17792 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
17793 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
17794 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
17795 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
17796 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
17797 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
17798 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
17799 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
17800 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
17801 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
17802 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
17803 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
17804 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
17805 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
17806 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
17807 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
17808 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
17809 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
17810 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
17811 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
17812 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
17813 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
17814 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
17815 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
17816 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
17817 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
17818 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
17819 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
17820 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
17821 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
17822 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
17823 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
17824 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
17825 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
17826 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
17827 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
17828 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
17829 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
17830 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
17831 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
17832 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
17833 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
17834 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
17835 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
17836 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
17837 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
17838 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17839 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
17840 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
17841 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
17842 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
17843 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
17844 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
17845 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
17846 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
17847 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
17848 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
17849 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
17850 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
17851 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
17852 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
17853 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
17854 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
17855 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
17856 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
17857 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
17858 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
17860 2005-06-14 Jose Ruiz <ruiz@adacore.com>
17861 Arnaud Charlet <charlet@adacore.com>
17863 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
17864 longer protected objects. They have been replaced by lower-level
17865 suspension objects made up by a mutex and a condition variable (or
17866 their equivalent given a particular OS) plus some internal data to
17867 reflect the state of the suspension object.
17868 (Initialize, Finalize): Add this initialization procedure for
17869 Suspension_Object, which is a controlled type.
17870 (Finalize): Add the finalization procedure for Suspension_Object,
17871 which is a controlled type.
17873 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
17874 Ada.Synchronous_Task_Control because there is no longer a need for a
17875 VxWorks specific version of this package. Target dependencies
17876 has been moved to System.Task_Primitives.Operations.
17878 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
17880 (InitializeCriticalSection, EnterCriticalSection,
17881 LeaveCriticalSection, DeleteCriticalSection): Replace the type
17882 pCriticalSection by an anonymous access type so that we avoid problems
17883 of accessibility to local objects.
17885 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
17886 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
17887 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
17888 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
17889 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
17890 set the environment task mask here.
17891 (Current_State): Add this function that returns the state of the
17893 (Set_False): Add this procedure that sets the state of the suspension
17895 (Set_True): Add this procedure that sets the state of the suspension
17896 object to True, releasing the task that was suspended, if any.
17897 (Suspend_Until_True): Add this procedure that blocks the calling task
17898 until the state of the object is True. Program_Error is raised if
17899 another task is already waiting on that suspension object.
17900 (Initialize): Add this procedure for initializing the suspension
17901 object. It initializes the mutex and the condition variable which are
17902 used for synchronization and queuing, and it sets the internal state
17904 (Finalize): Add this procedure for finalizing the suspension object,
17905 destroying the mutex and the condition variable.
17907 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
17908 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
17909 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
17910 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
17911 which provides a low-level abstraction (using operating system
17912 primitives) for Ada.Synchronous_Task_Control.
17913 This object is made up by a mutex (for ensuring mutual exclusion), a
17914 condition variable (for queuing threads until the condition is
17915 signaled), a Boolean (State) indicating whether the object is open,
17916 and a Boolean (Waiting) reflecting whether there is a task already
17917 suspended on this object.
17919 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
17920 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
17921 s-intman-vms.ads, s-intman-mingw.adb,
17922 (Initialize_Interrupts): Removed, no longer used.
17924 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
17925 (Setup_Interrupt_Mask): New procedure.
17927 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
17929 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
17931 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
17932 this is no longer done in the body of s-taprop
17933 (Server_Task): Explicitely test for Pending_Action in case
17934 System.Parameters.No_Abort is True.
17936 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
17937 is no longer done in the body of s-taprop
17939 2005-06-14 Robert Dewar <dewar@adacore.com>
17941 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
17942 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
17943 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17944 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
17945 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17946 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
17947 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
17948 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
17949 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
17950 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
17951 system-linux-hppa.ads, system-vms_64.ads,
17952 system-vxworks-alpha.ads: Minor comment update for
17953 AI-362 (unit is Pure).
17955 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
17956 Add pragma Pure_05 for AI-362
17957 Make remaining conversion functions obsolescent in Ada 95
17959 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17960 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
17961 Add entries for a-wichun and a-zchuni
17962 Add a-widcha a-zchara for AI-395
17963 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
17965 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17966 Add entries for a-wichun.o and a-zchuni.o
17967 Entries for a-widcha.o and a-zchara.o
17968 Add entry for a-chacon.o
17970 * a-ztenau.adb: Add with of Ada.Characters.Conversions
17972 * a-chacon.ads, a-chacon.adb: New files.
17974 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
17975 categorization violations.
17977 * a-strmap.ads: Add pragma Pure_05 for AI-362
17978 * a-strmap.ads: Add note on implicit categorization for AI-362
17980 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
17982 * par-prag.adb: Dummy entry for pragma Persistent_BSS
17983 Set Ada_Version_Explicit, for implementation of AI-362
17984 Add processing for pragma Pure_05 and Preelaborate_05
17985 Add entry for Assertion_Policy pragma
17987 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
17988 when needed for proper processing of categorization stuff
17991 For several cases, make errors in preealborate units warnings,
17992 instead of errors, if GNAT_Mode is set. For AI-362.
17994 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
17995 preelaborate unit is now warning if in GNAT mode
17997 * s-stoele.ads: Document AI-362 for pragma preelaborate
17999 2005-06-14 Doug Rupp <rupp@adacore.com>
18001 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
18002 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
18003 Default_Exception_Msg_Max_Length: new parameter.
18005 * a-except.ads: (Exception_Msg_Max_Length): Set to
18006 System.Parameters.Default_Exception_Msg_Max_Length
18007 Add pragma Preelaborate_05 for AI-362
18008 Add warnings off to allow categorization violations for AI-362
18010 2005-06-14 Vincent Celier <celier@adacore.com>
18012 * gnatsym.adb: Adapt to modification of package Symbols: procedure
18013 Process is now in package Processing.
18015 * symbols.ads, symbols.adb:
18016 (Processing): New package, containing procedure Process
18018 * symbols-vms-alpha.adb:
18019 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
18021 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
18022 symbols-processing-vms-ia64.adb: New files.
18024 2005-06-14 Pascal Obry <obry@adacore.com>
18026 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
18027 implementation. This new version generates the proper DllMain routine
18028 to initialize the SAL. The DllMain is generated in Ada and compiled
18029 before being added as option to the library build command.
18031 2005-06-14 Doug Rupp <rupp@adacore.com>
18032 Pascal Obry <obry@adacore.com>
18034 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
18035 call to decc$translate_vms.
18036 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
18037 need to remove those quotes before catenating the filename.
18038 (__gnat_locate_exec_on_path): improvements to the Win32 section:
18039 * avoid allocating the memory twice for better efficiency;
18040 * allocate 32K buffer for environment expansion as suggested by MSDN;
18041 * prepend ".;" to the path so that current directory is searched too.
18043 2005-06-14 Robert Dewar <dewar@adacore.com>
18045 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
18046 instead of raising CE (AI-241)
18047 Add warnings off to allow categorization violations for AI-362
18049 2005-06-14 Robert Dewar <dewar@adacore.com>
18051 * ali-util.adb, gnatbind.adb: Remove references to
18052 Force_RM_Elaboration_Order.
18054 * switch-b.adb: Remove recognition of -f switch
18056 2005-06-14 Pascal Obry <obry@adacore.com>
18058 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
18059 implementation which is slightly more efficient.
18061 2005-06-14 Gary Dismukes <dismukes@adacore.com>
18062 Javier Miranda <miranda@adacore.com>
18063 Ed Schonberg <schonberg@adacore.com>
18064 Hristian Kirtchev <kirtchev@adacore.com>
18066 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
18067 allocator's designated type is a class-wide type, and compiling for
18068 Ada 2005, emit a run-time check that the accessibility level of the
18069 type given in the allocator's expression is not deeper than the level
18070 of the allocator's access type.
18072 (Tagged_Membership): Modified to gives support to abstract interface
18075 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
18077 (Descendant_Tag): New predefined function
18078 (Is_Descendant_At_Same_Level): New predefined function
18079 (Get_Access_Level): New private function
18080 (Set_Access_Level): New private procedure
18081 (IW_Membership): New function. Given the tag of an object and the tag
18082 associated with an interface, evaluate if the object implements the
18084 (Register_Interface_Tag): New procedure used to initialize the table of
18085 interfaces used by the IW_Membership function.
18086 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
18087 of the dispatch table.
18088 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
18089 table of interfaces of the parent.
18090 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
18091 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
18092 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
18093 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
18094 Ada 2005 semantics for the new predefined function.
18096 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
18097 call to Descendant_Tag rather than Internal_Tag.
18098 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
18099 the accessibility level of the attribute's Item parameter is not deeper
18100 than the level of the attribute's prefix type. Tag_Error is raised if
18101 the check fails. The check is only emitted for Ada_05.
18102 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
18103 requested stream attribute, use it.
18104 (Expand_N_Attribute_Reference): If the designated type is an interface
18105 then rewrite the referenced object as a conversion to force the
18106 displacement of the pointer to the secondary dispatch table.
18107 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
18108 is a dereference of an object with a constrained partial view.
18110 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
18111 type is a class-wide type, emit a run-time check that the accessibility
18112 level of the returned object is not deeper than the level of the
18113 function's master (only when compiling for Ada 2005).
18115 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
18116 Action_Nb_Arg): Add entries for new Get_Access_Level and
18117 Set_Access_Level routines in these tables.
18118 (Make_DT): Generate a call to set the accessibility level of the
18119 tagged type in its TSD.
18120 (Make_DT): Code cleanup. The functionality of generating all the
18121 secondary dispatch tables has been moved to freeze_record_type.
18122 (Make_Abstract_Interface_DT): Minor code cleanup.
18123 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
18124 this subprogram implements a new algorithm that provides the
18125 same functionality and it is more clear in case of primitives
18126 associated with abstract interfaces.
18127 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
18128 clean up, the functionality of this subprogram is now provided
18129 by Set_All_DT_Position.
18130 (Write_DT): New subprogram: a debugging procedure designed to be called
18131 within gdb to display the dispatch tables associated with a tagged
18133 (Collect_All_Interfaces): New subprogram that collects the whole list
18134 of interfaces that are directly or indirectly implemented by a tagged
18136 (Default_Prim_Op_Position): New subprogram that returns the fixed
18137 position in the dispatch table of the default primitive operations.
18138 (Expand_Interface_Actuals): New subprogram to generate code that
18139 displaces all the actuals corresponding to class-wide interfaces to
18140 reference the interface tag of the actual object.
18141 (Expand_Interface_Conversion): New subprogram. Reference the base of
18142 the object to give access to the interface tag associated with the
18143 secondary dispatch table.
18144 (Expand_Interface_Thunk): New subprogram that generates the code of the
18145 thunk. This is required for compatibility with the C+ ABI.
18146 (Make_Abstract_Interface_DT): New subprogram that generate the
18147 declarations for the secondary dispatch tables associated with an
18148 abstract interface.
18149 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
18150 attribute for each primitive operation covering interface subprograms
18151 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
18152 These subprograms were upgraded to give support to abstract interfaces
18154 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
18155 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
18156 RE_Set_Access_Level.
18157 (RE_Unit_Table): Add entries for new Ada.Tags operations.
18158 Add support to call the followig new run-time subprograms:
18159 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
18161 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
18162 match its full declaration when both have an access definition with
18163 statically matching designated subtypes.
18164 (Analyze_Component_Declaration): Delete commented out code that was
18165 incorrectly setting the scope of an anonymous access component's type.
18166 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
18167 an access discriminant when the containing type is nonlimited.
18168 (Make_Incomplete_Type_Declaration): Create an incomplete type
18169 declaration for a record type that includes self-referential access
18171 (Check_Anonymous_Access_Types): Before full analysis of a record type
18172 declaration, create anonymous access types for each self-referential
18174 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
18175 an access component in this context is a Local_Anonymous_Access, for
18176 proper accessibility checks.
18177 (Access_Definition): Set properly the scope of the anonymous access type
18178 created for a stand-alone access object.
18179 (Find_Type_Of_Object): An object declaration may be given with an access
18181 (Complete_Subprograms_Derivation): New subprogram used to complete
18182 type derivation of private tagged types implementing interfaces.
18183 In this case some interface primitives may have been overriden
18184 with the partial-view and, instead of re-calculating them, they
18185 are included in the list of primitive operations of the full-view.
18186 (Build_Derived_Record_Type): Modified to give support to private
18187 types implemening interfaces.
18188 (Access_Definition): Reject ALL on anonymous access types.
18189 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
18190 type derivation to occur at a deeper accessibility level than the
18192 For the case of derivation within a generic body however, disallow the
18193 derivation if the derived type has an ancestor that is a formal type
18194 declared in the formal part of an enclosing generic.
18195 (Analyze_Object_Declaration): For protected objects, remove the check
18196 that they cannot contain interrupt handlers if not declared at library
18198 (Add_Interface_Tag_Components): New subprogram to add the tag components
18199 corresponding to all the abstract interface types implemented by a
18200 record type or a derived record type.
18201 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18202 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18203 Process_Full_View, Record_Type_Declaration): Modified to give
18204 support to abstract interface types
18205 (Collect_Interfaces): New subprogram that collects the list of
18206 interfaces that are not already implemented by the ancestors
18207 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
18208 when partial view has no discriminants and full view has defaults.
18209 (Constrain_Access): Reject a constraint on a general access type
18210 if the discriminants of the designated type have defaults.
18211 (Access_Subprogram_Declaration): Associate the Itype node with the inner
18212 full-type declaration or subprogram spec. This is required to handle
18213 nested anonymous declarations.
18214 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18215 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18216 Process_Full_View, Record_Type_Declaration): Modified to give
18217 support to abstract interface types
18218 (Derive_Subprograms): Addition of a new formal to indicate if
18219 we are in the case of an abstact-interface derivation
18220 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
18221 to the specification because it is requied to analyze all the
18222 identifiers found in a list of interfaces
18224 * debug.adb: Complete documentation of flag "-gnatdZ"
18226 * exp_ch3.adb: Implement config version of persistent_bss pragma
18227 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
18228 testing for TSS presence to properly enforce visibility rules.
18229 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
18230 Make_Abstract_Interfaces_DT to generate the secondary tables
18231 associated with abstract interfaces.
18232 (Build_Init_Procedure): Modified to initialize all the tags
18234 (Component_Needs_Simple_Initialization): Similar to other tags,
18235 interface tags do not need initialization.
18236 (Freeze_Record_Type): Modified to give support to abstract interface
18238 (Expand_N_Object_Declaration): Do not generate an initialization for
18239 a scalar temporary marked as internal.
18241 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
18242 in-out parameter that is a component in an initialization procedure,
18243 whose constraint might depend on discriminants, and that may be
18244 misaligned because of packing or representation clauses.
18245 (Is_Legal_Copy): New predicate to determine whether a possibly
18246 misaligned in-out actual can actually be passed by copy/return. This
18247 is an error in case the type is by_reference, and a warning if this is
18248 the consequence of a DEC import pragma on the subprogram.
18249 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
18251 (Expand_Inlined_Call): Mark temporary generated for the return value as
18252 internal, so that no useless scalar normalization is generated for it.
18253 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
18254 null procedure can always be inlined.
18255 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
18256 procedure, generate an explicit empty body for it.
18258 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
18259 Given a type implementing an interface, returns the corresponding
18260 access_disp_table value.
18261 (Find_Interface_Tag): New subprogram. Given a type implementing an
18262 interface, returns the record component containing the tag of the
18264 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
18265 previous ones that return the corresponding tag and access_disp_table
18267 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
18268 is a predefined primitive operation.
18269 (Expand_Subtype_From_Expr): If the expression is a selected component
18270 within an initialization procedure, compute its actual subtype, because
18271 the component may depend on the discriminants of the enclosing record.
18273 * i-cpp.ads, i-cpp.adb:
18274 This package has been left available for compatibility with previous
18275 versions of the frontend. As part of the new layout this is now a
18276 dummy package that uses declarations available at a-tags.ads
18278 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
18279 "constant access" and "aliased [constant] access" when not compiling
18281 Suppress Ada 2005 keyword warning if -gnatwY used
18282 (P_Identifier_Declarations): Add support for object declarations with
18283 access definitions.
18284 (Private_Extension_Declaration): Complete the documentation
18285 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
18286 attribute in case of private extension declaration
18287 (P_Type_Declaration): Mark as "abstract" the type declarations
18288 corresponding with protected, synchronized and task interfaces
18289 (P_Declarative_Items): "not" and "overriding" are overriding indicators
18290 for a subprogram or instance declaration.
18292 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
18293 instantiation that is a dispatching operation has controlling access
18294 parameters that are null excluding.
18295 Save and restore Ada_Version_Explicit, for implementation of AI-362
18296 (Validate_Derived_Type_Instance): Add check for abstract interface
18298 (Analyze_Formal_Package): Establish Instantiation source for the copy of
18299 the generic that is created to represent the formal package.
18300 (Analyze_Package_Instantiation): Instantiate body immediately if the
18301 package is a predefined unit that contains inlined subprograms, and
18302 we are compiling for a Configurable_Run_Time.
18303 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
18304 If the program has a null default, generate an empty body for it.
18306 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
18307 error message condition, null procedures are correctly detected now.
18308 (New_Overloaded_Entity): Bypass trivial overriding indicator check
18309 for subprograms in the context of protected types. Instead, the
18310 indicator is examined in Sem_Ch9 while analysing the subprogram
18312 (Check_Overriding_Indicator): Check consistency of overriding indicator
18313 on subprogram stubs as well.
18314 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
18316 (Analize_Subprogram_Specification): When analyzing a subprogram in which
18317 the type of the first formal is a concurrent type, replace this type
18318 by the corresponding record type.
18319 (Analyze_Subprogram_Body): Undo the previous work.
18320 (Analyze_Procedure_Call): If the call has the form Object.Op, the
18321 analysis of the prefix ends up analyzing the call itself, after which
18323 (Has_Interface_Formals): New subprogram subsidiary to analyze
18324 subprogram_specification that returns true if some non
18325 class-wide interface subprogram is found
18326 (New_Overloaded_Entity): Modified to give support to abstract
18328 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
18329 access to subprograms must be recursive.
18330 (Is_Unchecked_Conversion): Improve the test that recognizes
18331 instantiations of Unchecked_Conversion, and allows them in bodies that
18332 are to be inlined by the front-end. When the body comes from an
18333 instantiation, a reference to Unchecked_Conversion will be an
18334 Expanded_Name, even though the body has not been analyzed yet.
18335 Replace Is_Overriding and Not_Overriding in subprogram_indication with
18336 Must_Override and Must_Not_Override, to better express intent of AI.
18337 (Analyze_Subprogram_Body): If an overriding indicator is given, check
18338 that it is consistent with the overrinding status of the subprogram
18340 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
18342 If the subprogram is a null procedure, indicate that it does not need
18345 * sem_disp.adb (Check_Controlling_Type): Give support to entities
18346 available through limited-with clauses.
18347 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
18348 allowed as the last primitive of a tagged type if it has no previous
18350 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
18351 to give support to abstract interface types
18353 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
18354 in the case where the target type is an anonymous access type of an
18355 object or component (that is, when Is_Local_Anonymous_Access is true).
18356 Prevent the special checks for conversions of access discriminants in
18357 the case where the discriminant belongs to a nonlimited type, since
18358 such discriminants have their accessibility level defined in the same
18359 way as a normal component of an anonymous access type.
18360 (Resolve_Allocator): When an allocator's designated type is a class-wide
18361 type, check that the accessibility level of type given in the
18362 allocator's expression or subtype indication is not statically deeper
18363 than the level of the allocator's access type.
18364 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
18365 name in a discriminant constraint of a record component.
18366 (Resolve_Explicit_Dereference): Do not check whether the type is
18367 incomplete when the dereference is a use of an access discriminant in
18368 an initialization procedure.
18369 (Resolve_Type_Conversion): Handle conversions to abstract interface
18371 (Valid_Tagged_Conversion): The conversion of a tagged type to an
18372 abstract interface type is always valid.
18373 (Valid_Conversion): Modified to give support to abstract interface types
18374 (Resolve_Actuals): Enable full error reporting on view conversions
18375 between unrelated by_reference array types.
18376 The rule for view conversions of arrays with aliased components is
18377 weakened in Ada 2005.
18378 Call to obsolescent subprogram is now considered to be a violation of
18379 pragma Restrictions (No_Obsolescent_Features).
18380 (Check_Direct_Boolean_Operator): If the boolean operation has been
18381 constant-folded, there is nothing to check.
18382 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
18383 check on possible violation of restriction No_Direct_Boolean_Operators
18384 until after expansion of operands, to prevent spurious errors when
18385 operation is constant-folded.
18387 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
18388 Has_Compatible_Type): Modified to give support to abstract interface
18390 (Interface_Present_In_Ancestor): New function to theck if some ancestor
18391 of a given type implements a given interface
18393 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
18394 prefix is a parameterless function that returns an access_to_procedure.
18395 (Transform_Object_Operation): Handle properly function calls of the
18396 form Obj.Op (X), which prior to analysis appear as indexed components.
18397 (Analyze_One_Call): Complete the error notification to help new Ada
18399 (Analyze_Allocator): For an allocator without an initial value, where
18400 the designated type has a constrained partial view, a discriminant
18401 constraint is illegal.
18403 2005-06-14 Robert Dewar <dewar@adacore.com>
18405 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
18406 do with treatment of Set_Col when positioned at end of line character.
18408 2005-06-14 Robert Dewar <dewar@adacore.com>
18410 * atree.adb: (Elist*): Protect against uninitialized field
18412 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18414 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
18415 for an attribute reference that returns an access type.
18416 (Apply_Discriminant_Check): No need for check if (designated) type has
18417 constrained partial view.
18419 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
18420 both bound checks, rather than a conjunction.
18421 (Insert_Valid_Check): If the expression is an actual that is an indexed
18422 component of a bit-packed array, force expansion of the packed element
18423 reference, because it is specifically inhibited elsewhere.
18425 2005-06-14 Vincent Celier <celier@adacore.com>
18427 * clean.adb (Clean_Project): Correctly delete executable specified as
18428 absolute path names.
18430 * make.adb (Gnatmake): Allow relative executable path names with
18431 directory information even when project files are used.
18432 (Change_To_Object_Directory): Fail gracefully when unable to change
18433 current working directory to object directory of a project.
18434 (Gnatmake): Remove exception handler that could no longer be exercized
18435 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
18436 may be deallocated by Normalize_Arguments.
18437 (Collect_Arguments): Eliminate empty arguments
18439 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
18440 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
18441 (Check_Project): Return False when Project is No_Project. Return True
18442 when All_Projects is True.
18443 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
18444 All_Projects to True.
18447 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18448 Javier Miranda <miranda@adacore.com>
18449 Thomas Quinot <quinot@adacore.com>
18450 Robert Dewar <dewar@adacore.com>
18451 Hristian Kirtchev <kirtchev@adacore.com>
18452 Gary Dismukes <dismukes@adacore.com>
18454 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
18455 anonymous access types, to indicate that the accessibility level of
18456 the type is determined by that of the enclosing declaration.
18457 (Has_Persistent_BSS): New flag
18458 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
18459 of this attribute with functions.
18460 (Is_Primitive_Wrapper): Remove the barrier.
18461 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
18462 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
18464 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
18465 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
18467 (Is_Pure_Unit_Access_Type): New flag
18468 (Abstract_Interfaces): Complete the assertion to cover all usages.
18469 (Set_Is_Interface): Complete the assertion to cover all usages.
18470 (Is_Primitive_Wrapper): New attribute.
18471 (Is_Obsolescent): Now applies to all entities (though it is only set
18472 for subprograms currently)
18473 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
18474 which solves various problems concerning access subtypes.
18475 (Has_Persistent_BSS): New flag
18476 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
18477 Remove these subprograms because this attribute is currently
18480 Has_Specified_Stream_Input (Flag190)
18481 Has_Specified_Stream_Output (Flag191)
18482 Has_Specified_Stream_Read (Flag192)
18483 Has_Specified_Stream_Write (Flag193)
18484 Present in all type and subtype entities. Set for a given view if the
18485 corresponding stream-oriented attribute has been defined by an
18486 attribute definition clause. When such a clause occurs, a TSS is set
18487 on the underlying full view; the flags are used to track visibility of
18488 the attribute definition clause for partial or incomplete views.
18489 (Is_Pure_Unit_Access_Type): New flag
18490 Clarify use of Is_Internal.
18491 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
18492 internally generated to wrap the invocation of tasks and protected
18493 types that implement interfaces.
18494 (Implementation_Base_Type): Documentation correction
18495 (Is_Obsolescent): Now applies to all entities (though it is only set
18496 for subprograms currently)
18497 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
18498 which solves various problems concerning access subtypes.
18500 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
18501 for examined parameters. Identify unequal parameter list lengths as
18502 non-conformant parameters.
18503 (Overriding_Possible): Do not check for "All" qualifier in declaration
18504 of controlling access parameter, following prescription of AI-404.
18505 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
18506 that build the procedure body that wraps an entry invocation
18507 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
18508 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
18509 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
18510 give support to abstract interface types
18512 * freeze.adb (Freeze_Entity): Issue error message if
18513 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
18514 type has no storage pool (Ada 2005) AI-366.
18515 Also modified to give support to abstract interface types
18516 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
18517 Inline_Always pragma.
18519 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
18520 now begin an entry declaration.
18521 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
18522 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
18523 a subprogram declaration preceded by an overriding indicator.
18524 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
18525 declarations or subprogram declarations preceded by reserved words
18526 "not" or "overriding".
18527 (P_Entry_Declaration): Update comment. Parse and check overriding
18528 indicator, set semantic flags of entry declarations.
18529 (P_Task): New error message in case of private applied
18530 to a task type declaration.
18531 (P_Protected): New error message in case of private applied
18532 to a task type declaration.
18534 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
18535 in which the full view of a type implementing an interface is a
18537 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
18538 Declare_Inherited_Private_Subprograms): If an explicit operation
18539 overrides an operation that is inherited in the private part, mark the
18540 explicit one as overriding, to enable overriding indicator checks.
18541 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
18542 full view to partial view, to simplify handling in back-end.
18544 * sprint.adb: Print interface lists where needed: derived types,
18545 protected types, task types.
18546 output "is null" for null procedures. Part of implementation of
18548 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
18549 relaxation of rules for access types in pure, shared passive partitions.
18551 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
18552 first read discriminants into temporary objects, performing checks on
18553 the read values, then possibly performing discriminant checks on the
18554 actual (if it is constrained), and only finally reading the components
18555 into a constrained temporary object.
18556 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
18557 case of reading discriminants of a mutable record type to recognize
18558 the new form of the code generated by
18559 Build_Mutable_Record_Read_Procedure.
18561 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
18562 of a simple call to Make_TSS_Name.
18563 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
18564 buffer, in order for Is_TSS to work correctly on local TSS names.
18566 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
18567 Is_Local_Anonymous_Access to check legaliy of attributes in the
18568 context of access components and stand-alone access objects.
18569 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
18570 treated as available for a limited private type if there is an
18571 attribute_definition_clause that applies to its full view, but not in
18572 other cases where the attribute is available for the full view
18573 (specifically, the sole fact that the full view is non-limited does not
18574 make the attribute available for the partial view).
18575 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
18576 non-overloaded intrinsic subprogram.
18577 (Check_Stream_Attribute): Reject an attribute reference for an
18578 unavailable stream attribute even if the prefix is not a limited type
18579 (case of a 'Input attribute reference for an abstract, non-classwide
18581 (Stream_Attribute_Available): New function to determine whether a stream
18582 attribute is available at a place.
18583 (Check_Attribute): Use Stream_Attribute_Available instead of just
18584 testing for TSS presence on the implementation base type.
18585 (Analyze_Attribute): Modified to give support to task interfaces.
18586 (Analyze_Access_Attribute): Add error check for use of an Access (or
18587 Unrestricted_Access) attribute with a subprogram marked as
18589 (Analyze_Attribute, case Attribute_Address): Add error check for use of
18590 an Address attribute with a subprogram marked as Inline_Always.
18591 Update Eval_Attribute to handle new value of Width from AI-395
18593 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
18594 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
18595 Factor common code across the stream-oriented attribute circcuits into
18596 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
18597 processing is functionally identical to the previous duplicated one,
18598 except that an expression that denotes an abstract subprogram will now
18599 be rejected, as mandated by AI-195 item 5.
18601 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
18602 Is_Local_Anonymous_Access to apply accessibility checks to access
18603 components and stand-alone access objects.
18604 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
18606 (Is_Potentially_Persistent_Type): New function
18607 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
18608 a heap-object whose type has a constrained partial view, the object is
18609 unconstrained and the component may depend on a discriminant, making its
18612 * sinfo.ads, sinfo.adb
18613 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
18614 (Must_Override): Flag applicable to N_Entry_Declaration.
18615 Indicate that interface_list can appear in single task and single
18616 protected declarations.
18617 Replace Is_Overriding and Not_Overriding with Must_Override and
18618 Must_Not_Override, to better express intent of AI.
18619 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
18620 of an overriding indicator in a subprogram or instance.
18621 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
18622 Add the overriding indicator [[not] overriding] construct to the
18623 following grammar productions:
18625 GENERIC_INSTANTIATION
18626 SUBPROGRAM_SPECIFICATION
18628 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
18629 can start with an overriding indicator.
18631 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
18632 flags accordingly on subrogram specifications or instances.
18635 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
18636 overriding_indicator, if present, is consistent with status of spec.
18637 Improve error message for null-excluding checks on controlling access
18639 (Check_In_Previous_With_Clause): Protect the frontend against
18640 previously reported critical errors in the context clauses.
18641 Save and restore Ada_Version_Explicit, for implementation of AI-362
18642 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
18643 operation verify that controlling formals of the renamed entity that
18644 are access parameters are explicitly non-null.
18645 (Find_Expanded_Name): Improve error message when prefix is an illegal
18646 reference to a private child unit.
18648 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
18649 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
18650 Rewrite to correspond to new wide character names in AI-395
18652 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
18653 default procedures.
18655 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18656 Robert Dewar <dewar@adacore.com>
18658 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
18659 code, not on the bodies of predefined operations, to cut down on
18662 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18664 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
18665 be expanded in place. The size computation does not require a
18666 subtraction, which would raise an exception on a compiler built with
18667 assertions when the upper bound is Integer'first.
18668 (Flatten): For an array of composite components, take into account the
18669 size of the components to determine whether it is safe to expand the
18670 array into a purely positional representation.
18672 2005-06-14 Thomas Quinot <quinot@adacore.com>
18674 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
18675 denoting a formal parameter into account.
18677 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18679 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
18680 the entry_call alternative of a conditional entry call, wrap the
18681 conditional entry call itself.
18683 2005-06-14 Nicolas Setton <setton@adacore.com>
18684 Ed Schonberg <schonberg@adacore.com>
18686 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
18687 the "simple_choice" member in a variant record, in accordance with the
18688 description in the package spec: the information output for a constant
18689 should be "S number", not "SS number".
18690 (Get_Encoded_Name): Return at once if not generating code. Avoids name
18691 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
18693 2005-06-14 Thomas Quinot <quinot@adacore.com>
18695 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
18696 RACW without any primitives, do not generate the if statement for
18697 dispatching by name in the PolyORB/DSA case, as it would be malformed
18698 (it would have an Elsif_Parts list that is not No_List, but with a
18701 2005-06-14 Robert Dewar <dewar@adacore.com>
18703 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
18705 2005-06-14 Jose Ruiz <ruiz@adacore.com>
18707 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
18708 can determine whether pragma Suppress_Exception_Locations is in effect.
18710 * utils2.c (build_call_raise): Do not pass the file name to the
18711 exception handler if pragma Suppress_Exception_Locations is in effect.
18712 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
18714 2005-06-14 Emmanuel Briot <briot@adacore.com>
18716 * g-debpoo.adb (Deallocate, Dereference): Improve output.
18718 2005-06-14 Nicolas Roche <roche@adacore.com>
18720 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
18722 (Next_Level): Fix minor bug in handling of ../dir case
18723 (Read): Add dir separator to Directory name so that "" is understood as
18726 2005-06-14 Pascal Obry <obry@adacore.com>
18728 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
18729 releasing the items.
18731 2005-06-14 Vincent Celier <celier@adacore.com>
18732 Cyrille Comar <comar@adacore.com>
18734 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
18735 with output file descriptor and with output file name.
18736 (Dup, Dup2): Now global procedures as they are used by two subprograms
18737 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
18739 2005-06-14 Thomas Quinot <quinot@adacore.com>
18742 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
18744 (Create_Selector): Bind listening socket used to create the signalling
18745 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
18746 Set listen backlog to 1 to ensure that we detect socket theft by a
18747 failure of our own connect(2) call.
18748 (Check_Selector): Improve documentation of the selector mechanism.
18749 (Broadcast_Inet_Addr): New constant.
18751 2005-06-14 Gary Dismukes <dismukes@adacore.com>
18753 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
18754 type which turns out to be an incomplete and incorrect fix.
18755 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
18756 of the type is declared in a record (for determination of insertion
18758 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
18759 a private type and ensure that the primary entity is used for the type
18760 of the newly created function's V formal by taking the Etype of the
18763 2005-06-14 Javier Miranda <miranda@adacore.com>
18764 Jose Ruiz <ruiz@adacore.com>
18765 Robert Dewar <dewar@adacore.com>
18766 Ed Schonberg <schonberg@adacore.com>
18768 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
18769 that indicates if we are parsing a compilation unit found in a
18770 limited-with clause.
18771 It is use to avoid the circularity check.
18773 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
18774 we are parsing a compilation unit found in a limited-with clause. This
18775 is use to avoid the circularity check.
18777 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
18778 unit as a consequence of parsing a limited-with clause. This is used
18779 to avoid the circularity check.
18781 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
18782 (Analyze_Context): Limited-with clauses are now allowed
18783 in more compilation units.
18784 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
18785 againts previously reported critical errors in context clauses
18786 (Install_Limited_Withed_Unit): Code cleanup plus static detection
18787 of two further errors: renamed subprograms and renamed packages
18788 are not allowed in limited with clauses.
18789 (Install_Siblings): Do not install private_with_clauses on the package
18790 declaration for a non-private child unit.
18791 (Re_Install_Parents): When a parent of the subunit is reinstalled,
18792 reset visibility of child units properly.
18793 (Install_Withed_Unit): When a child unit appears in a with_clause of its
18794 parent, it is immediately visible.
18796 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18797 Emmanuel Briot <briot@adacore.com>
18799 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
18800 declared within an inlined body as referenced, to prevent spurious
18802 (Output_One_Ref): If an entity renames an array component, indicate in
18803 the ALI file that this aliases (renames) the array. Capture as well
18804 function renamings that rename predefined operations.
18805 Add information about generic parent for package and subprogram
18807 (Get_Type_Reference): For a subtype that is the renaming of an actual in
18808 an instantiation, use the first_subtype to ensure that we don't generate
18809 cross-reference information for internal types.
18810 For objects and parameters of a generic private type, retain the '*'
18811 indicator to distinguish such an entity from its type.
18813 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
18814 to store information about instantiated entities.
18816 * ali.adb (Scan_ALI): Add support for parsing the reference to the
18819 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
18820 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
18823 2005-06-10 Doug Rupp <rupp@adacore.com>
18824 Arnaud Charlet <charlet@adacore.com>
18825 Olivier Hainque <hainque@adacore.com>
18826 Jose Ruiz <ruiz@adacore.com>
18828 * Make-lang.in: Add initialize.o when needed.
18829 Remove obsolete references to RT_FLAGS.
18830 Add missing dependencies for sdefault.o
18832 * initialize.c: New file.
18834 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
18835 [VMS] cond_signal_table: Fix problem in declaration.
18836 [VMS] __gnat_error_handler: rewrite.
18837 Move all __gnat_initialize() routines to initialize.c
18838 Specialize the former "hpux" section to "hppa hpux", as this is what the
18839 section really is here for and we now have other hpux ports that need
18840 different contents.
18841 (__gnat_adjust_context_for_raise) i386-linux: First version of this
18842 function for this target. Adjust PC by one in the machine context. This
18843 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
18844 it is more reliable to do that in the signal handler itself.
18845 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
18846 flags, so that the handler is passed the context structure to adjust
18847 prior to the raise.
18848 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
18849 SA_SIGINFO sigaction should look like. Call
18850 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
18851 Machine_State_Operations stuff.
18852 Add conditional code so that the x86_64 is also supported.
18854 2005-06-14 Pascal Obry <obry@adacore.com>
18856 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
18859 2005-06-14 Robert Dewar <dewar@adacore.com>
18861 * opt.ads, opt.adb: New flags for persistent_bss mode
18862 Add Ada_Version_Explicit, for implementation of AI-362
18863 Add Assertions_Enabled_Config and associated handling
18864 Needed since setting can be changed with Assertion_Policy pragma
18865 Add new flag Warn_On_Ada_2005_Compatibility
18867 * switch-c.adb: Recognize -gnatwy/Y
18868 Set Ada_Version_Explicit, for implementation of AI-362
18869 The -gnatg switch now includes -gnatyu
18871 * usage.adb: Add -gnatwy/Y
18872 Remove wrong asterisk on -gnatwX line
18873 Add line for -gnatyu switch
18875 2005-06-14 Vincent Celier <celier@adacore.com>
18877 * osint.adb (Add_Default_Search_Dirs): Put source and object
18878 directories of project files before directories coming from
18879 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
18881 2005-06-14 Robert Dewar <dewar@adacore.com>
18884 * par-ch2.adb (Scan_Pragma_Argument): New procedure
18885 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
18887 2005-06-14 Vincent Celier <celier@adacore.com>
18889 * prep.adb (Preprocess): Ignore error when scanning the first token of
18892 2005-06-14 Vincent Celier <celier@adacore.com>
18894 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
18895 (Check_Stand_Alone_Library): If the specified reference symbol file does
18896 not exist, only issue a warning when the symbol policy is not
18897 Controlled. And, when symbol policy is Compliant, set the symbol
18898 policy to Autonomous.
18900 2005-06-14 Vincent Celier <celier@adacore.com>
18902 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
18903 when the project file in a with clause is not the last one, that is the
18904 project file name is followed by a comma.
18905 * prj-pp.adb: (First_With_In_List): New Boolean global variable
18906 (Print): Issue list of project files separated by commas in with clauses
18907 according to the values returned by Is_Not_Last_In_List.
18908 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
18909 (Set_Is_Not_Last_In_List): New procedure
18911 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
18913 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
18915 2005-06-14 Robert Dewar <dewar@adacore.com>
18917 * scng.adb: Add call to new Check_EOF routine
18918 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
18919 Add some comments regarding wide character handling
18921 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
18923 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
18925 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
18926 characters are now considered graphic characters and hence yield false
18929 * nmake.adt: Modify header so that xnmake does not generate output
18930 files with multiple blank lines.
18932 * treeprs.adt: Remove a blank line so that output from xtreeprs does
18933 not have an extra blank line
18935 2005-06-14 Gary Dismukes <dismukes@adacore.com>
18937 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
18938 expression when the component type is an anonymous access type to
18939 ensure that appropriate accessibility checks are done.
18941 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
18942 expression of an assignment when the target object is of an anonymous
18943 access type. This ensures that required accessibility checks are done.
18944 (One_Bound): Move the check for type Universal_Integer to
18946 (Process_Bounds): Check whether the type of the preanalyzed range is
18947 Universal_Integer, and in that case set Typ to Integer_Type prior
18948 to setting the type of the original range and the calls to One_Bound.
18950 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18952 * sem_case.adb (Expand_Others_Choice): Improve warning.
18954 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18956 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
18957 constraint of full view if present, when other type is discriminated.
18958 (Eval_Relational_Op): Recognize tests of pointer values against Null,
18959 when the pointer is known to be non-null, and emit appropriate warning.
18961 2005-06-14 Robert Dewar <dewar@adacore.com>
18962 Ed Schonberg <schonberg@adacore.com>
18965 * sem_prag.adb: Implement pragma Persistent_BSS
18966 Remove obsolete pragma Persistent_Data, Persistent_Object
18967 Set Ada_Version_Explicit, for implementation of AI-362
18968 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
18969 Add processing for pragma Pure_05 and Preelaborate_05
18970 Add processing for Assertion_Policy pragma
18971 Add pragma identifiers for Assert
18972 (Analyze_Pragma, case Assert): Check number of arguments
18973 (Process_Inline): Additional guard against an illegal program, where the
18974 argument of the pragma is undefined, and warnings on redundant
18975 constructs are enabled.
18976 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
18977 Ada_05 to this pragma, specifying that the pragma is only active in
18979 (Check_Arg_Order): New procedure
18980 Add appropriate calls to this procedure throughout
18981 Also throughout, check entity name before doing any other checks
18983 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
18984 Remove obsolete pragma Persistent_Data, Persistent_Object
18985 Add entries for pragma Pure_05 and Preelaborate_05
18986 Add entries for Assertion_Policy pragma and associated names
18987 Add some names for pragma argument processing
18989 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
18991 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18993 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
18994 appears within a negation (either from source or as a rewriting of
18995 inequality) adjust text of warning accordingly.
18997 2005-06-14 Thomas Quinot <quinot@adacore.com>
18999 * s-strxdr.adb: Follow AI95-00132
19001 2005-06-14 Arnaud Charlet <charlet@adacore.com>
19003 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
19005 2005-06-14 Arnaud Charlet <charlet@adacore.com>
19006 Jose Ruiz <ruiz@adacore.com>
19008 * s-tposen.adb, s-tpobop.adb
19009 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
19011 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
19012 there is no violation of the Max_Entry_Queue_Length restriction (if it
19013 has been set); Program_Error is raised otherwise.
19014 (Requeue_Call): Before requeuing the task on the target entry queue we
19015 check that there is no violation of the Max_Entry_Queue_Length
19016 restriction (if it has been set); Program_Error is raised otherwise.
19018 2005-06-14 Robert Dewar <dewar@adacore.com>
19020 * styleg.adb: Fix several remaining problems in -gnatyu switch
19021 Blank line count not reset at start
19022 Scanning outside source buffer in some cases
19023 Confusing message for blanks at end of file
19024 Non-empty blank lines not recognized
19026 * nmake.adt: Modify header so that xnmake does not generate output
19027 files with multiple blank lines.
19029 * treeprs.adt: Remove a blank line so that output from xtreeprs does
19030 not have an extra blank line
19032 2005-06-14 Sergey Rybin <rybin@adacore.com>
19034 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
19036 2005-06-14 Doug Rupp <rupp@adacore.com>
19037 Vincent Celier <celier@adacore.com>
19039 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
19042 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19043 Remove "Library" command.
19044 Change keyword for style check -gnatyd from NOCRLF to
19046 Remove useless second style check keyword NONE
19047 Remove help documentation for inexistent style check keyword
19049 Add help documentation for style check keywords DOS_LINE_ENDINGS,
19050 UNNECESSARY_BLANK_LINES and XTRA_PARENS
19051 Add UNNECESSARY_BLANK_LINES for -gnatyu
19052 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
19054 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19056 2005-06-14 Vincent Celier <celier@adacore.com>
19058 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
19059 gprmake was invoked with -d.
19060 (Compile_Sources): If -d was used, output the "completed ..." message
19061 for each compilation.
19062 (Scan_Arg): Recognize new switch -d
19063 When -c and at least one main is specified, set
19064 Unique_Compile to True to guarantee that no other sources will be
19067 2005-06-14 Matthew Heaney <heaney@adacore.com>
19069 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
19070 * a-swuwha.ads, a-swuwha.adb: New files
19072 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
19073 * a-szuzha.ads, a-szuzha.adb: New files.
19075 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19076 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
19077 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
19078 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
19079 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
19080 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
19081 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
19082 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
19083 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
19084 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
19087 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
19088 Olivier Hainque <hainque@adacore.com>
19089 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19090 Pascal Obry <obry@adacore.com>
19092 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
19094 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
19095 making a temporary around a procedure call because of non-addressable
19097 (process_freeze_entity): If entity is a private type, capture size
19098 information that may have been computed for the full view.
19099 (tree_transform, case N_Allocator): If have initializing expression,
19100 check type for Has_Constrained_Partial_View and pass that to
19102 (tree_transform, case N_Return_Statement): Pass extra arg to
19105 * decl.c (annotate_value): Remove early return if -gnatR is not
19107 (gnat_to_gnu_field): Don't make a packable type for a component clause
19108 if the position is byte aligned, the field is aliased, and the clause
19109 size isn't a multiple of the packable alignment. It serves no useful
19110 purpose packing-wise and would be rejected later on.
19111 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
19114 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
19115 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
19117 (create_concat_name): Idem.
19119 2005-06-10 Robert Dewar <dewar@adacore.com>
19120 Eric Botcazou <ebotcazou@adacore.com>
19121 Ben Brosgol <brosgol@adacore.com>
19122 Cyrille Comar <comar@adacore.com>
19123 Sergey Rybin <rybin@adacore.com>
19124 Pascal Obry <obry@adacore.com>
19126 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
19127 Document second argument (Ada_05) of pragma Obsolescent
19128 Add note that call to subprogram marked with pragma Obsolescent
19129 is now considered to be a violation of program Restrictions
19130 (No_Obsolescent_Features).
19131 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
19132 that only machine-dependent attributes are supported.
19135 Commented out menu lines and empty section for gnatclean examples
19137 Fix some over long lines
19138 Clarify and enhance documentation of ADA_PROJECT_PATH.
19139 Rework section 2.11.2(3) about linking with a non-GNU compiler.
19140 Mention new switch -fcallgraph-info.
19141 Mention new switch -fstack-usage.
19142 For gnatpp, replace '-notab' with '-N' and add this option to Index
19143 Corrected VMS example.
19144 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
19146 Add documentation for -gnatyu switch (unnecessary blank lines)
19147 Document new switch -U for GNAT PRETTY and GNAT METRIC
19148 Add note about Stdcall being handled as C convention on non Windows OS.
19149 Remove some junk typo in description of gnatbind -S switch
19150 Remove reference to Extensions_Allowed pragma
19151 Document the new order of the directories to be searched (source and
19152 object directories of project files before directories in ADA_*_PATH
19153 environment variables.
19155 * g-trasym.ads: Document that IRIX is supported
19157 2005-06-10 Arnaud Charlet <charlet@adacore.com>
19159 * Makefile.in: Add initialize.o when needed.
19160 Adapt to new VMS package body Symbols and subunits
19161 No specialized version of a-sytaco is needed for VxWorks.
19163 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
19164 * a-zchara.ads, a-widcha.ads: New files.
19166 * system-hpux-ia64.ads: New file.
19168 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
19169 is imported from the VxWorks kernel.
19171 2005-06-14 Robert Dewar <dewar@adacore.com>
19173 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
19174 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
19175 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
19176 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
19177 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
19178 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
19179 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
19180 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
19181 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
19182 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
19183 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
19184 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
19186 2005-06-14 Thomas Quinot <quinot@adacore.com>
19188 * xeinfo.adb: Fix typo in comment
19190 2005-06-14 Javier Miranda <miranda@adacore.com>
19192 * repinfo.ads: Fix typo in comment
19194 2005-06-14 Gary Dismukes <dismukes@adacore.com>
19196 * s-finimp.adb (Parent_Tag): Delete this imported function (function
19197 Parent_Tag is now in the visible part of Ada.Tags).
19198 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
19199 using imported function.
19201 2005-06-14 Bernard Banner <banner@adacore.com>
19203 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
19204 also apply for handling support for VxSim 653.
19206 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
19208 * xsnames.adb: Add automatic generation of snames.h.
19210 2005-06-14 Thomas Quinot <quinot@adacore.com>
19212 * gen-soccon.c: Add IP_MULTICAST_IF constant
19213 Minor reformatting and adjustments to prevent warnings.
19215 2005-06-14 Pascal Obry <obry@adacore.com>
19217 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
19219 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
19221 * trans.c (gnat_gimplify_expr): Call
19222 recompute_tree_invarant_for_addr_expr when we change
19223 the operand of the ADDR_EXPR.
19225 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19227 * misc.c: Don't include errors.h.
19229 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19231 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
19233 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
19235 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
19237 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
19239 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
19242 * Makefile.in: Make TGT_LIB behave correctly.
19244 2005-04-23 DJ Delorie <dj@redhat.com>
19246 * misc.c: Adjust warning() callers.
19248 2005-04-16 Laurent GUERBY <laurent@guerby.net>
19251 * a-nudira.adb (Value): Check for valid string.
19252 * a-nuflra.adb (Value): Likewise.
19254 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
19256 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
19258 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
19260 * adaint.c, init.c, tracebak.c: Fix comment typos.
19261 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
19263 2005-04-07 Laurent GUERBY <laurent@guerby.net>
19264 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19266 * Makefile.in: Add make ifeq define for hppa linux tasking support.
19267 * system-hpux.ads: Define Signed_Zeros to be True.
19268 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
19270 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
19272 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
19273 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
19276 2005-03-30 Tom Tromey <tromey@redhat.com>
19278 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
19280 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
19282 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
19284 2005-03-29 Robert Dewar <dewar@adacore.com>
19286 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
19287 fixed-point expression has value that is not a multiple of the Small
19290 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
19292 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
19295 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
19297 2005-03-29 Vincent Celier <celier@adacore.com>
19299 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
19300 (Build_Dynamic_Library.Version_String): Return the empty string when
19301 Lib_Version is empty or when the symbol policy is not Autonomous.
19303 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
19304 a symbol is not in the reference symbol file, increase the Major ID
19305 and set the Minor ID to 0.
19306 Use gsmatch=lequal instead of gsmatch=equal
19308 2005-03-29 Doug Rupp <rupp@adacore.com>
19310 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
19311 name and translate.
19313 2005-03-29 Javier Miranda <miranda@adacore.com>
19315 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
19316 (Inherit_DT): The first formal has been redefined as a Tag.
19317 This allows us the removal of the subprogram Get_TSD.
19318 (TSD): Replace the call to Get_TSD by the actual code.
19320 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
19321 (Make_DT): Upgrade the call to Inherit_TSD according to the
19322 new interface: the first formal is now a Tag.
19324 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
19325 redefined as a Tag.
19326 This change allows us to remove the subprogram Get_TSD.
19327 (CPP_Get_TSD): Subprogram removed.
19328 (TSD): Replace the call to CPP_Get_TSD by the actual code.
19330 * rtsfind.ads: Remove support to call the run-time
19333 2005-03-29 Robert Dewar <dewar@adacore.com>
19335 * errutil.adb, errout.adb:
19336 Minor comment updates on Line_Terminator references
19338 * par-ch10.adb: Add ??? comment about line terminator
19340 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
19341 (check dos line terminator).
19342 (Check_Line_Max_Length): New procedure, split off from the existing
19343 Check_Line_Terminator routine. Separating this out allows -gnatyf to
19344 be properly recognized.
19346 * styleg.adb: Add ??? comment for line terminator reference
19348 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
19349 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
19351 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
19352 (check dos line terminator).
19353 (Check_Line_Max_Length): New procedure, split off from the existing
19354 Check_Line_Terminator routine. Separating this out allows -gnatyf to
19355 be properly recognized.
19357 * stylesw.ads, stylesw.adb:
19358 Add handling for new -gnatyd switch (check dos line terminator)
19360 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
19361 Recognize -gnatwb/-gnatwB switches
19362 Include Warn_On_Bad_Fixed_Value for -gnatg
19365 Add line for new -gnatyd switch (check dos line terminator)
19367 * usage.adb: Add lines for -gnatwb/-gnatwB
19369 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
19371 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
19373 * gnat_ugn.texi: Fix overlong lines
19374 Document new -gnatyd switch
19375 Document new -gnatwb/-gnatwB switches
19377 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19379 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
19380 order to retrieve the component list of the type, before examining
19381 individual components.
19383 * sem_type.adb (Covers): Types are compatible if one is the base type
19384 of the other, even though their base types might differ when private
19385 views are involved.
19387 2005-03-29 Thomas Quinot <quinot@adacore.com>
19389 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
19390 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
19391 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
19392 analyzed if expansion is disabled (which could otherwise cause spurious
19393 error messages if expansion has been disabled due to previous
19394 (unrelated) errors).
19396 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
19397 is disabled, the entity denoted by the argument is the access type
19398 itself, not an underlying record type, so there is no need to go back
19399 to the Corresponding_Remote_Type.
19401 2005-03-29 Gary Dismukes <dismukes@adacore.com>
19402 Robert Dewar <dewar@adacore.com>
19404 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
19405 expand a call to an instance of
19406 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
19407 Constructor actual of the instance. A class-wide membership
19408 check is also generated, to ensure that the tag passed to the instance
19409 denotes a type in the class.
19410 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
19411 of Name_Generic_Dispatching_Constructor.
19413 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
19414 05 unit for AI-260-02).
19416 * a-tgdico.ads: New file.
19418 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
19419 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
19421 * snames.ads, snames.adb (Preset_Names): Add entry for
19422 Generic_Dispatching_Constructor.
19425 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
19426 character type cases.
19427 (Analyze_Subprogram_Renaming): Add special handling for
19428 the case of renaming of stream attributes when the renaming denotes a
19429 generic formal subprogram association for an abstract formal subprogram.
19430 Check that the attribute is a primitive stream attribute (and not
19431 a class-wide stream attribute) and then rewrite the attribute name
19432 as the name of the appropriate compiler-generated stream primitive.
19434 2005-03-29 Robert Dewar <dewar@adacore.com>
19436 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
19438 (Is_Possibly_Unaligned_Object): Correct typo that
19439 resulted in inaccurate result for unaligned scalars within records.
19441 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19443 * freeze.adb (Freeze_Record_Type): If the type of the component is an
19444 itype whose parent is controlled and not yet frozen, do not create a
19445 freeze node for the itype if expansion is disabled.
19447 2005-03-29 Vincent Celier <celier@adacore.com>
19449 * make.adb (Gnatmake): Don't fail if the main project file is declared
19450 as having no Ada sources. Do not display message "no sources to
19451 compile" in quiet output.
19453 2005-03-29 Doug Rupp <rupp@adacore.com>
19455 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
19458 2005-03-29 Robert Dewar <dewar@adacore.com>
19460 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
19463 2005-03-29 Robert Dewar <dewar@adacore.com>
19465 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
19466 missing TYPE Improve the error message generated when compiling a
19467 limited interface in Ada83 or Ada95 mode.
19469 2005-03-29 Robert Dewar <dewar@adacore.com>
19471 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
19472 rather than proceed ahead using a junk attribute name.
19474 2005-03-29 Vincent Celier <celier@adacore.com>
19476 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
19478 * prj-part.adb (Parse_Single_Project): Set the location of a project
19479 on its defining identifier, rather than on the reserved word "project".
19481 * prj-proc.adb (Expression): Adapt to the fact that default of external
19482 references may be string expressions, not always literal strings.
19483 (Recursive_Process): Set Display_Name equal to Name
19484 when Location is No_Location, that is when there is no actual file.
19485 Get the Display_Name of the project from the source, when it is not a
19487 (Process): Use the Display_Name in error messages
19489 * prj-strt.adb (External_Reference): Allow default to be string
19490 expressions, not only literal strings.
19492 2005-03-29 Vincent Celier <celier@adacore.com>
19494 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
19495 file and the reference symbol file to be the same file.
19497 2005-03-29 Thomas Quinot <quinot@adacore.com>
19499 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
19500 forbid conversion of a local access-to-subprogram type to a remote one.
19502 * sem_util.adb (Wrong_Type): For a record type that is the expanded
19503 equivalent type for a remote access-to-subprogram type, go back to the
19504 original RAS entity when displaying an error message, so the casing is
19505 the original source casing.
19507 2005-03-29 Robert Dewar <dewar@adacore.com>
19509 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
19512 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19514 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
19515 subtype if code is being pre-analyzed, to prevent un-expanded
19516 references to protected formals, among others.
19517 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
19518 interpretation that can be a call, include the result of the call as a
19519 possible interpretation of the dereference.
19521 * sem_ch5.adb (Process_Bounds): Determine type of range by
19522 pre-analyzing a copy of the original range, and then analyze the range
19523 with the expected type.
19525 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
19526 with an overloaded prefix where not all interpretations yield an
19527 access to subprogram, do not rewrite node as a call.
19528 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
19529 the node as a call once the context identifies the interpretation of
19530 the prefix whose call yields the context type.
19531 (Valid_Conversion): For the case of a conversion between
19532 local access-to-subprogram types, check subtype conformance using
19533 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
19534 detailed error message.
19536 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19538 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
19539 indicator, indicate that the formal can never be null.
19540 (Process_Formals): If a formal has a non_null indicator, insert the
19541 resulting subtype immediately before the enclosing subprogram decl,
19542 and not at the beginning of the corresponding declarative part, to
19543 prevent access before elaboration (Ada2005).
19545 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19548 * utils.c (finish_record_type): Use variable_size when setting sizes.
19550 2005-03-29 Robert Dewar <dewar@adacore.com>
19552 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
19553 guarantee Unix style line terminators for the output files, even when
19554 running on windows.
19556 2005-03-29 Robert Dewar <dewar@adacore.com>
19558 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
19559 buffer if an exception is raised.
19561 2005-03-29 Ed Falis <falis@adacore.com>
19563 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
19566 2005-03-29 Robert Dewar <dewar@adacore.com>
19568 * sem_util.ads: Minor reformatting
19569 * gnat_rm.texi: Minor editing.
19571 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
19573 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
19574 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
19576 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
19578 * adaint.c (__gnat_portable_spawn): Adjust cast.
19580 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
19582 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
19584 2005-03-17 Pascal Obry <obry@adacore.com>
19586 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
19589 * expect.c (__gnat_waitpid): Moved here from adaint.c.
19590 Reimplement under Win32 using Win32 API.
19592 (__gnat_kill) [Win32]: Properly close the process handle before leaving
19595 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
19597 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
19598 (DECL_RENAMED_OBJECT): New accessor macro.
19599 (SET_DECL_RENAMED_OBJECT): New setter macro.
19601 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
19602 object in all cases. Attach the renamed object to the VAR_DECL.
19603 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
19604 field is not prescribed.
19606 * misc.c (gnat_handle_option): Handle -gnatO separately.
19607 (gnat_print_decl) <VAR_DECL>: New case.
19608 Print the DECL_RENAMED_OBJECT node.
19610 * lang.opt: Declare separate -gnatO option.
19612 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
19613 pointer, replace it with the renamed object.
19614 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
19615 pointer type if the source is not a fat pointer type whose underlying
19616 array has the same non-zero alias set as that of the destination array.
19618 2005-03-17 Javier Miranda <miranda@adacore.com>
19620 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
19621 (Get_Inheritance_Depth): Removed.
19622 (Set_Inheritance_Depth): Removed.
19624 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
19625 subprogram Get_Expanded_Name because it is not referenced by the
19628 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
19629 (CPP_Get_Inheritance_Depth): Removed.
19630 (CPP_Set_Inheritance_Depth): Removed.
19632 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
19634 2005-03-17 Robert Dewar <dewar@adacore.com>
19636 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
19637 3, since we now expect GCC 3 to do all the work.
19639 2005-03-17 Javier Miranda <miranda@adacore.com>
19641 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
19642 of one barrier to avoid wrong usage of this attribute.
19644 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
19645 First_Private_Entity.
19647 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
19648 the subprogram against wrong usage.
19649 Adapt the code to traverse the entities in the
19650 scope of a record_type because in addition to its usage regarding
19651 packages, this subprogram is also called by Expand_N_Freeze_Entity
19652 to install the visible declarations of the enclosing scope of a
19653 record_type_with_private to establish the proper visibility before
19654 freezing the entity and related subprograms.
19656 2005-03-17 Ed Schonberg <schonberg@adacore.com>
19658 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
19661 2005-03-17 Thomas Quinot <quinot@adacore.com>
19663 * exp_ch3.adb (Check_Attr): New subprogram.
19664 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
19665 into a new Check_Attr subprogram, in order to provide a more
19666 explanatory error message (including the name of the missing attribute).
19667 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
19668 subprogram determines whether a default implementation exists for a
19669 given stream attribute.
19670 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
19671 Determine whether to generate a default implementation for each stream
19672 attribute separately, as this depends on the specific attribute.
19674 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
19675 limited extension where a stream attribute is missing for a limited
19676 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
19677 generate a bogus reference to the missing attribute to prevent
19678 cascaded errors. Instead, generate a null statement.
19680 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
19681 available for a limited type if it has been specified for an ancestor
19684 2005-03-17 Ed Schonberg <schonberg@adacore.com>
19686 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
19687 entity is an operator.
19689 2005-03-17 Thomas Quinot <quinot@adacore.com>
19691 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19692 spec, to make this predicate available to other units.
19694 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
19697 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
19698 when no distribution runtime library is available.
19700 * sem_res.adb, sem_dist.adb: Disable expansion of remote
19701 access-to-subprogram types when no distribution runtime library is
19703 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
19704 predicate available to other units.
19706 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19707 spec, to make this predicate available to other units.
19709 2005-03-17 Vincent Celier <celier@adacore.com>
19711 * make.adb (Insert_Project_Sources): Make sure the Q is always
19714 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
19715 the default for the tree, not the global default naming.
19717 * prj-proc.adb (Recursive_Process): No need to put the default naming
19718 in the project data, it's already there.
19720 2005-03-17 Doug Rupp <rupp@adacore.com>
19722 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
19724 * 5xcrtl.ads: Renamed to...
19725 * s-crtl-vms64.ads: ...this new file
19727 2005-03-17 Robert Dewar <dewar@adacore.com>
19730 * namet.adb (Copy_One_Character): Set proper wide character encoding
19731 for upper half character if we have upper half encoding.
19733 2005-03-17 Robert Dewar <dewar@adacore.com>
19735 * par.adb (Par): Improved msg for attempt to recompile predefined unit
19737 2005-03-17 Thomas Quinot <quinot@adacore.com>
19739 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
19740 tagged limited type, the TSS is a newly built renaming declaration:
19741 insert it using Set_TSS, not Copy_TSS.
19743 2005-03-17 Javier Miranda <miranda@adacore.com>
19745 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
19746 Try_Object_Operation): Analyze the object that is accessible
19747 through the prefix of the subprogram call before we apply
19748 the transformation of the object-operation notation.
19750 2005-03-17 Jose Ruiz <ruiz@adacore.com>
19752 * s-taprob.adb (Initialize_Protection): Initialize the protected
19753 object's owner to Null_Task.
19754 (Lock): If pragma Detect_Blocking is in effect and the caller of this
19755 procedure is already the protected object's owner then Program_Error
19756 is raised. In addition the protected object's owner is updated.
19757 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
19758 of this procedure is already the protected object's owner then
19759 Program_Error is raised.
19760 In addition the protected object's owner is updated.
19761 (Unlock): Remove the ownership of the protected object.
19763 * s-taprob.ads (Protection): Add the field Owner, used to store the
19764 protected object's owner.
19765 This component is needed for detecting one type of potentially blocking
19766 operations (external calls on a protected subprogram with the same
19767 target object as that of the protected action). Document the rest of
19770 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
19771 Initialize the protected object's owner to Null_Task.
19772 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
19773 caller of this procedure is already the protected object's owner then
19774 Program_Error is raised.
19775 Do not raise Program_Error when this procedure is called from a
19777 (Unlock_Entries): Remove the ownership of the protected object.
19778 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
19779 of this procedure is already the protected object's owner then
19780 Program_Error is raised.
19781 Do not raise Program_Error when this procedure is called from
19782 a protected action.
19784 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
19785 used to store the protected object's owner.
19787 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
19788 effect and this procedure (a potentially blocking operation) is called
19789 from whithin a protected action, Program_Error is raised.
19790 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
19791 and this procedure (a potentially blocking operation) is called from
19792 whithin a protected action, Program_Error is raised.
19794 2005-03-17 Vincent Celier <celier@adacore.com>
19795 Nicolas Setton <setton@adacore.com>
19797 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
19798 switch, not supported by the linker on Darwin. Add '_' before
19799 <library>init, as this character is added unconditionally by the
19801 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
19802 correct one ".dylib". This fixes detection of the archive files when
19803 building library projects.
19805 2005-03-17 Vincent Celier <celier@adacore.com>
19807 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
19808 -gnat83, -gnat95 and -gnat05.
19810 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
19812 * gnat_ugn.texi: Document gnatmem restriction
19814 2005-03-17 Thomas Quinot <quinot@adacore.com>
19816 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
19819 2005-03-17 Robert Dewar <dewar@adacore.com>
19821 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
19822 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
19823 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
19825 * casing.adb: Comment improvements
19827 2005-03-17 Pascal Obry <obry@adacore.com>
19829 * g-expect.adb: Minor reformatting.
19831 2005-03-15 Zack Weinberg <zack@codesourcery.com>
19833 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
19834 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
19837 2005-03-15 Vincent Celier <celier@adacore.com>
19839 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
19840 Add new parameter In_Tree to specify the project tree: needed
19841 by the project manager. Adapt to changes in project manager
19842 using new parameter In_Tree.
19844 2005-03-15 Jakub Jelinek <jakub@redhat.com>
19846 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
19847 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
19848 ada/bldtools to avoid make -jN failures.
19850 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
19852 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
19853 to NULL_TREE on entry.
19855 2005-03-15 Robert Dewar <dewar@adacore.com>
19857 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
19858 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
19859 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19860 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
19861 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
19862 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
19863 system-interix.ads, system-solaris-sparc.ads,
19864 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
19865 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
19866 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19867 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
19868 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
19869 Compiler_System_Version to be False.
19871 * opt.ads: Add new flag Opt.Address_Is_Private
19873 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
19874 Add new parameter Compiler_System_Version to avoid checking for
19875 completeness of parameters when compiler is compiling itself.
19876 Allows old versions of GNAT to be compiled with new compiler.
19878 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
19880 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
19881 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
19883 (Stack_Base_Available): New flag.
19884 (Get_Page_Size): New overloaded functions imported from C.
19885 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
19886 PROT_ON, PROT_OFF): New constants.
19887 (mprotect): New function imported from C.
19888 (pthread_teb_t): New record type.
19890 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
19891 (Create_Task): Account for the Yellow Zone and the guard page.
19893 2005-03-15 Vincent Celier <celier@adacore.com>
19895 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19896 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19897 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
19898 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
19899 Library_File_Name_For): Add new parameter In_Tree
19900 to specify the project tree: needed by the project manager.
19901 Adapt to changes in project manager using new parameter In_Tree.
19902 Remove local imports, use functions in System.CRTL.
19904 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
19905 to use the project manager.
19907 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
19908 In_Tree to designate the project tree. Adapt to changes in the project
19909 manager, using In_Tree.
19911 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
19912 Copy_Interface_Sources): Add new parameter In_Tree to specify the
19913 project tree: needed by the project manager.
19914 (Build_Library): Check that Arg'Length >= 6 before checking if it
19915 contains "--RTS=...".
19917 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
19918 Library_File_Name_For): Add new parameter In_Tree to specify the
19919 project tree: needed by the project manager.
19921 * prj.ads, prj.adb: Major modifications to allow several project trees
19922 in memory at the same time.
19923 Change tables to dynamic tables and hash tables to dynamic hash
19924 tables. Move tables and hash tables from Prj.Com (in the visible part)
19925 and Prj.Env (in the private part). Move some constants from the visible
19926 part to the private part. Make other constants deferred.
19927 (Project_Empty): Make it a variable, not a function
19928 (Empty_Project): Add parameter Tree. Returns the data with the default
19929 naming data of the project tree Tree.
19930 (Initialize): After updating Std_Naming_Data, copy its value to the
19931 component Naming of Project Empty.
19932 (Register_Default_Naming_Scheme): Use and update the default naming
19933 component of the project tree, instead of the global variable
19935 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
19936 Tree is not defaulted, return the default naming data of the Tree.
19937 (Initial_Buffer_Size): Constant moved from private part
19938 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
19939 variables initialized in procedure Initialize.
19940 (Add_To_Buffer): Add two in out parameters to replace global variables
19941 Buffer and Buffer_Last.
19942 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
19944 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
19946 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19947 for the project tree.
19948 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
19949 constant at the beginning of the package spec, so that they cane be used
19950 in subprograms before their full declarations.
19951 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
19952 (Empty_Project): Add parameter of type Project_Node_Ref
19953 (Private_Project_Tree_Data): Add component Default_Naming of type
19955 (Buffer, Buffer_Last): remove global variables
19956 (Add_To_Buffer): Add two in out parameters to replace global variables
19957 Buffer and Buffer_Last.
19958 (Current_Packages_To_Check): Remove global variable
19959 (Empty_Name): Move to private part
19960 (No-Symbols): Make it a constant
19961 (Private_Project_Tree_Data): New type for the private part of the
19963 (Project_Tree_Data): New type for the data of a project tree
19964 (Project_Tree_Ref): New type to designate a project tree
19965 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19966 for the project tree.
19968 * prj-attr.ads: Add with Table; needed, as package Prj no longer
19969 imports package Table.
19971 * prj-com.adb: Remove empty, no longer needed body
19973 * prj-com.ads: Move most of the content of this package to package Prj.
19975 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
19976 designate the project node tree and Packages_To_Check to replace
19977 global variable Current_Packages_To_Check.
19978 Add new parameters In_Tree and Packages_To_Check to local subprograms,
19979 when needed. Adapt to changes in project manager with project node tree
19982 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
19983 project tree to most subprograms. Move tables and hash tables to
19984 private part of package Prj.
19985 Adapt to changes in project manager using project tree In_Tree.
19987 * prj-makr.adb (Tree): New constant to designate the project node tree
19988 Adapt to change in project manager using project node tree Tree
19990 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
19991 display the Library_Src_Dir and the Library_Dir.
19992 Add new parameter In_Tree to designate the project node tree to most
19993 subprograms. Adapt to changes in the project manager, using project tree
19995 (Check_Naming_Scheme): Do not alter the casing on platforms where
19996 the casing of file names is not significant.
19997 (Check): Add new parameter In_Tree to designate the
19999 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
20000 designate the project tree.
20001 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
20003 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
20004 to replace those that were in the private part of package Prj.
20005 Add new parameter In__Tree to designate the project node tree to most
20006 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20007 (Post_Parse_Context_Clause): When specifying the project node of a with
20008 clause, indicate that it is a limited with only if there is "limited"
20009 in the with clause, not necessarily when In_Limited is True.
20010 (Parse): Add new parameter In_Tree to designate the project node tree
20012 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
20013 designate the project node tree. Adapt to change in Prj.Tree with
20014 project node tree In_Tree.
20016 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
20017 tree In_Tree in the call to function Empty_Process to give its initial
20018 value to the project data Processed_Data.
20019 Add new parameters In_Tree to designate the project tree and
20020 From_Project_Node_Tree to designate the project node tree to several
20021 subprograms. Adapt to change in project manager with project tree
20022 In_Tree and project node tree From_Project_Node_Tree.
20024 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
20025 to replace those that were in the private part of package Prj.
20026 Add new parameter In_Tree to designate the project node tree to most
20027 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20029 * prj-tree.ads, prj-tree.adb: Add new parameter of type
20030 Project_Node_Tree_Ref to most subprograms.
20031 Use this new parameter to store project nodes in the designated project
20033 (Project_Node_Tree_Ref): New type to designate a project node tree
20034 (Tree_Private_Part): Change table to dynamic table and hash tables to
20035 dynamic hash tables.
20037 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
20038 the project tree to most subprograms. Adapt to changes in project
20039 manager using project tree In_Tree.
20041 * makegpr.adb (Project_Tree): New constant needed to use project
20044 2005-03-15 Olivier Hainque <hainque@adacore.com>
20046 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
20047 for sigactions with SA_SIGINFO set. Call
20048 __gnat_adjust_context_for_raise before raising, to perform the
20049 potentially required adjustments to the machine context for the GCC
20052 * raise.h (__gnat_adjust_context_for_raise): New prototype.
20054 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
20055 Adjust PC by one in the provided machine context.
20056 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
20057 so that the handler is passed the context structure to adjust prior to
20059 (__gnat_error_handler) HPUX: Adjust the signature to match what an
20060 SA_SIGINFO sigaction should look like. Call
20061 __gnat_adjust_context_for_raise before actually raising.
20062 (__gnat_adjust_context_for_raise): Default noop to help PC
20063 adjustments before raise from signal handlers.
20064 (__gnat_error_handler): Indirectly call a predicate function to
20065 determine if a condition should be resignaled or not.
20066 (__gnat_set_resignal_predicate): User interface to modify the predicate.
20067 (__gnat_default_resignal_p): Default GNAT predicate.
20069 2005-03-15 Doug Rupp <rupp@adacore.com>
20071 * adaint.c: Prefix #include of VMS system header files with vms/
20072 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
20073 Do not define a dummy function "convert_addresses" under Darwin,
20076 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
20079 2005-03-15 Nicolas Setton <setton@adacore.com>
20081 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
20084 2005-03-15 Robert Dewar <dewar@adacore.com>
20086 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
20089 * a-retide.ads: Minor comment changes
20091 2005-03-15 Robert Dewar <dewar@adacore.com>
20093 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
20094 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
20095 Realloc_For_Chunk to private part of package.
20096 New subprograms for AI-301
20098 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
20099 Get_Line procedure.
20100 Avoid unnecessary use of Get/Set_Wide_String
20102 2005-03-15 Robert Dewar <dewar@adacore.com>
20105 * a-stunau.ads, a-stunau.adb:
20106 Change interface to allow efficient (and correct) implementation
20107 The previous changes to allow extra space in unbounded strings had
20108 left this interface a bit broken.
20110 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
20112 * g-spipat.ads, g-spipat.adb: New interface for Get_String
20113 Minor reformatting (function specs)
20115 * g-spitbo.adb: New interface for Get_String
20117 * g-spitbo.ads: Minor reformatting
20119 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
20121 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
20123 2005-03-15 Javier Miranda <miranda@adacore.com>
20124 Robert Dewar <dewar@adacore.com>
20125 Thomas Quinot <quinot@adacore.com>
20126 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20128 * atree.ads, atree.adb: Add support for Elist24 field
20130 * atree.h: Fix wrong definition of Field27
20131 Add support for Elist16 field
20132 Add support for Elist24 field
20134 * einfo.ads, einfo.adb (Abstract_Interfaces,
20135 Set_Abstract_Interfaces): New subprograms.
20136 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
20138 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
20139 entities rather than a single node.
20140 (Is_Interface, Set_Is_Interface): New subprogram
20141 (First_Tag_Component): New syntesized attribute
20142 (Next_Tag_Component): New synthesized attribute
20143 (Write_Entity_Flags): Upgraded to write Is_Interface
20144 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
20145 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
20146 (Task_Body_Procedure): New subprogram to read this attribute.
20147 (Set_Task_Body_Procedure): New subprogram to set this attribute.
20148 (Has_Controlled_Component): Now applies to all entities.
20149 This is only a documentation change, since it always worked to apply
20150 this to other than composite types (yielding false), but now this is
20152 Update documentation on Must_Be_Byte_Aligned for new spec
20154 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
20155 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
20156 uses of the Access_Disp_Table attribute to reference the first dispatch
20157 table associated with a tagged type. As
20158 part of the implementation of abstract interface types,
20159 Access_Disp_Table has been redefined to contain a list of dispatch
20160 tables (rather than a single dispatch table).
20161 Similarly, upgrade all the references to Tag_Component by the
20162 new attribute First_Tag_Component.
20163 (Find_Inherited_TSS): Moved to exp_tss.
20164 Clean up test in Expand_N_Object_Declaration for cases
20165 where we need to do a separate assignment of the initial value.
20166 (Expand_N_Object_Declaration): If the expression in the
20167 declaration of a tagged type is an aggregate, no need to generate an
20168 additional tag assignment.
20169 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
20171 Bit packed array ops are only called if operands are known to be
20173 (Component_Equality): When returning an N_Raise_Program_Error statement,
20174 ensure that its Etype is set to Empty to avoid confusing GIGI (which
20175 expects that only expressions have a bona fide type).
20176 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
20177 determine the amount of data to be copied.
20179 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
20180 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
20181 INTERFACE_TYPE_DEFINITION ::=
20182 [limited | task | protected | synchronized] interface
20183 [AND interface_list]
20185 * par-ch3.adb (P_Type_Declaration): Modified to give support to
20187 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
20189 (P_Interface_Type_Definition): New subprogram that parses the new
20190 syntax rule of Ada 2005 interfaces
20191 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
20192 messages by the correct RENAMES (quotes removed).
20194 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
20195 attribute First_Tag_Component.
20197 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
20198 (Interface_List, Set_Interface_List): New subprograms.
20199 (Interface_Present, Set_Interface_Present): New subprograms.
20200 (Limited_Present, Set_Limited_Present): Available also in derived
20201 type definition nodes.
20202 (Protected_Present, Set_Protected_Present): Available also in
20203 record type definition and
20204 derived type definition nodes.
20205 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
20206 (Task_Present, Set_Task_Present): New subprogram.
20207 (Task_Body_Procedure): Removed.
20208 (Set_Task_Body_Procedure): Removed.
20209 These subprogram have been removed because the attribute
20210 Task_Body_Procedure has been moved to the corresponding task type
20211 or task subtype entity to leave a field free to store the list
20212 of interfaces implemented by a task (for AI-345)
20213 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
20214 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
20215 expression flag Do_Range_Check
20216 (Exception_Junk): Change to Flag7 to accomodate above change
20217 (Box_Present, Default_Name, Specification, Set_Box_Present,
20218 Set_Default_Name, Set_Specification): Expand the expression
20219 "X in N_Formal_Subprogram_Declaration" into the corresponding
20220 two comparisons. Required to use the csinfo tool.
20222 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
20223 "with string" given.
20225 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
20228 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
20231 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
20232 attribute Task_Body_Procedure rather than the old semantic field that
20233 was available in the task_type_declaration node.
20235 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
20236 interface type definitions.
20237 (P_Formal_Derived_Type_Definition): Modified to handle the list of
20240 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
20241 task type declaration.
20242 (P_Protected): Modified to handle the list of interfaces in a
20243 protected type declaration.
20245 2005-03-15 Doug Rupp <rupp@adacore.com>
20246 Vincent Celier <celier@adacore.com>
20248 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
20249 (Gen_Output_File_C): Likewise.
20250 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
20252 2005-03-15 Thomas Quinot <quinot@adacore.com>
20254 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
20255 is an N_Raise_Constraint_Error node, create a new copy of it without
20256 going through a call to Duplicate_Subexpr.
20258 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20259 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20260 Nicolas Setton <setton@adacore.com>
20261 Ed Schonberg <schonberg@adacore.com>
20267 * decl.c (gnat_to_gnu_field): Reject aliased components with a
20268 representation clause that prescribes a size not equal to the rounded
20269 size of their types.
20270 (gnat_to_gnu_entity, case E_Component): Always look at
20271 Original_Record_Component if Present and not the entity.
20272 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
20273 of tagged extension types by not making field for components that are
20275 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
20276 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
20277 expression to the type of the object when the object is constant.
20278 Reverse defer_debug_incomplete_list before traversing it, so that trees
20279 are processed in the order at which they were added to the list. This
20280 order is important when using the stabs debug format.
20281 If we are deferring the output of debug information, also defer this
20282 output for a function return type.
20283 When adding fields to a record, prevent emitting debug information
20284 for incomplete records, emit the information only when the record is
20286 (components_to_record): New parameter defer_debug.
20287 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
20288 (gnat_to_gnu_field_decl): New function.
20289 (substitution_list, annotate_rep): Call it.
20290 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
20291 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
20292 No longer update discriminants to not be a COMPONENT_REF.
20293 (copy_alias_set): Strip padding from input type; also handle
20294 unconstrained arrays properly.
20296 * gigi.h (write_record_type_debug_info): New function.
20297 Convert to use ANSI-style prototypes. Remove unused
20298 declarations for emit_stack_check, elab_all_gnat and
20299 set_second_error_entity.
20300 (gnat_to_gnu_field_decl): New decl.
20302 * utils.c (write_record_type_debug_info): New function.
20303 (finish_record_type): Delegate generation of debug information to
20304 write_record_type_debug_info.
20305 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
20306 (update_pointer_to): Fix pasto.
20307 (convert) <UNION_TYPE>: Accept slight type variations when
20308 converting to an unchecked union type.
20310 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
20311 replace the N_Freeze_Entity with a null statement.
20313 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
20314 within a constrained subcomponent of an enclosing record, place the
20315 freeze nodes in the scope stack entry for the enclosing record.
20316 (Undelay_Type): New Subprogram.
20317 (Set_Small_Size): Pass T, the type to modify; all callers changed.
20318 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
20319 within records; allow them to have freeze nodes if their base types
20322 * exp_util.adb (Remove_Side_Effects): Properly test for
20323 Expansion_Delayed and handle case when it's inside an
20324 N_Qualified_Expression.
20326 * sem_ch3.adb (Derived_Type_Declaration): New predicate
20327 Comes_From_Generic, to recognize accurately that the parent type in a
20328 derived type declaration can be traced back to a formal type, because
20329 it is one or is derived from one, or because its completion is derived
20331 (Constrain_Component_Type): If component comes from source and has no
20332 explicit constraint, no need to constrain in in a subtype of the
20334 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
20335 Minor change to propagate Is_Ada_2005 flag
20337 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
20338 Expansion_Delayed is False.
20339 (assoc_to_constructor): Ignore fields that have a
20340 Corresponding_Discriminant.
20341 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
20342 function returns "by target", dereference the target pointer using the
20343 type of the actual return value.
20344 <all>: Be prepared for a null gnu_result.
20345 (processed_inline_subprograms): Check flag_really_no_inline
20346 instead of flag_no_inline.
20347 (set_second_error_entity): Remove unused function.
20348 (gnat_to_gnu, case N_Selected_Component): Call
20349 gnat_to_gnu_field_decl.
20350 (assoc_to_constructor): Likewise.
20352 2005-03-15 Robert Dewar <dewar@adacore.com>
20353 Ed Schonberg <schonberg@adacore.com>
20354 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20356 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
20357 Must_Be_Byte_Aligned for cases where we do not need to use a
20358 System.Pack_nn unit.
20360 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
20362 Needed now that we do some processing for IN parameters as well. This
20363 may well fix some unrelated errors.
20364 (Expand_Call): Handle case of unaligned objects (in particular those
20365 that come from packed arrays).
20366 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
20367 renamed entity is an inherited operation, re-expand the call using the
20368 original operation, which is the one to call.
20369 Detect attempt to inline parameterless recursive subprogram.
20370 (Represented_As_Scalar): Fix to work properly with private types
20371 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
20372 accurate estimate. Yields True in far fewer cases than before,
20373 improving the quality of code that depends on this test.
20375 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
20376 over both visible and private declarations to remove them from tree,
20377 and mark subprograms declared in package as eliminated, to prevent
20378 spurious use in subsequent compilation of generic units in the context.
20380 * exp_util.ads: Minor cleanup in variable names
20382 * sem_eval.ads, sem_eval.adb: Minor reformatting
20383 (Compile_Time_Known_Bounds): New function
20385 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20387 * exp_ch7.adb (Convert_View): Use base types of underlying types when
20388 determining whether an unchecked conversion is needed for the argument
20389 of an initialization call.
20391 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20393 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
20394 that appears in the instantiation rather than the internal subtype
20395 generated in the wrapper package, to avoid anomalies in gigi when the
20396 target is derived from a private type whose full view is an access type.
20398 2005-03-15 Robert Dewar <dewar@adacore.com>
20400 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
20402 Add documentation to replace the use of this flag
20403 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
20406 2005-03-15 Thomas Quinot <quinot@adacore.com>
20408 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
20409 here from exp_attr so it can be shared between exp_attr and exp_dist.
20410 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
20411 all TSS names, not a subset thereof, and the previous name introduced
20412 an unnecessarily confusion that a distinction might exist between
20413 "OK" TSS names and some "not OK" TSS names.
20415 2005-03-15 Doug Rupp <rupp@adacore.com>
20417 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
20420 2005-03-15 Pascal Obry <obry@adacore.com>
20421 Eric Botcazou <ebotcazou@adacore.com>
20425 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
20426 when IN_RTS. This is to work around a bootstrap path problem.
20428 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
20429 table and pass it to __gnat_install_SEH_handler().
20430 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
20432 * lang.opt: Fix specification of -fRTS=.
20434 2005-03-15 Doug Rupp <rupp@adacore.com>
20435 Bernard Banner <banner@adacore.com>
20436 Vincent Celier <celier@adacore.com>
20437 Arnaud Charlet <charlet@adacore.com>
20440 This change works fine when gnatlib is built from the gcc directory,
20441 but does not work when using the libada Makefile, since GCC_FOR_TARGET
20442 is not passed to ada/Makefile.in, so more work is needed by a
20443 Makefile/configure expert.
20445 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
20446 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
20447 Setup gnatlink switch -M for x86_64 linux, as it is already setup
20449 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
20450 Run ranlib on libgccprefix.a
20451 Define PREFIX_OBJS for Darwin, to build libgccprefix.
20452 (ADA_INCLUDE_SRCS): Split Ada packages.
20454 2005-03-15 Robert Dewar <dewar@adacore.com>
20456 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
20458 * impunit.adb: Add GNAT.UTF_32
20460 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
20462 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
20463 now uses GNAT.UTF_32).
20465 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
20466 capabilities for categorizing characters using Unicode categories
20468 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20470 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
20471 instantiation that has been rewritten as a package body, retrieve spec
20472 to generate proper name for implicit_with_clause.
20473 (Install_Parents): Recognize a parent that is an instantiation but has
20474 been rewritten as a package declaration during analysis.
20476 2005-03-15 Javier Miranda <miranda@adacore.com>
20477 Ed Schonberg <schonberg@adacore.com>
20479 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
20480 parameter reported some error we immediately return. This improves the
20481 behaviour of the frontend in case of errors.
20482 (Install_Parent, Remove_Parent): Introduce new flag
20483 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
20484 ancestor of a generic child unit, when the child is being instantiated.
20485 (Inline_Instance_Body): If we are compiling the private
20486 part or the body of a child unit, restore the proper visibility of the
20487 parents after compiling the instance body.
20489 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20490 Javier Miranda <miranda@adacore.com>
20493 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
20494 of a private type, in which case it is underlying_type that denotes
20495 the proper task. Also modified to use the new entity attribute
20496 that is directly available in the task type and task subtype entities
20497 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
20498 arrays when other dimensions than the first are constrained by
20499 discriminants of an enclosing record.
20500 (Insert_Explicit_Dereference): If the prefix is an indexed component or
20501 a combination of indexed and selected components, find ultimate entity
20502 and generate the appropriate reference for it, to suppress spurious
20504 (Note_Possible_Modification): If an entity name has no entity, return.
20505 (Is_Variable): A function call never denotes a variable.
20506 (Requires_Transient_Scope): For record types, recurse only on
20507 components, not on internal subtypes that may have been generated for
20508 constrained components.
20510 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20512 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
20513 Eliminated as candidates for resolution. Both efficient, and avoids
20514 anomalies with operators declared in deleted code.
20515 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
20516 expansion is disabled (as when compiling a generic) to prevent spurious
20517 warnings on prefixes of selected components.
20519 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20521 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
20522 attached to a list before checking whether it appears in the private
20523 declarations of the current package.
20524 (Make_Inequality_Operator): Insert declaration in proper declarative
20525 list rather than just setting the Parent field, so that
20526 Is_Private_Declaration can handle it properly.
20528 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20530 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
20531 a renaming a body, check that the renamed subprogram in not intrinsic.
20532 (Find_Direct_Name): If several use_visible entities hide
20533 each other, and the context is a predefined file compiled through
20534 rtsfind, keep only the entity that comes from a predefined file.
20536 2005-03-15 Geert Bosch <bosch@adacore.com>
20538 * s-fatgen.adb (Valid): Extend special exceptions to account for long
20539 long float padding to also cover AMD64 and IA64.
20541 2005-03-15 Gary Dismukes <dismukes@adacore.com>
20543 * s-imgwch.adb: Add with and use of Interfaces.
20544 (Img_Wide_Character): Change type of Val to Unsigned_16.
20545 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
20547 2005-03-15 Matthew Gingell <gingell@adacore.com>
20549 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
20551 2005-03-15 Robert Dewar <dewar@adacore.com>
20553 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
20555 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
20557 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
20559 2005-03-15 Robert Dewar <dewar@adacore.com>
20561 * s-bitops.adb, s-bitops.ads,
20562 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
20563 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
20564 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
20565 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
20566 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
20567 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
20568 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
20569 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
20572 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20574 * utils2.c (build_binary_op): Fix typo.
20576 2005-03-15 Doug Rupp <rupp@adacore.com>
20578 * s-crtl.ads (popen,pclose): New imports.
20580 2005-03-15 Cyrille Comar <comar@adacore.com>
20582 * comperr.adb (Compiler_Abort): remove references to obsolete
20583 procedures in the bug boxes for various GNAT builds.
20585 2005-03-15 Vincent Celier <celier@adacore.com>
20587 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
20589 2005-03-15 Geert Bosch <bosch@adacore.com>
20590 Arnaud Charlet <charlet@adacore.com>
20591 Robert Dewar <dewar@adacore.com>
20592 Cyrille Comar <comar@adacore.com>
20593 Sergey Rybin <rybin@adacore.com>
20595 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
20596 too specific and long-winded to be appropriate for the GNAT User's
20598 Warn about use of GCC switches not documented in the GNAT User's Guide,
20599 as these may cause generated code to not conform to Ada semantics.
20600 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
20601 Add documentation for -gnat95 and -gnat05 switches
20602 Remove paragraph documenting obsolete way to refer to third party
20604 Add a few references to Ada_05 that were missing.
20605 Update documentation on -gnatZ/-gnatL.
20606 Document limitation when using -m64 under Solaris.
20607 Change the "Name Casing" subsection of the pretty-printer section
20608 according to the changes in the dictionary processing.
20610 * gnat_rm.texi: Document the Ada_05 pragma.
20611 Section on record representation clauses describes the new more
20612 relaxed rules about placement of large packed bit array components.
20613 Add documentation of GNAT.UTF_32
20615 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
20617 * misc.c (gnat_post_options): Turn off structural
20620 2005-03-08 Laurent Guerby <laurent@guerby.net>
20622 * system-linux-sparc.ads: Fix typo in previous commit.
20624 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
20625 Laurent Guerby <laurent@guerby.net>
20628 * system-linux-sparc.ads: New.
20629 * Makefile.in: Add sparc linux entry.
20631 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
20633 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
20634 parameters as unused.
20636 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
20637 Partial merge from libada-gnattools-branch:
20639 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
20640 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
20641 into code in gnattools/Makefile.in. Remove direct dependencies on
20642 stamp-tools by tools clauses.
20643 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
20644 * config-lang.in: Add gnattools to $lang_dirs.
20646 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
20649 * utils.c (gnat_type_for_mode): Return null instead of ICE because
20650 we asked for an unknown mode.
20652 2005-02-12 Richard Henderson <rth@redhat.com>
20654 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
20655 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
20657 2005-02-10 Andreas Jaeger <aj@suse.de>
20659 * init.c (__gnat_initialize): Mark parameter as unused.
20661 2005-02-09 Doug Rupp <rupp@adacore.com>
20663 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
20664 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
20666 2005-02-09 Doug Rupp <rupp@adacore.com>
20668 * gnatchop.adb (dup, dup2),
20669 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
20671 * gnatlbr.adb (mkdir),
20672 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
20674 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
20676 2005-02-09 Doug Rupp <rupp@adacore.com>
20678 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
20680 2005-02-09 Robert Dewar <dewar@adacore.com>
20681 Thomas Quinot <quinot@adacore.com>
20682 Javier Miranda <miranda@adacore.com>
20683 Pascal Obry <obry@adacore.com>
20684 Ed Schonberg <schonberg@adacore.com>
20685 Doug Rupp <rupp@adacore.com>
20686 Gary Dismukes <dismukes@adacore.com>
20687 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20689 * g-zstspl.ads: New file.
20691 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
20693 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
20695 Add definition of Wide_Wide_Space for AI-285
20697 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
20698 interface (to support Ada 95 and Ada 2005 units).
20699 Add Unbounded_IO files
20700 Add entries for Wide_Wide packages for AI-285
20701 Add list of containers packages to Ada 2005 unit list
20703 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
20704 support new Unbounded_IO package cleanly.
20706 * g-utf_32.ads, g-utf_32.adb: New files.
20708 * Makefile.rtl: Add entry for g-utf_32
20709 Add new files for Unbounded_IO
20710 Adjust make file for new AI-285 wide wide packages
20711 Add AI-302 containers to the run time.
20713 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
20714 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
20715 subprograms for AI-301.
20717 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
20719 * a-stunau.ads: Minor comment correction
20721 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
20723 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
20724 (Check_RPC): Update to match changes in expanded code.
20725 Clean up unused entity.
20727 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
20728 was not taken into account.
20729 This includes proper initialization with Normalize_Scalars.
20730 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
20731 normalize scalars cases (particularly the latter) to do a better job
20732 of finding invalid representations.
20734 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
20736 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
20739 * exp_dist.adb: Add support for wide wide character type
20740 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
20741 private part, generate stub bodies at the end of the private part,
20742 not the visible part.
20743 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
20745 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
20746 generic wrapper to execute final processing after completing the
20747 expansion of the RPC receiver for an RACW.
20749 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
20750 packages and attributes.
20751 (Preset_Names): Addition of the new reserved words of Ada 2005,
20752 that is interface, overriding and synchronized.
20753 (Get_Pragma_Id): Give support to the use of the new reserved word
20754 "interface" as a pragma name.
20755 (Is_Pragma_Name): Give support to the use of the new reserved word
20756 "interface" as a pragma name.
20757 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
20758 attribute implementation.
20760 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
20761 checks to entities that are output parameters of Asm operations.
20762 Handle the Stream_Size attribute.
20763 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
20765 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
20767 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
20768 for second parameter being 0.0.
20769 Add support for wide wide character type.
20770 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
20772 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
20773 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
20774 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
20775 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
20776 for wide wide character cases.
20778 * cstand.adb: Create entities for Wide_Wide_Character and
20781 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
20782 accordance with AI-258.
20783 Add new declarations for 16/32 bit C character types (Part of AI285)
20785 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
20786 (Obsolescent_Warning): New field
20787 (Rep_Clause): New local subprogram used to share code. Returns the rep
20788 clause for which the name is given in parameter.
20789 (Has_Stream_Size_Clause): New routine.
20790 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
20791 (Address_Clause): Implementation is now using Rep_Clause.
20792 (Alignment_Clause): Idem.
20793 (Size_Clause): Idem.
20795 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
20796 entity in non-Ada 2005 mode and generate warning.
20798 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
20799 (Prag): Code cleanup. Remove old gnat pragma "overriding"
20801 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
20802 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
20803 on the named unit if the pragma is not in the current compilation unit,
20804 so that elaboration calls in the current unit can set up an elaboration
20805 dependency on the named unit, as needed.
20806 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
20807 subprogram as well as for subprograms declared within a package.
20808 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
20811 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
20812 to z) to avoid some instances of duplication for Wide_Wide packages.
20814 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
20817 * scn.adb: Char_Literal_Value field is now a Uint
20819 * scng.adb: Significant rewrite to handle new Ada 2005 features
20820 allowing wide and wide wide characters in program text, e.g. for
20821 identifiers, as described in AI-285.
20822 (Set_Reserved): New procedure, makes setting up keywords cleaner.
20823 (Initialize_Scanner): Register the new reserved words of Ada 2005.
20824 (Scan): Give support to the new reserved words.
20826 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
20827 warning notifying that interface, overriding, and synchronized are
20828 new reserved words.
20829 (P_Pragma): Allow the use of the new reserved word "interface" as
20832 * gnatls.adb, gnatbind.adb,
20833 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
20834 identifiers named "interface" to "SAL_Interface".
20836 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
20837 (Structured Exception handling).
20838 (Gen_Main_C): Idem.
20841 (Gen_Main_Ada): Set the default exit code if specified.
20842 (Gen_Main_C): Likewise.
20844 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
20845 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
20847 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
20850 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
20851 has a collision with the new Ada 2005 "interface" reserved word.
20853 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
20854 generate a warning notifying that interface, overriding, and
20855 synchronized are new reserved words.
20857 * scans.ads (Token_Type): Addition of the tokens corresponding to the
20858 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
20859 and Tok_Synchronized.
20861 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
20862 "dispatching" rather than "primitive" operations, since dispatching
20863 calls are now allowed to abstract formal subprograms (which are not
20865 Char_Literal_Value field is now a Uint
20866 (Resolve_Slice): If the prefix is an access to an unconstrained array,
20867 compute the actual subtype of the designated object to impose the proper
20869 (Resolve_Selected_Component): Do not insert an access check if the
20870 prefix is an access type: such a node is expanded into an explicit
20871 dereference, on which the access check is performed anyway. Removes
20872 expensive duplicate checks.
20873 (Resolve_Call): Use new flag Is_Obsolescent and field
20874 Obsolescent_Warning so that pragma Obsolescent works on library
20876 Add support for wide wide character type
20877 (Resolve_Allocator): Replace the error message on wrong null-exclusion
20878 value by a warning message.
20879 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
20880 as fixed-point, and one of the operands is non-static and universal, it
20881 can only be an illegal exponentiation operation, in which case there is
20882 no real value to retrieve.
20884 * exp_strm.adb: Add support for wide wide character type
20885 (Build_Elementary_Input_Call): Compute the size of the stream element by
20886 querying the rep chain to find the Stream_Attribute attribute value.
20887 (Build_Elementary_Write_Call): Ditto.
20889 * sem_aggr.adb: Char_Literal_Value field is now a Uint
20890 Add support for wide wide character type
20891 Replace the error messages on wrong null-exclusion value by warnings
20892 as described in Ada 2005.
20893 (Resolve_Extension_Aggregate): Document the fact that the error
20894 message on class-wide expressions in extensions aggregates.
20896 * sem_case.adb: Add support for wide wide character type
20898 * sem_ch13.adb: Add support for wide wide character type
20899 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
20901 * sem_ch3.adb: Add support for wide wide character type
20902 (Process_Subtype): If constraint is illegal for the type, set Ekind of
20903 now-useless Itype, to prevent cascaded errors on a compiler built
20906 * sem_ch8.adb: Add with and use of Sem_Disp.
20907 (Analyze_Subprogram_Renaming): Replace unclean uses of
20908 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
20909 of Corresponding_Spec to Empty).
20910 (Attribute_Renaming): Replace use of Corresponding_Spec with
20911 Corresponding_ Formal_Spec and simplify condition.
20912 (Use_One_Package): Check that scope of homonym of identifier is defined,
20913 before checking whether it is a wrapper package.
20914 Add support for wide wide character type
20916 * sem_eval.adb: Add support for wide wide character type.
20917 (Eval_Arithmetic_Op): Check for compile time known signed integer
20918 overflow in the non-static case.
20919 (Subtypes_Statically_Match): A formal scalar type and its base type do
20920 not statically match.
20922 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
20923 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
20925 (Unit_Declaration_Node): Ditto.
20926 (Is_Variable_Prefix): For the case of an indexed component whose prefix
20927 has a packed array type, the prefix has been rewritten into a type
20928 conversion. Determine variable-ness from the converted expression.
20929 Handle wide wide character cases.
20931 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
20933 * stringt.ads, stringt.adb: Handle full UTF-32 range.
20934 Remove ["0A"] from comment, since it can look like a line terminator.
20935 Currently we don't permit this, but this is under discussion by the
20936 ARG, and it is easy enough to use a different example.
20938 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
20939 handling UTF-32 encoding for wide wide character.
20940 Implement new brackets coding ["hhhhhhhh"]
20941 Add UTF-8 encodings for full UTF-32 range
20943 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
20945 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
20946 bit range Add full UTF-32 support.
20947 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
20948 notify that constraint error will be raised at run-time
20949 because a null value is assigned to a null-excluding object.
20950 Remove some obsolete declarations and make Char_Code
20953 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
20954 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
20955 Rcheck subprograms.
20957 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
20958 wrong null-exclusion value by a warning message.
20959 (Enable_Range_Check): Do range check if the prefix is an
20960 explicit dereference whose designated object is an unconstrained array.
20961 Current algorithm for removing duplicate checks is over-eager in this
20964 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
20965 null-exclusion value by a warning message
20967 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
20968 completely. Add support for Uint2 field
20970 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
20971 exp_prag.adb: Char_Literal_Value field is now a Uint.
20973 * exp_util.adb (Insert_Actions): Replace
20974 N_Formal_Subprogram_Declaration by
20975 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
20976 Char_Literal_Value field is now a Uint.
20978 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
20979 defined for subprogram renaming declarations. When set, the field
20980 indicates the defining entity of a corresponding formal subprogram
20981 when the renaming corresponds to a formal subprogram association in an
20983 (Set_Corresponding_Formal_Spec): New procedure to return
20984 Corresponding_Formal_Spec field.
20985 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
20986 (which is now a subtype).
20987 Char_Literal_Value field is now a Uint
20989 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
20990 pointer to the base of the dispatch table.
20991 Minor changes to comments.
20992 (Controlling_Type): New function for determining the tagged type
20993 associated with a tagged primitive subprogram.
20994 (Expand_Dispatching_Call): Add support for a controlling actual that is
20995 directly a value of type Ada.Tag rather than a tagged object.
20997 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
20998 describing the new layout.
20999 (Dispatch_Table): The expander computes the actual array size, allocates
21000 the Dispatch_Table record accordingly, and generates code that displaces
21001 the base of the record after the Typeinfo_Ptr component. The access to
21002 these components is done by means of local functions.
21003 (Offset_To_Top): New function.
21004 (Typeinfo_Ptr): New function.
21005 (Get_TSD): Modified to access the new position of the TSD.
21006 (Set_TSD): Modified to save the TSD in its new position.
21008 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
21009 case of formal abstract subprograms. Add check and message for -gnat05.
21012 * sem_ch12.adb: Add with and use for Sem_Disp.
21013 (Analyze_Associations): Minor change from "=" to "in" for use of
21014 N_Formal_Subtype_Declaration (which is now a subtype).
21015 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
21016 N_Formal_Subtype_Declaration (which is now a subtype).
21017 (Analyze_Formal_Subprogram): Add handling for
21018 N_Formal_Abstract_Subprogram, marking the formal as abstract and
21019 dispatching, setting the controlling status of the formal parameters
21020 and result, and issuing an error if there is no controlling type for
21021 the formal subprogram.
21022 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
21023 which is an unclean use of that field, we set the new field
21024 Corresponding_Formal_Spec to make the formal subprogram available to
21025 processing in Analyze_Subprogram_Declaration.
21026 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
21027 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
21028 Constrained, so that it is is does not statically match its anonymous
21031 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
21032 abstract formal subprograms in error check for functions returning
21033 abstract types. Set scope of new designator for
21034 a parameterless subprogram, so that it is available when checking the
21035 body for nested subprograms, before full analysis of said body.
21036 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
21037 subprogram only if inner one comes from source.
21038 (Analyze_Function_Call): If the call is given in object notation, the
21039 analysis of the name rewrites the node and analyzes it with the proper
21040 argument list. After analyzing the name, if the call has been rewritten
21041 and the result type is set, no further analysis is needed.
21042 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
21043 mark in function specification, in a context where the formals are
21044 visible and hide outer homographs.
21046 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
21047 as the tagged type for the cases of abstract formal subprograms and
21048 renamings of those. Clean up spec comments.
21049 (Check_Dispatching_Context): Add error message to indicate "abstract
21050 procedure", covering the case of a call to a formal abstract procedure
21051 that has statically tagged operands.
21052 (Check_Dispatching_Call): Check for the case of an actual given by
21053 a tag-indeterminate function call whose type is an ancestor of the
21054 containing call's associated tagged type. This situation can occur
21055 for inherited primitives with function defaults. In this case we
21056 use the tagged type's tag directly as the controlling argument for
21058 (Expand_Call): Name change on call to Expand_Dispatch_Call.
21060 * sprint.adb (Sprint_Node_Actual): Split
21061 N_Formal_Subprogram_Declaration into two alternatives for the new
21062 cases N_Formal_Abstract_Subprogram_Declaration and
21063 N_Formal_Concrete_Subprogram_Declaration.
21064 Char_Literal_Value field is now a Uint.
21066 * trans.c: Get rid of junk Uint2 reference.
21067 Char_Literal_Value field is now a Uint.
21068 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
21069 (gigi): Correct third arg to gimplify_body.
21071 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
21072 (TYPE_LANG_FLAG_0): Check for record or union.
21074 * treepr.adb: Char_Literal_Value field is now a Uint
21076 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
21079 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
21080 Add full UTF-32 support
21081 Char_Code is now 32 bits
21083 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
21084 wide character UTF_32 line terminators.
21085 Initialize Main_Source_File to avoid error when no main
21088 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
21089 (Main_Source_File) when no main source has been loaded, to avoid
21092 2005-02-09 Robert Dewar <dewar@adacore.com>
21094 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
21095 Fix name of Set routine
21097 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
21100 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
21101 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
21104 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
21105 forms of Get_Line subprograms for AI-301.
21107 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
21108 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
21109 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
21110 a-stwima.ads: Minor reformatting.
21112 2005-02-09 Doug Rupp <rupp@adacore.com>
21113 Thomas Quinot <quinot@adacore.com>
21115 * adaint.c, adaint.h
21116 [VMS] (to_ptr32): New function.
21117 (MAYBE_TO_PTR32): New macro.
21118 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
21120 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
21121 [VMS] (#define fork()): Remove since unneccessary.
21122 (__gnat_set_close_on_exec): New routine to support
21123 GNAT.OS_Lib.Set_Close_On_Exec.
21125 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
21126 the parent side as close-on-exec so that they are not inherited by the
21129 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
21130 set or clear the FD_CLOEXEC flag on a file descriptor.
21132 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
21133 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21137 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
21138 on the field if Pragma Component_Alignment (Storage_Unit).
21139 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
21140 side-effects as if it were a constant; also make SAVE_EXPR to protect
21142 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
21144 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
21145 (components_to_record): Test it.
21146 Fix improper usage of REFERENCE_CLASS_P.
21148 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
21151 * utils2.c: Minor reformatting.
21153 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
21154 handle other cases like RECORD_TYPE.
21156 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
21158 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21160 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
21161 component of an array of arrays in an assignment context, and the
21162 aggregate has component associations that require sliding on
21163 assignment, force reanalysis of the aggregate to generate a temporary
21164 before the assignment.
21165 (Must_Slide): Make global to the package, for use in Gen_Assign.
21167 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21169 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
21170 unchecked union with no inferable discriminants, return a
21171 Raise_Program_Error node, rather than inserting it at the point the
21173 (Expand_Record_Equality, Component_Equality): Handle properly the case
21174 where some subcomponent is an unchecked union whose generated equality
21175 code raises program error.
21177 2005-02-09 Doug Rupp <rupp@adacore.com>
21179 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
21180 [VMS] (#define exit hack): Remove.
21182 2005-02-09 Pascal Obry <obry@adacore.com>
21183 Arnaud Charlet <charlet@adacore.com>
21185 * init.c (__gnat_initialize): Add a new parameter eh which contains the
21186 address of the exception registration. The Win32 version of this
21187 routine calls __gnat_install_SEH_handler() to initialize the SEH
21188 (Structured Exception Handling) handler.
21189 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
21190 SEH (Structured Exception Handling) now.
21191 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
21192 (__gnat_initialize for ppc-vxworks): Adjust comments and the
21193 preprocessor condition protecting the call to the extra eh setup
21194 subprogram, which is only available for the ppc target.
21195 (__gnat_clear_exception_count): replaced reference to
21196 variable taskIdCurrent by call to taskIdSelf(), cleaner.
21198 * seh_init.c: New file.
21200 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
21201 (GNATBIND_OBJS): Idem.
21203 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
21204 routine takes a new parameter (a pointer to the exception registration
21205 for the SEH (Structured Exception Handling) support.
21207 * raise.h: (__gnat_install_SEH_handler): New prototype.
21208 Update copyright notice.
21210 * s-tassta.adb (Task_Wrapper): Declare the exception registration
21211 record and initialize it by calling __gnat_install_SEH_handler.
21213 2005-02-09 Vincent Celier <celier@adacore.com>
21215 * make.adb (Gnatmake): Do not fail when the main project has no object
21218 2005-02-09 Doug Rupp <rupp@adacore.com>
21220 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
21221 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
21222 [VMS]: Add translations for g-enblsp.adb.
21224 * s-asthan-vms.adb: Removed.
21225 * s-asthan-vms-alpha.adb: Added.
21227 2005-02-09 Pascal Obry <obry@adacore.com>
21229 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
21230 (LIBGNAT_OBJS): Add seh_init.o.
21232 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21235 * Makefile.in: Link all gnat tools with -static-libgcc, since
21236 -shared-libgcc is now used by default on some systems (e.g. linux with
21238 Remove references to Makefile.prolog/generic, no longer used.
21240 2005-02-09 Vincent Celier <celier@adacore.com>
21242 * prj-makr.adb (Process_Directory): Put file name in canonical case
21243 before matching against the patterns.
21244 If gnatname has been invoked as <prefix>-gnatname
21245 then invoke the compiler as <prefix>-gcc, not just "gcc".
21247 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21249 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
21250 with expansion disabled. The actual subtype is needed among other
21251 places when the selected component appears in the context of a loop
21252 bound, and denotes a packed array.
21253 (Operator_Check): Always use the first subtype in the
21254 error message, to avoid the appearance of internal base types.
21255 (Transform_Object_Operation): Copy each actual in full
21256 to the parameter associations of the constructed call, rather than
21257 using the shallow copy mechanism of New_Copy_List. This ensures that
21258 the chaining of named associations is done properly.
21259 (Complete_Object_Operation): Rewrite node, rather than
21260 replacing it, so that we can trace back to the original selected
21263 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
21264 and calls that use object notation, if the called function is not
21265 declared in a withed unit, place the elaboration constraint on the
21266 unit in the context that makes the function accessible.
21267 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
21268 imposes an elaboration constraint between two packages.
21270 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21272 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
21273 views of a private type after handling its private dependents, to
21274 maintain proper stack discipline between entry and exit from the
21277 2005-02-09 Cyrille Comar <comar@adacore.com>
21279 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
21280 Minor reformatting.
21282 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21284 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
21285 fields for foreign threads.
21287 2005-02-09 Doug Rupp <rupp@adacore.com>
21289 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
21290 recursion warnings when compiled with -gnatdm.
21292 2005-02-09 Robert Dewar <dewar@adacore.com>
21294 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
21295 Slight fix to documentation of -gnaty with no parameters
21297 * xr_tabls.ads: Add ??? comment for missing overall comment
21299 * xsinfo.adb: Make default file name be sinfo.h, since this is what
21300 we now use by default.
21302 * xsnames.adb: Adjust end of file test to look for five space followed
21303 by '#' instead of six spaces. The format of xsnames.adb was modified
21304 in the last update.
21306 * a-numeri.ads: Add reference to AI-388 for greek letter pi
21309 * clean.adb: Minor reformatting.
21311 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
21312 gnatname.adb: Minor reformatting
21313 Add 2005 to copyright output when utility is run
21315 * csets.adb: Eliminate obsolete comment
21317 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
21320 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
21322 2005-02-09 Sergey Rybin <rybin@adacore.com>
21324 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
21325 the difference between compact and incompact layout and add the record
21326 representation clause to the example illustrating different layouts.
21327 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
21328 component clauses").
21330 2005-02-09 Florian Villoing <villoing@adacore.com>
21332 * gnat_ugn.texi: Fix typos.
21333 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
21335 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
21336 in the generated documentation.
21338 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21340 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
21342 Update linker wrapper when linking with non GNU C++.
21344 2005-02-09 Pascal Obry <obry@adacore.com>
21347 Document the procedure to debug the DllMain routine on Windows.
21348 Add note about -funwind-tables and mixed Ada and C/C++ programming in
21350 Document new BIND qualifer /RETURN_CODES=VMS.
21352 2005-02-09 Ben Brosgol <brosgol@adacore.com>
21354 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
21355 Edited gnatmetric chapter
21357 2005-02-09 Robert Dewar <dewar@adacore.com>
21360 Changes to document new wide wide character support
21362 Update documentation on Normalize_Scalars and Initialize_Scalars
21364 2005-02-09 Pascal Obry <obry@adacore.com>
21366 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
21368 2005-02-09 Jose Ruiz <ruiz@adacore.com>
21370 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
21371 from the VxWorks kernel) that is needed for getting the active
21372 priority of the different tasks.
21374 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
21375 Use a pragma Elaborate_Body in the spec file instead.
21376 Noticed by code reading.
21378 2005-02-09 Thomas Quinot <quinot@adacore.com>
21380 * exp_util.ads: Minor correction in comment.
21382 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21384 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
21385 since this procedure is now too complex to be worth inlining.
21387 2005-02-09 Richard Henderson <rth@redhat.com>
21389 * utils.c (gnat_define_builtin): Remove.
21390 (gnat_install_builtins): Use build_common_builtin_nodes.
21392 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21394 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21395 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
21396 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
21397 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
21398 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
21399 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
21400 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
21401 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
21402 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
21403 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
21404 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
21405 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
21406 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
21407 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
21408 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
21409 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
21410 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
21411 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
21412 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
21413 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
21414 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
21415 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
21416 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
21417 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
21418 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
21419 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
21420 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21421 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
21422 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
21423 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
21424 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21425 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
21426 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
21427 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
21430 2005-01-27 Laurent GUERBY <laurent@guerby.net>
21432 * Makefile.in: Fix a-intnam.ads from previous commit,
21433 add 2005 to copyright.
21434 * a-intman-rtems.ads: Renamed to...
21435 * a-intnam-rtems.ads:
21437 2005-01-27 Laurent GUERBY <laurent@guerby.net>
21439 * Makefile.in: Rename GNAT RTEMS specific files.
21440 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
21441 5rosinte.ads, 5rparame.adb: Replaced by files below.
21442 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
21443 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
21445 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
21446 Laurent GUERBY <laurent@guerby.net>
21449 * 5rosinte.ads: Add No_Key constant.
21450 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
21451 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
21453 2005-01-26 Laurent GUERBY <laurent@guerby.net>
21456 * i-cobol.adb (Valid_Numeric): Handle zero length case.
21458 2005-01-20 Richard Henderson <rth@redhat.com>
21460 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
21461 a-intnam-linux.ads and system-linux-alpha.ads.
21462 * a-intnam-linux-alpha.ads: Remove file.
21463 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
21464 * system-linux-alpha.ads: New file.
21466 2005-01-18 Jakub Jelinek <jakub@redhat.com>
21469 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
21470 set to the new string.
21472 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
21474 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
21477 2005-01-18 Richard Henderson <rth@redhat.com>
21479 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
21480 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
21482 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
21484 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
21486 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
21487 (GCC_ZCX_Support): Likewise.
21489 2005-01-11 Bastian Blank <waldi@debian.org>
21491 * system-linux-s390.ads: Define Preallocated_Stacks.
21492 * system-linux-s390x.ads: Likewise.
21494 2005-01-04 Arnaud Charlet <charlet@adacore.com>
21496 * gnat_ugn.texi: Fix texi errors with null variables.
21498 2005-01-03 Thomas Quinot <quinot@adacore.com>
21500 * gen-soccon.c: New utility program to generate g-soccon.ads
21503 * socket.c, gsocket.h: Split inclusion of system header files into a
21504 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
21506 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
21507 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21508 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
21509 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
21510 should not be edited by hand anymore, but should be regenerated using
21513 2005-01-03 Robert Dewar <dewar@adacore.com>
21514 Ed Schonberg <schonberg@adacore.com>
21515 Vincent Celier <celier@adacore.com>
21517 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
21518 on/off, since this is an obsolescent feature, for which we now generate
21521 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
21522 warning mode is set and obsolescent usage of this attribute occurs.
21523 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
21524 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
21525 predates, and partly motivates, the adoption of the AI.
21526 Implement new Ada 2005 attribute Mod
21528 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
21531 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
21533 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
21534 pragma restrictions.
21535 New entry for Ada 2005 attribute Mod.
21538 Add recognition of new pragma Restrictions No_Dependence
21539 Recognize restriction No_Obsolescent_Features at parse time
21541 * bcheck.adb: Add circuitry for checking for consistency of
21542 No_Dependence restrictions.
21544 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
21547 * restrict.ads, restrict.adb: Add subprograms to deal with
21548 No_Dependence restrictions.
21550 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
21553 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
21554 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
21556 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
21557 dummy parameter to scng instantiation.
21558 Needed for new restriction No_Obsolescent_Features
21560 * scn.adb: (Obsolescent_Check): New procedure
21561 Needed for new restriction No_Obsolescent_Features
21563 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
21564 specified by AI-285, needed for implementation of AI-388 (adding greek
21565 pi to Ada.Numerics).
21566 Add new generic formal to scng, needed for new restriction
21567 No_Obsolescent_Features.
21569 * s-rident.ads: Add new restriction No_Obsolescent_Features.
21571 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
21572 restrictions lines.
21573 (Scan_ALI): When finding an unexpected character on an R line, raise
21574 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
21575 Ignore_Errors is True, default restrictions are set and scanning of the
21576 ALI file continues with the next line. Also, when Bad_R_Line is raised
21577 and Ignore_Errors is True, skip to the end of le line.
21579 * sem_ch10.adb: Check that explicit with's do not violate
21580 No_Dependence restrictions.
21581 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
21582 illegal context clauses containing child units of instance.
21584 * sem_prag.adb: Processing and checking for new No_Dependence
21586 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
21587 analyze and check the External argument.
21589 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
21591 2005-01-03 Robert Dewar <dewar@adacore.com>
21593 * atree.adb: Add a fifth component to entities
21594 This allows us to add 32 flags and four new fields
21596 * atree.ads: Add a fifth component to entities
21597 This allows us to add 32 flags and four new fields
21599 * einfo.ads, einfo.adb: Document new fields and new flags now available
21600 Add routines for printing new fields
21602 * treepr.adb: Call routines to print out additional fields if present
21604 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21606 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
21607 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
21609 * Makefile.in: Add support to build shared Ada libraries on solaris x86
21610 Remove gpr2make, replaced by gprmake.
21611 Remove references to gnatmem and libaddr2line.
21612 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
21613 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
21614 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
21615 a-numaux-darwin.ads and a-numaux-darwin.adb
21616 Enable mlib-tgt-lynxos.adb on lynxos.
21618 * Make-lang.in: Remove rules for gpr2make.
21619 When generating sdefault.adb, do not call Relocate_Path
21620 on S3 for function Target_Name, as it is not a path.
21621 Remove references to gnatmem and libaddr2line.
21623 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
21626 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
21628 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
21629 address is incompatible with its base type alignment constraints when
21630 this can be decided statically.
21632 2005-01-03 Olivier Hainque <hainque@adacore.com>
21634 * decl.c (compatible_signatures_p): New function. The intended purpose
21635 is to check if two function signatures for a call-site and a callee are
21636 compatible enough for the call to be valid. The underlying purpose is
21637 to check if a call to a mapped builtin is using the right interface.
21638 The current code actually does not check antyhing - this a placeholder
21639 for future refinements.
21640 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
21641 builtin calls for convention Intrinsic.
21643 * gigi.h (builtin_decl_for): Declare (new function).
21645 * utils.c (gnat_install_builtins): Install the target specific builtins.
21646 (builtin_decl_for): New function, provide a dummy body for now.
21648 2005-01-03 Geert Bosch <bosch@adacore.com>
21650 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
21651 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21652 (Pred): Implement in terms of Succ.
21654 * trans.c (convert_with_check): Reimplement conversion of float to
21657 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21658 Vincent Celier <celier@adacore.com>
21660 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
21661 bounds can be negative, and must be declared Int, not Nat.
21663 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
21664 array is checked after using the index in the array.
21666 * makegpr.adb (Add_Switches): Check if there is a package for the
21667 processor. If there is no package, do not look for switches.
21669 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21671 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
21672 generation of predefined stream operations (specs and bodies) should
21673 proceed. Under various restrictions these subprograms must not be
21676 2005-01-03 Thomas Quinot <quinot@adacore.com>
21679 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
21680 amount of PCS-specific code in RACW stubs generation.
21681 (Copy_Specification): Set Etype on copied formal parameter entities, as
21682 this information is needed for PolyORB stubs generation.
21683 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
21684 variable Dynamic_Async.
21685 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
21686 (Build_RPC_Receiver_Specification): Make generic again, as recent
21687 changes have allowed RPC receivers to have the same profile for both
21688 variants of the PCS.
21689 Reorganise RPC receiver generation to reduce differences between the
21690 structure of GARLIC and PolyORB RPC receivers.
21691 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
21693 Simplify elaboration code for RCI packages.
21695 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
21696 generation to reduce differences between the structure of GARLIC and
21697 PolyORB RPC receivers.
21699 * s-stratt.adb: Fix typo in comment.
21701 2005-01-03 Thomas Quinot <quinot@adacore.com>
21703 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
21704 copied from Make_Init_Call).
21706 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
21707 reads and assignments on a temporary variable declared with appropriate
21710 2005-01-03 Robert Dewar <dewar@adacore.com>
21712 * i-c.adb (To_C): Raise CE if string is null and Append_Null
21714 2005-01-03 Robert Dewar <dewar@adacore.com>
21716 * i-cstrin.adb (Update): Do not append a null in form called with a
21717 String. This avoids unintended behavior.
21719 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21722 * init.c: Fix warnings on Free BSD section.
21724 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21727 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
21730 2005-01-03 Vincent Celier <celier@adacore.com>
21732 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
21733 libraries when Unique_Compile is True (-u switch).
21736 2005-01-03 Robert Dewar <dewar@adacore.com>
21738 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
21739 upper case letter or underscore after W, as allowed by spec.
21741 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21743 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
21744 darwin port by using proper type definitions from header files.
21745 Use SIGTERM instead of SIGABRT for SIGADAABORT.
21747 2005-01-03 Robert Dewar <dewar@adacore.com>
21749 * par.adb: Enhance error message handling for configuration file
21752 2005-01-03 Robert Dewar <dewar@adacore.com>
21754 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
21755 removed during the previous update (test properly for case of dividing
21756 largest negative number by -1, which generates overflow).
21758 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21759 Sergey Rybin <rybin@adacore.com>
21761 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
21762 to use as the defining identifier for a formal package.
21763 (Remove_Parent): If the instance takes place within (an instance of)
21764 a sibling, preserve private declarations of common parent.
21766 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21768 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
21769 to determine whether one of the operands is a fixed-point type for
21770 which a user-defined multiplication or division operation might be
21773 * sem_res.adb (Valid_Conversion): The legality rules for conversions
21774 of access types are symmetric in Ada 2005: either designated type can
21777 2005-01-03 Vincent Celier <celier@adacore.com>
21779 * s-fileio.adb (Temp_File_Record): Change length of string component
21780 Name from L_tmpnam + 1 to max_path_len + 1.
21782 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21784 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
21785 Self_Id.Deferral_Level = 0.
21786 (Do_Pending_Action): Move this function to the spec.
21788 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
21789 Do_Pending_Action explicitely when needed, in case we're using
21790 No_Abort restrictions.
21792 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
21793 deferral level since it will not get changed by the generated code.
21794 Keeping a default value of 1 would prevent some operations (e.g.
21795 select or delay) to proceed successfully.
21797 2005-01-03 Ben Brosgol <brosgol@adacore.com>
21798 Robert Dewar <dewar@adacore.com>
21799 Cyrille Comar <comar@adacore.com>
21801 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
21802 porting guide chapter (vms version).
21803 Revised doc title (removed "for native platforms") and subtitle.
21804 Add discussion on warning flag for obsolescent features. First we
21805 note that it applies to obsolete GNAT features, which was previously
21806 omitted. Second we contrast the behavior with that of the new
21807 Ada 2005 AI-368 restriction No_Obsolescent_Features.
21808 Preliminary rewriting of GNAT & libraries chapter in order to take
21809 into account default project locations & new project manager
21812 2005-01-03 Robert Dewar <dewar@adacore.com>
21814 * cstand.adb (Create_Operators): Clean up format and documentation of
21815 unary and binary operator result tables. No change in code, just
21816 reformatting and addition of comments.
21818 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
21819 sem_ch2.adb: Minor reformatting
21821 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
21822 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
21823 comments for Tree_Read and Tree_Write.
21825 2005-01-03 Pascal Obry <obry@adacore.com>
21827 * exp_attr.ads: Minor reformatting.
21829 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
21831 * comperr.adb (Compiler_Abort): Add specialized message for GAP
21834 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21836 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
21837 whether the ancestor type is private, as may be the case with nested
21840 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
21843 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
21845 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
21847 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
21848 * utils2.c (build_unary_op): Likewise.
21850 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21852 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
21854 2004-12-19 Richard Henderson <rth@redhat.com>
21856 * trans.c (gigi): Update gimplify_body call.
21858 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
21860 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
21862 2004-12-07 Ed Falis <falis@adacore.com>
21864 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
21865 current task being suspended.
21867 * init.c (__gnat_clear_exception): added to reset VxWorks exception
21869 (__gnat_map_signal): removed test for current task being suspended.
21871 2004-12-07 Gary Dismukes <dismukes@adacore.com>
21873 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
21874 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
21875 targets (such as AAMP).
21877 2004-12-07 Ed Schonberg <schonberg@adacore.com>
21879 * atree.adb (Visit_Itype): Create a new name for the generated itype,
21880 because the back-end may otherwise treat it as a redefinition of the
21883 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
21885 * back_end.adb (Scan_Back_End_Switches): Accept --param.
21887 * lang-specs.h: Accept --param.
21889 2004-12-07 Vincent Celier <celier@adacore.com>
21891 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
21892 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
21893 Current_Body_Suffix => Ada_Body_Suffix).
21894 Take into account Externally_Built attribute.
21896 * clean.adb (In_Extension_Chain): Always return False when one of the
21897 parameter is No_Project.
21898 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
21899 Ada_Language_Index).
21900 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
21901 Process_Languages for procedure Parse).
21903 * gnatcmd.adb (Carg_Switches): New table.
21904 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
21905 Adapt to name changes in package Prj (Current_Spec_Suffix =>
21906 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
21908 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
21909 Header_Num and function Hash are now declared in package Prj,
21912 * prj.adb (Suffix_Of): New function.
21913 (Set (Suffix)): New procedure.
21914 (Hash): One function moved from Prj.Com
21915 (Is_Present, Language_Processing_Data_Of): New functions
21916 (Set): Two new procedures
21917 (Add_Language_Name, Display_Language_Name): New procedures
21919 * prj.ads: (Suffix_Of): New function
21920 (Set (Suffix)): New procedure
21921 Add several types and tables for multi-language support.
21922 (Header_Num): Type moved from Prj.Com
21923 (Hash): Two functions moved from Prj.Com
21924 (Is_Present, Language_Processing_Data_Of): New functions
21925 (Set): Two new procedures
21926 (Add_Language_Name, Display_Language_Name): New procedures
21927 (Naming): Component name changes:
21928 Current_Spec_Suffix => Ada_Spec_Suffix,
21929 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
21930 Impl_Suffixes, Supp_Suffixes.
21931 (Project_Data): New components: Externally_Built, Supp_Languages,
21932 First_Language_Processing, Supp_Language_Processing, Default_Linker,
21933 Default_Linker_Path.
21935 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
21936 new package Language_Processing with its attributes (Compiler_Driver,
21937 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
21938 Binder_Driver, Default_Linker).
21940 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
21941 (Header_Num): Type moved to package Prj
21943 * prj-env.adb: Adapt to name changes in package Prj
21944 (Current_Spec_Suffix => Ada_Spec_Suffix,
21945 Current_Body_Suffix => Ada_Body_Suffix).
21947 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
21948 default to the project path, except the "-" is one of the directories
21949 in env var ADA_PROJECT_PATH.
21950 (Current_Project_Path): Global variable, replacing Project_Path
21951 that was in the body of Prj.Part.
21952 (Project_Path): New function
21953 (Set_Project_Path): New procedure
21954 Initialize Current_Project_Path during elaboration of the package
21955 Remove dependency on Prj.Com, no longer needed
21957 * prj-ext.ads (Project_Path): New function
21958 (Set_Project_Path): New procedure
21960 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
21961 suffix is defined for language <lang>.
21962 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
21963 accessing directly the components of Naming.
21964 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
21965 Reorganise of this package.
21966 Break procedure Check in several procedures.
21968 * prj-nmsc.ads: Replace all procedures (Ada_Check,
21969 Other_Languages_Check and Language_Independent_Check) with a single
21972 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
21973 Process_Languages, no longer needed.
21975 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
21976 Current_Project_Path.
21977 Remove elaboration code, moved to the body of Prj.Ext
21978 Use new function Prj.Ext.Project_Path instead of old variable
21980 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
21981 When comparing with project paths on the stack, first put the resolved
21982 path in canonical case.
21983 (Parse_Single_Project): Set the path name of the project file in the
21984 tree to the normalized path.
21986 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
21987 parameter Process_Languages, no longer needed.
21988 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
21989 Other_Languages_Check.
21991 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
21992 to store the resolved canonical path of the project file.
21993 Remove dependency to Prj.Com, no longer needed
21995 * prj-util.adb: Adapt to name changes in package Prj
21996 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
21999 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
22000 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
22001 Externally_Built, Include_Option, Language_Processing.
22003 * makegpr.adb: Numerous changes due to changes in packages
22006 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
22007 default to the project path, except whe "-" is one of the directories
22008 in env var ADA_PROJECT_PATH.
22009 (Gnatls): In verbose mode, add the new section "Project Search Path:"
22011 2004-12-07 Robert Dewar <dewar@adacore.com>
22013 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
22015 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
22018 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
22019 flag. No longer needed now that we handle this in gnat1drv.adb.
22021 * repinfo.ads: Minor reformatting
22023 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22024 Olivier Hainque <hainque@adacore.com>
22025 Eric Botcazou <ebotcazou@adacore.com>
22027 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
22028 TYPE_SIZE_UNIT of result type if SIZE is not specified.
22029 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
22030 of a bitfield, which we know is useless and causes trouble because of
22031 alignment implications.
22033 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
22035 (process_attributes): Clear DECL_COMMON again when a section attribute
22037 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
22038 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
22039 (create_field_decl): Special case ADDRESSABLE negative to mean
22040 "no bitfield creation", to be used by make_aligning_type. Don't
22041 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
22042 fields claimed addressable still have to be bitfields. Use
22043 value_factor_p instead of a raw binop construction to check for the
22044 position's alignment.
22046 2004-12-07 Geert Bosch <bosch@adacore.com>
22048 * eval_fat.adb: Revert previous change.
22050 2004-12-07 Thomas Quinot <quinot@adacore.com>
22051 Ed Schonberg <schonberg@adacore.com>
22053 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
22054 with an implicit dereference as its prefix, use
22055 Insert_Explicit_Dereference instead of merely rewriting the prefix into
22056 an explicit dereference. This ensures that a reference to the original
22057 prefix is generated, if appropriate.
22059 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
22060 dereference is rewritten to an explicit one, generate a reference to
22061 the entity denoted by its prefix using the original prefix node, so
22062 the dereference can be properly recorded as a read of the denoted
22063 access value, if appropriate.
22065 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
22066 emitting 'assigned but never read' warning on a variable on the basis
22067 that it has an access type.
22068 (Check_References): Emit unreferenced warning when the scope is a
22071 2004-12-07 Robert Dewar <dewar@adacore.com>
22072 Ed Schonberg <schonberg@adacore.com>
22074 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
22077 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
22078 leaving call unchanged.
22079 This deals with the case where the pragma Import specified
22080 an external name, to be handled by the back end.
22082 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
22083 subprogram which is Imported with convention Intrinsic if an
22084 External_Name argument is specified.
22085 (Process_Import_Or_Interface): Properly diagnose link name argument.
22086 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
22087 with Sem_Ch6.Cannot_Inline.
22088 (Process_Inline): Provide separate warning for inapplicable inline
22090 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
22091 treatment is uniform on different targets.
22093 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22095 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
22096 construct is rewritten, preserve end label to permit source navigation.
22098 2004-12-07 Thomas Quinot <quinot@adacore.com>
22100 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
22101 Specific_Build_Stub_Target): New subprograms.
22102 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
22103 the PCS implementation used, using the above PCS-customized subprograms.
22104 Minor reformatting.
22105 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
22106 for generation of DSA code targeted to the PolyORB PCS.
22107 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
22108 implementation of the partition communication subsystem in ancillary
22110 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
22111 PolyORB_Support.Build_Stub_Type): New subrograms containing the
22112 PCS-specific part of Add_Stub_Type.
22113 (Insert_Partition_Check): Use runtime library function to perform
22116 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
22117 (RE_Same_Partition): New entity, from s-parint.
22119 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
22121 2004-12-07 Gary Dismukes <dismukes@adacore.com>
22123 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
22124 Output the copyright message on a separate line from the version
22127 2004-12-07 Joel Brobecker <brobecker@adacore.com>
22129 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
22130 compile-time warning.
22132 2004-12-07 Robert Dewar <dewar@adacore.com>
22134 * g-regpat.adb: (Match): Change a misuse of or to or else
22136 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22139 (Generate_Reference): Handle properly a reference to an entry formal,
22140 when an accept statement has a pragma Unreferenced for it.
22142 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
22143 and the Has_Pragma_Unreferenced flag for each formal before analyzing
22144 the body, to ensure that warnings are properly emitted for each accept
22145 statement of a given task entry.
22147 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
22149 * Makefile.in: Add support for foreign threads on VMS.
22151 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22153 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
22155 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
22157 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
22159 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
22161 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
22163 2004-12-07 Robert Dewar <dewar@adacore.com>
22165 * nlists.adb (Prepend_Debug): Remove parameters and nest within
22167 (Remove_Next_Debug): Same fix
22169 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
22170 maintain back pointers now, though we did not used to, and comments
22172 (Prepend): Remove pragma Inline.
22173 (Remove_Next): Same cleanup
22175 2004-12-07 Thomas Quinot <quinot@adacore.com>
22177 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
22178 used to record an implicit dereference as a read operation on its
22179 prefix when operating under -gnatc. Necessary to avoid spurious
22180 'variable assigned but never read' warnings in that mode.
22181 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
22182 is a non-overloaded implicit dereference, call the above subprogram to
22183 ensure proper recording of references.
22185 2004-12-07 Gary Dismukes <dismukes@adacore.com>
22187 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
22188 to be resolved later as part of Analyze_Iteration_Scheme's call to
22191 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22193 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
22194 prefix is not a scalar type, place error message on prefix, not on
22197 2004-12-07 Bernard Banner <banner@adacore.com>
22199 * vxaddr2line.adb: Add support for x86 vxworks
22201 2004-12-07 Thomas Quinot <quinot@adacore.com>
22203 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
22204 documentation of the behaviour of these functions when passed an IP
22205 address that has no record in the system hosts database and no reverse
22208 * cstand.adb, a-tags.ads: Fix typos in comment.
22210 2004-12-07 Robert Dewar <dewar@adacore.com>
22212 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
22213 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
22214 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
22215 s-poosiz.ads: Minor reformatting
22217 * make.adb: Minor reformatting
22218 Add some ??? comments asking for more comments
22220 * s-poosiz.adb: Minor reformatting
22221 Add comments on alignment requirement
22223 * sinfo.ads: Remove obsolete comment and fix typo.
22225 2004-12-07 Vincent Celier <celier@adacore.com>
22226 Sergey Rybin <rybin@adacore.com>
22228 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
22229 Files" with the new tool and package names.
22230 Reformatting to suppress most of the warnings for line too long
22231 Document the new section "Project Search Path:" in the output of
22233 Add gnatmetric section
22235 2004-12-07 Vincent Celier <celier@adacore.com>
22237 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
22238 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
22239 and -eit to -ept. Added qualifier
22240 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
22242 2004-11-27 Andreas Schwab <schwab@suse.de>
22244 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
22246 2004-11-25 Arnaud Charlet <charlet@adacore.com>
22248 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
22249 internal implementation unit GNAT.Sockets.Thin,
22250 as their usage for sockets is non-portable (using the read and write
22251 functions from the system runtime library is fine on UNIX but won't
22252 work under Windows).
22254 * mingw32.h: Update copyright notice.
22256 2004-11-25 Arnaud Charlet <charlet@adacore.com>
22258 * ada-tree.h: Minor reformatting of previous change to avoid lines
22259 longer than 79 characters.
22261 2004-11-25 Olivier Hainque <hainque@adacore.com>
22263 * tb-gcc.c: GCC infrastructure based implementation of
22266 2004-11-24 Steven Bosscher <stevenb@suse.de>
22268 * misc.c (gnat_post_options): Don't clear
22269 flag_inline_functions.
22271 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
22274 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
22277 2004-11-21 Andreas Jaeger <aj@suse.de>
22279 * stylesw.adb: Change Style_Check_Subprogram_Order to
22280 Style_Check_Order_Subprograms.
22282 2004-11-18 Arnaud Charlet <charlet@adacore.com>
22284 * adaint.h, adaint.c
22285 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
22287 Add also a cast to kill another warning.
22288 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
22289 parameter with the priority class of the parent process instead of
22290 always using the NORMAL_PRIORITY_CLASS.
22291 (__gnat_dup): New function.
22292 (__gnat_dup2): New function.
22293 (__gnat_is_symbolic_link): Enable the effective body of this
22294 function when __APPLE__ is defined.
22296 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
22299 2004-11-18 Olivier Hainque <hainque@adacore.com>
22301 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
22302 address of which may be used to represent "others" and "all others"
22303 choices in exception tables, instead of the current harcoded
22304 (void *)0 and (void *)1.
22305 (Setup_Exception): Do nothing in the GNAT SJLJ case.
22307 * gigi.h (others_decl, all_others_decl): New decls representing the
22308 new Others_Value and All_Others_Value objects.
22309 (struct attrib): Rename "arg" component as "args", since GCC expects a
22310 list of arguments in there.
22312 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
22313 corresponding objects exported by a-exexpr, instead of hardcoded dummy
22316 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
22317 others_decl and all_others_decl instead of hardcoded dummy addresses
22318 to represent "others" and "all others" choices, which is cleaner and
22319 more flexible with respect to the possible eh pointer encoding policies.
22321 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
22322 (process_attributes): Account for the naming change of the "args"
22323 attribute list entry component.
22325 * decl.c (build_attr_list): Rename into prepend_attributes to allow
22326 cumulating attributes for different entities into a single list.
22327 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
22328 attributes for the current entity and propagate first subtype
22329 attributes to other subtypes.
22330 <E_Procedure>: Attribute arguments are attr->args and not
22331 attr->arg any more.
22332 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
22333 argument provided, as this is what GCC expects. Use NULL_TREE instead
22336 2004-11-18 Robert Dewar <dewar@adacore.com>
22338 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
22339 Minor reformatting througout (including new function specs)
22340 Add ??? comments asking for clarification.
22342 2004-11-18 Thomas Quinot <quinot@adacore.com>
22344 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
22345 incomplete duplicate implementation of this subprogram from butil.
22347 2004-11-18 Thomas Quinot <quinot@adacore.com>
22349 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
22350 procedures factors the common processing for building an RPC receiver
22351 for an RCI package or an RACW type.
22352 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
22353 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
22354 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
22356 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
22358 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
22360 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
22361 distribution subprogram identifiers that are either subprogram numbers
22363 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
22364 string distribution identifiers assigned to a given subprogram.
22365 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
22366 (Add_RAS_Dereference_TSS): Add comments.
22367 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
22368 is not referenced yet because it will be used by the PolyORB DSA
22370 (Insert_Partition_Check): Remove fossile code.
22371 (First_RCI_Subprogram_Id): Document this constant.
22372 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
22374 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
22375 replaced with calls to Get_Library_Unit_Name_String. Previously there
22376 were several instances of the same code in different locations in the
22377 compiler; this checkin completes the replacement of all of these
22378 instances with calls to a common subprogram.
22379 Minor reformatting.
22381 * sem_dist.adb: Remove comment noting that RPC receiver generation
22382 should be disabled for RACWs that implement RASs.
22383 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
22385 * sem_util.ads, sem_util.adb (Has_Stream): New function
22386 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
22387 qualified name of a library unit into the name buffer.
22388 (Note_Possible_Modification): Generate a reference only
22389 if the context comes from source.
22391 * snames.ads (PCS_Names): New subtype corresponding to names of
22392 supported implementations of the Partition Communication Subsystem
22393 (PCS) (i.e. the runtime library support modules for the distributed
22396 2004-11-18 Robert Dewar <dewar@adacore.com>
22397 Ed Schonberg <schonberg@adacore.com>
22399 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
22400 (Has_Rep_Pragma): New function
22401 (Has_Attribute_Definition_Clause): New function
22402 (Record_Rep_Pragma): Moved here from sem_ch13.adb
22403 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
22405 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
22407 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
22408 (Expand_Pragma_Psect_Object): New procedure
22409 These procedures contain the revised and cleaned up processing for
22410 these two pragmas. This processing was formerly in Sem_Prag, but
22411 is more appropriately moved here. The cleanup involves making sure
22412 that the pragmas are properly attached to the tree, and that no
22413 nodes are improperly shared.
22415 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
22416 pragmas to Exp_Prag, which is more appropriate.
22417 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
22418 check for duplicates Remove use of Is_Psected flag, no longer needed.
22419 Use new Make_String_Literal function with string.
22421 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
22422 that are functions return universal values, that have to be converted
22423 to the context type.
22424 Use new Make_String_Literal function with string.
22425 (Get_Stream_Convert_Pragma): New function, replaces the use of
22426 Get_Rep_Pragma, which had to be kludged to work in this case.
22428 * freeze.adb: Use new Has_Rep_Pragma function
22430 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
22431 function with string.
22432 Use new Has_Rep_Pragma function.
22434 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
22437 2004-11-18 Robert Dewar <dewar@adacore.com>
22439 * errout.ads, errout.adb: (First_Sloc): New function
22441 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
22442 check (-gnatyx) instead of being included as a redundant construct
22445 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
22446 Style_Check_Order_Subprograms.
22448 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
22449 stylesw.adb: Add Style_Check_Xtra_Parens
22451 * usage.adb: Add line for -gnatyx (check extra parens)
22453 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
22455 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22456 Robert Dewar <dewar@adacore.com>
22458 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
22459 discriminant of a constrained subtype, analyze the copy of the
22460 corresponding constraint, because in some cases it may be only
22461 partially analyzed.
22462 Removes long-lived ??? comments.
22464 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
22465 handled controlled or secondary-stack expressions within the
22466 iteration_scheme of a loop.
22468 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
22469 bounds that may contain functions calls, to prevent memory leaks when
22470 the bound contains a call to a function that uses the secondary stack.
22471 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
22472 generate temporaries for loop bounds that might contain function calls
22473 that require secondary stack and/or finalization actions.
22475 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
22476 selected component and the selector is overloadable (not just a
22477 function) treat as function call, Analyze_Call will disambiguate if
22479 (Analyze_Selected_Component): Do not generate an actual subtype for the
22480 selected component if expansion is disabled. The actual subtype is only
22481 needed for constraint checks.
22482 (Analyze_Allocator): If restriction No_Streams is set, then do
22483 not permit objects to be declared of a stream type, or of a
22484 composite type containing a stream.
22486 * restrict.ads: Remove the a-stream entry from Unit_Array, since
22487 No_Streams no longer prohibits with'ing this package.
22489 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
22490 discriminants, but the parent base has unknown discriminants, there is
22491 no discriminant constraint to inherit. Such a discrepancy can arise
22492 when the actual for a formal type with unknown discriminants is a
22493 similar private type whose full view has discriminants.
22494 (Analyze_Object_Declaration): If restriction No_Streams is set, then
22495 do not permit objects to be declared of a stream type, or of a
22496 composite type containing a stream.
22498 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22500 * exp_dbug.ads: Update documentation to reflect simpler encoding for
22501 protected operations.
22503 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
22504 generated name, it complicates decoding in gdb and hinders debugging
22505 of protected operations.
22506 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
22507 flag for the protected entry barrier function.
22508 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
22509 flag for the protected entry function.
22511 2004-11-18 Nicolas Setton <setton@adacore.com>
22513 * expect.c: Define __unix__ when __APPLE__ is defined.
22515 * Makefile.in: Inform the value of the variable GMEM_LIB in the
22516 Darwin-specific section.
22518 * lang-specs.h: Change the placement of the %1 marker.
22519 Works around the fact that gcc adds -fPIC by default under Darwin.
22521 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22523 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
22524 type of the object with the packed array type, set the Analyzed flag
22525 on the object if it is an entity or simple indexed component, to avoid
22526 spurious type errors.
22528 2004-11-18 Gary Dismukes <dismukes@adacore.com>
22530 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
22531 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
22532 separate line from the version message.
22534 2004-11-18 Ed Falis <falis@adacore.com>
22536 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
22538 (init_float): Eliminate initialization of floating point status for
22539 AE653. The instructions have no effect for vThreads.
22541 2004-11-18 Vincent Celier <celier@adacore.com>
22543 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
22544 gnatbind is invoked with -shared.
22546 2004-11-18 Jose Ruiz <ruiz@adacore.com>
22548 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
22549 for Detect_Blocking which is redundant with the check done within the
22550 procedure Protected_Single_Entry_Call.
22551 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
22552 Detect_Blocking which is redundant with the check done within the
22553 procedure Protected_Single_Entry_Call.
22555 2004-11-18 Vincent Celier <celier@adacore.com>
22557 * makegpr.adb (Compile): Put the compiling switches (in package
22558 Compiler and on the command line) immediately after "-c", instead of
22559 at the end of the command line invocation of the compiler, when
22560 compiling a non-Ada file.
22561 (Build_Global_Archive): When there is no need to rebuild the archive,
22562 set Global_Archive_Exists, so that the archive is passed to the linker
22565 2004-11-18 Robert Dewar <dewar@adacore.com>
22566 Sergey Rybin <rybin@adacore.com>
22569 Remove extra paren check from list of checks for redundant constructs
22570 Add documentation of new -gnatyx style check (check extra parens)
22571 Remove paragraph about gnatelim debug options.
22573 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
22574 objects rather than forbidding dependencies on the package Ada.Streams.
22576 * sinfo.ads: Add ??? note that we should document pragmas passed to
22579 * g-expect.ads: Fix a few typos in the comments.
22581 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
22583 * misc.c (gnat_handle_option): Use %< and %> for quoting in
22586 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22588 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
22590 2004-11-07 Andreas Schwab <schwab@suse.de>
22592 * Makefile.in (install-gnatlib): Remove spurious hyphen.
22594 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
22597 * Makefile.in (darwin): Set soext to .dylib.
22599 2004-10-26 Vincent Celier <celier@gnat.com>
22600 Thomas Quinot <quinot@act-europe.fr>
22602 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
22603 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
22604 there is no use of GNAT.Sockets.Constants.
22605 Remove remaining pragma Import for C_Write
22606 Remove C_Read and C_Write from internal implementation unit
22607 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
22608 the read and write functions from the system runtime library is fine
22609 on UNIX but won't work under Windows).
22611 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
22612 (Check_Selector): Use C_Recv instead of C_Read.
22613 Selectors are the GNAT.Sockets abstraction to perform a select()
22614 call on a set of descriptors. To allow abortion of an ongoing
22615 select operation, some data is written to a dedicated socket that
22616 is always monitored.
22617 Under Windows, the write and read library functions cannot operate
22618 on sockets, so we need to use send and recv instead, which is portable
22619 across all supported platforms.
22621 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
22622 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
22623 (using the read and write functions from the system runtime library is
22624 fine on UNIX but won't work under Windows).
22626 2004-10-26 Nicolas Setton <setton@act-europe.fr>
22628 * mlib-tgt-darwin.adb: New file.
22630 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22631 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22632 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
22633 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
22636 * Makefile.in: Add support for building shared libraries under Darwin.
22637 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
22638 the low level EH init subprogram to be called from __gnat_initialize.
22640 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
22641 indicates which options to pass to the archive indexer.
22643 * mlib-utl.adb: Add support for calling ranlib with additional
22644 options. This is needed for instance under Mac OS X.
22645 (Ranlib_Options): New global variable, used to store the potential
22646 options to pass to ranlib.
22647 (Ar): Use Ranlib_Options when spawning ranlib.
22648 (Initialize): Set the value of ranlib option.
22650 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
22652 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
22653 instead of 8K, to reflect the real potential needs for stack-checking
22656 2004-10-26 Pascal Obry <obry@gnat.com>
22658 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
22660 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
22661 Windows only the initial thread stack size can be set so it is good to
22662 start we a low stack size.
22663 The OS will adjust the size as needed.
22665 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
22666 Nicolas Setton <setton@act-europe.fr>
22668 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
22669 "__unix__" instead of "unix".
22670 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
22671 sections were just mistakenly ignored. The former is
22672 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
22673 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
22674 of hpux. This prevents an unwanted definition of the symbol
22675 convert_addresses in adaint.o.
22677 2004-10-26 Gary Dismukes <dismukes@gnat.com>
22679 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
22680 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
22682 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22684 * a-filico.ads, a-filico.adb: fix incorrect header.
22686 2004-10-26 Javier Miranda <miranda@gnat.com>
22688 * a-ststio.ads: Fix typo in identifier
22690 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22692 * sem_ch4.adb: Minor reformatting.
22694 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22696 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
22697 enabled, check the result of unary and binary operations when the
22698 expression is the right-hand side of an assignment.
22700 2004-10-26 Vincent Celier <celier@gnat.com>
22702 * clean.adb (Delete): Do not output warnings when in quiet output and
22703 not in verbose mode.
22704 (Force_Deletions): New Boolean flag, defaulted to False
22705 (Delete): Only delete a file if it is writable, and when
22706 Force_Deletions is True.
22707 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
22708 (Usage): Line for new switch -f
22709 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
22712 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
22714 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
22715 JM type only if its size matches that of the wrapper. When a size is
22716 prescribed and the field is not aliased, remove the wrapper of a JM
22717 type only if the size is not greater than that of the packed array.
22718 (gnat_to_gnu_entity): Change the extension of packed array wrappers
22721 2004-10-26 Geert Bosch <bosch@gnat.com>
22723 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
22724 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
22725 (Pred): Implement in terms of Succ.
22727 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22729 * exp_aggr.adb (Safe_Component): An aggregate component that is an
22730 unchecked conversion is safe for in-place use if the expression of the
22731 conversion is safe.
22732 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
22733 be expandable in place even if the aggregate does not come from source.
22734 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
22735 designated object of an allocator in place, rather than building it
22736 first on the stack. The previous scheme forces a full copy of the array,
22737 and may be altogether unsusable if the size of the array is too large
22738 for stack allocation.
22740 2004-10-26 Robert Dewar <dewar@gnat.com>
22742 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
22743 compares if the component is atomic.
22745 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
22746 array assignment if the component type is atomic.
22748 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22749 Eric Botcazou <ebotcazou@act-europe.fr>
22751 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
22752 is aliased and is a by_reference type, do not pass by copy.
22753 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
22754 detect whether the call is in the right side of an assignment or
22755 the expression of an object declaration. Recurse on component
22756 association within aggregates.
22757 Call it in the condition that determines whether the temporary is
22758 necessary for correct stack-checking.
22760 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22762 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
22763 RACW_Type, used in the PolyORB version.
22764 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
22765 version and the GARLIC version.
22767 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
22768 Rename RCI_Info to RCI_Locator for better consistency between the
22769 GARLIC and PolyORB versions of the distributed systems annex.
22770 (DSA_Implementation_Name): This enumeration lists the possible
22771 implementations of the Partition Communication Subsystem for the
22772 Distributed Systems Annex (DSA). The three available implementations
22773 are the dummy stub implementation (No_DSA), and two versions based on
22774 two different distribution runtime libraries: GARLIC and PolyORB. Both
22775 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
22777 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
22780 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
22781 between the GARLIC and PolyORB versions of the distributed systems
22783 Remove RE_Unbounded_Reclaim_Pool since it is unused.
22785 2004-10-26 Gary Dismukes <dismukes@gnat.com>
22787 * gnat1drv.adb: Suppress calling the back end when
22788 Frontend_Layout_On_Target is true.
22790 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22792 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
22793 Set_Read_Only): New subprograms.
22794 These new routines allow the user to set or unset the Owner execute
22795 and Owner write permission flags on a file.
22797 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
22798 GNAT.OS_Lib.Set_Executable instead of rolling our own.
22800 2004-10-26 Matthew Gingell <gingell@gnat.com>
22802 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
22804 2004-10-26 Pascal Obry <obry@gnat.com>
22806 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
22807 memory before the faulting page we properly test the process read
22808 access for this address using appropriate Win32 routine.
22809 (HPUX sections): guard with "__hpux__" instead of "hpux".
22811 2004-10-26 Robert Dewar <dewar@gnat.com>
22813 * lib-xref.adb (Generate_Reference): Don't complain about reference to
22814 entry parameter if pragma Unreferenced set, since we do not properly
22815 handle the case of multiple parameters.
22817 2004-10-26 Vincent Celier <celier@gnat.com>
22819 * prj-env.adb: (Contains_ALI_Files): New Boolean function
22820 (Ada_Objects_Path.Add): For a library project, add to the object path
22821 the library directory only if there is no object directory or if the
22822 library directory contains ALI files.
22823 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22825 2004-10-26 Vincent Celier <celier@gnat.com>
22827 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
22828 extension of library projects.
22830 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
22831 path defaults to ".:<prefix>/lib/gnat".
22832 (Parse): For an extending all project, allow direct import of a project
22833 that is virtually extended.
22835 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
22836 the specified name is directly imported, return its ID. Otherwise, if
22837 an extension of this project is imported, return the ID of the
22840 2004-10-26 Robert Dewar <dewar@gnat.com>
22842 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
22843 (Sub3): New procedure, used by Scaled_Divide
22844 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
22845 correct more than one instance of failure to propagate carries
22847 (Double_Divide): Handle overflow case of largest negative number
22848 divided by minus one.
22850 * s-arit64.ads (Double_Divide): Document that overflow can occur in
22851 the case of a quotient value out of range.
22854 2004-10-26 Robert Dewar <dewar@gnat.com>
22856 * s-bitops.adb (Bit_Eq): Remove redundant check.
22858 * s-bitops.ads: Minor comment updates
22859 Change some occurrences of Address to System.Address
22861 * s-carsi8.ads: Fix minor cut-and-paste error in comments
22863 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22865 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
22866 accessibility check to prefix that is a protected operation.
22868 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22870 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
22871 empty, post message on stub.
22873 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22874 Javier Miranda <miranda@gnat.com>
22876 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
22877 current instance appears within a unit that is directly in the context
22879 Used to determine whether the body of the instance should be analyzed
22880 immediately after its spec, to make its subprogram bodies available
22881 for front-end inlining.
22882 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
22883 constraint is not allowed on the component type (AARM 12.5.3(3))
22885 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22887 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
22888 'Storage_Pool): enhance, document & limit detection of non-sharable
22891 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
22893 * s-pooglo.ads: Add more documentation now that this pool is properly
22896 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22898 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
22899 or protected type with discriminants, do not constrain the
22900 corresponding record type if the subtype declaration has no
22901 discriminant constraints. This can be the case in source code, or in
22902 the subtype declaration created to rename an actual type within an
22905 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22907 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
22908 different kind of stub (possibly wrong name for file), do not check
22910 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
22911 includes call to some function that returns an unconstrained type, do
22914 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22916 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
22917 appear in the code for the main unit. Dependencies among units in the
22918 context of the main unit are established when those other units are
22919 compiled. Otherwise spurious elaboration constraints can generate
22920 incorrect elaboration circularities.
22922 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22923 Ed Schonberg <schonberg@gnat.com>
22925 * sem_util.adb (Is_Aliased_View): Defend against the case where this
22926 subprogram is called with a parameter that is not an object name. This
22927 situation arises for some cases of illegal code, which is diagnosed
22928 later, and in this case it is wrong to call Is_Aliased, as that might
22929 cause a compiler crash.
22930 (Explain_Limited_Type): Refine previous fix to include
22931 inherited components of derived types, to provide complete information.
22933 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
22934 is the prival for a protected object.
22935 It is necessary to mark this entity as a variable, in addition to
22936 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
22937 modified to avoid checking the Aliased flag on entities that are not
22938 objects. (Checking that flag for non-objects is erroneous and could
22939 lead to a compiler crash).
22941 2004-10-26 Robert Dewar <dewar@gnat.com>
22943 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
22944 X_Frac = 0.5, then we know that the number X must be positive.
22945 (Succ): Remove the same redundant test, and also fix the primary test
22946 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
22948 (Decompose): Add fuller comments to spec
22950 2004-10-26 Pascal Obry <obry@gnat.com>
22952 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
22953 validity (process must have read access). Set to 0 in all other cases.
22954 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
22955 violation on Win32.
22956 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
22957 segmentation violation.
22959 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
22961 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
22962 whose type is a constructed subtype of an aliased object with an
22963 unconstrained nominal subtype, convert the actual to the constructed
22964 subtype before taking its address.
22966 2004-10-26 Vincent Celier <celier@gnat.com>
22968 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
22969 (Is_Path_Name_Case_Sensitive): New function
22971 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
22972 (Base_Name, Simple_Name, Current_Directory, Compose,
22973 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
22976 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22977 Vasiliy Fofanov <fofanov@act-europe.fr>
22978 Vincent Celier <celier@gnat.com>
22980 * gnat_ugn.texi: Generalize "finding memory problems" section into a
22981 "memory management issues" section and document some of the useful
22982 memory pools provided as part of the GNAT library.
22983 Remove "virtual" from declaration of A::method2 in
22984 the simple example of Ada/C++ mixed system.
22985 Library Projects may be virtually extended: their virtual extensions
22986 are not Library Projects.
22987 Added section on extending project hierarchies.
22989 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
22991 * adaint.c (__gnat_get_libraries_from_registry): Cast value
22993 (__gnat_portable_spawn): Remove const.
22995 * mingw32.h (MAXPATHLEN): Check for previous definition.
22997 2004-10-17 Matthias Klose <doko@debian.org>
22999 * gnatvsn.ads: Set gnat library version to 4.0.
23001 2004-10-05 Vincent Celier <celier@gnat.com>
23003 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
23005 2004-10-04 Laurent GUERBY <laurent@guerby.net>
23008 * Makefile.in: Define and use RANLIB_FLAGS.
23010 2004-10-04 Pascal Obry <obry@gnat.com>
23012 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
23013 other x86 platforms).
23015 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
23017 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
23018 in general and triggers stack alignment adjustment for thread entry
23019 points on targets where this is necessary.
23021 2004-10-04 Bernard Banner <banner@gnat.com>
23024 * Makefile.in: Add section for powerpc linux
23025 Add variant i-vxwork-x86.ads
23027 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
23029 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
23031 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
23032 table registration calls when need be. Ensures no reference to the crt
23033 ctors symbol are issued in the SJLJ case, which avoids possible
23034 undefined symbol errors in the case of modules to be statically linked
23037 2004-10-04 Javier Miranda <miranda@gnat.com>
23039 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
23040 in-line the code corresponding to subprogram Analyze_Actuals. In
23041 addition, analyze the actuals only in case of subprogram call.
23043 2004-10-04 Ed Falis <falis@gnat.com>
23045 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
23047 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
23049 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
23050 in the documentation.
23052 2004-10-04 Robert Dewar <dewar@gnat.com>
23054 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
23056 (Analyze_Block_Statement): Add circuitry to detect following dead code
23057 (Check_Unreachable_Code): Handle case of block exit
23059 2004-10-04 Robert Dewar <dewar@gnat.com>
23061 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
23062 (XMatchD): Avoid warning for Logic_Error call
23064 2004-10-04 Robert Dewar <dewar@gnat.com>
23066 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
23067 consider expressions buried within a procedure actual to be an actual.
23068 This caused some blowups with uses of packed slices within a procedure
23071 2004-10-04 Robert Dewar <dewar@gnat.com>
23073 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
23074 longer need to be initialized to zero.
23075 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
23076 initialized to zero.
23078 * checks.adb (Expr_Known_Valid): Packed arrays are now always
23079 considered valid, even if the representation is modular. That's correct
23080 now that we no longer initialize packed modular arrays to zero.
23082 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
23083 suffixes. These are now documented as the only cases in which the
23084 debugger ignores outer records.
23085 Previously, the spec allowed arbitrary suffixes for this purpose.
23086 Change name of LJM to JM for packed array pad records
23087 Create separate section on packed array handling, and add a whole new
23088 set of comments to this section describing the situation with packed
23089 modular types and justification requirements depending on endianness.
23091 2004-10-04 Robert Dewar <dewar@gnat.com>
23093 * a-except.adb: Add a comment for last change
23095 * einfo.ads: Minor spelling correction in comment
23097 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
23099 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
23102 * sem_util.ads: Minor comment update
23104 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23106 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
23107 Inline_Always when in Configurable_Run_Time mode.
23109 * sem_prag.adb (Process_Convention): If entity is an inherited
23110 subprogram, apply convention to parent subprogram if in same scope.
23111 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
23112 when in Configurable_Run_Time mode.
23114 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23116 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
23117 class_wide type after component list has been inherited.
23119 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23121 * sem_ch12.adb (Check_Generic_Actuals): New predicate
23122 Denotes_Previous_Actual, to handle properly the case of a private
23123 actual that is also the component type of a subsequent array actual.
23124 The visibility status of the first actual is not affected when the
23125 second is installed.
23126 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
23127 make fully recursive the treatment of formals of packages declared
23129 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
23130 the above on exit from an instantiation.
23131 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
23132 current instantiation which is now complete.
23133 (Analyze_Package_Instantiation): No instantiated body is needed if the
23134 main unit is generic. Efficient, and avoid anomalies when a instance
23135 appears in a package accessed through rtsfind.
23137 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23139 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
23140 do not generate a declaration for a temporary if the call is part of a
23141 library-level instantiation.
23143 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23145 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
23146 searching for a limited component to flag.
23148 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
23149 expansion of Input, to account for the fact that the implicit call
23150 generated by the attribute reference must freeze the user-defined
23151 stream subprogram. This is only relevant to 'Input, because it can
23152 appear in an object declaration, prior to the body of the subprogram.
23154 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
23155 expansion can proceed and further errors uncovered.
23156 (Minor clean up): Fix cases of using | instead of \ for continuation
23159 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23161 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
23163 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
23164 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
23165 Use gcc_assert and gcc_unreachable.
23167 * decl.c (gnat_to_gnu_entity, case object): Check and process a
23168 specified alignment before validating size.
23169 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
23170 stripped-down declaration for the type of the inner field when making
23173 * utils.c (finish_record_type): Do not compute the size in units
23174 incrementally. Instead compute it once for the rep clause case.
23175 Use gcc_assert and gcc_unreachable.
23177 2004-10-04 Vincent Celier <celier@gnat.com>
23179 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
23181 (Is_Valid_Path_Name): Take '/' as a directory separator.
23183 2004-10-04 Vincent Celier <celier@gnat.com>
23185 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
23186 (Extended_Project) only if Extended_Project is defined, to avoid
23188 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
23190 (Parse_Single_Project): Ditto.
23192 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
23193 Add_To_Project_Path for virtual projects.
23195 2004-10-04 Vincent Celier <celier@gnat.com>
23197 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23198 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23199 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
23200 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
23201 parameter Options_2.
23203 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
23204 Build_Dynamic_Library with an empty Options_2.
23206 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
23209 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
23210 directory separator, if any.
23211 (Gprmake): Do not allow mains on the command line for library projects.
23212 Do not attempt to link when the project is a library project.
23213 (Library_Opts): New table to store Library_Options.
23214 (Build_Library): If Library_Options is specified, pass these options
23215 when building a shared library.
23217 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
23219 * s-tposen.adb (Service_Entry): The object must be always unlocked at
23220 the end of this procedure now that the unlock operation was inserted
23223 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
23225 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
23226 corresponding to the Preallocated_Stacks flags in System.
23227 (Get_Target_Parameters): Including the processing for
23228 Preallocated_Stacks.
23230 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
23231 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
23232 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23233 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
23234 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
23235 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23236 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
23237 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
23238 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
23239 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
23240 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
23241 used to signal whether the compiler creates the required stacks and
23242 descriptors for the different tasks (when True) or it is done by the
23243 underlying operating system at run time (when False).
23244 It is initially set to False in all targets.
23246 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
23247 if it is supported by the target.
23248 (Make_Task_Create_Call): Pass the stack address if it has been
23249 previously created. Otherwise pass a Null_Address.
23251 * snames.adb: Add _stack.
23253 * snames.ads: Add Name_uStack. Required to allow the expander to
23254 statically allocated task stacks.
23256 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
23257 Stack_Address argument.
23258 Check that its value is equal to Null_Address because this target does
23259 not support the static stack allocation.
23261 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23263 * usage.adb: Change "pragma inline" to "pragma Inline" in information
23266 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23268 * exp_dist.adb: Split declaration of asynchronous flag out of
23269 Add_RACW_Read_Attribute.
23270 Minor reformatting for better alignment with PolyORB version.
23271 Store the entity for the asynchronous flag of an RACW, rather than the
23272 expression, in the asynchronous flags table. This will allow this flag
23273 to be used in other subprograms beside Add_RACW_Read_Attribute.
23275 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23277 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
23278 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23279 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
23280 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
23281 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
23282 sockets constant MSG_NOSIGNAL (Linux-specific).
23283 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
23284 all Send operations.
23285 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
23286 from trigerring SIGPIPE.
23287 Rename components to avoid clash with Ada 2005 possible reserved
23289 (Check_Selector): When the select system call returns with an error
23290 condition, propagate Socket_Error to the caller.
23292 2004-10-01 Jan Hubicka <jh@suse.cz>
23294 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
23296 2004-09-23 Robert Dewar <dewar@gnat.com>
23299 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
23300 instead do this at freeze time (we won't do it if there is an address
23302 Change "pragma inline" to "pragma Inline" in information and error
23304 Minor reformatting.
23306 * freeze.adb (Check_Address_Clause): Remove previous change, not the
23307 right way of doing things after all.
23308 (Freeze_Entity): For object, set Is_Public for imported entities
23309 unless there is an address clause present.
23311 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
23313 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
23314 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
23315 ensures proper handling of types with rep clauses, which might have
23316 their TYPE_SIZE set already.
23318 2004-09-21 Robert Dewar <dewar@gnat.com>
23320 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
23321 packed array types in both little- and big-endian cases. This change
23322 ensures that we no longer count on the unused bits being initialized
23323 for such types (and in particular ensures that equality testing will
23324 only read the relevant bits).
23325 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23326 These changes mean that we no longer need to initialize small packed
23328 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
23329 optimization to an LJM field as to its parent field.
23331 * ada-tree.h, trans.c, utils.c, utils2.c:
23332 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23334 2004-09-20 Jan Hubicka <jh@suse.cz>
23336 * utils.c (gnat_finalize): Remove.
23337 (end_subprog_body): Directly call cgraph_finalize_function;
23338 do not lower the nested functions.
23340 2004-09-20 Robert Dewar <dewar@gnat.com>
23343 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
23344 if an address clause is present, since that means that the Import
23347 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
23349 * 5tsystem.ads: Removed, no longer used.
23351 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
23352 Zack Weinberg <zack@codesourcery.com>
23354 * ada-tree.def: Use tree_code_class enumeration constants
23355 instead of code letters.
23356 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
23357 Update for new tree-class enumeration constants.
23359 2004-09-17 Vincent Celier <celier@gnat.com>
23361 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
23362 capabilities of the general project manager.
23364 2004-09-09 Vincent Celier <celier@gnat.com>
23366 * a-direct.ads: Add pragma Ada_05
23367 (Directory_Entry_Type): Give default value to component Kind to avoid
23368 not initialized warnings.
23370 * a-direct.adb (Current_Directory): Remove directory separator at the
23372 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
23373 an existing directory.
23374 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
23375 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
23376 Convert the result to File_Size.
23378 * prj.ads: (Project_Error): New exception
23380 * prj-attr.adb: Except in procedure Initialize, Fail comes from
23381 Prj.Com, not from Osint.
23382 (Attrs, Package_Attributes): Tables moved to private part of spec
23383 (Add_Attribute, Add_Unknown_Package): Moved to new child package
23385 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
23386 Prj.Project_Error after call to Fail.
23387 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
23388 Fail. Check that package name is not already in use.
23390 * prj-attr.ads: Comment updates to indicate that all subprograms may be
23391 used by tools, not only by the project manager, and to indicate that
23392 exception Prj.Prj_Error may be raised in case of problem.
23393 (Add_Unknown_Package, Add_Attribute): Moved to new child package
23395 (Attrs, Package_Attributes): Table instantiations moved from the body to
23396 the private part to be accessible from Prj.Attr.PM body.
23398 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
23399 from new package Prj.Attr.PM.
23400 (Parse_Attribute_Declaration): Call Add_Attribute from new package
23403 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
23405 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
23406 instead of Elaboration_Checks).
23408 * a-calend.adb: Minor reformatting
23410 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23412 * gigi.h (maybe_pad_type): New declaration.
23413 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
23415 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
23417 * cuintp.c: Convert to use buildN.
23419 * decl.c (maybe_pad_type): No longer static.
23420 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
23422 Convert to use buildN.
23424 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
23425 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
23426 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
23428 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
23429 (gnat_gimplify_expr, case ADDR_EXPR): New case.
23430 Convert to use buildN.
23432 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
23433 TREE_READONLY for const.
23434 Convert to use buildN.
23436 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
23437 (create_var_decl): Refine when TREE_STATIC is set.
23438 Convert to use buildN.
23440 2004-09-09 Gary Dismukes <dismukes@gnat.com>
23442 * gnat_ugn.texi: Delete text relating to checking of ali and object
23445 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
23448 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
23450 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
23451 pragmas recognized by GNAT.
23453 * gnat_rm.texi: Document pragma Detect_Blocking.
23455 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
23456 raise Program_Error if called from a protected operation.
23458 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
23459 the protected action nesting level.
23460 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
23461 protected action nesting level.
23462 (Unlock): When pragma Detect_Blocking is active decrease the protected
23463 action nesting level.
23465 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
23466 Protected_Action_Nesting.
23468 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
23469 Common_ATCB record. It contains the dynamic level of protected action
23470 nesting for each task. It is needed for checking whether potentially
23471 blocking operations are called from protected operations.
23472 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
23473 Detect_Blocking is active or not in the partition.
23475 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
23476 raise Program_Error if called from a protected operation.
23477 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
23478 Program_Error if called from a protected operation.
23479 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
23480 Program_Error if called from a protected operation.
23482 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
23483 raise Program_Error if called from a protected operation.
23485 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
23486 raise Program_Error if called from a protected operation, and increase
23487 the protected action nesting level.
23488 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
23489 Program_Error if called from a protected operation, and increase the
23490 protected action nesting level.
23491 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
23492 protected action nesting level.
23494 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
23495 raise Program_Error if called from a protected operation, and increase
23496 the protected action nesting level.
23497 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
23498 Program_Error if called from a protected operation, and increase the
23499 protected action nesting level.
23500 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
23501 raise Program_Error if called from a protected operation.
23502 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
23503 active, raise Program_Error if called from a protected operation.
23504 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
23505 protected action nesting level.
23507 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
23508 insertion of the statement raising Program_Error. The run time
23509 contains the required machinery for handling that.
23511 * sem_util.ads: Change comment associated to procedure
23512 Check_Potentially_Blocking_Operation.
23513 This procedure does not insert a call for raising the exception because
23514 that is currently done by the run time.
23516 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
23518 * init.c: Add the global variable __gl_detect_blocking that indicates
23519 whether pragma Detect_Blocking is active (1) or not (0). Needed for
23520 making the pragma available at run time.
23521 (__gnat_set_globals): Pass and update the detect_blocking parameter.
23523 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
23524 pragma Detect_Blocking is active.
23526 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
23528 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
23529 DB is found in the ali file. Any unit compiled with pragma
23530 Detect_Blocking active forces its effect in the whole partition.
23532 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
23533 Detect_Blocking is active and delay is called from a protected
23536 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
23537 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
23538 Detect_Blocking is active (0 otherwise).
23539 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
23540 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
23543 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
23545 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
23546 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
23549 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
23550 (Register_Receiving_Stub): Add Subp_Info formal parameter.
23551 Update API in placeholder implemetation of s-parint to reflect changes
23552 in distribution runtime library.
23554 * sem_ch3.adb (Expand_Derived_Record): Rename to
23555 Expand_Record_Extension.
23557 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
23558 primitive operations of potentially distributed object types that have
23559 non-controlling anonymous access formals.
23561 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
23563 New implementation of expansion for remote access-to-subprogram types,
23564 based on the RACW infrastructure.
23565 This version of sem_dist is compatible with PolyORB/DSA as well as
23568 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
23569 Asynchrronous that applies to a remote access-to-subprogram type, mark
23570 the underlying RACW type as asynchronous.
23572 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
23573 __gnat_using_gnu_linker to 1.
23575 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
23576 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
23577 GNAT.Perfect_Hash_Generators, and remove the empty
23578 GNAT.Perfect_Hash package.
23580 * atree.adb: Minor reformatting
23582 * exp_ch3.adb (Expand_Derived_Record): Rename to
23583 Expand_Record_Extension.
23584 (Build_Record_Init_Proc.Build_Assignment): The default expression in
23585 a component declaration must remain attached at that point in the
23586 tree so New_Copy_Tree copies it if the enclosing record type is derived.
23587 It is therefore necessary to take a copy of the expression when building
23588 the corresponding assignment statement in the init proc.
23589 As a side effect, in the case of a derived record type, we now see the
23590 original expression, without any rewriting that could have occurred
23591 during expansion of the ancestor type's init proc, and we do not need
23592 to go back to Original_Node.
23594 * exp_ch3.ads (Expand_Derived_Record): Rename to
23595 Expand_Record_Extension.
23597 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
23598 Returns the RACW type used to implement a remote access-to-subprogram
23600 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
23601 New subprograms. Used to create a proxy tagged object for a remote
23602 subprogram. The proxy object is used as the designated object
23603 for RAS values on the same partition (unless All_Calls_Remote applies).
23604 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
23605 System.Partition_Interface.Get_Unique_Remote_Pointer.
23606 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
23607 Renamed from Add_RAS_*_Attribute.
23608 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
23610 New implementation of expansion for remote access-to-subprogram types,
23611 based on the RACW infrastructure.
23613 * exp_dist.ads (Copy_Specification): Update comment to note that this
23614 function can copy the specification from either a subprogram
23615 specification or an access-to-subprogram type definition.
23617 2004-09-09 Ed Schonberg <schonberg@gnat.com>
23619 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
23620 in an instance, between an explicit subprogram an one inherited from a
23621 type derived from an actual.
23623 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
23624 add a polling call if the subprogram is to be inlined by the back-end,
23625 to avoid repeated calls with multiple inlinings.
23627 * checks.adb (Apply_Alignment_Check): If the expression in the address
23628 clause is a call whose name is not a static entity (e.g. a dispatching
23629 call), treat as dynamic.
23631 2004-09-09 Robert Dewar <dewar@gnat.com>
23633 * g-trasym.ads: Minor reformatting
23635 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
23636 packed arrays, since unused bits are expected to be zero for a
23639 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
23641 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
23644 2004-09-09 Pascal Obry <obry@gnat.com>
23646 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
23647 enable map file generation. Add the right option to generate the map
23648 file if Map_File is set to True.
23650 * gnatdll.adb (Gen_Map_File): New variable.
23651 (Syntax): Add info about new -m (Map_File) option.
23652 (Parse_Command_Line): Add support for -m option.
23653 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
23654 Minor reformatting.
23656 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
23658 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
23659 new gnatdist implementation.
23660 Define a subpackage isolating the output routines specific to this
23663 2004-09-09 Joel Brobecker <brobecker@gnat.com>
23665 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
23667 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
23669 2004-09-09 Cyrille Comar <comar@act-europe.fr>
23671 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
23674 * opt.ads: Add Ada_Version_Runtime constant used to decide which
23675 version of the language is used to compile the run time.
23677 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
23679 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
23680 of variable length temporaries for function return now that the
23681 back-end and gigi support it.
23683 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23685 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
23687 * trans.c (struct stmt_group): Delete field GLOBAL.
23688 (gnat_init_stmt_group): Do not initialize it.
23689 (call_to_gnu): Use save_expr, not protect_multiple_eval.
23690 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
23691 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
23692 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
23693 (start_stmt_group): Likewise.
23694 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
23696 * utils2.c (ggc.h): Include.
23697 (build_call_raise): Call build_int_cst, not build_int_2.
23699 * utils.c (gnat_init_decl_processing): Fix arg to
23700 build_common_tree_nodes.
23701 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
23702 (gnat_define_builtin): Set built_in_decls.
23703 (init_gigi_decls): Call build_int_cst, not build_int_2.
23705 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
23706 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
23707 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
23708 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
23709 SET_TYPE_MODULE): Use them.
23710 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
23711 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
23712 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
23713 SET_TYPE_ADA_SIZE): Likewise.
23714 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
23715 (DECL_CONST_CORRESPONDING_VAR,
23716 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
23717 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
23718 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
23719 (TYPE_RM_SIZE_NUM): New macro.
23720 (TYPE_RM_SIZE): Modified to use above.
23722 * cuintp.c: (build_cst_from_int): New function.
23723 (UI_To_gnu): Use it.
23725 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
23726 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
23727 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
23728 MIN_EXPR for the size, copy it into new.
23730 2004-09-01 Robert Dewar <dewar@gnat.com>
23732 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
23733 packed indexed component where array is an IN OUT formal. This
23734 generated garbage code previously.
23736 * gnat_ugn.texi: Document -fverbose-asm
23738 * gnat-style.texi: Minor updates (note that boolean constants and
23739 variables are joined with AND/OR rather than short circuit forms).
23741 2004-09-01 Ed Schonberg <schonberg@gnat.com>
23743 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
23744 it is an upward conversion of an untagged type with no representation
23747 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
23749 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
23750 System.Partition_Interface.
23752 * checks.adb (Apply_Access_Checks): Do not generate checks when
23753 expander is not active (but check for unset reference to prefix of
23756 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
23757 pragma Debug as an if statement with a constant condition, for
23758 consistent treatment of entity references contained within the
23759 enclosed procedure call.
23761 2004-09-01 Vincent Celier <celier@gnat.com>
23763 * bindgen.adb: (Set_EA_Last): New procedure
23764 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
23766 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
23767 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
23768 linked without errors.
23769 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
23771 (Gen_Exception_Table_C): Correct same bugs
23773 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
23775 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
23776 on Windows, make sure that the drive letter is in upper case.
23778 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
23779 Windows, when the drive letter is added and Case_Sensitive is True, the
23780 drive letter is forced to upper case.
23782 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
23783 to Options_2 for the call to MLib.Utl.Gcc.
23785 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
23786 directory separator when defining BASE_DIR.
23788 2004-09-01 Pascal Obry <obry@gnat.com>
23790 * gprcmd.adb (Extend): Do not output trailing directory separator. This
23791 is not needed and it confuses Windows GNU/make which does not report
23792 directory terminated by a slash as a directory.
23793 (gprcmd): Idem for "pwd" internal command.
23795 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
23796 target names rewrite to fix regressions with recent version of
23797 GNU/make. Starting with GNU/make 3.80 the pipe character was not
23798 handled properly anymore.
23800 2004-09-01 Andreas Schwab <schwab@suse.de>
23802 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
23803 * raise.c [!IN_RTS]: Undef abort.
23805 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
23807 * utils2.c (build_allocator): Use ssize_int.
23809 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
23811 2004-08-27 Andreas Schwab <schwab@suse.de>
23813 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
23815 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
23816 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23818 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
23820 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
23822 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
23823 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23824 * utils.c (init_gigi_decls): Likewise.
23825 * utils2.c (build_call_raise, build_allocator): Likewise.
23827 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
23829 * utils.c (gnat_init_decl_processing): Adjust
23830 build_common_tree_nodes call.
23832 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
23834 * utils2.c (build_allocator): Use build_int_cst for negative
23837 2004-08-18 Richard Henderson <rth@redhat.com>
23839 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
23841 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
23843 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
23845 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
23846 (gnat_to_gnu): Likewise.
23848 2004-08-16 Pascal Obry <obry@gnat.com>
23850 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
23851 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
23852 option and not mdll anymore. Update comment.
23854 2004-08-16 Pascal Obry <obry@gnat.com>
23856 * bld.adb (Put_Include_Project): Properly handle directory separators
23859 2004-08-16 Ed Schonberg <schonberg@gnat.com>
23861 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
23862 decreasing the number of allocated junk nodes while searching for the
23863 appropriate subprogram.
23865 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
23867 * cuintp.c (UI_To_gnu): Use build_int_cst..
23868 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23869 * utils.c (init_gigi_decls): Likewise.
23870 * utils2.c (build_call_raise): Likewise.
23872 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
23874 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
23875 for a global aliased object with a variable size and an unconstrained
23876 nominal subtype, pretend there is no initializer if the one we have is
23877 incomplete, and avoid referencing an inexistant component in there. The
23878 part we have will be rebuilt anyway and the reference may confuse
23879 further operations.
23881 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
23883 * einfo.ads: Minor reformatting
23885 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
23886 restrictions in the ALI if we only want to warn about violations.
23888 2004-08-13 Vincent Celier <celier@gnat.com>
23890 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
23891 when creating a new Unit_Record in table Units.
23893 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
23894 that are violated, if any.
23896 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
23897 add directory separator if path already ends with a directory separator.
23899 2004-08-13 Ed Schonberg <schonberg@gnat.com>
23901 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
23902 unit, this is an attempt to inline a construct that is not available in
23903 the current restricted mode, so abort rather than trying to continue.
23905 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
23906 discriminants that rename those of the parent, recover names of
23907 original discriminants for the constraint on the full view of the
23909 (Complete_Private_Subtype): Do not create a subtype declaration if the
23910 subtype is an itype.
23912 * gnat_rm.texi: Added section on implementation of discriminated
23913 records with default values for discriminants.
23915 2004-08-13 Ed Schonberg <schonberg@gnat.com>
23918 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
23919 the second operand is overloaded.
23921 2004-08-10 Richard Henderson <rth@redhat.com>
23923 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
23924 add __builtin_alloca.
23926 2004-08-10 Richard Henderson <rth@redhat.com>
23928 * config-lang.in (boot_language): Yes.
23930 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
23932 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
23933 from complaining on potential uninitialized reference.
23934 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
23935 new specification and test explicitly for non-zero return value.
23937 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
23938 returning C.int, to avoid using a derived boolean type.
23940 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
23941 Duplicate_Subexpr_No_Checks in preference to direct use of
23942 Remove_Side_Effects and New_Copy_Tree.
23943 Clear Comes_From_Source on prefix of 'Size attribute reference.
23945 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
23946 g-socthi-vxworks.adb: Change calls to
23947 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
23948 and test explicitly for non-zero return value.
23950 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
23951 (Is_Socket_In_Set): Declare imported function as returning C.int, to
23952 avoid using a derived boolean type.
23954 2004-08-09 Albert Lee <lee@gnat.com>
23956 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
23958 2004-08-09 Pascal Obry <obry@gnat.com>
23960 * gnat_ugn.texi: Document new way to build DLLs on Windows using
23961 GCC's -shared option.
23963 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
23964 Options_2 parameter (options put after object files).
23966 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
23968 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
23969 ignore overflows on low and high bounds of an index to also account for
23970 differences in signedness between sizetype and gnu_index_subtype.
23971 These are as legitimate as the ones caused by a lower TYPE_PRECISION
23974 2004-08-09 Robert Dewar <dewar@gnat.com>
23976 * s-solita.ads, s-solita.adb: Minor reformatting
23978 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
23979 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
23980 obsolescent section
23981 Add note that No_Implicit_Conditionals does not suppress
23982 run time constraint checks.
23984 * vms_conv.ads: Minor reformatting
23986 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
23987 and necessary for following change).
23988 (Mark): Return new format Mark_Id containing sec stack address
23989 (Release): Use sec stack address from Mark_Id avoiding Self call
23991 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
23992 pointer (cleanup and necessary for following change).
23993 Define Mark_Id as record containing address of secondary stack, that way
23994 Release does not need to find the stack again, decreasing the number of
23995 calls to Self and improving efficiency.
23997 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
23999 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
24000 case variable into the individual case branches when possible.
24002 * sem_ch11.adb: Minor reformatting
24004 * prj.ads: Correct spelling of suffixs
24006 * prj-nmsc.adb: Minor reformatting
24007 Correct spelling suffixs throughout (also in identifiers)
24009 * freeze.adb: Minor spelling correction
24011 * exp_ch2.adb: Cleanups to handling of Current_Value
24012 (no functional effect).
24014 * bld.adb: Correct spelling of suffixs
24016 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
24018 2004-08-09 Ed Schonberg <schonberg@gnat.com>
24021 * sem_ch7.adb (Install_Private_Declarations): In the body of the
24022 package or of a child, private entities are both immediately_visible
24025 2004-08-09 Ed Schonberg <schonberg@gnat.com>
24027 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
24028 there are no range checks on the value of the literal.
24030 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
24031 wrapped is the triggering alternative of an asynchronous select, action
24032 statements mustbe inserted before the select itself.
24034 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
24035 case where the prefix is a protected function call.
24036 (Resolve_Attribute, case 'Access): The attribute reference on a
24037 subprogram is legal in a generic body if the subprogram is declared
24040 2004-08-09 Vincent Celier <celier@gnat.com>
24042 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
24043 languages, otherwise building the library may fail with unresolved
24045 (Compile_Sources): Do not build libraries if -c switch is used
24047 * gnatlink.adb (Process_Args): New switches -M and -Mmap
24048 (Write_Usage): If map file creation is supported, output new switches
24050 (Gnatlink): When -M is specified, add the necessary switch(es) to the
24051 gcc call, when supported.
24053 * Makefile.in: Added indepsw.o to the object list for gnatlink
24054 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
24056 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
24057 indepsw.adb, indepsw.ads: New files.
24059 2004-08-09 Bernard Banner <banner@gnat.com>
24061 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
24063 * Makefile.in: add section for vxworks x86
24065 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
24067 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
24068 per-object constrained components where the discriminant is of an
24070 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
24071 the parent initialization procedure for derived Unchecked_Unions.
24072 Instead, derived Unchecked_Unions build their own initialization
24074 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
24075 Check the body of the subprogram for details.
24076 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
24077 functions for derived Unchecked_Union types by introducing a condition.
24078 Allow the creation of TSS equality functions for Unchecked_Unions.
24079 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
24080 Add formal parameter Discr to function signature. Discr is used to
24081 control the generated case statement for Unchecked_Union types.
24082 (Make_Eq_If): Rename formal parameter Node to E in function signature.
24084 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
24086 Check the body of the subprogram for details.
24087 (Expand_Composite_Equality): Augment composite type equality to include
24088 correct handling of Unchecked_Union components.
24089 (Expand_N_In): Add condition to detect illegal membership tests when the
24090 subtype mark is a constrained Unchecked_Union and the expression lacks
24091 inferable discriminants, and build a Raise_Program_Error node.
24092 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
24093 to detect types that contain components of unconstrained Unchecked_Union
24094 subtype. Add condition to detect equality between types that have an
24095 unconstrained Unchecked_Union component, and build a Raise_Program_Error
24096 node. Add condition to detect equality between Unchecked_Union types
24097 that lack inferable discriminants, and build a Raise_Program_Error node.
24098 Otherwise build a TSS equality function call.
24099 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
24100 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
24101 with the operand lacking inferable discriminants, and build a Raise_
24102 Program_Error node.
24103 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
24104 composite equality.
24105 (Has_Inferable_Discriminants): Implement new predicate for objects and
24106 expressions of Unchecked_Union type. Check the body of subprogram for
24108 (Has_Unconstrained_UU_Components): Add function
24109 Component_Is_Unconstrained_UU. It is used to detect whether a single
24110 component is of an unconstrained Unchecked_Union subtype. Add function
24111 Variant_Is_Unconstrained_UU. It is used to detect whether a single
24112 component inside a variant is of an unconstrained Unchecked_Union type.
24114 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
24115 inferred discriminant values. Add condition to generate a case
24116 statement with an inferred discriminant as the switch.
24117 (Make_Component_List_Assign): Introduce a Boolean flag that determines
24118 the behaviour of the subprogram in the presence of an Unchecked_Union.
24119 Add condition to trigger the usage of the inferred discriminant value
24120 as the generated case statement switch.
24121 (Make_Field_Assign): Introduce a Boolean flag that determines the
24122 behaviour of the subprogram in the presence of an Unchecked_Union. Add
24123 condition to trigger the usage of the inferred discriminant value as
24124 the right-hand side of the generated assignment.
24126 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
24127 parameter generation when dealing with Unchecked_Unions.
24129 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
24130 checks for Unchecked_Unions.
24132 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
24134 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
24135 Raise_Program_Error nodes for the execution of Read and Write
24136 attributes of Unchecked_Union types and the execution of Input and
24137 Output attributes of Unchecked_Union types that lack default
24138 discriminant values.
24140 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
24141 Unchecked_Union. Add procedure Check_Component. It is used to inspect
24142 per-object constrained components of Unchecked_Unions for being
24143 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
24144 check individual components withing a variant.
24146 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
24147 comparison of Unchecked_Unions.
24148 (Resolve_Equality_OP): Remove guard that prevents equality between
24151 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
24152 of component subtypes for Unchecked_Union components.
24153 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
24154 since it is the actual subtype.
24156 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
24157 pass of Unchecked_Union subtypes as generic actuals to formal types
24158 that lack known_discriminant_parts or that are derived Unchecked_Union
24159 types, and do nothing. In any other case, produce an error message.
24161 * sem_ch3.adb (Analyze_Component_Declaration): Add function
24162 Contains_POC. It determines whether a constraint uses the discriminant
24163 of an enclosing record type.
24164 Add condition to detect per-object constrained component and set the
24166 (Derived_Type_Declaration): Remove guard that prevents derivation from
24167 Unchecked_Union types.
24168 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
24171 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
24172 references to Unchecked_Union discriminants.
24174 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
24175 formal generation when dealing with Unchecked_Unions.
24176 (Set_Actual_Subtypes): Add condition to prevent generation of actual
24177 subtypes for Unchecked_Unions.
24179 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
24180 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
24181 completions of discriminated partial views by Unchecked_Unions and
24182 produce an error message.
24184 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24186 * trans.c (struct stmt_group): New field, GLOBAL.
24187 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
24188 (struct elab_info): New struct.
24189 (elab_info_list, gnu_elab_proc_stack): New variables.
24190 (Compilation_Unit_to_gnu): New procedure.
24191 (gigi): Call it and also handle elaboration procs we've saved.
24192 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
24193 global field from parent.
24194 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
24195 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
24196 (start_stmt_group): Initialize global field from parent.
24197 (add_decl_expr): Set to global for current statement group.
24198 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
24201 * utils.c (global_bindings_p): True when no current_function_decl; no
24202 longer check current_binding_level.
24204 2004-08-09 Ben Brosgol <brosgol@gnat.com>
24206 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
24209 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
24211 2004-08-06 Andreas Schwab <schwab@suse.de>
24213 * utils.c (gnat_define_builtin): Remove second parameter of
24215 (begin_subprog_body): Likewise.
24217 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
24219 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
24220 optimization, not supported by the tree-ssa back-end.
24222 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
24224 * s-mastop-irix.adb: Update comments.
24226 * a-except.adb (Exception_Information): Raise Constraint_Error if
24227 exception Id is Null_Id.
24228 This is required behavior, which is more reliably and clearly checked
24229 at the top level interface level.
24231 2004-07-26 Javier Miranda <miranda@gnat.com>
24233 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
24234 call if a component has no default_expression and the box is used.
24236 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
24237 default_expression and you use box, it behaves as if you had declared a
24238 stand-alone object.
24239 (Resolve_Record_Aggregate): If a component has no default_expression and
24240 you use box, it behaves as if you had declared a stand-alone object.
24242 * sem_ch10.adb (Install_Siblings): Do not make visible the private
24243 entities of private-with siblings.
24245 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24247 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
24248 for a component of an itype, set the parent pointer for analysis,
24249 there is no list in which to insert it.
24251 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
24252 bona-fide renamings, not for inherited operations.
24254 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
24255 actual for a formal that is an access parameter, create local
24256 finalization list even if the expression is not an aggregate.
24258 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24261 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
24262 Diagnose properly illegal subprogram renamings that are library units.
24264 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24267 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
24268 conversion rewritten as an unchecked conversion, check that original
24269 expression is a variable.
24271 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
24272 unchecked_conversion, create new node rather than rewriting in place,
24273 to preserve original construct.
24275 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24277 * gigi.h (gnat_expand_body): Deleted.
24279 * Make-lang.in: (trans.o): Depends on function.h.
24281 * misc.c: (gnat_expand_body): Moved to here.
24283 * trans.c (gnat_expand_body_1): Deleted.
24284 (gnat_expand_body): Moved from here.
24285 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
24286 (add_stmt): Check for marked visited with global_bindings_p.
24287 (gnat_gimplify_expr, case COMPONENT_REF): New case.
24288 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
24290 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
24291 VIEW_CONVERT_EXPR if not operation type.
24293 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
24296 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
24297 changes: reformatting of negation operators, removing unneeded
24298 inequality comparison with zero, converting equality comparisons with
24299 zero to negations, changing int/0/1 to bool/false/true, replace calls
24300 to gigi_abort with abort, and various other similar changes.
24302 2004-07-26 Vincent Celier <celier@gnat.com>
24304 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
24307 * make.adb (Gnatmake): Fail when a library is not present and there is
24308 no object directory.
24310 * mlib-prj.adb (Check_Library): No need to check if the library needs
24311 to be rebuilt if there is no object directory, hence no object files
24312 to build the library.
24314 * opt.ads (Setup_Projects): New Boolean flag.
24316 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
24318 Create directory when Kind /= "" and in "gnat setup". Report error if
24319 directory cannot be created.
24320 (Ada_Check): Create library interface copy dir if it does not exist
24321 and we are in "gnat setup".
24322 (Find_Sources): No error if in "gnat setup" and no Ada sources were
24324 (Language_Independent_Check): Create object directory, exec directory
24325 and/or library directory if they do not exist and we are in
24328 * vms_conv.ads: (Command_Type): New command Setup.
24330 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
24332 * vms_data.ads: Add qualifiers/switches for new built-in command
24335 2004-07-25 Richard Henderson <rth@redhat.com>
24337 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
24338 DECL_IGNORED_P on RESULT_DECL.
24340 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
24342 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
24343 allocation and potentially overflowing update with
24344 Tailored_Exception_Information. Use the sec-stack free procedural
24345 interface to output Exception_Information instead.
24347 * a-except.adb (To_Stderr): New subprogram for character, and string
24348 version moved from a-exextr to be visible from other separate units.
24349 (Tailored_Exception_Information): Remove the procedural version,
24350 previously used by the default Last_Chance_Handler and not any more.
24351 Adjust various comments.
24353 * a-exexda.adb: Generalize the exception information procedural
24354 interface, to minimize the use of secondary stack and the need for
24355 local buffers when the info is to be output to stderr:
24356 (Address_Image): Removed.
24357 (Append_Info_Character): New subprogram, checking for overflows and
24358 outputing to stderr if buffer to fill is of length 0.
24359 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
24360 (Append_Info_Address, Append_Info_Exception_Name,
24361 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
24362 Append_Info_Basic_Exception_Traceback,
24363 Append_Info_Exception_Information): New subprograms.
24364 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
24365 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
24366 Exception_Info_Maxlength, Exception_Name_Length,
24367 Exception_Message_Length): New subprograms.
24368 (Exception_Information): Use Append_Info_Exception_Information.
24369 (Tailored_Exception_Information): Use
24370 Append_Info_Basic_Exception_Information.
24371 Export services for the default Last_Chance_Handler.
24373 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
24374 other separate units.
24376 2004-07-20 Vincent Celier <celier@gnat.com>
24378 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
24380 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24382 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
24383 emit itype references for the designated types of component types that
24384 are declared outside of the full record declaration, and that may
24385 denote a partial view of that record type.
24387 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24390 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
24391 which is the designated type in an access component declaration, to the
24392 list of incomplete dependents of the parent type, to avoid elaboration
24393 issues with out-of-scope subtypes.
24394 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
24395 full view of the parent.
24397 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24400 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
24401 entities that are hidden, such as references to generic actuals
24402 outside an instance.
24404 2004-07-20 Javier Miranda <miranda@gnat.com>
24406 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
24407 support to the new notation.
24408 (Analyze_Selected_Component): Add call to Try_Object_Operation.
24410 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
24412 * s-taprob.adb: Adding the elaboration code required for initializing
24413 the tasking soft links that are common to the full and the restricted
24416 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
24417 restricted run time has been moved to the package
24418 System.Soft_Links.Tasking.
24420 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
24421 restricted run time has been moved to the package
24422 System.Soft_Links.Tasking.
24424 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
24426 * s-solita.ads, s-solita.adb: New files.
24428 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24430 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
24431 Case_Statement_to_gnu): Split off from gnat_to_gnu.
24432 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
24433 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
24434 Exception_Handler_to_gnu_zcx): Likewise.
24436 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
24438 * gigi.h (builtin_function): Declare.
24440 2004-07-15 Robert Dewar <dewar@gnat.com>
24442 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
24445 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
24446 access values as an example of a warning.
24448 * gnat_rm.texi: Document new attribute Has_Access_Values
24450 * gnat-style.texi: Document that box comments belong on nested
24453 * sem_util.ads (Has_Access_Values): Improved documentation
24455 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
24457 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
24458 (Process_Interface_Name): Call to this new procedure
24459 (Set_Extended_Import_Export_External_Name): Call to this new procedure
24461 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
24463 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
24465 * einfo.ads: Minor comment typo fixed
24467 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
24469 * snames.adb: Add _atcb.
24471 * snames.ads: Add Name_uATCB.
24473 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
24474 (in the expanded code) when using the restricted run time.
24476 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
24477 a in parameter in order to allow ATCBs to be preallocated (in the
24480 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
24481 order to allow ATCBs to be preallocated. In case of error, the ATCB is
24482 deallocated in System.Tasking.Stages.
24484 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
24485 order to allow ATCBs to be preallocated.
24487 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
24488 here. It was previously done in Initialize_ATCB.
24490 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
24492 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
24493 Restricted run time.
24495 * exp_ch3.adb: When using the Restricted run time, pass the
24496 preallocated Ada_Task_Control_Block when creating a task.
24498 2004-07-15 Ed Schonberg <schonberg@gnat.com>
24500 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
24501 function call that is itself an actual in an enclosing call, diagnose
24502 problem here rather than assuming that resolution will catch it.
24504 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
24505 the local copy of a generic unit for a formal package, and the generic
24506 is a child unit, install private part of ancestors before compiling
24507 private part of spec.
24509 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
24510 use scope entities rather than tree structures, to handle properly
24511 parent units that are instances rewritten as bodies for inlining
24514 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
24515 Remove_Parents): Handle properly a parent unit that is an
24516 instantiation, when the unit has been rewritten as a body for inlining
24519 * par.adb (Goto_List): Global variable to collect goto statements in a
24520 given unit, for use in detecting natural loops.
24522 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
24523 use in detecting natural loops.
24525 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
24526 backwards goto's, and rewrite as a infinite loop, to improve locality
24529 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
24530 subcomponent that includes an indexed reference, to prevent the
24531 generation of copies that would miscompile the desired assignment
24533 (Build_Task_Image_Decls): Add a numeric suffix to
24534 generated name for string variable, to avoid spurious conflicts with
24535 the name of the type of a single protected object.
24537 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
24538 loop with an explicit exit statement, to avoid generating an
24539 out-of-range value with 'Succ leading to spurious constraint_errors
24540 when compiling with -gnatVo.
24542 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
24544 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
24545 might not be analyzed yet, even if its Etype is already set (case of an
24546 unchecked conversion built using Unchecked_Convert_To, for example).
24547 If the prefix has already been analyzed, this will be a nop anyway.
24549 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
24550 controller type, or an assignment of a record type with controlled
24551 components, copy only user data, and leave the finalization chain
24552 pointers untouched.
24554 2004-07-15 Vincent Celier <celier@gnat.com>
24556 * make.adb (Collect_Arguments): Improve error message when attempting
24557 to compile a source not part of any project, when -x is not used.
24559 * prj.ads: (Defined_Variable_Kind): New subtype
24561 * prj-attr.adb (Register_New_Package): Two new procedures to register
24562 a package with or without its attributes.
24563 (Register_New_Attribute): Mew procedure to register a new attribute in a
24565 New attribute oriented subprograms: Attribute_Node_Id_Of,
24566 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24567 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24569 New package oriented subprograms: Package_Node_Id_Of,
24570 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24572 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
24574 (Package_Node_Id): Now a private, self initialized type
24575 (Register_New_Package): New procedure to register a package with its
24577 New attribute oriented subprograms: Attribute_Node_Id_Of,
24578 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24579 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24581 New package oriented subprograms: Package_Node_Id_Of,
24582 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24584 * prj-dect.adb (Parse_Attribute_Declaration,
24585 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
24587 * prj-makr.adb (Make): Parse existing project file before creating
24588 other files. Fail if there was an error during parsing.
24590 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
24591 new spec of Prj.Attr.
24593 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
24594 to new spec of Prj.Attr.
24596 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24598 * utils2.c: Fix typo in comment.
24600 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24602 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
24603 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
24605 2004-07-14 Andreas Schwab <schwab@suse.de>
24607 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
24609 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24611 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
24613 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
24616 * misc.c (gnat_types_compatible_p): New function.
24617 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
24618 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
24620 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
24621 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
24622 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
24623 (mark_visited): Don't mark dummy type.
24624 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
24625 parameter, we must remove any LJM building from GNU_NAME.
24626 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
24627 (pos_to_constructor): Use int_const_binop.
24628 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
24631 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
24632 (gnat_pushlevel): Set TREE_USE on BLOCK node.
24633 (gnat_install_builtins): Add __builtin_memset.
24635 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
24637 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
24638 for a renaming, stabilize the initialization expression if we are at a
24639 local level. At the local level, uses of the renaming may be performed
24640 by a direct dereference of the initializing expression, and we don't
24641 want possible variables there to be evaluated for every use.
24643 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
24644 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
24645 them on the way. Account for the fact that we may introduce side
24646 effects in the process.
24648 2004-07-13 Richard Henderson <rth@redhat.com>
24650 * misc.c (default_pass_by_ref): Use pass_by_reference.
24652 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
24654 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
24655 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
24657 2004-07-08 Richard Henderson <rth@redhat.com>
24659 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
24662 2004-07-06 Vincent Celier <celier@gnat.com>
24664 * vms_conv.ads: Minor reformatting.
24665 Alphabetical order for enumerated values of type Command_Type, to have
24666 the command in alphabetical order for the usage.
24668 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
24669 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
24671 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
24673 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
24674 (Add_Archive_Path): Only add the global archive if there is one.
24675 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
24676 or not any object file to put in the global archive, and don't build
24677 a global archive if there is none.
24678 (X_Switches): New table
24679 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
24680 in the X_Switches table, if any.
24681 (Initialize): Make sure the X_Switches table is empty
24682 (Scan_Arg): Record -X switches in table X_Switches
24684 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
24686 * make.adb: Minor comment fix
24688 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
24689 invoked with directory information, add the directory in front of the
24692 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
24693 invoked with directory information, add the directory in front of the
24696 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
24697 when Keep_Temporary_Files is False.
24698 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
24699 directory information, add the directory in front of the path.
24700 When not on VMS, handle new switch -dn before the command to set
24701 Keep_Temporary_Files to True.
24702 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
24705 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
24706 invoked with directory information, add the directory in front of the
24709 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
24711 * snames.ads, snames.adb (Name_Stub): New name for the distributed
24714 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
24715 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
24717 * g-socket.adb (To_Timeval): Fix incorrect conversion of
24718 Selector_Duration to Timeval for the case of 0.0.
24720 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
24721 documentation from Evolve_And_Then.
24723 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
24725 * s-taprop-tru64.adb, s-taprop-os2.adb,
24726 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
24728 2004-07-06 Robert Dewar <dewar@gnat.com>
24730 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
24731 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
24732 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
24733 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
24734 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
24735 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
24736 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
24737 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
24738 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
24739 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
24740 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
24741 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
24742 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
24743 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
24744 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
24745 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
24746 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
24747 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
24748 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
24749 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
24750 vms_data.ads: Minor reformatting,
24751 Fix bad box comment format.
24753 * gnat_rm.texi: Fix minor grammatical error
24755 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
24757 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
24758 more cases of discriminated records to be recognized as not needing a
24760 (Has_Access_Values): New function.
24762 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
24764 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
24765 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
24766 with LRM terminology).
24767 Change terminology in comments primitive type => elementary type.
24769 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24772 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
24773 parameters do not impose any requirements on the presence of a body.
24775 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24778 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
24779 compilation unit and is in an open scope at the point of instantiation,
24780 assume that a body may be present later.
24782 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24784 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
24785 Improve error message when specified size is not supported.
24787 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
24788 is never a primitive operation.
24790 2004-07-05 Andreas Schwab <schwab@suse.de>
24792 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
24793 RECORD_OR_UNION_CHECK.
24794 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
24796 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
24798 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
24799 dependency on xgnatugn, instead build it via a submake.
24800 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
24802 2004-07-04 Richard Henderson <rth@redhat.com>
24804 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
24806 2004-07-01 Richard Henderson <rth@redhat.com>
24808 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
24809 * utils.c (max_size): Likewise.
24811 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24813 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
24814 and rest_of_type_compilation; add arg to create_*_decl.
24815 (annotate_decl_with_node): Deleted.
24816 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
24817 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
24818 (get_current_block_context, gnat_pushdecl): New declarations.
24819 (gnat_init_stmt_group): Likewise.
24820 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
24821 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
24822 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
24823 (gnat_init): Call gnat_init_stmt_group.
24824 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
24825 (gnu_pending_elaboration_list): Deleted.
24826 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
24827 (gigi): Rearrange initialization calls and move some to last above.
24828 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
24829 Delete calls to add_decl_expr; add arg to create_*_decl.
24830 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
24831 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
24832 begin_subprog_body and call it.
24833 Don't push and pop ggc context.
24834 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
24835 (add_stmt): Remove handling of DECL_EXPR from here.
24836 If not in function, mark visited.
24837 (add_decl_expr): Put global at top level.
24838 Check for cases of DECL_INITIAL we have to handle here.
24839 (process_type): Add extra arg to create_type_decl.
24840 (build_unit_elab): Rework to just gimplify.
24841 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
24842 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
24843 (get_pending_elaborations, pending_elaborations_p): Likewise.
24844 (push_pending_elaborations, pop_pending_elaborations): Likewise.
24845 (get_elaboration_location, insert_elaboration_list): Likewise.
24846 (gnat_binding_level): Renamed from ada_binding_level.
24847 (init_gnat_to_gnu): Don't clear pending_elaborations.
24848 (global_bindings_p): Treat as global if no current_binding_level.
24849 (set_current_block_context): New function.
24850 (gnat_pushdecl): Renamed from pushdecl; major rework.
24851 All callers changed.
24852 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
24853 (finish_record_type): Call call pushdecl for stub decl.
24854 (function_nesting_depth): Deleted.
24855 (begin_subprog_body): Delete obsolete code.
24856 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
24858 2004-06-28 Robert Dewar <dewar@gnat.com>
24860 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24861 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24862 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
24863 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
24864 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
24866 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
24867 deal with problem of inefficient slices on machines with strict
24868 alignment, when the slice is a component of a composite.
24870 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
24871 machines, we need the check there as well.
24873 2004-06-28 Ed Schonberg <schonberg@gnat.com>
24875 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
24876 determine safe copying direction for overlapping slice assignments
24877 when component is controlled.
24879 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
24880 formal derived type in the actual for a formal package are visible in
24881 the enclosing instance.
24883 2004-06-28 Ed Schonberg <schonberg@gnat.com>
24886 * sem_util.adb (Trace_Components): Diagnose properly an illegal
24887 circularity involving a private type whose completion includes a
24888 self-referential component.
24889 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
24890 renaming or an instantiation from an implicit derived operation.
24892 2004-06-28 Pascal Obry <obry@gnat.com>
24894 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
24896 (Library_File_Name_For): Idem.
24898 2004-06-28 Matthew Gingell <gingell@gnat.com>
24900 * g-traceb.ads: Add explanatory note on the format of addresses
24901 expected by addr2line.
24903 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
24905 * Makefile.in: Force debugging information on s-tasdeb.adb,
24906 a-except.adb and s-assert.adb needed by the debugger.
24908 2004-06-28 Vincent Celier <celier@gnat.com>
24910 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
24914 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
24916 * prj.adb: Minor reformatting
24917 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
24919 * prj.ads: Comment updates
24921 (Project_Data): Change Flag1 to Need_To_Build_Lib.
24922 Remove Flag2: not used.
24924 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
24927 * gnat_ugn.texi: Put a "null;" declaration in one project file example
24929 * gnat_rm.texi: Document Empty declarations "null;".
24931 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
24932 front of the linker options.
24933 (Link_Foreign): Put the global archives and the libraries in front of
24934 the linker options.
24936 2004-06-28 Javier Miranda <miranda@gnat.com>
24938 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
24939 (RTU_Loaded): Code cleanup
24940 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
24941 withed predefined units.
24943 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
24944 explicitly withed predefined units.
24945 Fix typo in comment
24947 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
24948 explicitly withed predefined units.
24950 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24952 * ada-tree.def (DECL_STMT): Deleted.
24953 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
24954 (DECL_STMT_VAR): Deleted.
24955 * decl.c: add_decl_stmt now add_decl_expr.
24956 * gigi.h: Likewise.
24957 * trans.c: Likewise.
24958 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
24959 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
24960 (add_stmt): Only handle padded type here.
24961 (add_stmt_with_node): Allow gnat_node to not be present.
24962 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
24963 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
24964 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
24965 make a SAVE_EXPR for the entire fat pointer.
24966 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
24967 (create_index_type): Make a DECL_EXPR.
24968 (end_subprog_body): Don't call allocate_struct_function here but
24971 2004-06-25 Pascal Obry <obry@gnat.com>
24973 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
24974 Relocatable from Build_Dynamic_Library call.
24976 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
24977 Relocatable are now synonym.
24979 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
24981 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
24982 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
24985 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
24986 Lib_Address and Relocatable.
24987 (Default_DLL_Address): Removed.
24989 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24990 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24991 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
24992 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
24993 (Default_DLL_Address): Removed.
24995 * mlib-tgt-mingw.adb: Ditto.
24996 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
24998 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
24999 the initial thread stack size.
25001 * a-strmap.ads: Move package L to private part as it is not used in
25002 the spec. Found while reading code.
25004 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
25006 * tracebak.c: Introduce support for a GCC infrastructure based
25007 implementation of __gnat_backtrace.
25009 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
25010 any more. Use accessors instead. This eases maintenance and relaxes
25011 some alignment constraints.
25012 (_GNAT_Exception structure): Remove the Ada specific fields
25013 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
25015 (is_handled_by, __gnat_eh_personality): Replace component references to
25016 exception structure by use of the new accessors.
25018 * init.c (__gnat_initialize): Adjust comments to match the just
25019 reverted meaning of the -static link-time option.
25021 * adaint.c (convert_addresses): Arrange not to define a stub for
25022 mips-irix any more, as we now want to rely on a real version from a
25023 recent libaddr2line.
25025 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
25026 the personality routine can use them and not have to rely on a C
25027 counterpart of the record anymore. This simplifies maintenance and
25028 relaxes the constraint of having Standard'Maximum_Alignment match
25030 Update comments, and add a section on the common header alignment issue.
25032 2004-06-25 Geert Bosch <bosch@gnat.com>
25034 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
25035 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
25037 2004-06-25 Robert Dewar <dewar@gnat.com>
25039 * gnat_rm.texi: Fix section on component clauses to indicate that the
25040 restriction on byte boundary placement still applies for bit packed
25042 Add comment on stack usage from Initialize_Scalars
25044 * gnat_ugn.texi: Add documentation for -gnatyLnnn
25046 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
25047 limiting nesting level.
25049 * usage.adb: Add line for -gnatyLnnn switch
25051 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
25052 sem_ch13.adb, exp_aggr.adb: Minor reformatting
25054 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
25055 type as well as on the subtype. This corrects a problem in freeze in
25056 setting alignments of atomic types.
25058 * sem_eval.ads: Minor comment typo fixed
25060 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
25061 level. Minor reformatting.
25063 * fname.adb (Is_Predefined_File_Name): Require a letter after the
25064 minus sign. This means that file names like a--b.adb will not be
25065 considered predefined.
25067 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
25068 record Test new flag and give diagnostic for bad component clause.
25069 (Freeze_Entity): Set alignment of array from component alignment in
25070 cases where this is safe to do.
25072 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
25075 * cstand.adb: (Create_Standard): Set alignment of String to 1
25077 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
25079 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
25080 code in the common constrained array cases.
25082 * a-storio.adb: Change implementation to avoid possible alignment
25083 problems on machines requiring strict alignment (data should be moved
25084 as type Buffer, not type Elmt).
25086 * checks.adb (Apply_Array_Size_Check): Improve these checks by
25087 killing the overflow checks which we really do not need (64-bits is
25090 2004-06-25 Vincent Celier <celier@gnat.com>
25092 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
25093 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
25094 inconditionally for the main project.
25095 (Recursive_Add_Archives.Add_Archive_Path): New procedure
25096 (Link_Executables.Check_Time_Stamps): New procedure
25097 (Link_Executables.Link_Foreign): New procedure
25098 Changes made to reduce nesting level of this package
25099 (Check): New procedure
25100 (Add_Switches): When not in quiet output, check that a switch is not
25101 the concatenation of several valid switches. If it is, issue a warning.
25102 (Build_Global_Archive): If the global archive is rebuilt, linking need
25104 (Compile_Sources): Rebuilding a library archive does not imply
25105 rebuilding the global archive.
25106 (Build_Global_Archive): New procedure
25107 (Build_Library): New name for Build_Archive, now only for library
25109 (Check_Archive_Builder): New procedure
25110 (Create_Global_Archive_Dependency_File): New procedure
25111 (Gprmake): Call Build_Global_Archive before linking
25112 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
25114 (Scan_Arg): Display the Copyright notice when -v is used
25116 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
25119 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
25121 Add new GNAT LIST qualifier /FILES=
25122 Added qualifier /DIRECTORY= to GNAT METRIC
25123 Added qualifier /FILES= to GNAT METRIC
25124 Added qualifier /FILES to GNAT PRETTY
25126 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
25127 to take into account both versions of the switch.
25129 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
25130 always be the last switch to the gcc driver. Disable switch storing so
25131 that switches automatically added by the gcc driver are not put in the
25134 * prj.adb (Project_Empty): Take into account changes in components of
25137 * prj.ads (Languages_Processed): New enumaration value All_Languages.
25139 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
25140 used. Split Boolean component Ada_Sources_Present in two Boolean
25141 components Ada_Sources_Present and Other_Sources_Present.
25144 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
25145 instead of Sources_Present.
25146 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25148 * prj-nmsc.adb: Minor reformatting
25149 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
25150 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
25151 Check_Ada_Naming_Scheme.
25152 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
25155 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
25157 Make sure that all cycles where there is at least one "limited with"
25159 (Parse_Single_Project): New Boolean parameter In_Limited
25161 * prj-proc.adb (Recursive_Check): When Process_Languages is
25162 All_Languages, call first Prj.Nmsc.Ada_Check, then
25163 Prj.Nmsc.Other_Languages_Check.
25165 * prj-proc.adb (Process): Use Ada_Sources_Present or
25166 Other_Sources_Present (instead of Sources_Present) depending on
25169 * lang-specs.h: Keep -g and -m switches in the same order, and as the
25172 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
25173 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
25175 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
25178 * lib.ads (Disable_Switch_Storing): New procedure.
25180 * make.adb: Modifications to reduce nesting level of this package.
25181 (Check_Standard_Library): New procedure
25182 (Gnatmake.Check_Mains): New procedure
25183 (Gnatmake.Create_Binder_Mapping_File): New procedure
25184 (Compile_Sources.Compile): Add switch -gnatez as the last option
25185 (Display): Never display -gnatez
25187 * Makefile.generic:
25188 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
25190 * gnatcmd.adb (Check_Project): New function
25191 (Process_Link): New procedure to reduce nesting depth
25192 (Check_Files): New procedure to reduce the nesting depth.
25193 For GNAT METRIC, include the inherited sources in extending projects.
25194 (GNATCmd): When GNAT LS is invoked with a project file and no files,
25195 add the list of files from the sources of the project file. If this list
25196 is too long, put it in a temp text files and use switch -files=
25197 (Delete_Temp_Config_Files): Delete the temp text file that contains
25198 a list of source for gnatpp or gnatmetric, if one has been created.
25199 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
25200 in the project file is too large, create a temporary text file that
25201 list them and pass it to the tool with "-files=<temp text file>".
25202 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
25204 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
25205 generated file is in not in Ada.
25207 * gnatls.adb: Remove all parameters And_Save that are no longer used.
25208 (Scan_Ls_Arg): Add processing for -files=
25209 (Usage): Add line for -files=
25211 * g-os_lib.adb (On_Windows): New global constant Boolean flag
25212 (Normalize_Pathname): When on Windows and the path starts with a
25213 directory separator, make sure that the resulting path will start with
25216 * clean.adb (Clean_Archive): New procedure
25217 (Clean_Project): When there is non-Ada code, delete the global archive,
25218 the archive dependency files, the object files and their dependency
25219 files, if they exist.
25220 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
25222 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
25224 * sinfo.ads: Fix typo in comment.
25226 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
25227 the TSS for remote access-to-subprogram types, since these TSS are
25228 always present once the type has been analyzed.
25229 (RAS_E_Dereference): Same.
25231 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
25232 reference raises Bad_Attribute, mark the reference as analyzed so the
25233 node (and any children resulting from rewrites that could have occurred
25234 during the analysis that ultimately failed) is not analyzed again.
25236 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
25238 * exp_dist.adb: Minor comment fix.
25240 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
25241 type is an anonymous access type, no unchecked deallocation of the
25242 allocated object can occur. If the object is controlled, attach it with
25243 a count of 1. This allows attachment to the Global_Final_List, if
25244 no other relevant list is available.
25245 (Get_Allocator_Final_List): For an anonymous access type that is
25246 the type of a discriminant or record component, the corresponding
25247 finalisation list is the one of the scope of the type.
25249 2004-06-25 Ed Schonberg <schonberg@gnat.com>
25251 * sem_ch3.adb (Replace_Type): When computing the signature of an
25252 inherited subprogram, use the first subtype if the derived type
25253 declaration has no constraint.
25255 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
25256 before applying previous optimization. Minor code cleanup.
25258 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
25259 placed at the beginning of an unpacked record without explicit
25260 alignment, a slice of it will be aligned and does not need a copy when
25263 2004-06-25 Ed Schonberg <schonberg@gnat.com>
25267 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
25268 reference is written with expressions mimicking parameters.
25270 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
25273 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
25274 STEP 2a. The constraints of a full type declaration of a derived record
25275 type are checked for conformance with those declared in the
25276 corresponding private extension declaration. The message
25277 "not conformant with previous declaration" is emitted if an error is
25280 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
25282 * g-traceb.ads: Document the need for -E binder switch in the spec.
25284 * g-trasym.ads: Document the need for -E binder switch in the spec.
25286 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
25288 * sem_prag.adb: Add handling of pragma Detect_Blocking.
25290 * snames.h, snames.ads, snames.adb: Add entry for pragma
25293 * s-rident.ads: Change reference to pragma Detect_Blocking.
25295 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
25298 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
25299 to indicate whether pragma Detect_Blocking is active.
25301 * par-prag.adb: Add entry for pragma Detect_Blocking.
25303 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
25304 of not handling WITH.
25305 Note that this replaces the previous update which was incorrect.
25307 2004-06-25 Javier Miranda <miranda@gnat.com>
25309 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
25310 use-clauses to have a clean environment.
25312 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
25313 the installation of the use-clauses to stablish a clean environment in
25314 case of compilation of a separate unit; otherwise the call to
25315 use_one_package is protected by the barrier Applicable_Use.
25317 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
25318 the installation of the use-clauses to stablish a clean environment in
25319 case of compilation of a separate unit.
25320 (End_Use_Clauses): Minor comment cleanup.
25322 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
25324 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
25326 2004-06-23 Richard Henderson <rth@redhat.com>
25328 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
25330 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25332 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
25333 now bool instead of int.
25334 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
25335 * trans.c (gnu_switch_label_stack): New function.
25336 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
25337 elaboration of renamed entity returns.
25338 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
25339 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
25340 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
25341 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
25342 DECL_SIZE_UNIT and simplify variable-sized case.
25343 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
25344 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
25345 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
25346 (build_unit_elab): Disable for now.
25347 * utils.c (mark_visited): New function.
25348 (pushdecl): Walk tree to call it for global decl.
25349 (update_pointer_to): Update all variants of pointer and ref types.
25350 Add arg to COMPONENT_REF.
25351 (convert): Likewise.
25352 Move check for converting between variants lower down.
25353 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
25354 (build_allocator): Don't force type of MODIFY_EXPR.
25355 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
25356 put_var_into_stack.
25358 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25360 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
25361 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
25362 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
25364 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
25365 all callers changed.
25366 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
25367 the way that EXIT_STMT finds the loop label.
25368 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
25369 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
25370 (add_stmt): Use annotate_with_locus insted of setting directly.
25371 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
25372 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
25373 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
25374 (build_vms_descriptor): Add extra args to ARRAY_REF.
25375 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
25376 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
25378 (build_binary_op): Don't make explicit CONVERT_EXPR.
25379 Add extra rgs to ARRAY_REF.
25381 2004-06-14 Pascal Obry <obry@gnat.com>
25383 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
25384 Windows. Fix minor typo.
25386 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
25387 which is now supported on Windows. With this implementation using the
25388 Library Project feature is no different on Windows than on UNIX.
25390 2004-06-14 Vincent Celier <celier@gnat.com>
25392 * makegpr.adb (Compile_Sources): Nothing to do when there are no
25395 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
25397 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
25398 found, show the project name and the path of the previously parsed
25401 2004-06-14 Ed Schonberg <schonberg@gnat.com>
25403 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
25404 array, avoid copying the actual before the call.
25406 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
25408 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
25409 Instead, allocate memory on worst-case alignment assumptions, and then
25410 return an aligned address within the allocated zone.
25412 2004-06-14 Robert Dewar <dewar@gnat.com>
25414 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
25415 elab entities in predefined units in No_Run_Time_Mode.
25416 (Gen_Adainit_C): Same fix
25417 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
25418 units in No_Run_Time_Mode
25419 (Gen_Elab_Calls_C): Same fix
25421 * symbols-vms-alpha.adb: Minor reformatting
25423 * g-debpoo.ads: Minor reformatting
25425 * lib.adb (In_Same_Extended_Unit): Version working on node id's
25427 * lib.ads (In_Same_Extended_Unit): Version working on node id's
25429 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
25432 * make.adb: Minor reformatting
25434 * par-ch12.adb: Minor reformatting
25436 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
25438 * prj-strt.adb: Minor reformatting
25440 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
25443 * sem_attr.adb: Minor reformatting
25445 * sem_ch7.adb: Minor reformatting
25447 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
25448 for type in the same unit as the object declaration.
25450 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
25451 static string expressions and not just string literals.
25453 (Set_Warning): Reset restriction warning flag for restriction pragma
25454 Implement pragma Profile_Warnings
25455 Implement pragma Profile (Restricted)
25456 Give obolescent messages for old restrictions and pragmas
25458 * snames.h, snames.ads, snames.adb: Add new entry for pragma
25461 * s-rident.ads: Add declarations for restrictions required by profile
25462 Restricted and profile Ravenscar.
25464 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
25466 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
25467 configuration pragmas.
25469 2004-06-11 Vincent Celier <celier@gnat.com>
25471 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
25472 gnatsym, when symbol policy is Restricted.
25474 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
25475 gnatsym, when symbol policy is Restricted.
25477 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
25478 read the symbol file.
25479 (Finalize): Fail in symbol policy Restricted if a symbol in the original
25480 symbol file is not in the object files. Do not create a new symbol file
25481 when symbol policy is Restricted.
25483 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
25486 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
25488 (Usage): Line for new switch -R
25490 * make.adb (Initialize): When the platform is not VMS, add the
25491 directory where gnatmake is invoked in the front of the path, if
25492 gnatmake is invoked with directory information. Change the Scan_Args
25493 while loop to a for loop.
25494 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
25495 if Depth is equal or greater than the proposed depth, there is nothing
25497 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
25500 * prj.ads: Add new symbol policy Restricted.
25502 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
25503 with the new parameters Check_All_Labels and Case_Location.
25505 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
25506 (Library_Symbol_File needs to be defined).
25508 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
25509 and Case_Location If Check_All_Labels is True, check that all values of
25510 the string type are used, and output warning(s) if they are not.
25512 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
25515 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
25517 * gnat_ugn.texi: Update documentation about the library directory in
25520 * makegpr.adb (Display_Command): In verbose mode, also display the
25521 value of the CPATH env var, when the compiler is gcc.
25522 (Initialize): Change the Scan_Args while loop to a for loop
25523 (Compile_Individual_Sources): Change directory to object directory
25524 before compilations.
25526 * symbols.ads: New symbol policy Restricted.
25528 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
25530 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
25531 is now taken care of internally in the Exception_Propagation package
25532 and does not require clients assistance any more.
25534 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
25535 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
25536 functions. Helpers to maintain a predicate required in the handling of
25537 occurrence transfer between tasks.
25538 This is now handled internally and does not require clients assistance
25539 for the setup/propagate separation anymore.
25540 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
25541 allocation strategy, handle the Setup_And_Not_Propagated predicate and
25544 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
25545 raise_after_setup, now that everything is handled internally within the
25546 setup/propagation engine.
25548 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
25550 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
25551 Add additional conditions for the case of an actual being a simple
25552 name or literal. Improve inlining by preventing the generation
25553 of temporaries with a short lifetime (one use).
25555 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
25558 * einfo.ads: Minor comment updates for Has_Completion and
25559 E_Constant list of flags.
25561 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
25562 and constant redeclarations now set the Has_Completion flag of their
25563 defining identifiers.
25565 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
25566 Inspect_Deferred_Constant_Completion.
25567 Used to detect private deferred constants that have not been completed
25568 either by a constant redeclaration or pragma Import. Emits error message
25569 "constant declaration requires initialization expression".
25571 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
25572 completes a deferred constant.
25574 2004-06-11 Geert Bosch <bosch@gnat.com>
25576 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
25578 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
25579 calculating exponent for scaling denormal numbers.
25580 (Leading_Part): Properly raise Constraint_Error for zero or negative
25582 (Remainder): Properly raise Constraint_Error for zero divisor.
25584 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
25586 * sem_util.adb: Minor reformatting.
25588 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
25589 dereference when accessing the entry parameter record.
25590 (Check_Array_Type): Always check for possible implicit dereference.
25591 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25592 Abort if a pointer is still present (denoting that an implicit
25593 dereference was left in the tree by the front-end).
25595 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
25596 dereference when accessing the entry parameter record.
25597 (Check_Array_Type): Always check for possible implicit dereference.
25598 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25599 Abort if a pointer is still present (denoting that an implicit
25600 dereference was left in the tree by the front-end).
25602 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
25604 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
25605 message, like the compiler itself does. Easier to parse the output.
25607 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
25609 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
25610 be base names, and not includes directories.
25612 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
25614 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
25615 so that dependencies are properly taken into account by make.
25617 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
25620 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
25621 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
25623 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
25625 * Makefile.in (install-gnatlib): install target-specific run-time files.
25627 * Make-lang.in: Remove obsolete targets.
25629 2004-06-11 Ed Schonberg <schonberg@gnat.com>
25631 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
25632 specification, to catch misuses of program unit names.
25634 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
25635 superfluous conversions in an instance.
25637 2004-06-11 Ed Schonberg <schonberg@gnat.com>
25640 * sem_ch12.adb (Save_References): If operator node has been folded to
25641 enumeration literal, associated_node must be discarded.
25643 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
25645 * s-stchop-vxworks.adb: Add required pragma Convention to
25646 Task_Descriptor because it is updated by a C function.
25648 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
25651 * Makefile.in: Remove target specific SO_OPT on IRIX
25653 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25655 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
25656 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
25657 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
25658 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
25659 (STMT_STMT, USE_STMT): New statement codes.
25660 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
25661 * ada-tree.h: Reflect above changes.
25662 (struct tree_loop_id): Deleted.
25663 (union lang_tree_node, struct lang_decl, struct lang_type):
25664 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
25665 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
25666 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
25667 (IS_ADA_STMT): New macro.
25668 * decl.c (annotate_decl_with_node): New function.
25669 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
25670 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
25671 Call add_stmt_with_node to do needed assignments.
25672 Add call to update setjmp buffer directly, not via EXPR_STMT.
25673 (maybe_variable): Argment GNAT_NODE deleted.
25674 * gigi.h (maybe_variable): Likewise.
25675 (make_transform, add_stmt_with_node, set_block_for_group): New.
25676 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
25677 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
25678 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
25679 (set_lineno, set_lineno_from_sloc): Likewise.
25680 (record_code_position, insert_code_for): Likewise.
25681 (gnat_poplevel): Now returns void.
25682 (end_subprog_body): Now takes argument.
25683 * misc.c (cgraph.h, tree-inline.h): New includes.
25684 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
25685 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
25686 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
25687 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
25688 (gnat_parse_file): Don't set immediate_size_expand.
25689 Call cgraph functions.
25690 (gnat_expand_expr): Remove most cases.
25691 (record_code_position, insert_code_for): Remove from here.
25692 * trans.c (toplev.h, tree-gimple.h): Now included.
25693 (discard_file_names): Deleted.
25694 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
25695 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
25696 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
25697 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
25698 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
25699 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
25700 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
25701 (set_block_for_group, add_stmt_list): Likewise.
25702 (start_stmt_group): Renamed from start_block_stmt.
25703 (end_stmt_group): Likewise, from end_block_stmt.
25704 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
25705 (gigi): Don't set discard_file_names or call set_lineno.
25706 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
25707 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
25708 Numerous changes throughout to reflect new names and complete
25709 function-at-a-time implementation.
25710 (gnat_expand_stmt): Delete or comment out all cases.
25711 (process_inlined_subprograms): Use add_stmt.
25712 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
25713 call set_lineno; also remove unneeded block handling.
25714 (process_type): Remove unneeded block handling.
25715 (build_unit_elab): Remove calls to deleted functions.
25716 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
25717 (tree-dump.h): Likewise.
25718 (struct ada_binding_level): Add field jmpbuf_decl.
25719 (gnat_define_builtin, gnat_install_builtins): New.
25720 (gnat_gimplify_function, gnat_finalize): Likewise.
25721 (gnat_poplevel): No longer return BLOCK, set it instead.
25722 Remove code dealing with nested functions.
25723 (gnat_init_decl_processing): Also set size_type_node.
25724 Call gnat_install_builtins.
25725 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
25726 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
25727 Remove special-case for "main".
25728 (end_subprog_body): Add arg and rework for tree-ssa.
25729 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
25730 Add case for BOOLEAN_TYPE.
25731 * utils2.c (rtl.h): Now include.
25732 (build_call_raise): Test Debug_Flag_NN directly.
25733 (build_call_alloc_dealloc): Don't use local stack allocation for now.
25734 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
25735 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
25737 2004-06-07 Robert Dewar <dewar@gnat.com>
25739 * a-direct.ads, einfo.ads: Minor comment updates
25741 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
25742 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
25743 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
25744 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
25745 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
25747 * s-interr-sigaction.adb: Remove unreferenced variable
25748 (Attached_Interrupts). Minor reformatting.
25749 Avoid use of variable I (replace by J).
25751 * par-ch10.adb: Fix text of one error message
25753 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
25754 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
25755 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
25756 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
25757 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
25758 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
25759 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
25760 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
25761 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
25762 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
25763 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
25766 2004-06-07 Doug Rupp <rupp@gnat.com>
25768 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
25770 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
25772 * mlib-tgt-vms-ia64.adb: New file.
25774 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
25775 Add mlib-tgt-vms-ia64.adb
25776 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
25777 Move to alpha specific ifeq section.
25778 Add VMS specific versions of symbols.adb
25779 Renaming of 5q vms files.
25781 * 5qsystem.ads renamed to system-vms_64.ads.
25783 2004-06-07 Vincent Celier <celier@gnat.com>
25785 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
25786 explain that when a time of day corresponding to the non existing hour
25787 on the day switching to DST is specified, Split may return a different
25790 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
25793 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
25794 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
25796 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
25798 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
25799 the linking options.
25800 (Build_Library.Check_Libs): On VMS, if there is a dependency on
25801 g-trasym.ads, set Gtrasymobj_Needed to True.
25803 * prj-attr.adb: Add new package Metrics for gnatmetric
25805 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
25806 canonical case to take into account files with upper case characters on
25808 (Ada_Check): Load the reference symbol file name in the name buffer to
25809 check it, not the symbol file name.
25811 * snames.ads, snames.adb: Add standard name Metrics (name of project
25812 file package for gnatmetric).
25814 * vms_conv.ads: Add Metric to Comment_Type
25816 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
25818 * vms_data.ads: Add qualifiers for GNAT METRIC
25820 * makegpr.adb (Link_Executables): Take into account the switches
25821 specified in package Linker of the main project.
25823 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
25825 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
25826 the index of the last element is Units.Last, not Units.Table'Last
25827 (which is usually not a valid index within the actually allocated
25828 storage for the table).
25830 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
25831 determines whether to generate a call to a checked storage pool
25832 Dereference action.
25833 Generate such a call only for a dereference that either comes from
25834 source, or is the result of rewriting a dereference that comes from
25837 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
25839 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
25841 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
25843 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
25844 file level, elaborate the stride for inner dimensions in alignment
25847 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
25850 2004-06-07 Javier Miranda <miranda@gnat.com>
25852 * exp_ch6.adb: Correct wrong modification in previous patch
25854 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
25856 * g-trasym.ads: Corrected comment to properly reflect level of support
25859 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
25861 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
25862 includes case of a variable referenced on the left hand side of an
25863 assignment, therefore remove redundant code. Variables and prefixes of
25864 indexed or selected components are now marked as referenced on left
25865 hand side. Warnings are now properly emitted when variables or prefixes
25866 are assigned but not read.
25868 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
25869 left hand side referenced variables. Private access types do not
25870 produce the warning "variable ... is assigned but never read".
25871 Add also additional checks to left hand side referenced variables.
25872 Aliased, renamed objects and access types do not produce the warning
25873 "variable ... is assigned but never read" since other entities may read
25874 the memory location.
25876 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
25878 * Makefile.in: In the powerpc/vxworks-specific section, restore
25879 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
25882 2004-06-07 Ed Schonberg <schonberg@gnat.com>
25884 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
25885 predefined operators.
25886 Removes spurious type errors from g-trasym-vms.adb.
25888 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
25889 distinct from the operator appearing in the source, call appropriate
25890 routine to insert conversions when needed, and complete resolution of
25892 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
25893 interpretations for rewritten right operand.
25894 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
25895 the other operand is overloaded and the context is a type conversion.
25897 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25899 * ada-tree.def (BLOCK_STMT): Now has two operands.
25902 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
25904 * gigi.h: (gnat_poplevel): Now returns a tree.
25906 * trans.c (end_block_stmt): Add arg; all callers changed.
25907 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
25908 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
25909 (add_stmt): Set TREE_TYPE.
25910 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
25911 (gnat_expand_stmt, case BREAK_STMT): New case.
25913 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
25915 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
25917 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
25918 procedure Set_Stack_Size that is not needed.
25920 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
25922 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
25923 used for gnatpp input file and for the files upon which it depends
25925 2004-06-07 Ben Brosgol <brosgol@gnat.com>
25927 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25929 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
25931 * gnatvsn.ads: Bump version numbers appropriately.
25932 Add new build type.
25934 2004-06-07 Pascal Obry <obry@gnat.com>
25936 * gnat_ugn.texi: Improve comments about imported names and link names
25937 on Windows. Add a note about the requirement to use -k gnatdll's option
25938 when working with a DLL which has stripped stdcall symbols (no @nn
25941 2004-05-27 Vincent Celier <celier@gnat.com>
25943 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
25944 COMMENTS_LAYOUT=UNTOUCHED
25946 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
25947 symbols-vms-alpha.adb
25949 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
25951 * sem.ads: Clarify documentation on checks suppression.
25953 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
25955 2004-05-27 Ed Schonberg <schonberg@gnat.com>
25957 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
25958 the case of multiple derivations.
25959 (Is_Object_Reference): For a selected component, verify that the prefix
25960 is itself an object and not a value.
25962 * sem_ch12.adb (Same_Instantiated_Constant): New name for
25963 Same_Instantiated_Entity.
25964 (Same_Instantiated_Variable): Subsidiary to
25965 Check_Formal_Package_Instance, to recognize actuals for in-out generic
25966 formals that are obtained from a previous formal package.
25967 (Instantiate_Subprogram_Body): Emit proper error when
25968 generating code and the proper body of a stub is missing.
25970 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
25971 has a universal interpretation, do the disambiguation here.
25973 * exp_ch4.adb (Expand_N_Type_Conversion,
25974 Expand_N_Unchecked_Type_Conversion): Special handling when target type
25975 is Address, to avoid typing anomalies when Address is a visible integer
25978 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
25979 to determine whether a subprogram should not be marked Pure, even when
25980 declared in a pure package.
25982 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
25984 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
25986 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
25987 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
25988 Update the documentation about the Ravenscar profile, following the
25989 definition found in AI-249.
25991 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
25992 setting the Profile (Ravenscar). This must be done in addition to
25993 setting the required restrictions.
25995 * rtsfind.ads: Add the set of operations defined in package
25998 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
26001 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
26003 lang-specs.h: Always require -c or -S and always redirect to /dev/null
26004 if -gnatc or -gnats is passed.
26006 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
26008 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
26009 a significant reference. Warnings are now properly emitted when a
26010 discriminated type is not referenced.
26012 * lib-xref.adb (Generate_Reference): A deferred constant completion,
26013 record representation clause or record type discriminant does not
26014 produce a reference to its corresponding entity. Warnings are now
26015 properly emitted when deferred constants and record types are not
26018 2004-05-27 Geert Bosch <bosch@gnat.com>
26020 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
26021 Fixes ACATS Annex G tests.
26023 2004-05-27 Robert Dewar <dewar@gnat.com>
26025 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
26028 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
26030 * s-interr.adb (Server_Task): Take into account case of early return
26031 from sigwait under e.g. linux.
26033 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
26035 * gnat_ugn.texi: Add description for the new gnatpp options:
26036 -rnb - replace the original source without creating its backup copy
26037 -c0 - do not format comments
26039 2004-05-24 Geert Bosch <bosch@gnat.com>
26041 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
26042 with 192 bits of precision, sufficient to reduce a double-extended
26043 arguments X with a maximum relative error of T'Machine_Epsilon, for X
26044 in -2.0**32 .. 2.0**32.
26045 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
26046 reduction by the processor, which only uses a 68-bit approximation of
26048 (Tan): Always reduce arguments and compute function either using
26049 the processor's fptan instruction, or by dividing sin and cos as needed.
26051 2004-05-24 Doug Rupp <rupp@gnat.com>
26053 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
26054 gcc error on 32/64 bit VMS.
26056 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
26058 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
26059 since this is what we get for stack overflows although not documented
26061 Document the issues which may require adjustments to our signal
26064 2004-05-24 Ed Schonberg <schonberg@gnat.com>
26066 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
26067 enclosing dynamic scope if the instantiation is within a generic unit.
26069 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
26071 * exp_dbug.ads: Fix typo.
26073 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
26074 Rename it to its proper name: system-linux-ia64.ads
26075 (stamp-gnatlib1): Remove extra target specific run time files when
26076 setting up the rts directory.
26078 2004-05-24 Javier Miranda <miranda@gnat.com>
26080 * einfo.ads, einfo.adb (Limited_Views): Removed.
26081 (Limited_View): New attribute that replaces the previous one. It is
26082 now a bona fide package with the limited-view list through the
26083 first_entity and first_private attributes.
26085 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
26086 limited-private-with clause.
26087 (Install_Limited_Withed_Unit): Install the private declarations of a
26088 limited-private-withed package. Update the installation of the shadow
26089 entities according to the new structure (see Build_Limited_Views)
26090 (Build_Limited_Views): Replace the previous implementation of the
26091 limited view by a package entity that references the first shadow
26092 entity plus the first shadow private entity (required for limited-
26093 private-with clause)
26094 (New_Internal_Shadow_Entity): Code cleanup.
26095 (Remove_Limited_With_Clause): Update the implementation to undo the
26096 new work carried out by Build_Limited_Views.
26097 (Build_Chain): Complete documentation.
26098 Replace Ada0Y by Ada 0Y in comments
26101 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
26102 types the level of accessibility depends on the enclosing type
26105 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
26106 entities. Complete documentation of previous change.
26108 2004-05-24 Robert Dewar <dewar@gnat.com>
26110 * namet.adb: Minor reformatting
26111 Avoid use of name I (replace by J)
26112 Minor code restructuring
26114 * sem_ch6.adb: Minor reformatting
26116 * lib-writ.adb: Do not set restriction as active if this is a
26117 Restriction_Warning case.
26119 * sem_prag.adb: Reset restriction warning flag if real pragma
26120 restriction encountered.
26122 * s-htable.adb: Minor reformatting
26123 Change rotate count to 3 in Hash (improves hash for small strings)
26125 * 5qsystem.ads: Add comments for type Address (no literals allowed).
26127 * gnat_ugn.texi: Add new section of documentation "Code Generation
26128 Control", which describes the use of -m switches.
26130 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
26132 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
26133 through the DECL_INITIAL for renamed variables.
26135 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
26137 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
26139 2004-05-19 Joel Brobecker <brobecker@gnat.com>
26141 * exp_dbug.ads: Correct comments concerning handling of overloading,
26142 since we no longer use $ anymore.
26144 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
26146 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
26147 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
26148 with illegal subunits.
26150 2004-05-19 Ed Schonberg <schonberg@gnat.com>
26152 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
26153 body with front-end inlining enabled, check whether an inline pragma
26154 appears immediately after the body and applies to it.
26156 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
26157 enabled and the pragma appears after the body of the subprogram.
26159 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26161 Part of function-at-a-time conversion
26163 * misc.c (adjust_decl_rtl): Deleted.
26164 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
26167 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
26168 (add_decl_stmt, add_stmt, block_has_vars): New functions.
26169 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
26171 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
26172 when making a decl.
26173 (gnat_to_gnu_entity): Likewise.
26174 Use add_stmt to update setjmp buffer.
26175 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
26177 No longer call adjust_decl_rtl.
26178 (DECL_INIT_BY_ASSIGN_P): New macro.
26179 (DECL_STMT_VAR): Likewise.
26181 * trans.c (gigi): Call start_block_stmt to make the outermost
26183 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
26184 Call start_block_stmt and end_block_stmt temporarily.
26185 Use gnat_expand_stmt instead of expand_expr_stmt.
26186 (add_decl_stmt): New function.
26187 (tree_transform): Call it.
26188 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
26189 (end_block_stmt): Set type and NULL_STMT.
26190 (gnat_expand_stmt): Make recursize call instead of calling
26192 (gnat_expand_stmt, case DECL_STMT): New case.
26193 (set_lineno_from_sloc): Do nothing if global.
26194 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
26195 (start_block_stmt, add_stmt, end_block_stmt): New functions.
26196 (build_block_stmt): Call them.
26197 (gnat_to_code): Don't expand NULL_STMT.
26198 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
26200 (tree_transform): Likewise.
26201 (tree_transform, case N_Null_Statement): Return NULL_STMT.
26202 (gnat_expand_stmt, case NULL_STMT): New case.
26203 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
26206 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
26209 * utils.c (create_var_decl): Do not call expand_decl or
26211 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
26212 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
26214 (struct e_stack): Add chain_next to GTY.
26215 (struct binding_level): Deleted.
26216 (struct ada_binding_level): New struct.
26217 (free_block_chain): New.
26218 (global_binding_level, clear_binding_level): Deleted.
26219 (global_bindings_p): Rework to see if no chain.
26220 (kept_level_p, set_block): Deleted.
26221 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
26222 new data structure and work directly on BLOCK node.
26223 (gnat_poplevel): Similarly.
26224 (get_decls): Look at BLOCK_VARS.
26225 (insert_block): Work directly on BLOCK node.
26226 (block_has_var): New function.
26227 (pushdecl): Rework for new binding structures.
26228 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
26230 (build_subprog_body): Likewise.
26231 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
26233 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
26235 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
26236 (DECL_STMT_VAR): Likewise.
26238 2004-05-17 Robert Dewar <dewar@gnat.com>
26240 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
26243 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
26244 of restriction synonyums by using
26245 Restrict.Process_Restriction_Synonyms.
26247 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
26249 * s-restri.ads (Tasking_Allowed): Correct missing comment
26251 * s-rident.ads: Add entries for restriction synonyms
26253 * ali.adb: Fix some problems with badly formatted ALI files that can
26254 result in infinite loops.
26256 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
26257 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
26258 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
26259 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
26260 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
26261 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
26262 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
26263 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
26264 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
26265 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
26266 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
26267 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
26268 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
26269 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
26270 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
26271 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
26272 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
26273 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
26274 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
26275 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
26276 to Task_Id (minor cleanup).
26278 2004-05-17 Vincent Celier <celier@gnat.com>
26280 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
26281 directory separator.
26283 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
26284 project being extended, if Languages is not declared in extending
26287 2004-05-17 Javier Miranda <miranda@gnat.com>
26289 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
26290 limited view of a visible sibling.
26292 2004-05-14 Robert Dewar <dewar@gnat.com>
26294 * gnat_ugn.texi: Minor change to -gnatS documentation
26296 * sprint.adb: Remove some instances of Assert (False) and for this
26297 purpose replace them by output of a ??? string.
26299 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
26302 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
26303 flag processing. This was suppressing required dependencies in
26304 No_Run_Time mode and is not needed since the binder does not generate
26305 references for things in libgnat anyway.
26307 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
26310 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
26312 * gnat_ugn.texi: Document AIX-specific issue with initialization of
26315 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
26316 action for the case of an actual parameter in an init proc call.
26318 2004-05-14 Ed Schonberg <schonberg@gnat.com>
26320 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
26321 subtype, check visible entities in base type.
26323 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
26324 actions if the object is a renaming.
26326 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
26327 Check_Formal_Package_Instance, to determine more precisely when the
26328 formal and the actual denote the same entity.
26330 2004-05-14 Javier Miranda <miranda@gnat.com>
26332 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
26334 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
26335 corresponding to a private_with must be removed from visibility; it
26336 will be made visible later, just before we analyze the private part of
26338 (Check_Private_Child_Unit): Allow private_with clauses in public
26340 (Install_Siblings): Make visible the private entities of private-withed
26342 (Install_Withed_Unit): Do not install the private withed unit if we
26343 are compiling a package declaration and the Private_With_OK flag was
26344 not set by the caller. These declarations will be installed later,
26345 just before we analyze the private part of the package.
26347 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
26348 during the evaluation of the expression that initializes the object,
26349 decorate it with the expected type to avoid cascade errors.
26352 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
26353 subprogram we have to install the private_with clauses after its
26354 specification has been analyzed (as documented in AI-262.TXT).
26356 * sem_ch8.adb (Has_Private_With): New function. Determines if the
26357 current compilation unit has a private with on a given entity.
26358 (Find_Direct_Name): Detect the Beaujolais problem described in
26361 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
26362 provides the functionality of the function Is_Ancestor that was
26363 previously available in sem_ch10. It has been renamed to avoid
26366 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
26368 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26370 * utils.c (build_vms_descriptor): Use SImode pointers.
26372 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
26374 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
26376 2004-05-14 GNAT Script <nobody@gnat.com>
26378 * Make-lang.in: Makefile automatically updated
26380 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
26382 Renaming of target specific files for clarity
26384 * Makefile.in: Rename GNAT target specific files.
26386 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
26387 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
26388 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
26389 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
26390 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
26391 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
26392 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
26393 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
26394 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
26395 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
26396 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
26397 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
26398 51osinte.adb, 51osinte.ads, 51system.ads,
26399 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26400 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
26401 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
26402 56tpopsp.adb, 57system.ads, 58system.ads,
26403 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
26404 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
26405 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
26406 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
26407 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
26408 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
26409 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
26410 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
26411 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
26412 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
26413 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
26414 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
26415 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
26416 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
26417 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
26418 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
26419 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
26420 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
26421 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
26422 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
26423 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
26424 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
26425 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
26426 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
26427 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
26428 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
26429 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
26430 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
26431 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
26432 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
26433 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
26434 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
26435 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
26436 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
26437 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
26438 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
26439 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
26440 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
26441 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
26442 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
26444 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
26445 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
26446 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
26447 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
26448 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
26449 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
26450 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
26451 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
26452 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
26453 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
26454 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
26455 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
26456 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
26457 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
26458 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
26459 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
26460 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
26461 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
26462 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
26463 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
26464 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
26465 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
26466 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
26467 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
26468 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
26469 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
26470 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
26471 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
26472 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
26473 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
26474 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
26475 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
26476 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
26477 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
26478 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
26479 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
26480 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
26481 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
26482 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
26483 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
26484 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
26485 s-osinte-vms.ads, s-osinte-vxworks.adb,
26486 s-osinte-vxworks.ads, s-osprim-mingw.adb,
26487 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
26488 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26489 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
26490 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
26491 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
26492 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26493 s-stchop-vxworks.adb, s-taprop-dummy.adb,
26494 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
26495 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
26496 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
26497 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
26498 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
26499 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
26500 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
26501 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
26502 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
26503 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
26504 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
26505 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
26506 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
26507 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
26508 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
26509 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
26510 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
26511 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
26512 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
26513 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
26514 system-irix-o32.ads, system-linux-x86_64.ads,
26515 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
26516 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
26517 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
26518 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
26519 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
26520 system-vxworks-mips.ads, system-vxworks-ppc.ads,
26521 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
26524 2004-05-13 Zack Weinberg <zack@codesourcery.com>
26526 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
26528 2004-05-13 Diego Novillo <dnovillo@redhat.com>
26530 Merge from tree-ssa-20020619-branch.
26532 * config-lang.in (boot_language, build_by_default): Set
26534 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
26535 (max_size): Add static chain op for call_expr.
26537 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
26540 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
26542 2004-05-11 Roger Sayle <roger@eyesopen.com>
26544 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
26547 2004-05-10 Doug Rupp <rupp@gnat.com>
26549 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
26552 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
26554 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
26556 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
26557 Fixes undefined symbols in IA64 gnatlib.
26559 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
26561 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
26562 Short_Address). This will be moved to system.auxdec.
26564 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
26566 * sem_util.adb: Replace test for presence of a node that is always
26567 present with a call to Discard_Node.
26569 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
26570 Analyze on the library unit node after generation of distribution stub
26571 constructs. The call was a no-op because Unit_Node has already been
26572 Analyzed, and the tree fragments for the distribution stubs are
26573 analyzed as they are inserted in Exp_Dist.
26574 Update comment regarding to distribution stubs to reflect that we
26575 do not generate stub in separate files anymore.
26577 * einfo.ads: Clarify the fact that a tagged private type has the
26578 E_Record_Type_With_Private Ekind.
26580 * erroutc.adb: Minor reformatting
26582 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
26583 values if line length is increased using -gnatyM (noticed during code
26586 * eval_fat.adb: Minor reformatting
26587 Put spaces around exponentiation operator
26589 2004-05-10 Ed Schonberg <schonberg@gnat.com>
26592 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
26593 has been rewritten as an explicit dereference, retrieve type of
26594 original node to check for possibly unconstrained record type.
26596 2004-05-10 Ed Schonberg <schonberg@gnat.com>
26598 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
26599 overriding, use the operation of the parent unconditionally.
26601 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
26602 operation when either operand is a literal, to avoid further
26605 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
26606 overridden by a previous explicit declaration, mark the previous entity
26609 * sem_disp.adb (Check_Dispatching_Operation): New predicate
26610 Is_Visibly_Controlled, to determine whether a declaration of a
26611 primitive control operation for a derived type overrides an inherited
26612 one. Add warning if the explicit declaration does not override.
26614 2004-05-10 Vincent Celier <celier@gnat.com>
26616 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
26617 some cases when the sources are no longer present.
26619 * make.adb (Collect_Arguments): Fail if an external source, not part
26620 of any project need to be compiled, when switch -x has not been
26623 * makeusg.adb: Document new switch -x
26625 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
26626 defaulted to False.
26628 * switch-m.adb (Scan_Make_Switches): New switch -x
26630 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
26631 gnatmake switch -x.
26633 * gnat_ugn.texi: Document new gnatmake switch -x
26635 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
26637 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
26639 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
26640 (process_attributes): Likewise.
26642 2004-05-10 Joel Brobecker <brobecker@gnat.com>
26644 * s-inmaop.ads: Fix spelling mistake in one of the comments.
26646 2004-05-10 Robert Dewar <dewar@gnat.com>
26648 * gnat_ugn.texi: Document that for config pragma files, the maximum
26649 line length is always 32767.
26651 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
26652 literals is now allowed.
26654 * gnat-style.texi: Remove statement about splitting long lines before
26655 an operator rather than after, since we do not follow this rule at all.
26656 Clarify rule (really lack of rule) for spaces around exponentiation
26658 * sem_elim.adb: Allow concatenation of string literals as well as a
26659 single string literal for pragma arguments.
26661 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
26663 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
26664 written for append case.
26666 * frontend.adb: Changes to avoid checking max line length in config
26669 * g-os_lib.ads: Minor reformatting
26671 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
26672 wrong in any case. Instead use standard value. Noticed during code
26675 * opt.ads (Max_Line_Length): New field, used to implement removal of
26676 limitation on length of lines when scanning config pragma files.
26678 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
26679 makeutl.ads, makeutl.adb: Minor reformatting
26681 * scn.adb: Do not check line length while scanning config pragma files
26682 Do not check line length while scanning out license information
26684 * scng.adb: Changes to avoid line length checks while parsing config
26687 2004-05-10 GNAT Script <nobody@gnat.com>
26689 * Make-lang.in: Makefile automatically updated
26691 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
26693 * osint.adb (Find_Program_Name): Fix handling of VMS version
26696 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
26698 * g-os_lib.ads (Invalid_Time): New constant
26700 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
26701 return OS_Time instead of time_t to match what is imported by Ada.
26702 Now return -1 if the file doesn't exist, instead of a random value
26704 2004-05-05 Robert Dewar <dewar@gnat.com>
26706 * usage.adb: Add line for -gnatR?s switch
26708 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
26710 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
26711 and for Match (Data_First, Data_last)
26713 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
26714 written when we are dealing with multi-unit files.
26716 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
26718 * Makefile.in: Remove unused targets and variables.
26720 2004-05-05 Vincent Celier <celier@gnat.com>
26722 * switch-m.adb: New gnatmake switch -eI
26724 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
26725 of new gnatmake switch -eInnn.
26727 * makegpr.adb: Take into account new parameters Index and Src_Index in
26730 * clean.adb: Implement support for multi-unit sources, including new
26733 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
26736 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
26737 (Extract_From_Q): New out parameter Index
26738 (Mark, Is_Marked): Subprograms moved to Makeutl
26739 (Switches_Of): New parameter Source_Index
26740 (Add_Switch): New parameter Index
26741 (Check): New parameter Source_Index
26742 (Collect_Arguments): New parameter Source_Index
26743 (Collect_Arguments_And_Compile): New parameter Source_Index
26744 (Compile): New parameter Source_Index
26745 Put subprograms in alphabetical order
26746 Add support for multi-source sources, including in project files.
26748 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
26749 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
26752 * makeusg.adb: New gnatmake switch -eInnn
26754 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
26757 * opt.ads (Main_Index): New variable, defaulted to 0.
26759 * osint.ads, osinte.adb (Add_File): New parameter Index
26760 (Current_Source_Index): New function
26762 * prj.adb: Take into account new components Index and Src_Index
26764 * prj.ads (String_Element): New component Index
26765 (Variable_Value): New component Index
26766 (Array_Element): New component Src_Index
26768 * prj-attr.adb: Indicate that optional index may be specified for
26769 attributes Main, Executable, Spec, Body and some of Switches.
26771 * prj-attr.ads (Attribute_Kind): New values for optional indexes
26772 (Attribute_Record): New component Optional_Index
26774 * prj-com.ads (File_Name_Data): New component Index
26776 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
26778 * prj-env.adb (Put): Output optional index
26780 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
26781 attributes Spec and Body.
26783 * prj-nmsc.adb: Process optional indexes
26785 * prj-pp.adb: Ouput "at" for optional indexes
26787 * prj-proc.adb: Take into account optional indexes
26789 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
26790 Optional_Index. For string literal,
26791 process optional index when Optional_Index is True.
26792 (Parse_Expresion): New Boolean parameter Optional_Index
26794 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
26795 (Set_Source_Index_Of): New procedure
26797 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
26800 * prj-util.ads (Executable_Of): New parameter Index
26801 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
26802 New parameter Src_Index, defaulted to 0.
26804 2004-05-05 Ed Schonberg <schonberg@gnat.com>
26807 * sem_ch3.adb (Access_Definition): If this is an access parameter
26808 whose designated type is imported through a limited_with clause, do
26809 not add the enclosing subprogram to the list of private dependents of
26812 2004-05-05 Ed Schonberg <schonberg@gnat.com>
26815 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
26816 a limited_with clause, and the other is its non-limited view.
26818 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
26820 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
26822 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
26823 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
26824 Stand.Boolean_Literals to produce references to entities
26825 Standard_False and Standard_True from compile-time computed boolean
26828 * stand.ads (Boolean_Literals): New variable, provides the entity
26829 values for False and True, for use by the expander.
26831 2004-05-05 Doug Rupp <rupp@gnat.com>
26833 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
26834 5vinmaop.adb: Unchecked convert Short_Address vice Address
26836 * adaint.c, raise.c: Caste CRTL function return value
26837 to avoid gcc error on 32/64 bit IVMS.
26839 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
26842 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
26844 * 5qsystem.ads (Address): Declare as Long_Integer
26845 (Short_Address): Declare as 32 bit subtype of Address
26846 Declare abstract address operations to avoid gratuitous ambiguities.
26848 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
26850 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
26851 instead of the old Boolean_Entry_Barriers.
26852 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
26854 2004-05-05 GNAT Script <nobody@gnat.com>
26856 * Make-lang.in: Makefile automatically updated
26858 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
26860 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
26862 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
26865 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
26866 alone. Replacing object references by literals is inappropriate in a
26867 so low level context.
26869 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
26871 * a-exexpr.adb: Add comments
26873 2004-05-03 Joel Brobecker <brobecker@gnat.com>
26875 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
26876 declare the Ancestor_Tags array in Type_Specific_Data with a small size
26877 without risking a bounds check error when accessing one of its
26879 (Type_Specific_Data): Define Ancestor_Tags as a small array.
26880 This prevents us from hitting a limitation during the debug info
26881 generation when using stabs.
26883 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
26885 This prevents us from hitting a limitation during the debug info
26886 generation when using stabs.
26888 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
26890 lang-specs.h: Remove -gnatz* from specs.
26892 2004-05-03 Vincent Celier <celier@gnat.com>
26894 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
26896 * Make-lang.in, Makefile.in: Add gprmake
26898 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
26900 * sem_aggr.adb: Fix typo in comment.
26902 2004-05-03 Robert Dewar <dewar@gnat.com>
26904 * make.adb: Minor reformatting
26906 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
26908 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
26909 so that it works when address is not a private type.
26911 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
26912 properly with rewritten unchecked conversions. This prevents
26913 order-of-elaboration issues that can otherwise arise.
26914 (Minimum_Size): Don't check size of access types under VMS
26916 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
26917 interpretations of integer literals as type System.Address.
26919 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
26920 (Is_Descendent_Of): New function
26922 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
26924 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26925 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
26926 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
26928 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
26929 of the old Max_Entry_Queue_Depth.
26931 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26932 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
26933 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
26935 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
26936 New entry for proper handling of Max_Entry_Queue_Depth.
26937 New entry for proper handling of No_Dynamic_Interrupts.
26939 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
26940 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26941 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
26942 the GNAT specific restriction Max_Entry_Queue_Depth.
26943 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
26944 the GNAT specific restriction No_Dynamic_Interrupts.
26946 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
26947 instead of the old Boolean_Entry_Barriers.
26948 Use the new restriction No_Dynamic_Attachment instead of the old
26949 No_Dynamic_Interrupts.
26951 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
26952 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26954 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
26955 of the old Max_Entry_Queue_Depth.
26957 2004-05-03 GNAT Script <nobody@gnat.com>
26959 * Make-lang.in: Makefile automatically updated
26961 2004-04-29 Ed Schonberg <schonberg@gnat.com>
26963 * checks.adb (Enable_Range_Check): If the prefix of an index component
26964 is an access to an unconstrained array, perform check unconditionally.
26966 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26968 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
26971 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
26973 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
26974 alternate stack setting. There was no support for the tasking cases
26975 and the changes eventually caused a number of side-effect failures in
26976 the non-tasking case too.
26978 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
26980 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
26983 2004-04-29 Vincent Celier <celier@gnat.com>
26985 * make.adb (Gnatmake): Increase max size of argument array for
26986 gnatbind for the potential addition of -F.
26987 If there are Stand-Alone Library projects, invoke gnatbind with -F to
26988 be sure that elaboration flags will be checked.
26990 * switch-c.adb: Correct call to Scan_Pos for -gnateI
26992 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
26994 * sem_warn.adb (Check_References): Move '<access-variable> may be
26995 null' warning out of under Warn_On_No_Value_Assigned.
26997 2004-04-29 Ed Falis <falis@gnat.com>
26999 * gnat_ugn.texi: Fixed texi error
27001 2004-04-29 Robert Dewar <dewar@gnat.com>
27003 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
27004 abstract operations if they come from predefined files.
27006 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
27009 * s-addope.adb: Correct obvious error in mod function
27011 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
27013 * Makefile.in: Add target pairs for powerpc darwin*
27016 * a-intnam-darwin.ads, s-osinte-darwin.adb,
27017 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
27019 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
27021 * Makefile.in: Add target macro definitions for s390*-linux*.
27022 * system-linux-s390.ads: New file.
27023 * system-linux-s390x.ads: New file.
27025 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
27027 * gnat_ugn.texi: Correct argument to @setfilename.
27029 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
27031 * a-exexpr.adb (Unwind_Word): New data type.
27032 (Unwind_Exception): Use it as type of Private1 and Private2.
27034 * raise.c (db_action_for): Fix debug printf.
27036 2004-04-27 Ed Schonberg <schonberg@gnat.com>
27038 * a-wtmoio.ads: Formal type must be a modular type, not a signed
27041 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27043 * decl.c (gnat_to_gnu_entity, case object): Call
27044 __builtin_update_setjmp_buf.
27046 * gigi.h (update_setjmp_buf): Deleted.
27047 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
27049 * misc.c: (update_setjmp_buf): Deleted.
27051 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
27052 around block of RTL.
27054 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
27056 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
27058 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
27059 subprogram for which no pragma All_Calls_Remote applies, store the
27060 address of the real subprogram in the underlying record type, so local
27061 dereferences do not go through the PCS.
27063 2004-04-26 Robert Dewar <dewar@gnat.com>
27065 * i-c.ads: Add some type qualifications to avoid ambiguities when
27066 compiling with s-auxdec.ads and a non-private address type.
27068 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
27070 * Makefile.rtl: Fix error in previous check-in:
27071 Add s-addope.o to non tasking object list (rather than tasking object
27074 2004-04-26 Javier Miranda <miranda@gnat.com>
27076 * sem_aggr.adb: Fix typo in comments
27077 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
27078 Required to check the null-exclusion attribute.
27080 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
27081 case of anonymous access types in record and array components. For a
27082 component definition the level is the same of the enclosing composite
27085 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
27086 that are anonymous access types the level of accessibility depends on
27087 the enclosing type declaration. In order to have this information, set
27088 the scope of the anonymous access type to the enclosing record type
27090 (Array_Type_Declaration): In case of components that are anonymous
27091 access types the level of accessibility depends on the enclosing type
27092 declaration. In order to have this information, set the scope of the
27093 anonymous access type to the enclosing array type declaration.
27095 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
27098 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
27099 renaming of anonymous access-to-constant types allowed if and only if
27100 the renamed object is access-to-constant.
27102 * sem_util.adb (Type_Access_Level): In case of anonymous access types
27103 that are component_definition or discriminants of a nonlimited type,
27104 the level is the same as that of the enclosing component type.
27106 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
27108 * sem_elim.adb: Some minor code reorganization from code reading. Fix
27109 misprint in the function name (File_Name_Match).
27111 2004-04-23 Laurent GUERBY <laurent@guerby.net>
27113 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
27116 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27118 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
27120 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
27122 * adaint.c (__gnat_try_lock): No longer requires that the parent
27123 directory be writable, the directory itself is enough.
27124 (gnat_is_absolute_path): Change profile, so that the call from
27125 GNAT.OS_Lib can be made more efficient.
27127 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
27128 from GNAT.OS_Lib can be made more efficient.
27130 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
27131 one copy of the file name. Found by code reading.
27133 2004-04-23 Vincent Celier <celier@gnat.com>
27135 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
27136 Correct documentation on gnatmake switches transmitted to the compiler
27138 * ali.ads: Minor comment fix
27140 2004-04-23 Javier Miranda <miranda@gnat.com>
27142 * sem_ch6.adb: (Confirming Types): Code cleanup
27144 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
27145 subprogram types: E_Anonymous_Access_Subprogram_Type and
27146 E_Anonymous_Access_Protected_Subprogram_Type.
27148 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
27150 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27151 whether a pragma All_Calls_Remote applies to the subprogram on which
27153 No functional change is introduced by this revision; the new parameter
27154 will be used to allow calls to local RCI subprograms to be optimized
27155 to not use the PCS in the case where no pragma All_Calls_Remote applies,
27156 as is already done in the PolyORB implementation of the DSA.
27158 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27159 whether a pragma All_Calls_Remote applies to the subprogram on which
27161 No functional change is introduced by this revision; the new parameter
27162 will be used to allow calls to local RCI subprograms to be optimized
27163 to not use the PCS in the case where no pragma All_Calls_Remote applies,
27164 as is already done in the PolyORB implementation of the DSA.
27166 2004-04-23 Robert Dewar <dewar@gnat.com>
27168 * Makefile.rtl: Add entry for s-addope.o in run time library list
27169 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
27170 * s-addope.ads, s-addope.adb: New files.
27172 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
27173 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
27174 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
27175 System.Address to be non-private and signed.
27177 * sem_elim.adb: Minor reformatting (fairly extensive)
27178 Some minor code reorganization from code reading
27179 Add a couple of ??? comments
27181 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27183 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
27184 (tree_transform, case N_If_Statement): Remove non-determinism.
27186 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
27188 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
27190 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
27191 Eliminate' section.
27193 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
27194 no longer used as a parameter name for Eliminate pragma).
27196 2004-04-22 Laurent GUERBY <laurent@guerby.net>
27198 PR optimization/14984
27199 PR optimization/14985
27200 * trans.c (gigi): Fix non determinism leading to bootstrap
27201 comparison failures.
27203 2004-04-21 Pascal Obry <obry@gnat.com>
27205 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
27206 passed to spawnvp() to properly handle program pathname with spaces on
27209 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
27211 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
27212 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
27213 unlocked in case of exceptions.
27215 2004-04-21 Joel Brobecker <brobecker@gnat.com>
27217 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
27218 This function does not exist anymore.
27220 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
27222 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
27224 * link.c: Move variables to the __gnat name space.
27226 * Makefile.in: list link.o explicitly when needed.
27228 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
27230 2004-04-21 Javier Miranda <miranda@gnat.com>
27232 * einfo.adb (Original_Access_Type): New subprogram
27233 (Set_Original_Access_Type): New subprogram
27234 (Write_Field21_Name): Write the name of the new field
27236 * einfo.ads (Original_Access_Type): New field present in access to
27238 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
27239 E_Anonymous_Access_Protected_Subprogram_Type.
27241 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
27244 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
27245 to anonymous access to subprogram types.
27247 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
27248 to subprogram types.
27250 * sem_ch3.adb (Access_Definition): Complete decoration of entities
27251 corresponding to anonymous access to subprogram types.
27252 (Analyze_Component_Declaration): Add new actual to the call to
27253 subprogram replace_anonymous_access_to_protected_subprogram.
27254 (Array_Type_Declaration): Add new actual to the call to subprogram
27255 replace_anonymous_access_to_protected_subprogram.
27256 (Process_Discriminants): Add new actual to the call to subprogram
27257 replace_anonymous_access_to_protected_subprogram.
27258 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
27260 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27263 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
27264 access to subprogram types.
27266 * sem_util.adb (Has_Declarations): Addition of package_specification
27269 2004-04-21 Ed Schonberg <schonberg@gnat.com>
27271 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
27272 inlined flags to renamed entity only if in current unit.
27274 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
27276 * s-parint.ads: Add DSA implementation marker.
27278 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
27279 value of System.Partition_Interface.DSA_Implementation to determine
27280 what version of the distributed systems annex is available (no
27281 implementation, GLADE, or PolyORB).
27283 2004-04-21 Joel Brobecker <brobecker@gnat.com>
27285 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
27287 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27289 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
27290 with new type if alias sets differ.
27291 Fixes ACATS c41103b.
27293 2004-04-21 Vincent Celier <celier@gnat.com>
27295 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
27296 Add array Lang_Args for the language specific compiling argument
27299 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
27301 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
27303 * gnat_rm.texi: Update the descripton of the Eliminate pragma
27304 according to the recent changes in the format of the parameters of the
27305 pragma (replacing Homonym_Number with Source_Location).
27307 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
27309 * 5isystem.ads: Removed, unused.
27311 * gnat_rm.texi: Redo 1.13 change.
27313 2004-04-19 Robert Dewar <dewar@gnat.com>
27315 * s-stoele.ads: Clean up definition of Storage_Offset (the new
27316 definition is cleaner, avoids the kludge of explicit Standard operator
27317 references, and also is consistent with a visible System.Address with
27318 no visible operations.
27320 * s-geveop.adb: Add declarations to avoid assumption of visible
27321 operations on type System.Address (since these might not be available
27322 if Address is a non-private type for which the operations
27323 are made abstract).
27325 * sem_eval.adb: Minor reformatting
27327 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
27328 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
27329 reformatting (new function spec format).
27331 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
27332 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
27333 s-caun64.adb: Add declarations to avoid assumption of visible
27334 operations on type System.Address (since these might not be available
27335 if Address is a non-private type for which the operations are made
27338 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
27340 * exp_intr.adb: Minor comment update
27342 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
27344 * 5omastop.adb: Add declarations to avoid assumption of visible
27345 operations on type System.Address (since these might not be available
27346 if Address is a non-private type for which the operations
27347 are made abstract).
27349 2004-04-19 Vincent Celier <celier@gnat.com>
27351 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
27353 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
27356 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
27358 Call Check with Process_Languages.
27359 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
27360 with Process_Languages.
27361 (Recursive_Check): New Boolean parameter Process_Languages. Call
27362 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
27365 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
27367 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
27368 parameter Ada_Main, defaulted to True.
27369 Check for Ada specific characteristics only when Ada_Main is True.
27371 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
27373 * prj.adb: (Project_Empty): Add new Project_Data components.
27375 * prj.ads: New types and tables for non Ada languages.
27376 (Project_Data): New components Languages, Impl_Suffixes,
27377 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
27378 Include_Path, Include_Data_Set.
27380 * prj-env.ads, prj-env.adb: Minor reformatting
27382 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
27383 Put subprograms in alphabetical order
27385 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
27386 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
27389 * mlib-prj.adb: Back out modification in last version, as they are
27391 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
27393 * make.adb: (Mains): Moved to package Makeutl
27394 (Linker_Opts): Moved to package Makeutl
27395 (Is_External_Assignment): Moved to package Makeutl
27396 (Test_If_Relative_Path): Moved to package Makeutl
27397 (Gnatmake): Move sorting of linker options to function
27398 Makeutl.Linker_Options_Switches.
27400 * makeutl.ads, makeutl.adb: New files.
27402 * Makefile.in: Add makeutl.o to the object files for gnatmake
27404 * makeusg.adb: Add line for new switch -eL.
27406 * gnatls.adb (Image): New function.
27407 (Output_Unit): If in verbose mode, output the list of restrictions
27408 specified by pragmas Restrictions.
27410 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
27413 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
27414 needed, to put it in the range 1970 (included) - 2026 (excluded).
27415 (Time_Of): Do not shift Unix_Min_Year (1970).
27416 Shift the date by multiple of 56 years, if needed, to put it in the
27417 range 1970 (included) - 2026 (excluded).
27419 * adaint.h, adaint.c (__gnat_set_executable): New function.
27421 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27423 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
27424 and pop GC context.
27425 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
27426 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
27427 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
27428 (tree_transform, case N_Code_Statement): Likewise.
27429 (gnat_expand_stmt, case LABEL_STMT): Don't look at
27430 LABEL_STMT_FIRST_IN_EH.
27431 (gnat_expand_stmt, case ASM_STMT): New case.
27433 * utils2.c (build_unary_op): Properly set TREE_READONLY of
27434 UNCONSTRAINED_ARRAY_REF.
27436 * utils.c (poplevel): Temporarily push/pop GC context around inline
27437 function expansion.
27439 * decl.c (maybe_variable): Properly set TREE_READONLY of
27440 UNCONSTRAINED_ARRAY_REF.
27441 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
27443 * ada-tree.def: (ASM_STMT): New.
27445 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
27446 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
27447 ASM_STMT_INPUT): New.
27448 (ASM_STMT_CLOBBER): Likewise.
27450 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
27452 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
27453 general rcheck mechanism to raise Program_Error for E.4(18), instead
27454 of a custom raiser in System.Partition_Interface.
27455 Part of general cleanup work before PolyORB integration.
27457 * snames.ads, snames.adb: Add new runtime library entities and names
27460 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27462 (Build_Subprogram_Id): New subprogram provided by exp_dist
27463 Code reorganisation in preparation for PolyORB integration.
27465 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27467 (Build_Subprogram_Id): New subprogram provided by exp_dist
27469 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
27470 actual parameter types for call to dereference of an
27471 access-to-subprogram type.
27473 * rtsfind.ads: Add new runtime library entities and names for PolyORB
27476 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
27477 instead, which has the same behaviour here since we never pass it a
27480 * link.c (run_path_option, Solaris case): Use -Wl, as for other
27483 * Makefile.in: adjust object file lists for gnatlink and gnatmake
27484 to account for new dependency upon Interfaces.C.Strings + link.o
27485 For x86 FreeBSD, use 86numaux.
27487 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
27488 from Mlib.Tgt to Mlib.
27490 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
27491 target-independent.
27493 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
27494 target-specific versions of this subprogram, now implemented as a
27495 target-independent function in Mlib.
27497 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
27498 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
27499 (Linker_Library_Path_Option): Remove target-specific versions of this
27500 subprogram, now implemented as a target-independent function in Mlib.
27502 * atree.adb: (Allocate_Initialize_Node): New subprogram.
27503 Factors out node table slots allocation.
27504 (Fix_Parents): New subprogram.
27505 Encapsulate the pattern of fixing up parent pointers for syntactic
27506 children of a rewritten node.
27507 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
27508 (Rewrite): Use New_Copy when creating saved copy of original node.
27509 (Replace): Use Copy_Node to copy nodes.
27511 2004-04-19 Javier Miranda <miranda@gnat.com>
27513 * sprint.adb (Sprint_Node_Actual): Give support to the new
27514 Access_To_Subprogram node available in Access_Definition nodes. In
27515 addition, give support to the AI-231 node fields: null-exclusion,
27516 all-present, constant-present.
27518 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
27520 * sinfo.ads, sinfo.adb:
27521 New field Access_To_Subprogram_Definition in Access_Definition nodes
27523 * sem_ch6.adb (Process_Formals): Move here the code that creates and
27524 decorates internal subtype declaration corresponding to the
27525 null-excluding formal. This code was previously in Set_Actual_Subtypes.
27526 In addition, carry out some code cleanup on this code. In case of
27527 access to protected subprogram call
27528 Replace_Anonymous_Access_To_Protected_Subprogram.
27529 (Set_Actual_Subtypes): Code cleanup.
27531 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
27532 Find_Type in case of anonymous access renamings. Add warning in case of
27533 null-excluding attribute used in anonymous access renaming.
27535 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27538 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
27540 (Access_Definition): In case of anonymous access to subprograms call
27541 the corresponding semantic routine to decorate the node.
27542 (Access_Subprogram_Declaration): Addition of some comments indicating
27543 some code that probably should be added here. Detected by comparison
27544 with the access_definition subprogram.
27545 (Analyze_Component_Declaration): In case of access to protected
27546 subprogram call Replace_Anonymous_Access_To_Protected.
27547 (Array_Type_Declaration): In case of access to protected subprogram call
27548 Replace_Anonymous_Access_To_Protected_Subprogram.
27549 (Process_Discriminants): In case of access to protected subprogram call
27550 Replace_Anonymous_Access_To_Protected_Subprogram.
27552 * par.adb (P_Access_Definition): New formal that indicates if the
27553 null-exclusion part was present.
27554 (P_Access_Type_Definition): New formal that indicates if the caller has
27555 already parsed the null-excluding part.
27557 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
27558 (P_Identifier_Declarations): Code cleanup and give support to renamings
27559 of anonymous access to subprogram types.
27560 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
27561 (P_Array_Type_Definition): Give support to AI-254.
27562 (P_Component_Items): Give support to AI-254.
27563 (P_Access_Definition): New formal that indicates if the header was
27564 already parsed by the caller.
27565 (P_Access_Type_Definition): New formal that indicates if the caller has
27566 already parsed the null-excluding part.
27568 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
27569 call to P_Access_Definition.
27571 2004-04-19 Geert Bosch <bosch@gnat.com>
27573 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
27574 the delicate semantics of floating-point to integer conversion.
27575 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
27577 * eval_fat.adb (Machine_Mantissa): Moved to spec.
27578 (Machine_Radix): New function.
27580 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
27582 (Machine_Radix): New function also for use in conversion checks.
27584 2004-04-19 Ed Schonberg <schonberg@gnat.com>
27586 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
27588 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
27589 to decorate the access-to-protected subprogram and the equivalent type.
27591 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
27592 to anonymous access to subprogram types.
27594 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
27595 constant-folding, for legality checks in contexts that require an RM
27598 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
27599 temporary but stack checking is not enabled, increment serial number
27600 to so that symbol generation is consistent with and without stack
27603 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
27604 independent on whether stack checking is enabled, caller must check
27605 the corresponding flag.
27607 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
27609 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
27610 parent if it has discriminants.
27611 (Build_Derived_Private_Type): Constructed full view does
27612 not come from source.
27613 (Process_Discriminants): Default discriminants on a tagged type are
27614 legal if this is the internal completion of a private untagged
27617 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
27618 no constraint checks, because it corresponds to an existing object.
27620 * sem_prag.adb (Process_Convention): Pragma applies
27621 only to subprograms in the same declarative part, i.e. the same unit,
27622 not the same scope.
27624 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
27625 ignore type mismatch on a numeric conversion if expression comes from
27628 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
27630 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
27631 Homonym_Number parameter, add processing for Source_Location parameter
27633 (Check_Eliminated): Remove the check for homonym numbers, add the check
27634 for source location traces.
27636 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
27637 with Arg_Source_Location corresponding to the changes in the format of
27640 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
27641 Eliminate pragma corresponding to the changes in the format of the
27642 pragma: Homonym_Number is replaced with Source_Location, two ways of
27643 distinguishing homonyms are mutially-exclusive.
27645 2004-04-19 Joel Brobecker <brobecker@gnat.com>
27647 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
27649 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
27650 No_Dollar_In_Label, no longer necessary, as it is always True.
27651 (Strip_Suffixes): Likewise.
27653 2004-04-19 Gary Dismukes <dismukes@gnat.com>
27655 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
27656 modulus for compatibility with size clause on targets with 16-bit
27659 * layout.adb (Discrimify): In the case of private types, set Vtyp to
27660 full type to fix type mismatches on calls to size functions for
27661 discriminant-dependent array components.
27663 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
27665 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
27668 2004-04-19 Pascal Obry <obry@gnat.com>
27670 * mdll-utl.adb (Locate): New version is idempotent.
27672 2004-04-17 Laurent Guerby <laurent@guerby.net>
27674 PR ada/14988 (partial)
27675 * impunit.adb: Fix typo.
27677 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
27679 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
27680 and install-rts-cert targets. Remove all gnatlib and gnattools
27681 targets and all other rts-* targets (moved to libada). Remove (now)
27682 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
27683 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
27685 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27687 * trans.c (tree_transform): Shortcut returning error_mark_node for
27688 statements in annotate_only_mode.
27689 (tree_transform, case N_Label, case N_Return_Statement,
27690 N_Goto_Statement): Make statement tree instead of generating code.
27691 (tree_transform, case N_Assignment_Statement): No longer check
27692 type_annotate_only.
27693 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
27695 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
27697 (gnat_to_gnu): Collect any RTL generated and deal with it.
27698 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
27699 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
27700 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
27702 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
27704 * ada-tree.def (EXPR_STMT): Fix typo in name.
27705 (BLOCK_STMT, IF_STMT): New nodes.
27707 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
27708 LABEL_STMT_FIRST_IN_EH): New macros.
27709 (RETURN_STMT_EXPR): Likewise.
27711 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
27712 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
27714 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
27716 * atree.ads: Correct documentation on extended nodes.
27718 * link.c: Set run_path_option for FreeBSD.
27720 2004-04-08 Vincent Celier <celier@gnat.com>
27722 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
27723 one of the ALI file, do not link with DEC lib.
27725 * par.adb Remove the last two characters ("%s" or "%b") when checking
27726 if a language defined unit may be recompiled.
27728 2004-04-08 Ed Schonberg <schonberg@gnat.com>
27730 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
27731 removal of abstract operation leaves no possible interpretation for
27734 * sem_eval.adb (Eval_Qualified_Expression): Use
27735 Set_Raises_Constraint_Error on node when needed, so that it does not
27736 get optimized away by subsequent optimizations.
27738 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
27739 operands even when they are not wrapped in a type conversion.
27741 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
27743 * sem_prag.adb (Set_Exported): Warn about making static as result of
27744 export only when the export is coming from source. This may be not
27745 be true e.g. on VMS where we expand export pragmas for exception codes
27746 together with imported or exported exceptions, and we don't want the
27747 user to be warned about something he didn't write.
27749 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
27751 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
27752 duplication between normal entities and those declared as renamings.
27753 No functional change.
27755 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
27756 inline functions returning an unconstrained result.
27758 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
27760 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
27761 conform to what other front-ends do.
27763 2004-04-08 Doug Rupp <rupp@gnat.com>
27765 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
27768 2004-04-06 Pascal Obry <obry@gnat.com>
27770 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
27772 * osint.adb (Program_Name): Do not look past a directory separator.
27774 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
27776 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
27778 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
27779 requirement for preserving a copy of the original assignment node.
27781 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
27783 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
27785 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
27788 2004-04-06 Ed Schonberg <schonberg@gnat.com>
27790 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
27791 operator calls in functional notation, and apply
27792 Universal_Interpretation to operands, not to their type.
27794 2004-04-06 Robert Dewar <dewar@gnat.com>
27796 * 5wdirval.adb: Minor reformatting
27798 2004-04-06 Ed Falis <falis@gnat.com>
27800 * gnat_rm.texi: Improve a reference to the GCC manual
27802 2004-04-05 Vincent Celier <celier@gnat.com>
27804 * adaint.h, adaint.c: Add function __gnat_named_file_length
27806 * impunit.adb: Add Ada.Directories to the list
27808 * Makefile.in: Add VMS and Windows versions of
27809 Ada.Directories.Validity package body.
27811 * Makefile.rtl: Add a-direct and a-dirval
27813 * mlib-tgt.ads: Minor comment update.
27815 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
27816 a-direct.ads, a-direct.adb: New files.
27818 2004-04-05 Vincent Celier <celier@gnat.com>
27821 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
27822 just to the compiler.
27824 2004-04-05 Robert Dewar <dewar@gnat.com>
27826 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
27827 returned string is 1.
27829 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
27831 * eval_fat.ads: Minor reformatting
27833 * g-curexc.ads: Document that lower bound of returned string values
27836 * gnatlink.adb: Add ??? comment for previous change
27837 (need to document why this is VMS specific)
27839 * s-stoele.ads: Minor reformatting
27841 * tbuild.ads: Minor reformatting throughout (new function specs)
27843 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
27846 * scng.adb: Minor reformatting
27848 2004-04-05 Geert Bosch <bosch@gnat.com>
27850 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
27851 (Leading_Part): Still perform truncation to machine number if the
27852 specified radix_digits is greater or equal to machine_mantissa.
27854 2004-04-05 Javier Miranda <miranda@gnat.com>
27856 * par-ch3.adb: Complete documentation of previous change
27857 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
27858 (aliased must appear before constant).
27860 * par-ch4.adb: Complete documentation of previous change.
27862 * par-ch6.adb: Complete documentation of previous change.
27864 * sinfo.ads: Fix typo in commment.
27866 2004-04-05 Ed Schonberg <schonberg@gnat.com>
27868 * sem_ch3.adb (Inherit_Components): If derived type is private and has
27869 stored discriminants, use its discriminants to constrain parent type,
27870 as is done for non-private derived record types.
27872 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
27873 Ada 2005 AI-310: an abstract non-dispatching operation is not a
27874 candidate interpretation in an overloaded call.
27876 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
27877 expression is Null and target type is not an access type (e.g. a
27878 non-private address type).
27880 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
27882 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
27883 statement whose right-hand side is an inlined call, save a copy of the
27884 original assignment subtree to preserve enough consistency for
27885 Analyze_Assignment to proceed.
27887 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
27888 complete assignment subtree which is now unnecessary, as the expansion
27889 of inlined call has been improved to preserve a consistent assignment
27890 tree. Note_Possible_Modification must be called only
27891 after checks have been applied, or else unnecessary checks will
27894 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
27895 of explicit dereferences that do not Come_From_Source:
27896 - be selective on cases where we must go back to the dereferenced
27897 pointer (an assignment to an implicit dereference must not be
27898 recorded as modifying the pointer);
27899 - do not rely on Original_Node being present (Analyze_Assignment
27900 calls Note_Possible_Modification on a copied tree).
27902 * sem_warn.adb (Check_References): When an unset reference to a pointer
27903 that is never assigned is encountered, prefer '<pointer> may be null'
27904 warning over '<pointer> is never assigned a value'.
27906 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
27908 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
27911 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
27913 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
27914 libexc. We currently don't reference anything in this library and
27915 linking it in triggers linker warnings we don't want to see.
27917 * init.c: Update comments.
27919 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27921 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
27922 * utils.c (create_field_decl): Likewise.
27923 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
27925 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
27927 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
27928 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
27929 Add info directory entry and category.
27931 2004-04-02 Jan Hubicka <jh@suse.cz>
27933 * utils.c: Include function.h
27934 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
27936 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
27939 * Make-lang.in: Clean up generation of documentation
27941 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
27943 * xgnatug.adb: Removed, replaced by xgnatugn.adb
27945 * xgnatugn.adb: Replaces xgnatug.adb
27947 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
27949 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
27951 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
27952 gnat_ug_wnt.texi: Removed.
27954 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
27956 * utils2.c: Update copyright notice.
27958 2004-04-01 Robert Dewar <dewar@gnat.com>
27960 * checks.adb: Minor reformatting throughout
27961 Note that prev checkin added RM reference to alignment warning
27963 2004-04-01 Ed Schonberg <schonberg@gnat.com>
27965 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
27966 non-static when building aggregate for bit-packed array.
27968 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
27969 function call that is itself the actual in a procedure call, build
27972 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
27973 a string literal, create a temporary for it, constant folding only
27974 handles scalars here.
27976 2004-04-01 Vincent Celier <celier@gnat.com>
27978 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
27979 Error_Msg_SP): New empty procedures to instantiate the Scanner.
27980 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
27982 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
27983 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
27984 and get the checksum.
27986 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
27988 Increase the Marking_Label at the end of the Multiple_Main_Loop,
27989 instead of at the beginning.
27991 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
27993 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
27996 * osint.ads (Multi_Unit_Index_Character): New Character global variable
27998 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
28001 * par.adb: Remove test on file name to detect language defined units.
28002 Add test on unit name, after parsing, to detect language defined units
28003 that are not compiled with -gnatg (except System.RPC and its children)
28005 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
28006 following units without style checking.
28008 * switch-c.adb: Change -gnatC to -gnateI
28010 * usage.adb: Document new switch -gnateInnn
28012 * scng.adb (Accumulate_Token_Checksum): New procedure
28013 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
28014 word or literal number.
28015 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
28018 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
28021 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
28022 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
28023 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
28024 5vtpopde.adb: Add missing 'constant' keywords.
28026 2004-04-01 Javier Miranda <miranda@gnat.com>
28028 * par-ch4.adb: (P_Allocator): Code cleanup
28030 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
28033 * sinfo.ads: Complete documentation of previous change
28035 2004-04-01 Pascal Obry <obry@gnat.com>
28037 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
28038 only on VMS. This special handling was done because an old GNU/ld bug
28039 on Windows which has been fixed.
28041 2004-04-01 GNAT Script <nobody@gnat.com>
28043 * Make-lang.in: Makefile automatically updated
28045 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28047 * decl.c (gnat_to_gnu_entity, make_type_from_size):
28048 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
28049 * trans.c (tree_transform, convert_with_check): Likewise.
28050 * utils.c (gnat_signed_or_unsigned_type): Likewise.
28051 (build_vms_descriptor, unchecked_convert): Likewise.
28052 * utils2.c (nonbinary_modular_operation): Likewise.
28054 2004-03-29 Javier Miranda <miranda@gnat.com>
28056 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
28057 (Install_Null_Excluding_Check): Local subprogram that determines whether
28058 an access node requires a runtime access check and if so inserts the
28059 appropriate run-time check.
28060 (Apply_Access_Check): Call Install_Null_Excluding check if required
28061 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
28063 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
28065 * einfo.ads: Fix typo in comment
28067 * exp_ch3.adb (Build_Assignment): Generate conversion to the
28068 null-excluding type to force the corresponding run-time check.
28069 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
28070 type to force the corresponding run-time check.
28072 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
28073 the null-excluding type to force the corresponding run-time check.
28075 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
28076 case of access types unless they have the null-excluding attribute.
28078 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
28081 * exp_util.ads: Fix typo in comment
28083 * par.adb (P_Null_Exclusion): New subprogram
28084 (P_Subtype_Indication): New formal that indicates if the null-excluding
28085 part has been scanned-out and it was present
28087 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
28089 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
28090 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
28091 type to force the corresponding run-time check
28092 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
28094 (Resolve_Array_Aggregate): Carry out some static checks
28095 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
28097 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
28098 attribute must be set only if specified by means of the null-excluding
28099 part. In addition, we must also propagate the access-constant attribute
28101 (Access_Subprogram_Declaration, Access_Type_Declaration,
28102 Analyze_Component_Declaration, Analyze_Object_Declaration,
28103 Array_Type_Declaration, Process_Discriminants,
28104 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
28105 and carry out some static checks.
28106 (Build_Derived_Access_Type): Set the null-excluding attribute
28107 (Derived_Type_Declaration, Process_Subtype): Carry out some static
28110 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
28112 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
28114 * sem_ch6.adb (Process_Formals): Carry out some static checks.
28115 (Set_Actual_Subtypes): Generate null-excluding subtype if the
28116 null-excluding part was present; it is not required to be done here in
28117 case of anonymous access types.
28118 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
28121 * sem_res.adb (Resolve_Actuals): Carry out some static check
28122 (Resolve_Null): Allow null in anonymous access
28124 * sinfo.adb: New subprogram Null_Exclusion_Present
28125 All_Present and Constant_Present available on access_definition nodes
28127 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
28128 object_declaration, derived_type_definition, component_definition,
28129 discriminant_specification, access_to_object_definition,
28130 access_function_definition, allocator, access_procedure_definition,
28131 access_definition, parameter_specification, All_Present and
28132 Constant_Present flags available on access_definition nodes.
28134 2004-03-29 Robert Dewar <dewar@gnat.com>
28136 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
28137 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
28138 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
28139 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
28140 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
28141 sem_prag.adb: Updates to handle multiple units/file
28143 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
28145 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
28146 sem_util.adb: Minor reformatting
28148 * sem_ch12.adb: Add comment for previous change
28150 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
28152 * osint.adb (Executable_Prefix): Set Exec_Name to the current
28153 executable name when not initialized. Otherwise, use its current value.
28155 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
28156 initialize it to another executable name than the current one. This
28157 allows to configure paths for an executable name (gnatmake) different
28158 from the current one (gnatdist).
28160 2004-03-29 Ed Schonberg <schonberg@gnat.com>
28162 * exp_ch6.adb (Expand_Call): A call to a function declared in the
28163 current unit cannot be inlined if it appears in the body of a withed
28164 unit, to avoid order of elaboration problems in gigi.
28166 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
28167 information for protected (wrapper) operation as well, to simplify gdb
28170 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
28171 protected body, indicate that the entity for the generated spec comes
28172 from source, to ensure that references are properly generated for it.
28173 (Build_Body_To_Inline): Do not inline a function that returns a
28176 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
28177 apply convention to homonyms that are declared explicitly.
28179 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
28180 that renames an equality operator and the operands are overloaded,
28181 resolve them with the declared formal types, before rewriting as an
28184 2004-03-29 GNAT Script <nobody@gnat.com>
28186 * Make-lang.in: Makefile automatically updated
28188 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
28190 * memtrack.adb: Log realloc calls, which are treated as free followed
28193 2004-03-25 Vincent Celier <celier@gnat.com>
28195 * prj-makr.adb (Process_Directories): Detect when a file contains
28196 several units. Do not include such files in the config pragmas or
28197 in the naming scheme.
28199 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
28200 Resolve links only when not in Trusted_Mode.
28201 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
28202 Do not resolve links for the display names.
28204 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
28205 resolve links when computing the display names.
28207 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
28209 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
28210 attribute reference does not denote a subtype, it can be any
28211 expression that has a classwide type, potentially after an implicit
28212 dereference. In particular, the prefix can be a view conversion for
28213 a classwide type (for which Is_Object_Reference holds), but it can
28214 also be a value conversion for an access-to-classwide type. In the
28215 latter case, there is an implicit dereference, and the original node
28216 for the prefix does not verify Is_Object_Reference.
28218 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
28219 conversion of a discriminant-dependent component of a mutable object
28222 2004-03-25 Ed Schonberg <schonberg@gnat.com>
28224 * freeze.adb (Freeze_Entity): When an inherited subprogram is
28225 inherited, has convention C, and has unconstrained array parameters,
28226 place the corresponding warning on the derived type declaration rather
28227 than the original subprogram.
28229 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
28230 indication on renaming declaration, if formal has a box and actual
28233 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
28234 determine whether to generate an implicit or explicit reference to
28235 the renamed entity.
28237 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
28238 subprogram renaming comes from a defaulted formal subprogram in an
28241 2004-03-25 Gary Dismukes <dismukes@gnat.com>
28243 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
28244 value expressions to ensure that calls within a component definition
28245 will be checked (since those are evaluated during the record type's
28248 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
28250 * s-tpobop.adb: Code clean up:
28251 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
28253 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
28255 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
28257 * Makefile.in: Clean up in the ravenscar run time.
28259 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28261 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
28262 of No_Strict_Aliasing to build_pointer_type_for_mode.
28263 * utils.c (update_pointer_to): Walk pointer and ref chains.
28265 2004-03-22 Cyrille Comar <comar@act-europe.fr>
28267 * ali.ads: Fix Comment about Dynamic_Elab.
28269 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
28270 Has_RACW, Is_Generic, etc.)
28271 (Output_Object, Gnatls): Take into account ALI files not attached to
28274 2004-03-22 Vincent Celier <celier@gnat.com>
28276 * gprep.adb: Change all String_Access to Name_Id
28277 (Is_ASCII_Letter): new function
28278 (Double_File_Name_Buffer): New procedure
28279 (Preprocess_Infile_Name): New procedure
28280 (Process_Files): New procedure
28281 (Gnatprep): Check if output and input are existing directories.
28282 Call Process_Files to do the real job.
28284 2004-03-22 Robert Dewar <dewar@gnat.com>
28286 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
28287 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
28289 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
28291 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
28292 case when the source contains only comments.
28294 2004-03-22 Ed Schonberg <schonberg@gnat.com>
28296 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
28297 declaration for a child subprogram body that acts as a spec, indicate
28298 that the entity in the declaration needs debugging information.
28300 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
28301 full view if the subtype is created for a constrained record component;
28302 gigi has enough information to construct the record, and there is no
28303 place in the tree for the declaration.
28305 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
28306 serial number for the dummy body that is built for analysis, to avoid
28307 inconsistencies in the generation of internal names when compiling
28310 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
28312 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
28315 2004-03-22 GNAT Script <nobody@gnat.com>
28317 * Make-lang.in: Makefile automatically updated
28319 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28321 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28322 * trans.c (tree_transform, emit_index_check): Likewise.
28323 * utils.c (build_template): Likewise.
28324 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
28325 (maybe_unconstrained_array, unchecked_convert): Likewise.
28326 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
28327 (build_unary_op): Likewise.
28328 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28329 (fill_vms_descriptor): Likewise.
28330 (build_call_alloc_dealloc): Likewise.
28332 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
28334 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
28337 * gnat_ug.texi: Add info directory category and entry.
28338 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28339 gnat_ug_wnt.texi: Regenerate.
28341 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
28343 * ada-tree.h: Update copyright notice.
28344 Minor reformatting.
28346 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
28348 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
28349 as regular exception objects and not as mere integers representing the
28350 condition code. The latter approach required some dynamics to mask off
28351 severity bits, which did not fit well into the GCC table based model.
28352 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
28353 exception data objects. We don't it and it would conflict with the other
28354 external symbol we have to generate for such exceptions.
28356 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
28357 the special code for VMS exceptions, since these are now represented
28358 as regular exceptions objects.
28360 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28362 * decl.c (debug_no_type_hash): Remove.
28363 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
28364 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
28366 2004-03-19 Laurent Guerby <laurent@guerby.net>
28368 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
28369 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
28371 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28373 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
28374 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
28375 (TYPE_RM_SIZE_INT): Directly use type.values.
28376 (TREE_LOOP_ID): Clean up check.
28377 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
28378 TYPE_VALUES, not TYPE_FIELDS.
28379 * trans.c (convert_with_check): Delay access of bounds of basetype
28380 until sure is numeric.
28382 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
28384 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
28387 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
28388 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
28389 Specific.Set instead of direct call to e.g pthread_setspecific.
28391 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
28393 * adaint.c: Update comments.
28395 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
28396 GNATLIB_SHARED for FreeBSD.
28398 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
28400 * init.c [VxWorks]: Do not fix the stack size for the environment task.
28401 When needed (stack checking) the stack size is retrieved
28402 from the VxWorks kernel.
28404 * Makefile.in: Flag -nostdinc is required when building the run time
28405 for avoiding looking for files in the base compiler.
28406 Add the VxWorks specific version of the package body for
28407 System.Stack_checking.Operations (5zstchop.adb).
28409 * Make-lang.in: Add the object file for
28410 System.Stack_Checking.Operations.
28412 * Makefile.rtl: Add object file for the package
28413 System.Stack_Checking.Operations.
28415 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
28417 * s-stache.ads, s-stache.adb: Move the operations related to stack
28418 checking from this package to package System.Stack_Checking.Operations.
28419 This way, stack checking operations are only linked in the final
28420 executable when using the -fstack-check flag.
28422 2004-03-18 Doug Rupp <rupp@gnat.com>
28424 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
28427 * 5qsystem.ads, 5xcrtl.ads: New files.
28429 2004-03-18 Vincent Celier <celier@gnat.com>
28431 * prj.adb (Reset): Reset hash table Files_Htable
28433 * prj-env.adb (Source_Paths, Object_Paths): New tables.
28434 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
28435 the procedures Add_To_Path_File.
28436 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
28437 making sure that each directory is present only once and, for object
28438 dirs, when a directory already present is added, the duplicate is
28439 removed and the directory is always put as the last in the table.
28440 Write the path files at the end of these accumulations.
28442 * prj-nmsc.adb (Record_Source): Add source file name in hash table
28443 Files_Htable for all sources.
28445 * prj-proc.adb (Process): Remove restrictions between not directly
28446 related extending projects.
28448 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
28450 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
28451 (Find_Sources): Minor speed optimization.
28453 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
28454 parameter Trusted_Mode.
28456 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
28458 * scn.adb (Determine_License): Take into account a degenerated case
28459 when the source contains only comments.
28461 2004-03-18 Ed Schonberg <schonberg@gnat.com>
28463 * sem_warn.adb (Check_References): For a warning on a selected
28464 component that does not come from source, locate an uninitialized
28465 component of the record type to produce a more precise error message.
28467 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
28469 * 3zsoccon.ads: Fix multicast options.
28471 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
28474 2004-03-15 Robert Dewar <dewar@gnat.com>
28476 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
28477 pragma used for a private type.
28479 * lib-xref.adb (Generate_Reference): Do not generate warning if
28480 reference is in a different unit from the pragma Unreferenced.
28482 * 5vtpopde.adb: Minor reformatting
28483 Fix casing of To_Task_ID
28485 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
28486 flag if we have an unchecked conversion to an access type in the same
28489 2004-03-15 Geert Bosch <bosch@gnat.com>
28491 * a-ngcoty.adb (Modulus): In alternate formula for large real or
28492 imaginary parts, use Double precision throughout.
28494 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
28495 we want to be able to compile run-time with -gnata for testing, but
28496 this may also be instantiated in user code that is compiled with -gnata.
28498 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
28500 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
28501 codes. Having a separate type for this is useful to enforce consistency
28502 throughout the various run-time units.
28503 (Exception_Data): Use Exception_Code for Import_Code.
28505 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
28506 Natural and Integer in various places.
28507 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
28508 with the severity bits masked off.
28509 (Register_VMS_Exception): Handle the additional exception data pointer
28512 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
28513 component, now reflected by an exported accessor.
28514 (is_handled_by): New routine to compute whether the propagated
28515 occurrence matches some handler choice specification. Extracted out of
28516 get_action_description_for, and expanded to take care of the VMS
28518 (get_action_description_for): Use is_handled_by instead of an explicit
28519 complex condition to decide if the current choice at hand catches the
28520 propagated occurrence.
28522 * raise.h (Exception_Code): New type for C.
28524 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
28525 System.Standard_Library.Exception_Code, to allow references from the
28526 pragma import/export expander.
28528 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
28529 New accessors to allow easy access to GNAT exception data
28531 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
28532 redundant Handled_By_Others component, helper for the personality
28533 routine which will now be able to call the appropriate exception data
28536 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
28537 component of Standard_Exception_Type to be the closest possible to
28538 Exception_Code in System.Standard_Library, that we cannot get at this
28539 point. Expand a ??? comment to notify that this type node should
28540 probably be rewritten later on.
28542 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
28543 registration call to include a pointer to the exception object in the
28546 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
28547 instead of int and explicit bitmasks.
28549 2004-03-15 Vincent Celier <celier@gnat.com>
28551 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
28552 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
28554 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
28555 longer needed now that it is in the spec of
28556 System.Tasking.Task_Attributes.
28558 * adaint.h, adaint.c: (__gnat_create_output_file): New function
28560 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
28562 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
28564 * make.adb (Gnatmake): Do not check the executable suffix; it is being
28565 taken care of in Scan_Make_Arg.
28566 (Scan_Make_Arg): Add the executable suffix only if the argument
28567 following -o, in canonical case, does not end with the executable
28568 suffix. When in verbose mode and executable file name does not end
28569 with executable suffix, output the executable name, in canonical case.
28571 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
28572 to avoid warnings when instantiating Ada.Task_Attributes.
28575 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
28576 in the correct order.
28578 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
28579 redirect standard output and error to a file for the invocation of the
28580 compiler, then read the file.
28582 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
28583 directory, instead of the Value.
28584 (Find_Source_Dirs): Remove useless code & comments.
28586 2004-03-15 Ed Schonberg <schonberg@gnat.com>
28588 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
28589 tagged type is inherited, and the parent operation is not frozen yet,
28590 force generation of a freeze node for the inherited operation, so the
28591 corresponding dispatch entry is properly initialized.
28592 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
28593 when looking for user-defined equality operation.
28595 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
28596 boolean when locating primitive equality of tagged component.
28598 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
28599 bit-aligned field and the right-hand side a string literal, introduce
28600 a temporary before expanding assignment into a loop.
28602 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
28603 priority in full, to ensure that any expanded subepxressions of it are
28604 elaborated in the scope of the init_proc.
28606 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
28607 after object declaration, skipping over code that may have been
28608 generated for validity checks.
28610 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
28611 discriminants, ignore the known discriminants of its full view, if
28612 any, to check legality.
28614 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
28615 component if type has unknown discriminants.
28616 (Analyze_Private_Extension_Declaration): Discriminant constraint is
28617 null if type has unknown discriminants.
28619 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
28620 for end label when present.
28622 * s-fileio.adb (Open): When called with a C_Stream, use given name for
28623 temporary file, rather than an empty string.
28625 2004-03-15 Ed Falis <falis@gnat.com>
28627 * s-thread.adb: Removed, no longer used.
28629 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28631 * decl.c (target.h): Now include.
28632 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
28633 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
28634 (validate_size): For POINTER_TYPE, get smallest size permitted on
28637 * fe.h: Sort Einfo decls and add Set_Mechanism.
28639 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
28640 (ada/decl.o): Depends on target.h.
28642 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
28643 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
28645 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
28647 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
28649 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
28650 Insert_Dereference_Action when rewriting an implicit dereference into
28651 an explicit one, this will be taken care of during expansion of the
28652 explicit dereference.
28653 (Expand_N_Slice): Same. Always do the rewriting, even for the case
28654 of non-packed slices, since the dereference action generated by
28655 expansion of the explicit dereference is needed in any case.
28656 (Expand_N_Selected_Component): When rewriting an implicit dereference,
28657 analyze and resolve the rewritten explicit dereference so it is seen
28659 (Insert_Dereference_Action): This procedure is now called only for the
28660 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
28661 dereferences that do not come from source (including explicit
28662 dereferences resulting from rewriting implicit ones), but do not
28663 recursively insert a check for the dereference nodes contained within
28665 (Insert_Dereference_Action): Clarify and correct comment.
28667 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
28670 Move language detection to the top level.
28671 * config-lang.in: Build by default.
28673 2004-03-05 Robert Dewar <dewar@gnat.com>
28675 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
28677 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
28678 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
28679 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
28680 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
28681 unchecked conversion to spec to avoid warnings.
28683 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
28686 * 7stpopsp.adb: Correct casing in To_Task_ID call
28688 * a-strsea.ads, a-strsea.adb: Minor reformatting
28690 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
28692 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
28693 Adjust Max_Msg_Length to be clearly large enough.
28695 * fe.h: Define In_Same_Source_Unit
28697 * osint.adb: Add pragma Warnings Off to suppress warnings
28698 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
28701 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
28703 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
28705 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
28707 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
28709 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
28711 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
28712 node. We now do generate them for gcc back end.
28714 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
28717 * sinput-c.adb: Fix bad name in header.
28718 Add pragma Warnings Off to suppress aliasing warning.
28720 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
28722 * snames.h, snames.ads, snames.adb: Add entry for pragma
28723 No_Strict_Aliasing.
28725 2004-03-05 Vincent Celier <celier@gnat.com>
28727 * prj-com.ads: Add hash table Files_Htable to check when a file name
28728 is already a source of another project.
28730 * prj-nmsc.adb (Record_Source): Before recording a new source, check
28731 if its file name is not already a source of another project. Report an
28734 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
28735 source file name, call gnatpp with all the sources of the main project.
28737 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
28740 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
28741 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
28742 /RUNTIME_SYSTEM=, converted to --RTS=
28743 /NOTABS, converted to -notabs
28745 2004-03-05 Pascal Obry <obry@gnat.com>
28747 * make.adb: Minor reformatting.
28749 2004-03-05 Ed Schonberg <schonberg@gnat.com>
28751 Part of implemention of AI-262.
28752 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
28754 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
28757 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
28758 when component type is a partially constrained class-wide subtype.
28759 (Constrain_Discriminated_Type): If parent type has unknown
28760 discriminants, a constraint is illegal, even if full view has
28762 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
28763 with unknown discriminants whose full view is a discriminated record.
28765 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
28766 flag, to handle properly derivations of tagged types with unknown
28768 (Analyze_Package_Spec, Analyze_Package_Body): Install
28769 Private_With_Clauses before analyzing private part or body.
28771 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
28772 Has_Discriminants can be true for a given type (documentation).
28774 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
28776 * s-restri.ads: Fix license (GPL->GMGPL).
28778 * s-tassta.adb: Minor reformatting.
28780 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28781 by calls to Exit_One_ATC_Level, since additional clean up is performed
28784 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28785 by calls to Exit_One_ATC_Level, since additional clean up is performed
28788 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28790 * trans.c: Reflect GCC changes to fix bootstrap problem.
28791 Add warning for suspicious aliasing unchecked conversion.
28793 2004-03-05 GNAT Script <nobody@gnat.com>
28795 * Make-lang.in: Makefile automatically updated
28797 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
28799 * ali.adb (Read_Instantiation_Instance): Do not modify the
28800 current_file_num when reading information about instantiations, since
28801 this corrupts files in later references.
28803 2004-03-02 Vincent Celier <celier@gnat.com>
28805 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
28806 before checking if it is read-only.
28808 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
28809 of SRC_DIRS and eliminate duplicates.
28811 * gprcmd.adb: Replace command "path" with command "path_sep" to return
28812 the path separator.
28813 (Usage): Document path_sep
28815 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
28816 C++ compiler. No need for a script.
28817 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
28818 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
28821 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
28822 where there are Ada sources.
28823 (Set_Ada_Paths): Only add to the include path the source dirs of project
28825 (Add_To_Path): Add the Display_Values of the directories, not their
28828 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
28831 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
28833 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
28834 Value is canonicalized.
28835 (Language_Independent_Check): Do not copy Value to Display_Value when
28836 canonicalizing Value.
28838 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
28839 path to find limited with cycles.
28840 (Parse_Single_Project): Use canonical cased path to find the end of a
28843 2004-03-02 Ed Schonberg <schonberg@gnat.com>
28845 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
28846 and not a child unit.
28848 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
28849 appear in a with_clause.
28851 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
28852 only happen in type_annotate mode, do not try to elaborate it.
28854 * exp_util.adb (Force_Evaluation): If expression is a selected
28855 component on the left of an assignment, use a renaming rather than a
28856 temporary to remove side effects.
28858 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
28859 inlined instance body, which is analyzed before the end of the
28862 2004-03-02 Robert Dewar <dewar@gnat.com>
28864 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
28865 sem_ch4.adb: Use new feature for substitution of keywords in VMS
28867 * errout.ads, errout.adb: Implement new circuit for substitution of
28870 * sem_case.adb (Analyze_Choices): Place message properly when case is
28871 a subtype reference rather than an explicit range.
28873 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
28875 2004-03-02 Doug Rupp <rupp@gnat.com>
28877 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
28879 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
28881 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
28883 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28885 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
28888 2004-02-25 Robert Dewar <dewar@gnat.com>
28890 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28891 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
28892 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
28893 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
28894 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
28895 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
28896 the defining instance of the type to avoid aliasing problems.
28897 Fix copyright header. Fix bad comments in package header.
28899 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
28901 2004-02-25 Ed Schonberg <schonberg@gnat.com>
28903 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
28904 rewritten as references when aliased through an address clause.
28906 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
28907 whether call can be interpreted as an indirect call to the result of a
28908 parameterless function call returning an access subprogram.
28910 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
28913 * exp_ch7.adb (Make_Clean): Remove generation of calls to
28914 Unlock[_Entries], since this is now done by Service_Entries directly.
28916 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
28918 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
28919 Requeue_Call for better code readability. Change spec and update calls:
28920 PO_Service_Entries now unlock the PO on exit.
28921 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
28922 PO_Service_Entries.
28924 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
28926 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
28928 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
28930 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
28931 protected subprogram call and analyzing the result of such expanding
28932 in case when the called protected subprogram is eliminated.
28934 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
28937 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
28939 * Makefile.in: Clean ups.
28941 2004-02-23 Ed Schonberg <schonberg@gnat.com>
28943 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
28944 protected operations if original subprogram is flagged as eliminated.
28945 (Expand_N_Subprogram_Body): For a protected operation, create
28946 discriminals for next operation before checking whether the operation
28949 * exp_ch9.adb (Expand_N_Protected_Body,
28950 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
28951 for internal protected operations if the original subprogram is
28954 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
28955 declared in a single protected object.
28957 2004-02-23 Vincent Celier <celier@gnat.com>
28959 * prj-attr.adb: Make attribute Builder'Executable an associative array,
28960 case insensitive if file names are case insensitive, instead of a
28961 standard associative array.
28963 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
28964 them as case insensitive on platforms where the file names are case
28967 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
28968 project file has already been parsed that canonical path are compared.
28970 2004-02-23 Robert Dewar <dewar@gnat.com>
28972 * sinput-c.ads: Correct bad unit title in header
28974 * freeze.adb: Minor reformatting
28976 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28978 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
28979 nonaddressable COMPONENT_REF that is removing padding that we are
28980 taking the address of, take the address of the padded record instead
28981 if item is variable size.
28983 2004-02-20 Robert Dewar <dewar@gnat.com>
28985 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
28987 2004-02-20 Ed Schonberg <schonberg@gnat.com>
28989 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
28990 itype references for the constrained designated type of a component
28991 whose base type is already frozen.
28993 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
28995 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
28996 avoid GCC warnings.
28998 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
29000 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
29001 identifier for a phantom package that rewrites the formal package
29002 declaration with a box. The Add semantic decorations for the defining
29003 identifier from the original node (that represents the formal package).
29005 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
29007 * Make-lang.in (ada/stamp-sdefault): Use the top level
29010 2004-02-19 Richard Henderson <rth@redhat.com>
29012 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
29014 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
29016 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
29017 Scan_ALI can be used for multiple ALI files without reinitializing
29020 2004-02-18 Robert Dewar <dewar@gnat.com>
29022 * debug.adb: Minor reformatting.
29024 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29026 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
29027 to zero if there is an address clause.
29029 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
29031 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
29033 2004-02-18 Gary Dismukes <dismukes@gnat.com>
29035 * layout.adb (Layout_Component_List): Revise generation of call to
29036 discriminant-checking function to pass selections of all of the type's
29037 discriminants rather than just the variant-controlling discriminant.
29039 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
29041 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
29042 fail in the current setup and triggers spurious system error messages.
29043 Pretend it occurred and failed instead.
29045 2004-02-18 Vincent Celier <celier@gnat.com>
29047 * bld.adb: Mark FLDFLAGS as saved
29048 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
29049 it is not the root project. Put each directory to be
29050 extended between double quotes to prevent it to be expanded on Windows.
29051 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
29052 the project file. Set them back to their initial values if they have not
29053 been set in the project file.
29055 * gprcmd.adb: (Gprdebug, Debug): New global variables
29056 (Display_Command): New procedure
29057 (Usage): Document new command "linkopts"
29058 Call Display_Command when env var GPRDEBUG has the value "TRUE"
29059 Implement new command "linkopts"
29060 Remove quotes that may be around arguments for "extend"
29061 Always call Normalize_Pathname with arguments formatted for the platform
29063 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
29064 Change @echo to @$(display) in target clean to be able to clean silently
29066 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
29068 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
29071 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
29072 = Extending_All when current project is an extending all project.
29074 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
29075 set to True only for LINK command, after Unix switch -o.
29076 (Process_Arguments): Set Output_File_Expected to True for LINK command
29077 after Unix switch -o. When Output_File_Expected is True, never add an
29078 extension to a file name.
29080 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
29081 option file name, only to the --for-linker= switch.
29082 (Option_File_Name): If option file name do not end with ".opt", append
29085 2004-02-18 GNAT Script <nobody@gnat.com>
29087 * Make-lang.in: Makefile automatically updated
29089 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
29091 * Make-lang.in (stamp-sdefault): Do not depend on
29094 2004-02-12 Zack Weinberg <zack@codesourcery.com>
29096 * config-lang.in: Disable Ada by default until probe logic for
29097 a bootstrap Ada compiler can be moved to the top level configure
29100 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
29102 * decl.c (components_to_record): Don't claim that the internal fields
29103 we make to hold the variant parts are semantically addressable, because
29106 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
29107 adjust the comment describing the modular type form when we can use it.
29108 (Install_PAT): Account for the Esiz renaming.
29110 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
29111 sc_onstack context indication before raising the exception to which
29112 the signal is mapped. Allows better handling of later signals possibly
29113 triggered by the resumed user code if the exception is handled.
29115 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
29117 * 5zinit.adb: Removed, no longer used.
29119 2004-02-12 Robert Dewar <dewar@gnat.com>
29121 * ali.adb: Remove separating space between parameters on R line. Makes
29122 format consistent with format used by the binder for Set_Globals call.
29124 * atree.ads, atree.adb: Minor reformatting (new function header format)
29126 * bindgen.adb: Add Run-Time Globals documentation section containing
29127 detailed documentation of the globals passed from the binder file to
29130 * gnatls.adb: Minor reformatting
29132 * init.c (__gnat_set_globals): Add note pointing to documentation in
29135 * lib-writ.ads, lib-writ.adb: Remove separating space between
29136 parameters on R line.
29137 Makes format consistent with format used by the binder for Set_Globals
29140 * osint.ads: Add 2004 to copyright notice
29143 * snames.ads: Correct capitalization of FIFO_Within_Priorities
29144 Noticed during code reading, documentation issue only
29146 * usage.adb: Remove junk line for obsolete C switch
29147 Noticed during code reading
29149 2004-02-12 Vincent Celier <celier@gnat.com>
29151 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
29152 extend for each directory, so that multiple /** directories are
29153 extended individually.
29154 (Recursive_Process): Set the default for LANGUAGES to ada
29156 * gprcmd.adb: Define new command "ignore", to do nothing.
29157 Implement new comment "path".
29159 * Makefile.generic: Suppress output when SILENT is set
29160 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
29161 used, so that the correct compiler is invoked.
29162 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
29163 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
29165 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
29167 * Makefile.in: Clean ups and remove obsolete targets.
29169 2004-02-12 Ed Schonberg <schonberg@gnat.com>
29171 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
29172 predicate declared in exp_util.
29174 * exp_util.adb: Add comments.
29176 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
29177 visibility before compiling context of the subunit.
29179 * sem_res.adb (Check_Parameterless_Call): If the context expects a
29180 value but the name is a procedure, do not attempt to analyze as a call,
29181 in order to obtain more telling diagnostics.
29183 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
29184 'Access on parameterless function calls.
29185 (Normalize_Actuals): For a parameterless function call with missing
29186 actuals, defer diagnostic until resolution of enclosing call.
29188 * sem_util.adb (Wrong_Type): If the context type is an access to
29189 subprogram and the expression is a procedure name, suggest a missing
29192 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
29193 Nathanael Nerode <neroden@gcc.gnu.org>
29197 Merge with libada-branch:
29198 * config-lang.in: Build libada only when ada is built.
29200 2004-02-09 Ed Schonberg <schonberg@gnat.com>
29202 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
29203 for a tagged type, verify that both formals have the same type.
29205 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
29206 temporary when the formal is an in-parameter and the actual a possibly
29209 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
29210 when expansion is disabled, to ensure proper name capture with
29211 overloaded literals. Condition can be of any boolean type, resolve
29214 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
29215 renaming is for a formal subprogram with a default operator name, and
29216 there is a usable operator that is visible at the point of
29219 2004-02-09 Robert Dewar <dewar@gnat.com>
29221 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
29222 rewrite to ignore errors in ali files, intended to allow tools downward
29223 compatibility with new versions of ali files.
29225 * ali.ads: Add new parameter Ignore_Errors
29227 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
29228 duplicating the error message giving the file with restrictions.
29230 * debug.adb: Add debug flag I for gnatbind
29232 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
29233 operators for the case where the operator is a defining operator.
29235 * exp_ch3.adb: Minor reformatting (new function spec format).
29237 * exp_ch4.adb: Add comment for previous change, and make minor
29238 adjustment to loop to always check for improper loop termination.
29239 Minor reformatting throughout (new function spec format).
29241 * gnatbind.adb: Implement -di debug flag for gnatbind
29243 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
29245 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
29247 * lib-load.adb: Fix bad assertion.
29248 Found by testing and code reading.
29249 Minor reformatting.
29251 * lib-load.ads: Minor reformatting.
29253 * lib-writ.adb: There is only one R line now.
29255 * lib-writ.ads: Add documentation on making downward compatible changes
29256 to ali files so old tools work with new ali files.
29257 There is only one R line now.
29258 Add documentation on format incompatibilities (with special GPS note)
29260 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
29262 * par-load.adb: Minor reformatting
29264 * sem_ch8.adb: Fix to error message from last update
29265 Minor reformatting and restructuring of code from last update
29267 * par-prag.adb, snames.adb, snames.ads, snames.h,
29268 sem_prag.adb: Implement pragma Profile.
29270 * stylesw.adb: Implement -gnatyN switch to turn off all style check
29273 * usage.adb: Add line for -gnatyN switch
29275 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
29277 2004-02-09 Albert Lee <lee@gnat.com>
29279 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
29281 2004-02-09 Ed Schonberg <schonberg@gnat.com>
29283 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
29286 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
29287 is nested in an instance that is not frozen yet, to avoid
29288 order-of-elaboration problems in gigi.
29290 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
29291 body the attribute is legal.
29293 2004-02-09 Robert Dewar <dewar@gnat.com>
29295 * s-rident.ads: Minor comment correction
29297 * targparm.adb: Remove dependence on uintp completely. There was
29298 always a bug in Make in that it called Targparm before initializing
29299 the Uint package. The old code appeared to get away with this, but
29300 the new code did not! This caused an assertion error in gnatmake.
29302 * targparm.ads: Fix bad comment, restriction pragmas with parameters
29303 are indeed fully supported.
29305 2004-02-06 Alan Modra <amodra@bigpond.net.au>
29307 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
29309 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
29311 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
29312 with targetm.calls.promote_prototypes.
29314 2004-02-04 Robert Dewar <dewar@gnat.com>
29316 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
29317 ali.ads, gprcmd.adb: Minor reformatting
29319 * bindgen.adb: Output restrictions string for new style restrictions
29322 * impunit.adb: Add s-rident.ads (System.Rident) and
29323 s-restri (System.Restrictions)
29325 * lib-writ.adb: Fix bug in writing restrictions string (last few
29328 * s-restri.ads, s-restri.adb: Change name Restrictions to
29329 Run_Time_Restrictions to avoid conflict with package name.
29330 Add circuit to read and acquire run time restrictions.
29332 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
29334 * restrict.ads, restrict.adb: Use the new restriction
29335 No_Task_Attributes_Package instead of the old No_Task_Attributes.
29337 * sem_prag.adb: No_Task_Attributes is a synonym of
29338 No_Task_Attributes_Package.
29340 * snames.ads, snames.adb: New entry for proper handling of
29341 No_Task_Attributes.
29343 * s-rident.ads: Adding restriction No_Task_Attributes_Package
29344 (AI-00249) that supersedes the GNAT specific restriction
29345 No_Task_Attributes.
29347 2004-02-04 Ed Schonberg <schonberg@gnat.com>
29350 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
29351 body, an identifier may be wrapped in an unchecked conversion.
29353 2004-02-04 Vincent Celier <celier@gnat.com>
29355 * lib-writ.ads: Comment update for the W lines
29357 * bld.adb: (Expression): An empty string list is static
29359 * fname-uf.adb: Minor comment update
29361 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
29363 * gnatbind.adb: Initialize Cumulative_Restrictions with the
29364 restrictions on the target.
29366 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
29368 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
29371 2004-02-02 Arnaud Charlet <charlet@gnat.com>
29373 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
29375 2004-02-02 Vincent Celier <celier@gnat.com>
29377 * gprcmd.adb (Check_Args): If condition is false, print the invoked
29378 comment before the usage.
29379 Gprcmd: Fail when command is not recognized.
29380 (Usage): Document command "prefix"
29382 * g-md5.adb (Digest): Process last block.
29383 (Update): Do not process last block. Store remaining characters and
29386 * g-md5.ads (Update): Document that several call to update are
29387 equivalent to one call with the concatenated string.
29388 (Context): Add fields to allow new Update behaviour.
29390 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
29391 defaulted to False.
29392 When May_Fail is True and no existing file can be found, return No_File.
29394 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
29397 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
29398 spec file name instead on the W line.
29400 2004-02-02 Robert Dewar <dewar@gnat.com>
29402 * ali.adb: Read and acquire info from new format restrictions lines
29404 * bcheck.adb: Add circuits for checking restrictions with parameters
29406 * bindgen.adb: Output dummy restrictions data
29407 To be changed later
29409 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
29410 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
29411 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
29412 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
29413 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
29415 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
29416 the warning message on access to possibly uninitialized variable S)
29417 Minor changes for new restrictions handling.
29419 * gnatbind.adb: Minor reformatting
29420 Minor changes for new restrictions handling
29421 Move circuit for -r processing here from bcheck (cleaner)
29423 * gnatcmd.adb, gnatlink.adb: Minor reformatting
29425 * lib-writ.adb: Output new format restrictions lines
29427 * lib-writ.ads: Document new R format lines for new restrictions
29430 * s-restri.ads/adb: New files
29432 * Makefile.rtl: Add entry for s-restri.ads/adb
29434 * par-ch3.adb: Fix bad error messages starting with upper case letter
29437 * restrict.adb: Major rewrite throughout for new restrictions handling
29438 Major point is to handle restrictions with parameters
29440 * restrict.ads: Major changes in interface to handle restrictions with
29441 parameters. Also generally simplifies setting of restrictions.
29443 * snames.ads/adb: New entry for proper handling of No_Requeue
29445 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
29446 restriction counting.
29447 Other minor changes for new restrictions handling
29449 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
29450 Restriction_Warnings now allows full parameter notation
29451 Major rewrite of Restrictions for new restrictions handling
29453 2004-02-02 Javier Miranda <miranda@gnat.com>
29455 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
29456 syntax rule for object renaming declarations.
29457 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
29458 component definitions.
29460 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
29462 (Array_Type_Declaration): Give support to access components. In addition
29463 it was also modified to reflect the name of the object in anonymous
29464 array types. The old code did not take into account that it is possible
29465 to have an unconstrained anonymous array with an initial value.
29466 (Check_Or_Process_Discriminants): Allow access discriminant in
29468 (Process_Discriminants): Allow access discriminant in non-limited types
29469 Initialize the new Access_Definition field in N_Object_Renaming_Decl
29470 node. Change Ada0Y to Ada 0Y in comments
29472 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
29473 equality operators.
29474 Change Ada0Y to Ada 0Y in comments
29476 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
29477 renamings Change Ada0Y to Ada 0Y in comments
29479 * sem_type.adb (Find_Unique_Type): Give support to the equality
29480 operators for universal access types
29481 Change Ada0Y to Ada 0Y in comments
29483 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
29485 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
29487 (N_Object_Renaming_Declaration): Addition of Access_Definition field
29488 Change Ada0Y to Ada 0Y in comments
29490 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
29491 component definition and object renaming nodes
29492 Change Ada0Y to Ada 0Y in comments
29494 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
29496 * restrict.adb: Use the new restriction identifier
29497 No_Requeue_Statements instead of the old No_Requeue for defining the
29498 restricted profile.
29500 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
29501 No_Requeue_Statements.
29503 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
29504 that supersedes the GNAT specific restriction No_Requeue. The later is
29505 kept for backward compatibility.
29507 2004-02-02 Ed Schonberg <schonberg@gnat.com>
29509 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
29510 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
29511 pragma and fix incorrect ones.
29513 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
29514 warning if the pragma is redundant.
29516 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
29518 * 5staprop.adb: Add missing 'constant' keywords.
29520 * Makefile.in: use consistent value for SYMLIB on
29521 platforms where libaddr2line is supported.
29523 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29525 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
29528 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
29530 * init.c (__gnat_install_handler): Setup an alternate stack for signal
29531 handlers in the environment thread. This allows proper propagation of
29532 an exception on stack overflows in this thread even when the builtin
29533 ABI stack-checking scheme is used without support for a stack reserve
29536 * utils.c (create_field_decl): Augment the head comment about bitfield
29537 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
29538 here, because the former is not accurate enough at this point.
29539 Let finish_record_type decide instead.
29540 Don't make a bitfield if the field is to be addressable.
29541 Always set a size for the field if the record is packed, to ensure the
29542 checks for bitfield creation are triggered.
29543 (finish_record_type): During last pass over the fields, clear
29544 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
29545 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
29546 from DECL_BIT_FIELD.
29548 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
29550 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
29551 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
29552 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
29554 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29556 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
29558 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
29559 (ZCX_By_Default): Likewise.
29560 (Front_End_ZCX_Support): Likewise.
29562 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
29563 (Initialize_Lock): Mark Level unreferenced.
29564 (Sleep): Mark Reason unreferenced.
29565 (Timed_Sleep): Likewise.
29566 (Wakeup): Likewise.
29567 (Exit_Task): Use Result.
29568 (Check_No_Locks): Mark Self_ID unreferenced.
29570 * 5gtasinf.adb (New_Sproc): Make Attr constant.
29571 (Bound_Thread_Attributes): Make Sproc constant.
29572 (New_Bound_Thread_Attributes): Likewise.
29574 2004-01-26 Ed Schonberg <schonberg@gnat.com>
29576 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
29577 one-dimensional array an slice assignments, when component type is
29580 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
29581 component type is controlled, and control_actions are in effect, use
29582 TSS procedure rather than generating inline code.
29584 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
29585 arrays with controlled components.
29587 2004-01-26 Vincent Celier <celier@gnat.com>
29589 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
29590 command line for the non VMS case.
29592 * gnatlink.adb (Process_Binder_File): When building object file, if
29593 GNU linker is used, put all object paths between quotes, to prevent ld
29594 error when there are unusual characters (such as '!') in the paths.
29596 * Makefile.generic: When there are sources in Ada and the main is in
29597 C/C++, invoke gnatmake with -B, instead of -z.
29599 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
29600 from VMS_Conversion.
29601 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
29602 specification of argument file on the command line.
29604 2004-01-26 Bernard Banner <banner@gnat.com>
29606 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
29608 2004-01-26 Ed Schonberg <schonberg@gnat.com>
29610 * snames.adb: Update copyright notice.
29611 Add info on slice assignment for controlled arrays.
29613 2004-01-23 Robert Dewar <dewar@gnat.com>
29615 * exp_aggr.adb: Minor reformatting
29617 * exp_ch9.adb: Minor code clean up
29619 Fix bad character in comment
29622 * targparm.adb (Get_Target_Parameters): Give clean abort error on
29623 unexpected end of file, along with more detailed message.
29625 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29627 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
29630 * decl.c (copy_alias_set): New function.
29631 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
29633 2004-01-23 Doug Rupp <rupp@gnat.com>
29635 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
29636 lib$${file} in case subsequent character is not a separator.
29638 2004-01-23 Vincent Celier <celier@gnat.com>
29640 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
29641 when the GCC version is at least 3.
29643 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
29644 Remove all "Opt.", to prepare for opt split
29646 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
29647 Extends_All. Set to True when the project parsed is an extending all
29648 project. Fails for importing an extending all project only when the
29649 imported project is an extending all project.
29650 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
29651 depending on the value of Extends_All returned.
29653 * prj-proc.adb (Process): Check that no project shares its object
29654 directory with a project that extends it, directly or indirectly,
29655 including a virtual project.
29656 Check that no project extended by another project shares its object
29657 directory with another also extended project.
29659 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
29660 Kind = N_With_Clause
29662 * prj-tree.ads: Minor reformatting
29663 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
29665 2004-01-23 Ed Schonberg <schonberg@gnat.com>
29667 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
29668 applies to a type with an incomplete view, use full view in Name of
29669 clause, for consistency with uses of Get_Attribute_Definition_Clause.
29671 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
29673 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
29674 SCHED_RR, since other values are not supported by this policy.
29675 (Initialize): Move initialization of mutex attribute to package
29676 elaboration, to prevent early access to this variable.
29678 * Makefile.in: Remove mention of Makefile.adalib, unused.
29680 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
29681 1ssecsta.ads: Removed, unused.
29683 2004-01-21 Javier Miranda <miranda@gnat.com>
29685 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
29686 entity if already built in the current scope.
29688 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
29689 reminder in internal scopes. Required for nested limited aggregates.
29691 2004-01-21 Doug Rupp <rupp@gnat.com>
29693 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
29694 VMS. Replace all occurences of libgnat- and libgnarl- with
29695 libgnat$(hyphen) and libgnarl$(hyphen).
29696 Fixed shared library build problem on VMS.
29698 2004-01-21 Robert Dewar <dewar@gnat.com>
29700 * mlib-prj.adb: Minor reformatting
29702 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
29704 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
29705 'constant' keywords for declaration of pointers that are not modified.
29707 * exp_pakd.adb: Fix English in comment.
29709 2004-01-21 Ed Schonberg <schonberg@gnat.com>
29712 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
29713 copy all attributes of the parent, including the foreign language
29716 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
29719 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
29720 for 'delay until' statement.
29722 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
29724 * Make-lang.in: Replace $(docdir) with doc.
29725 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
29726 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
29727 to use consistent MAKEINFO rule.
29728 (ada.man, ada.srcman): Dummy entry.
29729 (ADA_INFOFILES): Define.
29730 (ada.info, ada.srcinfo): New rules.
29732 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
29734 * utils.c: Update copyright notice, missed in previous change.
29736 2004-01-19 Vincent Celier <celier@gnat.com>
29738 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
29739 args if Bind is True. Set First_ALI, if not already done.
29740 (Build_Library): For Stand Alone Libraries, extract from one ALI file
29741 an eventual --RTS switch, for gnatbind, and all backend switches +
29742 --RTS, for linking.
29744 2004-01-19 Robert Dewar <dewar@gnat.com>
29746 * sem_attr.adb, memtrack.adb: Minor reformatting
29748 2004-01-19 Ed Schonberg <schonberg@gnat.com>
29750 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
29751 that rename enumeration literals. This is properly done in sem_eval.
29753 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
29754 to functions that rename enumeration literals.
29756 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
29757 functions that rename enumeration literals.
29759 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
29761 * Make-lang.in (utils.o): Depend on target.h.
29762 * utils.c: Include target.h.
29763 (process_attributes): Use targetm.have_named_sections instead
29764 of ASM_OUTPUT_SECTION_NAME.
29766 2004-01-16 Andreas Jaeger <aj@suse.de>
29768 * Makefile.in: Add $(DESTDIR).
29770 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
29772 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
29773 also when not defining if a Size clause applies. That information is
29776 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
29778 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
29779 symbolic links for the shared gnat run time when needed.
29781 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
29783 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
29784 for writing, and terminate with an error message if not.
29786 2004-01-15 Ed Schonberg <schonberg@gnat.com>
29788 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
29789 warning on an access to subprogram in an instance, when the target
29790 type is declared in the same generic unit.
29791 (Eval_Attribute): If 'access is known to fail accessibility check,
29792 rewrite as a raise statement.
29794 2004-01-15 GNAT Script <nobody@gnat.com>
29796 * Make-lang.in: Makefile automatically updated
29798 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
29800 * Make-lang.in (ada.srcextra): Dummy entry.
29802 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
29804 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
29806 2004-01-13 Ed Schonberg <schonberg@gnat.com>
29808 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
29809 components that are initialized with aggregates.
29811 2004-01-13 Vincent Celier <celier@gnat.com>
29813 * gnatlink.adb (Process_Binder_File): To find directory of shared
29814 libgcc, if "gcc-lib" is not a subdirectory, look for the last
29815 subdirectory "lib" in the path of the shared libgnat or libgnarl.
29817 * make.adb (Gnatmake): If GCC version is at least 3, link with
29818 -shared-libgcc, when there is at least one shared library project.
29820 * opt.ads (GCC_Version): New integer constant.
29822 * adaint.c (get_gcc_version): New function.
29824 2004-01-13 Robert Dewar <dewar@gnat.com>
29826 * sem_dist.adb, sem_res.adb, sem_util.adb,
29827 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
29828 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
29830 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
29832 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
29833 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
29836 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
29838 * misc.c: Remove trailing spaces.
29839 Update copyright notice missed in previous change.
29842 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
29845 * Makefile.generic: Update copyright.
29846 Add license notice.
29848 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
29849 of prefix/share/make.
29851 * Makefile.prolog: Update copyright.
29852 Add license notice.
29854 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
29856 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
29857 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
29858 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
29861 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
29864 2004-01-12 Javier Miranda <miranda@gnat.com>
29866 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
29867 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
29868 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
29869 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
29870 Component_Definition node.
29872 2004-01-12 Ed Falis <falis@gnat.com>
29874 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
29876 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
29878 * link.c: Change default libgnat kind to STATIC for FreeBSD.
29880 2004-01-12 Bernard Banner <banner@gnat.com>
29882 * Makefile.in: map 86numaux to a-numaux for x86_64
29884 2004-01-12 Ed Schonberg <schonberg@gnat.com>
29886 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
29887 generated to rename a generic actual, go to the actual itself, the
29888 subtype is not a user-visible entity.
29890 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
29891 part is a private subtype, reset the visibility of its full view, if
29892 any, to be consistent.
29895 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
29896 to use a generic package G as a formal package for another generic
29899 2004-01-12 Robert Dewar <dewar@gnat.com>
29901 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
29903 * usage.adb: Remove mention of obsolete -gnatwb switch
29904 Noticed during code reading
29906 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
29908 * 1ssecsta.adb: Minor changes for -gnatwa warnings
29910 2004-01-12 GNAT Script <nobody@gnat.com>
29912 * Make-lang.in: Makefile automatically updated
29914 2004-01-09 Mark Mitchell <mark@codesourcery.com>
29916 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
29918 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29920 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
29922 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
29924 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
29925 Update comment and copyright date.
29926 * stamp-xgnatug: Delete.
29928 2004-01-05 Robert Dewar <dewar@gnat.com>
29930 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
29931 be modified by the binder generated main program if the -D switch is
29934 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
29935 imported functions (since now we expect this to be done for imported
29938 * 5vtaprop.adb: Add several ??? for sections requiring more comments
29939 Minor reformatting throughout
29941 * 5zinit.adb: Minor reformatting
29942 Add 2004 to copyright date
29943 Minor changes to avoid -gnatwa warnings
29944 Correct some instances of using OR instead of OR ELSE (noted while
29945 doing reformatting)
29947 * sprint.adb: Minor updates to avoid -gnatwa warnings
29949 * s-secsta.ads, s-secsta.adb:
29950 (SS_Get_Max): New function to obtain high water mark for ss stack
29951 Default_Secondary_Stack is not a constant since it may be modified by
29952 the binder generated main program if the -D switch is used.
29954 * switch-b.adb: New -Dnnn switch for binder
29957 Make -gnatg imply all warnings currently in -gnatwa
29959 * vms_conv.adb: Minor reformatting
29960 Add 2004 to copyright notice
29961 Add 2004 to printed copyright notice
29963 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
29964 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
29965 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
29966 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
29967 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
29968 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
29969 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
29970 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
29971 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
29972 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
29973 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
29974 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
29975 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
29976 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
29977 checks.adb, clean.adb, cstand.adb, einfo.ads,
29978 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
29979 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
29980 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
29981 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
29982 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
29983 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
29984 Minor reformatting and code clean ups.
29985 Minor changes to prevent -gnatwa warnings
29987 * ali.adb: Minor reformatting and cleanup of code
29988 Acquire new SS indication of secondary stack use from ali files
29990 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
29991 (since now we expect this to be done for imported functions)
29993 * bindgen.adb: Generate call to modify default secondary stack size if
29996 * bindusg.adb: Add line for new -D switch
29998 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
29999 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
30000 Add circuitry for both records and arrays to avoid gigi
30001 processing if the type involved has non-bit-aligned components
30003 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
30004 N_String_Literal node always references an E_String_Literal_Subtype
30005 entity. This may not be true in the future.
30006 (Possible_Bit_Aligned_Component): Move processing of
30007 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
30009 * exp_ch6.adb (Expand_Thread_Body): Pick up
30010 Default_Secondary_Stack_Size as variable so that we get value modified
30011 by possible -Dnnn binder parameter.
30013 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
30014 (Type_May_Have_Bit_Aligned_Components): New function.
30016 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
30017 (Type_May_Have_Bit_Aligned_Components): New function.
30019 * fe.h: (Set_Identifier_Casing): Fix prototype.
30020 Add declaration for Sem_Elim.Eliminate_Error_Msg.
30021 Minor reformatting.
30023 * freeze.adb (Freeze_Entity): Add RM reference to error message about
30024 importing constant atomic/volatile objects.
30025 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
30026 unless explicit Pure_Function pragma given, to avoid insidious bug of
30027 call to non-pure imported function getting eliminated.
30029 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
30030 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
30031 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
30032 Add 2004 to printed copyright notice
30034 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
30037 * Makefile.rtl: Add entry for g-sestin.o
30038 g-sestin.ads: New file.
30040 * mdll.adb: Minor changes to avoid -gnatwa warnings
30042 * mlib-tgt.adb: Minor reformatting
30044 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
30045 New switch Sec_Stack_Used (GNAT, GNATBIND)
30046 Make Default_Secondary_Stack_Size a variable instead of a constant,
30047 so that it can be modified by the new -Dnnn bind switch.
30049 * rtsfind.adb (Load_Fail): Give full error message in configurable
30050 run-time mode if all_errors mode is set. This was not done in the case
30051 of a file not found, which was an oversight.
30052 Note if secondary stack unit is used by compiler.
30054 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
30055 ineffective elaborate all pragmas on non-visible packages (this
30056 happened when a renamed subprogram was called). Now the elaborate all
30057 always goes on the package containing the renaming rather than the one
30058 containing the renamed subprogram.
30060 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
30061 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
30063 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
30064 has an Etype that references an E_String_Literal.
30065 (Eval_String_Literal): Avoid assumption that N_String_Literal node
30066 always references an E_String_Literal_Subtype entity. This may not
30067 be true in the future.
30069 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
30072 * sem_res.adb (Resolve): Specialize msg for function name used in proc
30075 2004-01-05 Ed Falis <falis@gnat.com>
30077 * g-debuti.adb: Replaced direct boolean operator with short-circuit
30080 2004-01-05 Vincent Celier <celier@gnat.com>
30082 * bld.adb: Minor comment updates
30083 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
30086 * make.adb (Gnatmake): Special process for files to compile/check when
30087 -B is specified. Fail when there are only foreign mains in attribute
30088 Main of the project file and -B is not specified. Do not skip bind/link
30089 steps when -B is specified.
30091 * makeusg.adb: Document new switch -B
30093 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
30095 * switch-m.adb: (Scan_Make_Switches): Process -B switch
30097 * vms_data.ads: Add new GNAT PRETTY qualifier
30098 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
30100 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30102 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
30105 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
30106 Set_Identifier_Casing.
30108 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
30109 has size that overflows.
30111 2004-01-05 Gary Dismukes <dismukes@gnat.com>
30113 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
30114 -gnatwa warning on static condition.
30116 2004-01-05 Doug Rupp <rupp@gnat.com>
30118 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
30120 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
30122 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
30123 all attributes, including read-only attribute.
30125 2004-01-05 Pascal Obry <obry@gnat.com>
30127 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
30128 library naming scheme.
30130 * mlib-prj.adb (Build_Library): Generate different names for the static
30131 or dynamic version of the GNAT runtime. This is needed to support the
30132 new shared library naming scheme.
30133 (Process_Binder_File): Add detection of shared library in binder file
30134 based on the new naming scheme.
30136 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
30137 scheme for the shared runtime libraries.
30140 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
30142 (install-gnatlib): Do not create symlinks for shared libraries.
30143 (gnatlib-shared-default): Idem.
30144 (gnatlib-shared-dual-win32): New target. Not used for now as the
30145 auto-import feature does not support arrays/records.
30146 (gnatlib-shared-win32): Do not create copy for the shared libraries.
30147 (gnatlib-shared-vms): Fix shared runtime libraries names.
30149 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
30150 dependent runtime shared library name.
30152 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
30154 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
30157 2004-01-05 Ed Schonberg <schonberg@gnat.com>
30159 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
30160 protected objects when allocator has a subtype indication, not a
30161 qualified expression. Note that qualified expressions may have to be
30162 checked when limited aggregates are implemented.
30164 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
30165 pure, emit warning.
30166 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
30167 subprogram is imported, remove warning.
30169 2004-01-05 Geert Bosch <bosch@gnat.com>
30171 * s-poosiz.adb: Update copyright notice.
30172 (Allocate): Use Task_Lock to protect against concurrent access.
30173 (Deallocate): Likewise.
30175 2004-01-05 Joel Brobecker <brobecker@gnat.com>
30177 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
30180 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
30182 * gnat_ug.texi: Force a CVS commit by updating copyright.
30183 * gnat_ug_vxw.texi: Regenerate.
30184 * gnat_ug_wnt.texi: Regenerate.
30185 * gnat_ug_vms.texi: Regenerate.
30186 * gnat_ug_unx.texi: Regenerate.
30188 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
30190 * trans.c: Remove uses of "register" specifier in
30191 declarations of local variables.
30193 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
30195 * stamp-xgnatug: New stamp file.
30196 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
30197 (ada/doctools/xgnatug): Add $(build_exeext).
30198 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
30199 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
30201 2003-12-17 Ed Falis <falis@gnat.com>
30203 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
30206 * a-exextr.adb: Add context clause for
30207 Ada.Exceptions.Last_Chance_Handler.
30209 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
30211 * cstand.adb (Create_Standard): Change the way how the declaration of
30212 the Duration type is created (making it the same way as it is for all
30213 the other standard types).
30215 2003-12-17 Robert Dewar <dewar@gnat.com>
30217 * s-crtl.ads: Fix header format
30218 Change Pure to Preelaborate
30220 2003-12-17 Ed Schonberg <schonberg@gnat.com>
30222 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
30223 the expression type only if it is declared in the current unit.
30225 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
30226 are universal and already analyzed, as can occur in constrained
30227 subcomponents that depend on discriminants, when one constraint is a
30230 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
30231 type Any_Fixed is legal as the argument of a conversion, if only one
30232 fixed-point type is in context.
30234 2003-12-17 GNAT Script <nobody@gnat.com>
30236 * Make-lang.in: Makefile automatically updated
30238 2003-12-15 Robert Dewar <dewar@gnat.com>
30240 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
30243 2003-12-15 Vincent Celier <celier@gnat.com>
30245 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
30246 (Gnatchop): Do not set failure status when reporting the number of
30249 2003-12-15 Doug Rupp <rupp@gnat.com>
30251 * s-ctrl.ads: New file.
30253 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
30255 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
30256 (GNATBIND_OBJS): Add ada/s-crtl.o.
30258 * Makefile.in [VMS]: Clean up ifeq rules.
30260 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
30261 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
30262 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
30263 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
30264 s-tasdeb.adb: Update copyright.
30265 Import System.CRTL.
30266 Make minor modifications to use System.CRTL declared functions instead
30267 of importing locally.
30269 2003-12-15 GNAT Script <nobody@gnat.com>
30271 * Make-lang.in: Makefile automatically updated
30273 2003-12-11 Ed Falis <falis@gnat.com>
30275 * 5zinit.adb: Clean up.
30277 * 5zintman.adb (Notify_Exception): replaced case statement with a call
30278 to __gnat_map_signal, imported from init.c to support
30279 signal -> exception mappings that depend on the vxWorks version.
30282 Created and exported __gnat_map_signal to support signal -> exception
30283 mapping that is dependent on the VxWorks version.
30284 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
30286 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
30288 * 5wosinte.ads: Link with -mthreads switch.
30290 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
30292 * init.c (__gnat_install_handler [NetBSD]): Set
30293 __gnat_handler_installed, as done on all other platforms.
30294 Remove duplicated code.
30296 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
30298 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
30300 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
30302 * sinfo.ads: Fix inconsistent example code in comment.
30304 2003-12-11 Robert Dewar <dewar@gnat.com>
30306 * a-tiinau.adb: Add a couple of comments
30308 * sem_ch3.adb: Minor reformatting
30311 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
30312 Minor reformatting throughout
30314 2003-12-11 Ed Schonberg <schonberg@gnat.com>
30316 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
30317 bounds of a loop, create a separate block in order to generate proper
30318 cleanup actions to prevent memory leaks.
30320 * sem_res.adb (Resolve_Call): After a call to
30321 Establish_Transient_Scope, the call may be rewritten and relocated, in
30322 which case no further processing is needed.
30324 * sem_util.adb: (Wrong_Type): Refine previous fix.
30325 Fixes ACATS regressions.
30328 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
30331 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
30333 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
30334 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
30337 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
30340 2003-12-08 Robert Dewar <dewar@gnat.com>
30342 * 7sintman.adb: Minor reformatting
30344 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
30345 standard linker options to get standard libraries linked. We now plan
30346 to provide dummy versions of these libraries to match the appropriate
30347 configurable run-time (e.g. if a library is not needed at all, provide
30348 a dummy empty library).
30350 * targparm.ads: Configurable_Run_Time mode no longer affects linker
30351 options (-L parameters and standard libraries). What we plan to do is
30352 to provide dummy libraries where the libraries are not required.
30354 * gnatbind.adb: Minor comment improvement
30356 2003-12-08 Javier Miranda <miranda@gnat.com>
30358 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
30359 aggregate in the parent. Otherwise constants with limited aggregates
30360 are not supported. Add new formal to pass the component type (Ctype).
30361 It is required to call the corresponding IP subprogram in case of
30362 default initialized components.
30363 (Gen_Assign): In case of default-initialized component, generate a
30364 call to the IP subprogram associated with the component.
30365 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
30366 of aggregate with default initialized components.
30367 (Has_Default_Init_Comps): Improve implementation to recursively check
30368 all the present expressions.
30370 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
30371 to indicate that the initialization call corresponds to a
30372 default-initialized component of an aggregate.
30373 In case of default initialized aggregate with tasks this parameter is
30374 used to generate a null string (this is just a workaround that must be
30375 improved later). In case of discriminants, this parameter is used to
30376 generate a selected component node that gives access to the discriminant
30379 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
30380 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
30381 allocated aggregates with default-initialized components.
30383 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
30384 the box notation is used in positional aggregates.
30386 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
30388 * lib.ads: Fix typo in comment
30390 2003-12-08 Vincent Celier <celier@gnat.com>
30392 * prj.adb (Project_Empty): New component Unkept_Comments
30393 (Scan): Remove procedure; moved to Prj.Err.
30395 * prj.ads (Project_Data): New Boolean component Unkept_Comments
30396 (Scan): Remove procedure; moved to Prj.Err.
30398 * prj-dect.adb: Manage comments for the different declarations.
30400 * prj-part.adb (With_Record): New component Node
30401 (Parse): New Boolean parameter Store_Comments, defaulted to False.
30402 Set the scanner to return ends of line and comments as tokens, if
30403 Store_Comments is True.
30404 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
30405 comments are associated with these nodes. Store the node IDs in the
30407 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
30409 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
30410 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
30411 current project. Call Tree.Restore afterwards. Set the various nodes
30412 for comment storage (Next_End, End_Of_Line, Previous_Line,
30415 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
30416 defaulted to False.
30418 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
30419 to False. When Truncated is True, truncate the string, never go to the
30421 (Write_End_Of_Line_Comment): New procedure
30422 (Print): Process comments for nodes N_With_Clause,
30423 N_Package_Declaration, N_String_Type_Declaration,
30424 N_Attribute_Declaration, N_Typed_Variable_Declaration,
30425 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
30426 Process nodes N_Comment.
30428 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
30429 without comments and there are some comments, set the flag
30430 Unkept_Comments to True.
30431 (Scan): If there are comments, set the flag Unkept_Comments to True and
30432 clear the comments.
30433 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
30434 (Next_End_Nodes: New table
30435 (Comment_Zones_Of): New function
30436 (Scan): New procedure; moved from Prj. Accumulate comments in the
30437 Comments table and set end of line comments, comments after, after end
30439 (Add_Comments): New procedure
30440 (Save, Restore, Seset_State): New procedures
30441 (There_Are_Unkept_Comments): New function
30442 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
30443 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
30445 (First_Comment_After, First_Comment_After_End): New functions
30446 (First_Comment_Before, First_Comment_Before_End): New functions
30447 (Next_Comment): New function
30448 (End_Of_Line_Comment, Follows_Empty_Line,
30449 Is_Followed_By_Empty_Line): New functions
30450 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
30451 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
30452 (Set_Next_Comment): New procedure
30453 (Default_Project_Node): Associate comment before if the node can store
30456 * scans.ads (Token_Type): New enumeration value Tok_Comment
30457 (Comment_Id): New global variable
30459 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
30460 defaulted to False.
30461 (Scan): Store position of start of comment. If comments are tokens, set
30462 Comment_Id and set Token to Tok_Comment when scanning a comment.
30463 (Set_Comment_As_Token): New procedure
30465 * sinput-p.adb: Update Copyright notice
30466 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
30467 that no longer exists.
30469 2003-12-08 Javier Miranda <miranda@gnat.com>
30471 * sem_aggr.adb: Add dependence on Exp_Tss package
30472 Correct typo in comment
30473 (Resolve_Aggregate): In case of array aggregates set the estimated
30474 type of the aggregate before calling resolve. This is needed to know
30475 the name of the corresponding IP in case of limited array aggregates.
30476 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
30477 in case of default initialized array components.
30479 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
30480 types. Required to give support to limited aggregates in generic
30483 2003-12-08 Ed Schonberg <schonberg@gnat.com>
30485 * sem_ch3.adb (Check_Initialization): For legality purposes, an
30486 inlined body functions like an instantiation.
30487 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
30488 until bounds are analyzed, to diagnose premature use of type.
30490 * sem_util.adb (Wrong_Type): Improve error message when the type of
30491 the expression is used prematurely.
30493 2003-12-08 GNAT Script <nobody@gnat.com>
30495 * Make-lang.in: Makefile automatically updated
30497 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
30499 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
30500 they are automatically generated by Make-lang.in and cause nothing but
30501 maintenance troubles.
30503 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
30505 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
30506 version of this unit).
30508 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
30510 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
30511 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
30512 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
30513 the body of System.Interrupt_Management common to several targets.
30514 Update copyright notice when appropriate.
30516 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
30519 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
30520 to ensure that the kernel fills in the interrupted context structure
30521 before calling a signal handler, which is necessary to be able to
30522 unwind past it. Update the copyright notice.
30524 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
30526 * a-elchha.ads: New file.
30528 * a-elchha.adb: New default last chance handler. Contents taken from
30529 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
30531 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
30532 is moved to a-elchha.adb to provide a target-independent default last
30535 * Makefile.rtl: Add a-elchha.o
30537 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
30539 2003-12-05 Ed Schonberg <schonberg@gnat.com>
30541 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
30542 declared in an instance, do not inline the call if the instance is not
30543 frozen yet, to prevent order of elaboration problems.
30545 * sem_prag.adb: Add comments for previous fix.
30547 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
30549 * g-table.adb: Use the right variable in Set_Item.
30550 Update copyright notice.
30552 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
30554 * Makefile.in: Remove unused rules.
30556 2003-12-05 Vincent Celier <celier@gnat.com>
30558 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
30559 -nostdlib. Not needed here after all.
30561 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
30564 * adaint.h, adaint.c, g-os_lib.ads:
30565 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
30566 on some platforms (including FreeBSD), it is a 64 bit value.
30567 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
30569 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
30571 * gnatvsn.ads (Library_Version): Now contain only the relevant
30573 (Verbose_Library_Version): New constant.
30575 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
30576 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
30577 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
30579 * gnatlbr.adb: Clean up: replace Library_Version by
30580 Verbose_Library_Version.
30582 * make.adb, lib-writ.adb, exp_attr.adb:
30583 Clean up: replace Library_Version by Verbose_Library_Version.
30585 * 5lintman.adb: Removed.
30588 Update and simplify computation of LIBRARY_VERSION.
30589 Fix computation of GSMATCH_VERSION.
30590 5lintman.adb is no longer used: replaced by 7sintman.adb.
30592 2003-12-03 Robert Dewar <dewar@gnat.com>
30595 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
30596 name. Modified to consider small non-bit-packed arrays as troublesome
30597 and in need of component-by-component assigment expansion.
30599 2003-12-03 Vincent Celier <celier@gnat.com>
30601 * lang-specs.h: Process nostdlib as nostdinc
30603 * back_end.adb: Update Copyright notice
30604 (Scan_Compiler_Arguments): Process -nostdlib directly.
30606 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
30609 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
30610 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
30611 included in HIE_NONE_TARGET_PAIRS.
30613 2003-12-03 Ed Schonberg <schonberg@gnat.com>
30616 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
30617 is legal in an instance, because legality is cheched in the template.
30620 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
30621 appplied to an unchecked conversion of a formal parameter.
30624 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
30627 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
30629 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
30630 routines. The second one is new functionality to deal with backtracing
30631 through signal handlers.
30632 (unwind): Split into the two separate subroutines above.
30633 Update the documentation, and deal properly with sizeof (REG) different
30634 from sizeof (void*).
30636 2003-12-01 Nicolas Setton <setton@act-europe.fr>
30638 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
30639 so that the debugger can reliably access the value of the parameter,
30640 and therefore is able to display the exception name when an exception
30641 breakpoint is reached.
30643 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
30645 * fmap.adb: Fix typo in warning message.
30647 * g-socket.ads, g-socket.adb: Make Free a visible instance of
30648 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
30650 2003-12-01 Vincent Celier <celier@gnat.com>
30652 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
30654 (Build_Library): Get the switches only if Default_Switches is declared
30657 2003-12-01 Ed Schonberg <schonberg@gnat.com>
30659 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
30660 actuals that are indexed components, reanalyze actual to ensure that
30661 packed array references are properly expanded.
30663 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
30664 attempted assignment to a discriminant.
30666 2003-12-01 Robert Dewar <dewar@gnat.com>
30668 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
30671 * switch-c.adb: Minor reformatting of comments
30673 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
30675 * Makefile.in: Clean ups.
30677 2003-12-01 GNAT Script <nobody@gnat.com>
30679 * Make-lang.in: Makefile automatically updated
30681 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
30683 * 5wsystem.ads: Disable zero cost exception, not ready yet.
30685 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
30687 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
30688 to force serialization.
30690 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
30692 * g-socket.ads, g-socket.adb:
30693 Clarify documentation of function Stream. Introduce a Free procedure
30694 to release the returned Stream once it becomes unused.
30696 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
30698 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
30700 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
30701 since NT 4 cannot handle timeout values that are too large,
30702 e.g. DWORD'Last - 1.
30704 2003-11-26 Ed Schonberg <schonberg@gnat.com>
30707 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
30708 in procedure calls and whose expansion must be deferred.
30710 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
30714 (Build_Derived_Array_Type): Create operator for unconstrained type
30715 if ancestor is unconstrained.
30717 2003-11-26 Vincent Celier <celier@gnat.com>
30719 * make.adb (Project_Object_Directory): New global variable
30720 (Change_To_Object_Directory): New procedure
30721 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
30722 of Change_Dir directly. Do not change working directory to object
30723 directory of main project after each compilation.
30724 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
30726 Change to object directory of main project before binding step.
30727 (Initialize): Initialize Project_Object_Directory to No_Project
30730 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
30731 binding a Stand-Alone Library.
30733 * output.adb: Update Copyright notice
30734 (Write_Char): Output buffer when full
30736 2003-11-26 Robert Dewar <dewar@gnat.com>
30738 * sem_ch13.adb: (Check_Size): Reset size if size is too small
30741 (Check_Size): Fix documentation to include bit-packed array case
30743 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
30745 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
30747 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
30749 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
30752 * utils.c (init_gigi_decls): Change name of built-in setjmp to
30753 __builtin_setjmp, since this is apparently needed by recent
30756 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30758 * adadecode.c: Only include ctype.h if not IN_GCC.
30759 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
30761 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
30764 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
30765 signals and interrupts.
30767 * 5zintman.ads: New File.
30769 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
30770 add exception signals to the set of unmasked signals.
30773 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
30774 between signals and interrupts.
30775 Add to Unblocked_Signal_Mask the set of signals that are in
30779 Adding a check to see whether the Interrupt_ID we want to unmask is in
30780 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
30781 reason is that the index type of the Keep_Unmasked array is not always
30782 Interrupt_ID; it may be a subtype of Interrupt_ID.
30784 2003-11-24 Gary Dismukes <dismukes@gnat.com>
30787 (Remove_Side_Effects): Condition constantness of object created for a
30788 an unchecked type conversion on the constantness of the expression
30789 to ensure the correct value for 'Constrained when passing components
30790 of view-converted class-wide objects.
30792 2003-11-24 Robert Dewar <dewar@gnat.com>
30794 * par-load.adb (Load): Improve handling of misspelled and missing units
30795 Removes several cases of compilation abandoned messages
30797 * lib.adb: (Remove_Unit): New procedure
30799 * lib.ads: (Remove_Unit): New procedure
30801 * lib-load.adb: Minor reformatting
30803 2003-11-24 Vincent Celier <celier@gnat.com>
30806 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
30807 (Marking_Label): Label to mark processed source files. Incremented for
30809 (Gnatmake): Increase Marking_Labet for each executable
30810 (Is_Marked): Compare against marking label
30811 (Mark): Mark with marking label
30813 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
30816 Move the declaration of the TSD for System.Threads to System.Soft_Links.
30819 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
30820 (rts-cert): build a single relocatable object for the run-time lib.
30823 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
30826 Use gnatls rather than gcc to obtain the location of GNAT RTL for
30829 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
30831 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
30832 can not use it as before (that is, as a variable) when dumping it into
30833 the tree file. Add a local variable to store the result of this
30834 function and to be used as the string to be written into the tree.
30836 * scn.adb (Initialize_Scanner): Add comments explaining the recent
30839 * sinput.adb (Source_First, Source_Last): In case of
30840 Internal_Source_File, replace returning attributes of
30841 Internal_Source_Ptr (which is wrong) with returning attributes of
30844 2003-11-24 Ed Schonberg <schonberg@gnat.com>
30847 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
30848 used for implicit concatenation operators.
30852 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
30853 task bodies that are in the scope of a Suppress pragma.
30854 (Check_A Call): Use the flag to prevent spurious elaboration checks.
30856 * sinfo.ads, sinfo.adb:
30857 New flag No_Elaboration_Check on function/procedure calls, to properly
30858 suppress checks on calls in task bodies that are within a local suppress
30862 (Expand_Concatenate_Other): Use the proper integer type for the
30863 expression for the upper bound, to avoid universal_integer computations
30866 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
30868 * .cvsignore: Delete.
30870 2003-11-21 Andreas Schwab <schwab@suse.de>
30872 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
30874 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
30876 * 5wsystem.ads: Enable zero cost exception.
30878 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
30880 * 5ztiitho.adb: Remove an unreferenced variable.
30882 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
30884 * adaint.c: For FreeBSD, use mkstemp.
30886 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
30888 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
30890 2003-11-21 Robert Dewar <dewar@gnat.com>
30892 * bld.adb: Remove useless USE of gnatvsn
30894 * gnatchop.adb: Minor reformatting
30895 Clean up version handling to be more consistent
30897 * gnatxref.adb: Minor reformatting
30899 * gprcmd.adb: Minor reformatting
30900 Fix output of copyright to be more consistent with other tools
30902 2003-11-21 Vincent Celier <celier@gnat.com>
30904 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
30906 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
30908 * atree.adb (Initialize): Add initializations for global variables
30909 used in New_Copy_Tree.
30911 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
30912 Internal_Source_File as the actual).
30913 Put the set of statements creating Any_Character before the set of
30914 statements creating Any_Array to have Any_Character fully initialized
30915 when it is used in creating Any_Array.
30917 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
30918 not call Scan in case if the actual is Internal_Source_File
30919 Add 2003 to copyright note.
30921 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
30922 processing Internal_Source_File.
30924 * types.ads: Add the constant Internal_Source_File representing the
30925 source buffer for artificial source-code-like strings created within
30926 the compiler (the definition of Source_File_Index is changed).
30928 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
30930 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
30931 56system.ads: New file, FreeBSD version.
30933 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
30935 * Make-lang.in (ada.extraclean): Delete.
30937 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
30939 * gnatmem.adb: Clean up verbose output.
30941 * gprcmd.adb: Change copyright to FSF.
30943 2003-11-19 Vincent Celier <celier@gnat.com>
30945 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
30946 and Version (ignored).
30948 * symbols.ads: (Policy): New type
30949 (Initialize): New parameter Reference, Symbol_Policy and
30951 Remove parameter Force.
30952 Minor reformatting.
30954 * snames.ads, snames.adbadb: New standard names
30955 Library_Reference_Symbol_File and Library_Symbol_Policy
30958 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
30962 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
30964 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
30966 * prj.adb: (Project_Empty): New component Symbol_Data
30968 * prj.ads: (Policy, Symbol_Record): New types
30969 (Project_Data): New component Symbol_Data
30972 New attributes Library_Symbol_File, Library_Symbol_Policy and
30973 Library_Reference_Symbol_File.
30976 (Ada_Check): When project is a Stand-Alone library project, process
30977 attribute Library_Symbol_File, Library_Symbol_Policy and
30978 Library_Reference_Symbol_File.
30980 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30981 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
30982 5sml-tgt.adb (Build_Dynamic_Library): New parameter
30983 Symbol_Data (ignored).
30985 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
30986 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
30987 functions Option_File_Name and Version_String. Set new options of
30988 gnatsym related to symbol file, symbol policy and reference symbol
30992 Extensive modifications to take into account the reference symbol file,
30993 the symbol policy, the library version and to put in the symbol file the
30994 minor and major IDs.
30996 * bld.adb (Process_Declarative_Items): Put second argument of
30997 gprcmd to_absolute between single quotes, to avoid problems with
31000 * bld-io.adb: Update Copyright notice.
31001 (Flush): Remove last character of a line, if it is a back slash, to
31002 avoid make problems.
31005 Implement new scheme with reference symbol file and symbol policy.
31007 * g-os_lib.ads: (Is_Directory): Clarify comment
31009 2003-11-19 Robert Dewar <dewar@gnat.com>
31011 * atree.adb: Move New_Copy_Tree global variables to head of package
31013 * errout.adb: Minor reformatting
31015 2003-11-19 Javier Miranda <miranda@gnat.com>
31017 * sem_ch4.adb: (Diagnose_Call): Improve error message.
31018 Add reference to Ada0Y (AI-50217)
31020 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
31021 sem_util.adb: Add reference to AI-50217
31023 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
31025 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
31027 * sem_aggr.adb: Complete documentation of AI-287 changes
31029 * par-ch4.adb: Document previous changes.
31031 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
31032 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
31035 * exp_aggr.adb: Add references to AI-287 in previous changes
31037 2003-11-19 Ed Schonberg <schonberg@gnat.com>
31040 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
31041 in the rewriting is the result of an inlined call.
31043 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
31044 parameter is a type conversion, use original node to construct the
31045 post-call assignment, because expression may have been rewritten, e.g.
31046 if it is a packed array.
31049 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
31050 body, just as it is in an instance.
31051 Categorization routines
31053 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
31054 Instantiate_Object): Set proper sloc reference for message on missing
31057 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
31059 * Makefile.in: Add FreeBSD libgnat pairs.
31061 * usage.adb: Fix typo in usage message.
31063 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
31065 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
31066 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
31067 pragma Thread_Body.
31068 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
31070 * s-thread.adb: This file is now a dummy implementation of
31073 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
31075 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
31077 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
31079 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31080 instanciation references in the parent type description.
31082 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31084 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
31086 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
31087 TYPE_PRECISION directly from esize.
31089 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
31092 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
31094 * init.c: Initialization routines for FreeBSD
31096 * link.c: Link info for FreeBSD
31098 * sysdep.c: Add the case of FreeBSD
31100 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
31102 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
31103 already called in System.Threads.
31105 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
31106 environment task, as it has been moved to System.Threads.Initialization.
31108 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
31110 * adaint.c (__gnatlib_install_locks): Only reference
31111 __gnat_install_locks on VMS, since other platforms can avoid using
31112 --enable-threads=gnat
31114 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31116 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
31118 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
31119 TYPE_PACKED_ARRAY_TYPE_P.
31120 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
31122 Part of PR ada/12806
31123 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
31124 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
31126 2003-11-17 Vincent Celier <celier@gnat.com>
31128 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
31130 Do not set exit status to Failure when Warning is True.
31131 (Gnatchop): Make errors "no compilation units found" and
31132 "no source files written" warnings only.
31134 * make.adb (Gnatmake): When using a project file, set
31135 Look_In_Primary_Dir to False.
31136 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
31137 and Local_Configuration_Pragmas in the project where they are declared
31138 not an extending project which might have inherited them.
31140 * osint.adb (Locate_File): If Name is already an absolute path, do not
31141 look for a directory.
31143 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
31144 -gnats (Check_Syntax) is used, issue only a warning, not an error.
31146 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
31147 in objects of type Variable_Value.
31149 * prj.ads: (Variable_Value): New component Project
31151 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
31152 is in a project extended by Project.
31154 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
31155 Project of Variable_Values to this new parameter value.
31156 (Expression): Set component Project of Variable_Values.
31157 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
31158 Set the component Project in array elements.
31160 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
31162 * errout.adb: (Initialize): Add initialization for error nodes.
31164 * sem_ch12.adb (Initialize): Add missing initializations for
31165 Exchanged_Views and Hidden_Entities.
31167 2003-11-17 Ed Schonberg <schonberg@gnat.com>
31169 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
31170 already instantiated tree for use in subsequent inlining.
31171 (Analyze_Associations, Instantiate_Formal_Subprogram,
31172 Instantiate_Object): improve error message for mismatch in
31175 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
31176 instantiations of subprograms declared in instances.
31178 2003-11-17 Javier Miranda <miranda@gnat.com>
31180 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
31181 executed only under the Extensions_Allowed flag.
31183 2003-11-17 Robert Dewar <dewar@gnat.com>
31185 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
31187 (Address_Image): Fix bug of returning 0x instead of 0x0
31188 Minor reformatting (function specs).
31190 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
31191 (missed case of 33-63)
31193 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
31195 * s-thread.adb: Add comments for pragma Restriction
31197 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
31198 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
31200 2003-11-17 Ed Falis <falis@gnat.com>
31202 * s-thread.adb: Added No_Tasking restriction for this implementation.
31204 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
31206 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31207 instanciation references in the parent type description.
31209 2003-11-17 GNAT Script <nobody@gnat.com>
31211 * Make-lang.in: Makefile automatically updated
31213 2003-11-16 Jason Merrill <jason@redhat.com>
31215 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
31216 and TAGS files that include them for each front end.
31218 2003-11-14 Andreas Jaeger <aj@suse.de>
31220 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
31221 is the canonical version.
31222 * misc.c (gnat_handle_option): Likewise.
31224 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
31226 * 5nsystem.ads: New file for x86_64-linux-gnu.
31228 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
31230 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
31232 * comperr.adb: Fix logic in previous change.
31234 2003-11-13 Vincent Celier <celier@gnat.com>
31236 * 5bml-tgt.adb (Build_Dynamic_Library): Use
31237 Osint.Include_Dir_Default_Prefix instead of
31238 Sdefault.Include_Dir_Default_Name.
31240 * gnatlbr.adb: Update Copyright notice
31241 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
31242 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
31243 instead of Sdefault.Object_Dir_Default_Name
31246 (Process_Binder_File): Never suppress the option following -Xlinker
31249 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
31250 Sdefault.Object_Dir_Default_Name.
31252 * osint.ads, osint.adb:
31253 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
31254 Minor reformatting.
31256 * vms_conv.ads: Minor reformating
31257 Remove GNAT STANDARD and GNAT PSTA
31260 Allow GNAT MAKE to have several files on the command line.
31261 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
31262 Sdefault.Object_Dir_Default_Name.
31264 Remove data for GNAT STANDARD
31267 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
31268 Remove data for GNAT STANDARD
31269 Remove options and documentation for -gnatwb/-gnatwB: these warning
31270 options no longer exist.
31272 2003-11-13 Ed Falis <falis@gnat.com>
31274 * 5zthrini.adb: (Init_RTS): Made visible
31277 (Register): Removed unnecessary call to taskVarGet that checked whether
31278 an ATSD was already set as a task var for the argument thread.
31281 Updated comment to reflect that this is a VxWorks version
31282 Added context clause for System.Threads.Initialization
31283 Added call to System.Threads.Initialization.Init_RTS
31285 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
31288 (Init_RTS): New procedure, for the initialization of the run-time lib.
31291 Remove dependancy on System.Init, so that this file can be used in the
31292 AE653 sequential run-time lib.
31294 2003-11-13 Robert Dewar <dewar@gnat.com>
31296 * bindgen.adb: Minor reformatting
31298 2003-11-13 Ed Schonberg <schonberg@gnat.com>
31301 (Apply_Discriminant_Check): Do no apply check if target type is derived
31302 from source type with no applicable constraint.
31305 (Ensure_System_Dependency): Do not apply the style checks that may have
31306 been specified for the main unit.
31309 (Find_Selected_Component): Further improvement in error message, with
31313 (Resolve): Handle properly the case of an illegal overloaded protected
31316 2003-11-13 Javier Miranda <miranda@gnat.com>
31319 (Has_Default_Init_Comps): New function to check the presence of
31320 default initialization in an aggregate.
31321 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
31322 extension aggregate of a limited record. In addition, a new formal
31323 was added to do not initialize the record controller (if any) during
31324 this recursive expansion of ancestors.
31325 (Init_Controller): Add support for limited record components.
31326 (Expand_Record_Aggregate): In case of default initialized components
31327 convert the aggregate into a set of assignments.
31329 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
31330 describing the new syntax.
31331 Nothing else needed to be done because this subprogram delegates part of
31332 its work to P_Precord_Or_Array_Component_Association.
31333 (P_Record_Or_Array_Component_Association): Give support to the new
31334 syntax for default initialization of components.
31337 (Resolve_Aggregate): Relax the strictness of the frontend in case of
31338 limited aggregates.
31339 (Resolve_Record_Aggregate): Give support to default initialized
31341 (Get_Value): In case of default initialized components, duplicate
31342 the corresponding default expression (from the record type
31343 declaration). In case of default initialization in the *others*
31344 choice, do not check that all components have the same type.
31345 (Resolve_Extension_Aggregate): Give support to limited extension
31349 (Check_Initialization): Relax the strictness of the front-end in case
31350 of aggregate and extension aggregates. This test is now done in
31351 Get_Value in a per-component manner.
31353 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
31354 expression corresponds to a limited aggregate. This test is now done
31357 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
31360 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
31361 present in an N_Component_Association node
31363 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
31365 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
31366 type-conformant entry only if they are homographs.
31368 2003-11-13 GNAT Script <nobody@gnat.com>
31370 * Make-lang.in: Makefile automatically updated
31372 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31374 * adadecode.c: Use <> form of include for ctype.h.
31375 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
31377 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31379 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
31380 Works around PR middle-end/6552.
31382 2003-11-10 Ed Falis <falis@gnat.com>
31384 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
31386 * 5zinit.adb: (Install_Handler): Moved back to spec
31387 (Install_Signal_Handlers): Deleted
31389 * 5zthrini.adb: Added context clause for System.Storage_Elements
31390 (Register): Only handles creation of taskVar; initialization moved to
31392 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
31393 Added declaration of environment task secondary stack and
31396 * s-thread.adb: Implement bodies for thread body processing
31399 Added comment identifying supported targets for pragma Thread_Body.
31401 2003-11-10 Pascal Obry <obry@gnat.com>
31403 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
31407 (Open): Properly check for string length before copying into the buffer.
31408 Raises Name_Error if buffer is too small. Note that this was a potential
31411 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
31413 * bindgen.adb, comperr.adb: Code clean ups.
31414 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
31416 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
31418 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
31420 2003-11-10 Vincent Celier <celier@gnat.com>
31423 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
31426 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
31428 * prj.adb: (Project_Empty): Add new boolean component Virtual
31430 * prj.ads: (Virtual_Prefix): New constant string
31431 (Project_Data): New boolean component Virtual
31433 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
31434 a library project is extended by a virtual extending project.
31437 Modifications throughout to implement extending-all project, including:
31438 (Virtual_Hash, Processed_Hash): New hash tables
31439 (Create_Virtual_Extending_Project): New procedure
31440 (Look_For_Virtual_Projects_For): New procedure
31443 (Process): After checking the projects, if main project is an
31444 extending-all project, set the object directory of all virtual extending
31445 project to the object directory of the main project.
31446 Adjust error message when a virtual extending project has the same
31447 object directory as an project being extended.
31448 (Recursive_Process): If name starts with the virtual prefix, set Virtual
31449 to True in the project data.
31452 (Default_Project_Node): Add new boolean component Extending_All
31453 (Is_Extending_All): New function
31454 (Set_Is_Extending_All): New procedure
31456 * prj-tree.ads: (Is_Extending_All): New function
31457 (Set_Is_Extending_All): New procedure
31458 (Project_Node_Record): New boolean component Extending_All
31460 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
31463 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
31465 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
31466 "gprcmd prefix" to define it.
31468 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
31470 * einfo.ads: Fix a typo and remove an extraneous word in comments.
31473 (Create_Dummy_Package_Unit): Set the scope of the entity for the
31474 created dummy package to Standard_Standard, not to itself, to
31475 defend other parts of the front-end against encoutering a cycle in
31479 (Analyze_With_Clause): When setting the entities for the successive
31480 N_Expanded_Names that constitute the name of a child unit, do not
31481 attempt to go further than Standard_Standard in the chain of scopes.
31482 This case arises from the placeholder units created by
31483 Create_Dummy_Package_Unit in the case of a with_clause for a
31484 nonexistent child unit.
31486 2003-11-10 Ed Schonberg <schonberg@gnat.com>
31489 (Expand_Thread_Body): Place subprogram on scope stack, so that new
31490 declarations are given the proper scope.
31493 (Check_Expr_Constants): Reject an expression that contains a constant
31494 created during expansion, and that appears after the object to which
31495 the address clause applies.
31497 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
31498 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
31499 that uses 'Range of a function call with controlled components, so
31500 that the function result can be finalized before starting the loop.
31503 (Find_Selected_Component): Improve error message when prefix is
31504 an implicit dereference of an incomplete type.
31506 2003-11-10 Robert Dewar <dewar@gnat.com>
31508 * opt.ads: New Print_Standard flag for -gnatS switch
31510 * sem_ch13.adb: Remove some additional checks for unaligned arrays
31512 * cstand.adb (Create_Standard): Print out package standard if -gnatS
31515 * debug.adb: Update doc for -gnatds to discuss relationship with new
31518 * sinfo.adb: Add new field Entity_Or_Associated_Node
31520 * sinfo.ads: Add new field Entity_Or_Associated_Node
31521 Update documentation for Associated_Node and Entity fields to clarify
31522 relationship and usage.
31525 (Write_Id): Properly process Associated_Node field in generic template
31528 Recognize new -gnatS switch for printing package Standard
31529 This replaces gnatpsta
31532 Add line for new -gnatS switch for printing package Standard
31533 This replaces gnatpsta
31535 2003-11-10 Andreas Jaeger <aj@suse.de>
31537 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
31540 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31542 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
31545 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31547 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
31550 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
31552 * sysdep.c: Add handling of cygwin.
31554 2003-11-10 GNAT Script <nobody@gnat.com>
31556 * Make-lang.in: Makefile automatically updated
31558 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31561 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
31562 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
31563 Replace GNAT_ROOT by GCC_ROOT.
31565 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
31567 2003-11-06 Zack Weinberg <zack@codesourcery.com>
31569 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
31570 and update for changed meaning of GET_MODE_BITSIZE.
31572 2003-11-04 Doug Rupp <rupp@gnat.com>
31574 * sysdep.c: Problem discovered during IA64 VMS port.
31575 [VMS] #include <unixio.h> to get proper prototypes.
31578 Issues discovered/problems fixed during IA64 VMS port.
31579 [VMS] #define _POSIX_EXIT for proper semantics.
31580 [VMS] #include <unixio.h> for proper prototypes.
31581 [VMS] (fork): #define IA64 version.
31582 (__gnat_os_exit): Remove unnecessary VMS specific code.
31584 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31586 Part of PR ada/12806
31587 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
31591 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
31594 * targtyps.c, decl.c, misc.c,
31595 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
31596 routines to work around change in FP sizing semantics in GCC.
31599 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
31601 * gigi.h: (enumerate_modes): New function.
31603 * Make-lang.in: (ada/misc.o): Add real.h.
31605 * misc.c: (enumerate_modes): New function.
31607 2003-11-04 Robert Dewar <dewar@gnat.com>
31609 * 3vtrasym.adb: Minor reformatting
31610 Use terminology encoded/decoded name, rather than C++ specific notion
31611 of mangling (this is the terminology used throughout GNAT).
31613 * einfo.h: Regenerated
31615 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
31618 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
31620 * par-prag.adb: Add dummy entry for Thread_Body pragma
31623 Add entries for System.Threads entities for thread body processing
31626 (Analyze_Pragma, Access attributes): Check these are not applied to a
31627 thread body, since this is not permitted
31629 * sem_prag.adb: Add processing for Thread_Body pragma.
31633 (Resolve_Call): Check for incorrect attempt to call a thread body
31634 procedure with a direct call.
31636 * snames.ads, snames.adb: Add entry for Thread_Body pragma
31637 Add names associated with thread body expansion
31639 * snames.h: Add entry for Thread_Body pragma
31641 * s-thread.adb: Add entries for thread body processing
31642 These are dummy bodies so far
31644 * s-thread.ads: Add documentation on thread body handling.
31645 Add entries for thread body processing.
31647 2003-11-04 Javier Miranda <miranda@gnat.com>
31650 (Build_Limited_Views): Return after posting an error in case of limited
31651 with_clause on subprograms, generics, instances or generic renamings
31652 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
31653 on subprograms, generics, instances or generic renamings
31655 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
31657 * raise.c (setup_to_install): Correct mistake in last revision; two
31658 arguments out of order.
31660 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
31661 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
31662 notice, missed in previous change.
31663 Remove trailing blanks and other style errors introduced in previous
31666 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
31668 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
31669 rid of the wrapper for a LJM type, ensuring we don't do that if the
31670 field is addressable. This avoids potential low level type view
31671 mismatches later on, for instance in a by-reference argument passing
31674 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31676 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
31677 aligned at byte boundary.
31679 2003-11-04 Joel Brobecker <brobecker@gnat.com>
31681 * decl.c (components_to_record): Do not delete the empty variants from
31682 the end of the union type.
31684 2003-11-04 Ed Schonberg <schonberg@gnat.com>
31686 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
31687 operation for a derived type, an explicit declaration may use a local
31688 subtype of Boolean.
31690 2003-11-04 Vincent Celier <celier@gnat.com>
31692 * make.adb (Gnatmake): Allow main sources on the command line with a
31693 library project when it is only for compilation (no binding or
31696 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31698 * Makefile.in: Remove many duplicate variables.
31700 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
31702 * Make-lang.in (dvi): Move targets to $(docobjdir).
31703 (gnat_ug_vms.dvi): Simplify rule and adjust target.
31704 (gnat_ug_wnt.dvi): Likewise.
31705 (gnat_ug_unx.dvi): Likewise.
31706 (gnat_ug_vxw.dvi): Likewise.
31707 (gnat_rm.dvi): Likewise.
31708 (gnat-style.dvi): Likewise.
31710 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
31712 * gigi.h: Missed commit from update for C90.
31714 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
31716 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
31718 2003-10-31 Andreas Schwab <schwab@suse.de>
31720 * raise.c (get_action_description_for): Fix typo in last change.
31722 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
31725 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
31726 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
31728 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
31730 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
31731 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
31732 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
31733 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
31734 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
31736 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
31739 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
31740 numbers when symbol name is too long.
31742 2003-10-30 Ed Falis <falis@gnat.com>
31744 * g-signal.ads, g-signal.adb: New files
31746 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
31748 * Makefile.rtl: Introduce GNAT.Signals
31750 2003-10-30 Robert Dewar <dewar@gnat.com>
31752 * freeze.adb: Minor reformatting
31754 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
31756 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
31757 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
31758 New handling of Id_Check parameter to improve recognition of keywords
31759 used as identifiers.
31760 Update copyright notice to include 2003
31762 2003-10-29 Robert Dewar <dewar@gnat.com>
31764 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
31765 sem_ch10.adb: Minor reformatting
31767 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
31768 (Expand_Assign_Record): Test right hand side for bit unaligned as well
31770 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
31772 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
31773 Support for TBK$SYMBOLIZE-based symbolic traceback.
31775 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
31778 Revert previous change, that did not work well when pragma No_Run_Time
31779 was used in conjunction with a run-time other than ZFP.
31781 2003-10-29 Vincent Celier <celier@gnat.com>
31784 (Gnatmake): When there are no Ada mains in attribute Main, disable the
31785 bind and link steps only is switch -z is not used.
31787 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
31789 * Makefile.generic: Remove duplicated setting of CC.
31791 * Makefile.prolog: Set CC to gcc by default, to override make's
31794 * einfo.h: Regenerated.
31796 2003-10-29 Ed Schonberg <schonberg@gnat.com>
31798 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
31799 current body, after compiling subunit.
31801 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
31802 when in deleted code, because gigi needs properly ordered freeze
31803 actions to annotate types.
31805 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
31806 prevent the premature freezing of record type that contains
31807 subcomponents with a private type that does not yet have a completion.
31809 2003-10-29 Javier Miranda <miranda@gnat.com>
31812 (Analyze_Package_Instantiation): Check that instances can not be used in
31813 limited with_clauses.
31816 (Analyze_Package_Renaming): Check that limited withed packages cannot
31817 be renamed. Improve text on error messages related to limited
31820 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
31822 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
31823 Update copyright notice.
31825 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
31826 (Install_Limited_Context_Clauses): New subprogram that isolates all the
31827 checks required for limited context_clauses and installs the limited
31829 (Install_Limited_Withed_Unit): Complete its documentation.
31830 (Analyze_Context): Check that limited with_clauses are only allowed in
31832 (Install_Context): Call Install_Limited_Context_Clauses after the
31833 parents have been installed.
31834 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
31835 package as 'From_With_Type'; this mark indicates that the limited view
31836 is installed. Used to check bad usages of limited with_clauses.
31837 (Build_Limited_Views): Do not add shadow entities to the scope's list
31838 of entities. Do not add real entities to the Non_Limited_Views chain.
31839 Improve error notification.
31840 (Remove_Context_Clauses): Remove context clauses in two phases:
31841 limited views first and regular views later (to maintain the
31843 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
31844 its visible entities.
31846 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
31848 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
31849 with any type that Is_Fixed_Point_Type.
31851 * sinfo.ads: Fix documentation for Associated_Node attribute.
31853 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
31855 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
31856 both '-gnatc' and '-gnatt' are specified.
31858 * atree.adb (Initialize): Add initialization for Node_Count (set to
31861 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31863 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
31864 do not consider as Pure.
31866 Part of implementation of function-at-a-time:
31868 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
31869 (tree_transform): Add new argument to build_component_ref.
31870 (tree_transform, case N_Assignment_Statement): Make and return an
31872 (tree_transform): If result IS_STMT, set flags and return it.
31873 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31875 * utils2.c (build_simple_component_ref, build_component_ref): Add new
31877 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
31878 (build_allocator): Likewise.
31880 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
31881 Add new arg to build_component_ref.
31882 (maybe_unconstrained_array, unchecked_convert): Likewise.
31884 * ada-tree.def (EXPR_STMT): New code.
31886 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
31888 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
31889 build_component_ref calls.
31891 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
31893 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31894 (build_component_ref): Add new argument, NO_FOLD_P.
31896 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
31898 * Makefile.generic: Add missing substitution on object_deps handling.
31901 * Make-lang.in (check-ada): Enable ACATS test suite.
31903 2003-10-27 Robert Dewar <dewar@gnat.com>
31906 (Freeze_Array_Type): We do not need an initialization routine for types
31907 derived from String or Wide_String. They should be treated the same
31908 as String and Wide_String themselves. This caused problems with the
31909 use of Initialize_Scalars.
31912 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
31913 composites. This allows use of component clauses that are not byte
31917 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
31918 is an attempt to pack an array of atomic objects.
31920 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
31922 2003-10-27 Pascal Obry <obry@gnat.com>
31925 (Basename): Check for drive letters in a pathname only on DOS based OS.
31927 2003-10-27 Vincent Celier <celier@gnat.com>
31930 (Gnatmake): When unable to change dir to the object dir, display the
31931 content of the parent dir of the obj dir, to try to understand why this
31934 2003-10-27 GNAT Script <nobody@gnat.com>
31936 * Make-lang.in: Makefile automatically updated
31938 2003-10-27 Ed Schonberg <schonberg@gnat.com>
31941 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
31942 should not be done in Save/Restore_Scope_Stack, because it is performed
31946 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31947 whether use clauses should be removed/restored.
31950 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31951 whether use clauses should be removed/restored.
31953 2003-10-26 Andreas Jaeger <aj@suse.de>
31955 * Makefile.in: Remove duplicated lines.
31957 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
31959 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
31960 minimize the differences with ACT tree.
31962 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
31963 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
31964 Gnatvsn.Gnat_Static_Version_String to reduce differences between
31967 2003-10-24 Pascal Obry <obry@gnat.com>
31970 * adadecode.c (ostrcpy): New function.
31971 (__gnat_decode): Use ostrcpy of strcpy.
31972 (has_prefix): Set first parameter a const.
31973 (has_suffix): Set first parameter a const.
31974 Update copyright notice. Fix source name in header.
31975 Removes a trailing space.
31977 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
31980 Remove the test against being in No_Run_Time_Mode before generating a
31981 call to Register_Tag. It is redundant with the test against the
31982 availability of the function Register_Tag.
31984 2003-10-24 Vincent Celier <celier@gnat.com>
31986 * g-catiio.adb: (Month_Name): Correct spelling of February
31988 * make.adb: (Mains): New package
31989 (Initialize): Call Mains.Delete
31990 (Gnatmake): Check that each main on the command line is a source of a
31991 project file and, if there are several mains, each of them is a source
31992 of the same project file.
31993 (Gnatmake): When a foreign language is specified in attribute Languages,
31994 no main is specified on the command line and attribute Mains is not
31995 empty, only build the Ada main. If there is no Ada main, just compile
31996 the Ada sources and their closure.
31997 (Gnatmake): If a main is specified on the command line with directory
31998 information, check that the source exists and, if it does, that the path
31999 is the actual path of a source of a project.
32002 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
32003 Full_Path is True, return the full path instead of the simple file name.
32004 (Project_Of): New function
32007 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
32008 defaulted to False.
32009 (Project_Of): New function
32011 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32013 * Makefile.generic:
32014 Ensure objects of main project are always checked and rebuilt if needed.
32015 Set CC to gcc by default.
32016 Prepare new handling of link by creating a global archive (not activated
32019 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32020 stringt.h: Update copyright notice. Remove trailing blanks.
32021 Fix source name in header.
32023 2003-10-24 Robert Dewar <dewar@gnat.com>
32025 * sem_ch12.adb: Minor reformatting
32028 Minor reformatting (including new function return style throughout)
32031 Minor reformatting (including new function return style throughout)
32033 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32035 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32036 stringt.h: Update copyright notice. Remove trailing blanks.
32037 Fix source name in header.
32039 2003-10-24 GNAT Script <nobody@gnat.com>
32041 * Make-lang.in: Makefile automatically updated
32043 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
32045 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
32046 stringt.h: Convert to ISO C90 declarations and definitions.
32048 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
32051 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
32052 External_Tag attribute definition clauses.
32054 2003-10-23 Ed Schonberg <schonberg@gnat.com>
32057 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
32058 child unit, generate a fully qualified name to avoid spurious errors
32059 when the context contains renamings of different child units with
32060 the same simple name.
32062 * exp_dbug.ads: Add documentation on name qualification for renamings
32065 2003-10-23 Robert Dewar <dewar@gnat.com>
32067 * g-regpat.ads, g-regpat.adb: Minor reformatting
32069 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
32071 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
32073 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32075 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
32078 * urealp.h: (Machine): Update to proper definition.
32080 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
32082 * init.c, adaint.c: Minor reformatting.
32084 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
32086 * adaint.c (w32_epoch_offset): Define static const at file level.
32087 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
32088 rather than t_create, t_access in call to GetFileTime. Use union
32089 to convert between FILETIME and unsigned long long.
32090 (__gnat_file_time_name): Test for invalid file handle.
32091 (__gnat_set_filetime_name): Support win32 targets using
32092 w32api SetFileTime.
32094 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
32096 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
32098 * ctrl_c.c (__gnat_int_handler): Remove declaration.
32100 * decl.c (creat_concat_name): Const-ify prefix.
32102 * adaint.c: Include ctype.h if __MINGW32__.
32103 (__gnat_readlink): Mark arguments as possibly unused.
32104 (__gnat_symlink): Likewise.
32105 (__gnat_is_symbolic_link): Likewise.
32106 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
32108 (__gnat_file_time_name): Don't declare struct stat statbuf when
32110 (__gnat_is_absolute_path): Add parenthesis around condition of
32111 'if' statement to avoid warning.
32112 (__gnat_plist_init): Specify void as parameter.
32113 (plist_enter): Likewise.
32114 (plist_leave): Likewise.
32115 (remove_handle): Make static. Initialize prev.
32117 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
32120 * Makefile.in: Disable build of gnatpsta.
32121 * cstreams.c (__gnat_full_name): Minor improvements and clean up
32122 of previous change.
32124 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32126 * tracebak.c (MAX): Avoid redefinition warning.
32128 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
32129 Change msg to const char *.
32130 (__gnat_install_handler): Remove ss, unused.
32131 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
32133 * cstreams.c (__gnat_full_name): Declare p only when used.
32134 (__gnat_full_name) [sgi] Return buffer.
32136 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
32138 * mingw32.h: New file.
32139 * gnat_wrapper.adb: New file.
32141 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
32143 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
32144 string match a pre compiled regular expression (the corresponding
32145 version of the function working on a raw regular expression)
32146 Fix typos in various comments
32147 Update copyright notice in spec
32149 2003-10-21 Gary Dismukes <dismukes@gnat.com>
32152 (Component_Needs_Simple_Initialization): Return False when the type is a
32153 packed bit array. Revise spec comments to document this case.
32156 (Expand_Pragma_Import): Set any expression on the imported object to
32157 empty to avoid initializing imported objects (in particular this
32158 covers the case of zero-initialization of bit arrays).
32159 Update copyright notice.
32161 2003-10-21 Ed Schonberg <schonberg@gnat.com>
32164 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
32165 a subunit is missing.
32166 (Instantiate_Subprogram_Body): If body of function is missing, set type
32167 of return expression explicitly in dummy body, to prevent cascaded
32168 errors when a subunit is missing.
32172 (Access_Subprogram_Declaration): Verify that return type is valid.
32176 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
32181 (Corresponding_Discriminant): If the scope of the discriminant is a
32182 private type without discriminant, use its full view.
32185 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
32187 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
32188 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
32189 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
32190 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
32191 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
32192 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
32193 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
32194 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
32195 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
32196 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
32197 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
32198 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
32199 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
32200 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
32201 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
32202 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
32203 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
32204 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
32205 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
32206 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
32207 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
32208 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
32209 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
32210 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
32211 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
32212 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
32213 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
32214 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
32215 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
32216 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
32217 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
32218 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
32219 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
32220 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
32221 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
32222 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
32223 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
32224 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
32225 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
32226 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
32227 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
32228 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
32229 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
32230 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
32231 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
32232 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
32233 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
32234 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
32235 vms_conv.ads, vms_conv.adb, vms_data.ads,
32236 vxaddr2line.adb: Files added. Merge with ACT tree.
32238 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
32239 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
32240 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
32241 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
32242 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
32243 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
32244 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32245 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
32246 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
32247 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
32249 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32250 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32251 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32252 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32253 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
32254 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
32255 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32256 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
32257 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
32258 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
32259 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32260 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
32261 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
32262 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32263 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
32264 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
32265 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
32266 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32267 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
32268 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
32269 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
32270 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32271 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32272 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32273 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
32274 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
32275 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
32276 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32277 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
32278 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32279 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32280 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
32281 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32282 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
32283 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
32284 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
32285 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
32286 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
32287 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
32288 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
32289 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
32290 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
32291 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
32292 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
32293 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
32294 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
32295 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
32296 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
32297 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
32298 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
32299 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
32300 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
32301 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
32302 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
32303 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
32304 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
32305 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
32306 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
32307 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
32308 checks.adb, checks.ads, cio.c, comperr.adb,
32309 comperr.ads, csets.adb, cstand.adb, cstreams.c,
32310 debug_a.adb, debug_a.ads, debug.adb, decl.c,
32311 einfo.adb, einfo.ads, errout.adb, errout.ads,
32312 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
32313 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
32314 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
32315 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32316 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
32317 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
32318 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
32319 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
32320 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
32321 fe.h, fmap.adb, fmap.ads, fname.adb,
32322 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
32323 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
32324 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
32325 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32326 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32327 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32328 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
32329 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
32330 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
32331 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
32332 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
32333 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
32334 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
32335 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
32336 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
32337 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
32338 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
32339 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
32340 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
32341 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
32342 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
32343 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
32344 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
32345 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
32346 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
32347 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
32348 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
32349 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
32350 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
32351 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
32352 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
32353 layout.adb, lib.adb, lib.ads, lib-list.adb,
32354 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
32355 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32356 link.c, live.adb, make.adb, make.ads,
32357 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
32358 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
32359 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
32360 misc.c, mkdir.c, mlib.adb, mlib.ads,
32361 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
32362 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
32363 namet.adb, namet.ads, namet.h, nlists.ads,
32364 nlists.h, nmake.adt, opt.adb, opt.ads,
32365 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
32366 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
32367 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32368 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
32369 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
32370 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
32371 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
32372 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
32373 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
32374 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
32375 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
32376 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
32377 prj-util.adb, prj-util.ads, raise.c, raise.h,
32378 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
32379 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
32380 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
32381 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
32382 scans.ads, scn.adb, scn.ads, s-crc32.adb,
32383 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
32384 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32385 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
32386 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
32387 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
32388 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32389 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32390 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
32391 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
32392 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
32393 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
32394 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
32395 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
32396 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
32397 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32398 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
32399 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
32400 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
32401 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
32402 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
32403 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
32404 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
32405 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
32406 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
32407 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
32408 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
32409 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
32410 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
32411 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
32412 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
32413 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
32414 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
32415 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
32416 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
32417 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
32418 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
32419 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
32420 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32421 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32422 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
32423 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32424 stringt.adb, stringt.ads, stringt.h, style.ads,
32425 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
32426 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
32427 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
32428 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
32429 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
32430 table.adb, table.ads, targparm.adb, targparm.ads,
32431 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
32432 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
32433 ttypes.ads, types.ads, types.h, uintp.adb,
32434 uintp.ads, uintp.h, uname.adb, urealp.adb,
32435 urealp.ads, urealp.h, usage.adb, utils2.c,
32436 utils.c, validsw.adb, validsw.ads, widechar.adb,
32437 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
32438 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
32439 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
32440 gnatvsn.ads: Merge with ACT tree.
32442 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
32444 2003-10-20 Mark Mitchell <mark@codesourcery.com>
32446 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
32447 (gnat_ug_vmx.info): Likewise.
32448 (gnat_ug_vxw.info): Likewise.
32449 (gnat_ug_wnt.info): Likewise.
32450 (gnat_rm.info): Likewise.
32451 (gnat-style.info): Likewise.
32453 * Make-lang.in (ada.install-info): Remove target.
32454 (info): New target.
32455 (install-info): Likewise.
32456 (gnat_ug_unx.info): Simplify rule.
32457 (gnat_ug_vmx.info): Likewise.
32458 (gnat_ug_vxw.info): Likewise.
32459 (gnat_ug_wnt.info): Likewise.
32460 (gnat_rm.info): Likewise.
32461 (gnat-style.info): Likewise.
32463 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
32465 * Make-lang.in: Replace uses of $(target_alias) with
32466 $(target_noncanonical).
32467 * ada/Makefile.in: Remove unused mention of $(target_alias).
32469 2003-10-06 Mark Mitchell <mark@codesourcery.com>
32471 * Make-lang.in (ada.info): Replace with ...
32473 (ada.dvi): Replace with ...
32476 2003-09-29 Zack Weinberg <zack@codesourcery.com>
32478 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
32479 initialize dconstp5 and dconstmp5.
32481 2003-09-28 Richard Henderson <rth@redhat.com>
32483 * trans.c (tree_transform): Update call to expand_asm_operands.
32485 2003-09-21 Richard Henderson <rth@redhat.com>
32487 * trans.c, utils.c: Revert.
32489 2003-09-21 Richard Henderson <rth@redhat.com>
32491 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
32494 2003-09-04 Michael Matz <matz@suse.de>
32496 * misc.c: Include "target.h".
32497 * Make-lang.in (misc.o): Add dependency on target.h.
32499 2003-09-03 DJ Delorie <dj@redhat.com>
32501 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
32504 2003-08-30 Zack Weinberg <zack@codesourcery.com>
32506 * Makefile.in: Update substitutions to match changes to
32507 configure. Use include directives instead of @-insertions
32508 to read in host and target fragments. Add a rule to
32509 regenerate ada/Makefile.
32511 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
32513 * lang-options.h: Remove.
32514 * lang.opt: Add help text.
32516 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
32518 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
32521 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
32523 * misc.c (gnat_handle_option): Don't handle filenames.
32525 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
32527 * Make-lang.in: Replace PWD with PWD_COMMAND.
32528 * Makefile.adalib: Likewise.
32529 * Makefile.in: Likewise.
32531 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
32533 * misc.c (gnat_argv): Revert last change.
32534 (gnat_handle_option, gnat_init_options): Copy arguments.
32536 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
32538 * misc.c (gnat_argv): Make const.
32540 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
32542 * misc.c (save_argc, save_argv): Keep non-static!
32544 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
32546 * misc.c (save_argc, save_argv): Make static.
32547 (gnat_init_options): New prototype.
32548 (gnat_init_options): Update.
32550 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
32552 * gnat_ug.texi: Remove unlikely characters from @vars.
32553 * gnat_ug_vms.texi: Regenerate.
32555 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
32557 * misc.c (record_code_position): Adjust emit_note call.
32559 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
32561 * misc.c (gnat_handle_option): Don't check for missing arguments.
32563 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
32565 * utils.c (end_subprog_body): Adjust expand_function_end call.
32567 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
32569 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
32572 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
32574 * lang.opt: Declare Ada.
32575 * misc.c (gnat_init_options): Update.
32577 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
32579 * utils.c (begin_subprog_body): Adjust init_function_start call.
32581 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
32583 * Make-lang.in: Update to use options.c and options.h.
32584 * misc.c: Include options.h not aoptions.h.
32585 (gnat_handle_option): Abort on unrecognized switch.
32586 (gnat_init_options): Request Ada switches.
32588 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
32590 * lang.opt: Add -Wall.
32591 * misc.c (gnat_handle_option): Handle it.
32593 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
32595 * misc.c (gnat_handle_option): Fix warnings.
32597 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
32599 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
32601 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
32603 * Make-lang.in: Update to handle command-line options.
32604 * lang.opt: New file.
32605 * misc.c: Include aoptions.h.
32606 (cl_options_count, cl_options): Remove.
32607 (gnat_handle_option): New.
32608 (gnat_decode_option): Remove.
32609 (LANG_HOOKS_DECODE_OPTION): Remove.
32610 (LANG_HOOKS_HANDLE_OPTION): Override.
32612 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
32614 * init.c, misc.c, trans.c, utils.c: Remove dead code.
32616 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
32618 * Makefile.in: Replace "host_canonical" with "host" for autoconf
32621 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
32623 * Make-lang.in: Update.
32624 * misc.c: Include opts.h. Define cl_options_count and cl_options.
32626 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
32628 * misc.c (gnat_init_options): Update.
32630 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
32632 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
32633 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
32634 __attribute__ ((__unused__)).
32636 2003-06-05 Jan Hubicka <jh@suse.cz>
32638 * Make-lang.in: Add support for stageprofile and stagefeedback
32640 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
32642 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
32643 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
32645 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
32647 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
32648 Remove non-VMS directive.
32649 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
32651 (Examples of gnatls Usage): Remove VMS alternative.
32653 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
32656 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
32657 and turn ZCX_By_Default back to False since the underlying support
32658 is not quite there yet.
32660 2003-06-01 Andreas Jaeger <aj@suse.de>
32662 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
32663 and ROUND_TYPE_SIZE_UNIT.
32665 2003-05-22 Geert Bosch <bosch@gnat.com>
32667 * gnat_rm.texi : Remove reference to Ada Core Technologies.
32669 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
32671 * trans.c (tree_transform): Use location_t and input_location
32673 (build_unit_elab): Likewise.
32674 * utils.c (create_label_decl): Likewise.
32676 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
32678 * trans.c (tree_transform, build_unit_elab,
32679 set_lineno): Rename lineno to input_line.
32680 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
32681 end_subprog_body): Likewise.
32682 * utils2.c (build_call_raise): Likewise.
32684 2003-05-01 Laurent Guerby <guerby@acm.org>
32687 * 5iosinte.ads: Increase pthread_cond_t size to match recent
32688 LinuxThread and NPTL version, merge from ACT.
32690 2003-04-28 Zack Weinberg <zack@codesourcery.com>
32692 * utils.c (convert): No need to clear TREE_CST_RTL.
32694 2003-04-23 Geert Bosch <bosch@gnat.com>
32696 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32697 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32698 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32699 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32700 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32701 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
32702 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
32703 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
32704 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32705 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
32706 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
32707 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
32708 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
32709 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
32710 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
32711 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
32712 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
32713 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
32714 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
32715 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32716 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32717 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
32718 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32719 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
32720 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
32721 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
32722 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
32723 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
32724 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
32725 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
32726 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
32727 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
32728 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
32729 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
32730 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
32731 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
32732 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
32733 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
32734 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
32735 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
32736 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
32737 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
32738 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
32739 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
32740 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
32741 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
32742 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
32743 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
32744 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
32745 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
32746 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
32747 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
32748 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
32749 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
32750 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
32751 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
32752 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
32753 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
32754 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
32755 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
32756 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
32757 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
32758 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
32759 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
32760 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
32761 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
32762 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
32763 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
32764 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
32765 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
32766 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
32767 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
32768 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
32769 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
32770 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
32771 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
32772 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
32773 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
32774 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
32775 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
32776 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
32777 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
32778 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
32779 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
32780 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
32781 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
32782 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
32783 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
32784 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
32785 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
32786 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
32787 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
32788 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
32789 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
32790 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
32791 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
32792 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
32793 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
32794 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
32795 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
32796 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
32797 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
32798 ali.adb, ali.ads, alloc.ads, argv.c,
32799 atree.adb, atree.ads, atree.h, aux-io.c,
32800 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
32801 binde.adb, binde.ads, binderr.adb, binderr.ads,
32802 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
32803 butil.adb, butil.ads, cal.c, calendar.ads,
32804 casing.adb, casing.ads, ceinfo.adb, checks.adb,
32805 checks.ads, cio.c, comperr.adb, comperr.ads,
32806 config-lang.in, csets.adb, csets.ads, csinfo.adb,
32807 cstand.adb, cstand.ads, cuintp.c, debug.adb,
32808 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
32809 dec-io.ads, dec.ads, deftarg.c, directio.ads,
32810 einfo.adb, einfo.ads, elists.adb, elists.ads,
32811 elists.h, errno.c, errout.adb, errout.ads,
32812 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
32813 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
32814 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
32815 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
32816 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
32817 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
32818 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
32819 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
32820 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
32821 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
32822 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
32823 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
32824 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
32825 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
32826 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
32827 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
32828 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
32829 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
32830 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
32831 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
32832 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32833 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32834 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32835 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
32836 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
32837 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
32838 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
32839 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
32840 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
32841 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
32842 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
32843 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
32844 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
32845 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
32846 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
32847 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
32848 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
32849 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
32850 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
32851 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
32852 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
32853 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
32854 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
32855 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
32856 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
32857 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
32858 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
32859 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
32860 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
32861 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
32862 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
32863 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
32864 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
32865 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
32866 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
32867 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
32868 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
32869 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
32870 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
32871 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32872 lib.adb, lib.ads, live.adb, live.ads,
32873 machcode.ads, make.adb, make.ads, makeusg.adb,
32874 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
32875 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
32876 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
32877 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
32878 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
32879 mlib.ads, namet.adb, namet.ads, nlists.adb,
32880 nlists.ads, opt.adb, opt.ads, osint-b.adb,
32881 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
32882 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
32883 osint.ads, output.adb, output.ads, par-ch10.adb,
32884 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
32885 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32886 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
32887 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
32888 par-tchk.adb, par-util.adb, par.adb, par.ads,
32889 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
32890 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
32891 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
32892 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
32893 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
32894 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
32895 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
32896 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
32897 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
32898 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
32899 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
32900 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
32901 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
32902 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
32903 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
32904 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
32905 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
32906 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32907 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
32908 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
32909 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
32910 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
32911 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32912 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
32913 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
32914 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
32915 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
32916 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
32917 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
32918 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
32919 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
32920 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
32921 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
32922 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
32923 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
32924 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
32925 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
32926 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
32927 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
32928 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
32929 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
32930 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
32931 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
32932 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
32933 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
32934 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
32935 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
32936 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
32937 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
32938 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
32939 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
32940 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
32941 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
32942 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
32943 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
32944 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
32945 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
32946 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
32947 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
32948 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
32949 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
32950 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
32951 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
32952 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
32953 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
32954 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
32955 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
32956 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
32957 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
32958 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
32959 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
32960 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
32961 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
32962 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
32963 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
32964 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
32965 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
32966 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
32967 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
32968 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32969 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
32970 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
32971 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
32972 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32973 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
32974 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
32975 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
32976 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
32977 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
32978 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
32979 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
32980 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
32981 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
32982 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
32983 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
32984 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
32985 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
32986 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
32987 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
32988 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
32989 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
32990 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
32991 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
32992 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
32993 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
32994 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
32995 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
32996 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
32997 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
32998 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
32999 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
33000 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
33001 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
33002 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
33003 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
33004 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
33005 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
33006 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
33007 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
33008 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
33009 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
33010 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
33011 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
33012 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
33013 snames.ads, sprint.adb, sprint.ads, stand.adb,
33014 stand.ads, stringt.adb, stringt.ads, style.adb,
33015 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
33016 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
33017 switch-m.ads, switch.adb, switch.ads, system.ads,
33018 table.adb, table.ads, targparm.adb, targparm.ads,
33019 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
33020 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
33021 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
33022 ttypef.ads, ttypes.ads, types.adb, types.ads,
33023 uintp.adb, uintp.ads, uname.adb, uname.ads,
33024 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
33025 usage.adb, usage.ads, validsw.adb, validsw.ads,
33026 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
33027 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
33028 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
33029 formatting and other trivial changes from ACT.
33031 2003-04-12 Zack Weinberg <zack@codesourcery.com>
33033 * gigi.h, utils2.c (build_constructor):
33034 Rename gnat_build_constructor. Use build_constructor.
33035 * decl.c (gnat_to_gnu_entity)
33036 * trans.c (tree_transform, pos_to_constructor, extract_values)
33037 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
33038 (unchecked_convert)
33039 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
33040 (fill_vms_descriptor):
33043 2003-04-06 Zack Weinberg <zack@codesourcery.com>
33045 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
33046 * misc.c (gnat_tree_size): New function.
33047 (LANG_HOOKS_TREE_SIZE): Override.
33049 2003-04-03 Jason Merrill <jason@redhat.com>
33051 * misc.c (gnat_adjust_rli): #if 0.
33053 2003-03-31 Geert Bosch <bosch@gnat.com>
33056 * link.c : Fix misspelled "const" keyword
33058 2003-03-23 Mark Mitchell <mark@codesourcery.com>
33061 * utils2.c: Adjust calls to put_var_into_stack.
33063 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
33065 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
33067 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
33069 * misc.c (gnat_init): Update for new prototype.
33071 2003-03-05 Olivier Hainque <hainque@gnat.com>
33074 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
33075 warning, and fix return type for the IN_RTS && !SJLJ case.
33077 2003-03-04 Tom Tromey <tromey@redhat.com>
33079 * Make-lang.in (ada.tags): New target.
33081 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
33084 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
33085 wrapper, which name remains constant whatever underlying GCC
33088 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
33089 the stable interface needed for a-except.
33091 2003-03-02 Andreas Jaeger <aj@suse.de>
33093 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33094 gnat_ug_wnt.texi: Regenerate.
33096 2003-03-02 Laurent Guerby <guerby@acm.org>
33098 * Makefile.in (install-gnatlib): Match previous change there
33101 2003-02-28 Andreas Schwab <schwab@suse.de>
33103 * Make-lang.in (install-gnatlib): Change to ada directory before
33104 running make instead of using ada/Makefile directly.
33106 2003-02-18 Ben Elliston <bje@redhat.com>
33108 Part of PR ada/9406
33109 * gnat_ug.texi (Binder output file): Grammar fix.
33111 2003-02-18 Ben Elliston <bje@redhat.com>
33114 * 5qtaprop.adb (Sleep): Fix typo in comment.
33116 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
33118 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
33119 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33120 gnat_ug_wnt.texi: Regenerate.
33122 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
33124 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
33125 be created if necessary.
33126 (ada.install-common): Let $(DESTDIR)$(bindir) be created
33127 if necessary. Remove erroneous and redundant gnatchop
33128 installation commands. Test for gnatdll before attempting
33130 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
33131 and gnatdll from all plausible locations.
33133 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
33135 * utils2.c (build_unary_op): Don't check flag_volatile.
33136 * gnat_ug.texi: Remove -fvolatile from example.
33137 * gnat_ug_vxw.texi: Likewise.
33139 2003-01-29 Laurent Guerby <guerby@acm.org>
33142 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
33143 * Makefile.in: match previous change.
33144 * Make-lang.in: match previous change.
33146 2003-01-29 Joel Sherrill <joel@OARcorp.com>
33148 * 5rosinte.ads: Add SIGXCPU.
33149 * 5rtpopsp.adb: New file.
33150 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
33151 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
33152 specific file 5rtpopsp.adb.
33153 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
33154 is likely needed for all newlib targets.
33155 * init.c: Add RTEMS specific version of __gnat_initialize().
33157 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33159 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
33161 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33163 * init.c (__gnat_error_handler): Make msg const.
33165 * gmem.c (convert_addresses): Move declaration ...
33166 * adaint.h: ... here.
33167 * adaint.c (convert_addresses): Adapt addrs type to match
33170 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
33172 2003-01-24 Andreas Schwab <schwab@suse.de>
33174 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
33175 size_t to avoid warning.
33177 2003-01-21 Zack Weinberg <zack@codesourcery.com>
33179 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
33181 2003-01-09 Geoffrey Keating <geoffk@apple.com>
33183 * gnat_rm.texi: Remove RCS version number.
33185 * ada-tree.h (union lang_tree_node): Add chain_next option.
33187 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
33189 * Make-lang.in (ada.install-info, ada.install-common,
33190 ada.uninstall): Prepend $(DESTDIR) to the destination
33191 directory in all (un)installation commands.
33192 * Makefile.in (install-gnatlib, install-rts): Ditto.
33194 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
33196 * gnat_rm.texi, gnat_ug.texi: Use @copying.
33197 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33198 gnat_ug_wnt.texi: Regenerate.
33200 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
33202 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
33204 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
33205 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
33206 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
33207 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
33208 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
33209 $(srcdir)/doc/include/gcc-common.texi.
33211 2002-12-15 Geert Bosch <bosch@gnat.com>
33213 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
33215 2002-12-14 Geert Bosch <bosch@gnat.com>
33218 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
33219 case of a body created for a Renaming_As_Body, on which
33220 conformance checks are not performed.
33222 2002-11-30 Zack Weinberg <zack@codesourcery.com>
33224 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
33225 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
33226 not already included.
33227 * Make-lang.in: Update dependencies.
33229 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
33230 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
33231 solution to buffer overflow bug on GNU/Linux.
33233 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
33237 * bindgen.adb: Remove all references to Public_Version.
33238 * comperr.adb: Remove all references to Public_Version and
33239 GNATPRO_Version; correct bug reporting instructions.
33240 * comperr.ads: Change to match bug box.
33241 * gnatvsn.ads: Remove all references to Public version and
33244 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
33247 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
33251 * config-lang.in: Remove diff_excludes.
33253 2002-11-05 Graham Stott <graham.stott@btinternet.com>
33256 * trans.c (gnu_pending_elaboration_lists): New GC root.
33257 (build_unit_elab): Use..
33259 2002-10-30 Geert Bosch <bosch@gnat.com>
33262 * misc.c : Include optabs.h
33264 * Make-lang.in (misc.o): Add dependency on optabs.h
33266 2002-10-29 Geert Bosch <bosch@gnat.com>
33269 * Make-lang.in (gnatbind): Depend on CONFIG_H
33271 2002-10-29 Geert bosch <bosch@gnat.com>
33274 * misc.c: Unrevert misc.c (1.13)
33276 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
33278 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
33279 maintainership comments.
33281 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
33284 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
33285 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
33286 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
33287 7staprop.adb: Correct statements in comments about
33288 maintainership of GNAT.
33291 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
33292 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
33293 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
33294 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
33295 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
33296 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
33297 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
33298 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
33299 comments about maintainership of GNAT.
33301 PR ada/6919 (forward port of patch for PR ada/5904)
33302 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
33303 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
33304 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
33305 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
33306 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
33307 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
33308 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
33309 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
33310 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
33311 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
33312 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
33313 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
33314 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
33315 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
33316 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
33317 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
33318 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
33319 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
33320 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
33321 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
33322 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
33323 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
33324 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
33325 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
33326 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
33327 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
33328 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
33329 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
33330 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
33331 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
33332 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
33333 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
33334 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
33335 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
33336 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
33337 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
33338 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
33339 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
33340 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
33341 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
33342 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
33343 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
33344 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
33345 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
33346 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
33347 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
33348 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
33349 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
33350 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
33351 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
33352 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
33353 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
33354 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
33355 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
33356 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
33357 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
33358 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
33359 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
33360 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
33361 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
33362 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
33363 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
33364 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
33365 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
33366 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
33367 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
33368 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
33369 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
33370 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
33371 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
33372 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
33373 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
33374 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
33375 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
33376 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
33377 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
33378 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
33379 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
33380 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
33381 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
33382 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
33383 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
33384 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
33385 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
33386 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
33387 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
33388 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
33389 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
33390 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
33391 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
33392 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
33393 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
33394 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
33395 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
33396 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
33397 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
33398 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
33399 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
33400 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
33401 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
33402 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
33403 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
33404 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
33405 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
33406 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
33407 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
33408 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
33409 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
33410 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
33411 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
33412 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
33413 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
33414 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
33415 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
33416 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
33417 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
33418 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
33419 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
33420 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
33421 par-endh.adb par-labl.adb par-load.adb par-prag.adb
33422 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
33423 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
33424 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
33425 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
33426 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
33427 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
33428 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
33429 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
33430 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
33431 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
33432 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
33433 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
33434 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
33435 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
33436 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
33437 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
33438 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
33439 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
33440 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
33441 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
33442 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
33443 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
33444 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
33445 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
33446 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
33447 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
33448 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
33449 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
33450 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
33451 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
33452 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
33453 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
33454 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
33455 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
33456 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
33457 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
33458 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
33459 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
33460 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
33461 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
33462 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
33463 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
33464 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
33465 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
33466 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
33467 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
33468 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
33469 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
33470 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
33471 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
33472 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
33473 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
33474 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
33475 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
33476 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
33477 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
33478 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
33479 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
33480 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
33481 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
33482 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
33483 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
33484 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
33485 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
33486 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
33487 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
33488 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
33489 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
33490 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
33491 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
33492 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
33493 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
33494 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
33495 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
33496 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
33497 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
33498 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
33499 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
33500 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
33501 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
33502 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
33503 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
33504 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
33505 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
33506 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
33507 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
33508 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
33509 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
33510 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
33511 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
33512 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
33513 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
33514 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
33515 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
33516 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
33517 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
33518 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
33519 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
33520 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
33521 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
33522 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
33523 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
33524 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
33525 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
33526 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
33527 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
33528 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
33529 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
33530 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
33531 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
33532 stringt.ads stringt.h style.adb style.ads stylesw.adb
33533 stylesw.ads switch.adb switch.ads sysdep.c system.ads
33534 table.adb table.ads targparm.adb targparm.ads targtyps.c
33535 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
33536 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
33537 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
33538 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
33539 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
33540 usage.ads utils.c utils2.c validsw.adb validsw.ads
33541 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
33542 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
33543 xtreeprs.adb: Correct statements in comments about maintainership
33546 2002-09-23 Zack Weinberg <zack@codesourcery.com>
33548 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
33549 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
33550 * gnatvsn.ads: Gnat_Version_String is now a function.
33551 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
33552 copy the C version_string into a String and return it.
33553 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
33554 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
33555 Remove pragma Ident (Gnat_Version_String). If this was the
33556 sole use of package Gnatvsn, remove the with statement too.
33557 * gnat1drv.adb: Tweak -gnatv output.
33559 2002-09-17 Richard Henderson <rth@redhat.com>
33561 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
33562 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
33563 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
33564 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
33565 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
33566 and real_2expN instead of a loop.
33567 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
33568 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
33570 2002-08-25 Andre Leis <a.leis@gmx.net>
33571 David Billinghurst (David.Billinghurst@riotinto.com>
33573 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
33575 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33577 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
33578 Remove $(CONFIG_H) dependency.
33580 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
33582 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
33584 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33586 * adadecode.c (ada_demangle): Use xstrdup in lieu of
33588 * misc.c (gnat_decode_option): Likewise.
33590 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
33592 * make.adb (Add_Switch): Make Generic_Position a procedure. The
33593 function approach did not work well because of a side effect (the
33594 function call could reallocate the table which was being indexed
33595 using its result). Fixes ada/4851. [RESURRECTED]
33597 2002-07-01 Roger Sayle <roger@eyesopen.com>
33599 * ada/utils.c (builtin_function): Accept an additional parameter.
33601 2002-06-28 Andreas Jaeger <aj@suse.de>
33604 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
33607 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33609 * Makefile.in (SHELL): Set to @SHELL@.
33611 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33613 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
33614 array size calculation.
33616 2002-06-04 Andreas Jaeger <aj@suse.de>
33618 * Make-lang.in (gnatbind): Readd rule that has been lost in last
33621 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
33623 Merge from pch-branch:
33625 * config-lang.in (gtfiles): Add ada-tree.h.
33626 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
33627 (SET_TYPE_MODULUS): New.
33628 (SET_TYPE_INDEX): New.
33629 (SET_TYPE_DIGITS_VALUE): New.
33630 (SET_TYPE_RM_SIZE): New.
33631 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
33632 (SET_TYPE_ADA_SIZE): New.
33633 (SET_TYPE_ACTUAL_BOUNDS): New.
33634 (SET_DECL_CONST_CORRESPONDING_VAR): New.
33635 (SET_DECL_ORIGINAL_FIELD): New.
33636 (TREE_LOOP_ID): Correct typo.
33637 * decl.c: Use new macros.
33638 * utils.c: Include debug.h, use new macros.
33639 * utils2.c: Use new macros.
33641 * ada-tree.h: Update all macros for new tree description.
33642 (struct tree_loop_id): New.
33643 (union lang_tree_node): New.
33644 (struct lang_decl): New.
33645 (struct lang_type): New.
33646 * misc.c (gnat_mark_tree): Delete.
33647 (LANG_HOOKS_MARK_TREE): Delete.
33648 * trans.c (tree_transform): No longer any need to cast
33651 * utils.c (struct language_function): New dummy structure.
33653 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
33654 (misc.o): Likewise.
33655 (utils.o): Likewise; also gtype-ada.h.
33656 * Make-lang.in (gnat1): Add dependency on s-gtype.
33657 (gnatbind): Add dependency on $(CONFIG_H).
33658 * utils.c: Correct last #include.
33659 (stuct e_stack): Remove unnecessary 'static'.
33660 (mark_e_stack): Remove unused prototype.
33662 * scn-nlit.adb: Remove whitespace after version number to
33663 keep lines under 80 chars.
33664 * snames.adb: Likewise.
33665 * treepr.ads: Likewise.
33667 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
33668 (misc.o): Likewise.
33669 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
33670 * config-lang.in (gtfiles): New.
33671 * decl.c: Use gengtype for roots.
33672 * gigi.h: Use gengtype for roots.
33673 * trans.c: Use gengtype for roots.
33674 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
33676 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
33678 * misc.c (gnat_init): Adjust setting of internal_error_function.
33680 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
33682 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
33683 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33684 gnat_ug_wnt.texi: Regenerate.
33686 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
33688 * 5ntaprop.adb (with System.OS_Primitives): Remove.
33690 * cstreams.c (max_path_len): Move from here ...
33691 * adaint.c (__gnat_max_path_len): ... to here.
33692 * adaint.c (__gnat_max_path_len): Declare.
33693 * g-dirope.adb (Max_Path): Adjust.
33694 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
33695 * i-cstrea.ads (max_path_len): Adjust.
33696 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
33697 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
33699 * Makefile.in, Make-lang.in: Documentation is now built in
33700 Make-lang.in. Store Info and generated Texinfo files in the
33702 * gnat_ug.texi: Remove CVS keywords, correct version number.
33703 Set file name correctly.
33705 * gnat_ug_*.texi: Add.
33706 * .cvsignore: Ignore generated Texinfo files.
33708 2002-05-30 Zack Weinberg <zack@codesourcery.com>
33710 * ada.h: Add MI guard macro.
33711 (SUBTYPE): Define constants with an anonymous enum, not static
33713 (IN): Cast constants to appropriate type before use.
33715 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
33717 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
33720 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33722 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
33723 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
33724 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
33725 (ALL_ADA_CFLAGS): Likewise.
33726 (ADA_INCLUDES): Likewise.
33727 Adapt for new working dir.
33728 (GNATBIND): Use Makefile.in version.
33729 (.SUFFIXES): Copy from Makefile.in.
33730 (ada-warn): Define.
33731 (.adb.o, .ads.o): Copy from Makefile.in.
33732 Added $(OUTPUT_OPTION).
33733 (GNAT1_C_OBJS): Moved from Makefile.in.
33734 Prefix with ada subdir.
33735 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
33736 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
33737 Adapt for new working dir.
33738 (EXTRA_GNATBIND_OBJS): Likewise.
33739 (ADA_BACKEND): Moved from Makefile.in.
33740 Renamed to avoid conflict with global BACKEND.
33742 (TARGET_ADA_SRCS): Moved from Makefile.in.
33743 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
33745 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
33746 (ada_extra_files): Moved from Makefile.in.
33747 Prefix with ada subdir.
33748 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
33749 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
33750 (ada/nmake.ads): Likewise.
33751 (update-sources): Moved from Makefile.in.
33752 Prefix with ada subdir.
33753 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
33754 (ADA_TREE_H): Likewise.
33755 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
33756 (ada/memtrack.o): Likewise.
33757 (ada/adadecode.o): Likewise.
33758 Update dependencies.
33759 (ada/adaint.o): New.
33760 (ada/argv.o): Moved from Makefile.in.
33761 Prefix with ada subdir.
33762 Update dependencies.
33763 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
33764 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
33765 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
33766 Prefix with ada subdir.
33767 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
33768 (GNAT DEPENDENCIES): Regenerate.
33769 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
33770 toplevel Makefile.in.
33771 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
33772 (TARGET_ADA_SRCS): Removed.
33773 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
33774 (GNATBIND_OBJS): Likewise.
33775 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
33776 (BACKEND): Removed.
33777 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
33778 (TREE_H): Likewise.
33779 (ada_extra_files): Likewise.
33780 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
33781 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
33782 (update-sources): Likewise.
33783 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
33784 (ADA_TREE_H): Likewise.
33785 (adadecoce.o): Likewise.
33786 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
33787 (GNAT DEPENDENCIES): Likewise.
33789 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33791 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
33792 * Makefile.in: Likewise.
33794 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33796 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
33797 Restore $(CONFIG_H) and prefix.o dependencies.
33798 (ada.stage[1-4]): Depend on stage?-start.
33800 * Makefile.in (b_gnatb.c): Depend on interfac.o.
33802 2002-05-02 Jim Wilson <wilson@redhat.com>
33804 * utils.c (finish_record_type): Change record_size to record_type.
33806 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
33808 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
33809 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
33810 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
33812 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
33814 * misc.c (gnat_parse_file): Update.
33816 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
33818 * misc.c (gnat_init): Don't set lang_attribute_common.
33820 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
33822 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
33824 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
33826 * gnat_ug.texi: New file.
33828 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
33829 instead of gfdl.texi
33831 * xgnatug.adb, ug_words: New files.
33833 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
33834 gnat_rm and gnat-style manuals.
33836 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
33838 * gigi.h (incomplete_type_error): Remove.
33839 * utils.c (incomplete_type_error): Remove.
33841 2002-04-16 Mark Mitchell <mark@codesourcery.com>
33843 * trans.c (tree_transform): Add has_scope argument to
33844 expand_start_stmt_expr.
33846 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
33848 * gigi.h (truthvalue_conversion): Rename.
33849 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
33850 * trans.c (tree_transform): Update.
33851 * utils2.c (truthvalue_conversion): Rename, update.
33852 (build_binary_op, build_unary_op): Update.
33854 2002-04-04 Laurent Guerby <guerby@acm.org>
33856 * make.adb: Implement -margs, remove restriction about file name placement.
33857 * makeusg.adb: Documentation update.
33858 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
33859 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
33861 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
33863 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
33864 (builtin_function): Similarly.
33866 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
33868 * decl.c (gnat_to_gnu_entity): Update.
33869 * gigi.h (mark_addressable): Rename.
33870 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
33871 * trans.c (tree_transform): Update.
33872 * utils.c (create_var_decl): Update.
33873 * util2.c (build_binary_op, build_unary_op,
33874 fill_vms_descriptor): Update.
33875 (mark_addressable): Rename, update.
33877 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
33879 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
33881 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
33882 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
33883 * trans.c (tree_transform, convert_with_check): Update.
33884 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
33887 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
33889 * gigi.h (finish_incomplete_decl): Rename.
33890 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
33891 * utils.c (gnat_init_decl_processing): Don't set hook.
33892 (finish_incomplete_decl): Rename.
33894 2002-03-29 Andreas Schwab <schwab@suse.de>
33896 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
33899 2001-03-28 Robert Dewar <dewar@gnat.com>
33902 (Remove_Checks): New procedure
33905 (Remove_Checks): New procedure
33908 Use new Duplicate_Subexpr functions
33909 (Duplicate_Subexpr_No_Checks): New procedure
33910 (Duplicate_Subexpr_No_Checks_Orig): New procedure
33911 (Duplicate_Subexpr): Restore original form (checks duplicated)
33912 (Duplicate_Subexpr): Call Remove_Checks
33915 (Duplicate_Subexpr_No_Checks): New procedure
33916 (Duplicate_Subexpr_No_Checks_Orig): New procedure
33917 Add 2002 to copyright notice
33919 * sem_util.adb: Use new Duplicate_Subexpr functions
33922 (Eval_Indexed_Component): This is the place to call
33923 Constant_Array_Ref and to replace the value. We simply merge
33924 the code of this function in here, since it is now no longer
33925 used elsewhere. This fixes the problem of the back end not
33926 realizing we were clever enough to see that this was
33928 (Expr_Val): Remove call to Constant_Array_Ref
33929 (Expr_Rep_Val): Remove call to Constant_Array_Ref
33931 (Constant_Array_Ref): Deal with string literals (patch
33932 suggested by Zack Weinberg on the gcc list)
33934 2001-03-28 Ed Schonberg <schonber@gnat.com>
33936 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
33937 Duplicate_Subexpr_Move_Checks.
33939 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
33940 Duplicate_Subexpr_Move_Checks.
33942 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
33943 value of array exists before retrieving it (it may a private
33944 protected component in a function).
33946 2002-03-28 Geert Bosch <bosch@gnat.com>
33948 * prj-pp.adb : New file.
33950 * prj-pp.ads : New file.
33952 2002-03-28 Andreas Jaeger <aj@suse.de>
33954 * Makefile.in (stamp-sdefault): Fix path for Makefile.
33956 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
33958 * misc.c (gnat_expand_expr): Move prototype.
33960 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
33962 * misc.c (insert_default_attributes): Remove.
33964 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
33966 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
33967 (gnat_init): Don't set hook.
33968 (gnat_expand_expr): Fix prototype.
33970 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
33972 * misc.c (ggc_p): Remove.
33974 2002-03-27 Geert Bosch <bosch@gnat.com>
33976 * prj-makr.ads, prj-makr.adb : New files.
33978 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
33980 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
33981 (lang_mark_tree): Make static, rename.
33983 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
33985 * misc.c (maybe_build_cleanup): Remove.
33987 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
33989 * gigi.h (yyparse): Remove.
33991 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
33993 * gnat_rm.texi: Sync with ACT version.
33994 (From Ben Brosgol <brosgol@gnat.com>)
33996 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
33998 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
33999 (gnat_init): Remove old hook.
34001 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
34003 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
34004 (yyparse): Rename gnat_parse_file.
34006 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
34008 Delete all lines containing "$Revision:".
34009 * xeinfo.adb: Don't look for revision numbers.
34010 * xnmake.adb: Likewise.
34011 * xsinfo.adb: Likewise.
34012 * xsnames.adb: Likewise.
34013 * xtreeprs.adb: Likewise.
34015 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34017 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
34018 gnat_tree_code_name): Delete.
34019 (tree_code_type, tree_code_length, tree_code_name): Define.
34020 (gnat_init): Don't try to copy into the various tree_code
34023 2002-03-11 Richard Henderson <rth@redhat.com>
34025 * Makefile.in (.NOTPARALLEL): Add fake tag.
34027 2002-03-07 Geert Bosch <bosch@gnat.com>
34029 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
34030 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
34031 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
34032 switch-m.adb, switch-m.ads : New files.
34034 2002-03-07 Geert Bosch <bosch@gnat.com>
34036 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
34037 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
34038 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
34039 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
34040 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
34041 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
34042 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
34043 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
34044 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
34045 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
34046 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
34047 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
34048 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
34049 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
34050 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
34051 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
34052 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
34053 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
34054 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34055 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
34056 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
34057 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
34058 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
34059 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
34060 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
34061 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
34062 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
34063 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
34064 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
34065 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
34066 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
34067 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
34068 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
34069 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
34070 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34071 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
34072 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34073 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
34074 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
34075 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
34076 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
34077 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
34078 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
34079 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
34080 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
34081 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
34082 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
34083 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
34084 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
34085 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
34086 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
34087 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
34088 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
34089 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
34090 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
34091 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
34092 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
34093 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
34094 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
34095 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
34096 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
34097 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
34098 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
34099 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
34100 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
34101 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
34102 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
34103 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
34104 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
34105 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
34106 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
34107 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
34108 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
34109 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34110 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34111 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
34112 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
34113 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
34114 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
34115 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34116 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
34117 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
34118 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
34119 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
34120 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
34121 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
34122 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
34123 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
34124 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
34125 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
34126 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
34127 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
34128 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
34129 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
34130 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
34131 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
34132 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
34134 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
34135 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
34136 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
34137 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
34139 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
34140 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
34142 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
34143 to mdll-fil.ad[bs] and mdll-util.ad[bs]
34145 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
34146 from mdllfile.ad[bs] and mdlltool.ad[bs]
34148 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34150 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
34151 lieu of explicit sizeof/sizeof.
34153 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
34155 * misc.c (copy_lang_decl): Remove.
34157 2002-02-27 Zack Weinberg <zack@codesourcery.com>
34159 * misc.c: Delete traditional-mode-related code copied from the
34160 C front end but not used, or used only to permit the compiler
34163 2002-02-07 Richard Henderson <rth@redhat.com>
34165 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
34166 * adaint.h (__gnat_to_gm_time): Update prototype.
34168 2002-01-30 Richard Henderson <rth@redhat.com>
34170 * trans.c (tree_transform) [N_Loop_Statement]: Use
34171 expand_exit_loop_top_cond.
34173 2001-12-23 Richard Henderson <rth@redhat.com>
34175 * utils.c (end_subprog_body): Push GC context around
34176 rest_of_compilation for nested functions.
34178 2001-12-23 Richard Henderson <rth@redhat.com>
34180 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
34182 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
34184 * gnat-style.texi (Declarations and Types): Remove ancient style
34185 rule which was mandated by code generation issues.
34187 * gnat-style.texi (header): Add @dircategory, @direntry.
34188 (title page): Remove date.
34189 (general) Add @./@: where approriate, and two spaces after the
34190 full stop at the end of a sentence. Use @samp markup when
34191 referring concrete lexical entities (keywords, attribute names
34192 etc.), and @syntax for ARM grammar elements. Use @r for English
34193 text in comments. Use @emph for emphasis. Change "if-statements"
34194 etc. to "if statements" (without @samp). Break long lines. Make
34195 casing of section names consistent.
34196 (Identifiers): Use @samp markup for variable names.
34197 (Comments): Use @samp markup for comment characters. Line-end
34198 comments may follow any Ada code, not just statements. Fix
34199 misspelling of "Integer" as "integer".
34200 (Loop statements): Do not use variable name "I", use "J".
34201 (Subprogram Declarations): Document alignment.
34202 (Subprogram Bodies, Block statements): Document empty line before
34205 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
34207 * make.adb (Add_Switch): Make Generic_Position a procedure. The
34208 function approach did not work well because of a side effect (the
34209 function call could reallocate the table which was being indexed
34210 using its result). Fixes ada/4851.
34212 2001-12-19 Robert Dewar <dewar@gnat.com>
34214 * bindgen.adb: Minor reformatting
34216 * cstand.adb: Minor reformatting
34218 * fmap.adb: Minor reformatting
34219 Change name from Add for Add_To_File_Map (Add is much too generic)
34220 Change Path_Name_Of to Mapped_Path_Name
34221 Change File_Name_Of to Mapped_File_Name
34222 Fix copyright dates in header
34225 Change name from Add for Add_To_File_Map (Add is much too generic)
34226 Change Path_Name_Of to Mapped_Path_Name
34227 Change File_Name_Of to Mapped_File_Name
34228 Fix copyright dates in header
34230 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
34231 Add use clause for Fmap.
34233 * make.adb: Minor reformatting
34235 * osint.adb: Minor reformatting. Change of names in Fmap.
34236 Add use clause for Fmap.
34238 * prj-env.adb: Minor reformatting
34240 * prj-env.ads: Minor reformatting
34242 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
34243 error found (there were odd exceptions to this general rule in
34244 -gnatec/-gnatem processing)
34246 2001-12-19 Olivier Hainque <hainque@gnat.com>
34248 * raise.c (__gnat_eh_personality): Exception handling personality
34249 routine for Ada. Still in rough state, inspired from the C++ version
34250 and still containing a bunch of debugging artifacts.
34251 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
34252 inspired from the C++ library.
34254 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
34255 exception handling integration.
34257 2001-12-19 Arnaud Charlet <charlet@gnat.com>
34259 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
34260 (HIE_SOURCES): Add s-secsta.ad{s,b}.
34261 (HIE_OBJS): Add s-fat*.o
34262 (RAVEN_SOURCES): Remove files that are no longer required. Add
34263 interrupt handling files.
34264 (RAVEN_MOD): Removed, no longer needed.
34266 2001-12-19 Robert Dewar <dewar@gnat.com>
34268 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
34269 Add 2001 to copyright date
34271 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
34272 need to force universal inlining for these cases.
34274 2001-12-19 Arnaud Charlet <charlet@gnat.com>
34276 * s-taprob.adb: Minor clean ups so that this unit can be used in
34279 * exp_ch7.adb: Allow use of secondary stack in HI mode.
34280 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
34282 2001-12-19 Vincent Celier <celier@gnat.com>
34284 * prj-tree.ads (Project_Node_Record): Add comments for components
34285 Pkg_Id and Case_Insensitive.
34287 2001-12-19 Pascal Obry <obry@gnat.com>
34289 * g-socket.adb: Minor reformatting. Found while reading code.
34291 2001-12-19 Robert Dewar <dewar@gnat.com>
34293 * prj-tree.ads: Minor reformatting
34295 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
34297 * config-lang.in (diff_excludes): Remove.
34299 2001-12-17 Ed Schonberg <schonber@gnat.com>
34301 * sem_res.adb (Resolve_Selected_Component): do not generate a
34302 discriminant check if the selected component is a component of
34303 the argument of an initialization procedure.
34305 * trans.c (tree_transform, case of arithmetic operators): If result
34306 type is private, the gnu_type is the base type of the full view,
34307 given that the full view itself may be a subtype.
34309 2001-12-17 Robert Dewar <dewar@gnat.com>
34311 * sem_res.adb: Minor reformatting
34313 * trans.c (tree_transform, case N_Real_Literal): Add missing third
34314 parameter in call to Machine (unknown horrible effects from this
34317 * urealp.h: Add definition of Round_Even for call to Machine
34318 Add third parameter for Machine
34320 2001-12-17 Ed Schonberg <schonber@gnat.com>
34322 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
34323 predefined units in No_Run_Time mode.
34325 2001-12-17 Richard Kenner <kenner@gnat.com>
34327 * misc.c (insn-codes.h): Now include.
34329 2001-12-17 Olivier Hainque <hainque@gnat.com>
34331 * a-except.adb: Preparation work for future integration of the GCC 3
34332 exception handling mechanism
34333 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
34334 to factorize previous code sequences and make them externally callable,
34335 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
34336 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
34337 Use the new notification routines.
34339 2001-12-17 Emmanuel Briot <briot@gnat.com>
34341 * prj-tree.ads (First_Choice_Of): Document the when others case
34343 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34345 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
34346 HI-E mode, in order to support Ravenscar profile properly.
34348 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
34349 mode on 32 bits targets.
34351 2001-12-17 Vincent Celier <celier@gnat.com>
34353 * fmap.adb: Initial version.
34355 * fmap.ads: Initial version.
34357 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
34358 If search is successfully done, add to mapping.
34360 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
34363 (Gnatmake): Add new local variable Mapping_File_Name.
34364 Create mapping file when using project file(s).
34365 Delete mapping file before exiting.
34367 * opt.ads (Mapping_File_Name): New variable
34369 * osint.adb (Find_File): Use path name found in mapping, if any.
34371 * prj-env.adb (Create_Mapping_File): New procedure
34373 * prj-env.ads (Create_Mapping_File): New procedure.
34375 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
34378 * usage.adb: Add entry for new switch -gnatem.
34380 * Makefile.in: Add dependencies for fmap.o.
34382 2001-12-17 Ed Schonberg <schonber@gnat.com>
34384 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
34385 is a package instantiation rewritten as a package body.
34386 (Install_Withed_Unit): Undo previous change, now redundant.
34388 2001-12-17 Gary Dismukes <dismukes@gnat.com>
34391 (Compute_Length): Move conversion to Unsigned to callers.
34392 (Get_Max_Size): Convert Len expression to Unsigned after calls to
34393 Compute_Length and Determine_Range.
34394 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
34395 Compute_Length and Determine_Range.
34396 Above changes fix problem with length computation for supernull arrays
34397 where Max (Len, 0) wasn't getting applied due to the Unsigned
34398 conversion used by Compute_Length.
34400 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34403 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
34404 System.Secondary_Stack.
34405 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
34407 Remove unused entity RE_Exception_Data.
34409 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
34411 * rident.ads (No_Secondary_Stack): New restriction.
34413 2001-12-17 Joel Brobecker <brobecke@gnat.com>
34415 * gnat_rm.texi: Fix minor typos. Found while reading the section
34416 regarding "Bit_Order Clauses" that was sent to a customer.
34417 Very interesting documentation!
34419 2001-12-17 Robert Dewar <dewar@gnat.com>
34421 * sem_case.adb (Choice_Image): Avoid creating improper character
34422 literal names by using the routine Set_Character_Literal_Name. This
34423 fixes bombs in certain error message cases.
34425 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34427 * a-reatim.adb: Minor reformatting.
34429 2001-12-17 Ed Schonberg <schonber@gnat.com>
34431 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
34432 case where the formal is an extension of another formal in the current
34433 unit or in a parent generic unit.
34435 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34437 * s-tposen.adb: Update comments. Minor reformatting.
34438 Minor code clean up.
34440 * s-tarest.adb: Update comments. Minor code reorganization.
34442 2001-12-17 Gary Dismukes <dismukes@gnat.com>
34444 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
34447 2001-12-17 Robert Dewar <dewar@gnat.com>
34449 * exp_attr.adb: Minor reformatting
34451 2001-12-17 Ed Schonberg <schonber@gnat.com>
34453 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
34454 derivations nested within a child unit: verify that the parent
34455 type is declared in an outer scope.
34457 2001-12-17 Robert Dewar <dewar@gnat.com>
34459 * sem_ch12.adb: Minor reformatting
34461 2001-12-17 Ed Schonberg <schonber@gnat.com>
34463 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
34464 warning if current unit is a predefined one, from which bodies may
34467 2001-12-17 Robert Dewar <dewar@gnat.com>
34469 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
34470 Fix header format. Add 2001 to copyright date.
34472 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
34473 which caused CE during compilation if checks were enabled.
34475 2001-12-17 Vincent Celier <celier@gnat.com>
34478 (Switches_Of): New function
34479 (Test_If_Relative_Path): New procedure
34480 (Add_Switches): Use new function Switches_Of
34481 (Collect_Arguments_And_Compile): Use new function Switches_Of.
34482 When using a project file, test if there are any relative
34483 search path. Fail if there are any.
34484 (Gnatmake): Only add switches for the primary directory when not using
34485 a project file. When using a project file, change directory to the
34486 object directory of the main project file. When using a project file,
34487 test if there are any relative search path. Fail if there are any.
34488 When using a project file, fail if specified executable is relative
34489 path with directory information, and prepend executable, if not
34490 specified as an absolute path, with the exec directory. Make sure
34491 that only one -o switch is transmitted to the linker.
34493 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
34496 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
34497 when using a non standard naming scheme.
34498 (Check_Ada_Naming_Scheme): Make sure that error messages
34499 do not raise exceptions.
34500 (Is_Illegal_Append): Return True if there is no dot in the suffix.
34501 (Language_Independent_Check): Check the exec directory.
34503 * prj.adb (Project_Empty): Add new component Exec_Directory
34506 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
34507 (Project_Data): Add component Exec_Directory
34509 * snames.adb: Updated to match snames.ads revision 1.215
34511 * snames.ads: Added Exec_Dir
34513 2001-12-17 Robert Dewar <dewar@gnat.com>
34515 * make.adb: Minor reformatting
34517 * prj-nmsc.adb: Minor reformatting
34519 * snames.adb: Updated to match snames.ads
34521 * snames.ads: Alphebetize entries for project file
34523 2001-12-17 Ed Schonberg <schonber@gnat.com>
34525 * trans.c (process_freeze_entity): Do nothing if the entity is a
34526 subprogram that was already elaborated.
34528 2001-12-17 Richard Kenner <kenner@gnat.com>
34530 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
34531 and Esize if object is referenced via pointer.
34533 2001-12-17 Ed Schonberg <schonber@gnat.com>
34535 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
34536 is discrete before analyzing choices.
34538 2001-12-17 Joel Brobecker <brobecke@gnat.com>
34540 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
34541 containing the name of the Ada Main Program. This string is mainly
34542 intended for the debugger.
34543 (Gen_Output_File_C): Do the equivalent change when generating a C file.
34545 2001-12-17 Robert Dewar <dewar@gnat.com>
34547 * ali.adb: Set new Dummy_Entry field in dependency entry
34549 * ali.ads: Add Dummy_Entry field to source dependency table
34551 * bcheck.adb (Check_Consistency): Ignore dummy D lines
34553 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
34555 * lib-writ.ads: Document dummy D lines for missing files.
34557 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
34559 2001-12-17 Robert Dewar <dewar@gnat.com>
34561 * ali.adb: Type reference does not reset current file.
34563 * ali.adb: Recognize and scan renaming reference
34565 * ali.ads: Add spec for storing renaming references.
34567 * lib-xref.ads: Add documentation for handling of renaming references
34569 * lib-xref.adb: Implement output of renaming reference.
34572 (Determine_Range): Document local variables
34573 (Determine_Range): Make sure Hbound is initialized. It looks as though
34574 there could be a real problem here with an uninitialized reference
34575 to Hbound, but no actual example of failure has been found.
34577 2001-12-17 Laurent Pautet <pautet@gnat.com>
34580 Fix comment of Shutdown_Socket and Close_Socket. These functions
34581 should not fail silently because if they are called twice, this
34582 probably means that there is a race condition in the user program.
34583 Anyway, this behaviour is consistent with the rest of this unit.
34584 When an error occurs, an exception is raised with the error message
34585 as exception message.
34587 2001-12-17 Robert Dewar <dewar@gnat.com>
34589 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
34590 that it happens before modification of Sloc values for -gnatD.
34592 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
34593 so that it happens before modification of Sloc values for -gnatD.
34595 * switch.adb: Minor reformatting
34597 2001-12-15 Richard Henderson <rth@redhat.com>
34599 * sem_ch7.adb: Wrap comment.
34601 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
34603 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
34604 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
34605 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
34606 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
34607 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
34608 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
34609 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
34610 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
34611 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
34612 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
34613 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
34614 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
34615 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
34616 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
34617 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
34618 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
34619 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
34620 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
34621 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
34622 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
34623 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
34624 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
34625 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
34626 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
34629 2001-12-14 Vincent Celier <celier@gnat.com>
34631 * osint.adb(Create_Debug_File): When an object file is specified,
34632 put the .dg file in the same directory as the object file.
34634 2001-12-14 Robert Dewar <dewar@gnat.com>
34636 * osint.adb: Minor reformatting
34638 * lib-xref.adb (Output_Instantiation): New procedure to generate
34639 instantiation references.
34641 * lib-xref.ads: Add documentation of handling of generic references.
34643 * ali.adb (Read_Instantiation_Ref): New procedure to read
34644 instantiation references
34646 * ali.ads: Add spec for storing instantiation references
34648 * bindusg.adb: Minor reformatting
34650 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34652 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34654 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34656 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34660 Add 2001 to copyright date
34661 Add entry for Latin-5 (Cyrillic ISO-8859-5)
34663 2001-12-14 Matt Gingell <gingell@gnat.com>
34665 * adaint.c: mktemp is a macro on Lynx and can not be used as an
34668 2001-12-14 Richard Kenner <kenner@gnat.com>
34670 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
34671 if operand is CONSTRUCTOR.
34673 2001-12-14 Ed Schonberg <schonber@gnat.com>
34675 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
34676 before emiting check on right-hand side, so that exception information
34679 2001-12-14 Richard Kenner <kenner@gnat.com>
34681 * utils.c (create_var_decl): Throw away initializing expression
34682 if just annotating types and non-constant.
34684 2001-12-14 Vincent Celier <celier@gnat.com>
34686 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
34689 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34691 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
34693 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34695 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
34697 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
34699 * ChangeLog: Remove piece of diff output.
34701 2001-12-14 Geert Bosch <bosch@gnat.com>
34703 * config-lang.in: Update copyright notice
34705 * layout.adb: Remove commented out code.
34707 * mdllfile.ads: Update copyright notice. Fix header format.
34709 * sem_case.ads: Likewise.
34711 * sem_ch3.adb: Minor reformatting.
34713 2001-12-12 Geert Bosch <bosch@gnat.com>
34715 * freeze.ads: Update copyright date.
34717 * g-comlin.ads: Minor reformatting.
34719 * gnat-style.texi: Fix typo.
34721 2001-12-12 Geert Bosch <bosch@gnat.com>
34723 * einfo.h: Regenerate.
34725 2001-12-12 Ed Schonberg <schonber@gnat.com>
34727 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
34728 on known node types, rather than untyped fields. Further cleanups.
34730 2001-12-12 Robert Dewar <dewar@gnat.com>
34733 (Save_Entity_Descendant): Minor comment update.
34734 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
34735 of an N_Attribute_Reference node. As per note below, this does not
34736 eliminate need for Associated_Node in attribute ref nodes.
34737 (Associated_Node): Documentation explicitly mentions attribute
34738 reference nodes, since this field is used in such nodes.
34740 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
34742 2001-12-12 Robert Dewar <dewar@gnat.com>
34744 * s-stalib.adb: Add more comments on with statements being needed
34746 * par-ch12.adb: Minor reformatting
34748 * prj-dect.ads: Fix copyright header
34750 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
34751 inputs fit in 32 bits, but the result still overflows.
34753 * s-fatgen.ads: Minor comment improvement
34755 2001-12-12 Ed Schonberg <schonber@gnat.com>
34757 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
34758 formal derived type, look for an inherited component from the full
34759 view of the parent, if any.
34761 2001-12-12 Robert Dewar <dewar@gnat.com>
34763 * checks.ads (Apply_Alignment_Check): New procedure.
34765 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
34766 ensure that the alignment of objects with address clauses is
34767 appropriate, and raise PE if not.
34769 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
34770 Exp_Pakd.Known_Aligned_Enough
34772 * mdllfile.ads: Minor reformatting
34774 * mlib-fil.ads: Minor reformatting
34776 2001-12-12 Ed Schonberg <schonber@gnat.com>
34778 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
34779 fix to any component reference if enclosing record has non-standard
34782 2001-12-12 Vincent Celier <celier@gnat.com>
34784 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
34787 2001-12-12 Ed Schonberg <schonber@gnat.com>
34789 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
34792 2001-12-12 Robert Dewar <dewar@gnat.com>
34794 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
34796 2001-12-12 Emmanuel Briot <briot@gnat.com>
34798 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
34799 and it adds dependencies to system.io.
34801 2001-12-12 Pascal Obry <obry@gnat.com>
34803 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
34806 2001-12-11 Ed Schonberg <schonber@gnat.com>
34808 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
34809 that is the parent of other generics, the instance body replaces the
34810 instance node. Retrieve the instance of the spec, which is the one
34811 that is visible in clients and within the body.
34813 2001-12-11 Vincent Celier <celier@gnat.com>
34815 * gnatmain.adb: Initial version.
34817 * gnatmain.ads: Initial version.
34819 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
34821 * snames.adb: Updated to match snames.ads.
34823 * snames.ads: Added Gnatstub.
34825 2001-12-11 Vincent Celier <celier@gnat.com>
34827 * prj-attr.adb (Initialization_Data): Change name from
34828 Initialisation_Data.
34830 2001-12-11 Emmanuel Briot <briot@gnat.com>
34832 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
34833 + and * applied to backslashed expressions like \r.
34835 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
34837 * g-os_lib.ads: String_List type added, Argument_List type is now
34838 subtype of String_List.
34840 2001-12-11 Robert Dewar <dewar@gnat.com>
34842 * g-os_lib.ads: Change copyright to FSF
34843 Add comments for String_List type
34845 2001-12-11 Vincent Celier <celier@gnat.com>
34847 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
34848 string to the buffer).
34850 2001-12-11 Ed Schonberg <schonber@gnat.com>
34852 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
34855 * sem_attr.adb: Simplify previous fix for Address.
34856 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
34857 to avoid anomalies where the bound of the type appears to raise
34860 2001-12-11 Robert Dewar <dewar@gnat.com>
34862 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
34865 2001-12-11 Ed Schonberg <schonber@gnat.com>
34867 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
34868 renamed unit before checking for recursive instantiations.
34870 2001-12-11 Emmanuel Briot <briot@gnat.com>
34872 * prj.ads: Add comments for some of the fields.
34874 2001-12-11 Robert Dewar <dewar@gnat.com>
34876 * lib-xref.adb (Output_Refs): Don't output type references outside
34877 the main unit if they are not otherwise referenced.
34879 2001-12-11 Ed Schonberg <schonber@gnat.com>
34881 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
34882 code and diagnose additional illegal uses
34884 * sem_util.adb (Is_Object_Reference): An indexed component is an
34885 object only if the prefix is.
34887 2001-12-11 Vincent Celier <celier@gnat.com>
34889 * g-diopit.adb: Initial version.
34891 * g-diopit.ads: Initial version.
34894 (Expand_Path): Avoid use of Unbounded_String
34895 (Find, Wildcard_Iterator): Moved to child package Iteration
34897 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
34899 2001-12-11 Robert Dewar <dewar@gnat.com>
34901 * sem_attr.adb: Minor reformatting
34903 2001-12-11 Ed Schonberg <schonber@gnat.com>
34905 * sem_ch3.adb: Clarify some ???.
34907 2001-12-11 Robert Dewar <dewar@gnat.com>
34909 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
34910 Exp_Pakd.Known_Aligned_Enough
34912 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
34913 version is moved to Exp_Ch13.
34915 2001-12-11 Robert Dewar <dewar@gnat.com>
34917 * einfo.ads: Minor reformatting
34919 * exp_ch5.adb: Add comment for previous.change
34921 * ali.adb: New interface for extended typeref stuff.
34923 * ali.ads: New interface for typeref stuff.
34925 * checks.adb (Apply_Alignment_Check): New procedure.
34927 * debug.adb: Add -gnatdM for modified ALI output
34929 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
34931 * lib-xref.adb: Extend generation of <..> notation to cover
34932 subtype/object types. Note that this is a complete rewrite,
34933 getting rid of the very nasty quadratic algorithm previously
34934 used for derived type output.
34936 * lib-xref.ads: Extend description of <..> notation to cover
34937 subtype/object types. Uses {..} for these other cases.
34938 Also use (..) for pointer types.
34940 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
34942 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
34943 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
34945 2001-12-11 Vincent Celier <celier@gnat.com>
34948 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
34949 Changed /BIND_ONLY to /ACTIONS=BIND
34950 Changed /LINK_ONLY to /ACTIONS=LINK
34952 2001-12-11 Ed Schonberg <schonber@gnat.com>
34954 * sem_ch8.adb (Find_Selected_Component): improved search for a
34955 candidate package in case of error.
34957 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
34958 chain back on scope stack before reinstalling use clauses.
34960 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
34961 is enabled, do not kill the code for the condition, to preserve
34964 2001-12-11 Robert Dewar <dewar@gnat.com>
34966 * checks.adb (Insert_Valid_Check): Apply validity check to expression
34967 of conversion, not to result of conversion.
34969 2001-12-11 Ed Schonberg <schonber@gnat.com>
34971 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
34972 before freezing parent. If the declarations are mutually recursive,
34973 an access to the current record type may be frozen before the
34974 derivation is complete.
34976 2001-12-05 Vincent Celier <celier@gnat.com>
34978 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
34979 -c /COMPILE_ONLY, -l /LINK_ONLY
34982 (Bind_Only): New Flag
34983 (Link_Only): New flag
34985 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
34988 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
34991 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
34992 (Gnatmake): Set the step flags. Only perform a step if the
34993 corresponding step flag is True.
34994 (Scan_Make_Arg): Reset the bind and link step flags when -u
34995 or -gnatc has been specified.
34997 2001-12-05 Ed Schonberg <schonber@gnat.com>
34999 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
35000 get bounds from right operand.
35002 * sem_eval.adb: Minor reformatting
35004 * exp_util.adb (Make_Literal_Range): use bound of literal rather
35005 than Index'First, its lower bound may be different from 1.
35007 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
35010 2001-12-05 Vincent Celier <celier@gnat.com>
35012 * prj-nmsc.adb Minor reformatting
35014 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
35015 set and libraries are not supported.
35017 2001-12-05 Ed Schonberg <schonber@gnat.com>
35019 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
35020 private view explicitly, so the back-end can treat as a global
35023 2001-12-05 Ed Schonberg <schonber@gnat.com>
35025 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
35026 unit, always replace instance node with new body, for ASIS use.
35028 2001-12-05 Vincent Celier <celier@gnat.com>
35030 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
35031 libraries are not supported and both attributes Library_Name and
35032 Library_Dir are specified.
35034 * prj-proc.adb (Expression): Set location of Result to location of
35037 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
35038 (prj-nmsc is now importing MLib.Tgt)
35040 * prj-proc.adb: Put the change indicated above that was forgotten.
35042 2001-12-05 Robert Dewar <dewar@gnat.com>
35044 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
35046 2001-12-05 Ed Schonberg <schonber@gnat.com>
35048 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
35049 constraint, introduce explicit subtype declaration and derive from it.
35051 * sem_ch3.adb: Minor reformatting
35053 2001-12-05 Robert Dewar <dewar@gnat.com>
35055 * checks.adb (Determine_Range): Increase cache size for checks.
35058 * exp_ch6.adb: Minor reformatting
35059 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
35060 a parameter whose root type is System.Address, since treating such
35061 subprograms as pure in the code generator is almost surely a mistake
35062 that will lead to unexpected results.
35064 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
35065 change handling of conversions.
35067 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
35069 2001-12-05 Ed Schonberg <schonber@gnat.com>
35071 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
35072 aggregate with static wrong size, attach generated Raise node to
35075 2001-12-05 Robert Dewar <dewar@gnat.com>
35077 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
35078 Fixes compilation abandoned bomb in B24009B.
35080 2001-12-05 Ed Schonberg <schonber@gnat.com>
35083 Document use of Associated_Node on Selected_Components.
35084 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
35085 to clarify use of untyped descendant fields.
35087 2001-12-05 Robert Dewar <dewar@gnat.com>
35089 * prj-dect.ads: Add ??? comment
35090 Add 2001 to copyright notice (was not done in after all)
35092 * prj-part.adb: Minor reformatting. Reword one awkward error message.
35094 * prj.ads: Minor reformatting throughout, and add some ??? comments
35096 * snames.ads: Minor reformatting
35098 2001-12-05 Geert Bosch <bosch@gnat.com>
35100 * snames.adb: Autoupdate
35102 2001-12-05 Vincent Celier <celier@gnat.com>
35104 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
35106 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
35108 * prj-env.adb: Minor comment changes (modifying -> extends).
35110 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
35112 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
35115 * prj.adb (Initialize): Change Modifying to Extends.
35117 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
35119 * prj.ads: Minor comment change (Modifying -> extending).
35121 * snames.ads: Change modifying to extends.
35123 2001-12-05 Robert Dewar <dewar@gnat.com>
35125 * sem_warn.adb: Remove stuff for conditionals, we are not going to
35128 * sem_warn.ads: Remove stuff for conditionals, we are not going to
35129 do this after all. Add 2001 to copyright notice
35131 2001-12-04 Geert Bosch <bosch@gnat.com>
35133 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
35135 2001-12-04 Robert Dewar <dewar@gnat.com>
35137 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
35138 location if we already have errors. Stops some cases of cascaded
35141 * errout.adb: Improve comment.
35143 2001-12-04 Robert Dewar <dewar@gnat.com>
35146 (Analyze_Formal_Type_Definition): Defend against Error.
35147 (Analyze_Formal_Subprogram): Defend against Error.
35149 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
35150 remove following semicolon if present. Removes cascaded error.
35152 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
35155 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
35156 exceptions equals 0.
35157 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
35158 Fixes PIWG E tests (which have to be run with -gnatL).
35160 2001-12-04 Robert Dewar <dewar@gnat.com>
35162 * einfo.ads: Minor reformatting
35164 2001-12-04 Ed Schonberg <schonber@gnat.com>
35166 * einfo.ads: Block_Node points to the identifier of the block, not to
35167 the block node itself, to preserve the link when the block is
35168 rewritten, e.g. within an if-statement with a static condition.
35170 * inline.adb (Cleanup_Scopes): recover block statement from block
35171 entity using new meaning of Block_Node.
35173 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
35174 identifier of block node, rather than to node itself.
35176 2001-12-04 Gary Dismukes <dismukes@gnat.com>
35179 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
35180 (Discrimify): Go back to setting the Etypes of the selected component
35181 because the Vname component does not exist at this point and will
35182 fail name resolution. Also set Analyzed.
35183 Remove with and use of Sem_Res.
35185 2001-12-04 Arnaud Charlet <charlet@gnat.com>
35187 * Makefile.in: (HIE_SOURCES): add s-fat*.
35189 2001-12-04 Robert Dewar <dewar@gnat.com>
35192 (Compile_Time_Known_Attribute): New procedure.
35193 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
35194 proper range check.
35196 2001-12-04 Ed Schonberg <schonber@gnat.com>
35198 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
35199 processing discriminants to diagnose illegal default values.
35201 2001-12-04 Ed Schonberg <schonber@gnat.com>
35203 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
35204 access discriminant within a type extension that constrains its
35205 parent discriminants.
35207 2001-12-04 Ed Schonberg <schonber@gnat.com>
35209 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
35210 is malformed, use instance of Any_Id to allow analysis to proceed.
35212 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
35213 type definition is illegal.
35214 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
35217 2001-12-04 Ed Schonberg <schonber@gnat.com>
35219 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
35222 2001-12-04 Robert Dewar <dewar@gnat.com>
35224 * errout.adb: Minor reformatting
35226 2001-12-04 Robert Dewar <dewar@gnat.com>
35228 * exp_util.adb: Minor reformatting from last change
35230 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
35231 which is a rewriting of an expression, traverse the original
35232 expression to remove warnings that may have been posted on it.
35234 2001-12-04 Ed Schonberg <schonber@gnat.com>
35236 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
35237 record that has other packed components.
35239 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
35241 * adaint.c: Minor cleanups.
35243 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
35245 * adaint.c: Do not use utime.h on vxworks.
35247 2001-12-04 Arnaud Charlet <charlet@gnat.com>
35249 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
35250 more confusion than it solves.
35252 2001-12-04 Geert bosch <bosch@gnat.com>
35254 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
35256 2001-12-04 Geert Bosch <bosch@gnat.com>
35258 * Makefile.in (update-sources): New target.
35259 For use by gcc_release script.
35261 2001-12-04 Ed Schonberg <schonber@gnat.com>
35263 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
35264 a configuration pragma, it is now legal wherever a pragma can appear.
35266 2001-12-04 Zack Weinberg <zack@codesourcery.com>
35268 * Makefile.in: Don't set ALL. Delete @cross_defines@,
35269 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
35270 is now @CROSS@ -DIN_GCC; update comment.
35272 2001-12-04 Robert Dewar <dewar@gnat.com>
35274 * einfo.adb (Has_Pragma_Pure_Function): New flag.
35275 Fix problem that stopped ceinfo from working
35277 * einfo.ads (Has_Pragma_Pure_Function): New flag.
35279 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
35281 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
35284 (File_Time_Stamp): New procedure.
35285 (Preserve_Mode): New boolean.
35286 (Write_Unit): Pass time stamp.
35287 Implement -p switch (preserve time stamps).
35289 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
35291 * gnatchop.adb: Do usage info for -p switch
35293 * adaint.h (__gnat_set_file_time_name): New function
35295 * adaint.c (__gnat_set_file_time_name): Implement
35297 * adaint.h: Fix typo
35299 2001-12-03 Robert Dewar <dewar@gnat.com>
35301 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
35302 have Associated_Node.
35304 2001-12-03 Robert Dewar <dewar@gnat.com>
35306 * prj-proc.adb: Minor reformatting
35308 * make.adb: Minor reformatting
35310 2001-12-03 Geert Bosch <bosch@gnat.com>
35312 * make.adb: Minor reformatting.
35314 2001-12-03 Robert Dewar <dewar@gnat.com>
35316 * sem_ch12.adb: Minor reformatting
35318 2001-12-03 Ed Schonberg <schonber@gnat.com>
35320 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
35321 push Standard on the stack before analyzing the instance body,
35322 in order to have a clean visibility environment.
35324 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
35326 2001-12-03 Ed Schonberg <schonber@gnat.com>
35328 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
35329 instantiation of a body that contains an inlined body.
35331 2001-12-03 Ed Schonberg <schonber@gnat.com>
35334 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
35335 to prevent freezing within formal packages.
35336 (Freeze_Subprogram_Body): If body comes from another instance that
35337 appeared before its own body, place freeze node at end of current
35338 declarative part, to prevent a back-end crash.
35339 (Inline_Instance_Body): Handle properly a package instance within
35340 a subprogram instance that is a child unit.
35342 2001-12-01 Graham Stott <grahams@redhat.com>
35344 * Makefile.in (misc.o): Add missing $(srcdir) prefix
35345 and add optabs.h dependency.
35347 * misc.c: Include optabs.h
35348 (gnat_tree_code_type): Make static and const.
35349 (gnat_tree_code_length): Likewise.
35350 (gnat_tree_code_name): Likewise.
35351 (update_setjmp_buf): Obtain operands mode from insn_data.
35353 2001-11-29 Richard Henderson <rth@redhat.com>
35355 * init.c: Remove obsolete dwarf2 frame.h section.
35357 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
35359 * Make-lang.in (ada.generated-manpages): New dummy target.
35361 2001-11-29 Ed Schonberg <schonber@gnat.com>
35363 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
35364 into Command, an array conversion is illegal here. Uncovered by
35367 2001-11-28 Geert Bosch <bosch@gnat.com>
35369 * init.c: Minor whitespace changes.
35371 2001-11-28 Doug Rupp <rupp@gnat.com>
35373 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
35376 2001-11-28 Zack Weinberg <zack@codesourcery.com>
35378 * misc.c (gnat_expand_constant): Move declaration above
35379 definition of lang_hooks.
35380 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
35381 (gnat_init): lang_expand_constant no longer exists.
35383 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
35384 always have vprintf.
35385 (gnat_init): Always call set_internal_error_function.
35387 2001-11-27 Andreas Jaeger <aj@suse.de>
35389 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
35391 2001-11-27 Laurent Guerby <guerby@acm.org>
35393 * Makefile.in: Regenerate Ada dependencies.
35395 2001-11-26 Richard Henderson <rth@redhat.com>
35397 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
35398 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
35399 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
35401 2001-11-25 Laurent Guerby <guerby@acm.org>
35403 * sysdep.c (rts_get_*): Fix style.
35405 2001-11-19 Laurent Guerby <guerby@acm.org>
35407 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
35408 since it is of no apparent use and cause warnings.
35410 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
35412 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
35414 (gnat_init): Don't return NULL.
35415 (finish_parse): Remove.
35417 2001-11-17 Laurent Guerby <guerby@acm.org>
35419 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
35420 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
35421 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
35422 * lang-spec.h: Add missing struct field to silence warnings.
35423 * sysdep.c (rts_get_*): Provide K&R prototype.
35424 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
35425 * traceback.c (Unlock_Task, Lock_Task): Likewise.
35426 * tracebak.c (__gnat_backtrace): Remove unused variable.
35427 * utils.c (end_subprog_body): Move to K&R style.
35429 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35431 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
35433 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
35435 * misc.c (gnat_init): Change prototype. Include the
35436 functionality of the old init_parse and init_decl_processing.
35437 (gnat_init_decl_processing): New prototype.
35438 (init_parse): Remove.
35439 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
35441 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
35443 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
35444 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
35445 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
35446 set_yydebug): Remove.
35448 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
35450 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
35451 (struct lang_hooks): Constify.
35452 (language_string, lang_identify): Remove.
35453 * utils.c (init_decl_processing): Update.
35455 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
35457 * misc.c: Include langhooks-def.h.
35458 * Makefile.in: Update.
35460 2001-10-30 Robert Dewar <dewar@gnat.com>
35463 (Check_Identifier): Rewrite circuit to be compatible with use of letters
35464 in the upper half of ASCII.
35465 (Check_Identifier): Minor reformatting
35467 2001-10-30 Geert Bosch <bosch@gnat.com>
35469 * (Associated_Node, Set_Associated_Node): Do not check for
35472 2001-10-30 Robert Dewar <dewar@gnat.com>
35474 * a-reatim.ads: Minor reformatting
35476 2001-10-30 Robert Dewar <dewar@gnat.com>
35478 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
35479 undocumented declarations.
35481 2001-10-30 Pascal Obry <obry@gnat.com>
35483 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
35484 to the binder and linker.
35487 * mdll.ads: Fix layout. Update copyright notice.
35489 * mdll.adb: Fix layout. Update copyright notice.
35491 2001-10-30 Robert Dewar <dewar@gnat.com>
35493 * usage.adb: Minor fix to output for -gnaty.
35495 2001-10-30 Ed Schonberg <schonber@gnat.com>
35497 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
35498 to accommodate all its possible values.
35500 * a-reatim.adb (Split): Special-case handling of Time_Span_First
35501 and of small absolute values of T.
35503 2001-10-30 Richard Kenner <kenner@gnat.com>
35505 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
35506 set_mem_attributes since not needed and wrong if RESULT if a REG;
35507 fixes ACATS failures.
35509 2001-10-30 Geert Bosch <bosch@gnat.com>
35511 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
35512 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
35514 2001-10-30 Robert Dewar <dewar@gnat.com>
35516 * bindusg.adb: Undocument -f switch.
35518 * gnatcmd.adb: Remove /FULL_ELABORATION.
35520 * opt.ads (Force_RM_Elaboration_Order): Document that this is
35523 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
35525 * gnatbind.adb: Minor update of warning msg.
35527 2001-10-30 Vincent Celier <celier@gnat.com>
35529 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
35530 for project file switches (-P (/PROJECT_FILE=),
35531 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
35534 2001-10-30 Geert Bosch <bosch@gnat.com>
35536 * decl.c: Minor whitespace fixes.
35538 2001-10-30 Richard Kenner <kenner@gnat.com>
35540 * utils2.c (build_allocator): Test for SIZE overflow in array case too
35542 2001-10-30 Geert Bosch <bosch@gnat.com>
35544 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
35545 Found due to GCC 3.0 warning of using uninitialized value.
35548 (Get_Max_Size): Use variant record for tracking value/expression.
35549 Makes logic clearer and prevents warnings for uninitialized variables.
35550 (Layout_Array_Type): Use variant record for tracking value/expression.
35551 Makes logic clearer and prevents warnings for uninitialized variables.
35553 2001-10-30 Robert Dewar <dewar@gnat.com>
35555 * lib.adb: Minor reformatting
35557 * s-taprop.ads: Minor reformatting
35559 2001-10-29 Laurent Guerby <guerby@acm.org>
35562 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
35564 (_gnat_error_handler): Make MSG const.
35566 2001-10-29 Richard Kenner <kenner@gnat.com>
35568 * sysdep.c: Fix localtime_r problem on LynxOS.
35569 Also remove #elif to avoid warnings.
35571 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
35574 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
35576 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
35578 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
35579 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
35580 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
35581 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
35582 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
35583 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
35584 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
35585 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
35586 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
35587 types.ads, urealp.adb: Fix spelling errors.
35589 2001-10-27 Laurent Guerby <guerby@acm.org>
35591 * trans.c (gigi): Fix non determinism leading to bootstrap
35592 comparison failures for debugging information.
35594 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
35596 * gnat_rm.texi: Use @./@: where appropriate.
35598 2001-10-26 Robert Dewar <dewar@gnat.com>
35600 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
35602 2001-10-26 Richard Kenner <kenner@gnat.com>
35604 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
35606 2001-10-26 Richard Kenner <kenner@gnat.com>
35608 * decl.c (validate_size): Modify message for bad size to avoid
35609 implication that compiler is modifying the size.
35611 2001-10-26 Robert Dewar <dewar@gnat.com>
35613 * prj-util.adb: Minor reformatting. Fix bad header format.
35615 2001-10-26 Robert Dewar <dewar@gnat.com>
35617 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
35619 * sinfo.ads: Clarify use of Associated_Node (documentation only).
35621 * sem_ch12.adb: Change Node4 to Associated_Node. Change
35622 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
35623 much more narrowly in places where needed. These are cleanups.
35625 2001-10-26 Joel Brobecker <brobecke@gnat.com>
35627 * 5zosinte.ads (null_pthread): new constant.
35630 (Initialize_TCB): Initialize thread ID to null, to be able to verify
35631 later that this field has been set.
35632 (Finalize_TCB): ditto.
35633 (Suspend_Task): Verify that the thread ID is not null before using it.
35634 (Resume_Task): ditto.
35637 (Resume_All_Tasks): Lock the tasks list before using it.
35638 (Suspend_All_Tasks): ditto.
35640 2001-10-26 Richard Kenner <kenner@gnat.com>
35642 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
35643 Make constant variant of designated type for Is_Access_Constant.
35644 Call update_pointer_to with main variant.
35646 * trans.c (process_freeze_entity, process_type):
35647 Call update_pointer_to on main variant.
35649 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
35650 If main variant, update all other variants.
35652 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
35655 2001-10-26 Robert Dewar <dewar@gnat.com>
35657 * prj-util.adb: Minor reformatting
35659 2001-10-26 Robert Dewar <dewar@gnat.com>
35661 * prj-util.adb: Minor reformatting
35663 2001-10-26 Robert Dewar <dewar@gnat.com>
35665 * prj-attr.adb: Minor reformatting throughout
35667 2001-10-26 Robert Dewar <dewar@gnat.com>
35669 * prj-attr.ads: Minor reformatting
35670 Add ??? comment (this whole spec has almost no comments)
35672 2001-10-26 Vincent Celier <celier@gnat.com>
35674 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
35675 ("//") that precede the drive letter on Interix.
35677 2001-10-26 Geert Bosch <bosch@gnat.com>
35679 * gnat_rm.texi: Add GNAT Reference Manual.
35681 2001-10-25 Robert Dewar <dewar@gnat.com>
35683 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
35684 is Error. Similar change for other renaming cases.
35686 2001-10-25 Robert Dewar <dewar@gnat.com>
35688 * s-atacco.ads: Add pragma Inline_Always for functions.
35689 Fix header format. Add copyright 2001
35691 2001-10-25 Ed Schonberg <schonber@gnat.com>
35693 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
35694 return Error rather than Empty so that analysis can proceed.
35696 2001-10-25 Ed Schonberg <schonber@gnat.com>
35698 * sem_util.adb (Enter_Name): better handling of cascaded error
35699 messages when a unit appears in its own context.
35701 2001-10-25 Ed Schonberg <schonber@gnat.com>
35703 * sem_util.adb (Defining_Entity): in case of error, attach created
35704 entity to specification, so that semantic analysis can proceed.
35706 2001-10-25 Robert Dewar <dewar@gnat.com>
35709 (Defining_Entity): Deal with Error.
35710 (Process_End_Label): Deal with bad end label for.
35712 2001-10-25 Ed Schonberg <schonber@gnat.com>
35714 * sem_elab.adb (Check_A_Call): refine message when call is in an
35715 instance but callee is not declared in the generic unit.
35717 2001-10-25 Ed Schonberg <schonber@gnat.com>
35719 * sem_elab.adb (Check_A_Call): check for renaming before finding the
35720 enclosing unit, which may already be different from the calling unit.
35722 2001-10-25 Geert Bosch <bosch@gnat.com>
35724 * 4gintnam.ads: fix header format.
35726 2001-10-25 Ed Schonberg <schonber@gnat.com>
35728 * sem_res.adb (Resolve_Call): if the call is actually an indexing
35729 operation on the result of a parameterless call, perform elaboration
35730 check after the node has been properly rewritten.
35732 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
35733 inlined within the generic tree, the defining identifier is not a
35736 2001-10-25 Ed Schonberg <schonber@gnat.com>
35738 * sem_res.adb (Resolve): special-case resolution of Null in an
35739 instance or an inlined body to avoid view conflicts.
35741 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
35742 compatibility by retrieving the access type of the generic copy.
35744 2001-10-25 Robert Dewar <dewar@gnat.com>
35747 (Analyze_Number_Declaration): Handle error expression.
35748 (Signed_Integer_Type_Declaration): Handle error bound.
35749 (Analyze_Subtype_Indication): Handle error range.
35751 * sem_util.adb (Get_Index_Bounds): Check for Error.
35753 2001-10-25 Robert Dewar <dewar@gnat.com>
35755 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
35756 in no run time mode.
35758 2001-10-25 Pascal Obry <obry@gnat.com>
35760 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
35761 mode case for ALLOC case.
35763 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
35764 all platforms. Improvement of last change.
35766 2001-10-25 Robert Dewar <dewar@gnat.com>
35768 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
35770 2001-10-25 Geert Bosch <bosch@gnat.com>
35772 * osint.adb (Is_Relative): Remove duplicate.
35774 2001-10-25 Pascal Obry <obry@gnat.com>
35776 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
35777 pathnames in UNIX and DOS style with drive letter.
35778 (Is_Relative): new routine.
35780 * osint.adb: Minor reformatting
35782 * osint.adb (Is_Relative): implementation using
35783 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
35785 2001-10-25 Pascal Obry <obry@gnat.com>
35787 * g-dirope.adb (Basename): correctly compute offset between the
35788 original Path and the translated one.
35790 * g-dirope.adb: (Base_Name): add some comments.
35792 2001-10-25 Robert Dewar <dewar@gnat.com>
35794 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
35795 in HIE mode, avoids compilation abandoned message
35797 * exp_imgv.adb: Correct typo in previous change
35799 * exp_imgv.adb: Correct typo in previous change (not my day!)
35801 2001-10-25 Robert Dewar <dewar@gnat.com>
35803 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
35805 2001-10-25 Pascal Obry <obry@gnat.com>
35807 * g-awk.ads: Move all pragma inlines next to the routine
35808 declarations. This is more uniform with other GNAT spec.
35810 2001-10-22 Geert Bosch <bosch@gnat.com>
35812 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
35814 2001-10-19 Geert Bosch <bosch@gnat.com>
35816 * Makefile.in (tools, gnattools): Remove gnatmem.
35818 2001-10-17 Richard Henderson <rth@redhat.com>
35820 * Makefile.in (misc.o): Depend on langhooks.h.
35821 * misc.c: Include it.
35822 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
35823 (LANG_HOOKS_DECODE_OPTION): New.
35824 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
35826 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
35828 * trans.c (tree_transform): Adjust to recent change in
35829 expand_asm_operands to implement named asm operands.
35831 2001-10-11 Ed Schonberg <schonber@gnat.com>
35833 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
35834 renaming of discriminant for mutable record type.
35836 2001-10-11 Robert Dewar <dewar@gnat.com>
35838 * validsw.adb: Properly save -gnatVn status.
35840 2001-10-11 Robert Dewar <dewar@gnat.com>
35842 * usage.adb: Add lines for V switch.
35844 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
35845 (/VALIDITY_CHECKING).
35847 2001-10-11 Ed Schonberg <schonber@gnat.com>
35849 * sem_type.adb (Add_One_Interp): an operator for a type declared in
35850 an extension of System is known to be visible.
35852 2001-10-11 Ed Schonberg <schonber@gnat.com>
35854 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
35855 properly. Fixes regression on ACATS C34005G.
35857 2001-10-11 Robert Dewar <dewar@gnat.com>
35859 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
35860 loop in generic instance, since this is likely not very useful.
35862 2001-10-11 Robert Dewar <dewar@gnat.com>
35864 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
35865 the error message for high integrity mode.
35867 * rtsfind.adb (RTE): Give message if we try to find an entity that
35868 is not available in high integrity mode.
35871 (OK_To_Use_In_HIE_Mode): New array.
35872 (RTE): May return Empty in high integrity mode.
35874 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
35875 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
35877 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
35878 unit if not inlined always and in no runtime mode. Fixes problem
35879 caused by new Rtsfind changes.
35881 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
35884 * rtsfind.adb (RTE): Make sure we do not try to load unit after
35885 giving message for entity not available in high integrity mode.
35887 2001-10-11 Pascal Obry <obry@gnat.com>
35889 * impunit.adb: Add GNAT.CRC32.
35891 2001-10-11 Ed Schonberg <schonber@gnat.com>
35893 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
35894 properly the case where one universal operand in a non-static
35895 exponentiation of a real literal.
35897 2001-10-11 Ed Schonberg <schonber@gnat.com>
35899 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
35900 clause, return the gobal finalization list, for lack of anthing else.
35902 2001-10-11 Ed Schonberg <schonber@gnat.com>
35904 * exp_ch7.adb (Make_Transient_Block): if statement is within
35905 exception handler, always use new transient scope to place Clean
35908 2001-10-11 Pascal Obry <obry@gnat.com>
35911 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35912 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35913 (GNATLS_RTL_OBJS): add g-crc32.o
35914 (GNATMAKE_RTL_OBJS): add g-crc32.o
35917 (CRC_Match): new function.
35918 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
35919 instead of the previous simple checksum algorithm.
35920 (Time_Stamp_Mismatch): use CRC_Match for comparison.
35921 (Set_Source_Table): idem.
35924 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
35925 instead of simple checksum.
35926 (CRC_Match): new function.
35927 (CRC_Error): new constant.
35929 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
35930 a CRC now and not a simple checksum. A CRC uses lower-case hex
35931 letters, fixes ambiguity in parsing.
35933 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
35934 is what this variable will store.
35936 * bcheck.adb: Change reference to chechsum in comments by CRC.
35937 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
35938 rename All_Checksum_Match to All_CRC_Match. Change due to API
35939 renaming since now GNAT does not use a simple checksum but a
35940 CRC using GNAT.CRC32.
35942 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
35943 now and not anymore a simple checksum.
35945 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
35948 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
35951 (Restore_Scan_State): rename Checksum to CRC.
35952 (Save_Scan_State): idem.
35956 (Checksum): rename to CRC.
35957 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
35959 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
35960 GNAT.CRC32). Update copyright notice.
35962 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
35963 GNAT.CRC32). Update copyright notice.
35966 (Accumulate_Checksum): removed.
35967 (Update): new procedure. Add a wide-character into the CRC.
35970 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
35971 (Load_File): fix initialization of S (change Source_Checksum to
35974 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
35975 Source_CRC in S initialization.
35977 * sinput.adb (Source_Checksum): renamed to Source_CRC.
35979 * sinput.ads (Source_Checksum): renamed to Source_CRC.
35980 Update comments for the CRC.
35982 * types.adb (Hex): Use lowercase for the letter part.
35984 * types.ads (Get_Hex_String): Returns the hexadecimal representation
35985 for a word. This is currently used only for CRC. In previous version,
35986 the checksum was using a representation with all letter being
35987 upper-case. With the new implementation (using CRC) we do not remove
35988 the 32th bit of the CRC, so we can have an upper-case starting letter
35989 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
35990 It is ambigous since the CRC was optional and could be followed by
35991 options like EB, EE. So now this routines uses lower-case letter for
35992 the hexadecimal representation. Strange enough only lower case letters
35993 where checked in Scan_ALI (even if this was not a possible case).
35995 * gnatvsn.ads (Library_Version): changed to 3.15a.
35997 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
36000 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
36003 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
36004 Add 2001 to copyright notice
36005 (Accumulate_Checksum): Modify to use System.CRC32.
36007 * ali-util.ads: Redo changes of previous revision to continue to use
36008 the word Checksum. Add 2001 to copyright notice.
36010 * ali.adb: Undo some of previous changes, not needed.
36011 Keep the change for lower case letters in the checksum.
36013 * ali.ads: Undo previous change not needed.
36015 * bcheck.adb: Undo most of previous change, not needed.
36016 But do use Checksums_Match for checksum comparison.
36018 * gnatls.adb: Undo most of previous change, not needed.
36019 But do use Checksums_Match for comparing checksums.
36021 * lib-load.adb: Undo previous change, not needed.
36023 * lib-writ.adb: Undo previous change, not needed.
36025 * lib-writ.ads: Document that checksums use lower case,
36026 not upper case letters.
36028 * scans.adb: Undo previous change, not needed
36030 * scans.ads: Undo previous change, not needed.
36032 * scn-nlit.adb: Undo previous changes, not needed.
36034 * scn-slit.adb: Undo previous change, not needed. Fix header format.
36037 (Accumulate_Checksum): Use System.CRC32.
36038 (Initialize_Checksum): New procedure.
36039 Remove other changes of previous revision.
36041 * sinput-p.adb: Undo previous change, not needed.
36043 * sinput.adb: Undo previous change, not needed.
36045 * sinput-l.adb: Undo previous change, not needed.
36047 * sinput.ads: Undo previous change, not needed. Keep only comment
36048 on new checksum algorithm
36050 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
36051 Also remove a-tags and a-stream from GNAT sources.
36053 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
36055 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
36057 2001-10-11 Geert Bosch <bosch@gnat.com>
36059 * einfo.h: Regenerate.
36061 * nmake.ads: Regenerate.
36063 * nmake.adb: Regenerate.
36065 * sinfo.h: Regenerate.
36067 * treeprs.adb: Regenerate.
36069 2001-10-10 Geert Bosch <bosch@gnat.com>
36071 * gnat-style.texi: New file describing coding guidelines for Ada.
36073 2001-10-10 Ed Schonberg <schonber@gnat.com>
36075 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
36078 2001-10-10 Geert Bosch <bosch@gnat.com>
36080 * snames.ads: Add new names for project facility.
36082 * snames.adb: Update to reflect snames.ads changes.
36084 * snames.h: Update to reflect snames.ads changes.
36086 2001-10-10 Vincent Celier <celier@gnat.com>
36089 (Add_Switches): reflect the changes for the switches attributes
36090 Default_Switches indexed by the programming language,
36091 Switches indexed by the file name.
36092 (Collect_Arguments_And_Compile): Idem.
36093 Reflect the attribute name changes.
36096 (Initialisation_Data): Change the names of some packages and
36098 (Initialize): process case insensitive associative arrays.
36101 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
36104 (Parse_Attribute_Declaration): For case insensitive associative
36105 arrays, set the index string to lower case.
36108 Reflect the changes of the project attributes.
36111 Replace Check_Naming_Scheme by Ada_Check and
36112 Language_Independent_Check.
36115 Replaced Check_Naming_Scheme by 2 procedures:
36116 Ada_Check and Language_Independent_Check.
36119 (Process_Declarative_Items): For case-insensitive associative
36120 arrays, set the index string to lower case.
36121 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
36122 Prj.Nmsc.Check_Naming_Scheme.
36125 (Case_Insensitive): New function
36126 (Set_Case_Insensitive): New procedure
36129 (Case_Insensitive): New function
36130 (Set_Case_Insensitive): New procedure
36131 (Project_Node_Record): New flag Case_Insensitive.
36134 (Value_Of): new function to get the string value of a single
36135 string variable or attribute.
36138 (Value_Of): new function to get the string value of a single
36139 string variable or attribute.
36142 (Ada_Default_Spec_Suffix): New function
36143 (Ada_Default_Impl_Suffix): New function
36144 Change definitions of several constants to reflect
36145 new components of record types.
36148 (Naming_Data): Change several components to reflect new
36149 elements of naming schemes.
36150 (Project_Data): New flags Sources_Present and
36151 Language_Independent_Checked.
36152 (Ada_Default_Spec_Suffix): New function.
36153 (Ada_Default_Impl_Suffix): New function.
36156 Modification of predefined names for project manager: added
36157 Implementation, Specification_Exceptions, Implementation_Exceptions,
36158 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
36159 Default_Switches, _Languages, Builder, Cross_Reference,
36160 Finder. Removed Body_Part, Specification_Append, Body_Append,
36161 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
36164 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
36167 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
36168 not that it is Nil_Variable_Value.
36170 * prj.ads: Add ??? for uncommented declarations
36172 2001-10-10 Ed Schonberg <schonber@gnat.com>
36174 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
36175 constant, do not indicate possible modification, so that gigi can
36176 treat it as a bona fide constant.
36178 2001-10-10 Robert Dewar <dewar@gnat.com>
36180 * sem_prag.adb: Add processing for pragma External.
36182 * snames.ads: Add entry for pragma External.
36184 * par-prag.adb: Add pragma External.
36186 * snames.adb: Updated to match snames.ads.
36188 2001-10-10 Ed Schonberg <schonber@gnat.com>
36190 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
36191 a dynamic task if the allocator appears in an indexed assignment
36192 or selected component assignment.
36194 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
36195 For a dynamic task in an assignment statement, use target of
36196 assignment to generate meaningful name.
36198 2001-10-10 Ed Schonberg <schonber@gnat.com>
36200 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
36203 * einfo.ads: Body_Entity is also defined for generic package.
36204 Documentation change only
36206 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
36207 others_choice for a discriminated component initialization,
36208 convert discriminant references into the corresponding discriminals.
36210 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
36211 only if original type is private and expression has to be wrapped
36215 (Apply_Constraint_Check): Do not perform length check
36216 if expression is an aggregate with only an others_choice.
36217 (Length_N_Cond): two references to the same in_parameter
36218 (typically the discriminal in an init_proc) denote the same value.
36219 Two useful optimization uncovered by bugfixes above.
36221 2001-10-10 Robert Dewar <dewar@gnat.com>
36223 * xeinfo.adb: Change int to char in translation of enumeration types.
36224 This fixes a problem in the C representation of component alignment.
36225 Add 2001 to copyright notice
36227 2001-10-10 Richard Kenner <kenner@gnat.com>
36229 * decl.c: (validate_size): Do check size of object of integral type
36230 if it is a packed array type.
36232 2001-10-10 Richard Kenner <kenner@gnat.com>
36234 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
36235 VAR_DECL for constant if not Is_Public but -O0.
36237 2001-10-10 Richard Kenner <kenner@gnat.com>
36239 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
36241 2001-10-10 Geert Bosch <bosch@gnat.com>
36243 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
36244 use '/' as switch character, allowing for absolute file names.
36246 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
36248 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
36251 2001-10-08 Geert Bosch <bosch@gnat.com>
36253 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
36254 Automatically build utilities when files need to be regenerated.
36256 2001-10-08 Geert Bosch <bosch@gnat.com>
36258 * xsnames.adb: New utility for updating snames.ads and snames.adb
36260 2001-10-08 Zack Weinberg <zack@codesourcery.com>
36262 * Make-lang.in (ADAFLAGS): Add -W -Wall.
36263 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
36264 (gnat1): Also depend on attribs.o.
36265 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
36266 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
36267 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
36268 (ADAFLAGS): Add -W -Wall.
36269 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
36272 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
36273 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
36274 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
36275 Use $(ADAC), not $(CC), as compilation command.
36277 (gnattools): Depend directly on tools to build, don't use
36279 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
36281 * einfo.h, sinfo.h: New files (autogenerated).
36283 2001-10-08 Richard Henderson <rth@redhat.com>
36285 * comperr.adb (Abort_In_Progress): New.
36286 (Compiler_Abort): Use it to prevent recursion.
36288 2001-10-08 Robert Dewar <dewar@gnat.com>
36290 * atree.adb: Set Error_Posted in Error node, helps error recovery.
36292 * par-endh.adb (Output_End_Expected): We should also not test
36293 Error_Posted on the Error node, since now it is always set.
36295 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
36296 to help error recovery. Part of general work on 9407-004.
36298 * par.adb: Add ??? for misuse of error
36301 (Resolve): Defend against Error, fixes 9407-003.
36302 (Resolve_Discrete_Subtype_Indication): Defend against Error.
36304 * sinfo.ads (N_Error): Now has Etype field (which will be set
36305 to Any_Type to help error recovery).
36307 2001-10-08 Richard Kenner (kenner@gnat.com)
36309 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
36310 Consistently set MEM attributes from expression; fixes
36311 bootstrap failure on x86.
36313 2001-10-08 Geert Bosch (bosch@gnat.com)
36315 * 5oosinte.adb: Add 2001 to copyright notice.
36317 2001-10-08 Geert Bosch (bosch@gnat.com)
36319 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
36321 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
36323 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
36325 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
36327 2001-10-05 Geert Bosch (bosch@gnat.com)
36329 * adaint.h: Small formatting fix.
36331 2001-10-04 Geert Bosch <bosch@gnat.com>
36333 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
36334 Arg is int, not FILE *, in dummy version of functions.
36336 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
36337 Arg is int, not FILE *.
36339 2001-10-04 Geert Bosch <bosch@gnat.com>
36341 * 3lsoccon.ads: Added file, missed with initial check ins.
36343 * 4lintnam.ads: Fix header format.
36344 Change Linux to GNU/Linux.
36346 * 5iosinte.adb: Change Linux to GNU/Linux.
36348 * 5iosinte.ads: Change Linux to GNU/Linux.
36350 * 5itaprop.adb: Change Linux to GNU/Linux.
36352 * 5itaspri.ads: Change Linux to GNU/Linux.
36353 Update copyright notice.
36355 * 5lintman.adb: Change Linux to GNU/Linux.
36357 * 5lml-tgt.adb: Change Linux to GNU/Linux.
36359 * 5losinte.ads: Change Linux to GNU/Linux.
36361 * 5lsystem.ads: Change Linux to GNU/Linux.
36363 * 5qosinte.adb: Change Linux to GNU/Linux.
36365 * 5qosinte.ads: Change Linux to GNU/Linux.
36367 * 5qparame.ads: Change Linux to GNU/Linux.
36369 * 5qtaprop.adb: Change Linux to GNU/Linux.
36371 * 5qtaspri.ads: Change Linux to GNU/Linux.
36372 Add 2001 to copyright notice.
36374 * 5vintman.ads: Change Linux to GNU/Linux.
36375 Fix header format. Add 2001 to copyright notice.
36377 * g-soccon.ads: Change Linux to GNU/Linux.
36379 * g-trasym.ads: Change Linux to GNU/Linux.
36380 Add 2001 to copyright notice.
36382 * memtrack.adb: Change Linux to GNU/Linux.
36384 * s-intman.ads: Change Linux to GNU/Linux.
36385 Add 2001 to copyright notice. Fix header format.
36387 * s-stache.adb: Change Linux to GNU/Linux.
36389 * adaint.c: Change Linux to GNU/Linux.
36391 * cio.c: Change Linux to GNU/Linux.
36393 * cstreams.c: Change Linux to GNU/Linux.
36395 * init.c: Change Linux to GNU/Linux.
36397 * gmem.c: Change Linux to GNU/Linux.
36399 * tracebak.c: Change Linux to GNU/Linux.
36402 2001-10-02 Geert Bosch <bosch@gnat.com>
36404 * misc.c (insert_default_attributes): Add dummy version.