1 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4 * Make-lang.in (gnat1): Add $(GMPLIBS).
6 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
8 * decl.c (components_to_record): Improve comment.
10 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
12 * decl.c (components_to_record): Do not reuse the empty union type
13 if there is a representation clause on the record.
14 * trans.c (addressable_p): Return true for INTEGER_CST.
16 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
18 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
19 in pointer arithmetics.
20 * utils2.c (build_allocator): Likewise.
22 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
24 * utils.c (build_function_stub): Properly build the call expression.
26 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
28 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
29 before converting the expression to the type of the object.
30 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
31 Stabilize constructors for special wrapping types.
33 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
35 * trans.c (call_to_gnu):Invoke the addressable_p predicate only
36 when necessary. Merge some conditional statements. Update comments.
37 Rename unchecked_convert_p local variable to suppress_type_conversion.
38 Do not suppress conversions in the In case.
39 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
40 into account on non strict-alignment platforms.
42 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
44 * utils.c (aggregate_type_contains_array_p): New predicate.
45 (create_field_decl): In a packed record, force byte alignment
46 for fields without specified position that contain an array.
48 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
50 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
52 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
55 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
57 (bit_field): New packed boolean type used by cpu_set_t.
58 (cpu_set_t): New type corresponding to the C type with
59 the same name. Note that on the Ada side we use a bit
60 field array for the affinity mask. There is not need
61 for the C macro for setting individual bit.
62 (pthread_setaffinity_np): New imported routine.
64 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
67 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
68 on OpenBSD as is done on other BSD systems.
71 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
72 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
76 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
80 * init.c (__gnat_error_handler, __gnat_install_handler,
81 __gnat_init_float): Define for OpenBSD.
83 * initialize.c (__gnat_initialize): Define for OpenBSD.
85 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
88 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
89 instead of mktemp() or tmpnam() on NetBSD.
91 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
93 * trans.c (call_to_gnu): Make the temporary for non-addressable
94 In parameters passed by reference.
95 (addressable_p): Return true for STRING_CST and CALL_EXPR.
97 2007-12-19 Robert Dewar <dewar@adacore.com>
99 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
100 Add pragma Warnings (Off) for unassigned IN OUT arguments
102 * sem_warn.adb (Output_Reference): Suppress messages for internal names
103 (Check_References): Extensive changes to tune up warnings
104 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
105 (Has_Pragma_Unmodifed_Check_Spec): New function
106 (Check_References): Implement pragma Unmodified
107 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
109 * par-prag.adb: Dummy entry for pragma Unmodified
111 * sem_prag.adb: Implement pragma Unmodified
113 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
114 (Proc_Next_Component_Or_Discriminant): Fix typo.
117 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
119 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
120 because the former already takes care of discarding the result.
121 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
124 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
126 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
128 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
129 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
130 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
131 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
132 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
133 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
134 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
135 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
136 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
137 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
138 (Dynamic_Trampolines_Used): Delete.
140 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
141 Turn on stack probing mechanism on LynxOS.
143 2007-12-19 Bob Duff <duff@adacore.com>
145 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
146 the resulting tail recursion by hand. This prevents running out of
147 memory on deeply nested concatenations, since Field2 is where the left
148 operand of concatenations is stored.
149 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
150 clarify that it can only return OK or Abandon.
152 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
153 operand by iteration, in order to avoid running out of memory on
154 deeply-nested concatenations. Use the Parent pointer to get back up the
156 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
157 Resolve_Op_Concat_Rest): New procedures split out of
158 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
161 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
162 Traverse_Func, because the former already takes care of discarding the
165 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
166 because the former already takes care of discarding the result.
167 (Remove_Warning_Messages): Use appropriate subtype for Status and
170 2007-12-19 Ed Schonberg <schonberg@adacore.com>
172 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
173 discriminants forces expansion of the aggregate into assignments.
174 (Init_Record_Controller): If the type of the aggregate is untagged and
175 is not inherently limited, the record controller is not limited either.
177 2007-12-19 Robert Dewar <dewar@adacore.com>
179 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
180 handling compile time known size of record or array (case of front end
181 layout active, e.g. in GNAAMP).
183 2007-12-19 Javier Miranda <miranda@adacore.com>
185 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
186 that forces the construction of static dispatch tables in case of
189 2007-12-19 Robert Dewar <dewar@adacore.com>
191 * exp_ch9.adb (Null_Statements): Moved to library level
192 (Trivial_Accept_OK): New function
193 (Expand_Accept_Declaration): Use Trivial_Accept_OK
194 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
196 2007-12-19 Robert Dewar <dewar@adacore.com>
198 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
199 in complex case where array is Volatile.
201 2007-12-19 Ed Schonberg <schonberg@adacore.com>
203 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
204 properly the Ada2005 rules concerning when the current instance of a
205 record type is aliased.
207 2007-12-19 Ed Schonberg <schonberg@adacore.com>
209 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
211 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
213 (P_Variant_Part): Cleaner patch for parenthesized discriminant
215 2007-12-19 Vincent Celier <celier@adacore.com>
217 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
220 * prj-attr.ads (Unknown_Package): New constant
221 Do not crash when an unknown package is in several projects
223 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
226 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
227 existing package Language_Processing.
229 2007-12-19 Ed Schonberg <schonberg@adacore.com>
230 Gary Dismukes <dismukes@adacore.com>
231 Samuel Tardieu <sam@rfc1149.net>
233 PR ada/15803, ada/15805
234 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
235 illegal access subtypes when there is a constrained partial view.
236 (Check_For_Premature_Usage): New procedure inside
237 Access_Subprogram_Declaration for checking that an access-to-subprogram
238 type doesn't reference its own name within any formal parameters or
239 result type (including within nested anonymous access types).
240 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
241 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
242 context is an access_to_variable, the expression cannot be an
245 2007-12-19 Bob Duff <duff@adacore.com>
247 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
248 (Analyze_Concatenation): Use iteration instead of recursion in order
249 to avoid running out of stack space for deeply nested concatenations.
251 2007-12-19 Ed Schonberg <schonberg@adacore.com>
252 Gary Dismukes <dismukes@adacore.com>
254 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
255 whose renamed entity is a subprogram that requires overriding.
256 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
257 issuing an error for premature usage and issue a message that says
258 'type' rather than 'object'.
260 2007-12-19 Gary Dismukes <dismukes@adacore.com>
263 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
264 presence of a statically tagged operand (Present (Static_Tag)) with
265 test for Indeterm_Ancestor_Call when determining whether to propagate
266 the static tag to tag-indeterminate operands (which forces dispatching
268 (Check_Controlling_Formals): Ada2005, access parameters can have
270 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
271 not insert subprogram in list of primitive operations if already there.
273 2007-12-19 Tristan Gingold <gingold@adacore.com>
275 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
278 2007-12-19 Thomas Quinot <quinot@adacore.com>
281 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
282 datagram info on Linux.
284 2007-12-19 Vincent Celier <celier@adacore.com>
286 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
287 that the source path name is always found in the dependencies.
289 2007-12-19 Robert Dewar <dewar@adacore.com>
291 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
292 Fix name of Wide_Wide_Latin_1/9 file names
293 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
294 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
295 Add missing documentation for Ada.Command_Line.Response_File
296 Update list of warning letters for Warnings pragma
297 Add documentation for pragma Unmodified
299 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
301 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
303 2007-12-17 Arnaud Charlet <charlet@adacore.com>
305 * s-vxwork-alpha.ads: Removed, no longer used.
307 2007-12-15 Jakub Jelinek <jakub@redhat.com>
309 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
311 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
314 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
315 mlib-tgt-specific.adb.
317 2007-12-13 Bob Duff <duff@adacore.com>
319 * trans.c (Attribute_to_gnu): Check for violations of the
320 No_Implicit_Dynamic_Code restriction. This checking used to be done in
321 the front end, but is moved here so we can make it more accurate.
323 2007-12-13 Pascal Obry <obry@adacore.com>
325 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
326 version is provided for older GNU/Linux distribution not
327 supporting thread affinity sets.
329 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
331 (bit_field): New packed boolean type used by cpu_set_t.
332 (cpu_set_t): New type corresponding to the C type with
333 the same name. Note that on the Ada side we use a bit
334 field array for the affinity mask. There is not need
335 for the C macro for setting individual bit.
336 (pthread_setaffinity_np): New imported routine.
338 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
340 (Create_Task): Set the processor affinity mask if information
343 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
345 2007-12-13 Robert Dewar <dewar@adacore.com>
347 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
348 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
349 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
350 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
351 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
352 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
353 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
354 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
355 for subprogram pointers.
357 * g-ctrl_c.adb: New file.
359 * g-ctrl_c.ads (Install_Handler): New body.
361 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
362 instead of obsolete function Is_Always_Inlined.
363 (Freeze_Entity): check for tagged type in imported C subprogram
364 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
365 (Freeze_Entity): check for convention Ada subprogram pointer in
366 imported C subprogram.
367 (Freeze_Fixed_Point_Type): In the case of a base type where the low
368 bound would be chopped off and go from negative to zero, force
369 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
370 bound) so that the size computation for the base type will take
371 negative values into account.
373 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
374 Bob Duff <duff@adacore.com>
375 Tristan Gingold <gingold@adacore.com>
377 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
378 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
379 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
380 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
381 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
382 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
383 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
384 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
385 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
386 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
387 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
388 (Always_Compatible_Rep): New flag to control trampolines globally.
389 (Dynamic_Trampolines_Used): New flag for implementing the
390 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
391 and not yet set correctly for some targets).
393 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
394 Simply indirectly call s-stchop when a task is created.
397 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
398 appears as an argument (entries A) in an ALI file.
400 * fe.h (Stack_Check_Limits): Declare new target parameter.
401 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
403 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
404 This variable is declared in C to be sure not subject to elaboration
406 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
409 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
410 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
412 * s-stchop.ads: Add comments.
414 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
415 limit method of stack checking.
417 * s-stchop-limit.ads: New file.
419 2007-12-13 Robert Dewar <dewar@adacore.com>
421 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
422 a-cihama.adb, g-awk.adb,
423 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
426 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
428 * sem.adb: Update handling of assigned value/unreferenced warnings
430 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
432 * lib-xref.ads: Improve documentation for k xref type
435 Update handling of assigned value/unreferenced warnings
436 (Generate_Reference): Warning for reference to entity for which a
437 pragma Unreferenced has been given should be unconditional.
438 If the entity is a discriminal, mark the original
439 discriminant as referenced.
441 * sem_warn.ads, sem_warn.adb
442 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
443 no entities referenced in package
444 (Check_One_Unit): Don't give message about no entities referenced in
445 a package if a pragma Unreferenced has appeared.
446 Handle new warning flag -gnatw.a/-gnatw.A
447 Update handling of assigned value/unreferenced warnings
449 * atree.h: Add flags up to Flag247
450 (Flag231): New macro.
452 2007-12-13 Jose Ruiz <ruiz@adacore.com>
454 * adaint.h: (__gnat_plist_init): Not defined for RTX.
456 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
459 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
460 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
461 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
462 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
465 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
467 * sysdep.c (winflush_function for RTX): Procedure that does nothing
468 since we only have problems with Windows 95/98, which are not
470 (__gnat_ttyname): Return the empty string on Nucleus, just as
473 2007-12-13 Robert Dewar <dewar@adacore.com>
475 * a-textio.adb, a-textio.ads:
476 Extensive changes to private part for wide character encoding
478 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
479 (Look_Ahead): Fix mishandling of encoded sequences
480 Move declaration of Wch_Con to private part (should not be visible)
482 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
483 UTF-8. Probably this is never used, but if it is, brackets is
486 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
487 setting wide character encoding for no main program case and when
488 encoding is specified using -W?
489 Initialize stack limit of environment task if stack limit method of
490 stack checking is enabled.
491 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
492 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
493 (Get_Main_Unit_Name): New function.
494 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
495 (Gen_Output_File): Set Bind_Main_Program to True for .NET
497 * bindusg.adb: Add line for -Wx switch
499 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
501 Add new useful constant WC_Longest_Sequences
503 * switch-b.adb: Clean up handling of -Wx switch
504 For -gnatWx, set Wide_Character_Encoding_Method_Specified
506 * switch-c.adb: -gnatg activates warning on assertion errors
507 For -gnatWx, set Wide_Character_Encoding_Method_Specified
509 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
511 2007-12-13 Robert Dewar <dewar@adacore.com>
512 Ed Schonberg <schonberg@adacore.com>
514 * a-ngcoty.adb: New pragma Fast_Math
516 * opt.adb: New pragma Fast_Math
519 Add Implemented_By_Entry to the list of pragmas which do not require any
521 (Favor_Top_Level): New pragma.
524 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
525 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
526 Expand_Allocator_Expression): Take into account VM_Target
527 (Expand_Attribute, case 'Identity): Handle properly the case where
528 the prefix is a task interface.
531 * par.adb (Next_Token_Is): New function
532 (P_Pragma): Add Skipping parameter
533 (U_Left_Paren): New procedure
534 (U_Right_Paren): New procedure
537 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
541 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
542 Implemented_By_Entry.
543 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
544 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
545 items, since it can apply to more than one overloadable entity. Set
546 new flag Has_Pragma_Inline_Always for Inline_Always case.
547 (Analyze_Pragma, case Complex_Representation): Improve error message.
548 (Analyze_Pragma, case Assert): When assertions are disabled build the
549 rewritten code with Sloc of expression rather than pragma, so new
550 warning about failing is not deleted.
551 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
552 protected types and update error message to reflect that. Test whether
553 the protected type is allowed for the pragma (an error is issued if the
554 type has any entries, or components that do not have preelaborable
557 (Analyze_Pragma, case No_Return): Handle generic instance
559 * snames.h, snames.ads, snames.adb:
560 Add new predefined name for interface primitive _Disp_Requeue.
563 * a-tags.ads, a-tags.adb: New calling sequence for
564 String_To_Wide_[Wide_]String
565 (Secondary_Tag): New subprogram.
567 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
569 New calling sequence for String_To_Wide_[Wide_]String
570 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
571 the use of the secondary stack for image routines.
573 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
574 calling sequence for String_To_Wide_[Wide_]String
576 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
578 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
579 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
581 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
582 (P_Formal_Part): Use Skipping parameter in P_Pragma call
583 to improve error recovery
585 * par-util.adb (Next_Token_Is): New function
586 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
588 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
590 (P_Pragma): Implement new Skipping parameter
591 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
592 Fix location of flag for unrecognized pragma message
594 * par-tchk.adb (U_Left_Paren): New procedure
595 (U_Right_Paren): New procedure
597 2007-12-13 Geert Bosch <bosch@adacore.com>
600 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
601 the second or later Scaled_Divide would omit leading zeroes,
602 resulting in too few digits produced and a Layout_Error as result.
603 (Put): Initialize Pos.
605 2007-12-13 Robert Dewar <dewar@adacore.com>
607 atree.ads, atree.adb (Flag231..Flag247): New functions
608 (Set_Flag231..Set_Flag247): New procedures
609 (Basic_Set_Convention): Rename Set_Convention to be
611 (Nkind_In): New functions
612 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
614 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
616 of obsolete function Is_Always_Inlined
617 (Register_Predefined_DT_Entry): Initialize slots of the second
618 secondary dispatch table.
619 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
620 (Expand_N_Function_Call): Remove special provision for stack checking.
622 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
623 Include _Disp_Requeue in the list of predefined operations.
624 (Find_Interface_ADT): Modified to fulfill the new specification.
625 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
627 * par-ch4.adb, nlists.ads, nlists.adb:
628 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
630 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
631 Fix location of flag for unrecognized pragma message
633 * sem_ch7.adb: Use Nkind_In
635 2007-12-13 Vincent Celier <celier@adacore.com>
638 Indicate what flags are used by the Project Manager, gprbuild and
640 (Opt.Follow_Links_For_Dirs): New flag
641 (Warn_On_Assertion_Failure): New flag
642 (Wide_Character_Encoding_Method_Specified): New flag
643 (Suppress_All_Inlining): New switch set by -fno-inline
644 (Real_VMS_Target): New flag
647 2007-12-13 Robert Dewar <dewar@adacore.com>
649 * back_end.adb: Recognize -fno-inline
651 2007-12-13 Robert Dewar <dewar@adacore.com>
653 * checks.adb: Fix optimization problem with short-circuited form
655 2007-12-13 Bob Duff <duff@adacore.com>
657 * clean.adb (Usage): Add line for -aP
658 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
659 with a parameter "procedure Usage", instead of passing a pointer to a
660 procedure. This is to eliminate trampolines (since the Usage procedure
661 is often nested in a main procedure, and it would be inconvenient to
664 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
665 to be generic, with a parameter "procedure Callback (...)", instead of
666 passing a pointer to a procedure. This is to eliminate trampolines
667 (since the Callback procedure is usually nested).
669 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
670 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
671 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
673 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
674 Use the generic Heap_Sort_G instead of Heap_Sort_A.
676 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
678 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
679 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
680 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
681 (Renamed_In_Spec): New flag
682 (Has_Pragma_Inline_Always): New flag
683 Add missing doc for pragma Obsolescent_Warning
684 Add missing doc for 17 additional unused flags (230-247)
685 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
686 Alphabetize with clauses.
687 Separate Is_Thunk and Has_Thunks flags
688 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
689 (Related_Interface): Renamed to Related_Type.
690 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
691 (Set_Is_Flag): Restrict the assertion.
693 2007-12-13 Vincent Celier <celier@adacore.com>
695 * errout.adb (Output_Source_Line): Do not keep a trailing space after
696 the source line number if the source line is empty.
698 2007-12-13 Geert Bosch <bosch@adacore.com>
700 * eval_fat.adb (Decompose_Int): Handle argument of zero.
701 (Compose): Remove special casing of zero.
702 (Exponent): Likewise.
703 (Fraction): Likewise.
705 (Decompose): Update comment.
707 2007-12-13 Ed Schonberg <schonberg@adacore.com>
709 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
710 limited ancestor part, initialize controllers of enclosing record
711 before expanding ancestor aggregate.
712 (Gen_Assign): If a component of the aggregate is box-initialized, add
713 code to call Initialize if the component is controlled, and explicit
714 assignment of null if the component is an access type.
716 Handle properly aggregates for limited types that appear in object
717 declarations when the aggregate contains controlled values such as
719 When expanding limited aggregates into individual components, do not
720 call Adjust on controlled components that are limited.
722 2007-12-13 Ed Schonberg <schonberg@adacore.com>
724 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
726 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
728 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
729 predefined primitive _Disp_Requeue.
730 (Make_Predefined_Primitive_Specs): Create the spec for predefined
731 primitive _Disp_Requeue.
732 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
733 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
734 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
735 an interface type. In case of limited interfaces we now declare all the
736 predefined primitives associated with synchronized interfaces as
738 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
740 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
741 tagged type is an interface type and there is no user-defined equality
743 Add also bodies of predefined primitives associated with synchronized
745 (Freeze_Record_Type): Do not build bodies of predefined primitives of
746 interface types because they are now defined abstract.
747 Add missing documentation.
748 (Expand_Record_Controller): Update occurrence of Related_Interface
750 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
751 (Expand_N_Object_Declaration): Take into account VM_Target when handling
752 class wide interface object declaration.
753 (Expand_Previous_Access_Type): Do not create a duplicate master entity
754 if the access type already has one.
755 (Expand_N_Object_Declaration): Defend against attempt to validity check
756 generic types. Noticed for -gnatVcf specified with previous errors.
758 2007-12-13 Arnaud Charlet <charlet@adacore.com>
760 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
761 Expand_Allocator_Expression): Take into account VM_Target
763 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
764 secondary stack when VM_Target /= No_VM
766 2007-12-13 Javier Miranda <miranda@adacore.com>
767 Ed Schonberg <schonberg@adacore.com>
769 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
770 Is_Complation_Unit by Is_Library_Level_Entity in the code
771 that decides if the static dispatch tables need to be built.
772 (Wrap_Transient_Declaration): Do not generate a finalization call if
773 this is a renaming declaration and the renamed object is a component
774 of a controlled type.
776 2007-12-13 Gary Dismukes <dismukes@adacore.com>
778 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
779 In the case where the renamed subprogram is a dereference, call
780 Force_Evaluation on the prefix.
782 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
783 Ed Schonberg <schonberg@adacore.com>
785 * exp_ch9.adb (Expand_N_Asynchronous_Select,
786 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
787 comment reformatting.
788 (Set_Privals): Inherit aliased flag from formal. From code reading.
789 (Build_Simple_Entry_Call): Out parameters of an access type are passed
790 by copy and initialized from the actual. This includes entry parameters.
791 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
792 and Ada 2005 models of requeue.
793 (Null_Statements): Still connsider do-end block null if it contains
794 Unreferenced and Warnings pragmas.
795 (Expand_N_Accept_Statement): Do not optimize away null do end if
796 dispatching policy is other than defaulted.
797 (Expand_N_Timed_Entry_Call): When the triggering statement is a
798 dispatching call, manually analyze the delay statement.
799 (Find_Parameter_Type): Move subprogram to Sem_Util.
801 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
802 Javier Miranda <miranda@adacore.com>
804 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
805 _Disp_Requeue occupies dispatch table slot number 15. Move
806 _Disp_Timed_Select to slot 16.
807 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
808 generate the spec and body of _Disp_Reqeueue.
809 (Make_DT): Build and initialize the second dispatch table.
810 Handle initialization of RC_Offset when the parent
811 is a private type with variable size components.
812 (Make_Secondary_DT): Complete documentation. Add support to
813 initialize the second dispatch table.
814 (Make_Tags): Generate the tag of the second dispatch table.
815 (Register_Primitive): Add support to register primitives in the
816 second dispatch table.
818 2007-12-13 Pascal Obry <obry@adacore.com>
820 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
821 Windows. This signal is used by gnatmake to kill child processes for
824 2007-12-13 Javier Miranda <miranda@adacore.com>
826 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
827 support for generic dispatching constructor calls in which we need to
828 locate the tag of a secondary dispatch table associated with an
829 interface type to properly dispatch the call.
830 (Expand_N_Attribute_Reference [case Address],
831 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
832 handling of VM targets.
834 2007-12-13 Robert Dewar <dewar@adacore.com>
835 Ed Schonberg <schonberg@adacore.com>
837 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
840 * ug_words: Add entries for -gnatw.a -gnatw.A
842 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
843 literal is a subtype with non-static constraints, use the base type of
844 the context as the base of the string subtype, to prevent type
846 (Resolve_Actuals): If the actual is an entity name, generate a
847 reference before the actual is resolved and expanded, to prevent
848 spurious warnings on formals of enclosing protected operations.
849 (Analyze_Overloaded_Selected_Component): If type of prefix if
850 class-wide, use visible components of base type.
851 (Resolve_Selected_Component): Ditto.
852 (Resolve_Short_Circuit): Detect case of pragma Assert argument
853 evaluating to False, and issue warning message.
855 * usage.adb: Add lines for -gnatw.a and -gnatw.A
857 2007-12-13 Emmanuel Briot <briot@adacore.com>
859 * g-calend.ads (No_Time): New constant, to represent an uninitialized
862 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
864 (Month_Name_To_Number): New subprogram
866 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
867 letter to upper-case.
869 2007-12-13 Robert Dewar <dewar@adacore.com>
870 Ed Schonberg <schonberg@adacore.com>
872 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
874 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
875 context is a limited view, use non-limited view when available. If the
876 non-limited view is an unconstrained array, this enforces consistency
877 requirements in 3.10.2 (27).
878 (Layout_Type): For an access type whose designated type is a limited
879 view, examine its declaration to determine if it is an unconstrained
880 array, and size the access type accordingly.
881 (Layout_Type): Do not force 32-bits for convention c subprogram
882 pointers in -gnatdm mode, only if real vms target.
884 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
885 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
886 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
887 violations of the No_Implicit_Dynamic_Code restriction.
888 (Resolve_Attribute, case 'Access): If designated type of context is a
889 limited view, use non-limited view when available. If the non-limited
890 view is an unconstrained array, this enforces consistency requirements
892 (Layout_Type): For an access type whose designated type is a limited
893 view, examine its declaration to determine if it is an unconstrained
894 array, and size the access type accordingly.
896 2007-12-13 Vincent Celier <celier@adacore.com>
898 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
899 object directory of main project does not exist.
900 On VMS, correctly set then environment variable for the source
903 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
905 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
906 set to True this procedure will create the value of type REG_EXPAND_SZ.
907 It was only possible to create REG_SZ values before.
909 2007-12-13 Robert Dewar <dewar@adacore.com>
911 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
912 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
913 namet-sp.adb, namet-sp.ads: New files.
915 * g-speche.adb: Use generic routine in g-spchge
917 * s-wchcnv.ads, s-wchcnv.adb:
918 Minor code cleanup (make formal type consistent with spec)
920 * namet.adb: Update comments.
922 * par-endh.adb (Evaluate_End_Entry): Use new
923 Namet.Sp.Is_Bad_Spelling_Of function
925 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
927 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
928 ancestor is an access type initialized with a box, set its type
929 explicitly, for use in subsequent expansion.
930 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
933 2007-12-13 Robert Dewar <dewar@adacore.com>
935 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
938 2007-12-13 Robert Dewar <dewar@adacore.com>
940 * inline.adb (Back_End_Cannot_Inline): Use new flag
941 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
943 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
944 Has_Pragma_Inline_Always instead.
945 of obsolete function Is_Always_Inlined
946 (Build_Body_To_Inline): Same change
947 (Cannot_Inline): Same change
948 Do not give warning on exception raise in No_Return function
950 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
951 component has two inconsistent component clauses in the same record
952 representation clause, favor the message that complains about
953 duplication rather than inconsistency.
955 (Record_Representation_Clause): Do not warn on missing component
956 clauses for inherited components of a type extension.
957 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
958 an overloadable item if it is a pragma that can apply to multiple
959 overloadable entities (e.g. Inline) because a pragma cannot be on
960 more than one chain at a time.
961 (Validate_Unchecked_Conversion): Add code to warn on unchecked
962 conversion where one of the operands is Ada.Calendar.Time.
963 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
964 For now, ignore Component_Size clause on VM targets, as done for
967 2007-12-13 Emmanuel Briot <briot@adacore.com>
968 Vincent Celier <celier@adacore.com>
970 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
972 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
974 (Hash): Move instantiation of System.HTable.Hash from spec to body
975 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
976 systems, since we do not need to recompute the Name_Id for the canonical
978 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
979 as a parameter. This parameter is in fact always "ada" in all calls, and
980 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
981 while loading a project with 40000 files
983 * prj-attr.adb: Fix name of attribute Dependency_Driver
984 Change the kind of indexing for attribute Root
986 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
987 variables already declared, in case constructions.
989 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
990 Current_Object_Path_File to No_Path.
992 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
993 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
995 * prj-makr.adb: new parameter Current_Dir
997 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
998 Ada sources when language is not Ada.
999 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1000 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
1001 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
1002 (Locate_Directory): Always resolve links when computing Canonical_Path
1003 (Look_For_Sources): Make sure that Name_Buffer contains the file name
1004 in Source_Files before checking for the presence of a directory
1006 Optimize calls to Name_Find when on case sensitive systems.
1007 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1009 (Prj.Nmsc.Check): new parameter Current_Dir
1010 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
1011 cannot be empty and the spec suffix cannot be the same as the body or
1013 (Get_Unit): When a file name can be of several unit kinds (spec, body or
1014 subunit), always consider the longest suffix.
1015 (Check_Configuration): Do not issue an error if there is no compiler
1016 for a language. Just issue a warning and ignore the sources for the
1018 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
1020 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
1021 (Unit_Exceptions): New hash table
1022 (Check_Naming_Schemes): Check if a file that could be a unit because of
1023 the naming scheme is not in fact a source because there is an exception
1025 (Look_For_Sources): Put the unit exceptions in hash table
1027 (Get_Unit_Exceptions): Give initial value No_Source to local variable
1028 Other_Part to avoid exception when code is compiled with validity
1030 (Get_Sources_From_File): Check that there is no directory information
1032 (Look_For_Sources): Check that there is no directory information in the
1033 list of file names in Source_Files.
1034 (Look_For_Sources): In multi-language mode, do not allow exception file
1035 names that are excluded.
1036 (Excluded_Sources_Htable): New hash table
1037 (Search_Directories.Check_File): New procedure to simplify
1039 (Search_Directories): Do not consider excluded sources
1040 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
1042 (Get_Exceptions): Set component Lang_Kind of Source_Data
1043 (Get_Unit_Exceptions): Ditto
1044 (Search_Directories): Ditto
1046 * prj-pars.adb: new parameter Current_Dir
1048 * prj-part.ads, prj-part.adb:
1049 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1050 (Opt.Follow_Links_For_Dirs): New flag
1051 (Project_Path_Name_Of): Cache information returned by this routine as
1052 Locate_Regular_File is a costly routine. The code to output a log
1053 information and the effective call to Locate_Regular_File is now
1054 factorized into a routine (code clean-up).
1055 (Parse, Parse_Single_Project): new parameter Current_Dir
1056 When main project file cannot be found, indicate in the error
1057 message the project path that was used to do the search.
1059 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
1060 (Prj.Proc.Process*): new parameter Current_Dir
1062 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
1064 2007-12-13 Bob Duff <duff@adacore.com>
1066 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
1067 procedure to be called from the back end to check the
1068 No_Implicit_Dynamic_Code restriction.
1070 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1072 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
1073 Fixes another case where RTE_Available_Call was ignored instead of being
1077 * rtsfind.ads: Add new entries.
1079 2007-12-13 Robert Dewar <dewar@adacore.com>
1081 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
1082 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
1084 * scn.adb: Implement BOM recognition
1086 2007-12-13 Thomas Quinot <quinot@adacore.com>
1087 Ed Schonberg <schonberg@adacore.com>
1089 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
1090 subprogram body that acts as its own spec may not have a non-private
1091 WITH clause on a private sibling.
1092 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
1093 child unit is a renaming, create an implicit with_clause on that
1094 parent, and not on the unit it renames, to prevent visibility errors
1095 in the current unit.
1097 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1099 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
1100 renaming declaration, use the Slocs of the formal parameters from the
1101 declaration of the formal subprogram when creating the formal parameter
1102 entities in the renaming declaration.
1103 (Analyze_Formal_Type_Declaration): Change the placement of the error
1104 message concerning illegal known discriminants. It is now posted on the
1105 type rather than on the first discriminant. This change ensures early
1107 (Freeze_Subprogram_Body): If the generic subprogram is nested within
1108 the package body that contains the instance, do not generate an
1109 out-of-place freeze node for the enclosing package.
1110 (Collect_Previous_Instantiations): Ignore internal instantiations
1111 generated for formal packages.
1112 (Validate_Derived_Type_Instance): Add a check that when a formal
1113 derived type is Known_To_Have_Preelab_Init then the actual type must
1114 have preelaborable initialization, and issue an error when this
1115 condition is violated.
1117 2007-12-13 Robert Dewar <dewar@adacore.com>
1119 * s-imenne.adb, s-imenne.ads: New files.
1121 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
1122 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
1123 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
1124 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
1125 s-imgwch.ads: New calling sequence for Image routines to avoid sec
1128 2007-12-13 Javier Miranda <miranda@adacore.com>
1129 Ed Schonberg <schonberg@adacore.com>
1131 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
1132 generation of spurious error if parent is an interface type; caused
1133 because predefined primitive bodies will be generated later by
1135 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
1137 (Derive_Subprograms): Handle derivations of predefined primitives
1138 after all the user-defined primitives to ensure that they are
1139 found in proper order in instantiations.
1140 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
1141 of Related_Interface to Related_Type.
1142 (Record_Type_Declaration): Minor reordering of calls to decorate the
1143 Tag component because the entity must have set its Ekind attribute
1144 before setting its Is_Tag attribute.
1145 (Analyze_Subtype_Declaration): In the case of subtypes with
1146 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
1148 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1149 Ed Schonberg <schonberg@adacore.com>
1151 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
1152 statement to the list of contexts where a selected component with a
1153 concurrent tagged type prefix should yield a primitive operation.
1154 (Find_Primitive_Operation): Handle case of class-wide types.
1155 (Analyze_Overloaded_Selected_Component): If type of prefix is
1156 class-wide, use visible components of base type.
1157 (Resolve_Selected_Component): Ditto.
1158 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
1159 formal of a generic subprogram. find candidate interpretations by
1160 scanning the list of generic formal declarations.:
1161 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
1162 type from a limited_with_clause, and the full view is available, use it
1163 for subsequent semantic checks.
1164 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
1165 (Find_Primitive_Operation): New function.
1166 (Analyze_Overloaded_Selected_Component): insert explicit dereference
1167 only once if several interpretations of the prefix yield an access type.
1168 (Try_Object_Operation): Code and comment cleanup.
1169 (Analyze_Selected_Component): Reorder local variables. Minot comment and
1170 code reformatting. When the type of the prefix is tagged concurrent, a
1171 correct interpretation might be available in the primitive and
1172 class-wide operations of the type.
1174 2007-12-13 Robert Dewar <dewar@adacore.com>
1175 Ed Schonberg <schonberg@adacore.com>
1177 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
1178 renaming entry as subprogram using rename-as-body if subprogram spec
1180 (Use_One_Type): The clause is legal on an access type whose designated
1181 type has a limited view.
1182 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1183 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1184 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
1185 operation denoted by a selected component.
1186 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
1187 it can be an expression, possibly overloaded, that returns a task or
1190 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1191 Gary Dismukes <dismukes@adacore.com>
1193 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
1194 requeue statement is dispatching. Do not emit an error when the name is
1195 not an entry and the context is a dispatching select. Add code to
1196 perform subtype conformance between the formals of the current entry
1197 and those of the target interface primitive.
1198 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
1199 Timed_Entry_Call): Analyze the triggering statement as the first step of
1200 the processing. If this is a dispatching select, postpone the analysis
1201 of all select statements until the Expander transforms the select. This
1202 approach avoids generating duplicate identifiers after the Expander has
1203 replicated some of the select statements. In case the Expander is
1204 disabled, perform regular analysis.
1205 (Check_Triggering_Statement): New routine.
1206 (Analyze_Requeue): Exclude any interpretations that are not entries when
1207 checking overloaded names in a requeue. Also test type conformance for
1208 matching interpretations rather than requiring subtype conformance at
1209 that point to conform with the RM's resolution rule for requeues.
1211 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1213 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
1214 inherited operation is a defaulted tag-indeterminate call, and there is
1215 a statically tagged actual, use the static tag as a controlling actual
1216 for the defaulted actual.
1218 2007-12-13 Geert Bosch <bosch@adacore.com>
1220 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
1221 context, so do not call Check_Non_Static_Context.
1223 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1225 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
1226 whether formal E is an entity which may have parameters.
1228 2007-12-13 Bob Duff <duff@adacore.com>
1229 Javier Miranda <miranda@adacore.com>
1230 Robert Dewar <dewar@adacore.com>
1232 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
1233 (Set_Convention): New procedure to set the Convention flag, and in
1234 addition make sure the Favor_Top_Level flag is kept in sync (all
1235 foreign-language conventions require Favor_Top_Level = True).
1236 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
1238 (Collect_Interfaces_Info): Minor update to handle the two secondary
1239 dispatch tables. Update occurrence of Related_Interface to Related_Type.
1240 (Generate_Parent_Ref): Add parameter to specify entity to check
1241 (Is_Preelaborable_Expression): Allow the name of a discriminant to
1242 initialize a component of a type with preelaborable initialization.
1243 This includes the case of a discriminal used in such a context.
1244 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
1245 latest Ada 2005 rules about renaming and 'Access of
1246 discriminant-dependent components.
1247 (Check_Nested_Access): Add handling when there are no enclosing
1248 subprograms (e.g. case of a package body).
1249 (Find_Parameter_Type): Factor routine from several other compiler files.
1250 Remove routine from Find_Overridden_Synchronized_Primitive.
1252 2007-12-13 Thomas Quinot <quinot@adacore.com>
1254 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
1255 an invalid access to an uninitialized slot in the
1256 Source_File_Index_Table.
1258 2007-12-13 Thomas Quinot <quinot@adacore.com>
1260 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
1262 2007-12-13 Bob Duff <duff@adacore.com>
1264 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
1265 access-to-subprogram types in this package.
1267 2007-12-13 Olivier Hainque <hainque@adacore.com>
1269 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
1270 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
1271 Stack_Overlay_Address and document that we are using an internal
1273 (Byte_Size, Unsigned_32_Size): Remove, now useless.
1274 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
1275 consistently throughout the various implementation pieces.
1277 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
1278 overlay we are using to fill the stack area with patterns.
1279 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
1280 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
1281 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
1283 2007-12-13 Robert Dewar <dewar@adacore.com>
1285 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
1287 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1290 (Create_Task): Take into account tasks created by foreign threads.
1291 Code clean up: use constants instead of hard coded values.
1293 2007-12-13 Robert Dewar <dewar@adacore.com>
1295 * styleg.adb (Check_Comment): More liberal rules for comment placement
1297 2007-12-13 Olivier Hainque <hainque@adacore.com>
1299 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
1300 of Procedure Value instead of Frame Pointer as the invocation
1301 identifier associated with the instruction pointer in each traceback
1304 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
1305 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
1306 Pointer as the invocation identifier passed to tbk$symbolize.
1308 * s-traent-vms.ads, s-traent-vms.adb
1309 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
1310 Procedure Value instead of Frame Pointer as the invocation identifier
1311 passed to tbk$symbolize.
1313 2007-12-13 Robert Dewar <dewar@adacore.com>
1315 * tbuild.ads, tbuild.adb:
1316 Fix location of flag for unrecognized pragma message
1318 2007-12-13 Robert Dewar <dewar@adacore.com>
1320 * treepr.ads, treepr.adb: (pl): implement use of positive value
1323 2007-12-13 Robert Dewar <dewar@adacore.com>
1325 * xeinfo.adb: Remove warnings
1326 * xnmake.adb: Remove warnings
1327 * xsinfo.adb: Remove warnings
1328 * xtreeprs.adb: Remove warnings
1329 * xsnames.adb: Remove warnings
1331 * a-ngcoar.adb: Fix typo.
1332 * s-interr.adb: Minor reformatting
1333 * env.c: Minor reformatting.
1334 * g-bytswa.adb: Minor reformatting.
1335 * g-rannum.ads: Minor documentation improvements
1336 * s-tasinf-mingw.adb: Minor header fix
1337 * a-clrefi.adb: Minor reformatting
1338 * g-sttsne.ads: Minor documentation improvement
1339 * g-sttsne-locking.ads: Minor documentation improvement
1340 * g-soliop-solaris.ads: Minor documentation improvement
1341 * g-soliop-mingw.ads: Minor documentation improvement
1342 * g-soliop.ads: Minor documentation improvement
1343 * exp_aggr.ads: Minor reformatting
1344 * debug.adb: Add documentation for the gprbuild debug flags
1345 * exp_ch2.adb: Use Nkind_In to simplify code throughout
1346 * exp_pakd.adb: Minor reformatting
1348 * g-altive.ads, g-alleve.adb: Remove assertions.
1349 Add comment about minor differences between targets regarding
1350 floating-point operations.
1352 * g-thread.adb: Remove pragma unreferenced.
1353 * lib.ads: Minor reformatting
1354 * par-ch9.adb: Minor reformatting of error messages
1355 * sem_case.adb: Minor reformatting
1356 * s-fileio.adb: Minor reformattinng
1357 * s-vmexta.ads: Minor typo
1359 Take into account 'Success' value as per new GNAT warning.
1361 2007-12-13 Vincent Celier <celier@adacore.com>
1363 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
1366 2007-12-13 Robert Dewar <dewar@adacore.com>
1367 Bob Duff <duff@adacore.com>
1369 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
1370 Document that suffixes may be terminations of each others
1371 Add doc for -gnatw.a and -gnatw.A
1372 Document gnatbind -Wx switch
1373 Document BOM recognition
1374 Document pragma Implemented_By_Entry.
1377 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
1378 Add doc for pragma Unreferenced suppressing no entities referenced msg
1379 Add documentation of GNAT.Directory_Operations.Iteration
1380 Add documentation of GNAT.Random_Numbers
1381 Add documentation for pragma Shared.
1382 Correct documentation for Bit_Order
1383 Add documentation for the Pool_Address attribute.
1384 Fix and improve documentation of pragma machine_attribute.
1385 New pragma Fast_Math
1386 Document BOM recognition
1388 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
1389 Add /Wide_Character_Encoding for binder
1390 Add qualifier for the new gnatpp option --no-separate-loop-then
1392 2007-12-13 Matthew Heaney <heaney@adacore.com>
1394 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
1395 which generic formal operations are called for each operation.
1397 2007-12-13 Olivier Hainque <hainque@adacore.com>
1399 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
1400 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
1402 2007-12-13 Emmanuel Briot <briot@adacore.com>
1404 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
1405 Reference_Dir unless we actually need it.
1407 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
1408 Tristan Gingold <gingold@adacore.com>
1410 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
1413 a-calend-vms.adb: Remove pragma warning off and add pragma
1416 2007-12-13 Robert Dewar <dewar@adacore.com>
1418 * impunit.adb: Add entries for missing units
1420 * Makefile.rtl: Add new run-time units.
1422 * Make-lang.in: Update dependencies.
1424 2007-12-13 Bob Duff <duff@adacore.com>
1426 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
1427 types, set Can_Use_Internal_Rep appropriately, based on
1428 Always_Compatible_Rep_On_Target.
1430 2007-12-13 Gary Dismukes <dismukes@adacore.com>
1431 Arnaud Charlet <charlet@adacore.com>
1433 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
1434 it to the front end and setting the aamp_target environment variable
1435 to the switch's argument to ensure that gnaampbind and gnaamplink will
1436 take the specified library into account.
1437 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
1438 target, since the CIL compiler supports an "object" file (.il files).
1440 2007-12-13 Vincent Celier <celier@adacore.com>
1442 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
1443 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
1445 2007-12-13 Geert Bosch <bosch@adacore.com>
1447 * s-parame-vxworks.adb:
1448 Update comments to reflect usage of this package by Nucleus.
1450 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1452 * i-vxwork.ads: Kill new warning on Convention C, since changing the
1453 spec would break code.
1455 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
1457 * system-vxworks-alpha.ads: Removed.
1459 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
1461 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
1463 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
1466 * sem_ch3.adb (Designates_T): New function.
1467 (Mentions_T): Factor reusable part of the logic into Designates_T.
1468 Consider non-access parameters and access and non-access result.
1469 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
1470 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
1472 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
1474 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
1477 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
1478 the new implementation of target-specific calls.
1480 2007-12-07 Olivier Hainque <hainque@adacore.com>
1482 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
1483 the designated full view, only follow a second level Full_View link
1484 for Non_Limited_Views of from_limited_with references.
1486 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
1489 * sem_ch6.adb (Process_Formals): Prevent an access type formal
1490 to be initialized with an access to constant object.
1492 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
1493 when an access to constant is used to initialize an access
1497 * a-direct.adb (Compose): Containing_Directory can be an empty string.
1499 2007-12-07 Olivier Hainque <hainque@adacore.com>
1502 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
1503 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
1504 this is from an alignment clause on the GNAT entity.
1505 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
1506 to distinguish the case where we set it from the type's alignment.
1507 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
1508 whether this alignment was set from an explicit alignment clause.
1510 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
1512 * decl.c (make_packable_type): Revert last change.
1513 (gnat_to_gnu_field): Avoid setting size and position multiple times.
1514 * utils.c (finish_record_type): Retrieve the real name of the type.
1516 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
1518 * trans.c (lvalue_required_p): Take base node directly instead
1519 of its parent. Rename second parameter to 'gnu_type'.
1520 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
1521 <N_Slice>: Likewise.
1522 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
1523 Adjust calls to lvalue_required_p.
1525 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
1528 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
1529 parameters of an entry call.
1531 2007-12-03 Robert Dewar <dewar@adacore.com>
1532 Samuel Tardieu <sam@rfc1149.net>
1535 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
1536 of variables declared in a library-level package.
1538 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
1540 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
1541 of Empty_String'Unchecked_Access.
1543 * Makefile.in: Add support for sh4-linux.
1545 * system-linux-sh4.ads: New file.
1547 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
1550 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
1551 and its argument must not be free()ed.
1553 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
1555 * decl.c (make_packable_type): Retrieve the real name of the type.
1556 (maybe_pad_type): Simplify similar code.
1558 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
1561 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
1562 than an identifier is used after "case" in a variant_part.
1565 * par-ch4.adb (Is_Parameterless_Attribute): New map.
1566 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
1567 attribute name or not depending on the new map.
1569 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
1570 returning a string or a type will not be called with improper
1573 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
1575 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
1578 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
1579 Signal an error when attribute argument is a fixed-point value of
1583 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
1584 a derived ordinary fixed point type.
1586 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
1587 RM_Size when a Small clause is found.
1589 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
1592 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
1593 Pass 'false' for the new allocate_struct_function parameter.
1594 * utils.c (build_function_stub): Likewise.
1596 2007-11-25 Richard Guenther <rguenther@suse.de>
1598 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
1599 (gnat_poplevel): Likewise.
1601 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
1603 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
1604 strict alignment, no alignment clause and a known static size, cap
1605 the type alignment to the greatest power of 2 factor of the size.
1606 (gnat_to_gnu_field): If the field has a component clause, is aliased
1607 or of a type with strict alignment, require that its size be equal to
1609 (validate_size): Use the type size as the minimum size for a type with
1612 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
1614 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
1615 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
1616 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
1617 Use 'Access instead of 'Unchecked_Access in second and third
1618 arguments of pthread_sigmask.
1620 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
1622 * decl.c (ceil_alignment): New function.
1623 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
1624 (make_packable_type): Likewise.
1626 2007-11-22 Olivier Hainque <hainque@adacore.com>
1628 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
1629 to fit in 80 columns.
1631 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
1633 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
1634 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
1636 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
1639 * misc.c (gnat_adjust_rli): Delete.
1640 (gnat_init): Do not initialize the translation code here.
1641 Do not call set_lang_adjust_rli.
1642 * trans.c (init_code_table): Make static.
1643 (gnat_init_stmt_group): Delete.
1644 (gigi): Initialize the translation code entirely here.
1645 Emit debug info for the common types here instead of...
1646 * utils.c (gnat_init_decl_processing): ...here.
1647 * gigi.h (init_code_table): Delete.
1648 (gnat_init_stmt_group): Likewise.
1650 2007-11-16 Olivier Hainque <hainque@adacore.com>
1652 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
1653 retrieving an allocator return value from a super-aligned address from
1655 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
1656 expect a super-aligned address for a fat or thin pointer.
1658 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
1660 * trans.c (call_to_gnu): Always set the source location on the call
1661 expression. If the function returns-by-target, also set it on the
1664 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
1666 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
1667 sections of non-supported Interix target.
1669 * s-osinte-interix.ads: Removed.
1671 * i-cstrin.ads (chars_ptr): Make it a C convention type.
1673 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
1675 * a-tasatt.adb: Add a comment at the beginning of the package
1676 explaining why in general 'Unchecked_Access must be used instead
1679 * sem_prag.adb (Process_Convention): Move the test for the
1680 entity on which the Convention pragma applies down to also
1681 forbid pragma Convention on enumeration literals reached
1684 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
1686 * a-tasatt.adb: Revert previous change for this file as it will
1687 generate an error when this package is instantiated from a
1690 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
1692 * a-tasatt.adb: Type Wrapper should be declared in comment instead
1693 of already declared type Node_Access.
1694 Use 'Access instead of 'Unchecked_Access when applicable. Local
1695 lifetime is the one of the package.
1696 (Set_Value): W is allocated on the heap.
1698 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
1700 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
1702 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
1705 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
1707 (elaboration code): Timer_Queue lifetime is the one of the
1710 * tracebak.c (i386 alternative): Remove useless comparaison
1711 which is always false; LOWEST_ADDRESS is 0 and is never greater
1712 than an unsigned integer.
1714 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
1715 embedded check for "Ada_Version >= Ada_05".
1717 2007-11-07 Olivier Hainque <hainque@adacore.com>
1719 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
1720 craft and expand comment.
1722 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
1724 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
1726 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
1728 * misc.c (gnat_handle_option): Replace call to abort with
1729 call to gcc_unreachable.
1730 (gnat_init): Likewise.
1731 (gnat_expand_expr): Likewise.
1732 (fp_prec_to_size): Likewise.
1733 (fp_size_to_prec): Likewise.
1735 2007-10-23 Richard Guenther <rguenther@suse.de>
1738 * tracebak.c: #undef abort after including system.h.
1740 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
1742 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
1743 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
1745 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
1747 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
1749 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
1750 Set the protection status of the guard page based on the value of On.
1752 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
1754 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
1755 (Exit_Task): Pass False to Hide_Yellow_Zone.
1757 2007-10-15 Robert Dewar <dewar@adacore.com>
1759 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
1760 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
1761 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
1762 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
1763 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
1764 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
1765 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
1766 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
1767 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
1768 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
1769 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
1770 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
1771 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
1772 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
1773 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
1774 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
1776 Add Unreferenced and Warnings (Off) pragmas for cases of
1777 variables modified calls where they are IN OUT or OUT parameters and
1778 the resulting values are not subsequently referenced. In a few cases,
1779 we also remove redundant code found by the new warnings.
1781 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
1782 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
1783 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
1784 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
1785 warning controlled by -gnatw.o that warns on cases of out parameter
1786 values being ignored.
1788 2007-10-15 Geert Bosch <bosch@adacore.com>
1790 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
1792 * expect.c: Initial port to arm-mentor-nucleus.
1793 Use kill for __gnat_kill() on VMS.
1795 2007-10-15 Emmanuel Briot <briot@adacore.com>
1797 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
1799 (Xref_Record): Change type for Line, since in the case of a reference to
1800 a predefined entity (as happens for array index types), the line is set
1802 Add support for parsing multiple array index types info, or
1803 multiple inherited interfaces info. This information cannot be stored
1804 in Xref_Entity_Record, which only supports a single instance of Tref_*,
1805 and is therefore stored in the list of references instead. It has a
1806 special treatement later on in tools that use this information.
1808 2007-10-15 Tristan Gingold <gingold@adacore.com>
1810 * debug.adb: Document use of -gnatd.a and -gnatd.I
1812 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
1814 2007-10-15 Javier Miranda <miranda@adacore.com>
1816 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
1817 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
1818 care of access to class-wide interface types plus removal of bizarre
1819 conversion of tagged object to access type (reported by Gary
1820 Dismukes). After this patch there is no need to perform any
1821 additional management on these nodes in Expand_Interface_Actuals.
1823 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
1824 that handles use of 'Access and 'Unchecked_Access applied to
1825 actuals covering interface types. Such code is now
1826 centralized in Expand_N_Attribute_Reference.
1828 2007-10-15 Ed Schonberg <schonberg@adacore.com>
1830 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
1831 of tagged types whose ultimate ancestor is a CPP type.
1832 (Freeze_Array_Type): For a packed array type, generate an initialization
1833 procedure if the type is public, to handle properly a client that
1834 specifies Normalize_Scalars.
1836 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
1838 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
1839 inside a generic body, retrieve the full view of the entry family
1840 discrete subtype if available.
1842 2007-10-15 Thomas Quinot <quinot@adacore.com>
1844 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1845 attempt to generate stubs for hidden primitive operations.
1847 2007-10-15 Vincent Celier <celier@adacore.com>
1849 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
1850 returning None, used when there is no platform specific body for
1853 2007-10-15 Bob Duff <duff@adacore.com>
1855 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
1856 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
1857 the generic Heap_Sort_G, in order to avoid trampolines.
1859 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
1860 Jose Ruiz <ruiz@adacore.com>
1862 * vx_stack_info.c: New file.
1864 * i-forbla-unimplemented.ads: New file.
1866 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
1867 for unsupported configurations; use it on VMS targets instead of the
1869 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
1870 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
1871 used by VxWorks targets to have access to task-specific data and be
1872 able to extract the stack boundaries for stack checking.
1873 Use system-vms-ia64.ads on ivms.
1875 * Make-lang.in: Update dependencies.
1877 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
1880 2007-10-15 Vincent Celier <celier@adacore.com>
1882 * snames.adb, snames.ads: Add new standard name runtime_library_dir
1884 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
1886 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
1888 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
1889 the source is unknown.
1891 * prj-ext.adb: Spelling error fix
1893 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
1894 95 reserved word in its name.
1895 (Process_Project_Level_Array_Attributes): Process new attribute
1896 Runtime_Library_Dir.
1898 * prj-part.adb (Parse_Single_Project): Do not check the name of the
1899 config project against the user project names.
1901 * prj-proc.adb (Expression): In multi-language mode, indexes that do
1902 not include a dot are always case insensitive.
1903 (Process_Declarative_Items): Ditto
1904 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
1907 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
1908 True, compare both indexes in lower case.
1910 2007-10-15 Robert Dewar <dewar@adacore.com>
1912 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
1914 2007-10-15 Gary Dismukes <dismukes@adacore.com>
1916 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
1917 association for an access component, add an association with null as
1918 the expression. Remove testing for array subtypes and the setting in
1919 that case of Ctyp to the array component type, which prevented proper
1920 inclusion of an association for null-initialized arrays. Collapse
1921 condition that tests for array subtypes into just a test of
1922 Is_Partially_Initialized_Type (which already covers arrays anyway).
1924 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
1926 * sem_ch12.adb: Minor code reformatting.
1927 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
1928 find the parent package which may have been hidden by local
1931 2007-10-15 Gary Dismukes <dismukes@adacore.com>
1933 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
1934 flag of derived concurrent types, taking into account the flag setting
1935 on the parent subtype and any new set of discriminants.
1937 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
1939 * sem_ch4.adb: Minor code and comment reformatting.
1940 (Analyze_Allocator): When the designated type of an unconstrained
1941 allocator is a record with unknown discriminants or an array with
1942 unknown range bounds, emit a detailed error message depending on the
1943 compilation mode and whether the designated type is limited.
1945 2007-10-15 Tristan Gingold <gingold@adacore.com>
1947 * system-vms-ia64.ads: New file.
1949 * system-vms_64.ads: Minor comment fix.
1951 2007-10-15 Ed Schonberg <schonberg@adacore.com>
1953 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
1954 body generated for a function with a controlling result that is a null
1955 extension, discard the generated body in favor of the current explicit
1958 2007-10-15 Ed Schonberg <schonberg@adacore.com>
1960 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
1961 examining its original form, to handle properly operator calls that
1962 have been rewritten.
1964 2007-10-15 Olivier Hainque <hainque@adacore.com>
1966 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
1967 instead of a procedure value in each traceback entry.
1969 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
1970 instead of procedure value to TBK$SYMBOLIZE.
1972 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
1974 (TB_Entry_For): Account for the PV/FP renaming.
1976 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
1978 (Null_TB_Entry): Account for change of component name.
1979 (PV_For): Rename as FP_For.
1981 2007-10-15 Tristan Gingold <gingold@adacore.com>
1983 * trans.c (gnat_to_gnu): Remove the padding structure more often.
1984 This optimize assignment to over-aligned record.
1986 2007-10-15 Emmanuel Briot <briot@adacore.com>
1988 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
1991 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
1992 type, for dispatching calls.
1994 2007-10-15 Vincent Celier <celier@adacore.com>
1995 Robert Dewar <dewar@adacore.com>
1997 * gnat_ugn.texi: Add documentation for switches --version and --help
1998 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
1999 gnatxref, gnatfind, gnatls, and gnatclean.
2001 Mention attribute Excluded_Source_Dirs
2002 Replace obsolescent attribute Locally_Removed_Files with attribute
2003 Excluded_Source_Files.
2004 Improve documentation of -u (gnatbind)
2005 Document how to do reliable stack checking for the environmental task
2008 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
2009 Document attribute Excluded_Source_Files and indicate that attribute
2010 Locally_Removed_Files is obsolescent.
2012 2007-10-15 Thomas Quinot <quinot@adacore.com>
2014 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
2017 Update documentation to note that OpenVMS 8.3 or later must be used
2018 to generate g-soccon-vms.ads.
2020 * atree.adb: Add ??? comment
2022 * exp_util.adb: Minor reformatting.
2023 Add ??? comment in Kill_Dead_Code.
2025 2007-10-15 Robert Dewar <dewar@adacore.com>
2027 * errout.ads: Comment clarification
2029 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
2030 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
2032 * lib.ads: Comment update
2034 * init.c: Minor reformatting.
2036 * sem_attr.adb: Minor formatting
2038 * osint-b.ads: Minor reformatting
2040 * sem_ch9.adb: Implement -gnatd.I switch
2042 * g-comlin.adb: (Start): Fix handling of empty command line.
2044 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
2045 even when -rules follows the -cargs section.
2047 2007-10-08 Ollie Wild <aaw@google.com>
2049 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
2051 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
2053 (gnat_eh_runtime_type): Removed.
2054 (gnat_return_tree): New function.
2056 2007-10-08 Ben Elliston <bje@au.ibm.com>
2060 2007-08-31 Ben Elliston <bje@au.ibm.com>
2062 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
2063 when compiling for powerpc64-*-linux.
2064 * system-linux-ppc64.ads: New file.
2066 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
2068 Mapped location support
2069 * back_end.adb (Call_Back_End): Pass information about source
2070 files instead of units to gigi.
2071 * gigi.h (struct File_Info_Type): New.
2072 (gigi): Rename and change type of number_units parameter, change
2073 type of file_info_ptr parameter.
2074 * trans.c (number_files): New global variable.
2075 (gigi): Rename and change type of number_units parameter, change
2076 type of file_info_ptr parameter.
2077 If mapped location support is enabled, create the isomorphic mapping
2078 between source files and line maps.
2079 (Sloc_to_locus): If mapped location support is enabled, translate
2080 source location into mapped location.
2081 (annotate_with_node): Rename into set_expr_location_from_node.
2082 Call set_expr_location instead of annotate_with_locus.
2083 (Pragma_to_gnu): Adjust for above change.
2084 (Loop_Statement_to_gnu): Likewise.
2085 (call_to_gnu): Likewise.
2086 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2087 (gnat_to_gnu): Likewise.
2088 (add_stmt_with_node): Likewise.
2089 (add_cleanup): Likewise.
2090 * utils.c (gnat_init_decl_processing): Do not set input_line.
2092 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2094 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
2095 (Applicable_Use): Emit a warning when a package tries to use itself.
2096 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
2097 is already in use or the package where it is declared is in use or is
2098 declared in the current package.
2099 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
2101 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
2102 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
2103 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
2105 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2107 * a-calend-vms.adb, a-calend.adb:
2108 Add a section on leap seconds control along with two entities used to
2109 enable and disable leap seconds support. The array Leap_Second_Times is
2110 now constant and contains hard time values pre-generated. Remove
2111 all elaboration code used to populate the table of leap seconds.
2114 Add entity Leap_Seconds_Support to the list of global run-time variables
2115 along with a comment on its usage and values.
2116 (Gen_Adainit_Ada): Add code to generate the declaration and import of
2117 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
2118 or one (enabled) depending on the presence of binder switch "-y".
2119 (Gen_Adainit_C): Add code to generate the declaration of external int
2120 __gl_leap_seconds_support. Set is value to zero (disabled) or one
2121 (enabled) depending on the presence of binder switch "-y".
2123 * init.c: Add __gl_leap_seconds_support to the list of global values
2124 computed by the binder.
2126 2007-09-26 Jerome Guitton <guitton@adacore.com>
2128 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2129 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
2130 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2131 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
2133 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
2135 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
2136 function which can be called by the debugger to interrupt the tasks of
2137 an Ada application asynchronously, as needed on VxWorks.
2138 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
2140 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
2141 renamed from Stop_All_Tasks. Update comments.
2142 (Stop_All_tasks): New function declaration.
2144 2007-09-26 Olivier Hainque <hainque@adacore.com>
2146 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
2147 #include <utime.h> and #define GCC_RESOURCE_H before
2148 #include <sys/wait.h>.
2149 Add more protections in __gnat_translate_vms.
2151 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
2152 #include <sys/wait.h>.
2154 2007-09-26 Thomas Quinot <quinot@adacore.com>
2155 Sergey Rybin <rybin@adacore.com>
2157 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
2159 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2162 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2164 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2167 * sem_dist.ads: Minor comment fix
2169 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2171 2007-09-26 Javier Miranda <miranda@adacore.com>
2172 Eric Botcazou <ebotcazou@adacore.com>
2175 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
2176 indirection added to the HT_Link component of the TSD. This is required
2177 to statically allocate the TSD.
2180 Minor reordering of the declarations in the private part. Required to
2181 add a level of indirection to the contents of the TSD component HT_Link.
2182 This is required to statically allocate the TSD.
2184 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
2185 Is_Statically_Allocated set from constant objects.
2186 Do not make exported constants created by the compiler volatile.
2187 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
2190 * trans.c (Identifier_to_gnu): For constants, unshare initializers
2191 before returning them.
2193 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
2194 public part of the package.
2195 (Make_DT): Move HT_Link component out of the TSD record. For this
2196 purpose Make_DT now declares a separate object that stores the
2197 HT_Link value, and initializes the TSD component with the address
2198 of this new object. The addition of this level of indirection is
2199 required to statically allocate the TSD because the TSD cannot
2200 have variable components.
2201 (Expand_Interface_Conversion): Improve the expanded code.
2202 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
2204 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
2205 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
2206 if we are building static dispatch tables then we must not generate
2207 extra code to register the primitive because the dispatch table will
2208 be built at the end of the library package; otherwise we notify that
2209 we cannot build the static dispatch table.
2211 2007-09-26 Robert Dewar <dewar@adacore.com>
2213 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
2216 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
2217 (Analyze_Record_Representation_Clause): Suppress junk warning for
2218 missing component clause.
2219 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
2220 tests for controlled type overlay to composites with controlled
2222 (Analyze_Record_Representation_Clause): Add reference for component name
2224 2007-09-26 Javier Miranda <miranda@adacore.com>
2225 Gary Dismukes <dismukes@adacore.com>
2227 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
2228 for thunks associated with interface types.
2230 * einfo.ads: Improve documentatation of Is_Internal
2231 (Is_Thunk): New attribute applicable to subprograms. True for thunks
2232 associated with interface types.
2233 Extensive comment fixes regarding flags that appear in all entities. The
2234 documentation is now consistent for all such flags (there were a number
2235 of errors in the documentation in this regard).
2237 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
2239 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
2240 of these procedures are passed a function call that already has
2241 build-in-place actuals (testing new flag
2242 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
2243 the case where processing continues.
2244 (Expand_Call): If the call is generated from a thunk body then we
2245 propagate the extra actuals associated with the accessibility
2246 level of the access type actuals.
2248 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
2249 of each extra formal of a protected operation to reference the
2250 corresponding extra formal of the subprogram denoted by the
2251 operation's Protected_Body_Subprogram.
2253 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
2254 N_Function_Call nodes.
2256 2007-09-26 Robert Dewar <dewar@adacore.com>
2258 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
2260 * debug.adb: Add d.s flag.
2262 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2264 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
2265 debug variable so that it won't be initialized when pragma
2266 Initialize_Scalars is in effect.
2268 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2270 * freeze.adb (Freeze_Entity): Remove check for preelaborable
2271 initialization of a full view. This is moved to
2272 Analyze_Package_Specification.
2274 * sem_ch7.adb (Analyze_Package_Specification): Add check for
2275 preelaborable initialization of a full view in entity loop.
2276 (Uninstall_Declarations): If entity is a use-visible compilation unit,
2277 its child units are use-visible only if they are visible child units.
2279 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
2280 whether an expression can be used within a type declaration that
2281 requires preelaborable init.
2282 (Check_Components): Replace inline code that does partial checking for
2283 preelaborable default expressions with call to
2284 Is_Preelaborable_Expression.
2285 (Has_Preelaborable_Initialization): In the case of a generic actual
2286 subtype, (that is, Is_Generic_Actual is True), return the result of
2287 applying Has_Preelaborable_Initialization to the generic actual's base
2290 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2292 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
2293 call to Jan_1_Day _Of_Week to optimize its performance.
2294 (Is_Leap): Move the routine to the scope of Week_In_Year.
2295 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
2296 weekday on which January 1 falls of Year - 1 and Year + 1. This function
2297 avoids calling Time_Of and Split, thus making it more efficent.
2298 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
2300 * g-calend.ads (Week_In_Year): Change comment to reflect new
2303 2007-09-26 Emmanuel Briot <briot@adacore.com>
2305 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
2306 Command_Line): New types
2307 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
2308 support for defining how switches can be grouped on a command line (as
2309 is the case for -gnatw... for GNAT), and how simple switches can be
2310 used as aliases for more complex switches (-gnatwa is same as
2312 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
2313 (Start, Current_*): New subprograms
2314 Added support for parsing an array of strings in addition to the real
2316 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
2317 be moved from the body to the private part of the spec.
2318 (*): All subprograms now have an extra parameter with default value to
2319 specify which parser should be used. For backward compatibility, it
2320 defaults to parsing the command line of the application. They were also
2321 modified to properly handle cases where each of the argument does not
2322 start at index 1 (which is always true for Ada.Command_Line, but not
2323 when processing any Argument_List).
2324 (Free): New subprogram
2325 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
2326 Argument): New subprograms
2327 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
2328 special characters like ':', '=',... are now handled in a single place,
2329 which makes the code more extensible eventually.
2330 (Getopt, Full_Switch): When the switch was returned as part of the
2331 special character '*', make sure it is prepended by the switch character
2332 ('-' in general), so that the application knows whether "foo" or "-foo"
2333 was specified on the command line.
2335 2007-09-26 Florian Villoing <villoing@adacore.com>
2337 * g-dirope.adb (Remove_Dir): In case we are removing directories
2338 recursively, make sure that if an exception is raised during the
2339 processing, the current working directory is reset to its initial
2340 value before propagating the exception.
2342 2007-09-26 Vincent Celier <celier@adacore.com>
2344 * gnatbind.adb: If there are several ALI files specified and there is
2345 a main program to bind, the first ALI is expected to contain the main
2346 subprogram and the names of the binder generated files will be derived
2347 from the first ALI file name.
2348 (Gnatbind): Fix insertion character in invocation of Error_Msg
2350 2007-09-26 Vincent Celier <celier@adacore.com>
2352 * gnatcmd.adb (Check_Files): Do not include sources that have been
2353 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
2355 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2357 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
2358 information about each of its index types, following the type
2359 reference for its component type.
2361 2007-09-26 Vincent Celier <celier@adacore.com>
2363 * make.adb: (Kill): New procedure (__gnat_kill imported)
2364 (Running_Compile, Outstanding_Compiles): Global variables that
2365 were previously local to procedure Compile_Sources.
2366 (Sigint_Intercepted): Send signal SIGINT to all outstanding
2367 compilation processes.
2369 (Gnatmake): If project files are used, create the mapping of all the
2370 sources, so that the correct paths will be found.
2372 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
2374 2007-09-26 Vincent Celier <celier@adacore.com>
2376 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
2378 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
2379 Replace components Compiler_Min_Options and Binder_Min_Options with
2380 Compiler_Required_Switches and Binder_Required_Switches in record
2382 Remove components Default_Language and Config in Project_Tree_Data,
2385 * prj-attr.adb: New attributes Required_Switches (<language>) in
2386 packages Compiler and Binder.
2388 * prj-nmsc.adb: Major rewrite of the processing of configuration
2389 attributes for gprbuild. No impact on GNAT tools.
2391 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
2392 process configuration attributes: this is done in Prj.Nmsc.Check.
2393 (Recursive_Process): Make a full copy of packages inherited from project
2394 being extended, instead of a shallow copy.
2395 (Process_Project_Tree_Phase_1): New procedure
2396 (Process_Project_Tree_Phase_1): New procedure
2397 (Process): Implementation now uses the two new procedures
2399 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
2400 from the project config, not the tree config that no longer exists.
2402 2007-09-26 Vincent Celier <celier@adacore.com>
2404 * Make-lang.in: Update dependencies..
2406 2007-09-26 Vincent Celier <celier@adacore.com>
2408 * osint.adb, osint.ads: Minor reformatting
2410 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
2412 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2414 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
2415 message to cite use of <> in aggregate component associations rather
2416 than wrongly indicating use of limited aggregates.
2418 2007-09-26 Robert Dewar <dewar@adacore.com>
2420 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
2423 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2425 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
2426 ancestor of the derived type, the operations are inherited from the
2427 primary dispatch table of the parent.
2428 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
2429 when the context is an explicit type conversion.
2431 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2433 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
2434 rule for qualified expressions properly, to detect improper conversions
2435 and resolve some cases of overloading.
2437 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2439 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
2440 proper kind of reference to the primitive operation, for better source
2442 (Valid_Conversion): A tagged conversion is legal if both operands are
2445 2007-09-26 Robert Dewar <dewar@adacore.com>
2447 * sem_warn.adb (Check_References): Catch more cases of unreferenced
2450 2007-09-26 Vincent Celier <celier@adacore.com>
2452 * snames.adb, snames.ads: Change Include_Option to Include_Switches
2454 2007-09-26 Robert Dewar <dewar@adacore.com>
2456 * s-wchstw.adb: provide messages for run time unit exceptions
2458 * a-witeio.adb: Minor reformatting
2460 * exp_ch13.adb: Minor reformatting
2462 2007-09-26 Sergey Rybin <rybin@adacore.com>
2464 * vms_data.ads: Revise gnatmetric qualifiers.
2465 Add qualified for the new gnatbind option '-y'
2467 * gnat_ugn.texi: Revise the gnatmetric section.
2468 Add entry for new gnatbind option '-y'.
2470 * gnat_rm.texi: Minor spelling correction.
2471 Document restriction on overlaying controlled types
2473 2007-09-26 Vincent Celier <celier@adacore.com>
2475 * makegpr.adb (Link_Executables): Do not fail when the root project has
2476 no sources, but is an extending project.
2478 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
2480 * trans.c: Fix misplaced #define.
2482 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2484 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
2485 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
2487 2007-09-21 Olivier Hainque <hainque@adacore.com>
2489 * utils.c (type_for_nonaliased_component_p): Return false for
2490 all AGGREGATE_TYPEs.
2492 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2494 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
2495 object covered by 13.3(19) volatile.
2497 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
2501 * utils.c (unchecked_convert): Use a subtype as the intermediate type
2502 in the special VIEW_CONVERT_EXPR case.
2504 2007-09-12 Robert Dewar <dewar@adacore.com>
2506 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
2508 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
2509 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
2510 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
2511 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
2512 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
2513 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
2514 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
2515 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
2516 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
2517 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
2518 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
2519 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
2520 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
2521 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
2522 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
2523 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
2524 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
2525 pragma Compiler_Unit and adds it to relevant library units.
2527 2007-09-12 Ed Schonberg <schonberg@adacore.com>
2529 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
2530 a box need not correspond to any component.
2532 2007-09-12 Robert Dewar <dewar@adacore.com>
2534 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
2535 the tasking version of the Ada run time when foreign threads are
2536 present and there are no explicit Ada tasks or tasking constructs.
2538 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
2540 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
2542 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
2543 the usage of switch -y.
2545 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
2546 when switch -y is present.
2548 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
2549 leap seconds in Ada.Calendar and its children.
2551 2007-09-12 Jose Ruiz <ruiz@adacore.com>
2553 * a-extiti.ads (Timer): The discriminant is a "not null access
2554 constant" in the Reference Manual.
2555 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
2557 2007-09-12 Robert Dewar <dewar@adacore.com>
2559 * a-swuwha.adb: Remove junk RM header
2561 2007-09-12 Vincent Celier <celier@adacore.com>
2563 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
2566 * g-bytswa.ads: Minor reformatting
2568 2007-09-12 Thomas Quinot <quinot@adacore.com>
2570 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
2571 Add new constant Thread_Blocking_IO, always True by default, set False
2572 on a per-runtime basis.
2573 (Need_Netdb_Buffer): New constant.
2575 2007-09-12 Arnaud Charlet <charlet@adacore.com>
2577 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
2578 Added renames for corresponding functions in System.Partition_Interface.
2580 2007-09-12 Doug Rupp <rupp@adacore.com>
2582 * Makefile.in: Remove VMS specific System.CRTL packages which are no
2585 * s-crtl-vms64.ads: Removed.
2587 2007-09-12 Olivier Hainque <hainque@adacore.com>
2589 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
2590 with discriminant constraints, generalize the code for BIT_FIELDs
2591 to PACKED fields of constant size and propagate DECL_PACKED.
2593 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
2595 * decl.c (array_type_has_nonaliased_component): New predicate.
2596 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
2597 set the TYPE_NONALIASED_COMPONENT flag on the type.
2598 <E_Array_Subtype>: Likewise.
2599 * gigi.h (type_for_nonaliased_component_p): Declare.
2600 * utils.c (type_for_nonaliased_component_p): New predicate.
2601 (create_field_decl): Invoke the above predicate to set the
2602 DECL_NONADDRESSABLE_P flag on the field.
2604 2007-09-11 Javier Miranda <miranda@adacore.com>
2606 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
2607 in library level record type entities if we are generating statically
2608 allocated dispatch tables.
2610 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
2611 importing/exporting the _tag declaration by new code
2612 importing/exporting the dispatch table wrapper. This change allows us
2613 to statically allocate of the TSD.
2614 (Make_DT.Export_DT): New procedure.
2615 (Build_Static_DT): New function.
2616 (Has_DT): New function.
2618 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
2619 True_Constant and Current_Value. Required to statically
2620 allocate the dispatch tables.
2621 (Check_Allocator): Make function iterative instead of recursive.
2622 Also return inner allocator node, when present, so that we do not have
2623 to look for that node again in the caller.
2625 2007-09-11 Jan Hubicka <jh@suse.cz>
2627 * misc.c (gnat_expand_body): Kill.
2628 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
2630 2007-09-10 Robert Dewar <dewar@adacore.com>
2632 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
2633 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2634 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2635 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
2636 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
2637 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
2638 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
2639 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
2640 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
2641 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
2642 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
2643 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
2644 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
2645 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
2646 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
2647 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
2648 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
2649 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
2650 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
2651 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
2652 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
2653 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
2654 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
2655 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
2656 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
2657 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
2658 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
2659 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
2660 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
2661 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
2662 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
2663 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
2664 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
2665 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
2666 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
2667 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
2668 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
2669 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
2670 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
2671 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
2672 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
2673 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
2674 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
2675 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
2676 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
2677 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
2678 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
2679 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
2680 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
2681 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
2682 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
2683 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
2684 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
2685 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
2686 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
2687 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
2688 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
2689 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
2690 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2691 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
2692 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
2693 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
2694 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
2695 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
2696 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
2697 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
2698 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
2699 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
2700 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
2701 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
2702 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
2703 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
2704 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
2705 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
2706 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
2707 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
2708 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
2709 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
2710 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
2711 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
2712 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
2713 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
2714 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
2716 2007-09-10 Emmanuel Briot <briot@adacore.com>
2718 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
2721 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
2723 * adaint.c (__gnat_translate_vms): new function.
2725 2007-09-10 Gary Dismukes <dismukes@adacore.com>
2726 Thomas Quinot <quinot@adacore.com>
2728 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
2729 create an abstract subprogram in the case of 'Input. For 'Output we now
2730 create a real spec/body when the type is abstract, since it can
2731 potentially be called.
2732 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
2733 body for 'Output when the type is abstract (only the creation of the
2734 body for 'Input is excluded when the type is abstract).
2735 (Stream_Operation_OK): Add an additional condition in the return
2736 statement, so that False will be returned for TTS_Stream_Input if the
2737 associated tagged type is an abstract extension. Add comments for
2739 (Expand_N_Object_Declaration): For the case of a shared passive
2740 variable, insert init proc call only after the shared variable
2741 procedures have been processed, because the IP call needs to undergo
2742 shared passive variable reference expansion, which requires these
2743 procedures to be available (and elaborated).
2745 2007-09-10 Vincent Celier <celier@adacore.com>
2747 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
2748 parameter Runtime_Project.
2750 2007-09-10 Ed Schonberg <schonberg@adacore.com>
2752 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
2753 given a box association, the type of the component is discriminated,
2754 and the value of the discriminant is the discriminant of the enclosing
2755 type, retrieve its value from the aggregate itself, where it must have
2758 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
2759 to remove other spurious ambiguities on arithmetic operations involving
2760 literals and addresses, on systems where Address is a visible integer
2761 type, when the operator is called in functional notation.
2762 (Try_Primitive_Operation): Within an instance, a call in prefixed form
2763 is legal when the types match, even if the operation is currently
2766 2007-09-10 Ed Schonberg <schonberg@adacore.com>
2768 * sem_ch12.adb (Build_Local_Package): A formal package with no
2769 associations is legal if all formals have defaults. It is not
2770 equivalent to a formal declared with a box.
2772 2007-09-10 Sergey Rybin <rybin@adacore.com>
2774 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
2776 2007-09-10 Sergey Rybin <rybin@adacore.com>
2778 * gnat_ugn.texi: Add description of the new '-lratio' option
2779 Update 7.3.1 section about availability of the feature.
2781 2007-09-10 Thomas Quinot <quinot@adacore.com>
2783 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
2786 2007-09-10 Olivier Hainque <hainque@adacore.com>
2788 * Makefile.in: (mips-irix section): Activate build of libgmem.
2790 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
2792 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
2795 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
2797 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
2798 a debug renaming declaration specially.
2800 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
2802 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
2803 which a constant renaming is treated as a normal object declaration.
2804 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
2805 the N_Indexed_Component case.
2806 <N_Indexed_Component>: Fall through to above case.
2807 <N_Object_Renaming_Declaration>: Return true for all composite types.
2809 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
2811 * decl.c (make_packable_type): If the new type has been given BLKmode,
2812 try again to get an integral mode for it.
2814 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
2816 Re-apply accidentally reverted change:
2818 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
2820 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
2821 get_action_description_for): Replace _Unwind_Word with _uleb128_t
2822 and _Unwind_SWord with _sleb128_t.
2824 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
2826 * trans.c (convert_with_check): Update call to real_2expN.
2828 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
2830 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
2831 * utils.c (end_subprog_body): Likewise.
2833 2007-09-03 Nick Clifton <nickc@redhat.com>
2835 * Make-lang.in: Change copyright header to refer to version 3 of
2836 the GNU General Public License and to point readers at the
2837 COPYING3 file and the FSF's license web page.
2838 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
2839 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
2840 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
2841 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
2844 2007-08-31 Vincent Celier <celier@adacore.com>
2848 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
2849 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
2850 (Check_Version_And_Help): New procedure in package Switch to process
2851 switches --version and --help.
2852 Use Check_Version_And_Help in GNAT tools
2855 (Compile_Sources): Make sure that sources that are "excluded" are not
2857 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
2858 project file is used.
2859 (Version_Switch): Remove, moved to Switch
2860 (Help_Switch): Remove, moved to Switch
2861 (Display_Version): Remove, moved to Switch
2863 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
2864 package Switch to process switches --version and --help.
2865 (Display_Version): New procedure
2867 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
2869 2007-08-31 Javier Miranda <miranda@adacore.com>
2871 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
2874 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2876 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
2877 (Mark_Non_Null): If the node for which we just generated an access check
2878 is a reference to an *in* parameter and the reference appears in the
2879 declarative part of a subprogram body, mark the node as known non null.
2881 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2883 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
2884 structure of E_Exception to reflect the new flag.
2885 (Is_Raised, Set_Is_Raised): New inlined routines.
2886 Update the usage of available flag to reflect the addition of Is_Raised.
2887 (Is_Raised, Set_Is_Raised): Bodies of new routines.
2888 (Write_Entity_Flags): Write the status of flag Is_Raised.
2889 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
2890 spurious ambiguities when integer literals appear in the context of an
2891 address type that is a visible integer type.
2893 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
2894 exceptions never being raised.
2895 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
2898 2007-08-31 Javier Miranda <miranda@adacore.com>
2900 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
2901 statement when compiling under restriction No_Exceptions_Proparation.
2903 2007-08-31 Ed Schonberg <schonberg@adacore.com>
2905 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
2906 initialization aggregate for the type, generate itype references for
2907 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
2909 2007-08-31 Gary Dismukes <dismukes@adacore.com>
2911 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
2912 library-level package renaming, pass the declaration associated with
2913 the renaming's special debug variable to Qualify_Entity_Names to ensure
2914 that its encoded name is properly qualified.
2916 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
2917 occurring in the list of entities to qualify, and do not attempt to
2918 traverse an entity list in that case. Variables associated with
2919 ` library-level package renamings can now occur in the table.
2921 * exp_dbug.ads: Revise documentation of the encoding for renaming
2924 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2926 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
2927 access type points to an unconstrained array.
2929 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2931 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
2934 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
2935 simple redundant qualifications. The check is performed whenever the
2936 expression is a non-overloaded identifier.
2937 (Resolve_Type_Conversion): Enchance the redundant type conversion check
2938 to include loop parameters.
2939 (Valid_Conversion): Avoid generation of spurious error message.
2941 2007-08-31 Bob Duff <duff@adacore.com>
2943 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
2944 concatenations of string literals into a single literal, in order to
2945 avoid very deep recursion in the front end, which was causing stack
2948 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
2949 string, and the right operand is a string literal (the case of "" &
2950 "..."), optimize by avoiding copying the right operand -- just use the
2951 value of the right operand directly.
2953 * stringt.adb (Store_String_Chars): Optimize by growing the
2954 String_Chars table all at once, rather than appending characters one by
2956 (Write_String_Table_Entry): If the string to be printed is very long,
2957 just print the first few characters, followed by the length. Otherwise,
2958 doing "pn(n)" in the debugger can take an extremely long time.
2960 * sem_prag.adb (Process_Interface_Name): Replace loop doing
2961 Store_String_Char with Store_String_Chars.
2963 2007-08-31 Vincent Celier <celier@adacore.com>
2965 * prj-attr.adb: Add new attribute Excluded_Source_Files
2967 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
2968 Locally_Removed_Files.
2970 * snames.ads, snames.adb: New standard name Excluded_Source_Files
2972 2007-08-31 Ed Schonberg <schonberg@adacore.com>
2974 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
2975 clauses of subunits, ignore limited_with_clauses that are illegal and
2976 have not been fully analyzed.
2978 2007-08-31 Ed Schonberg <schonberg@adacore.com>
2980 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
2981 flag, for effiency. It is called when analyzing arithmetic operators
2982 and also for actuals in calls that are universal_integers. The flag is
2983 set for the predefined type address, and for any type or subtype
2986 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
2987 Universal_Integer, when the formal is a descendent of address and the
2988 call appears in user code.
2989 (Analyze_Selected_Component): if the prefix is a private extension, the
2990 tag component is visible.
2992 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
2995 2007-08-31 Robert Dewar <dewar@adacore.com>
2997 * s-fileio.adb (Open): Normalize file name to lower case in non-case
2998 sensitive file name systems to avoid unexpected mismatch in Vista.
3000 2007-08-31 Vincent Celier <celier@adacore.com>
3002 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
3004 2007-08-31 Vincent Celier <celier@adacore.com>
3006 * symbols-vms.adb (Initialize): Read symbol files with continuation
3008 (Finalize): If symbol is long, split the line
3010 2007-08-31 Vincent Celier <celier@adacore.com>
3012 * fmap.ads: Minor comment updates
3014 2007-08-31 GNAT Script <nobody@adacore.com>
3016 * Make-lang.in: Makefile automatically updated
3018 2007-08-31 Bob Duff <duff@adacore.com>
3020 * sinfo.ads: Minor comment fix.
3022 2007-08-31 Thomas Quinot <quinot@adacore.com>
3024 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
3025 with implementation.
3026 Documentation cleanup only.
3028 2007-08-31 Sergey Rybin <rybin@adacore.com>
3030 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
3031 gnatpp '--separate-stmt-name' option.
3032 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
3035 * gnat_ugn.texi: Add description for the new gnatpp
3036 '--separate-stmt-name' and '--use-on-new-line' options.
3038 2007-08-31 Ben Elliston <bje@au.ibm.com>
3040 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
3041 when compiling for powerpc64-*-linux.
3042 * system-linux-ppc64.ads: New file.
3044 2007-08-22 Krister Walfridsson <cato@df.lth.se>
3046 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
3049 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3051 * misc.c (gnat_type_max_size): Constify.
3053 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3055 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
3056 associated with Standard_Debug_Renaming_Type, to be used as the type of
3057 the special variables whose names provide debugger encodings for
3058 renaming declarations.
3060 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
3061 (Set_Debug_Renaming_Link): Change to set Node25.
3062 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
3063 (Write_Field25_Name): Add case for E_Variable to output
3064 "Debug_Renaming_Link".
3065 (Write_Field23_Name): Correct the output string for "Limited_View".
3067 * exp_dbug.adb: Add with and use of Tbuild.
3068 (Debug_Renaming_Declaration): Replace creation of an enumeration type
3069 and literal with creation of a variable of type
3070 Standard_Debug_Renaming_Type whose name encodes both the renamed object
3071 and the entity of the renaming declaration.
3072 (Qualify_Entity_Name): Add the delayed qualification of the entity name
3073 part of the name of a variable that has a Debug_Renaming_Link.
3075 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
3076 special type to be associated with variables that provide debugger
3077 encodings for renaming declarations.
3079 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3080 Ed Schonberg <schonberg@adacore.com>
3081 Javier Miranda <miranda@adacore.com>
3083 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
3084 ancestor part given by an aggregate to test for an unchecked conversion,
3085 since this can occur in some cases when the ancestor part is a function
3086 call, and we don't want to fall into the recursive call to this
3087 procedure in that case.
3089 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
3090 stream attributes on limited types to account for user-specified
3091 attributes as well as whether Input (resp. Output) becomes available
3092 due to Read (resp. Write) being available for the type. Change Boolean
3093 variable to the more accurate name
3094 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
3095 double-"not" predicate at beginning of return statement to more
3096 understandable form.
3098 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
3099 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
3100 in a block statement and use that as the first statement of the
3101 expanded return rather than incorrectly using the handled sequence as
3102 the first statement.
3104 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
3105 operation, generate an explicit freeze node for it rather than
3106 generating extra formals, to ensure that gigi has the proper order of
3107 elaboration for anonymous subtypes in the signature of the subprograms.
3108 (Build_In_Place_Formal): Move assertion to beginning of loop.
3109 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
3110 applied to a function call (occurs for some cases of 'Input).
3111 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
3112 applied to a function call (occurs for some cases of 'Input).
3114 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
3115 2005, generate an extended return statement enclosing the result object
3118 * freeze.adb (Freeze_Record_Type): Extend the current management of
3119 components that are access type with an allocator as default value: add
3120 missing support to the use of qualified expressions of the
3121 allocator (which also cause freezing of the designated type!)
3122 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
3123 dispatching operation, since extra formals may be needed by calls to
3124 build-in-place functions (such as stream 'Input).
3126 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
3127 formals for 'Constrained and accessibility level in the case of a
3128 predefined dispatching operation.
3130 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
3131 point, no need to find the parent node.
3133 2007-08-16 Javier Miranda <miranda@adacore.com>
3135 * exp_attr.adb (Attribute_Priority): Add missing support for entries
3138 2007-08-16 Javier Miranda <miranda@adacore.com>
3140 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
3141 is not really required and can introduce regression with the debugger.
3142 The original problem is fixed with the patch written for checks.adb.
3144 2007-08-16 Thomas Quinot <quinot@adacore.com>
3146 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
3147 Range_Check on Allocated_Table.
3149 2007-08-16 Vincent Celier <celier@adacore.com>
3151 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
3152 Including_Non_Switch set to False.
3153 (Gnatmake): For the compiler, call Test_If_Relative_Path with
3154 Including_Non_Switch set to False.
3156 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
3157 parameter Including_Non_Switch, defaulted to True. When
3158 Including_Non_Switch is False, options that are not switches and
3159 appear as relative path are not converted to absolute paths.
3161 2007-08-16 Nicolas Roche <roche@adacore.com>
3163 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
3166 * Make-lang.in: Update dependencies
3168 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
3170 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
3171 currently inspected is a selected component, retrieve the entity of
3173 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
3174 from the immediate ancestor of Main_Unit_Entity.
3175 (Install_Limited_Withed_Unit): Do not install the limited view of
3176 package P if P is reachable through an ancestor chain from package C
3177 and C also has a with clause for P in its body.
3178 (Has_Limited_With_Clause): New routine.
3179 (Has_With_Clause): New routine.
3181 2007-08-16 Ed Schonberg <schonberg@adacore.com>
3183 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
3184 generic for an enclosing instance is a global reference, even though
3185 its scope is the enclosing instance.
3187 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3188 Javier Miranda <miranda@adacore.com>
3190 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
3191 initialize a limited object.
3192 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
3194 Make sure Has_Complex_Representation is inherited by derived type.
3196 2007-08-16 Robert Dewar <dewar@adacore.com>
3198 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
3201 2007-08-16 Ed Schonberg <schonberg@adacore.com>
3203 * sem_disp.adb (Check_Dispatching_Operation): If the operation
3204 implements an operation inherited from a progenitor interface, verify
3205 that they are subtype-conformant.
3207 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
3208 Bob Duff <duff@adacore.com>
3209 Nicolas Setton <setton@adacore.com>
3211 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
3212 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
3213 the statement which is being resolved comes from a predefined library
3214 unit, all non-predefined library interpretations are skipped.
3215 (Resolve_Op_Concat): If string concatenation was folded in the parser,
3216 but the "&" is user defined, give an error, because the folding would
3219 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
3220 the parser has folded a long sequence of concatenations of string
3223 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
3224 and "JMP_BUF" variables as artificial.
3225 (N_String_Literal): Do not use alloca for very long string literals. Use
3226 xmalloc/free instead. Otherwise the stack might overflow.
3228 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
3231 2007-08-16 Vincent Celier <celier@adacore.com>
3233 * vms_conv.adb (Process_Argument): Ensure that project related options
3234 are not put in the -cargs section when using GNAT COMPILE.
3236 2007-08-16 Robert Dewar <dewar@adacore.com>
3238 * gnat_ugn.texi: Add note on preprocessing (output file not written)
3240 2007-08-16 Thomas Quinot <quinot@adacore.com>
3242 * a-tags.adb: Minor reformatting.
3244 2007-08-16 Bob Duff <duff@adacore.com>
3246 * sem_type.ads, sem_ch4.adb: Minor reformatting.
3248 2007-08-14 Thomas Quinot <quinot@adacore.com>
3250 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
3251 s-osinte-interix.ads, system-interix.ads: Removed.
3253 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
3255 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
3256 calls to Check_Within_Time_Bounds.
3257 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
3258 (Difference): Account for possible rounding of the resulting difference
3260 2007-08-14 Robert Dewar <dewar@adacore.com>
3262 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
3263 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
3264 s-osinte-solaris.adb, s-osinte-solaris.ads,
3265 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
3267 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
3268 switch -gnatyS. Enable -gnatyS in GNAT style check mode
3270 2007-08-14 Robert Dewar <dewar@adacore.com>
3271 Ed Schonberg <schonberg@adacore.com>
3273 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
3274 Suppress unmodified in-out parameter warning in some cases
3275 This patch is a also fairly significant change to the way suppressible
3278 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
3279 needed for access to concurrent record types generated by the expander.
3280 (Generate_Range_Check): When generating a temporary to capture the
3281 value of a conversion that requires a range check, set the type of the
3282 temporary before rewriting the node, so that the type is always
3283 properly placed for back-end use.
3284 (Apply_Float_Conversion_Check): Handle case where the conversion is
3286 (Get_Discriminal): Code reformatting. Climb the scope stack looking
3287 for a protected type in order to examine its discriminants.
3289 2007-08-14 Robert Dewar <dewar@adacore.com>
3290 Gary Dismukes <dismukes@adacore.com>
3291 Ed Schonberg <schonberg@adacore.com>
3292 Thomas Quinot <quinot@adacore.com>
3294 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
3295 a-stwisu.adb, a-strsup.adb: Fix warnings for range
3296 tests optimized out.
3298 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
3299 (Get_Allocator_Final_List): For the case of an anonymous access type
3300 that has a specified Associated_Final_Chain, do not go up to the
3302 (Expand_N_Type_Conversion): Test for the case of renamings of access
3303 parameters when deciding whether to apply a run-time accessibility
3305 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
3306 aggregate code before allocator, and ahead of declaration for
3307 temporary, to prevent access before elaboration when the allocator is
3308 an actual for an access parameter.
3309 (Expand_N_Type_Conversion): On an access type conversion involving an
3310 access parameter, do not apply an accessibility check when the
3311 operand's original node was an attribute other than 'Access. We now
3312 create access conversions for the expansion of 'Unchecked_Access and
3313 'Unrestricted_Access in certain cases and clearly accessibility should
3314 not be checked for those.
3316 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
3317 includes a type conversion of a packed component that has been expanded,
3318 recover the original expression for the object, and use this expression
3319 in the post-call assignment statement, so that the assignment is made
3320 to the object and not to a back-end temporary.
3321 (Freeze_Subprogram): In case of primitives of tagged types not defined
3322 at the library level force generation of code to register the primitive
3323 in the dispatch table. In addition some code reorganization has been
3324 done to leave the implementation clear.
3325 (Expand_Call): When expanding an inherited implicit conversion,
3326 preserve the type of the inherited function after the intrinsic
3327 operation has been expanded.
3329 * exp_ch2.ads, exp_ch2.adb
3330 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
3331 of an entry formal appearing in an assignment statement does not assign
3333 (Expand_Current_Value): Instead of calling a routine to determine
3334 whether the prefix of an attribute reference should be optimized or
3335 not, prevent the optimization of such prefixes all together.
3337 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
3338 component whose prefix is known to be of an access type is an implicit
3339 dereference and does not assign to the prefix.
3341 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3342 Robert Dewar <dewar@adacore.com>
3344 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
3345 itype is visited, make an entry into table to link associated node and
3347 Add comments and correct harmless error in Build_NCT_Hash_Tables
3348 (Array_Aggr_Subtype): Associate each itype created for an index type to
3349 the corresponding range construct, and not to the aggregate itself. to
3350 maintain a one-to-one correspondence between itype and its associated
3351 node, to prevent errors when complex expression is copied.
3352 Fix mishandling of multiple levels of parens
3354 * sem_aggr.adb: Create a limited view of an incomplete type, to make
3355 treatment of limited views uniform for all visible declarations in a
3356 limited_withed package.
3357 (New_Copy_Tree): If hash table is being used and itype is visited,
3358 make an entry into table to link associated node and new itype.
3359 (Resolve_Record_Aggregate): Do not add an others box association for a
3360 discriminated record component that has only discriminants, when there
3361 is a box association for the component itself.
3363 * par-ch4.adb: Fix mishandling of multiple levels of parens
3365 2007-08-14 Robert Dewar <dewar@adacore.com>
3367 * comperr.adb: Fix problem with suppressing warning messages from gigi
3369 * erroutc.ads, erroutc.adb, errout.ads,
3370 errout.adb (Write_Eol): Remove trailing spaces before writing the line
3371 (Write_Eol_Keep_Blanks): New procedure to write a line, including
3372 possible trailing spaces.
3373 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
3374 Fix problem with suppressing warning messages from back end
3375 Improve handling of deleted warnings
3378 Fix problem with suppressing warning messages from back end
3379 Handle setting of Static_Dispatch_Tables flag.
3382 Fix problem with suppressing warning messages from back end
3384 * exp_intr.adb: Improve handling of deleted warnings
3386 2007-08-14 Robert Dewar <dewar@adacore.com>
3388 * debug.adb: Improve -gnatdI to cover all cases of serialization
3389 Add documentation of dZ, d.t
3391 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
3393 (Sprint_Node_Actual): Generate new output associated with implicit
3394 importation and implicit exportation of object declarations.
3396 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3397 Robert Dewar <dewar@adacore.com>
3398 Javier Miranda <miranda@adacore.com>
3399 Gary Dismukes <dismukes@adacore.com>
3401 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
3402 to make treatment of limited views uniform for all visible declarations
3403 in a limited_withed package.
3404 Improve warnings for in out parameters
3405 (Set_Related_Interaface/Related_Interface): Allow the use of this
3406 attribute with constants.
3407 (Write_Field26_Name): Handle attribute Related_Interface in constants.
3408 Warn on duplicate pragma Preelaborable_Initialialization
3410 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
3411 generation of a freezing node to ensure proper management of null
3412 excluding access types in the backend.
3413 (Create_Extra_Formals): Test base type of the formal when checking for
3414 the need to add an extra accessibility-level formal. Pass the entity E
3415 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
3416 originally being done in a couple of cases), to ensure that the
3417 Extra_Formals list gets set on the entity E when the first entity is
3419 (Conforming_Types): Add missing calls to Base_Type to the code that
3420 handles anonymous access types. This is required to handle the
3421 general case because Process_Formals builds internal subtype entities
3422 to handle null-excluding access types.
3423 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3424 functions that need it, even when not marked Requires_Overriding.
3425 Improve warnings for in out parameters
3426 (Analyze_Function_Return): Warn for disallowed null return
3427 Warn on return from procedure with unset out parameter
3428 Ensure consistent use of # in error messages
3429 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
3430 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
3431 the implicit conversion of the expression done for anonymous access
3432 types. This is required to generate the code of the null excluding
3433 check (if required).
3435 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
3436 A formal parameter is never publicly referenceable outside of its body.
3437 (Check_References): For an unreferenced formal parameter in an accept
3438 statement, use the same warning circuitry as for subprogram formal
3440 (Warn_On_Unreferenced_Entity): New subprogram, taken from
3441 Output_Unreferenced_Messages, containing the part of that routine that
3442 is now reused for entry formals as described above.
3443 (Goto_Spec_Entity): New function
3444 (Check_References): Do not give IN OUT warning for dispatching operation
3445 Improve warnings for in out parameters
3446 (Test_Ref): Check that the entity is not undefinite before calling
3447 Scope_Within, in order to avoid infinite loops.
3448 Warn on return from procedure with unset out parameter
3449 Improved warnings for unused variables
3451 2007-08-14 Robert Dewar <dewar@adacore.com>
3452 Javier Miranda <miranda@adacore.com>
3453 Gary Dismukes <dismukes@adacore.com>
3455 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
3456 (Expand_N_Attribute_Reference): Further unify the handling of the
3457 three forms of access attributes, using common code now for all three
3458 cases. Add a test for the case of applying an access attribute to
3459 an explicit dereference when the context is an access-to-interface
3460 type. In that case we need to apply the conversion to the prefix
3461 of the explicit dereference rather than the prefix of the attribute.
3462 (Attribute_Version, UET_Address): Set entity as internal to ensure
3463 proper dg output of implicit importation.
3464 (Expand_Access_To_Type): Removed.
3465 (Expand_N_Attribute_Reference): Merge the code from the three cases
3466 of access attributes, since the processing is largely identical for
3467 these cases. The substantive fix here is to process the case of a
3468 type name prefix (current instance case) before handling the case
3469 of interface prefixes.
3471 2007-08-14 Thomas Quinot <quinot@adacore.com>
3472 Ed Schonberg <schonberg@adacore.com>
3473 Javier Miranda <miranda@adacore.com>
3474 Robert Dewar <dewar@adacore.com>
3476 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
3477 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
3478 type that is an anonymous access to controlled object, establish
3479 an associated finalization chain to avoid corrupting the global
3480 finalization list when a dynamically allocated object designated
3481 by such a component is deallocated.
3482 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3483 functions that need it, even when not marked Requires_Overriding.
3484 (Initialize_Tag): Replace call to has_discriminants by call to
3485 Is_Variable_Size_Record in the circuitry that handles the
3486 initialization of secondary tags.
3487 (Is_Variable_Size_Record): New implementation.
3488 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
3489 Suppress_Initialization pragma for a derived type.
3490 (Is_Variable_Size_Record): New subprogram.
3491 (Build_Offset_To_Top_Functions): New implementation that simplifies the
3492 initial version of this routine and also fixes problems causing
3493 incomplete initialization of the table of interfaces.
3494 (Build_Init_Procedure): Improve the generation of code to initialize the
3495 the tag components of secondary dispatch tables.
3496 (Init_Secondary_Tags): New implementation that simplifies the previous
3497 version of this routine.
3498 (Make_DT): Add parameter to indicate when type has been frozen by an
3499 object declaration, for diagnostic purposes.
3500 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
3501 diagnose attemps to freeze a subprogram when some untagged type of its
3502 profile is a private type whose full view has not been analyzed yet.
3503 (Freeze_Array_Type): Generate init proc for packed array if either
3504 Initialize or Normalize_Scalars is set.
3505 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
3506 constructing the new profile, copy the null_exclusion indicator for each
3507 parameter, to ensure full conformance of the new body with the spec.
3509 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
3510 Create wrappers for constructor functions that need it, even when not
3511 marked Requires_Overriding.
3512 (Covers): Handle properly designated types of anonymous access types,
3513 whose non-limited views are themselves incomplete types.
3514 (Add_Entry): Use an entity to store the abstract operation which hides
3516 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
3517 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
3518 initialization aggregate.
3519 (Function_Interp_May_Be_Hidden): Rename to
3520 Function_Interp_Has_Abstract_Op.
3521 (Has_Compatible_Type): Remove machinery that skips interpretations if
3522 they are labeled as potentially hidden by an abstract operator.
3523 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
3524 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
3525 (Write_Overloads): Output the abstract operator if present.
3526 (Add_Entry): Before inserting a new entry into the interpretation table
3527 for a node, determine whether the entry will be disabled by an abstract
3529 (Binary_Op_Interp_May_Be_Hidden): New routine.
3530 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
3532 (Function_Interp_May_Be_Hidden): New routine.
3533 (Has_Compatible_Type): Do not consider interpretations hidden by
3534 abstract operators when trying to determine whether two types are
3536 (Has_Hidden_Interp): New routine.
3537 (Set_May_Be_Hidden_Interp): New routine.
3538 (Write_Overloads): Write the status of flag May_Be_Hidden.
3540 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3541 Javier Miranda <miranda@adacore.com>
3543 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
3544 types declared in the declarative part of a nested package body or in
3545 the proper body of a stub.
3546 (Set_All_DT_Position): Add missing check to avoid wrong assignation
3547 of the same dispatch table slot to renamed primitives.
3548 (Make_Select_Specific_Data_Table): Handle private types.
3549 (Tagged_Kind): Handle private types.
3550 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
3551 output of implicit importation and exportation.
3552 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
3553 first formal of the thunk is always associated with the controlling
3554 type. In addition perform the following code cleanup: remove formal
3555 Thunk_Alias which is no longer required, cleanup evaluation of the
3556 the controlling type, and update the documentation.
3557 Replace occurrence of Default_Prim_Op_Count by
3558 Max_Predef_Prims. Addition of compile-time check to verify
3559 that the value of Max_Predef_Prims is correct.
3560 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
3561 (Make_DT): Add parameter to indicate when type has been frozen by an
3562 object declaration, for diagnostic purposes.
3563 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
3564 construction of statically allocated dispatch tables.
3565 (Make_DT): In case of library-level tagged types export the declaration
3566 of the primary tag. Remove generation of tags (now done by Make_Tags).
3567 Additional modifications to handle non-static generation of dispatch
3568 tables. Take care of building tables for asynchronous interface types
3569 (Make_Tags): New subprogram that generates the entities associated with
3570 the primary and secondary tags of Typ and fills the contents of Access_
3571 Disp_Table. In case of library-level tagged types imports the forward
3572 declaration of the primary tag that will be declared later by Make_DT.
3573 (Expand_Interface_Conversion): In case of access types to interfaces
3574 replace an itype declaration by an explicit type declaration to avoid
3575 problems associated with the scope of such itype in transient blocks.
3577 2007-08-14 Robert Dewar <dewar@adacore.com>
3578 Ed Schonberg <schonberg@adacore.com>
3579 Javier Miranda <miranda@adacore.com>
3581 * exp_util.ads, exp_util.adb:
3582 This patch replaces a number of occurrences of explicit tests for N_Null
3583 with calls to Known_Null. This improves tracking of null values, since
3584 Known_Null also catches null constants, and variables currently known to
3585 be null, so we get better tracking.
3586 (Ensure_Defined): create an itype reference only in the scope of the
3588 (Side_Effect_Free): A selected component of an access type that
3589 denotes a component with a rep clause must be treated as not
3590 side-effect free, because if it is part of a linked structure its
3591 value may be affected by a renaming.
3592 (Expand_Subtype_From_Expr): For limited objects initialized with build
3593 in place function calls, do nothing; otherwise we prematurely introduce
3594 an N_Reference node in the expression initializing the object, which
3595 breaks the circuitry that detects and adds the additional arguments to
3596 the called function. Bug found working in the new patch for statically
3597 allocated dispatch tables.
3598 (Is_Library_Level_Tagged_Type): New subprogram.
3599 (Remove_Side_Effects): If the expression of an elementary type is an
3600 operator treat as a function call.
3601 (Make_Literal_Range): If the index type of the array is not integer, use
3602 attributes properly to compute the constraint on the resulting aggregate
3605 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
3606 class-wide type whose base type is an incomplete private type, leave
3607 class-wide type unfrozen so that freeze nodes can be generated
3608 properly at a later point.
3609 (Freeze_Entity, array case): Handle case of pragma Pack and component
3610 size attributre clause for same array.
3612 2007-08-14 Vincent Celier <celier@adacore.com>
3614 * prj.ads, prj.adb: Update Project Manager to new attribute names for
3616 Allow all valid declarations in configuration project files
3617 (Reset): Initialize all tables and hash tables in the project tree data
3618 Major update of the Project Manager and of the project aware tools,
3619 including gprmake, so that the same sources in the GNAT repository
3620 can be used by gprbuild.
3621 (Slash_Id): Change type to be Path_Name_Type
3622 (Slash): Return a Path_Name_Type instead of a File_Name_Type
3624 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
3626 Update Project Manager to new attribute names for ghprbuild
3627 Allow all valid declarations in configuration project files
3628 Major update of the Project Manager and of the project aware tools,
3629 including gprmake, so that the same sources in the GNAT repository
3630 can be used by gprbuild.
3633 Major update of the Project Manager and of the project aware tools,
3634 including gprmake, so that the same sources in the GNAT repository
3635 can be used by gprbuild.
3637 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3638 insensitive flag for attributes with optional index.
3639 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3640 array attribute, put the index in lower case.
3641 Update Project Manager to new attribute names for ghprbuild
3642 Allow all valid declarations in configuration project files
3643 Major update of the Project Manager and of the project aware tools,
3644 including gprmake, so that the same sources in the GNAT repository
3645 can be used by gprbuild.
3647 * prj-env.ads, prj-env.adb:
3648 Major update of the Project Manager and of the project aware tools,
3649 including gprmake, so that the same sources in the GNAT repository
3650 can be used by gprbuild.
3651 (Get_Reference): Change type of parameter Path to Path_Name_Type
3653 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
3654 removing '-' from the path to start with the first character of the
3656 Major update of the Project Manager and of the project aware tools,
3657 including gprmake, so that the same sources in the GNAT repository
3658 can be used by gprbuild.
3659 Major update of the Project Manager and of the project aware tools,
3660 including gprmake, so that the same sources in the GNAT repository
3661 can be used by gprbuild.
3663 * prj-nmsc.ads, prj-nmsc.adb:
3664 Update Project Manager to new attribute names for ghprbuild
3665 Allow all valid declarations in configuration project files
3666 (Search_Directories): Detect subunits that are specified with an
3667 attribute Body in package Naming. Do not replace a source/unit in the
3668 same project when the order of the source dirs are known. Detect
3669 duplicate sources/units in the same project when the order of the
3670 source dirs are not known.
3671 (Check_Ada_Name): Allow all identifiers that are not reserved words
3673 Major update of the Project Manager and of the project aware tools,
3674 including gprmake, so that the same sources in the GNAT repository
3675 can be used by gprbuild.
3676 (Look_For_Sources): If the list of sources is empty, set the object
3677 directory of non extending project to nil.
3678 Change type of path name variables to be Path_Name_Type
3679 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
3680 otherwise creating missing directories will fail.
3682 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
3683 prj-part.ads, prj-part.adb:
3684 Major update of the Project Manager and of the project aware tools,
3685 including gprmake, so that the same sources in the GNAT repository
3686 can be used by gprbuild.
3688 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3689 insensitive flag for attributes with optional index.
3690 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3691 array attribute, put the index in lower case.
3692 (Parse_Variable_Reference): Allow the current project name to be used in
3693 the prefix of an attribute reference.
3695 * prj-util.ads, prj-util.adb
3696 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
3697 defaulted to False. When True, always check against indexes in lower
3700 * snames.ads, snames.h, snames.adb:
3701 Update Project Manager to new attribute names for gprbuild
3702 Allow all valid declarations in configuration project files
3704 2007-08-14 Robert Dewar <dewar@adacore.com>
3705 Ed Schonberg <schonberg@adacore.com>
3707 * opt.ads: Warning for non-local exception propagation now off by
3709 New switch -gnatI to disable representation clauses
3710 Implement new pragma Implicit_Packing
3713 Warning for non-local exception propagation now off by default
3714 Add warning for unchecked conversion of pointers wi different
3716 New switch -gnatI to disable representation clauses
3718 * usage.adb: new switch -gnatyS
3720 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
3721 note that aggregates of anonymous array types are not flagged.
3722 -gnatwc now includes membership tests optimized away
3723 -gnatw.x warnings are now off by default
3724 Added conditional compilation Appendix
3725 Add documentation of -gnatI
3726 Add documentation for new -gnatyS style check
3727 Update documentation about SAL and auto-init on Windows.
3730 Add documentation for pragma Check_Name and 'Enabled attribute
3731 Document that Eliminate on dispatching operation is ignored
3732 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
3733 Document pragma Main
3734 Document pragma Implicit_Packing
3736 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
3737 different conventions
3738 New switch -gnatI to disable representation clauses
3740 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
3741 recognized, report the invalid characters including "-gnat" instead of
3742 just the first character in the switch.
3743 New switch -gnatI to disable representation clauses
3744 Set Warn_On_Object_Renames_Function true for -gnatg
3746 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
3747 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
3748 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
3749 to switch -aP (add directory to project search dir).
3751 * par-prag.adb: Implement new pragma Implicit_Packing
3753 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
3754 type as having a non-standard representation, to force expansion on
3755 conversion to related types.
3756 (Analyze_Pragma): Warn on misspelled pragma
3757 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
3758 Ensure consistent use of # in error messages
3759 Implement pragma Implicit_Packing
3761 2007-08-14 Olivier Hainque <hainque@adacore.com>
3762 Eric Botcazou <ebotcazou@adacore.com>
3764 * targtyps.c (get_target_maximum_default_alignment): New function.
3766 that the compiler might choose by default for a type or object.
3767 (get_target_default_allocator_alignment): New function. Alignment known
3768 to be honored by the target default allocator.
3769 (get_target_maximum_allowed_alignment): New function. Maximum alignment
3770 we might accept for any type or object on the target.
3771 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
3773 * gigi.h (get_target_maximum_default_alignment): Declare new function.
3774 (get_target_default_allocator_alignment): Likewise.
3775 (get_target_maximum_allowed_alignment): Likewise.
3778 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
3779 result of a function call, first try to use a stabilized reference for
3780 a constant renaming too.
3781 (validate_alignment): Use target_maximum_allowed_alignment instead of
3782 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
3783 (gnat_to_gnu_entity): Use common nodes directly.
3784 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
3785 alignment and size for the object.
3786 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
3787 and N_Procedure_Call_Statement.
3788 (takes_address): Rename to lvalue_required_p, add third parameter
3789 'aliased' and adjust recursive calls.
3790 <N_Indexed_Component>: Update 'aliased' from the array type.
3791 <N_Selected_Component>: New case.
3792 <N_Object_Renaming_Declaration>: New Likewise.
3793 (Identifier_to_gnu): Adjust for above changes.
3794 (maybe_stabilize_reference) <CONST_DECL>: New case.
3796 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
3797 between type variants.
3798 (build_simple_component_ref): Likewise.
3799 (build_call_alloc_dealloc): Use target_default_allocator_alignment
3800 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
3801 aligning type circuitry for allocations from the default storage pool.
3802 (build_allocator): Likewise.
3803 (build_simple_component_ref): Manually fold the reference for a
3804 constructor if the record type contains a template.
3806 * utils.c (value_zerop): Delete.
3807 (gnat_init_decl_processing): Emit debug info for common types.
3808 (rest_of_record_type_compilation): If a union contains a field
3809 with a non-constant qualifier, treat it as variable-sized.
3810 (finish_record_type): Give the stub TYPE_DECL a name.
3811 (rest_of_record_type_compilation): Likewise.
3812 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
3813 types are equivalent array types.
3814 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
3815 even if the type is not passed by reference.
3816 (static_ctors, static_dtors): Delete.
3817 (end_subprog_body): Do not record constructors and destructors.
3818 (build_global_cdtor): Delete.
3819 (gnat_write_global_declarations): Do not call build_global_cdtor.
3821 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
3822 -fRTS=rtp is specified.
3823 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
3826 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
3827 of the personality function with SJLJ exceptions.
3829 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
3830 the name of the personality function with SJLJ exceptions.
3832 2007-08-14 Robert Dewar <dewar@adacore.com>
3833 Ed Schonberg <schonberg@adacore.com>
3835 * par.ads, par.adb: Improve handling of extra right parens.
3836 (Par): Remove flag From_Limited_With_Clause.
3838 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
3839 Improve handling of extra right parens.
3841 2007-08-14 Robert Dewar <dewar@adacore.com>
3843 * par-tchk.adb (TF_Semicolon): Improve error recovery
3845 2007-08-14 Robert Dewar <dewar@adacore.com>
3846 Ed Schonberg <schonberg@adacore.com>
3848 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
3849 enumeration type, mark all literals as referenced.
3850 (Eval_Attribute, case 'Image): If the argument is an enumeration
3851 literal and names are available, constant-fold but mark nevertheless as
3853 Clean up function names.
3854 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
3856 (Requires_Simple_Name_Prefix): Removed.
3858 2007-08-14 Robert Dewar <dewar@adacore.com>
3859 Ed Schonberg <schonberg@adacore.com>
3861 * sem_ch11.adb: Improved warnings for unused variables
3863 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
3864 is a synchronized interface, the derived type is limited.
3865 (Analyze_Object_Declaration): Mark the potential coextensions in the
3866 definition and expression of an object declaration node.
3867 (Build_Derived_Type): For the completion of a private type declaration
3868 with a derived type declaration, chain the parent type's representation
3869 items to the last representation item of the derived type (not the
3870 first one) if they are not present already.
3871 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
3872 object declaration of forward references to tags.
3873 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
3874 subprogram types can appear as access discriminants of synchronized
3876 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
3877 given in prefixed form as a selected component.
3878 (Process_Discriminants): If not all discriminants have defaults, place
3879 error message on a default that is present.
3880 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
3881 extend a synchronized tagged type.
3882 Improved warnings for unused variables
3883 (Is_Visible_Component): Fix a visibility hole on a component inherited
3884 by a private extension when parent is itself declared as a private
3885 extension, and the derivation is in a child unit.
3886 (Find_Hidden_Interface): Move spec from the package body.
3888 2007-08-14 Robert Dewar <dewar@adacore.com>
3889 Ed Schonberg <schonberg@adacore.com>
3891 * sem_ch5.adb: Improve warnings on redundant assignments
3893 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
3895 (Is_Synchronized_Tagged_Type): New subprogram that returns true
3896 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
3897 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
3898 is set to False. Improves handling of Known_[Not_]Null.
3899 (Wrong_Type): Special case address arithmetic attempt
3900 (Collect_Abstract_Interfaces): Add new formal to allow collecting
3901 abstract interfaces just using the partial view of private types.
3902 (Has_Abstract_Interfaces): Add new formal to allow checking types
3903 covering interfaces using the partial view of private types.
3904 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
3905 component still needs to be defined in this case, but is never
3906 initialized as VMs are using other dispatching mechanisms.
3907 (Abstract_Interface_List): For a protected type, use base type to get
3909 Improve warnings on redundant assignments
3910 (Is_Variable): Handle properly an implicit dereference of a prefixed
3912 (Build_Actual_Subtype): If this is an actual subtype for an
3913 unconstrained formal parameter, use the sloc of the body for the new
3914 declaration, to prevent anomalises in the debugger.
3916 2007-08-14 Robert Dewar <dewar@adacore.com>
3918 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
3919 dispatching operation
3921 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3922 Gary Dismukes <dismukes@adacore.com>
3925 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
3926 expanded aggregate code before allocator, and ahead of declaration for
3927 temporary, to prevent access before elaboration when the allocator is
3928 an actual for an access parameter.
3929 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
3930 the TSD and the table of interfaces.
3931 (Convert_To_Assignments): Augment the test for delaying aggregate
3932 expansion for limited return statements to include the case of extended
3933 returns, to prevent creation of an unwanted transient scope.
3934 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
3935 (Expand_Array_Aggregate): Handle aggregates associated with
3936 statically allocated dispatch tables.
3937 (Expand_Record_Aggregate): Handle aggregates associated with
3938 statically allocated dispatch tables.
3939 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
3940 of anonymous access type.
3942 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3944 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
3945 is a variable that renames a slice, use the variable itself in the
3946 expannsion when the renamed expression itself may be modified between
3947 the declaration of the renaming and the array assignment.
3949 2007-08-14 Jerome Guitton <guitton@adacore.com>
3951 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3952 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
3953 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
3954 New functions; dummy implementations.
3956 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
3957 functions, used to implement the multi-tasks mode routines on VxWorks.
3959 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
3961 binding to the VxWorks routines which have changed between VxWorks 5
3963 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
3964 which are not callable from a RTP.
3966 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
3967 implemented for the multi-tasks mode on VxWorks 5 and 6.
3969 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
3971 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
3974 2007-08-14 Vincent Celier <celier@adacore.com>
3976 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
3977 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
3978 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
3979 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3980 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3981 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
3982 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
3984 (Major_Id_Name): New function.
3985 mlib-tgt.ads/mlib.tgt.adb:
3986 (Library_Major_Minor_Id_Supported): New function, default returns True
3987 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
3988 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
3989 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
3990 Implementation of Library_Major_Minor_Id_Supported returns False
3992 (Clean_Library_Directory): If major/minor ids are supported, clean all
3994 Major update of the Project Manager and of the project aware tools,
3995 including gprmake, so that the same sources in the GNAT repository
3996 can be used by gprbuild.
3998 2007-08-14 Olivier Hainque <hainque@adacore.com>
4000 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
4001 (GCC_ZCX_Support): Switch to True.
4003 * s-intman-solaris.adb (Notify_Exception): Call
4004 Adjust_Context_For_Raise before raising, as expected for signal
4005 handlers in general.
4007 * s-intman-posix.adb (Notify_Exception): Remove declaration of
4008 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
4009 to other implementation bodies.
4011 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
4012 be visible by multiple implementation bodies.
4014 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
4015 only for conditions coming from hardware.
4016 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
4017 adjustments to signal context prior to exception raise from signal
4019 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
4021 Solaris section: (__gnat_adjust_context_for_raise): New function.
4022 Implementation of the machine context adjustments to perform prior to
4023 raise from a signal handler. Version for both sparc and x86.
4024 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
4025 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
4026 prior to raising as expected for any handler, before possible nested
4027 faults to make sure all the contexts in a chain have been adjusted by
4028 the time we propagate.
4030 2007-08-14 Pascal Obry <obry@adacore.com>
4032 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
4033 (SYSTEM_INFO): New record.
4034 (SetThreadIdealProcessor): New imported routine needed for supporting
4035 task_info pragma on Windows.
4037 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
4038 info can be applied to the current host.
4039 (Create_Task): Set the ideal processor if information is present.
4041 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
4042 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
4044 2007-08-14 Olivier Hainque <hainque@adacore.com>
4046 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
4047 stack size and initial stack pointer value for a given task.
4048 (Enter_Task): Get the stack attributes of the task we are entering and
4049 let the stack checking engine know about them.
4051 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
4052 Let the stack-checking engine know about the initial sp value and stack
4053 size associated with the current task.
4054 (Set_Stack_Info): If a stack base has been notified for the current
4055 task, honor it. Fallback to the previous less accurate method otherwise.
4057 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
4059 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4061 * sem_ch10.adb: Create a limited view of an incomplete type, to make
4062 treatment of limited views uniform for all visible declarations in a
4063 limited_withed package.
4064 Set flag indicating that a subprogram body for a child unit has a
4066 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
4067 separate declaration, remove the unit name from visibility after
4068 compilation, so that environment is clean for subsequent compilations.
4069 (Install_Limited_Context_Clauses): Do not install a
4070 limited_private_with_clause unless the current unit is a body or a
4072 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
4073 in the same fashion.
4074 (Install_Limited_Withed_Unit): Do not install a limited with clause if
4075 it applies to the declaration of the current package body.
4076 (Remove_Private_With_Clauses): If there is a regular with_clause for
4077 the unit, delete Private_With_Clause from context, to prevent improper
4078 hiding when processing subsequent nested packages and instantiations.
4080 2007-08-14 Jose Ruiz <ruiz@adacore.com>
4082 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
4083 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
4084 representing absolute path names.
4085 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
4087 * cstreams.c (__gnat_full_name for VxWorks): Use
4088 __gnat_is_absolute_path to detect whether we need to add the current
4089 directory to normalize the path.
4091 2007-08-14 Javier Miranda <miranda@adacore.com>
4094 a-tags.adb (Displace): Associate a message with the raised CE
4096 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
4097 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
4098 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
4100 (Default_Prim_Op_Count): Removed.
4101 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
4102 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
4103 Remove pragma Inline_Always.
4105 * rtsfind.ads (Default_Prim_Op_Count): Removed
4106 (Max_Predef_Prims): New entity
4107 (RE_Expanded_Name): Removed
4108 (RE_HT_Link): Removed
4109 (RE_Iface_Tag): Remmoved
4110 (RE_Ifaces_Table): Removed
4111 (RE_Interfaces_Array): Removed
4112 (RE_Interface_Data_Element): Removed
4113 (RE_Nb_Ifaces): Removed
4114 (RE_RC_Offset): Removed
4115 (RE_Static_Offset_To_Top): Removed
4117 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
4119 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
4120 Prim_Op_Count by Max_Predef_Prims.
4122 2007-08-14 Thomas Quinot <quinot@adacore.com>
4123 Vincent Celier <celier@adacore.com>
4125 * binde.adb (Elab_All_Links): Remove unnecessary call to
4126 Generic_Separately_Compiled (if a unit satisfies this predicate, there
4127 won't be an associated Afile).
4128 (Elab_All_Links): Fail if a referenced unit cannot be found
4131 Fix comments in bindgen regarding consistency checks done in Bcheck:
4132 the checks are made across units within a partition, not across several
4134 Fix generation of C binder file for VxWorks.
4136 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
4137 Generic_May_Lack_ALI, more descriptive of the current use of the
4138 predicate, and update documentation.
4140 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
4141 reorganization and documentation update for the case of predefined
4142 library generics (for which we do not reference an Afile).
4144 2007-08-14 Robert Dewar <dewar@adacore.com>
4146 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
4147 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
4148 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
4149 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
4150 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
4151 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
4152 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
4153 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
4154 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
4155 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
4156 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
4157 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
4158 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
4159 g-altcon.adb: Minor reformatting
4161 ada-tree.h: Delete empty line.
4163 ali.ads: Minor reformatting
4164 Clarification of comments.
4165 Minor spelling correction
4167 * exp_dbug.adb: Add Warnings Off to suppress new warning
4169 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4172 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
4175 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
4177 * a-textio.ads: Reorder the standard input/output/error declarations
4180 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
4182 * par-ch2.adb: Recognize RM specially in errout
4183 Change 'R'M to RM in all error messages
4185 * scng.adb: Recognize RM specially in errout
4187 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
4188 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
4190 * s-direio.adb: Add missing routine header box.
4192 * sem_attr.ads: Add ??? comments
4194 * sem_eval.adb: Recognize RM specially in errout
4195 Change 'R'M to RM in all error messages
4197 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
4199 * s-tasinf.ads: Fix minor comment typo.
4201 * a-cihama.adb: Minor comment addition
4203 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4206 * s-tasinf-tru64.ads: Fix minor comment typo.
4208 * itypes.ads: Comment update.
4210 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
4213 * argv.c: Added protection against null gnat_argv and gnat_envp.
4215 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
4216 warning message when Tolerate_Consistency_Errors is True.
4218 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
4219 Any_Id, as this subprogram is only applicable to *type* entities (it
4220 sets RM_Size). Instead initialize just Esize and Alignment.
4222 2007-08-14 Bob Duff <duff@adacore.com>
4224 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
4225 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
4226 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
4227 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
4228 a-coorse.ads (Next): Applied pragma Inline.
4229 Make all Containers packages Remote_Types (unless they are already
4231 (Previous): applied pragma Inline
4232 (Elements_Type): is now a record instead of an array
4234 2007-08-14 Thomas Quinot <quinot@adacore.com>
4236 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
4238 (Set_Item): When the new item is an element of the currently allocated
4239 table passed by reference, save a copy on the stack if we're going
4240 to reallocate. Also, in Table.Set_Item, make sure we test the proper
4241 variable to determine whether to call Set_Last.
4243 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
4244 symbols-vms.adb, symbols-processing-vms-alpha.adb,
4245 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
4246 some occurrences of the pattern
4248 T.Table (T.Last) := Value;
4249 with a cleaner call to
4252 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4253 Gary Dismukes <dismukes@adacore.com>
4254 Thomas Quinot <quinot@adacore.com>
4256 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
4257 derived type with interface progenitors use the analyzed formal as the
4258 parent of the actual, to create renamings for all the inherited
4259 operations in Derive_Subprograms.
4260 (Collect_Previous_Instances): new procedure within of
4261 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
4262 unit being loaded, to ensure that the generation of global symbols is
4263 consistent in different compilation modes.
4264 (Is_Tagged_Ancestor): New function testing the ancestor relation that
4265 takes progenitor types into account.
4266 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
4267 traversing over the primitives of the formal and actual types to locate
4268 any abstract subprograms of the actual type that correspond to a
4269 nonabstract subprogram of the formal type's ancestor type(s), and issue
4270 an error if such is found.
4271 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
4272 Instantiate_Package_Body, Instantiate_Subprogram_Body):
4273 Remove bogus guard around calls to Inherit_Context.
4274 (Reset_Entity): If the entity is the selector of a selected component
4275 that denotes a named number, propagate constant-folding to the generic
4276 template only if the named number is global to the generic unit.
4277 (Set_Instance_Env): Only reset the compilation switches when compiling
4278 a predefined or internal unit.
4280 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4282 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
4283 parameter to determine whether operation applies to the prefix.
4284 (Complete_Object_Operation): If actual has an access type and
4285 controlling formal is not an in_parameter, reject the actual if it is
4286 an access_to_constant type.
4287 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
4288 type, the candidate operations are found in the scope of declaration of
4289 the type, because the type has no primitive subprograms.
4290 (Analyze_Selected_Component): If prefix is class-wide, and root type is
4291 a private extension, only examine visible components before trying to
4292 analyze as a prefixed call.
4293 Change Entity_List to Type_To_Use, for better readability.
4294 (Has_Fixed_Op): Use base type when checking whether the type of an
4295 operator has a user-defined multiplication/division
4296 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
4297 user-defined operators are available for fixed-point types.
4299 2007-08-14 Thomas Quinot <quinot@adacore.com>
4300 Ed Schonberg <schonberg@adacore.com>
4302 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
4303 formal At_Any_Place indicating, when True, that we want to test for
4304 availability of the stream attribute at any place (as opposed to the
4305 current visibility context only).
4306 (Missing_Read_Write_Attributes): A stream attribute is missing for the
4307 purpose of enforcing E.2.2(8) only if it is not available at any place.
4308 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
4309 when checking the legality of an extension aggregate in a preelaborable
4310 package. Treat the literal null as a valid default expression in a
4311 component declaration for a type with preelaborable initialization.
4312 A limited interface is a legal progenitor for the designated type of a
4313 remote access to class-wide type.
4315 2007-08-14 Thomas Quinot <quinot@adacore.com>
4316 Ed Schonberg <schonberg@adacore.com>
4318 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
4319 reference): Use correct entity as denoted entity for the selector of
4321 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
4322 setting the Referenced_As_LHS flag for entities that are implicitly
4324 (Find_Type): If the type is an internally generated incomplete type,
4325 mark the full view as referenced, to prevent spurious warnings.
4326 (Find_Selected_Component, Has_Components): Handle properly non-limited
4327 views that are themselves incomplete types.
4328 Handle interfaces visible through limited-with clauses.
4329 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
4330 subprogram generic actual for which we have generated a renaming.
4331 Warn when the renaming introduces a homonym of
4332 the renamed entity, and the renamed entity is directly visible.
4334 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4335 Hristian Kirtchev <kirtchev@adacore.com>
4337 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
4338 appear in the subtree to the current allocator if it is not a static
4340 (Resolve_Allocator): Perform cleanup if resolution has determined that
4341 the allocator is not a coextension.
4342 (Resolve): Skip an interpretation hidden by an abstract operator only
4343 when the type of the interpretation matches that of the context.
4344 (Resolve): When looping through all possible interpretations of a node,
4345 do not consider those that are hidden by abstract operators.
4346 (Resolve_Actuals): When verifying that an access to class-wide object
4347 is an actual for a controlling formal, ignore anonymous access to
4348 subprograms whose return type is an access to class_wide type.
4349 (Resolve_Slice): If the prefix of the slice is a selected component
4350 whose type depends on discriminants, build its actual subtype before
4351 applying range checks on the bounds of the slice.
4352 (Valid_Conversion): In an instance or inlined body, compare root types,
4353 to prevent anomalies between private and public views.
4354 (Resolve): Improve error message for ambiguous fixed multiplication
4355 expressions that involve universal_fixed multiplying operations.
4357 2007-08-14 Javier Miranda <miranda@adacore.com>
4358 Hristian Kirtchev <kirtchev@adacore.com>
4360 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
4361 location to allow the correct generation of errors in case of
4362 restrictions applied to the expanded code.
4363 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
4364 function if the condition does not reference them.
4365 (Expand_Entry_Body_Declarations): Mark the index constant as having a
4368 2007-08-14 Thomas Quinot <quinot@adacore.com>
4370 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
4371 typecode parameters for a union (in a variant record), remove
4372 extraneous layer of Any wrapping for member label.
4373 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
4374 elabration statements, register the package with the name server
4375 at the beginning, not at the end, of the elaboration statements so
4376 that they can create remote access to subprogram values that designate
4377 remote subprograms from the package.
4379 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4381 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
4382 values to compute the number of seconds since the Unix Epoc in order to
4383 account for Daylight Savings Time. Perform special processing for dates
4384 that are earlier than the Unix Epoc to obtain a negative number.
4386 2007-08-14 Emmanuel Briot <briot@adacore.com>
4388 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
4391 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
4393 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
4394 binder-generated file is not in Ada.
4395 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
4396 recorded in the ALI file.
4397 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
4399 2007-08-14 Vincent Celier <celier@adacore.com>
4401 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
4402 (Output_Source): Do nothing if parameter is No_Sdep_Id
4404 * make.adb (Gnatmake): Do not rebuild an archive simply because a
4405 shared library it imports has a later time stamp.
4406 (Check): Resolve the symbolic links in the path name of the object
4408 Check that the ALI file is in the correct object directory
4409 Check if a file name does not correspond to the mapping of units
4411 (Display_Version): New procedure
4412 (Initialize): Process switches --version and --help
4413 Use type Path_Name_Type for path name
4415 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
4417 * impunit.adb: Re-organize System.Random_Numbers and
4418 GNAT.Random_Numbers and add to builds.
4420 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
4422 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
4424 * a-assert.ads, a-assert.adb: New files.
4426 2007-08-14 Gary Dismukes <dismukes@adacore.com>
4428 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
4429 if AAMP_On_Target is True, then the size of the type encompasses two
4430 addresses (a static link and a subprogram address), except in the case
4431 of library-level access types.
4433 2007-08-14 Vincent Celier <celier@adacore.com>
4435 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
4437 (Write_Eol_Keep_Blanks): New procedure to write a line, including
4438 possible trailing spaces.
4439 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
4441 2007-08-14 Javier Miranda <miranda@adacore.com>
4443 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
4444 null-excluding access types.
4446 2007-08-14 Javier Miranda <miranda@adacore.com>
4448 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
4449 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
4450 of private types add missing check on matching interfaces in the
4451 partial and full declarations.
4452 (Analyze_Protected_Type): Code cleanup.
4453 (Analyze_Task_Type): Code cleanup.
4455 2007-08-14 Javier Miranda <miranda@adacore.com>
4457 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
4458 generated interface thunk.
4460 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4462 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
4463 obsolescent warning on application of 'Class to an incomplete type.
4465 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
4466 prevent obsolescent warning on application of 'Class to an incomplete
4469 2007-08-14 Pascal Obry <obry@adacore.com>
4471 * s-fileio.adb (Is_Open): Add check for usability of the underlying
4474 2007-08-14 Cyrille Comar <comar@adacore.com>
4476 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
4477 since it is potentially used in cases implying double finalization of
4480 2007-08-14 Jose Ruiz <ruiz@adacore.com>
4482 * s-tasini.adb (Get_Stack_Info): Move this function to
4483 System.Soft_Links.Tasking because it is common to the full and the
4484 restricted run times.
4485 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
4486 in SSL.Tasking.Init_Tasking_Soft_Links.
4488 * s-solita.adb (Get_Stack_Info): Function moved from
4489 System.Tasking.Initialization because it is common to the full and the
4490 restricted run times.
4491 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
4493 2007-08-14 Arnaud Charlet <charlet@adacore.com>
4495 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
4496 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
4497 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
4500 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
4503 2007-08-14 Gary Dismukes <dismukes@adacore.com>
4505 * s-veboop.adb (SU): New named number initialized to
4506 System.Storage_Unit.
4507 (True_Val): The initialization expression is revised to use SU (=
4508 Storage_Unit) rather than assuming 8 for the component size of an
4509 unpacked Boolean array.
4511 2007-08-14 Tristan Gingold <gingold@adacore.com>
4513 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
4515 * tb-ivms.c: New file.
4517 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
4519 2007-08-14 Geert Bosch <bosch@adacore.com>
4521 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
4522 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
4523 Add required linker pragmas for automatically linking with the gnalasup
4524 linear algebra support library, and the systems math library.
4525 Rename cdot to cdotu and zdot to zdotu.
4526 Update header comment to describe purpose of package.
4528 2007-08-14 Thomas Quinot <quinot@adacore.com>
4530 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
4531 an explicitly specified Associated_Final_Chain, use that list.
4532 (Expand_N_Package_Body): Build dispatch tables of library level tagged
4534 (Expand_N_Package_Declaration): Build dispatch tables of library level
4535 tagged types. Minor code cleanup.
4537 2007-08-14 Vincent Celier <celier@adacore.com>
4539 * gnatchop.adb (Terminate_Program): Remove exception and use
4540 Types.Terminate_Program instead.
4542 * osint.ads, osint.adb (Current_Exit_Status): New global variable
4543 (Find_Program_Name): Added protection against empty name.
4544 (OS_Exit_Through_Exception): New procedure
4546 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
4547 (OS_Exit_Default): New procedure that contains the previous
4548 implementation of procedure OS_Exit.
4549 (Final_Value): Remove obsolete Interix stuff.
4551 2007-08-14 Thomas Quinot <quinot@adacore.com>
4553 * g-socket.ads: Reorganize example code so that it also works on
4556 2007-08-14 Tristan Gingold <gingold@adacore.com>
4558 * g-trasym.ads: AIX now supports symbolic backtraces.
4560 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4562 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
4563 units being loaded to detect circularities. A circularity may be
4564 present even if the current chain of pending units to load starts from
4565 a limited_with_clause.
4567 * lib-load.ads: Change profile of Load_Unit to use a with_clause
4568 rather than a boolean flag, in order to detect circularities in
4571 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
4572 than propagating the From_Limited_With flag, in order to handle
4573 properly circularities involving with_clauses.
4575 2007-08-14 Nicolas Setton <setton@adacore.com>
4577 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
4580 2007-08-14 Arnaud Charlet <charlet@adacore.com>
4582 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
4583 to build for libgnala.
4584 libgnat: Add rules to build libgnala.a
4585 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
4586 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
4587 Add s-osinte-vxworks-kernel.adb to the target pairs of the
4588 kernel run-time lib for VxWorks 6, which would provide a different
4589 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
4590 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
4591 running ZCX by default.
4592 Add g-sttsne-locking to LynxOS version.
4593 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
4594 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
4596 * system-darwin-x86.ads: New file.
4598 * Make-lang.in: Delete files before copying onto them, so if they are
4599 read-only, the copy won't fail.
4602 2007-08-14 Pascal Obry <obry@adacore.com>
4604 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
4607 2007-08-14 Vincent Celier <celier@adacore.com>
4609 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
4610 (Gcc): Initialize Gcc_Name at the first call
4612 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4614 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
4615 with_clauses of the enclosing unit when analyzing the package
4616 specification of a nested instance.
4618 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4620 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
4621 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
4622 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
4623 layout of N_Allocator.
4625 2007-08-14 Thomas Quinot <quinot@adacore.com>
4627 * rtsfind.adb (Check_RPC): Add PCS version check.
4629 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
4630 (Gnat_Free_Software): New function.
4632 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
4633 the PCS_Version value from s-parint, used to check that it is consistent
4634 with what exp_dist expects.
4636 * s-parint.ads (PCS_Version): New entity for checking consistency
4637 between exp_dist and PCS.
4639 * gen-soccon.c: (SO_REUSEPORT): New constant.
4641 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4643 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
4644 variable Sub_Second to Duration in order to accomodate a larger range
4645 of arithmetic operations.
4647 2007-08-14 Bob Duff <duff@adacore.com>
4649 * g-sttsne-locking.ads: Move comments from spec to body.
4650 * g-sttsne-locking.adb: Move comments from spec to body.
4651 * g-sttsne-vxworks.ads: Removed.
4652 * g-sttsne-vxworks.adb: Removed.
4654 2007-08-11 Ian Lance Taylor <iant@google.com>
4656 * misc.c (gnat_get_alias_set): Change return type to
4659 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4661 * decl.c, utils2.c: Fix whitespace in last change.
4663 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4665 * decl.c (compare_field_bitpos): Constify.
4666 * utils2.c (compare_elmt_bitpos): Likewise.
4668 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
4670 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
4671 anonymous access type.
4672 (pthread_sigmask): Now take an access sigset_t.
4674 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
4676 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
4678 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
4680 PR tree-optimization/25737
4681 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
4683 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4685 * trans.c (Attribute_to_gnu): When subtracting an
4686 offset from a pointer, use POINTER_PLUS_EXPR with
4687 NEGATE_EXPR instead of MINUS_EXPR.
4688 (gnat_to_gnu): Likewise.
4689 * utils.c (convert): When converting between
4690 thin pointers, use POINTER_PLUS_EXPR and sizetype
4692 * utils2.c (known_alignment): POINTER_PLUS_EXPR
4693 have the same semantics as PLUS_EXPR for alignment.
4694 (build_binary_op): Add support for the semantics of
4695 POINTER_PLUS_EXPR's operands.
4696 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
4698 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
4700 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
4701 of get_signed_or_unsigned_type.
4702 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
4704 2007-06-11 Bob Duff <duff@adacore.com>
4705 Thomas Quinot <quinot@adacore.com>
4707 * g-stsifd-sockets.adb (Create): Work around strange behavior of
4708 'bind' on windows that causes 'connect' to fail intermittently, by
4709 retrying the 'bind'.
4710 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4712 2007-06-10 Duncan Sands <baldrick@free.fr>
4714 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
4715 than to void, for the fields when making a new fat pointer type.
4716 (gnat_substitute_in_type): Now substitute_in_type.
4717 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
4718 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
4719 * utils.c (update_pointer_to): Update fat pointers by updating the
4720 dummy node pointers used for the fields.
4722 2007-06-06 Thomas Quinot <quinot@adacore.com>
4723 Bob Duff <duff@adacore.com>
4725 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
4726 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4727 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
4728 constant Thread_Blocking_IO, always True by default, set False
4729 on a per-runtime basis.
4730 (Need_Netdb_Buffer): New constant.
4732 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
4733 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
4736 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
4737 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
4738 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
4739 child package Task_Safe_NetDB
4740 (Host_Error_Messages): Add stub body.
4741 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4743 * g-soccon-mingw.ads: Add Windows-specific constants.
4744 (Need_Netdb_Buffer): New constant.
4745 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
4746 wrapper and import inet_addr(3) from the standard sockets library
4748 (In_Addr): Add alignment clause.
4749 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4751 2007-06-06 Robert Dewar <dewar@adacore.com>
4753 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4754 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
4755 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
4756 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
4757 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
4758 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
4759 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
4760 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
4761 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
4762 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
4763 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
4764 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
4765 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
4766 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4767 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4768 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
4769 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
4770 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
4771 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
4772 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
4773 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
4774 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
4775 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
4776 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
4777 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
4778 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
4779 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
4780 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
4781 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
4782 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
4783 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
4784 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
4785 Unchecked_* by Ada.Unchecked_*
4787 2007-06-06 Robert Dewar <dewar@adacore.com>
4789 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
4790 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
4791 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
4792 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
4793 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
4794 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
4796 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
4797 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
4798 s-tasloc.adb, s-tasloc.ads: New files.
4800 2007-06-06 Bob Duff <duff@adacore.com>
4803 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
4804 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
4805 (Send_Signal, Close): Raise Invalid_Process if the process id is
4807 (Pattern_Matcher_Access): Is now a general access type to be able to
4810 2007-06-06 Thomas Quinot <quinot@adacore.com>
4811 Arnaud Charlet <charlet@adacore.com>
4813 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
4814 (SIGEMT is now used instead of SIGTERM on AIX).
4816 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
4817 (Time_Slice_Supported): Set to True.
4818 Use SIGEMT instead of SIGTERM as SIGADAABORT.
4820 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4822 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
4823 (Time, Time)): Use To_Relative_Time rather than manual calculation to
4824 express the bounds of Duration as Time. Raise Time_Error when the
4825 result is greater or equal to the higher bound of Duration (on the
4827 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
4829 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
4831 ("-" (Time, Time)): Reorder code.
4832 (All_Leap_Seconds): Removed.
4833 (Arithmetic_Operations.Add): Remove sign related kludge.
4834 (Arithmetic_Operations.Difference): Control the leaps seconds processing
4835 with flag Leap_Support.
4836 (Arithmetic_Operations.Subtract): Remove sign related kludge.
4837 (Check_Within_Time_Bounds): New procedure.
4838 (Clock): Control the leap seconds processing with flag Leap_Support.
4839 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
4840 (Formatting_Operations.Split): Control the leap seconds processing with
4842 (Formatting_Operations.Time_Of): Control the leaps seconds processing
4843 with flag Leap_Support. Adjust the year, month and day (if applicable)
4844 when the value of day seconds designates a new day.
4845 (Split): Use parameter associations for better readability. Integrate
4847 (Time_Of): Use parameter associations for better readability. Integrate
4850 * a-calfor.adb (Split): Use parameter associations for better
4851 readability. Integrate flag Is_Ada_05.
4852 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
4853 better readability. Integrate flag Is_Ada_05.
4855 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4857 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
4858 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
4859 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
4860 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
4861 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
4862 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
4863 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
4864 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
4865 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
4866 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
4867 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
4868 time when entering this routine to detect a backward clock setting
4869 (manual setting or DST adjustment), to avoid waiting for a longer delay
4871 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
4872 Remove handling of deferred priority change, and replace by setting the
4873 task priority directly, as required by AI-188.
4875 (Max_Task_Image_Length): New constant.
4876 Replace Warnings (Off) by Unreferenced pragma, cleaner.
4877 (Dynamic_Priority_Support): Removed, no longer needed.
4878 (Poll_Base_Priority_Change): Ditto.
4879 (Set_Ceiling): Add this procedure to change the ceiling priority
4880 associated to a lock. This is a dummy implementation because dynamic
4881 priority ceilings are not supported by the underlying system.
4883 * a-dynpri.adb (Set_Priority): Take into account case where Target is
4884 accepting a RV with its priority boosted.
4885 Remove handling of deferred priority change, and replace by setting the
4886 task priority directly, as required by AI-188.
4888 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
4890 Remove handling of deferred priority change, and replace by setting the
4891 task priority directly, as required by AI-188.
4892 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
4895 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
4896 (Poll_Base_Priority_Change): Removed.
4897 Code clean up: use SSL.Current_Target_Exception.
4899 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
4900 to run as this is a potentially dispatching point.
4901 (Call_Synchronous): Use Local_Defer_Abort.
4902 (Callable): Relax assertion.
4903 (Selective_Wait): Relax assertion in case abort is not allowed.
4904 Remove handling of deferred priority change, and replace by setting the
4905 task priority directly, as required by AI-188.
4907 * s-tasuti.adb (Make_Passive): Adjust assertions.
4908 Remove handling of deferred priority change, and replace by setting the
4909 task priority directly, as required by AI-188.
4911 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4913 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4914 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4915 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
4916 system-vxworks-mips.ads, system-vxworks-alpha.ads,
4917 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
4918 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
4919 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
4920 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
4921 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
4922 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
4923 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
4924 This patch changes the largest non-binary modulus from 2**31-1 to
4926 (Compiler_System_Version): Removed, no longer used.
4927 Clean up system files by removing flags only used on a single target.
4928 Also remove obsolete flags, only used during bootstrap from system.ads
4929 (Address): Add a pragma Preelaborable_Initialization.
4931 * system-aix.ads: Ditto.
4932 (GCC_ZCX_Support): Set to true.
4933 Update priority range on AIX and map Ada priorities to target
4934 priorities appropriately for different scheduling policies.
4936 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
4938 2007-06-06 Vincent Celier <celier@adacore.com>
4940 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
4941 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
4943 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
4944 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
4945 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
4946 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
4947 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
4948 MLib.Tgt, containing the default versions of the exported subprograms.
4949 For each platform, create a specific version of the body of new child
4950 package MLib.Tgt.Specific that contains only the body of subprograms
4951 that are different from the default.
4952 (Archive_Builder_Append_Options): New function.
4954 2007-06-06 Matthew Gingell <gingell@adacore.com>
4956 * s-osinte-aix.adb: Map Ada priorities to target priorities
4957 appropriately for different scheduling policies.
4959 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4961 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
4963 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
4964 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
4966 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
4968 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
4969 Noop on VMS, added for interface commonality.
4971 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4972 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4973 Olivier Hainque <hainque@adacore.com>
4975 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
4976 renamed expression of a full renaming at toplevel.
4977 (gnat_to_gnu_entity, case object): If not defining, do not look inside
4978 the values the constant is initialized to if it is an N_Allocator.
4979 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
4980 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
4981 (make_aligning_type): Accept an extra ROOM argument for storage to be
4982 made available before the aligned field, and an extra BASE_ALIGN
4983 argument for callers to pass the alignment guaranteed to be honored for
4984 the whole aligning object. Avoid call to finish_record_type, which only
4985 interferes with the sizes we want to set.
4986 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
4987 make_aligning_type for super-aligned objects on stack.
4988 (components_to_record): Pass the adjusted size of the type when creating
4989 fields in the qualified union for the variant part.
4990 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
4991 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
4993 (maybe_pad_type): Set TYPE_USER_ALIGN.
4994 (make_aligning_type): Likewise.
4995 ALIGN argument is unsigned int.
4996 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
4997 (gnat_to_gnu_param): Likewise, for parameters.
4998 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
4999 if it is constant and stems from a function call.
5000 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
5001 of the record is specified. Adjust accordingly.
5002 (adjust_packed): New static function.
5003 (gnat_to_gnu_field): Use it to adjust the packedness setting.
5004 (components_to_record): Likewise.
5005 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
5006 side-effects if the object is deemed constant.
5007 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
5008 type instead of merely finalizing it. Tidy.
5009 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
5010 <E_Access_Type>: Likewise.
5011 (defer_debug_incomplete_list): Rename to defer_finalize_list.
5012 (defer_debug_level): Delete.
5013 (gnat_to_gnu_entity) <debug_deferred>: Likewise
5014 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
5016 <E_Record_Type>: Do not explicitly defer finalizing the type.
5017 Adjust for write_record_type_debug_info renaming.
5018 <E_Subprogram_Type>: Likewise.
5019 Finalize deferred types right after deferred incomplete types are
5021 (rest_of_type_decl_compilation): New global function.
5022 (components_to_record): Rename defer_debug parameter to do_not_finalize.
5023 (components_to_record): Propagate the packedness to the fields of the
5024 qualified union type if there is a variant part.
5025 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
5026 instead of inline code to adjust the XUT field offsets.
5027 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
5028 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
5029 and write the debug info if the type derives from a discriminated one.
5030 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
5031 <E_Array_Subtype>: Likewise.
5032 <E_String_Literal_Subtype>: Likewise.
5033 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
5034 an alignment clause.
5035 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
5036 before giving warning.
5037 (prepend_one_attribute_to): New function, helper to prepend an attribute
5038 to an attribute list.
5039 (gnat_to_gnu_entity) <E_Procedure>: Use it.
5040 (prepend_attributes): Likewise.
5041 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
5042 <E_Array_Type>: Declare the padding type for the element type, if any.
5043 <E_Array_Subtype>: Likewise.
5044 (defer_limited_with): New variable.
5045 (Gigi_Equivalent_Type): New function.
5046 (gnat_to_gnu_entity): Use it at start and use result throughout.
5047 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
5048 Gigi_Equivalent_Type, support Limited_With, allow two levels of
5049 indirection, precompute if unconstrained array to simplify logic, and
5050 use defer_limited_with to defer elaboration of some types from limited
5052 (finalize_from_with_types): New function.
5054 2007-06-06 Gary Dismukes <dismukes@adacore.com>
5055 Eric Botcazou <ebotcazou@adacore.com>
5056 Tristan Gingold <gingold@adacore.com>
5057 Olivier Hainque <hainque@adacore.com>
5059 * trans.c (Identifier_to_gnu): Change test for deferred constant by
5060 adding guard that the entity is an E_Constant before testing presence
5061 of Full_view (and remove unnecessary test that entity is not a type).
5062 For a CONST_DECL used by reference, manually retrieve
5063 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
5064 (struct language_function): Move from utils.c to here.
5065 (struct parm_attr): New structure.
5066 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
5067 (f_parm_attr_cache): New macro.
5068 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
5069 expressions for the 'First, 'Last and 'Length attributes of the
5070 unconstrained array IN parameters.
5071 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
5072 Allocate the information structure for the function earlier, as well
5073 as the language-specific part.
5074 If the parameter attributes cache has been populated, evaluate the
5075 cached expressions on entry.
5076 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
5077 N_Procedure_Call_Statement and N_Indexed_Component.
5078 (Pragma_to_gnu): Translate inspection_point to an asm statement
5079 containaing a comment and a reference to the object (either its address
5080 for BLKmode or its value).
5081 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
5082 to go to DECL_INITIAL. Together with the size constraint relaxation
5083 in create_var_decl, enlarges the set of situations in which an
5084 identifier may be used as an initializer without implying elaboration
5086 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
5087 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
5089 (maybe_stabilize_reference): Remove lvalues_only parameter.
5090 (gnat_stabilize_reference): Adjust for above change.
5091 (gnat_to_gnu): Do not set location information on the result
5092 if it is a reference.
5093 (add_cleanup): Add gnat_node parameter and set the location of the
5095 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
5096 (Exception_Handler_to_gnu_zcx): Likewise.
5097 (gigi): Remove the cgraph node if the elaboration procedure is empty.
5098 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
5099 the former right after the latter.
5100 (start_stmt_group): Make global.
5101 (end_stmt_group): Likewise.
5102 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
5104 (gnu_program_error_label_stack): Likewise.
5105 (gigi): Initialize them.
5106 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
5107 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
5109 (push_exception_label_stack): New function.
5110 (takes_address): New function.
5112 * utils.c (struct language_function): Move to trans.c from here.
5113 (unchecked_convert): Do not wrap up integer constants in
5115 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
5116 the latter for aggregate types, unexpected by later passes, and relax an
5117 arbitrary size constraint on the former.
5118 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
5119 to compare the sizes.
5120 (convert_vms_descriptor): When converting to a fat pointer type, be
5121 prepared for a S descriptor at runtime in spite of a SB specification.
5122 (shift_unc_components_for_thin_pointers): New function.
5123 (write_record_type_debug_info): For variable-sized fields, cap the
5124 alignment of the pointer to the computed alignment.
5125 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
5126 If REP_LEVEL is 2, do not compute the sizes.
5127 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
5128 (build_unc_object_type): Likewise.
5129 (declare_debug_type): New function.
5131 * ada-tree.def: USE_STMT: removed (not emitted anymore).
5133 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
5134 no statement is expandable anymore.
5135 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
5136 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
5137 when the user requested it explicitely.
5138 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
5140 (get_alias_set): Return alias set 0 for a type if
5141 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
5143 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
5144 (DECL_FUNCTION_STUB): New accessor macro.
5145 (SET_DECL_FUNCTION_STUB): New setter macro.
5147 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
5149 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
5152 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5154 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
5155 Rename to Abort_Task_Interrupt to be able to keep the same interface
5156 as the rest of the targets.
5158 * s-osinte-vxworks.ads s-osinte-vxworks.adb
5159 (To_VxWorks_Priority): Remove explicit "in" mode indicator
5161 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
5164 2007-06-06 Robert Dewar <dewar@adacore.com>
5166 * a-chahan.ads: Remove obsolescent pragmas
5168 * a-chlat1.ads: Minor reformatting
5170 2007-06-06 Robert Dewar <dewar@adacore.com>
5172 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
5175 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
5178 * errout.ads (Finalize): Changed interface
5179 (Output_Messages): New procedure
5180 (Compilation_Errors): New Interface
5182 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
5183 Finalize/Output_Messages interface for Errout
5184 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
5187 2007-06-06 Thomas Quinot <quinot@adacore.com>
5188 Olivier Hainque <hainque@adacore.com>
5189 Robert Dewar <dewar@adacore.com>
5191 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
5193 (Raise_Current_Excep): Call Debug_Raise_Exception just before
5194 propagation starts, to let debuggers know about the event in a reliable
5196 (Local_Raise): Moved to System.Exceptions
5197 More convenient to have this as a separate unit
5199 * s-except.adb, s-except.ads: New files.
5201 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
5202 Debug_Unhandled_Exception in System.Exceptions where it belongs
5203 together with a couple of other debug helpers.
5204 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
5205 the former Unhandled_Exception.
5207 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
5208 (Warn_No_Exception_Propagation): New procedure
5209 (Warn_If_No_Propagation): Rewritten for new warning generation
5210 (Expand_Exception_Handlers): New warning generation
5211 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
5212 (Add_Exception_Label): Use Special_Exception_Package_Used for test
5213 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
5214 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
5215 even if restriction is set (makes life easier in Check_Returns)
5216 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
5217 checking exception identities.
5218 (Expand_Local_Exception_Handlers): Do not optimize when all others case
5219 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
5220 block for handler (used by Check_Returns)
5221 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
5222 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
5223 remove all exception handlers when optimizing local raise statements.
5224 (Find_Local_Handler): Use Get_Renamed_Entity
5225 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
5226 marked analyzed after expanding exception handlers, do not generate
5227 redundant cleanup actions, because they have been constructed already.
5229 2007-06-06 Thomas Quinot <quinot@adacore.com>
5231 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
5232 presence of this categorization pragma is mandated by the language.
5233 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
5236 2007-06-06 Vincent Celier <celier@adacore.com>
5237 Robert Dewar <dewar@adacore.com>
5239 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
5240 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
5241 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
5242 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5243 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
5244 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
5245 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
5246 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
5247 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
5248 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
5249 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
5251 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
5252 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
5253 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
5254 Use variables of types File_Name_Type and Unit_Name_Type in error
5256 (Get_Name): Add parameter Ignore_Special, and set it reading file name
5257 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
5259 Define flags Flag217-Flag230 with associated subprograms
5260 (Flag_Word5): New record type.
5261 (Flag_Word5_Ptr): New access type.
5262 (To_Flag_Word5): New unchecked conversion.
5263 (To_Flag_Word5_Ptr): Likewise.
5264 (Flag216): New function.
5265 (Set_Flag216): New procedure.
5267 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5269 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
5272 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
5274 2007-06-06 Javier Miranda <miranda@adacore.com>
5276 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
5278 (Object_Specific_Data_Array): This is now internal to the package.
5279 (Object_Specific_Data): This is now internal to the package.
5280 (Select_Specific_Data_Element): This is now internal to the package.
5281 (Select_Specific_Data_Array): This is now internal to the package.
5282 (Select_Specific_Data): This is now internal to the package.
5283 (Offset_To_Top_Function_Ptr): This is now public.
5284 (To_Offset_To_Top_Function_Ptr): Removed.
5285 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
5286 local to subprogram Offset_To_Top.
5287 (Predefined_DT): Removed.
5288 (Typeinfo_Ptr): Removed.
5289 (OSD): This function is now internal to this package.
5290 (SSD): This function is now internal to this package.
5291 (DT): New function that displaces the pointer to the table of primitives
5292 to get access to the enclosing wrapper record.
5293 (IW_Membership): Code cleanup.
5294 (Offset_To_Top): Code cleanup.
5295 (Predefined_DT): Removed.
5296 (Register_Interface_Tag): Removed.
5297 (Set_Interface_Table): Removed.
5298 (Set_Offset_Index): Removed.
5299 (Set_Offset_To_Top): Code cleanup.
5301 (Set_Signature): Removed.
5303 (Set_Tagged_Kind): Removed.
5304 (Typeinfo_Ptr): Removed.
5306 (Displace): Add missing check on null actual.
5308 * exp_disp.ads, exp_disp.adb
5309 (Select_Expansion_Utilities): Removed.
5310 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
5311 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
5312 the interface requires a new parameter.
5313 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
5314 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
5315 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
5316 Done to remove package Select_Expansion_Utilities.
5317 (Make_DT): New implementation for statically allocated dispatch tables.
5318 (Make_Secondary_DT): Moved to the scope of Make_DT.
5319 (Register_Primitive): Code cleanup plus incoporate the use of the new
5320 function DT_Address_Attribute.
5321 (Expand_Interface_Thunk): The profile of this subprogram has been
5322 changed to return the Thunk_Id and the corresponding code.
5323 (Fill_DT_Entry): Removed. Its functionality is now provided by
5324 subprogram Register_Primitive.
5325 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
5326 subprogram Register_Primitive.
5327 (Register_Primitive): New subprogram that incorporates the previous
5328 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
5329 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
5330 was only required to call Make_DT_Access_Action, which is now removed.
5331 (Ada_Actions): Removed
5332 (Action_Is_Proc): Removed
5333 (Action_Nb_Arg): Removed
5334 Replace all the calls to Make_DT_Access_Action by direct calls to
5335 Make_Procedure_Call_Statement or Make_Function_Call.
5336 (Set_DTC_Entity_Value): New subprogram.
5337 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
5338 (Expand_Interface_Thunk): Add missing support for primitives that are
5339 functions with a controlling result (case in which there is no need
5340 to generate the thunk).
5342 * exp_atag.ads, exp_atag.adb
5343 (Build_DT): New subprogram that displaces the pointer to reference the
5344 base of the wrapper record.
5345 (Build_Typeinfo_Offset): Removed.
5346 (RTE_Tag_Node): Removed.
5347 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
5348 (Build_Get_RC_Offset): Removed.
5349 (Build_Inherit_Predefined_Prims): Removed.
5350 (Build_Inherit_TSD: Removed.
5351 (Build_New_TSD): Removed.
5352 (Build_Set_External_Tag): Removed.
5353 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
5354 (Build_Set_Prim_Op_Address): Add documentation.
5355 (Build_Set_TSD): Removed.
5357 * rtsfind.ads, rtsfind.adb
5358 (Load_Fail): If load fails and we are not in configurable run-time
5359 mode, then raise Unrecoverable_Error.
5360 (Text_IO_Kludge): Generate an error message if a run-time library is
5361 not available in a given run-time (ie. zfp run-time).
5362 (RTE_Record_Component): Add code to check that the component we search
5363 for is not found in two records in the given run-time package.
5364 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
5365 (RE_DT_Predef_Prims_Offset): New entity
5366 (RE_Static_Offset_To_Top): New entity
5367 (RE_HT_Link): New entity.
5368 (System_Address_Image): Addition of this run-time package.
5369 (RE_Address_Image): New entity.
5370 (RE_Abstract_Interface): Removed.
5371 (RE_Default_Prim_Op_Count): Removed.
5372 (RE_DT_Entry_Size): Removed.
5373 (RE_DT_Min_Prologue_Size): Removed.
5374 (RE_DT_Prologue_Size): Removed.
5375 (RE_Ifaces_Table_Ptr): Removed.
5376 (RE_Interface_Data_Ptr): Removed.
5377 (RE_Type_Specific_Data): Removed.
5378 (RE_Primary_DT): Removed.
5379 (RE_Register_Interface_Tag): Removed.
5380 (RE_Set_Offset_Index): Removed.
5381 (RE_Set_OSD): Removed.
5382 (RE_Set_SSD): Removed.
5383 (RE_Set_Signature): Removed.
5384 (RE_Set_Tagged_Kind): Removed.
5385 (RE_Address_Array): New entity.
5386 (RE_DT): New entity.
5387 (RE_Iface_Tag): New entity.
5388 (RE_Interfaces_Table): New entity.
5389 (RE_No_Dispatch_Table): New entity.
5390 (RE_NDT_Prims_Ptr): New entity.
5391 (RE_NDT_TSD): New entity.
5392 (RE_Num_Prims): New entity.
5393 (RE_Offset_To_Top_Function_Ptr): New entity.
5394 (RE_OSD_Table): New entity.
5395 (RE_OSD_Num_Prims): New entity.
5396 (RE_Predef_Prims): New entity
5397 (RE_Predef_Prims_Table_Ptr): New entity.
5398 (RE_Primary_DT): New entity.
5399 (RE_Signature): New entity.
5400 (RE_SSD): New entity.
5401 (RE_TSD): New entity.
5402 (RE_Type_Specific_Data): New entity.
5403 (RE_Tag_Kind): New entity.
5405 2007-06-06 Thomas Quinot <quinot@adacore.com>
5407 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
5408 C imported variable.
5409 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
5412 2007-06-06 Robert Dewar <dewar@adacore.com>
5414 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
5417 2007-06-06 Vincent Celier <celier@adacore.com>
5419 * a-tifiio.adb (Put, internal): For negative numbers, check that there
5420 is room for at least one digit and the minus sign.
5421 (Put.Put_Character): Never put a character outside of the range of
5424 2007-06-06 Olivier Hainque <hainque@adacore.com>
5425 Eric Botcazou <ebotcazou@adacore.com>
5427 * utils2.c (build_allocator): Provide the extra arguments to
5428 make_aligning_type for super-aligned objects allocated from the default
5429 pool. Leave enough room for a pointer before the aligning field, and
5430 store the system's allocator return value there.
5431 (build_call_alloc_dealloc): When releasing a super-aligned object,
5432 retrieve the system's allocator return value from where build_allocator
5433 has stored it, just ahead of the adjusted address we are passed.
5434 (build_call_raise): Handle properly the generation of line numbers when
5435 the node is marked No_Location.
5436 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
5437 by using DECL_UID on ties.
5438 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
5440 (build_call_raise): Handle converting exception into goto; support new
5442 (build_component_ref): Add new arg to build_call_raise.
5444 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5446 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
5447 "." in the case of nnn.xxx when nnn terminates with an underscore.
5448 Parse the remaining "#" or ":" in the case of nnn#.xxx#
5450 2007-06-06 Robert Dewar <dewar@adacore.com>
5452 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
5454 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5455 Vincent Celier <celier@adacore.com>
5456 Robert Dewar <dewar@adacore.com>
5458 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
5460 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
5461 ((destructor)) for adafinal, even when switch -a is used.
5462 Do not issue pragma Linker_Destructor for adafinal when switch -a is
5464 (Gen_Object_Files_Options): Add formatting of Linker Options, when
5465 Output_Linker_Option_List is set. Suppress this formatting when
5466 Zero_Formatting is set.
5467 Add case for CLI_Target.
5468 (System_Restrictions_Used): New flag, used to avoid generating with of
5469 System_Restrictions and initialization of the data unless there is
5470 some use of System.Restrictions in the partition.
5471 (Check_System_Restrictions_Used): New procedure
5473 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
5474 since we only with this unit in the binder file if it is used elsewhere
5477 2007-06-06 Vincent Celier <celier@adacore.com>
5479 * bindusg.adb: Add line for @<response file>
5480 Add lines for new switches -R and -Z
5482 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
5483 hierarchy in the list of files of the closure when -R is used
5484 (Gnatbind): Accept arguments starting with '@' to indicate response
5485 files and take the arguments from the response files.
5486 If List_Closure is set, display the referenced files
5488 2007-06-06 Javier Miranda <miranda@adacore.com>
5489 Robert Dewar <dewar@adacore.com>
5490 Ed Schonberg <schonberg@adacore.com>
5492 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
5493 which the address-clause is applied to in-mode actuals (allowed by
5495 (Apply_Discriminant_Check): Do not generate a check if the type is
5496 constrained by a current instance.
5497 (Activate_Division_Check): New procedure
5498 (Activate_Overflow_Check): New procedure
5499 (Activate_Range_Check): New procedure
5500 Call these new Activate procedures instead of setting flags directly
5501 (Apply_Array_Size_Check): Removed, no longer needed.
5502 Code clean up: remove obsolete code related to GCC 2.
5503 (Get_E_Length): Protect against bomb in case scope is standard
5504 (Selected_Range_Checks): If the node to be checked is a conversion to
5505 an unconstrained array type, and the expression is a slice, use the
5506 bounds of the slice to construct the required constraint checks.
5507 Improve NOT NULL error messages
5508 (Apply_Constraint_Check): If the context is a null-excluding access
5509 type, diagnose properly the literal null.
5511 2007-06-06 Pascal Obry <obry@adacore.com>
5513 * clean.adb (Clean_Archive): Use untouched casing for the archive name
5514 and the corresponding .deps file.
5515 (Clean_Interface_Copy_Directory): Use untouched casing for the library
5516 src directory. Minor code-clean-up. Use untouched casing for files
5517 read into the library src dir.
5518 (Clean_Library_Directory): Idem.
5519 (Parse_Cmd_Line): Accept new switch -aP
5521 2007-06-06 Javier Miranda <miranda@adacore.com>
5522 Ed Schonberg <schonberg@adacore.com>
5523 Robert Dewar <dewar@adacore.com>
5524 Eric Botcazou <ebotcazou@adacore.com>
5525 Arnaud Charlet <charlet@adacore.com>
5527 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
5528 applicable to types that have the With_Type flag set. Returns the
5529 non-limited view of the type, if available, otherwise the type itself.
5530 For class-wide types, there is no direct link in the tree, so we have
5531 to retrieve the class-wide type of the non-limited view of the Etype.
5532 New attributes Static_Initialization and Static_Elaboration_Desired.
5533 Remove the pragma Thread_Body, and the associated flag
5534 Is_Thread_Body in entities, and all related code.
5535 (Suppress_Value_Tracking_On_Call): New flag
5536 E_Exception has Esize and Alignment fields
5537 (Universal_Aliasing): New function.
5538 (Set_Universal_Aliasing): New procedure.
5539 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
5540 (Check_Nested_Access): New procedure.
5541 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5542 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5543 (Related_Interface): New attribute. Present in dispatch table pointer
5544 components of records. Set to point to the entity of the corresponding
5546 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
5547 (Original_Access_Type): Remove, not needed.
5548 (Root_Type): Handle properly subtypes of class-wide-types.
5551 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
5552 class-wide types visible through limited-with clauses.
5553 (Try_Primitive_Operation): When examining all primitive operations of a
5554 tagged type, do not consider subprograms labeled as hidden unless they
5555 belong to a private generic type with a tagged parent.
5556 (Try_Object_Operation): Extensive rewriting, to handle properly various
5557 overloading cases, when several ancestors may have class-wide operations
5558 that are possible candidates, and when the overloaded functions return
5559 array types and have defaulted parameters so that the call may be
5560 interpreted as an indexing.
5561 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
5562 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
5563 successive actuals before analyzing the call itself.
5564 (Try_Primitive_Operation): A primitive operation is compatible with the
5565 prefix if the prefix has a synchronized type and the type of the formal
5566 is its corresponding record, as can be the case when the primitive
5567 operation is declared outside of the body of the type.
5568 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
5569 perform homonym traversal, looking for class-wide operation matches
5570 (formerly done in statements of Try_Class_Wide_Operation). Matches on
5571 access parameters are now restricted to anonymous access types.
5572 (Mark_Allocator): An allocator with a discriminant association parent is
5574 (Try_One_Prefix_Interpretation): If the type of the object is
5575 incomplete, as can be happen when it is a limited view obtained through
5576 a limited_with_clause, the selected component is not part of a prefixed
5578 (Complete_Object_Operation): Diagnose properly an object that is not
5579 aliased when the corresponding controlling formal is an access
5581 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
5582 ambiguous calls in prefixed notation, where two primitives differ only
5583 in that the controlling argument of one is an access parameter.
5585 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
5586 whether a function that returns an unconstrained type can be inlined.
5587 (Process_Formals): Diagnose properly the illegal use of an incomplete
5588 type in the profile of an access_to_subprogram declaration.
5589 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
5590 operations are attached to the corresponding record.
5591 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
5592 When processing a primitive of a concurrent type which implements an
5593 interface change the type of all controlling formals to that of the
5594 corresponding record type.
5595 (Check_Synchronized_Overriding): Relax the conditional logic when trying
5596 to determine the tagged type to which a primitive belongs.
5597 (Check_Conventions): Capture condition to ignore a primitive operation
5598 (which is shared between the loop in Check_Conventions and the one in
5599 Check_Convention) in a new local function Skip_Check.
5600 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
5601 confusion with Check_Conventions' own Prim_Op local variable.
5602 (Create_Extra_Formals): Test for a tagged result type rather than a
5603 controlling result when determining whether to add a BIP_Alloc_Form
5604 formal and a BIP_Final_List formal to the function.
5605 (Check_Conformance); For parameters that are anonymous access types,
5606 subtype conformance requires that the not null and the constant
5607 indicators must match
5608 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
5609 to retrieve the appropriate type when processing a concurrent type
5610 declared within a generic. Minor comment reformatting. Change invocation
5611 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
5613 (Analyze_Subprogram_Body): If the return type of a function is an
5614 anonymous access to the limited view of a class-wide type, and the
5615 non-limited view of the type is available, update the type of the
5616 function so that code can be generated.
5617 (Process_Formals): In case of access-subtype itype whose designated
5618 type is also an itype (situation that happens now with access to
5619 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
5620 attribute to avoid backend problems.
5621 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
5622 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
5623 anonymous types' designated types are same before testing
5624 Subtypes_Statically_Match.
5625 (Create_Extra_Formals): Test for a named access parameter that is a
5626 controlling formal as an additional condition for adding an
5627 accessibility level formal. This can occur in the subp type created for
5628 dispatching calls in Expand_Dispatching_Call, and allows calling
5629 Create_Extra_Formals from that procedure rather than special-casing the
5630 extra formals there.
5631 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
5632 when the function has a controlling result.
5633 (Check_Returns): Add much more knowledge of the optimization of local
5634 raise statements to gotos, to retain proper warnings in this case.
5635 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
5636 nodes when looking for last statement.
5638 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
5639 class-wide types visible through limited with clauses.
5640 (Add_One_Interp): If the operands are anonymous access types, the
5641 predefined operator on universal_access is immediately visibles
5642 (Find_Unique_Type): Handle anonymous access to subprogram types just as
5643 other anonymous access types.
5644 (Disambiguate): Take into account CIL convention.
5645 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
5647 2007-06-06 Robert Dewar <dewar@adacore.com>
5649 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
5650 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
5651 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
5652 Fix lower bound of tables.
5655 * nlists.adb: Ditto.
5656 (Prev_Node, Next_Node): Change index type to Int so that it properly
5657 covers the range First_Node_Id - 1 up.
5659 2007-06-06 Javier Miranda <miranda@adacore.com>
5660 Ed Schonberg <schonberg@adacore.com>
5661 Bob Duff <duff@adacore.com>
5662 Hristian Kirtchev <kirtchev@adacore.com>
5664 * exp_aggr.ads, exp_aggr.adb:
5665 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
5666 in extension aggregates.
5667 (Flatten): Other conditions being met, an aggregate is static if the
5668 low bound given by component associations is different from the low
5669 bound of the base index type.
5670 (Packed_Array_Aggregate_Handled): If the component type is itself a
5671 packed array or record, the front-end must expand into assignments.
5672 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
5673 Init_Pr, instead of Ancestor_Is_Expression.
5674 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
5675 coextension chain root, either generate a list controller or use the
5676 already existing one.
5677 (Static_Array_Aggregate): New procedure to construct a positional
5678 aggregate that can be handled by the backend, when all bounds and
5679 components are compile-time known constants.
5680 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
5681 types covering interface types into assignments.
5682 (Replace_Type): move to Build_Record_Aggr_Code.
5683 (Expand_Record_Aggr_Code): if the target of the aggregate is an
5684 interface type, convert to the definite type of the aggregate itself,
5685 so that needed components are visible.
5686 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
5687 components and the context is an extended return statement do not
5688 create a transient block for it, to prevent premature finalization
5689 before the return is executed.
5690 (Gen_Assign): Do not generate a call to deep adjust routine if the
5691 component type is itself an array of controlled (sub)-components
5692 initialized with an inner aggregate.
5693 (Component_Check): New name for Static_Check. This name is now more
5694 appropriate, and documentation is added which was missing.
5695 (Component_Check): Add test for bit aligned component value
5696 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
5697 Tagged_Comps, name is more appropriate given added function below.
5698 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
5700 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5701 Javier Miranda <miranda@adacore.com>
5702 Robert Dewar <dewar@adacore.com>
5704 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
5705 Terminated: Add unchecked type conversion from System.Address to
5706 System.Tasking.Task_Id when calling the predefined primitive
5708 Disable new Ada 05 accessibility check for JVM.NET targets, which
5709 cannot be implemented in a practical way.
5710 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
5711 the sources always references the tag of the actual object. Therefore,
5712 if 'Tag is applied in the sources to class-wide interface objects we
5713 generate code that displaces "this" to reference the base of the object.
5714 (Expand_N_Attribute_Reference, case Size): Return specified size if
5716 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
5717 has code that displaces the pointer of the object to manage interface
5718 types. However this code must not be executed when the prefix is a
5719 subprogram. This bug caused the wrong expansion of the internally
5720 generated assignment that fills the dispatch table when the primitive
5721 is a function returning a class-wide interface type.
5722 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
5723 Set_Attribute_Name for Name_Unaligned_Valid.
5725 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5726 Gary Dismukes <dismukes@adacore.com>
5728 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5729 If the initialization is the equivalent aggregate of the initialization
5730 procedure of the type, do not remove it.
5731 (Expand_N_Attribute_Definition_Clause): Exclude access variables
5732 initialized to null from having their expression reset to empty and
5733 note this exception in the comment.
5735 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5736 Robert Dewar <dewar@adacore.com>
5737 Ed Schonberg <schonberg@adacore.com>
5738 Gary Dismukes <dismukes@adacore.com>
5740 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
5741 Add "with" and "use" clauses for Sem_Attr.
5742 (Expand_Current_Value): Do not replace occurences of attribute
5743 references where the prefix must be a simple name.
5745 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
5746 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
5747 Attribute_Requires_Simple_Name_Prefix.
5748 (Name_Modifies_Prefix): Body of new function.
5749 (Requires_Simple_Name_Prefix): Body of new function.
5750 (Resolve_Attribute, case Access): Improve error message for case of
5751 mismatched conventions.
5752 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
5754 (Analyze_Attribute, case 'Access): If the type of the prefix is a
5755 constrained subtype for a nominal unconstrained type, use its base type
5756 to check for conformance with the context.
5757 (Resolve_Attribute): Remove test of the access type being associated
5758 with a return statement from condition for performing accessibility
5759 checks on access attributes, since this case is now captured by
5760 Is_Local_Anonymous_Access.
5761 (Analyze_Access_Attribute): Set Address_Taken on entity
5762 (Analyze_Attribute, case Address): Set Address_Taken on entity
5763 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
5764 validating an access attribute whose prefix is a current instance.
5765 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
5766 applied to dispatching operations, if freezing is required then we set
5767 the attribute Has_Delayed_Freeze in the prefix's entity.
5768 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
5769 current scope if access of local subprogram taken
5770 (Analyze_Access_Attribute): Check legality of self-reference even if the
5771 expression comes from source, as when a single component association in
5772 an aggregate has a box association.
5773 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
5774 the prefix if it is a protected operation and the attribute is
5775 Unrestricted_Access.
5776 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
5777 reference to the base type of the context, to force a constraint check
5778 when the context is an access subtype with an explicit constraint.
5779 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
5780 node is rewritten as an interface conversion. leave unanalyzed after
5781 resolution, to ensure that type checking against the context will take
5784 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5785 Javier Miranda <miranda@adacore.com>
5786 Robert Dewar <dewar@adacore.com>
5788 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
5789 wrapper when the full view of the controlling type of an inherited
5790 function that dispatches on result implements interfaces.
5791 (Expand_N_Object_Declaration): In cases where the type of the
5792 declaration is anonymous access, create finalization list for it.
5793 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
5794 if the object has no explicit initialization, to match description of
5795 functionality of pragam Persistent_BSS.
5796 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
5797 new function to build static aggregates, to replace initialization call
5798 when static initialization is desired.
5799 (Freeze_Type): Generate a list controller for an access type whenever
5800 its designated type has controlled anonymous access discriminants.
5801 (Build_Equivalent_Aggregate): New procedure to compute a static
5802 aggregate to be used as default initialization for composite types,
5803 instead of a generating a call to the initialization procedure for the
5805 (Build_Initialization_Call): When available, replace a call to the
5806 initialization procedure with a copy of the equivalent static aggregate
5808 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
5809 declarations for objects of a class-wide interface type, rather than
5810 just identifiers, to prevent visibility problems.
5811 (Expand_N_Object_Declaration): When expanding the declaration for an
5812 object of a class-wide interface type, preserve the homonym chain of
5813 the original entity before exchanging it with that of the generated
5814 renaming declaration.
5815 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
5816 active, because there is no way to handle the exception.
5817 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
5818 to do a minimum decoration of the Access_Disp_Table list.
5819 (Expand_Record_Controller): Avoid the addition of the controller between
5820 the component containing the tag of a secondary dispatch table and its
5821 adjacent component that stores the offset to the base of the object.
5822 This latter component is only generated when the parent type has
5823 discriminants ---documented in Add_Interface_Tag_Components).
5824 (Apply_Array_Size_Check): Removed, no longer needed.
5825 (Expand_N_Full_Type_Declaration): If the type has anonymous access
5826 components, create a Master_Entity for it only if it contains tasks.
5827 (Build_Init_Procedure): Suppress the tag assignment compiling under
5829 (Freeze_Record_Type): Remove code associated with creation of dispatch
5831 (Init_Secondary_Tags): Update type of actuals when generating calls to
5832 Ada.Tags.Set_Offset_To_Top
5833 (Stream_Operation_OK): Disable use of streams compiling under no
5835 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
5836 if Has_Init_Expression set.
5837 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
5838 Register_Primitive, which provides the same functionality.
5839 (Requires_Init_Proc): Return false in case of interface types.
5840 (Add_Secondary_Tables): Use the new attribute Related_Interface to
5842 (Predefined_Primitive_Freeze): Do not assume that an internal entity
5843 is always associated with a predefined primitive because the internal
5844 entities associated with interface types are not predefined primitives.
5845 Therefore, the call to Is_Internal is replaced by a call to the
5846 function Is_Predefined_Dispatching_Operation.
5847 (Make_Eq_If): When generating the list of comparisons for the
5848 components of a given variant, omit the controller component that is
5849 present if the variant has controlled components.
5851 2007-06-06 Javier Miranda <miranda@adacore.com>
5852 Hristian Kirtchev <kirtchev@adacore.com>
5853 Bob Duff <duff@adacore.com>
5855 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
5856 handle the creation of finalization lists and calls for nested
5857 coextensions when the root of the chains is part of a return statement.
5858 (Inside_A_Return_Statement): New function inside Complete_Coextension_
5860 (Expand_Record_Equality): Skip components that are interface types.
5861 (Displace_Allocator_Pointer): Add missing support for interface subtypes
5862 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
5863 with Rewrite_Coextension. Change the condition for detecting coextension
5865 (Is_Local_Access_Discriminant): Removed.
5866 (Rewrite_Coextension): New routine which rewrites a static coextension
5867 as a temporary and uses its unrestricted access in the construction of
5869 (Complete_Coextension_Finalization): New routine. Generate finalization
5870 attachment calls to all delayed coextensions.
5871 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
5872 the allocator is not a coextension itself and has delayed coextensions.
5873 If the current allocator is controlled, but also a coextension, delay
5874 the generation of the finalization attachment call.
5875 Rename local variable "Node" to "Nod" in order to avoid confusion with
5877 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
5878 limited types that are not inherently limited. Such an allocator is
5879 illegal, but is generated by the expander for a return statement, to
5880 copy the result onto the secondary stack. This is the only case where a
5881 limited object can be copied. Generate code to displace the pointer
5882 to the object if the qualified expression is a class-wide interface
5883 object. Such displacement was missing and hence the copy of the object
5885 (Apply_Accessibility_Check): Handle allocated objects initialized in
5887 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
5888 and Expand_Allocator_Expression. Allocating class-wide interface objects
5889 this routine displaces the pointer to the allocated object to reference
5890 the component referencing the corresponding secondary dispatch table.
5891 Expand_Allocator_Expression): Add missing support to allocate class-wide
5892 interface objects initialized with a qualified expression.
5893 (Get_Allocator_Final_List): Test for an anonymous access type that is a
5894 function result type, and use the finalization list associated with the
5895 function scope in that case (such an anonymous type should not be
5896 treated like an access parameter's type).
5898 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5899 Gary Dismukes <dismukes@adacore.com>
5900 Javier Miranda <miranda@adacore.com>
5902 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
5903 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
5904 required exception handler.
5905 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
5906 properly the case of a function whose return type is a limited
5907 class-wide interface type. Modify the code of the accessibility
5908 check to handle class-wide interface objects. In this case we need to
5909 displace "this" to reference the primary dispatch table to get access
5910 to the TSD of the object (to evaluate its accessibility level).
5911 (Expand_N_Extended_Return_Statement): Test for a tagged result type
5912 rather than a controlling result as one of the conditions for
5913 generating tests of the implicit BIP_Alloc_Form formal. The
5914 initialization assignment is also handled according to whether the
5915 result is tagged instead of controlling.
5916 In the case where the init assignment is inserted in the "then" part of
5917 the allocation conditional, rewrite the target to be a dereference of
5918 the implicit BIP_Object_Access formal.
5919 If the returned value is unconstrained and created on the secondary
5920 stack, mark the enclosing block and function so that the secondary
5921 stack is not reclaimed on return.
5922 Treat returns from functions with controlling results similarly to
5923 returns from functions with unconstrained result subtypes.
5924 If the object returned is unconstrained, and an allocator must be
5925 created for it, analyze the allocator once the block for the extended
5926 return is installed, to ensure that finalizable components
5927 of the expression use the proper finalization list. Guard the call to
5928 Move_Final_List with a check that there is something to finalize.
5929 (Make_Tag_Ctrl_Assignment): Use "old" handling
5930 of controlled type assignment for virtual machines, since new code uses
5931 unsupported features (such as direct access to bytes in memory).
5933 2007-06-06 Gary Dismukes <dismukes@adacore.com>
5934 Ed Schonberg <schonberg@adacore.com>
5936 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
5937 accessibility actual, check for the case of an aliased object that has
5938 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
5939 we fall into processing for the attribute rather than the name of the
5941 (Expand_Inline_Call): If an actual is a literal, and the corresponding
5942 formal has its address taken in the body, create a temporary to capture
5943 value. If the return type is a limited interface, do not treat the
5944 return value as Controlled.
5945 (Is_In_Place_Function): If the return type is a limited interface,
5946 treat as returning in place. The actual returned object may not always
5947 be limited, but the caller has to assume that it is returned in place.
5948 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
5949 context of an allocator, use the correct finalization chain (that is,
5950 the chain belonging to the access type, rather than the chain belonging
5951 to the current scope).
5952 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
5953 result type rather than a controlling result as a precondition for
5954 adding an allocation form actual to a build-in-place call.
5955 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
5956 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
5957 primitive in the dispatch tables. This work is now done by Make_DT when
5959 (Register_Predefined_DT_Entry): Removed.
5960 (Add_Return): If end label is not present, use sloc of last statement
5961 for generated return statement in procedure, for better gdb behavior
5963 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
5964 object address nodes to ensure proper processing by routines like
5966 (Expand_Call): Fix generation of validity check for parameter
5967 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
5968 the allocation form parameter if the result subtype is constrained,
5969 except when the function has a controlling result.
5970 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
5971 rather than Is_Controlled and Has_Controlled_Component, since we want to
5972 include class-wide result types in this treatment. Also test for a
5973 controlling result, since that also requires passing a finalization
5975 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
5976 even when the result subtype is constrained, to handle calls involving
5977 controlling results.
5978 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
5979 is now called even when the result subtype is constrained, to handle
5980 calls involving controlling results.
5981 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
5982 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
5983 now performs the test).
5984 (Make_Build_In_Place_Call_In_Object_Declaration):
5985 Add_Alloc_Form_Actual_* is now called even when the result subtype is
5986 constrained, to handle calls involving controlling results.
5987 (Add_Return): Accomodate rewritten pattern from local raise to goto
5988 transformation, so that we still recognize an transfer statement
5989 and do the right thing here in that case.
5990 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
5991 and end of subprogram code.
5992 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
5993 support for primitives that are functions (without formals) with a
5995 (Inherited_From_Formal): If the actual subtype has not generic parent
5996 type, it is not an actual for a formal derived type, and there is no
5997 operation to inherit from the formal.
5999 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6000 Thomas Quinot <quinot@adacore.com>
6002 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
6003 inserted cleanup code appropriately for GDB use.
6004 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
6005 exception handler for Deep_Adjust or Deep_Finalize.
6006 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
6007 Raise_From_Controlled_Operation is available, use a call to that
6008 subprogram instead of a plain "raise Program_Error" node to raise
6009 Program_Error if an exception is propagated from an Adjust or Finalize
6011 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
6012 appears in the optional statement list of a triggering alternative, the
6013 scope actions can be inserted directly there, and not in the list that
6014 includes the asynchronous select itself.
6016 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6017 Robert Dewar <dewar@adacore.com>
6018 Hristian Kirtchev <kirtchev@adacore.com>
6020 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
6021 generated exception handler appropriately when debugging generated code.
6022 Deal properly with No_Exception_Propagation restriction mode.
6023 (Expand_N_Abort_Statement): Add an unchecked type conversion from
6024 System.Address to System.Tasking.Task_Id when processing the result of
6025 the predefined primitive _disp_get_task_id.
6026 (Expand_N_Asynchronous_Select): Clarify comment.
6027 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
6028 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
6029 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
6030 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
6031 privals and for generated call to Complete_Entry_Body, for better gdb
6033 (Copy_Result_Type): Utility to construct a parameter and result profile
6034 for protected functions whose return type is an anonymous access to
6036 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
6038 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
6039 point when the local-raise-to-goto transformation has taken place.
6041 2007-06-06 Javier Miranda <miranda@adacore.com>
6042 Nicolas Setton <setton@adacore.com>
6044 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
6045 functionality when the backend is generating code.
6046 Otherwise any serious error
6047 reported by the backend calling the frontend routine Error_Msg
6048 changes the Compilation_Mode to Check_Semantics, disables the
6049 functionality of this routine and causes the generation of
6050 spureous additional errors.
6052 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
6053 debugging information now generated by the compiler for fat-pointer
6055 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
6057 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
6059 2007-06-06 Thomas Quinot <quinot@adacore.com>
6061 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
6062 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6063 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6064 For a remote call to a function with a classwide return type, apply an
6065 E.4(18) check to the returned value.
6066 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
6067 stream attributes of the designated type of an RACW, as they are not
6068 dispatching primitive operations.
6070 2007-06-06 Geert Bosch <bosch@adacore.com>
6072 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
6074 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
6076 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
6077 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
6079 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
6081 2007-06-06 Javier Miranda <miranda@adacore.com>
6083 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
6084 attribute compiling package Ada.Tags under No_Run_Time_Mode.
6086 2007-06-06 Javier Miranda <miranda@adacore.com>
6088 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
6089 deallocation of class-wide interface objects.
6090 (Expand_Dispatching_Constructor_Call): Take into account that if the
6091 result of the dispatching constructor is an interface type, the
6092 function returns a class-wide interface type; otherwise the returned
6093 object would be actual. The frontend previously accepted returning
6094 interface types because Expand_Interface_Actuals silently performed
6095 the management of the returned type "as if" it were a class-wide
6097 (Expand_Dispatching_Constructor_Call): Replace call to
6098 Make_DT_Access_Action by direct call to Make_Function_Call.
6100 2007-06-06 Robert Dewar <dewar@adacore.com>
6101 Ed Schonberg <schonberg@adacore.com>
6103 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
6104 compute masking constant, since we now set Esize properly to the
6106 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
6107 to match the alignment.
6108 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
6109 packed arrays of 8 bits or less.
6111 * freeze.adb (Freeze_Entity): When freezing the formals of a
6112 subprogram, freeze the designated type of a parameter of an access type
6113 only if it is an access parameter.
6114 Increase size of C convention enumeration object
6115 (Freeze_Entity, array type case): Make sure Esize value is properly
6116 adjusted for the alignment if it is known.
6117 (Freeze_Entity, array type case): When checking bit packed arrays for
6118 the size being incorrect, check RM_Size, not Esize.
6119 (Freeze_Record_Type): Check for bad discriminated record convention
6120 (In_Exp_Body): Return true if the body is generated for a subprogram
6121 renaming, either an attribute renaming or a renaming as body.
6122 (Check_Itype): If the designated type of an anonymous access component
6123 is a non-protected subprogram type, indicate that it is frozen, to
6124 prevent out-of-scope freeze node at some subsequent call.
6125 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
6126 only if the subprogram is neither imported nor exported, as well as the
6127 NCA descriptor class if the subprogram is exported.
6129 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6130 Arnaud Charlet <charlet@adacore.com>
6131 Robert Dewar <dewar@adacore.com>
6132 Gary Dismukes <dismukes@adacore.com>
6134 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
6135 default initialization on an imported object, when there is no
6136 initialization call generated for it.
6137 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
6140 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
6141 Static_Elaboration_Desired.
6142 Remove pragma Thread_Body.
6143 Implement a new pragma No_Body
6144 Removes the Explicit_Overriding pragma
6145 Remove Optional_Overriding pragma
6146 (Prag): Deal with Universal_Aliasing.
6147 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6148 Pragma_CIL_Constructor): New names.
6150 * sem_cat.adb (Validate_Object_Declaration): An initialization that
6151 uses the equivalent aggregate of a type must be treated as an implicit
6153 (Get_Categorization): Check a unit for pragma Preelaborate only if it
6154 has none of the other categories.
6155 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
6156 to apply Import to an object renaming declaration.
6158 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
6159 from a C++ class should be declared as limited and that it will be
6160 considererd limited.
6161 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
6162 should be declared as limited and that it will be considererd limited.
6163 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
6164 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
6165 (Analyze_Pragma): Deal with Universal_Aliasing.
6166 (Sig_Flags): Likewise.
6167 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
6168 (Overflow_Checks_Unsuppressed): New flag.
6169 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6170 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
6171 case of JVM or .NET targets, and compiling user code.
6172 Add debugging convenience routine rv
6174 2007-06-06 Robert Dewar <dewar@adacore.com>
6176 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
6178 (Build_Elementary_Input_Call): For floating-point use right type in the
6179 absence of strange size or stream size clauses.
6180 (Build_Elementary_Write_Call): Same fix
6181 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
6182 set to value that does not match base type size.
6184 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6186 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
6187 object of a limited type can be initialized with a call to a function
6188 that returns in place. If the limited type has unknown discriminants,
6189 and the underlying type is a constrained composite type, build an actual
6190 subtype from the function call, as is done for private types.
6191 (Side_Effect_Free): An expression that is the renaming of an object or
6192 whose prefix is the renaming of a object, is not side-effect free
6193 because it may be assigned through the renaming and its value must be
6194 captured in a temporary.
6195 (Has_Controlled_Coextensions): New routine.
6196 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
6197 as is done for other limited types.
6198 (Non_Limited_Designated_Type): new predicate.
6199 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
6201 Remove all handling of with_type clauses.
6203 * par-ch10.adb: Remove all handling of with_type clauses.
6205 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
6206 checksum if the main source could not be parsed.
6207 (Loat_Unit): When processing a child unit, determine properly whether
6208 the parent unit is a renaming when the parent is itself a child unit.
6209 Remove handling of with_type clauses.
6211 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
6212 (Set_Is_Static_Coextension): New procedure.
6213 (Has_Local_Raise): New function
6214 (Set_Has_Local_Raise): New procedure
6215 (Renaming_Exception): New field
6216 (Has_Init_Expression): New flag
6217 (Delay_Finalize_Attach): Remove because flag is obsolete.
6218 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
6219 Remove all handling of with_type clauses.
6220 (Exception_Junk): Can now be set in N_Block_Statement
6222 2007-06-06 Vincent Celier <celier@adacore.com>
6223 Robert Dewar <dewar@adacore.com>
6225 * frontend.adb (Frontend): Return immediately if the main source could
6226 not be parsed, because of preprocessing errors.
6228 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
6229 (Gnat1drv): Exit with errors if the main source could not be parsed,
6230 because of preprocessing errors.
6231 (Check_Rep_Info): New procedure
6233 2007-06-06 Robert Dewar <dewar@adacore.com>
6235 * g-hesorg.ads, g-heasor.ads,
6236 g-busorg.ads, g-bubsor.ads: Update documentation
6237 GNAT.Heap/Bubble_Sort_G is now pure
6239 2007-06-06 Robert Dewar <dewar@adacore.com>
6241 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
6243 2007-06-06 Robert Dewar <dewar@adacore.com>
6244 Ed Schonberg <schonberg@adacore.com>
6246 * g-comlin.ads, g-comlin.adb:
6247 Add new warning for renaming of function return objects
6249 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
6250 (Tree_Read): Use size of object instead of type'object_size, since the
6251 latter is incorrect for packed array types.
6252 (Tree_Write): Same fix
6254 * opt.ads: Add new warning for renaming of function return objects
6255 (Generating_Code): New boolean variable used to indicate that the
6256 frontend as finished its work and has called the backend to process
6257 the tree and generate the object file.
6258 (GCC_Version): Is now private
6259 (Static_Dispatch_Tables): New constant declaration.
6260 (Overflow_Checks_Unsuppressed): New flag.
6261 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6262 (List_Closure): New flag for gnatbind (-R)
6263 Zero_Formatting: New flag for gnatbind (-Z)
6264 (Special_Exception_Package_Used): New flag.
6265 (Warn_On_Unrepped_Components): New flag.
6267 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
6268 unit is a compilation unit, rather than relying on its scope, so that
6269 Standard can be renamed.
6270 (Analyze_Object_Renaming): Add new warning for renaming of function
6272 Also reject attempt to rename function return object in Ada 83 mode.
6273 (Attribute_Renaming): In case of tagged types, add the body of the
6274 generated function to the freezing actions of the type.
6275 (Find_Type): A protected type is visible right after the reserved word
6276 "is" is encountered in its type declaration. Set the entity and type
6277 rather than emitting an error message.
6278 (New_Scope): Properly propagate Discard_Names to inner scopes
6279 (Check_Nested_Access): New procedure.
6280 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
6281 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6283 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
6284 Add new warning for renaming of function return objects
6285 (Check_References): Suppress warnings for objects whose type or
6286 base type has Warnings suppressed.
6287 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
6288 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
6290 2007-06-06 Vincent Celier <celier@adacore.com>
6291 Emmanuel Briot <briot@adacore.com>
6292 Olivier Hainque <hainque@adacore.com>
6294 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
6295 absolute value of Header.Block_Size when displaying the freed physical
6297 (Allocate): Compute Storage_Address using Integer_Address, not
6298 Storage_Offset, because the range of Storage_Offset may not be large
6300 (Configure): New parameter Low_Level_Traces
6301 (Allocate, Deallocation, Free_Physically): Added low-level traces
6302 (Configure): new parameter Errors_To_Stdout.
6303 (Output_File): new subprogram
6304 (Deallocate, Dereference): Send error messages to the proper stream
6305 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
6306 documented. Previous code would send it to the current output file
6307 defined in GNAT.IO, which might not be stdout
6308 (Is_Valid): Adjust comment to mention that a positive reply means that
6309 Header_Of may be used to retrieve the allocation header associated with
6310 the subprogram Storage address argument. Return False early if this
6311 address argument is misaligned.
6313 2007-06-06 Vincent Celier <celier@adacore.com>
6315 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
6317 (ASIS_Main): New global variable
6318 (Get_Closure): New procedure
6319 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
6320 check, metric or pretty. Call Get_Closure in this case.
6321 (Check_Files): For GNAT LIST, check all sources of all projects when
6322 All_Projects is True.
6323 (GNATCmd): Accept -U for GNAT LIST
6325 2007-06-06 Vincent Celier <celier@adacore.com>
6327 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
6329 Correct error message when invocation of the linker fails
6330 Add explicit size clause for the C imported variables
6331 Object_List_File_Supported and Using_GNU_Linker to emphasize that
6332 we expect char size.
6333 Read target parameters earlier, since this is needed to set
6334 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
6337 2007-06-06 Vincent Celier <celier@adacore.com>
6340 Add 3 spaces before the default project directory when displaying
6341 the project search path.
6342 Add new command line switch '-l' to display license information.
6344 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
6346 * gmem.c: Add support for timestamps on memory operations.
6348 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
6349 operations (not used currently, just foundation for future
6350 enhancements). Add possibility to perform full dump of gmem.out file.
6351 (Print_Back_Traces): Declare accesses to root arrays constants since
6352 they aren't modified.
6353 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
6355 2007-06-06 Vincent Celier <celier@adacore.com>
6357 * gnatsym.adb: Update Copyright notice
6358 (Parse_Cmd_Line): Accept new switch -D
6359 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
6362 * prj.ads (Policy): New policy Direct
6363 (Yes_No_Unknown): New enumeration type
6364 (Project_Data): New component Libgnarl_Needed
6366 * prj-nmsc.adb (Check_For_Source): When recording a source file make
6367 use the untouched pathname casing.
6368 (Get_Directories): Ensure that the Display_Exec_Directory is using the
6369 proper casing on non case-sensitive platforms like Windows.
6370 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
6371 on all platforms, as it is not possible to know which one is allowed
6372 before processing the project files.
6373 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
6374 specified when symbol policy is Direct. Check that when there is a
6375 symbol file defined (either by default or with attribute
6376 Library_Symbol_File) it is not the same as the reference symbol file.
6377 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
6378 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
6380 (Record_Ada_Source): Record a source that has been locally removed in an
6383 * symbols.ads (Policy): New policy Direct
6385 * symbols-vms.adb (Initialize): Take new policy Direct in case
6388 2007-06-06 Vincent Celier <celier@adacore.com>
6390 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
6391 Correct obvious bug (return Dir; instead of return Directory;).
6392 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
6394 2007-06-06 Thomas Quinot <quinot@adacore.com>
6396 * g-pehage.adb (Produce): Open output files in Binary mode, so that
6397 they have UNIX line endings (LF only) even on Windows, and thus pass
6398 all GNAT style checks.
6400 2007-06-06 Emmanuel Briot <briot@adacore.com>
6402 * g-regpat.adb (Quote): Fix improper quoting of '.'
6404 2007-06-06 Thomas Quinot <quinot@adacore.com>
6406 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
6407 default, set False on a per-runtime basis.
6408 (Need_Netdb_Buffer): New constant.
6410 * g-socket.ads, g-socket.adb: Import new package
6411 GNAT.Sockets.Thin.Task_Safe_NetDB.
6412 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
6413 binding to obtain proper message.
6414 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
6415 Replace various occurrences of Arry (Arry'First)'Address with the
6416 equivalent Arry'Address (GNAT always follows implementation advice from
6418 (Get_Host_By_Address, Get_Host_By_Name,
6419 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
6420 instead, rely on platform-specific task safe netdb operations provided
6423 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
6424 parameter Process_Blocking_IO.
6425 (Host_Error_Messages): Add stub body.
6426 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
6427 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
6428 Safe_Getservbyport): Move functions into new child package
6430 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
6431 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
6432 (In_Addr): Add alignment clause.
6434 2007-06-06 Robert Dewar <dewar@adacore.com>
6436 * g-trasym.ads, g-traceb.ads: Update list of supported targets
6437 Add note about symbolic traceback
6439 2007-06-06 Pascal Obry <obry@adacore.com>
6441 * hostparm.ads (Normalized_CWD): Use the host directory separator
6442 instead of the hardcoded forward slash which is not the proper
6443 character on Windows for example.
6446 2007-06-06 Vincent Celier <celier@adacore.com>
6447 Arnaud Charlet <charlet@adacore.com>
6449 * a-clrefi.adb, a-clrefi.ads: New files
6451 * impunit.adb: Add s-os_lib in the list of user visible units.
6452 (Non_Imp_File_Names_95): Add a-clrefi to this list
6453 Remove obsolete run-time entries.
6454 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
6455 "a-exetim" -- Ada.Execution_Time
6456 "a-extiti" -- Ada.Execution_Time.Timers
6458 * mlib-prj.ads, mlib-prj.adb
6459 (Build_Library): Use untouched object dir and library dir. At the
6460 same time makes sure that the checks are done using the canonical
6461 form. Removes hard-coded directory separator and use the proper host
6463 (Process_Project): Do not look in object directory to check if libgnarl
6464 is needed for a library, if there is no object directory.
6465 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
6467 (Build_Library): When invoking gnatbind, use a response file if the
6468 total size of the arguments is too large.
6470 * Makefile.rtl: (g-sttsne): New object file.
6471 Add entry for a-clrefi, s-utf_32, System.Exceptions
6473 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
6474 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
6475 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
6476 Change g-string to s-string, g-os_lib to s-os_lib
6477 Change all g-utf_32 references to s-utf_32
6479 2007-06-06 Tristan Gingold <gingold@adacore.com>
6480 Olivier Hainque <hainque@adacore.com>
6482 * init.c: Do not adjust IP of an imported VMS exception of ia64.
6483 LIB$STOP is called to raise an exception and the IP of the exception
6484 is the instruction right after the call.
6485 (__gnat_adjust_context_for_raise, AIX): Implement.
6486 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
6487 adjust_context_for_raise before Raise_From_Signal_Hanler.
6488 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
6489 siginfo is passed to the handler, necessary to let the zcx propagation
6490 engine unwind past it.
6492 2007-06-06 Olivier Hainque <hainque@adacore.com>
6494 * initialize.c (__gnat_initialize for vxworks): Update documentation
6495 on the ZCX support, using different sets of crtstuff objects than with
6498 2007-06-06 Robert Dewar <dewar@adacore.com>
6500 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
6502 (Layout_Type): Fix recomputation of size from alignment.
6504 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6505 Javier Miranda <miranda@adacore.com>
6507 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
6508 association in an instance.
6509 (Copy_Generic_Node): If the node is a string literal, no need to copy
6511 (Is_Generic_Formal): For a formal subprogram, the declaration is the
6512 grandparent of the entity.
6513 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
6514 to simplify handling of formal interfaces that derive from other formal
6516 (Instantiate_Subprogram_Body): The defining unit name of the body of
6517 the instance should be a defining identifier.
6518 (Install_Formal_Packages): make global to the package, for use in
6519 instantiations of child units.
6520 (Analyze_Package_Instantiation): Do not attempt to set information on an
6521 enclosing master of an entry when expansion is disabled.
6522 (Instantiate_Type): If the actual is a tagged synchronized type and the
6523 generic ancestor is an interface, create a generic actual for the
6524 corresponding record.
6525 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
6526 declaration, to ensure that the interface list is processed correctly.
6527 (Inline_Instance_Body): If enclosing scope is an instance body, remove
6528 its entities from visibiility as well.
6529 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
6530 given with a named association, analyze the expression only, not the
6531 discriminant association itself.
6532 (Reset_Entity): If the analysis of a selected component is transformed
6533 into an expanded name in the prefix of a call with parameters, do not
6534 transform the original node into an expanded name, to prevent visibility
6535 errors in the case of nested generics.
6536 (Check_Private_View): For an array type, check whether the index types
6537 may need exchanging.
6539 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6540 Vincent Celier <celier@adacore.com>
6542 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
6543 since both are separated.
6544 Add support for imported CIL packages.
6545 Add further special handling of "value_type" for CIL.
6546 Add special handling of pragma Import for CIL.
6548 * make.ads, make.adb: When switch -eS is used, direct all outputs to
6549 standard output instead of standard error, except errors.
6550 (Absolute_Path): Use untouched casing for the parent directory.
6551 (Add_Library_Search_Dir): Use the untouched directory name.
6552 (Add_Source_Search_Dir): Idem.
6553 (Change_To_Object_Directory): Update output to use proper casing.
6554 (Create_Binder_Mapping_File): Use the untouched filename to set
6556 (Gnatmake): Use untouched library and executable directory names.
6557 (Insert_Project_Sources): Use untouched filename for spec and body.
6558 (Is_In_Object_Directory): Use untouched object directory.
6559 (Mark_Directory): Idem.
6560 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
6561 contains the non-canonical filename in all cases.
6562 (Change_To_Object_Directory): In verbose mode, display the name of the
6563 object directory we're changing to.
6564 (Compile_Sources): Make sure, when a project file is used, to compile
6565 the body of the unit, when there is one, even when only the spec is
6566 recorded in an ALI file.
6567 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
6569 (Report_Compilation_Failed): New procedure
6570 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
6571 procedures moved from the spec to the body.
6572 (Extract_Failure): Removed, not used
6573 Replace explicit raises of exception Bind_Failed and Link_Failed with
6574 calls to Make_Failed with the proper message.
6575 Replace explicit raises of exception Compilation_Failed with calls to
6576 procedure Report_Compilation_Failed.
6577 (Initialize): Create mapping files unconditionally when using project
6580 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6581 Pragma_CIL_Constructor): New names.
6583 * targparm.ads, targparm.adb
6584 (Compiler_System_Version): Removed, no longer used.
6585 (Get_Target_Parameters): Relax checks on system.ads validity. Add
6586 handling of two new system flags: JVM and CLI.
6588 2007-06-06 Jose Ruiz <ruiz@adacore.com>
6589 Arnaud Charlet <charlet@adacore.com>
6591 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
6592 time, use the default s-interr body that provides interrupt support
6594 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
6595 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
6596 g-soccon.ads, and s-taprop.adb for the marte run time.
6597 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
6598 timers are supported on marte.
6599 (EH_MECHANISM for marte): Do not use ZCX.
6600 (THREADSLIB for marte): Use -lmarte.
6601 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
6602 Add mlib-tgt-specific.o to gnatmake objects
6603 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
6605 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
6606 6, either kernel or rtp, use a specialized version of s-osinte.ads.
6608 2007-06-06 Pascal Obry <obry@adacore.com>
6610 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
6612 2007-06-06 Vincent Celier <celier@adacore.com>
6614 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
6615 separator, use instead the proper host directory separator.
6616 (Copy_ALI_Files): Make sure that an already existing ALI file in the
6617 ALI copy dir is writable, before doing the copy.
6619 * mlib-utl.ads, mlib-utl.adb:
6620 (Gcc): If length of command line is too long, put the list of object
6621 files in a response file, if this is supported by the platform.
6622 (Ar): If invocation of the archive builder is allowed to be done in
6623 chunks and building it in one shot would go above an OS dependent
6624 limit on the number of characters on the command line, build the archive
6627 2007-06-06 Vincent Celier <celier@adacore.com>
6629 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
6630 of specified object file is not equal to base name of source.
6632 2007-06-06 Javier Miranda <miranda@adacore.com>
6633 Hristian Kirtchev <kirtchev@adacore.com>
6634 Ed Schonberg <schonberg@adacore.com>
6636 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
6637 the full type declaration.
6638 (Analyze_Component_Declaration): Add local variable E to capture the
6639 initialization expression of the declaration. Replace the occurences of
6640 Expression (N) with E.
6641 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
6642 limited interface object with a function call.
6643 (Array_Type_Declaration): If the declaration lacks subtype marks for
6644 indices, create a simple index list to prevent cascaded errors.
6645 (Is_Null_Extension): Ignore internal components created for secondary
6646 tags when checking whether a record extension is a null extension.
6647 (Check_Abstract_Interfaces): Add missing support for interface subtypes
6648 and generic formals.
6649 (Derived_Type_Declaration): Add missing support for interface subtypes
6650 and generic formals.
6651 (Analyze_Object_Declaration): If an initialization expression is
6652 present, traverse its subtree and mark all allocators as static
6654 (Add_Interface_Tag_Component): When looking for components that may be
6655 secondary tags, ignore pragmas that can appear within a record
6657 (Check_Abstract_Overriding): an inherited function that dispatches on
6658 result does not need to be overriden if the controlling type is a null
6660 (Mentions_T): Handle properly a 'class attribute in an anonymous access
6661 component declaration, when the prefix is an expanded name.
6662 (Inherit_Component): If the derivation is for a private extension,
6663 inherited components remain visible and their ekind should not be set
6665 (Find_Type_Of_Object): In the case of an access definition, always set
6666 Is_Local_Anonymous_Access. We were previously not marking the anonymous
6667 access type of a return object as a local anonymous type.
6668 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
6669 range with character literal bounds.
6670 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
6671 (Access_Subprogram_Declaration): Indicate that the type declaration
6672 depends on an incomplete type only if the incomplete type is declared
6674 (Analyze_Subtype_Declaration): Handle properly subtypes of
6675 synchronized types that are tagged, and that may appear as generic
6677 (Access_Subprogram_Declaration): An anonymous access to subprogram can
6678 appear as an access discriminant in a private type declaration.
6679 (Add_Interface_Tag_Components): Complete decoration of the component
6680 containing the tag of a secondary dispatch table and the component
6681 containing the offset to the base of the object (this latter component
6682 is only generated when the parent type has discriminants --as documented
6684 (Inherit_Components): Use the new decoration of the tag components to
6685 improve the condition that avoids inheriting the components associated
6686 with secondary tags of the parent.
6687 (Build_Discriminanted_Subtype): Indicate to the backend that the
6688 size of record types associated with dispatch tables is known at
6690 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
6691 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
6692 to include task, protected, and synchronized interfaces as limited
6694 (Process_Discriminants): Remove the setting of
6695 Is_Local_Anonymous_Access on the type of (anonymous) access
6696 discriminants of nonlimited types.
6697 (Analyze_Interface_Type_Declaration): Complete the decoration of the
6698 class-wide entity it is is already present. This situation occurs if
6699 the limited-view has been previously built.
6700 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
6702 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
6705 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6707 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
6708 of the type that specify the position of interface tags when the type
6709 inherits discriminated array components from the parent type.
6710 If a component is initialized with a box, check for the presence of a
6711 default expression in its declaration before using its default
6712 initialization procedure.
6713 (Resolve_Record_Aggregate): If a component is box-initialized, and the
6714 component type has a discriminants, create a partial aggregate for it
6715 by copying the discriminants of the component subtype.
6716 Reject attempt to initialize a discriminant with a box.
6717 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
6718 associated with dispatch tables is known at compile time.
6719 (Get_Value): If an association in a record aggregate has a box
6720 association, and the corresponding record component has a default
6721 expression, always copy the default expression, even when the
6722 association has a single choice, in order to create a proper
6723 association for the expanded aggregate.
6725 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6726 Robert Dewar <dewar@adacore.com>
6728 * par-ch12.adb (P_Generic_Associations): The source position of an
6729 Others association is that of the others keyword, not that of the token
6730 that follows the box.
6731 (P_Formal_Type_Definition): Handle formal access types that carry a
6734 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
6735 multiple identifier are present, save Scan_State before scanning the
6736 colon, to ensure that separate trees are constructed for each
6738 (P_Identifier_Declarations): For object declaration, set new flag
6739 Has_Init_Expression if initialization expression present.
6740 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
6741 Improve NOT NULL error messages
6743 2007-06-06 Robert Dewar <dewar@adacore.com>
6745 * par-ch4.adb: (P_Name): Recover from literal used as name
6747 2007-06-06 Vincent Celier <celier@adacore.com>
6749 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
6751 In the "not" case, recursive call with Complemented set to True.
6752 Do not allow "or" or "and" operators when Complemented is True.
6754 2007-06-06 Vincent Celier <celier@adacore.com>
6756 * prj.adb (Project_Empty): Gives default value for new component
6759 * prj-attr.ads: Minor reformatting
6761 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
6762 directory using the untouched casing.
6763 (For_All_Source_Dirs): Idem.
6765 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
6766 directories specified with switches -aP.
6767 (Add_Search_Project_Directory): New procedure
6768 (Initialize_Project_Path): Put the directories in table
6769 Search_Directories in the project search path.
6770 (Initialize_Project_Path): For VMS, transform into canonical form the
6773 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6775 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
6776 true if configurable run-time or No_Run_Time is set.
6777 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
6778 processing an unit which is not the one being compiled.
6780 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6782 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
6783 Replace UC by Ada.UC
6785 * s-bitops.adb: Get rid of System.Pure_Exceptions.
6786 Replace UC by Ada.UC
6788 2007-06-06 Robert Dewar <dewar@adacore.com>
6790 * scng.adb: (Check_End_Of_Line): Deal with very long lines
6792 2007-06-06 Robert Dewar <dewar@adacore.com>
6794 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
6795 Remove no longer used nodes.
6797 2007-06-06 Javier Miranda <miranda@adacore.com>
6798 Ed Schonberg <schonberg@adacore.com>
6799 Robert Dewar <dewar@adacore.com>
6801 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
6802 on obsolescent withed unit in case of limited-withed units.
6803 (Analyze_Compilation_Unit): Add guard to code that removed an
6804 instantiation from visibility, to prevent compiler aborts when
6805 instantiation is abandoned early on.
6806 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
6807 current unit being analyzed, and Distinguish local incomplete types
6808 from limited views of types declared elsewhere.
6809 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
6810 to state that the class-wide entity is shared by the limited-view
6812 (Analyze_With_Clause): Improve placement of flag for case of
6814 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
6815 manner similar to GNAT.Current_Exception. This is a violation of
6816 restriction (No_Exception_Propagation), and also inhibits the
6817 optimization of local raise to goto.
6818 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
6819 and if so set Most_Recent_Exception_Used flag in Opt, and also check
6820 for violation of restriction No_Exception_Propagation.
6822 2007-06-06 Javier Miranda <miranda@adacore.com>
6823 Hristian Kirtchev <kirtchev@adacore.com>
6824 Gary Dismukes <dismukes@adacore.com>
6826 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
6827 use of entity Exception_Occurrence if it is not available in the
6830 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
6831 concurrent types are declared within an Ada 2005 generic, build their
6832 corresponding record types since they are needed for overriding-related
6834 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
6835 protected type does not implement a task interface or a nonlimited
6837 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
6838 type does not implement a protected interface or a nonlimited interface.
6839 (Single_Task_Declaration, Single_Protected_Declaration): use original
6840 entity for variable declaration, to ensure that debugging information
6841 is correcty generated.
6842 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
6843 routines if the expander is not active.
6844 (Analyze_Task_Body): Mark all handlers to stop optimization of local
6845 raise, since special things happen for task exception handlers.
6847 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
6848 concurrent types declared within a generic.
6849 (Check_Dispatching_Operation): Do not emit warning about late interface
6850 operations in the context of an instance.
6851 (Check_Dispatching_Call): Remove restriction against calling a
6852 dispatching operation with a limited controlling result.
6853 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
6854 Register_Interface_DT_Entry by calls to Register_Primitive.
6855 (Check_Dispatching_Formals): Handle properly a function with a
6856 controlling access result.
6858 2007-06-06 Robert Dewar <dewar@adacore.com>
6859 Arnaud Charlet <charlet@adacore.com>
6861 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
6862 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
6863 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
6864 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
6865 message when using a VM, since this attribute is not supported.
6866 (Analyze_Record_Representation_Clause): Give unrepped component warnings
6868 * usage.adb: Add new warning for renaming of function return objects
6869 Indicate that -gnatwp and -gnatwP concern front-end inlining
6870 Add line for -gnatyg
6871 Add usage information for -gnatw.c/C
6873 2007-06-06 Robert Dewar <dewar@adacore.com>
6874 Ed Schonberg <schonberg@adacore.com>
6877 (Find_Var): Do not consider function call in test for infinite loop
6878 warning if warnings set off for function entity.
6879 (One_Bound): Do not create a temporary for a loop bound if it is a
6881 (Analyze_Assignment): Traverse the right hand side of an assignment and
6882 mark all allocators as static coextensions.
6883 (Analyze_Assignment): Exempt assignments involving a dispatching call
6884 to a function with a controlling access result from the check requiring
6885 the target to be class-wide.
6887 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
6888 Ed Schonberg <schonberg@adacore.com>
6889 Robert Dewar <dewar@adacore.com>
6890 Javier Miranda <miranda@adacore.com>
6892 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
6893 chain of coextensions when an allocator serves as the root of such a
6895 (Propagate_Coextensions): Remove the test for the root being an
6897 (Resolve_Allocator): Add condition to ensure that all future decoration
6898 occurs on an allocator node. Add processing and cleanup for static
6900 (Valid_Conversion): If the operand type is the limited view of a
6901 class-wide type, use the non-limited view is available to determine
6902 legality of operation.
6903 (Ambiguous_Character): move to spec, for use elsewhere.
6904 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
6905 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
6907 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
6908 Do_Division_Check flag explicitly.
6909 (Resolve_Actuals): If the actual is of a synchronized type, and the
6910 formal is of the corresponding record type, this is a call to a
6911 primitive operation of the type, that is declared outside of the type;
6912 the actual must be unchecked-converted to the type of the actual
6913 (Resolve_Call): Kill all current values for any subprogram call if
6914 flag Suppress_Value_Tracking_On_Call is set.
6915 (Resolve_Type_Conversion): Generate error message the the operand
6916 or target of interface conversions come from a limited view.
6917 (Check_Infinite_Recursion): Ignore generated calls
6918 (Check_Allocator_Discrim_Accessibility): New procedure for checking
6919 that an expression that constrains an access discriminant in an
6920 allocator does not denote an object with a deeper level than the
6921 allocator's access type.
6922 (Resolve_Allocator): In the case of an allocator initialized by an
6923 aggregate of a discriminated type, check that associations for any
6924 access discriminants satisfy accessibility requirements by calling
6925 Check_Allocator_Discrim_Accessibility.
6926 (Resolve_Equality_Op): Handle comparisons of anonymous access to
6927 subprogram types in the same fashion as other anonymous access types.
6928 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
6929 message that is not a continuation message.
6930 (Resolve_Type_Conversion): Add missing support for conversion to
6932 (Resolve_Actuals): Introduce a transient scope around the call if an
6933 actual is a call to a function returning a limited type, because the
6934 resulting value must be finalized after the call.
6935 (Resolve_Actuals): If the call was given in prefix notations, check
6936 whether an implicit 'Access reference or implicit dereference must be
6937 added to make the actual conform to the controlling formal.
6939 2007-06-06 Robert Dewar <dewar@adacore.com>
6940 Javier Miranda <miranda@adacore.com>
6942 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
6943 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
6944 overriding of an inherited private subprogram now there is no need to
6945 inherit its dispatching slot and reduce the size of the dispatch table.
6946 Set_All_DT_Position now ensures that the same slot is now assigned to
6947 both entities. This is required to statically build the dispatch table.
6948 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
6949 of calling Set_All_DT_Position to re-evaluate the position of the
6950 entries in the dispatch table. Such reevaluation is not desired if
6951 the tagged type is already frozen.
6953 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
6954 Gary Dismukes <dismukes@adacore.com>
6955 Robert Dewar <dewar@adacore.com>
6956 Javier Miranda <miranda@adacore.com>
6958 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
6959 reference acts as an lvalue when the attribute name modifies the prefix
6960 (Is_Coextension_Root): New routine.
6961 (Mark_Static_Coextensions): New routine.
6962 (Type_Access_Level): Revise code for checking the level of the
6963 anonymous access type of a return object.
6964 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
6965 (Matches_Prefixed_View_Profile): Remove the no longer necessary
6966 retrieval of the corresponding controlling record type.
6967 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
6968 concurrent types declared within a generic as well as class wide types.
6969 Emit a mode incompatibility error whenever a protected entry or routine
6970 override an interface routine whose first parameter is not of mode
6971 "out", "in out" or access to variable.
6972 (Overrides_Synchronized_Primitive): Rename to
6973 Find_Overridden_Synchronized_Primitive.
6974 (Collect_Interface_Components): New subprogram that collects all the
6975 components of a tagged record containing tags of secondary dispatch
6977 (Add_Global_Declaration): New procedure
6978 (Abstract_Interface_List): Handle properly the case of a subtype of a
6980 (Type_Access_Level): In the case of a type whose parent scope is a
6981 return statement, call Type_Access_Level recursively on the enclosing
6982 function's result type to determine the level of the return object's
6984 (Build_Elaboration_Entity): Build name of elaboration entity from the
6985 scope chain of the entity, rather than the unit name of the file name.
6986 (Check_Nested_Access): New procedure.
6987 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
6988 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6989 (Get_Renamed_Entity): Utility routine for performing common operation
6990 of chasing the Renamed_Entity field of an entity.
6992 2007-06-06 Robert Dewar <dewar@adacore.com>
6994 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
6996 (Check_A_Call): Add check for entry call which was causing blowup
6998 2007-06-06 Olivier Hainque <hainque@adacore.com>
7000 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
7001 special code on ia64-vms to handle major incompatibilities between the
7002 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
7003 this routine with a very different set of arguments and expectations on
7006 2007-06-06 Thomas Quinot <quinot@adacore.com>
7008 * socket.c (__gnat_close_signalling_fd): New function.
7009 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
7010 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
7011 New supporting functions for task safe Netdb operations.
7013 2007-06-06 Thomas Quinot <quinot@adacore.com>
7014 Olivier Hainque <hainque@adacore.com>
7016 * a-except-2005.ads, a-except-2005.adb
7017 (Raise_From_Controlled_Operation): New procedure in
7018 (private part of) Ada.Exceptions (standard runtime version). Used to
7019 provide informational exception message when Program_Error is raised as
7020 a result of an Adjust or Finalize operation propagating an exception.
7021 (Rmsg_28): Fix description for E.4(18) check.
7022 (Raise_Current_Excep): Call Debug_Raise_Exception just before
7023 propagation starts, to let debuggers know about the event in a reliable
7025 Take the address of E and dereference to make sure it is homed on stack
7026 and prevent the stores from being deleted, necessary for proper
7027 debugger behavior on "break exception" hits.
7028 (Local_Raise): Moved to System.Exceptions
7030 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
7031 exception message from the current occurrence and raise Program_Error
7032 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
7034 2007-06-06 Jose Ruiz <ruiz@adacore.com>
7035 Arnaud Charlet <charlet@adacore.com>
7037 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
7040 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
7041 priority associated to a lock.
7043 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
7044 assertion to take into account case of no abort restriction.
7045 (Initialize_Protection_Entries): Add initialization for the field
7046 New_Ceiling associated to the protected object.
7047 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
7050 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7051 since this function needs to be set consistently with Update_Exception.
7053 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7054 since this function needs to be set consistently with Update_Exception.
7056 * s-taskin.ads: Update comments on
7057 Interrupt_Server_Blocked_On_Event_Flag.
7058 (Unbind_Handler): Fix handling of server_task wakeup
7059 (Server_Task): Set self's state so that Unbind_Handler can take
7060 appropriate actions.
7061 (Common_ATCB): Now use a constant from System.Parameters to determine
7062 the max size of the Task_Image field.
7064 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
7065 Initialize_Analyzer function.
7066 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
7067 take into account case of no abort restriction.
7068 ([Vulnerable_]Complete_Master): Modify assertion.
7070 * s-tataat.adb (Finalize): Use the nestable versions of
7071 Defer/Undefer_Abort.
7073 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
7075 * s-tpobop.ads: Update comments.
7077 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
7078 of locking the object manually, to avoid inconsistencies between
7079 Lock/Unlock_Entry assertions.
7081 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
7083 application and System.Parameters.No_Abort is True.
7084 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
7085 (Unbind_Handler): Fix handling of server_task wakeup
7086 (Server_Task): Set self's state so that Unbind_Handler can take
7087 appropriate actions.
7089 2007-06-06 Thomas Quinot <quinot@adacore.com>
7091 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
7092 declarations instead of an explicit null body, for conciseness.
7094 2007-06-06 Robert Dewar <dewar@adacore.com>
7096 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
7097 illegal aggregate and the type is still Any_Composite.
7098 (Subtypes_Statically_Match): Fix problem of empty discriminant list
7100 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7102 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
7103 to prevent subsequent expansion.
7105 2007-06-06 Robert Dewar <dewar@adacore.com>
7107 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
7109 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7110 Robert Dewar <dewar@adacore.com>
7112 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
7114 (Write_Itype): Handle case of string literal subtype, which
7115 comes up in this context.
7116 (Update_Itype): when debugging expanded code, update sloc of itypes
7117 associated with defining_identifiers and ranges, for gdb use.
7118 (Sprint_Node_Actual): Add static keyword to object or exception
7119 declaration output if Is_Statically_Allocated is True.
7120 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
7121 or task body, so that the tree carries the proper Sloc information for
7123 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
7125 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7127 * s-secsta.adb (Chunk): Ensure this object has a static size known at
7128 compile time, to avoid dynamic memory allocation
7129 (Elaboration code): Only use dynamic memory allocation when needed.
7131 2007-06-06 Quentin Ochem <ochem@adacore.com>
7133 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
7135 (Stack_Analyzer): Added field "Overflow_Guard"
7136 (Task_Result): Added field "Overflow_Guard".
7137 (Index_Str): New constant.
7138 (Task_Name_Str): New constant.
7139 (Actual_Size_Str): New constant.
7140 (Pattern_Array_Element_Size): New constant.
7141 (Get_Usage_Range): New subprogram.
7142 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
7143 Now align the output.
7145 (Initialize): Added value for Overflow_Guard.
7146 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
7147 Update the value of the overflow guard according to the actual
7148 beginning of the pattern array.
7149 (Initialize_Analyzer): Added parameter Overflow_Guard.
7150 Take this parameter into accound when computing the max size.
7151 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
7152 (Report_Result): Removed extra useless procedure.
7153 Updated call to Output_Result.
7154 Moved full computation of the Task_Result here.
7156 2007-06-06 Thomas Quinot <quinot@adacore.com>
7158 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
7159 Thread_Blocking_IO, always True by default, set False on a per-runtime
7161 Add Windows-specific constants
7162 Add new constant Need_Netdb_Buffer.
7163 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7164 not, whether to use getXXXbyYYY_r.
7166 * gsocket.h: Add new constant Need_Netdb_Buffer.
7167 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7168 not, whether to use getXXXbyYYY_r.
7170 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7172 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
7173 than their first call.
7174 Add type Dummy_Communication_Block used in the generation of the pre-
7175 defined dispatching primitive _disp_asynchronous_select.
7176 (Storage_Element): Put Pragma Universal_Aliasing on it.
7178 2007-06-06 Vincent Celier <celier@adacore.com>
7180 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
7183 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
7184 letter if it is not followed by a '/' or a '\'.
7185 (Windows): New Boolean function
7187 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
7189 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
7191 (Containing_Directory): Raise Use_Error when the directory is a root
7193 (Extension): When returning the result, use a conversion to Result_Type,
7194 not a qualification.
7196 2007-06-06 Robert Dewar <dewar@adacore.com>
7198 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
7199 (Set_Style_Check_Options): Recognize new -gnatyg style switch
7201 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
7202 Warn_On_Non_Local_Exception to False, to turn off warnings for
7203 No_Exception_Propagation in ZFP runtime.
7204 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
7206 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
7208 2007-06-06 Vincent Celier <celier@adacore.com>
7210 * switch-b.adb (Scan_Binder_Switches): Add processing for new
7213 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
7214 (Scan_Make_Switches): Recognize new switch -aP
7216 2007-06-06 Matthew Gingell <gingell@adacore.com>
7217 Jose Ruiz <ruiz@adacore.com>
7219 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
7220 VxWorks task descriptor in the Ada run time, call a C subprogram
7221 (__gnat_get_stack_info) that extracts the required information.
7223 * sysdep.c: Back out temporary lynxos workaround.
7224 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
7225 time the stack information associated to the currently executing task.
7226 Only VxWorks systems require this function.
7228 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7230 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
7231 add the stack bias if the offset is computed from a frame address.
7232 (__gnat_backtrace): Adjust for above change.
7234 2007-06-06 Thomas Quinot <quinot@adacore.com>
7236 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
7237 PE_Non_Transportable_Actual.
7238 (By_Descriptor_Last): New constant.
7239 (By_Copy_Return): Likewise.
7241 2007-06-06 Vincent Celier <celier@adacore.com>
7243 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
7246 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
7247 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
7248 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
7249 Add missing comment for /OPTIMIZE=SPACE
7250 Add entry for OPTIMIZE=SPACE
7251 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
7252 Add documentation for new qualifiers corresponding to -gnatw.c/.C
7254 2007-06-06 Vincent Celier <celier@adacore.com>
7255 Robert Dewar <dewar@adacore.com>
7257 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
7260 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
7261 Document gnatbind switch -a
7262 (case Constructions): Document that variables declarations are allowed
7263 for previously declared variables.
7264 Fix external lib project example
7265 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
7266 Indicate that "#if not X or Y then" is not allowed in input files to
7268 Document gnatw.x and gnatw.X warning flags
7269 Mention -Winline switch to activate warnings when back-end inlining is
7271 Add gnatcheck rule descriptions
7272 Describe how to use the GNAT driver to call a tool on a closure.
7273 Describe how to run project-wide checks or metrics.
7274 Document gnatbind's -R option
7275 Updated to account for Ada 2005 support
7277 * gnat_rm.texi (Case Construction): Allow variable declarations for
7278 previously declared variables.
7279 (Representation Clauses and Pragmas): Lift restriction on alignment
7280 clauses for record types.
7281 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
7282 Document No_Exception_Propagation restriction
7283 Document No_Body pragma
7284 Updated to account for Ada 2005 support; corrected some typos
7285 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
7287 * gnat-style.texi: Make it clear that we never use mode IN for
7288 procedures or functions
7290 * ug_words: Add entries for -gnatw.x and -gnatw.X
7291 Add entries for -gnatw.c/.C
7293 2007-06-06 Pascal Obry <obry@adacore.com>
7294 Vincent Celier <celier@adacore.com>
7296 * makegpr.adb (Add_Archive_Path): Use untouched object and library
7297 dirs and library name.
7298 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
7300 (Build_Library): Idem.
7301 (Compile_Individual_Sources): Idem.
7302 (Compile_Link_With_Gnatmake): Idem.
7303 (Compile_Sources): Idem.
7304 (Get_Imported_Directories): Idem.
7305 (Link_Executables): Idem. Same change for the executable dir.
7306 (Check_Compilation_Needed): C_Source_Path new variable containing
7307 the canonical form of Source_Path to check against the source names
7308 in the dependency file.
7309 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
7310 verbose mode, display the name of the object directory we're changing
7312 (Saved_Switches): New name of table X_Switches
7313 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
7314 (Usage): New line for switch -aP
7315 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
7316 testing if a directory should be added to the search path.
7318 2007-06-06 Javier Miranda <miranda@adacore.com>
7320 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
7321 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
7322 declaration after freezing point of all its associated tagged types;
7323 otherwise such types are frozen too early.
7325 2007-06-06 Robert Dewar <dewar@adacore.com>
7327 * a-reatim.adb: Documentation addition
7329 * g-cgideb.adb: Minor code reorganization
7331 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
7332 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
7333 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
7335 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
7336 function. Change name New_Scope to Push_Scope
7337 (Get_Debug_Flag_K): Remove unused obsolete function.
7339 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
7342 * makeusg.adb: Update Copyright notice
7343 Add line for switch -aP
7345 * makeusg.adb: Fix wording of some usage messages
7347 * s-assert.adb (Raise_Assert_Failure): Add call to
7348 Debug_Raise_Assert_Failure.
7350 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
7351 (2, Standard'Alignment) for compatibility with AAMP (where alignment
7352 is restricted to 1).
7354 * s-wchjis.adb: Remove use of System.Pure_Exceptions
7356 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
7357 node location to No_Location when we're not debugging the expanded
7360 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
7362 * misc.c (enumerate_modes): Consider log2_b to always be one.
7364 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
7366 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7368 2007-05-02 Pascal Obry <obry@adacore.com>
7370 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
7371 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
7372 encoding support of Stream_IO.
7375 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
7376 filename and corresponding encoding to match the OS requirement.
7377 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
7378 routine will fail on specific devices like CON: AUX: ...
7380 PR ada/29856: Add missing braces
7382 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
7385 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
7387 2007-04-21 Jan Hubicka <jh@suse.cz>
7389 * misc.c (gnat_expand_body): Don't call target for destructors,
7390 avoid redundant check on syntax errors.
7392 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
7394 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
7395 instead of checking GIMPLE_STMT_P in chain_next.
7397 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
7400 * system-linux-alpha.ads: Disable constant condition warning for the
7401 Default_Bit_Order variable.
7402 * system-linux-s390.ads: Likewise.
7403 * system-linux-s390x.ads: Likewise.
7404 * system-linux-sparc.ads: Likewise.
7406 2007-04-06 Javier Miranda <miranda@adacore.com>
7407 Matt Heaney <heaney@adacore.com>
7408 Robert Dewar <dewar@adacore.com>
7410 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7411 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
7412 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
7413 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
7414 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
7415 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
7416 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
7417 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
7418 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
7419 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
7420 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
7421 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
7422 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
7423 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
7424 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
7425 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
7426 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
7427 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
7428 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
7429 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
7430 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
7431 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
7432 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
7433 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
7434 s-taprop-tru64.adb, s-taprop-irix.adb,
7435 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
7436 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
7437 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
7438 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
7439 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
7440 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
7441 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
7442 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
7443 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
7444 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
7445 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
7446 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
7447 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
7448 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
7449 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
7450 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
7451 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
7452 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
7453 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
7454 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
7456 Update documentation.
7459 2007-04-06 Robert Dewar <dewar@adacore.com>
7461 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7462 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7463 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
7464 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7465 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
7466 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7467 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7468 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
7469 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7470 system-hpux-ia64.ads, targparm.adb,
7471 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
7473 * system.ads: Move Functions_Return_By_DSP to obsolete section,
7474 kept for bootstrap purposes only.
7476 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7478 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7479 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
7480 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
7481 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
7483 2007-04-06 Robert Dewar <dewar@adacore.com>
7485 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
7486 (Local_Raise): New dummy procedure called when a raise is converted
7487 to a local goto. Used for debugger to detect that the exception
7490 * debug.adb: Document new d.g flag (expand local raise statements to
7491 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
7493 * exp_sel.adb: Use Make_Implicit_Exception_Handler
7495 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
7496 suppress warnings for unused handlers.
7497 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
7498 warnings for raise statements not handled locally.
7499 (Get_RT_Exception_Entity): New function
7500 (Get_Local_Call_Entity): New function
7501 (Find_Local_Handler): New function
7502 (Warn_If_No_Propagation): New procedure
7503 (Expand_At_End_Handler): Call Make_Implicit_Handler
7504 (Expand_Exception_Handlers): Major additions to deal with local handlers
7505 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
7506 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
7509 * exp_ch11.ads (Get_RT_Exception_Entity): New function
7510 (Get_Local_Call_Entity): New function
7512 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
7513 of restrictions that the binder will never suggest adding.
7515 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
7518 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
7519 be with'ed in the presence of pragma Restriction
7520 (No_Exception_Propagation).
7522 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
7524 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
7525 parameter, then the handler is not a suitable target for a local raise,
7526 and this is a violation of restriction No_Exception_Propagation.
7527 (Analyze_Handled_Statements): Analyze choice parameters in exception
7528 handlers before analyzing statement sequence (needed for proper
7529 detection of local raise statements).
7530 (Analyze_Raise_Statement): Reraise statement is a violation of the
7531 No_Exception_Propagation restriction.
7533 * s-rident.ads: Add new restriction No_Exception_Propagation
7535 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
7536 function, like Make_Exception_Handler but sets Local_Raise_Statements
7538 (Add_Unique_Serial_Number): Deal with case where this is called during
7539 processing of configuration pragmas.
7541 2007-04-06 Thomas Quinot <quinot@adacore.com>
7542 Pat Rogers <rogers@adacore.com>
7543 Pascal Obry <obry@adacore.com>
7545 * g-stsifd-sockets.adb: New file.
7547 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
7548 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
7549 g-socthi-vms.adb: Move signalling
7550 fd management to a nested package, so that they can conveniently be
7551 moved to a subunit that is shared across Windows, VMS, and VxWorks
7552 (Ada implementation) or completed with imported bodies from socket.c
7554 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
7556 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
7557 the signalling file descriptor.
7558 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
7559 signalling file descriptor.
7560 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
7561 instead of creating a pair of sockets for signalling here.
7563 * g-socthi.adb: Ditto.
7564 Set the runtime process to ignore SIGPIPEs on platforms that support
7565 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7567 * g-socthi-mingw.adb: Ditto.
7568 (WS_Version): Use Windows 2.2.
7569 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7571 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
7572 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7574 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
7575 added GNAT byte swapping facility
7576 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
7578 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
7580 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
7582 (__gnat_create_signalling_fds): New subprogram.
7583 Set the runtime process to ignore SIGPIPEs on platforms that support
7584 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7586 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
7587 Vincent Celier <celier@adacore.com>
7589 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
7590 New version of Ada.Calendar which supports the new upper bound of Ada
7591 time (2399-12-31 86_399.999999999).
7592 The following modifications have been made to the package:
7593 - New representation of time as count of nanoseconds since the start of
7594 Ada time (1901-1-1 0.0).
7595 - Target independent Split and Time_Of routines which service both
7596 Ada 95 and Ada 2005 code.
7597 - Target independent interface to the Ada 2005 children of Calendar.
7598 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
7599 - Handling of non-leap centenial years.
7600 - Updated clock function.
7601 - Updated arithmetic and comparison operators.
7603 * a-caldel.adb (To_Duration): Add call to target independent routine in
7604 Ada.Calendar to handle the conversion of time to duration.
7606 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
7608 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
7610 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
7611 targets do not have a natural time zone, GMT is used as a default.
7612 (__gnat_get_task_options): New.
7614 * a-direct.adb (Modification_Time): Add with and use clauses for
7615 Ada.Calendar and Ada.
7616 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
7617 since it is no longer needed.
7618 (Duration_To_Time): Removed.
7619 (OS_Time_To_Long_Integer): Removed.
7620 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
7621 Formatting Time_Of routines which automatically handle time zones,
7622 buffer periods and leap seconds.
7624 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
7625 target independent routines in Ada.Calendar.
7627 * a-calfor.ads, a-calfor.adb:
7628 Code cleanup and addition of validity checks in various routines.
7629 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
7632 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
7633 independent routine in Ada.Calendar.
7635 2007-04-06 Olivier Hainque <hainque@adacore.com>
7638 (convert_addresses): Adjust prototype and dummy definition to expect an
7639 extra file_name argument.
7641 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
7642 filling the now expected file_name argument with the appropriate
7644 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
7645 (tracebk): Array of void * instead of char *, corresponding to what
7646 convert_addresses expects.
7647 (exename): New static global, to hold the executable file name to be
7648 used in all convert_addresses invocations.
7649 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
7651 (__gnat_gmem_a2l_initialize): Resolve exename.
7652 (__gnat_convert_addresses): Use exename as the convert_addresses
7655 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
7656 "convert_addresses", now expecting a filename argument. Import the
7657 necessary entities to compute the filename to use and pass it to
7660 2007-04-06 Matt Gingell <gingell@adacore.com>
7662 * system-aix.ads: Back out previous change.
7663 (Functions_Return_By_DSP): Removed
7665 2007-04-06 Pascal Obry <obry@adacore.com>
7667 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
7668 or the monotonic used by Ada.Real_Time) to compute the sleep duration
7671 2007-04-06 Jose Ruiz <ruiz@adacore.com>
7673 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
7674 function. Its value changes in different VxWorks versions, and it is
7675 now handled by the function __gnat_get_task_options.
7677 * s-taprop-vxworks.adb (Create_Task): Call the function
7678 __gnat_get_task_options to get the required options for creating a task.
7680 2007-04-06 Pascal Obry <obry@adacore.com>
7681 Thomas Quinot <quinot@adacore.com>
7683 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
7684 dealing with filename.
7685 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
7686 filename from a standard string to a wide-string depending on the
7688 (__gnat_freopen): Idem.
7689 (__gnat_current_time): New function (wrapper for time(3) standard C
7692 * g-os_lib.ads (Current_Time): New function. Returns the current
7693 system time as an OS_Time value.
7695 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
7696 (Monotonic_Clock): Same.
7698 2007-04-06 Quentin Ochem <ochem@adacore.com>
7700 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
7702 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
7704 2007-04-06 Jose Ruiz <ruiz@adacore.com>
7706 * a-retide.adb: Add elaboration code to ensure that the tasking run
7707 time is initialized when using delay operations even when no task is
7710 2007-04-06 Javier Miranda <miranda@adacore.com>
7712 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
7713 component Num_Prim_Ops.
7714 (Set_Num_Prim_Ops): Removed.
7715 Remove all the assertions because all the routines of this
7716 package are inline always.
7717 (Get_Offset_Index): Add support to primary dispatch tables.
7718 Move the documentation about the dispatch table to a-tags.ads
7719 (Set_External_Tag): Removed
7720 (Inherit_TSD): Removed.
7721 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
7723 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
7724 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
7725 of the TSD field "Table" because this field has been renamed to
7727 (Inherit_CPP_DT): Removed.
7728 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
7729 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
7730 declarations have been moved to a-tags.ads
7731 (Check_Size): Removed.
7732 (Expanded_Name): Updated to get access to the new field of TSD
7733 containing the address of the expanded name.
7734 (Get_Access_Level/Set_Access_Level): Removed.
7735 (Get_Predefined_Prim_Op_Address): Removed.
7736 (Set_Predefined_Prim_Op_Address): Removed.
7737 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
7738 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
7739 (Set_Expanded_Name): Removed.
7740 (Inherit_DT): Removed.
7741 (Inherit_CPP_DT): Removed.
7742 (Set_RC_Offset): Removed.
7744 (Base_Address): New function that displaces "this" to point to the base
7745 of the object (that is, to point to the primary tag of the object).
7747 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7748 Javier Miranda <miranda@adacore.com>
7750 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
7751 anonymous access component, do not create a master_id if type already
7752 has one, as may happen if the type is a subcomponent of a packed array
7754 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
7755 Initialize_Tag): Remove code associated with the old CPP pragmas.
7756 CPP_Virtual and CPP_Vtable are no longer supported.
7757 (Build_Offset_To_Top_Internal): Add support for concurrent record types
7758 (Build_Offset_To_Top_Functions): Add support for concurrent record types
7759 (Freeze_Record_Type): Remove call to
7760 Init_Predefined_Interface_Primitives.
7761 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
7762 code required to initialize the tags of the secondary dispatch tables.
7763 This leaves the algoritm more clear.
7764 (Init_Secondary_Tags): Add support for concurrent record types
7765 (Make_Predefined_Primitive_Specs): Code cleanup.
7766 (Predefined_Primitive_Bodies): Code cleanup.
7767 (Build_Master_Renaming): New local subprogram.
7768 (Expand_N_Full_Type_Declaration): Build the master_id associated with
7769 anonymous access to task type components.
7770 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
7771 subtype indication are resolved during analysis, and must not be done
7773 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
7775 2007-04-06 Geert Bosch <bosch@adacore.com>
7776 Ed Schonberg <schonberg@adacore.com>
7777 Javier Miranda <miranda@adacore.com>
7778 Bob Duff <duff@adacore.com>
7780 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
7781 for conversion of a Float_Type'Truncation to integer.
7783 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
7784 check if a node is an attribute that can be handled directly by the
7786 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
7787 attributes that can be handled directly by the back end.
7788 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
7789 use new predicate Is_Access_Protected_Subprogram_Type.
7790 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
7791 and Unchecked_Union if it is generated as part of the default Output
7792 procedure for a type with default discriminants.
7793 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
7794 if we are compiling under restriction No_Dispatching_Calls.
7795 (Constrained): Use Underlying_Type, in case the type is private without
7796 discriminants, but the full type has discriminants.
7797 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
7798 call to Build_Get_Access_Level.
7799 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
7800 interface objects requires a call to the run-time subprogram that
7801 returns the base address of the object.
7802 (Valid_Conversion): Improve error message on illegal attempt to store
7803 an anonymous access to subprogram value into a record component.
7805 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
7807 (Simplify_Type_Conversion): New procedure that performs simplification
7808 of Int_Type (Float_Type'Truncation (X)).
7809 (Resolve_Type_Conversion): Call above procedure after resolving operand
7810 and before performing checks. This replaces the existing ineffective
7812 (Set_String_Literal_Subtype): When creating the internal static lower
7813 bound subtype for a string literal, use a newly created copy of the
7814 subtree representing the lower bound.
7815 (Resolve_Call): Exclude build-in-place function calls from transient
7816 scope treatment. Update comments to describe this exception.
7817 (Resolve_Equality_Op): In case of dispatching call check violation of
7818 restriction No_Dispatching_Calls.
7819 (Resolve_Call): If the call returns an array, the context imposes the
7820 component type of the array, and the function has one non-defaulted
7821 parameter, rewrite the call as the indexing of a call with a single
7822 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
7824 (Resolve_Actuals): If an actual is an allocator for an access parameter,
7825 the master of the created object is the innermost enclosing statement.
7826 (Remove_Conversions): For a binary operator, check if type of second
7827 formal is numeric, to check if an abstract interpretation is present
7828 in the case of exponentiation as well.
7830 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7831 Bob Duff <duff@adacore.com>
7833 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
7834 copying a parameter list in a call, set properly the First_Named_Formal
7835 and Next_Named_Formal fields in the new list and in the enclosing call.
7836 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
7837 names, to ease typing in the debugger. Improve comments.
7838 (Watch_Node): New variable, intended to be set in the debugger.
7839 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
7840 called when the watched node is created.
7841 (New_Node_Debugging_Output): Combined version of local procedures
7842 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
7843 with a parameter so that conditional breakpoints like "if Node = 12345"
7845 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
7848 2007-04-06 Thomas Quinot <quinot@adacore.com>
7849 Ed Schonberg <schonberg@adacore.com>
7850 Gary Dismukes <dismukes@adacore.com>
7852 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
7853 required for a conversion between two access-to-unconstrained-array
7855 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
7856 to discriminant constraints on discriminant objects. This rule must
7857 apply as well to discriminants of protected types in private components.
7858 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
7859 object of a null-excluding access type then don't require the
7860 the object declaration to have an expression and don't emit a
7863 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7864 Eric Botcazou <botcazou@adacore.com>
7866 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
7869 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
7870 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
7873 * fe.h (Compiler_Abort): Add third parameter.
7875 * misc.c (internal_error_function): Build third argument from current
7876 input location and pass it to Compiler_Abort.
7878 2007-04-06 Gary Dismukes <dismukes@adacore.com>
7880 * cstand.adb (Create_Standard): When the target's storage unit size is
7881 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
7884 2007-04-06 Nicolas Roche <roche@adacore.com>
7886 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
7887 absolute path can have the following form: device:/a/b. In this case
7888 '/' should be inserted between the path and the filename.
7890 2007-04-06 Olivier Hainque <hainque@adacore.com>
7891 Eric Botcazou <botcazou@adacore.com>
7893 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
7894 VAR_DECL to a CONST_DECL we make for a public constant when we know the
7895 corresponding definition has created the so made visible variable.
7896 Handle anonymous access to protected subprogram.
7897 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
7898 object with an address clause volatile. Re-enable original fix.
7899 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
7901 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
7902 associated with either the Equivalent or Root type, instead of the
7904 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
7905 subtree for every field of a global record type.
7906 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
7907 discriminants, invoke again variable_size on its newly computed sizes.
7909 2007-04-06 Robert Dewar <dewar@adacore.com>
7910 Thomas Quinot <quinot@adacore.com>
7911 Ed Schonberg <schonberg@adacore.com>
7912 Bob Duff <duff@adacore.com>
7914 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
7915 (Next_Component_Or_Discriminant): New function and procedure
7916 (First_Index, First_Literal, Master_Id,
7917 Set_First_Index, Set_First_Literal, Set_Master_Id):
7918 Add missing Ekind assertions.
7919 (Is_Access_Protected_Subprogram_Type): New predicate.
7920 (Has_RACW): New entity flag, set on package entities to indicate that
7921 the package contains the declaration of a remote accecss-to-classwide
7923 (E_Return_Statement): This node type has the Finalization_Chain_Entity
7924 attribute, in case the result type has controlled parts.
7925 (Requires_Overriding): Add this new flag, because "requires
7926 overriding" is subtly different from "is abstract" (see AI-228).
7927 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
7928 Is_Abstract_Type. Make sure these are called only when appropriate.
7929 (Has_Pragma_Unreferenced_Objects): New flag
7931 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
7932 class-wide, the tag of the right-hand side must be an exact match, not
7933 an ancestor of that of the object on left-hand side.
7934 (Move_Activation_Chain): New procedure to create the call to
7935 System.Tasking.Stages.Move_Activation_Chain.
7936 (Expand_N_Extended_Return_Statement): Generate code to call
7937 System.Finalization_Implementation.Move_Final_List at the end of a
7938 return statement if the function's result type has controlled parts.
7939 Move asserts to Build_In_Place_Formal.
7940 (Move_Final_List): New function to create the call statement.
7941 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
7942 tagged type, replace generation of call to the run-time subprogram
7943 CW_Membership by call to Build_CW_Membership.
7944 (Expand_N_Return_Statement): Replace generation of call to the run-time
7945 subprogram Get_Access_Level by call to Build_Get_Access_Level.
7946 (Expand_N_Simple_Function_Return): Replace generation of call to the
7947 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
7949 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
7950 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
7951 access to protected operations.
7952 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
7953 master and chain actual parameters to a build-in-place function call
7955 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
7957 (Make_Build_In_Place_Call_In_Allocator,
7958 Make_Build_In_Place_Call_In_Anonymous_Context,
7959 Make_Build_In_Place_Call_In_Assignment,
7960 Make_Build_In_Place_Call_In_Object_Declaration): Call
7961 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
7962 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
7963 stubbed procedure with a null body, replace the call with a null
7964 statement without using the full inlining machinery, for efficiency
7965 and to avoid invalid values in source file table entries.
7967 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
7968 renamings of calls to build-in-place functions.
7970 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
7971 provides the functionality of RTE_Available to record components.
7972 (RTU_Entity): The function Entity has been renamed to RTU_Entity
7973 to avoid undesired overloading.
7974 (Entity): New subprogram that returns the entity for the referened
7975 unit. If this unit has not been loaded, it returns Empty.
7976 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
7977 Remove no longer used entities.
7978 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
7979 (RE_Type_Specific_Data): New entity.
7980 (RE_Move_Any_Value): New entity.
7981 (RE_TA_A, RE_Get_Any_Type): New entities.
7982 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
7983 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
7984 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
7985 (Entity): New subprogram that returns the entity for the referened
7986 unit. If this unit has not been loaded, it returns Empty.
7987 (RTE): Addition of a new formal that extends the search to the scopes
7988 of the record types found in the chain of the package.
7990 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
7991 "abstract subprograms must be visible" message, whether or not the type
7992 is an interface; that is, remove the special case for interface types.
7993 (Analyze_Function_Return): Remove error message "return of task objects
7994 is not yet implemented" because this is now implemented.
7995 (Create_Extra_Formals): Add the extra master and activation chain
7996 formals in case the result type has tasks.
7997 Remove error message "return of limited controlled objects is not yet
7999 (Create_Extra_Formals): Add the extra caller's finalization list formal
8000 in case the result type has controlled parts.
8001 (Process_Formals): In case of access formal types there is no need
8002 to continue with the analysis of the formals if we already notified
8004 (Check_Overriding_Indicator): Add code to check overriding of predefined
8006 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
8007 flags for formals that do not require them,.
8008 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
8009 hidden entity is use visible or directly visible.
8010 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
8011 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
8012 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
8013 New_Overloaded_Entity): Split Is_Abstract flag into
8014 Is_Abstract_Subprogram and Is_Abstract_Type.
8016 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
8017 a return statement's finalization list to the caller's list, used for
8018 build-in-place functions with result type with controlled parts.
8019 Remove no longer used entities.
8021 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
8022 longer needed, because the full type is now limited, and therefore a
8023 pass-by-reference type.
8024 (Foreign_Task_Level): New constant.
8026 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
8027 move tasks from the activation chain belonging to a return statement to
8028 the one passed in by the caller, and update the master to the one
8029 passed in by the caller.
8030 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
8031 of unactivated tasks, so we don't kill the ones that are being returned
8032 by a build-in-place function.
8033 (Create_Task): Ignore AI-280 for foreign threads.
8035 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8036 Robert Dewar <dewar@adacore.com>
8037 Bob Duff <duff@adacore.com>
8038 Gary Dismukes <dismukes@adacore.com>
8040 * errout.adb (Unwind_Internal_Type): Use predicate
8041 Is_Access__Protected_Subprogram_Type.
8043 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
8044 (Freeze_Entity, packed array case): Do not override explicitly set
8045 alignment and size clauses.
8046 (Freeze_Entity): An entity declared in an outer scope can be frozen if
8047 the enclosing subprogram is a child unit body that acts as a spec.
8048 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
8049 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
8050 Remove all code for DSP option
8052 * layout.adb (Layout_Record_Type): Use First/
8053 Next_Component_Or_Discriminant
8054 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
8055 to handle properly the anonymous access case.
8057 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
8058 for all access attributes, because overload resolution should work the
8059 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
8060 causes the error message for the ambiguous "X'Access = Y'Access" and
8061 "X'Unrestricted_Access = Y'Access" and so forth to match.
8062 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
8063 now that anonymous access to protected operations have their own kind.
8064 (Resolve_Attribute): In case of dispatching call check the violation of
8065 restriction No_Dispatching_Calls.
8066 (Check_Array_Type): Check new -gnatyA array index style option
8068 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
8069 attempt to derive from a synchronized tagged type.
8070 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
8071 type, inherit the class-wide type already created, because it may
8072 already have been used in a self-referential anonymous access component.
8073 (Mentions_T): Recognize self-referential anonymous access components
8074 that use (a subtype of) the class-wide type of the enclosing type.
8075 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
8076 Derived_Type for Prev formal on call to
8077 Check_Anonymous_Access_Components rather than Empty.
8078 (Make_Incomplete_Type_Declaration): Add test for case where the type has
8079 a record extension in deciding whether to create a class-wide type,
8080 rather than just checking Tagged_Present.
8081 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
8082 to stand-alone object declarations as well as component declarations.
8083 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
8084 prevent accidental overwriting when enclosing package appears in
8085 a limited_with_clause.
8086 (Array_Type_Declaration): If the component type is an anonymous access,
8087 the associated_node for the itype is the type declaration itself.
8088 (Add_Interface_Tag_Components): Modified to support concurrent
8089 types with abstract interfaces.
8090 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
8091 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
8092 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
8093 to complete the decoration of synchronized interface types. Add also
8094 a call to Check_Abstract_Interfaces to verify the ARM rules.
8095 (Derive_Interface_Subprograms): Modified to support concurrent types
8096 with abstract interfaces.
8097 (Analyze_Subtype_Indication): Resolve the range with the given subtype
8098 mark, rather than delaying the full resolution depending on context.
8099 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
8100 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
8101 Array_Type_Declaration,Build_Derived_Record_Type,
8102 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
8103 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
8104 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
8105 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8106 called only when appropriate.
8107 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
8109 (Analyze_Subtype_Declaration): For an access subtype declaration, create
8110 an itype reference for the anonymous designated subtype, to prevent
8111 scope anonmalies in gigi.
8112 (Build_Itype_Reference): New utility, to simplify construction of such
8115 2007-04-06 Vincent Celier <celier@adacore.com>
8117 * errutil.adb (Initialize): Initialize warnings table, if all warnings
8118 are suppressed, supply an initial dummy entry covering all possible
8121 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
8122 and start with only one, such as "-RTS=none".
8123 (Collect_Arguments): Do not check for sources outside of projects.
8124 Do not collect arguments if project is externally built.
8125 (Compile_Sources): Do nothing, not even check if the source is up to
8126 date, if its project is externally built.
8127 (Compile): When compiling a predefined source, add -gnatpg
8128 as the second switch, after -c.
8129 (Compile_Sources): Allow compilation of Annex J renames without -a
8130 (Is_In_Object_Directory): Check if the ALI file is in the object
8131 even if there is no project extension.
8132 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
8133 gnatbind if the ALI file effectively exists.
8134 (Initialize): Add the directory where gnatmake is invoked in front of
8135 the path if it is invoked from a bin directory, even without directory
8136 information, so that the correct GNAT tools will be used when spawned
8137 without directory information.
8139 * makeusg.adb: Change switch -S to -eS
8140 Add lines for new switches -we, -wn and -ws
8141 Add line for new switch -p
8143 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
8144 Treat_As_Error and there are warnings.
8146 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
8147 -gnatww Change gnatmake switch -S to -eS
8148 (Scan_Make_Switches): Code reorganisation. Process separately multi
8149 character switches and single character switches.
8150 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
8151 False when switch is not recognized by gnatmake.
8152 (Scan_Make_Switches): Set Setup_Projects True when -p or
8153 --create-missing-dirs is specified.
8155 * fname.adb (Is_Predefined_File_Name): Return True for annex J
8156 renamings Calendar, Machine_Code, Unchecked_Conversion and
8157 Unchecked_Deallocation only when Renamings_Included is True.
8159 * par.adb: Allow library units Calendar, Machine_Code,
8160 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
8161 when -gnatg is not specified.
8162 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8163 there is no need to generate always a record_definition_node in case
8164 of synchronized interface types.
8165 (SIS_Entry_Active): Initialize global variable to False
8166 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
8167 indicate cases where AI-447 says "not null" is legal.
8169 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
8171 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
8172 files with with several lines starting with the object fileb name.
8173 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
8175 (Initialize): Add the directory where gprmake is invoked in front of the
8176 path, if it is invoked from a bin directory or with directory
8177 information, so that the correct GNAT tools will be used when invoked
8179 (Check_Compilation_Needed): Process correctly backslashes on Windows.
8181 * vms_data.ads: Update switches/qualifiers
8183 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8184 Thomas Quinot <quinot@adacore.com>
8187 If the array component is a discriminated record, the array aggregate
8188 is non-static even if the component is given by an aggregate with
8190 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
8191 (Convert_Aggr_In_Allocator): If the allocator is for an access
8192 discriminant and the type is controlled. do not place on a finalization
8193 list at this point. The proper list will be determined from the
8195 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
8196 initialize record controller if needed, before the components, to ensure
8197 that they are properly finalized.
8198 (Build_Record_Aggr_Code): For the case of an array component that has a
8199 corresponding array aggregate in the record aggregate, perform sliding
8202 2007-04-06 Javier Miranda <miranda@adacore.com>
8203 Gary Dismukes <dismukes@adacore.com>
8204 Ed Schonberg <schonberg@adacore.com>
8206 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
8207 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
8209 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
8210 accessibility on class-wide allocators if the allocator occurs at the
8211 same scope level as the allocator's type. The check is guaranteed to
8212 succeed in that case, even when the expression originates from a
8213 parameter of the containing subprogram.
8214 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
8215 under No_Dispatching_Calls restriction. During the semantic analysis
8216 we already notified such violation.
8217 (Tagged_Membership): Constant folding. There is no need to check
8218 the tag at run-time if the type of the right operand is non
8219 class-wide abstract.
8220 Replace call to Is_Ancestor by call to Is_Parent
8221 to support concurrent types with interface types.
8222 (Expand_N_Allocator): Add an assertion associated with the generation
8224 (Expand_N_Slice): Do not enable range check to nodes associated
8225 with the frontend expansion of the dispatch table.
8226 (Is_Local_Access_Discriminant): Subsidiary function to
8228 (Tagged_Membership): Replace generation of call to the run-time
8229 subprogram CW_Membership by call to Build_CW_Membership.
8230 (Expand_Allocator_Expression): Replace generation of call to the
8231 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8233 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
8234 initialize most the TSD components by means of an aggregate.
8235 Modify the declaration of the object containing the TSD
8236 because we now expand code that has a higher level of abstraction.
8237 The TSD has a discriminant containing the Inheritance Depth Level,
8238 value that is used in the membership test but also to fix the size
8239 of the table of ancestors.
8240 (Expand_Interface_Conversion): Insert function body at the closest place
8241 to the conversion expression, to prevent access-before-elaboration
8242 errors in the backend.
8243 Code improved to reduce the size of the dispatch table if
8244 compiling under restriction No_Dispatching_Calls plus code cleanup.
8245 Code reorganization plus removal of calls to Set_Num_Prim_Ops
8246 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
8247 (Expand_Dispatching_Call): Minor code reorganization plus addition of
8248 code to return immediately if compiling under No_Dispatching_Calls
8250 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
8251 CPP_Virtual and CPP_Vtable are no longer supported.
8252 (Expand_Interface_Conversion): Add missing support for interface type
8254 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
8255 Is_Parent to support concurrent types with interfaces.
8256 (Init_Predefined_Interface_Primitives): Removed.
8257 (Make_Secondary_DT): Modified to support concurrent record types.
8258 (Set_All_DT_Position): Modified to support concurrent record types.
8259 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8260 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
8261 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
8263 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8264 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
8265 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
8266 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
8267 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
8268 (Expand_Dispatching_Call): Replace generation of call to the run-time
8269 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
8270 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
8272 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
8273 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
8274 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
8275 Build_Set_Prim_Op_Address.
8276 (Get_Remotely_Callable): Subprogram removed.
8277 (Init_Predefined_Interface_Primitives): Replace generation of call to
8278 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
8281 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
8282 First (Parameter_Associations ()) with the call to First_Actual that
8283 returns an actual parameter expression for both named and positional
8286 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
8287 check violation of restriction No_Dispatching_Calls.
8288 (Check_Controlling_Type): A formal of a tagged incomplete type is a
8289 controlling argument.
8291 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
8292 First/Next_Component_Or_Discriminant
8293 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
8294 (Find_Implemented_Interface): Removed. All the calls to this subprogram
8295 specify Any_Limited_Interface, and this functionality is already
8296 provided by the function Has_Abstract_Interfaces.
8297 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
8298 support concurrent types implementing interfaces.
8299 (Find_Implemented_Interface): Removed. All the calls to this subprogram
8300 specify kind Any_Limited_Interface, and this functionality is already
8301 provided by the function Has_Abstract_Interfaces.
8302 (Remove_Side_Effects): replace Controlled_Type by
8303 CW_Or_Controlled_Type whenever the issue is related to
8304 using or not the secondary stack.
8306 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
8307 P_Interface_Type_Definition to fulfill the new interface (the formal
8308 Is_Synchronized is no longer required).
8310 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
8311 Update dependencies.
8313 * exp_atag.ads, exp_atag.adb: New file
8315 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8316 Bob Duff <duff@adacore.com>
8317 Cyrille Comar <comar@adacore.com>
8319 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
8320 anonymous, use finalization list of enclosing dynamic scope.
8321 (Expand_N_Package_Declaration): For a library package declaration
8322 without a corresponding body, generate RACW subprogram bodies in the
8323 spec (just as we do for the task activation call).
8324 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
8325 Is_Abstract_Type. Make sure these are called only when appropriate.
8326 Remove all code for DSP option
8327 (CW_Or_Controlled_Type): new subprogram.
8329 2007-04-06 Eric Botcazou <botcazou@adacore.com>
8330 Ed Schonberg <schonberg@adacore.com>
8331 Gary Dismukes <dismukes@adacore.com>
8333 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
8334 parameter. If it is set to true, return a result capped according to
8335 the global upper bound for the index of an entry family.
8336 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
8337 (Build_Find_Body_Index): Adjust for above change.
8338 (Entry_Index_Expression): Likewise.
8339 (Is_Potentially_Large_Family): New function extracted from...
8340 (Collect_Entry_Families): ...here. Call it to detect whether the family
8341 is potentially large.
8342 (Build_Entry_Count_Expression): If the family is potentially large, call
8343 Family_Size with 'Cap' set to true.
8344 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
8345 a protected version of an operation declared in the private part of
8346 a protected object, because they may be invoked through a callback.
8347 (Set_Privals): If the type of a private component is an anonymous access
8348 type, do not create a new itype for each protected body.
8349 If the body of a protected operation creates
8350 controlled types (including allocators for class-widetypes), the
8351 body of the corresponding protected subprogram must include a
8353 (Build_Activation_Chain_Entity): Build the chain entity for extended
8355 (Type_Conformant_Parameters): Use common predicate Conforming_Types
8356 to determine whether operation overrides an inherited primitive.
8357 (Build_Wrapper_Spec): Add code to examine the parents while looking
8358 for a possible overriding candidate.
8359 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
8360 hold an actual parameter value since its initialization is separated
8361 from the the declaration. Prevents errors on null-excluding access
8364 2007-04-06 Thomas Quinot <quinot@adacore.com>
8366 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
8367 Do an Unchecked_Conversion to handle the passage from the Underlying
8368 Type to the Base Type when calling Build_To_Any_Call and
8369 Build_From_Any_Call.
8370 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
8371 E_Constant, depending upon Variable formal.
8372 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8373 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
8374 parameter that requires an extra constrained parameter, declare
8375 temporary for actual as a variable, not a constant.
8376 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
8377 the unit being compiled is the one that contains the stub type.
8378 Change primitive operation name for the RACW associated with a RAS
8379 from Call to _Call so it cannot clash with any legal identifier.
8380 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
8382 (Append_RACW_Bodies): New subprogram.
8383 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
8384 Add_Receiving_Stubs_To_Declarations functions.
8385 When expanding a package body, this list correspond to the
8386 statements in the HSS at the end of the pacakge.
8387 When expanding a package spec, this list correspond to the
8389 (Add_Receiving_Stubs_To_Declarations): Append the function
8390 registering the receiving stubs at the end of the 'Stmts' list.
8391 (RCI_Package_Locator): Pass the new Version generic formal when
8392 instantiating a RCI_Locator package.
8393 (Build_From_Any_Function): To compute the High bound for an
8394 unconstrained array actual, we add the Low bound with the length.
8395 Thus we must convert the low bound and the length to an appropriate
8396 type before doing the sum.
8397 (Build_Subprogram_Receiving_Stubs, PolyORB):
8398 * Retrieve the extra formals parameters at the
8399 end of the parameter stream.
8400 * Use Move_Any_Value to write back out parameters
8401 after executing the request as it is more efficient
8402 than Copy_Any_Value.
8403 * Build the any containing Extra Formals with the
8404 appropriate typecode.
8405 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
8406 empty Component_List.
8407 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
8408 the tree the declaration for an object that serves as actual parameter
8409 in server-side stubs.
8410 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8411 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8412 Use Build_Actual_Object_Declaration to prepare the actuals.
8413 (Add_Parameter_To_NVList): Set the parameter mode to In for
8414 Extra Constrained Parameters.
8415 (Build_General_Calling_Stubs): Set the parameter type to boolean for
8416 Extra Constrained parameters.
8417 (Build_To_Any_Function, Build_From_Any_Function,
8418 Built_TypeCode_Function): When Typ is implicit, call the correct
8419 function with the first not implicit parent type.
8420 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
8421 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
8422 typecode from the Etype. Therefore we retrieve the correct typecode
8423 with a call to Get_Any_Type.
8424 (Copy_Specification): Do controlling formal type substitution based on
8425 Is_Controlling_Formal flag, instead of caller-provided object type.
8426 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
8427 a RACW primitive operation, we might get a subprogram declaration for an
8428 ancestor of the RACW designated type (not for the designated type
8429 itself), in the case where this operation is inherited. In this case we
8430 have no easy means of determining the original tagged type for which
8431 the primitive was declared, so instead we now rely on
8432 Copy_Specification to use the Is_Controlling_Formal flag to determine
8433 which formals require type substitution.
8435 2007-04-06 Robert Dewar <dewar@adacore.com>
8436 Ed Schonberg <schonberg@adacore.com>
8438 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
8439 GNAT.Current_Exception are not allowed if pragma Restrictions
8440 (No_Exception_Propagation) is set and in any case make the associated
8441 handler unsuitable as a target for a local raise statement.
8442 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
8443 run-time subprogram CW_Membership by call to Build_CW_Membership.
8444 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
8445 by a function call, a temporary must be created before expanding the
8446 Constructor_Call itself, to prevent out-of-order elaboration in the
8447 back-end when stack checking is enabled..
8449 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8451 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
8452 result are the bounds of the left operand, not the right.
8454 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8457 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
8458 discriminant defaults.
8459 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
8460 (Make_Component_List_Attributes): Ditto.
8462 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8463 Bob Duff <duff@adacore.com>
8465 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
8466 an association with a box as providing a value even though the
8467 initialization procedure for the type is not available.
8468 (Resolve_Record_Aggregate): Check that a choice of an association with a
8469 box corresponds to a component of the type.
8470 (Resolve_Record_Aggregate): Split Is_Abstract flag into
8471 Is_Abstract_Subprogram and Is_Abstract_Type.
8473 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
8476 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
8477 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8478 called only when appropriate.
8480 2007-04-06 Olivier Hainque <hainque@adacore.com>
8482 * g-alleve.ads (Low Level Vector type definitions): Map each to the
8483 associated vector view instead of all to the unsigned char view.
8485 * g-altcon.adb (Generic_Conversions): New internal generic package,
8486 offering facilities for all the Vector/View conversion routines
8487 implemented by this unit.
8488 (To_View/To_Vector - all versions): Reimplemented in a systematic
8489 manner, using the internal Generic_Conversions facilities.
8491 2007-04-06 Pascal Obry <obry@adacore.com>
8493 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
8495 (Create): Free the source string before storing the new one.
8497 2007-04-06 Vincent Celier <celier@adacore.com>
8499 * g-debpoo.adb (Validity): New package with a complete new
8500 implementation of subprograms Is_Valid and Set_Valid.
8501 (Is_Valid): Move to local package Validity
8502 (Set_Valid): Move to local package Validity
8504 2007-04-06 Arnaud Charlet <charlet@adacore.com>
8506 * g-expect.adb (Get_Command_Output): When expanding the output buffer
8507 we must ensure that there is enough place for the new data we are going
8510 2007-04-06 Thomas Quinot <quinot@adacore.com>
8512 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
8515 2007-04-06 Jose Ruiz <ruiz@adacore.com>
8516 Vincent Celier <celier@adacore.com>
8518 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
8519 (Stack_String): Add this String that contains the name of the Stack
8520 package in the project file.
8521 (Packages_To_Check_By_Stack): Add this list that contains the packages
8522 to be checked by gnatstack, which are the naming and the stack packages.
8523 (Check_Files): If no .ci files were specified for gnatstack we add all
8524 the .ci files belonging to the projects, including binder generated
8526 (Non_VMS_Usage): Document that gnatstack accept project file switches.
8527 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
8528 Add gnatstack to the list of commands that use project file related
8529 switches, and get the single attribute Switches from the stack package
8530 in a project file when calling gnatstack. Parse the -U flag for
8531 processing files belonging to all projects in the project tree.
8532 Remove all processing for command Setup
8534 * prj-attr.adb: Add new package Stack with single attribute Switches
8536 * vms_conv.ads (Command_Type): Add command Stack.
8537 Move to body declarations that are only used in the body: types Item_Id,
8538 Translation_Type, Item_Ptr, Item and its subtypes.
8540 * vms_conv.adb: (Initialize): Add data for new command Stack.
8541 Add declarations moved from the spec: types Item_Id, Translation_Type,
8542 Item_Ptr, Item and its subtypes.
8543 (Cargs_Buffer): New table
8544 (Cargs): New Boolean global variable
8545 (Process_Buffer): New procedure to create arguments
8546 (Place): Put character in table Buffer or Cargs_Buffer depending on the
8548 (Process_Argument): Set Cargs when processing qualifiers for GNAT
8550 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
8551 empty, for table Cargs_Buffer.
8552 (Initialize): Remove component Setup in Command_List
8554 2007-04-06 Vincent Celier <celier@adacore.com>
8556 * gprep.adb (Process_Files.Process_One_File): Use full file name when
8557 issuing pragma Source_Reference.
8559 2007-04-06 Emmanuel Briot <briot@adacore.com>
8561 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
8562 [[:xdigit:]] character class.
8563 Also raise an exception when an invalid character class is used.
8565 2007-04-06 Pascal Obry <obry@adacore.com>
8567 * i-cstrea.ads: (fopen): Add encoding parameter.
8569 Change reference from a-sysdep.c to sysdep.c in comment.
8570 Update copyright notice.
8571 This set of patch add support for the encoding form parameter.
8573 * mingw32.h (S2WSU): New macro to convert from a string to a
8574 wide-string using the UTF-8 encoding. The S2WS macro supports now only
8575 standard 8bits encoding.
8576 (WS2SU): As above but converting from wide-sring to string.
8577 This is needed as it is necessary to have access to both versions in the
8578 runtime for the form parameter encoding support.
8579 This set of patch add support for the encoding form parameter.
8580 (S2WS): Improve implementation to handle cases where the filename is not
8581 UTF-8 encoded. In this case we default to using the current code page
8584 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
8585 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
8586 the constants defined in adaint.h.
8587 (fopen): Add encoding parameter.
8590 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
8591 encoding. This is needed for the Reset routine (freopen low level-call).
8593 * s-fileio.adb (Open): Decode encoding form parameter and set the
8594 corresponding encoding value into AFCB structure.
8595 (Reset): Pass the encoding value to freopen.
8596 (Close): Move the call to Lock_Task to the beginning of the procedure.
8598 2007-04-06 Geert Bosch <bosch@adacore.com>
8599 Robert Dewar <dewar@adacore.com>
8601 * i-fortra.ads: Add Double_Complex type.
8603 * impunit.adb: (Is_Known_Unit): New function
8604 Add Gnat.Byte_Swapping
8606 Add new Ada 2005 units
8607 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
8608 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
8609 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
8610 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
8612 * impunit.ads (Is_Known_Unit): New function
8614 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
8615 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
8616 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
8617 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
8618 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
8619 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
8622 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
8624 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
8626 2007-04-06 Eric Botcazou <botcazou@adacore.com>
8627 Arnaud Charlet <charlet@adacore.com>
8629 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
8630 __gnat_adjust_context_for_raise.
8631 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
8632 implementation of floating point operations as native x86 targets.
8633 So the FPU should be initialized in the same way using finit. Fix
8634 floating point operations accuracy issues.
8635 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
8636 member in struct sigaction, so as to avoid warning for incompatible
8639 2007-04-06 Serguei Rybin <rybin@adacore.com>
8641 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
8642 switches from previously loaded tree
8644 2007-04-06 Thomas Quinot <quinot@adacore.com>
8646 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
8647 cases where a given dependency has a body or not.
8648 (Write_With_File_Names): New subprogram, common code for the two cases
8651 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8652 Javier Miranda <miranda@adacore.com>
8654 * lib-xref.ads, lib-xref.adb:
8655 Modify the loop that collects type references, to include interface
8656 types that the type implements. List each of these interfaces when
8657 building the entry for the type.
8658 (Generate_Definition): Initialize component Def and Typ of new entry
8659 in table Xrefs, to avoid to have these components unitialized.
8660 (Output_References): Split Is_Abstract flag into
8661 Is_Abstract_Subprogram and Is_Abstract_Type.
8662 (Generate_Reference): Add barrier to do not generate the warning
8663 associated with Ada 2005 entities with entities generated by the
8666 2007-04-06 Robert Dewar <dewar@adacore.com>
8667 Arnaud Charlet <charlet@adacore.com>
8668 Vincent Celier <celier@adacore.com>
8670 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
8671 Update 'Exception Handling Control' chapter which was outdated.
8672 Minor fix to documentation of -gnatwq
8673 Remove section "Adapting the Run Time to a New C++ Compiler" because
8675 Add passage on need of -nostart-files in some non-ada-main cases.
8676 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
8677 Update documentation about Interfacing with C++
8678 Add documentation for new gnatmake switch -p
8679 Add missing protocol part in URLs.
8681 Document pragma Compile_Time_Error
8682 Add documentation for Object_Size indicating that stand alone
8683 objects can have a larger size in some cases.
8684 Add node for GNAT.Byte_Swapping, GNAT.SHA1
8685 Update reference to the Ravenscar profile.
8686 Document pragma Unreferenced_Objects
8688 * gnat-style.texi: Fix typo
8690 2007-04-06 Vincent Celier <celier@adacore.com>
8692 * mlib.adb (Building_Library): Only output "building a library..." in
8695 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
8696 files in verbose mode.
8698 * mlib-utl.adb (Ar): Only output the first object files when not in
8700 (Gcc): Do not display all the object files if not in verbose mode, only
8703 2007-04-06 Robert Dewar <dewar@adacore.com>
8705 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
8706 it no longer destroys the contents of Name_Buffer or Name_Len and
8707 non-standard and invalid names are handled better.
8708 (Get_Decoded_Name_String): Improve performance by using
8709 Name_Has_No_Encodings flag in the name table.
8710 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
8711 Used for debugging printouts.
8713 2007-04-06 Robert Dewar <dewar@adacore.com>
8714 Javier Miranda <miranda@adacore.com>
8715 Bob Duff <duff@adacore.com>
8717 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
8718 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8719 there is no need to generate always a record_definition_node in case
8720 of synchronized interface types.
8721 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
8722 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
8723 illegal in Ada 95, in cases where it is legal. Change the warnings to
8724 errors in other cases. Don't give the error unless the "not null"
8725 parses properly. Correct the source position at which the error occurs.
8726 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
8727 P_Null_Exclusion, to suppress "not null" warnings.
8728 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
8729 associated goto statements.
8731 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
8734 * scans.ads (Type_Token_Location): New flag
8736 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
8737 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
8738 P_Null_Exclusion, to suppress "not null" warnings.
8740 2007-04-06 Robert Dewar <dewar@adacore.com>
8741 Javier Miranda <miranda@adacore.com>
8742 Bob Duff <duff@adacore.com>
8743 Vincent Celier <celier@adacore.com>
8745 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
8746 (Extensions_Allowed): No longer sets Ada_Version
8747 Entry for pragma Unreferenced_Objects
8749 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
8750 system.tasking if pragma priority used in a procedure
8751 (Analyze_Pragma, case Warning): Handle dot warning switches
8752 (Process_Compile_Time_Warning_Or_Error): New procedure
8753 (Analyze_Pragma): Add processing for Compile_Time_Error
8754 Add support for extra arguments External_Name and Link_Name.
8755 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
8756 (Process_Import_Or_Interface): Add support for the use of pragma Import
8758 (Extensions_Allowed): No longer affects Ada_Version
8759 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
8760 Is_Abstract_Type. Make sure these are called only when appropriate.
8761 Add processing for pragma Unreferenced_Objects
8763 * snames.h, snames.ads, snames.adb: Add entry for pragma
8765 Add new standard name Minimum_Binder_Options for new gprmake
8766 Add new standard names for gprmake: Archive_Suffix,
8767 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
8768 Library_Support, Library_Version_Options,
8769 Shared_Library_Minimum_Options,
8770 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
8771 Change Name_Call to Name_uCall so that it cannot clash with a legal
8773 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
8774 Append C_Plus_Plus to convention identifiers as synonym for CPP
8775 Add new standard names Stack and Builder_Switches
8776 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
8777 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
8778 Run_Path_Option, Toolchain_Version.
8779 Entry for pragma Unreferenced_Objects
8781 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
8782 switches, without repetition of "eD". Make sure that last character of
8783 -gnatep= switch is not taken as -gnat switch character.
8784 Complete rewrite of circuit for handling saving compilation options
8785 Occasioned by need to support dot switchs for -gnatw, but cleans up
8787 -gnatX does not affect Ada_Version
8788 Include -gnatyA in -gnatg style switches
8790 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
8791 warnings on return objects.
8792 (Warn_On_Useless_Assignment): Exclude warnings on return objects
8793 (Set_Dot_Warning_Switch): New procedure
8794 (Check_References): Add missing case of test for
8795 Has_Pragma_Unreferenced_Objects
8796 (Output_Unreferenced_Messages): Implement effect of new pragma
8797 Unreferenced_Objects, remove special casing of limited controlled
8800 2007-04-06 Vincent Celier <celier@adacore.com>
8802 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
8803 the default project path, initially done during elaboration of the
8805 If the prefix returned by Sdefault is null, get the prefix from a call
8806 to Executable_Prefix_Path.
8807 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
8810 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
8811 canonical directory name to open the directory from which files are
8813 (Record_Other_Sources): Idem.
8814 (Locate_Directory): Add the possibility to create automatically missing
8815 directories when Setup_Projects is True.
8816 Call Locate_Directory so that the directory will be created when
8817 Setup_Projects is True, for object dir, library dir, library ALI dir,
8818 library source copy dir and exec dir.
8820 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
8823 2007-04-06 Robert Dewar <dewar@adacore.com>
8825 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
8826 Use First/Next_Component_Or_Discriminant
8827 (Analyze_Record_Representation_Clause):
8828 Use First/Next_Component_Or_Discriminant
8829 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
8830 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
8831 definition if type is unconstrained.
8832 (Adjust_Record_For_Reverse_Bit_Order): New procedure
8833 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
8834 Is_Abstract_Subprogram and Is_Abstract_Type.
8835 (Adjust_Record_For_Reverse_Bit_Order): New procedure
8837 * repinfo.adb (List_Record_Info): Use First/
8838 Next_Component_Or_Discriminant.
8840 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
8843 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
8844 Include -gnatyA in default switches
8846 * opt.ads: (Warn_On_Non_Local_Exception): New flag
8847 (Warn_On_Reverse_Bit_Order): New flag
8848 (Extensions_Allowed): Update the documentation.
8849 (Warn_On_Questionable_Missing_Parens): Now on by default
8851 * usage.adb: Add documentation of -gnatw.x/X switches
8852 Document new -gnatyA style switch
8853 -gnatq warnings are on by default
8855 2007-04-06 Ed Falis <falis@adacore.com>
8857 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
8858 full word is no longer compared twice.
8860 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8862 * sem_ch10.adb (Install_Limited_Context_Clauses.
8863 Expand_Limited_With_Clause): Use a new copy of selector name in the
8864 call to Make_With_Clause. This fixes the tree structure for ASIS
8865 purposes. Nothing is changed in the compiler behaviour.
8866 (Process_Body_Clauses): Handle properly use clauses whose prefix is
8868 (Install_Limited_With_Clauses): Do not install non-limited view when it
8869 is still incomplete.
8871 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8872 Gary Dismukes <dismukes@adacore.com>
8874 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
8875 when capturing size information, instead of base type, which for a
8876 formal array type will be the unconstrained type.
8877 (Analyze_Formal_Object_Declaration): Add check for illegal default
8878 expressions for a formal in object of a limited type.
8879 (Instantiate_Object): Ditto.
8880 (Check_Formal_Package_Instance): Skip entities that are formal objects,
8881 because they were defaulted in the formal package and no check applies
8883 (Check_Formal_Package_Instance): Extend conformance check to other
8884 discrete types beyond Integer.
8885 (Process_Default): Copy directly the unmatched formal. A generic copy
8886 has already been performed in Analyze_Formal_Package.
8887 (Analyze_Associations): If a formal subprogram has no match, check for
8888 partial parametrization before looking for a default, to prevent
8890 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
8891 not set the instantiation environment before analyzing the actuals.
8892 Fixes regression on 8515-003 with implementation of AI-133.
8893 Set_Instance_Env checks whether the generic unit is a predefined
8894 unit, in which case the instance must be analyzed with the latest Ada
8895 mode. This setting must take place after analysis of the actuals,
8896 because the actuals must be analyzed and frozen in the Ada mode extant
8897 outside of the current instantiation.
8898 (Save_Env, Restore_Env): Preserve and restore the configuration
8899 parameters so that predefined units can be compiled in the proper Ada
8901 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
8902 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
8903 and Is_Abstract_Type.
8904 (Analyze_Formal_Package): For better error recovery, Add exception
8905 handler to catch Instantion_Error, which can be raised in
8906 Analyze_Associations
8908 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8909 Bob Duff <duff@adacore.com>
8910 Gary Dismukes <dismukes@adacore.com>
8912 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
8913 prefix type is a discriminated subtype of the type of the formal.
8914 (Analyze_Allocator): Collect all coextensions regardless of the context.
8915 Whether they can be allocated statically is determined in exp_ch4.
8916 (Analyze_Selected_Component): If the prefix is a limited view and the
8917 non-limited view is available, use the non-limited one.
8918 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
8919 therefore illegal), suggest a qualified expression rather than a type
8920 conversion, because a type conversion would be illegal in this context.
8921 (Anayze_Allocator): Trace recursively all nested allocators so that all
8922 coextensions are on the corresponding list for the root. Do no mark
8923 coextensions if the root allocator is within a declaration for a stack-
8924 allocated object, because the access discriminants will be allocated on
8926 (Analyze_Call): Remove restriction on calls to limited functions for the
8927 cases of generic actuals for formal objects, defaults for formal objects
8928 and defaults for record components.
8929 (Analyze_Allocator): Before analysis, chain coextensions on the proper
8930 element list. Their expansion is delayed until the enclosing allocator
8931 is processed and its finalization list constructed.
8932 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
8933 for an operation with the given name among the primitive operations of
8934 the corresponding record type.
8935 (Analyze_Selected_Component): If the prefix is a task type that
8936 implements an interface, and there is no entry with the given name,
8937 check whether there is another primitive operation (e.g. a function)
8939 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
8940 properly the indexing of a function call written in prefix form, where
8941 the function returns an array type, and all parameters of the function
8942 except the first have defaults.
8943 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
8944 the original operands, rather than relocating them, for efficiency and
8945 to work properly when an operand is overloaded.
8946 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
8947 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
8948 (Analyze_Selected_Component): If the prefix is a private extension, only
8949 scan the visible components, not those of the full view.
8950 (Try_Primitive_Operation): If the operation is a procedure, collect all
8951 possible interpretations, as for a function, because in the presence of
8952 classwide parameters several primitive operations of the type can match
8953 the given arguments.
8955 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8956 Robert Dewar <dewar@adacore.com>
8958 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
8959 tag-indeterminate call to an abstract function, when the left-hand side
8961 (Analyze_Loop_Statement): Improve detection of infinite loops
8963 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8964 Thomas Quinot <quinot@adacore.com>
8966 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
8967 out of Analyze_Package_Declaration, because processing must be applied
8968 to package bodies as well, for deferred constants completed by pragmas.
8969 (Analyze_Package_Declaration): When the package declaration being
8970 analyzed does not require an explicit body, call Check_Completion.
8971 (May_Need_Implicit_Body): An implicit body is required when a package
8972 spec contains the declaration of a remote access-to-classwide type.
8973 (Analyze_Package_Body): If the package contains RACWs, append the
8974 pending subprogram bodies generated by exp_dist at the end of the body.
8975 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
8976 Is_Abstract_Subprogram and Is_Abstract_Type.
8977 (Preserve_Full_Attributes): The full entity list is not an attribute
8978 that must be preserved from full to partial view.
8980 * sem_dist.adb (Add_RAS_Dereference_TSS):
8981 Change primitive name to _Call so it cannot clash with any legal
8982 identifier, and be special-cased in Check_Completion.
8983 Mark the full view of the designated type for the RACW associated with
8984 a RAS as Comes_From_Source to get proper view switching when installing
8985 private declarations.
8986 Provite a placeholder nested package body along with the nested spec
8987 to have a place for Append_RACW_Bodies to generate the calling stubs
8988 and stream attributes.
8990 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8991 Robert Dewar <dewar@adacore.com>
8993 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
8994 that is a limited view, check the non-limited view if available.
8995 (Undefined): Refine error message for missing with of Text_IO
8996 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
8997 to distinguish real missing with cases.
8998 Fix format of all missing with messages
8999 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
9000 renaming as body when renamed entity is abstract.
9002 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9003 Javier Miranda <miranda@adacore.com>
9005 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
9006 predicate recursive, to handle complex expressions on literals whose
9007 spurious ambiguity comes from the abstract interpretation of some
9009 (Interface_Present_In_Ancestor): Add support to concurrent record
9011 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
9012 Is_Abstract_Subprogram and Is_Abstract_Type.
9014 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9015 Javier Miranda <miranda@adacore.com>
9017 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
9018 dereference of a local object R created as a reference to another
9019 object O, use the access level of O.
9020 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
9021 rather than local Same_Formal_Type, to check whether protected operation
9022 overrides an inherited one.
9023 (Same_Formal_Type): New predicate, used when matching signatures of
9024 overriding synchronized operations, to handle the case when a formal
9025 has a type that is a generic actual.
9026 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
9027 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
9028 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
9029 syntactic ambiguities involving indexing of function calls that return
9031 (Abstract_Interface_List): New subprogram that returns the list of
9032 abstract interfaces associated with a concurrent type or a
9033 concurrent record type.
9034 (Interface_Present_In_Parent): New subprogram used to check if a
9035 given type or some of its parents implement a given interface.
9036 (Collect_Abstract_Interfaces): Add support for concurrent types
9037 with interface types.
9038 (Has_Abstract_Interfaces): Add support for concurrent types with
9040 (Is_Parent): New subprogram that determines whether E1 is a parent
9041 of E2. For a concurrent type its parent is the first element of its
9042 list of interface types; for other types this function provides the
9043 same result than Is_Ancestor.
9044 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
9045 (Collect_Synchronized_Interfaces): Removed because the subprogram
9046 Collect_Abstract_Interfaces provides this functionality.
9047 (Collect_Abstract_Interfaces): Minor update to give support to
9048 concurrent types and thus avoid undesired code duplication.
9049 (Get_Subprogram_Entity): Handle entry calls.
9050 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
9052 (Enter_Name): Do not give -gnatwh hiding warning for record component
9053 entities, they never result in hiding.
9055 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9056 Robert Dewar <dewar@adacore.com>
9058 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
9059 to chain nested components that are allocators for access discriminants
9060 of the enclosing object.
9061 Add N_Push and N_Pop nodes
9062 New field Exception_Label added
9063 (Local_Raise_Statements): New field in N_Exception_Handler_Node
9064 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
9065 (Is_Coextension): New flag for allocators, to mark allocators that
9066 correspond to access discriminants of dynamically allocated objects.
9067 (N_Block_Statement): Document the fact that the corresponding entity
9068 can be an E_Return_Statement.
9069 (Is_Coextension): New flag for allocators.
9070 Remove all code for DSP option
9072 * sprint.ads, sprint.adb: Display basic information for class_wide
9073 subtypes. Add handling of N_Push and N_Pop nodes
9075 2007-04-06 Arnaud Charlet <charlet@adacore.com>
9077 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
9078 before propagating exception.
9080 2007-04-06 Olivier Hainque <hainque@adacore.com>
9082 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
9083 an address always within the call instruction from a return address.
9085 2007-04-06 Olivier Hainque <hainque@adacore.com>
9086 Eric Botcazou <botcazou@adacore.com>
9088 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
9089 expression with a COMPOUND_EXPR including the call instead of emitting
9090 the call directly here.
9091 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
9092 high bound is constant and the slice is empty. Tidy.
9093 (tree_transform, case N_Op_Not): Handle properly the case where the
9094 operation applies to a private type whose full view is a modular type.
9095 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
9096 Address_Clause, use the associated Expression as the GNAT tree
9097 representing the choice value to ensure the corresponding GCC tree is
9099 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
9100 instead of just the operands, as the base GCC stabilize_reference does.
9101 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
9102 requested; otherwise fail.
9103 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
9105 2007-04-06 Thomas Quinot <quinot@adacore.com>
9107 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
9108 implementation of UI_Div.
9109 (UI_Div): Reimplement as a call to UI_Div_Rem.
9110 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
9111 remainder, avoiding the cost of a multiplication and a subtraction.
9112 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
9113 provides both quotient and remainder in a single computation.
9114 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
9116 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
9117 is undefined if the given n is not inversible.
9119 2007-04-06 Olivier Hainque <hainque@adacore.com>
9121 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
9122 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
9125 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9126 Olivier Hainque <hainque@adacore.com>
9128 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
9129 when updating the contents of the old pointer to an unconstrained array.
9130 (end_subprog_body): Set error_gnat_node to Empty.
9131 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
9132 (unchecked_convert): For subtype to base type conversions, require that
9133 the source be a subtype if it is an integer type.
9134 (builtin_decls): New global, vector of available builtin functions.
9135 (gnat_pushdecl): Add global builtin function declaration nodes to the
9137 (gnat_install_builtins): Adjust comments.
9138 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
9139 calling gnat_pushdecl, so that it knows when it handed a builtin
9140 function declaration node.
9141 (builtin_decl_for): Search the builtin_decls list.
9143 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9145 * s-stchop-vxworks.adb:
9146 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
9148 2007-04-06 Robert Dewar <dewar@adacore.com>
9149 Arnaud Charlet <charlet@adacore.com>
9151 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
9153 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
9155 Add mention of -Sev (set initialize_scalars option from environment
9156 variable at run time) in gnatbind usage message.
9158 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
9160 * fname-uf.ads: Minor comment fix
9162 * osint.ads: Change pragma Elaborate to Elaborate_All
9164 * par-load.adb: Add documentation.
9166 * sem_cat.ads, sem_cat.adb: Minor code reorganization
9168 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
9170 * s-secsta.ads: Extra comments
9172 * s-soflin.ads: Minor comment fixes
9174 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
9176 * s-wchcon.ads: Minor comment addition
9178 * treepr.adb: Minor change in message
9179 (Print_Name,Print_Node): Make these debug printouts more robust: print
9180 "no such..." instead of crashing on bad input.
9182 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
9184 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
9185 instead of gnat_signed_or_unsigned_type.
9186 * utils.c (gnat_signed_or_unsigned_type): Remove.
9187 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
9188 * gigi.h (gnat_signed_or_unsigned_type): Remove
9190 2007-03-09 Roger Sayle <roger@eyesopen.com>
9192 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
9193 fold with the result of buildN.
9194 * decl.c (gnat_to_gnu_entity): Likewise.
9195 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
9196 * utils.c (finish_record_type, merge_sizes, max_size, convert):
9198 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
9199 nonbinary_modular_operation, build_binary_op, build_unary_op,
9200 build_cond_expr): Likewise.
9202 * utils.c (convert): Use fold_build1 when casting values to void.
9203 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
9204 fold_convert instead of convert when appropriate.
9206 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
9208 * Make-lang.in: Add install-pdf target as copied from
9209 automake v1.10 rules.
9211 2007-02-28 Andreas Schwab <schwab@suse.de>
9213 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
9214 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
9215 (doc/gnat-style.info): Likewise.
9217 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
9219 * gnat-style.texi: Standardize title page.
9220 * gnat_rm.texi: Likewise.
9221 * gnat_ugn.texi: Likewise.
9223 2007-02-25 Mark Mitchell <mark@codesourcery.com>
9225 * decl.c (annotate_value): Adjust for refactoring of tree_map
9228 2007-02-24 Mark Mitchell <mark@codesourcery.com>
9230 * decl.c (annotate_value): Adjust for refactoring of tree_map
9233 2007-02-21 Ed Schonberg <schonberg@adacore.com>
9236 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
9237 untagged derived type, add hidden components to keep discriminant
9238 layout consistent, when a given discriminant of the derived type
9239 constraints several discriminants of the parent type.
9241 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
9242 Sandra Loosemore <sandra@codesourcery.com>
9244 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
9245 build the call expression.
9246 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
9247 * utils.c (max_size) <tcc_exceptional>: Delete.
9248 <tcc_vl_exp>: New case.
9249 <tcc_expression>: Delete CALL_EXPR subcase.
9250 (build_global_cdtor): Use build_call_nary instead of build3.
9251 * utils2.c (build_call_1_expr): Likewise.
9252 (build_call_2_expr): Likewise.
9253 (build_call_0_expr): Likewise.
9254 (build_call_alloc_dealloc): Likewise.
9256 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
9258 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9259 get_action_description_for): Replace _Unwind_Word with _uleb128_t
9260 and _Unwind_SWord with _sleb128_t.
9262 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
9264 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
9265 * decl.c: Include gt-ada-decl.h.
9266 (annotate_value_cache): New.
9267 (annotate_value): Use it instead of TREE_COMPLEXITY.
9269 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
9271 * misc.c, utils2.c: Fix comment typos.
9273 2007-01-24 Roger Sayle <roger@eyesopen.com>
9275 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
9276 TREE_CONSTANT_OVERFLOW.
9277 (allocatable_size_p, annotate_value): Likewise.
9278 * trans.c (gnat_to_gnu): Likewise.
9279 * utils.c (unchecked_convert): Likewise.
9280 * utils2.c (build_simple_component_ref): Likewise.
9282 2007-01-23 Richard Guenther <rguenther@suse.de>
9285 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
9286 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
9287 (gnatboot3): Likewise.
9288 (GNATBIND): Do not define.
9289 * Makefile.in (GNATBIND): Do not define.
9291 2007-01-08 Richard Guenther <rguenther@suse.de>
9293 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
9294 * trans.c (gnat_to_gnu): Likewise.
9296 2006-12-07 Geoffrey Keating <geoffk@apple.com>
9298 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
9299 * adaint.c: Likewise.
9301 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
9303 Merge from gimple-tuples-branch:
9304 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
9306 * ada-tree.h (lang_tree_node): Handle gimple tuples.
9307 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
9310 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
9312 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
9313 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
9316 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
9319 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
9320 if the initializer takes into account the padding.
9322 2006-11-11 Richard Guenther <rguenther@suse.de>
9324 * trans.c (maybe_stabilize_reference): Remove handling of
9325 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
9327 2006-11-05 Arnaud Charlet <charlet@adacore.com>
9330 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
9331 (To_Target_Priority): New function.
9333 2006-10-31 Robert Dewar <dewar@adacore.com>
9335 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
9336 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
9337 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
9338 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
9339 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
9340 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
9341 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
9342 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
9343 a-szbzha.adb: Minor reformatting. Fix header.
9345 * a-numaux-x86.adb: Add parentheses for use of unary minus
9346 * a-ngcefu.adb: Supply missing parentheses for unary minus
9347 * a-ngcoty.adb: Add parens for use of unary minus
9348 * a-ngelfu.adb: Add missing parens for unary minus
9349 * a-tifiio.adb: Add parentheses for uses of unary minus
9351 2006-10-31 Robert Dewar <dewar@adacore.com>
9352 Bob Duff <duff@adacore.com>
9353 Ed Schonberg <schonberg@adacore.com>
9355 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
9356 with multiplying operator.
9357 (Expected_Type_Is_Any_Real): New function to determine from the Parent
9358 pointer whether the context expects "any real type".
9359 (Resolve_Arithmetic_Op): Do not give an error on calls to the
9360 universal_fixed "*" and "/" operators when they are used in a context
9361 that expects any real type. Also set the type of the node to
9362 Universal_Real in this case, because downstream processing requires it
9363 (mainly static expression evaluation).
9364 Reword some continuation messages
9365 Add some \\ sequences to continuation messages
9366 (Resolve_Call): Refine infinite recursion case. The test has been
9367 sharpened to eliminate some false positives.
9368 Check for Current_Task usage now includes entry barrier, and is now a
9369 warning, not an error.
9370 (Resolve): If the call is ambiguous, indicate whether an interpretation
9371 is an inherited operation.
9372 (Check_Aggr): When resolving aggregates, skip associations with a box,
9373 which are priori correct, and will be replaced by an actual default
9374 expression in the course of expansion.
9375 (Resolve_Type_Conversion): Add missing support for conversion from
9376 a class-wide interface to a tagged type. Minor code cleanup.
9377 (Valid_Tagged_Converion): Add support for abstact interface type
9379 (Resolve_Selected_Component): Call Generate_Reference here rather than
9380 during analysis, and use May_Be_Lvalue to distinguish read/write.
9381 (Valid_Array_Conversion): New procedure, abstracted from
9382 Valid_Conversion, to incorporate accessibility checks for arrays of
9383 anonymous access types.
9384 (Valid_Conversion): For a conversion to a numeric type occurring in an
9385 instance or inlined body, no need to check that the operand type is
9386 numeric, since this has been checked during analysis of the template.
9387 Remove legacy test for scope name Unchecked_Conversion.
9389 * sem_res.ads: Minor reformatting
9391 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
9392 (PE_Current_Task_In_Entry_Body): New exception code
9393 (SE_Restriction_Violation): Removed, not used
9395 * a-except.ads: Update comments.
9397 * types.h, types.ads: Add definition for Validity_Check
9398 (PE_Current_Task_In_Entry_Body): New exception code
9399 (SE_Restriction_Violation): Removed, not used
9401 2006-10-31 Thomas Quinot <quinot@adacore.com>
9403 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
9406 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9407 Jose Ruiz <ruiz@adacore.com>
9409 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
9410 part of Ada.Calendar: all subprogram raise Unimplemented.
9411 (Split_W_Offset): Temp function body, raising Unimplemented
9413 * a-calend.ads, a-calend-vms.ads:
9414 Add imported variable Invalid_TZ_Offset used to designate targets unable
9415 to support time zones.
9416 (Unimplemented): Temporary function raised by the body of new
9418 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
9419 unit provides handling of leap seconds and is used by the new Ada 2005
9420 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
9421 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
9422 version returns an extra value which is the offset to UTC.
9424 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
9425 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
9426 (Split_W_Offset): New function body.
9427 (Time_Of): When a date is close to UNIX epoch, compute the time for
9428 that date plus one day (that amount is later substracted after
9429 executing mktime) so there are no problems with time zone adjustments.
9431 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
9433 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
9434 a-catizo.ads, a-catizo.adb: New files.
9436 * impunit.adb: Add new Ada 2005 entries
9438 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
9439 Rename all occurences of "__gnat_localtime_r" to
9440 "__gnat_localtime_tzoff".
9441 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
9442 zone data and calculate the GMT offset.
9443 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
9444 Use the field "tm_gmtoff" to extract the GMT offset.
9445 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
9446 the external variable "timezone" to calculate the GMT offset.
9448 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9449 Jose Ruiz <ruiz@adacore.com>
9451 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
9452 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
9453 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
9454 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
9455 System.Any_Priority to a POSIX priority on the target.
9457 * system-linux-ia64.ads:
9458 Extend range of Priority types on Linux to use the whole range made
9459 available by the system.
9461 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
9462 function maps from System.Any_Priority to a POSIX priority on the
9464 (PTHREAD_PRIO_PROTECT): Set real value.
9465 (PTHREAD_PRIO_INHERIT): Now a function.
9466 (SIGCPUFAIL): New signal.
9467 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
9468 are documented as reserved by the OS.
9470 * system-aix.ads: Use the full range of priorities provided by the
9473 * s-taprop-posix.adb: Call new function To_Target_Priority.
9474 (Set_Priority): Take into account Task_Dispatching_Policy and
9475 Priority_Specific_Dispatching pragmas when determining if Round Robin
9476 must be used for scheduling the task.
9478 * system-linux-x86_64.ads, system-linux-x86.ads,
9479 system-linux-ppc.ads: Extend range of Priority types on Linux to use
9480 the whole range made available by the system.
9482 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
9483 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
9484 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
9485 when deallocating the TCB in order to avoid potential references to
9487 (Set_Priority): Take into account Task_Dispatching_Policy and
9488 Priority_Specific_Dispatching pragmas when determining if Round Robin
9489 or FIFO within priorities must be used for scheduling the task.
9491 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
9492 the Thread field (to be used internally by the run-time system) and the
9493 kernel-level task id in the LWP field (to be used by the debugger).
9494 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
9495 instance, and propagate the current task options to the spawned task.
9496 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
9497 (Initialize): Set Round Robin dispatching when the corresponding pragma
9500 2006-10-31 Robert Dewar <dewar@adacore.com>
9502 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
9503 system-linux-hppa.ads, system-hpux-ia64.ads,
9504 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
9505 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9506 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
9507 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
9508 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
9509 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
9510 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
9511 Default_Bit_Order) to kill constant condition warnings for references
9514 2006-10-31 Vincent Celier <celier@adacore.com>
9515 Eric Botcazou <ebotcazou@adacore.com>
9517 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
9518 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
9519 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
9520 Ext_To, when building the library file name
9522 * mlib-tgt-vxworks.adb: ditto.
9523 (Get_Target_Suffix): Add support for x86 targets.
9525 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
9527 * mlib-tgt-darwin.adb:
9528 Use Append_To, instead of Ext_To, when building the library file name
9529 (Flat_Namespace): New global variable.
9530 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
9531 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
9532 (Link_Shared_Libgcc): Delete.
9533 (Build_Dynamic_Library): Adjust for above changes.
9535 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
9537 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
9539 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
9540 (Initialize): Add type conversions required by above change.
9542 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9544 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
9545 (getpid): New body for this function that uses the underlying taskIdSelf
9546 function for VxWorks 5 and VxWorks 6 in kernel mode.
9547 (unsigned_int): New type, modular to allow logical bit operations.
9548 (taskOptionsGet): New imported function.
9550 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
9551 field to be compliant with the type used by the corresponding operating
9554 2006-10-31 Pascal Obry <obry@adacore.com>
9555 Eric Botcazou <ebotcazou@adacore.com>
9556 Vincent Celier <celier@adacore.com>
9558 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
9559 ASCII version of the registry API. This is needed as the GNAT runtime
9560 is now UNICODE by default.
9562 (get_gcc_version): Do not hardcode the return value.
9563 (__gnat_file_time_name): On Windows properly set the default returned
9564 value to -1 which corresponds to Invalid_Time.
9565 (__gnat_fopen): New routine. A simple wrapper on all plateforms
9566 except on Windows where it does conversion for unicode support.
9567 (__gnat_freopen): Idem.
9568 (__gnat_locate_exec_on_path): If environment variable PATH does not
9569 exist, return a NULL pointer
9571 * adaint.h: (__gnat_fopen): Declare.
9572 (__gnat_freopen): Likewise.
9574 * mingw32.h (_tfreopen): Define this macro here for older MingW
9576 Activate the unicode support on platforms using a MingW runtime
9577 version 3.9 or newer.
9579 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
9580 This is needed for proper unicode support on Windows.
9583 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
9584 Nicolas Setton <setton@adacore.com>
9585 Olivier Hainque <hainque@adacore.com>
9586 Gary Dismukes <dismukes@adacore.com>
9588 * gigi.h: (tree_code_for_record_type): Declare.
9589 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
9590 (get_global_renaming_pointers): Rename to
9591 invalidate_global_renaming_pointers.
9592 (static_ctors): Delete.
9593 (static_dtors): Likewise.
9594 (gnat_write_global_declarations): Declare.
9595 (create_var_decl): Adjust descriptive comment to indicate that the
9596 subprogram may return a CONST_DECL node.
9597 (create_true_var_decl): Declare new function, similar to
9598 create_var_decl but forcing the creation of a VAR_DECL node.
9599 (get_global_renaming_pointers): Declare.
9600 (add_global_renaming_pointer): Likewise.
9602 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
9604 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
9605 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
9607 (gnat_to_gnu_entity): Remove From_With_Type from computation for
9609 <E_Access_Type>: Use the Non_Limited_View as the full view of the
9610 designated type if the pointer comes from a limited_with clause. Make
9611 incomplete designated type if it is in the main unit and has a freeze
9613 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
9614 Underlying_Full_View similarly. Return earlier if the full view already
9615 has an associated tree.
9616 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
9617 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
9618 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
9619 reference type built for objects with an address clause.
9620 Use create_true_var_decl with const_flag set for
9621 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
9623 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
9624 for Character and Wide_Character types. This info is read by the
9625 dwarf-2 writer, and is needed to be able to use the command "ptype
9626 character" in the debugger.
9627 (gnat_to_gnu_entity): When generating a type representing
9628 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
9629 so that debug writers can distinguish it from ordinary integers.
9630 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
9631 addition to TREE_READONLY to assert the constantness of variables for
9632 elaboration purposes.
9633 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
9634 parameters to call new Einfo function First_Formal_With_Extras.
9635 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
9636 protected type with its corresponding discriminant, to obtain a usable
9638 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
9639 for a multiple elaboration of the "equivalent" type.
9640 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
9641 into record_global_renaming_pointer.
9642 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
9643 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
9644 <E_Array_Subtype>: Likewise.
9645 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
9646 incomplete subtypes and incomplete subtypes of incomplete types visible
9647 through a limited with clause.
9648 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
9649 the base index type for the maximum size of the array only if they are
9651 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
9652 expression into a SAVE_EXPR if stabilization failed.
9654 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
9655 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
9656 by lower level compilation passes.
9657 (gnat_genericize): New function, lowering a function body to GENERIC.
9658 Turn the type of RESULT_DECL into a real reference type if the decl
9659 has been marked DECL_BY_REFERENCE, and adjust references to the latter
9661 (gnat_genericize_r): New function. Tree walking callback for
9663 (convert_from_reference, is_byref_result): New functions. Helpers for
9665 (create_type_decl): Call gnat_pushdecl before calling
9666 rest_of_decl_compilation, to make sure that field TYPE_NAME of
9667 type_decl is properly set before calling the debug information writers.
9668 (write_record_type_debug_info): The heuristics which compute the
9669 alignment of a field in a variant record might not be accurate. Add a
9670 safety test to make sure no alignment is set to a smaller value than
9671 the alignment of the field type.
9672 (make_dummy_type): Use the Non_Limited_View as the underlying type if
9673 the type comes from a limited_with clause. Do not loop on the full view.
9674 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
9675 (dummy_node_table): New global variable, moved from decl.c.
9676 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
9677 (save_gnu_tree): Use above macros.
9678 (get_gnu_tree): Likewise.
9679 (present_gnu_tree): Likewise.
9680 (init_dummy_type): New function, moved from decl.c. Use above macros.
9681 (make_dummy_type): Likewise.
9682 (tree_code_for_record_type): New function extracted from make_dummy_type
9683 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
9684 (static_ctors): Change it to a vector, make static.
9685 (static_dtors): Likewise.
9686 (end_subprog_body): Adjust for above change.
9687 (build_global_cdtor): Moved from trans.c.
9688 (gnat_write_global_declarations): Emit global constructor and
9689 destructor, and call cgraph_optimize before emitting debug info for
9690 global declarations.
9691 (global_decls): New global variable.
9692 (gnat_pushdecl): Store the global declarations in global_decls, for
9694 (gnat_write_global_declarations): Emit debug information for global
9696 (create_var_decl_1): Former create_var_decl, with an extra argument to
9697 state whether the creation of a CONST_DECL is allowed.
9698 (create_var_decl): Behavior unchanged. Now a wrapper around
9699 create_var_decl_1 allowing CONST_DECL creation.
9700 (create_true_var_decl): New function, similar to create_var_decl but
9701 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
9702 (create_field_decl): Do not always mark the field as addressable
9703 if its type is an aggregate.
9704 (global_renaming_pointers): New static variable.
9705 (add_global_renaming_pointer): New function.
9706 (get_global_renaming_pointers): Likewise.
9708 * misc.c (gnat_dwarf_name): New function.
9709 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
9710 (gnat_post_options): Add comment about structural alias analysis.
9711 (gnat_parse_file): Do not call cgraph_optimize here.
9712 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
9714 * trans.c (process_freeze_entity): Don't abort if we already have a
9715 non dummy GCC tree for a Concurrent_Record_Type, as it might
9716 legitimately have been elaborated while processing the associated
9717 Concurrent_Type prior to this explicit freeze node.
9718 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
9719 exception handler volatile if it is of variable size.
9720 (process_type): Remove bypass for types coming from a limited_with
9722 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
9723 actual, convert the corresponding gnu_actual to the real destination
9724 type when necessary.
9725 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
9726 originally TREE_READONLY but whose elaboration cannot be performed
9728 Part of fix for F504-021.
9729 (tree_transform, subprogram cases): Change loops on formal parameters to
9730 call new Einfo function First_Formal_With_Extras.
9731 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
9732 stemming from type conversion for the lhs.
9733 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
9734 number of bits per unit for components of records.
9735 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
9736 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
9737 with At_End_Proc after the SJLJ EH cleanup.
9738 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
9740 (elaborate_all_entities): Do not retest type_annotate_only.
9741 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
9742 result type of an abstract subprogram, which may be an itype associated
9743 with an anonymous access result (related to AI-318-02).
9744 (build_global_cdtor): Move to utils.c.
9745 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
9746 this choice is not a null tree nor an integer constant.
9747 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
9748 on the body of elaboration routines instead of mark_unvisited.
9749 (add_stmt): Do not mark the tree.
9750 (add_decl_expr): Tweak comment.
9751 (mark_unvisited): Delete.
9752 (unshare_save_expr): New static function.
9753 (call_to_gnu): Issue an error when making a temporary around a
9754 procedure call because of non-addressable actual parameter if the
9755 type of the formal is by_reference.
9756 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
9757 after building the elaboration routine.
9759 2006-10-31 Bob Duff <duff@adacore.com>
9761 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
9762 as finalization-started, so we can raise Program_Error on 'new'.
9764 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
9765 collection has already started.
9767 * s-finimp.ads (Collection_Finalization_Started): Added new special
9768 flag value for indicating that a collection's finalization has started.
9770 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
9771 create a task whose master has already waited for dependent tasks.
9773 2006-10-31 Robert Dewar <dewar@adacore.com>
9775 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
9777 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
9778 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
9779 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
9780 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
9781 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
9782 a-except-2005.ads: Add pragma Preelaborable_Warning
9784 2006-10-31 Robert Dewar <dewar@adacore.com>
9785 Jose Ruiz <ruiz@adacore.com>
9787 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
9789 * ali.adb (Get_Name): Properly handle scanning of wide character names
9790 encoded with brackets notation.
9791 (Known_ALI_Lines): Add S lines to this list.
9792 (Scan_ALI): Acquire S (priority specific dispatching) lines.
9793 New flag Elaborate_All_Desirable in unit table
9795 * ali.ads (Priority_Specific_Dispatching): Add this range of
9796 identifiers to be used for Priority_Specific_Dispatching table entries.
9797 (ALIs_Record): Add First_Specific_Dispatching and
9798 Last_Specific_Dispatching that point to the first and last entries
9799 respectively in the priority specific dispatching table for this unit.
9800 (Specific_Dispatching): Add this table for storing each S (priority
9801 specific dispatching) line encountered in the input ALI file.
9802 New flag Elaborate_All_Desirable in unit table
9804 * bcheck.adb: (Check_Configuration_Consistency): Add call to
9805 Check_Consistent_Dispatching_Policy.
9806 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
9807 verifying that the use of Priority_Specific_Dispatching,
9808 Task_Dispatching_Policy, and Locking_Policy is consistent across the
9811 * bindgen.adb: (Public_Version_Warning): function removed.
9812 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
9813 required information from ALI files in order to initialize the table
9814 containing the specific dispatching policy.
9815 (Gen_Adainit_Ada): Generate the variables required for priority specific
9816 dispatching entries (__gl_priority_specific_dispatching and
9817 __gl_num_specific_dispatching).
9818 (Gen_Adainit_C): Generate the variables required for priority specific
9819 dispatching entries (__gl_priority_specific_dispatching and
9820 __gl_num_specific_dispatching).
9821 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
9823 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
9824 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
9826 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
9827 a call to gnat_set_globals.
9828 Generate a string containing settings from
9829 Priority_Specific_Dispatching pragma entries.
9830 (Gen_Object_Files_Options): Do not include the runtime libraries when
9831 pragma No_Run_Time is specified.
9833 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
9834 consistency with s-intman-posix.adb.
9835 (__gnat_error_handler, case FreeBSD): Account for the fact that the
9836 handler is installed with SA_SIGINFO.
9837 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
9838 FreeBSD ZCX support, copied from Linux version.
9839 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
9840 sigfillset, and sigemptyset so the routines defined by MaRTE.
9841 (__gl_priority_specific_dispatching): Add this variable that stores the
9842 string containing priority specific dispatching policies in the
9844 (__gl_num_specific_dispatching): Add this variable that indicates the
9845 highest priority for which a priority specific dispatching pragma
9847 (__gnat_get_specific_dispatching): Add this routine that returns the
9848 priority specific dispatching policy, as set by a
9849 Priority_Specific_Dispatching pragma appearing anywhere in the current
9850 partition. The input argument is the priority number, and the result
9851 is the upper case first character of the policy name.
9852 (__gnat_set_globals): Now a dummy function.
9853 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
9854 mechargs instead of sigargs, as the latter can be retrieved from the
9855 former and sigargs is not what we want on ia64.
9856 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
9858 (__gnat_adjust_context_for_raise, ia64-vms): New function.
9859 (tasking_error): Remove unused symbol.
9860 (_abort_signal): Move this symbol to the IRIX specific part since this
9861 is the only target that uses this definition.
9862 (Check_Abort_Status): Move this symbol to the IRIX specific part since
9863 this is the only target that uses this definition.
9864 (Lock_Task): Remove unused symbol.
9865 (Unlock_Task): Remove unused symbol.
9867 * lib-writ.adb (Write_ALI): Output new S lines for
9868 Priority_Specific_Dispatching pragmas.
9869 Implement new flag BD for elaborate body desirable
9871 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
9872 (Specific_Dispatching): Add this table for storing the entries
9873 corresponding to Priority_Specific_Dispatching pragmas.
9874 Document new BD flag for elaborate body desirable
9876 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
9879 2006-10-31 Javier Miranda <miranda@adacore.com>
9881 * a-tags.ads, a-tags.adb:
9882 (Predefined_DT): New function that improves readability of the code.
9883 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
9884 Inherit_DT): Use the new function Predefined_DT to improve code
9886 (Register_Interface_Tag): Update assertion.
9887 (Set_Interface_Table): Update assertion.
9888 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
9889 determining progenitor interfaces in Tags.
9890 (Inherit_CPP_DT): New subprogram.
9892 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
9893 analysis of the thunk code.
9894 (Expand_Interface_Conversion): Handle run-time conversion of
9895 access to class wide types.
9896 (Expand_Dispatching_Call): When generating the profile for the
9897 subprogram itype for a dispatching operation, properly terminate the
9898 formal parameters chaind list (set the Next_Entity of the last formal
9900 (Collect_All_Interfaces): Removed. This routine has been moved to
9901 sem_util and renamed as Collect_All_Abstract_Interfaces.
9902 (Set_All_DT_Position): Hidden entities associated with abstract
9903 interface primitives are not taken into account in the check for
9904 3.9.3(10); this check is done with the aliased entity.
9905 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
9906 interfacing with CPP by default.
9907 (Expand_Interface_Conversion): Add missing support for static conversion
9908 from an interface to a tagged type.
9909 (Collect_All_Interfaces): Add new out formal containing the list of
9910 abstract interface types to cleanup the subprogram Make_DT.
9911 (Make_DT): Update the code to generate the table of interfaces in case
9912 of abstract interface types.
9913 (Is_Predefined_Dispatching_Alias): New function that returns true if
9914 a primitive is not a predefined dispatching primitive but it is an
9915 alias of a predefined dispatching primitive.
9916 (Make_DT): If the ancestor of the type is a CPP_Class and we are
9917 compiling under full ABI compatibility mode we avoid the generation of
9918 calls to run-time services that fill the dispatch tables because under
9919 this mode we currently inherit the dispatch tables in the IP subprogram.
9920 (Write_DT): Emit an "is null" indication for a null procedure primitive.
9921 (Expand_Interface_Conversion): Use an address as the type of the formal
9922 of the internally built function that handles the case in which the
9923 target type is an access type.
9925 2006-10-31 Robert Dewar <dewar@adacore.com>
9927 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
9929 2006-10-31 Robert Dewar <dewar@adacore.com>
9931 * bindusg.ads, bindusg.adb:
9932 Change to package and rename procedure as Display, which
9933 now ensures that it only outputs usage information once.
9935 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9937 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
9940 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
9943 2006-10-31 Robert Dewar <dewar@adacore.com>
9944 Ed Schonberg <schonberg@adacore.com>
9946 * treepr.adb: Use new subtype N_Membership_Test
9948 * checks.ads, checks.adb: Add definition for Validity_Check
9949 (Range_Or_Validity_Checks_Suppressed): New function
9950 (Ensure_Valid): Test Validity_Check suppressed
9951 (Insert_Valid_Check): Test Validity_Check suppressed
9952 (Insert_Valid_Check): Preserve Do_Range_Check flag
9953 (Validity_Check_Range): New procedure
9954 (Expr_Known_Valid): Result of membership test is always valid
9955 (Selected_Range_Checks): Range checks cannot be applied to discriminants
9956 by themselves. Disabling those checks must also be done for task types,
9957 where discriminants may be used for the bounds of entry families.
9958 (Apply_Address_Clause_Check): Remove side-effects if address expression
9959 is non-static and is not the name of a declared constant.
9960 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
9961 Code cleanup and new error messages.
9962 (Enable_Range_Check): Test for some cases of suppressed checks
9963 (Generate_Index_Checks): Suppress index checks if index checks are
9964 suppressed for array object or array type.
9965 (Apply_Selected_Length_Checks): Give warning for compile-time detected
9966 length check failure, even if checks are off.
9967 (Ensure_Valid): Do not generate a check on an indexed component whose
9968 prefix is a packed boolean array.
9969 * checks.adb: (Alignment_Checks_Suppressed): New function
9970 (Apply_Address_Clause_Check): New procedure, this is a completely
9971 rewritten replacement for Apply_Alignment_Check
9972 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
9973 we request a discriminal value only in case of discriminants.
9974 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
9975 assignments where the target subtype is unconstrained and the target
9976 object is a parameter or dereference (other aliased cases are known
9977 to be unconstrained).
9979 2006-10-31 Robert Dewar <dewar@adacore.com>
9981 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
9982 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
9983 vms_conv.adb: Fix bad table increment values (much too small)
9985 * table.adb (Realloc): Make sure we get at least some new elements
9986 Defends against silly small values for table increment
9988 2006-10-31 Robert Dewar <dewar@adacore.com>
9989 Ed Schonberg <schonberg@adacore.com>
9990 Bob Duff <duff@adacore.com>
9992 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
9993 entities. Move other fields around to make this possible
9994 (Is_Derived_Type): Add missing call to Is_Type.
9995 (Extra_Formals): New function for subprograms, entries, subprogram
9997 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
9998 (First_Formal_With_Extras): New function for subprogs, entries, subp
10000 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
10001 Add node information for E_Return_Statement.
10002 (Elaborate_Body_Desirable): New flag
10003 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
10004 to be Is_Inherently_Limited_Type, because return-by-reference has
10005 no meaning in Ada 2005.
10006 (E_Return_Statement): New entity kind.
10007 (Return_Applies_To): Field of E_Return_Statement.
10008 (Is_Return_Object): New flag in object entities.
10009 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
10010 (Must_Have_Preelab_Init): New flag
10011 (Known_To_Have_Preelab_Init): New flag
10012 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
10013 (Is_Visible_Formal): New flag on entities in formal packages.
10014 (Low_Bound_Known): New flag
10015 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
10017 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
10018 output when Id is an incomplete subtype.
10020 2006-10-31 Robert Dewar <dewar@adacore.com>
10022 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
10023 Avoid abbreviation Creat
10024 (Finalize): List all sources in extended mail source if -gnatl
10026 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
10027 (Finalize): Implement new -gnatl=xxx switch to output listing to file
10028 (Set_Specific_Warning_On): New procedure
10029 (Set_Specific_Warning_Off): New procedure
10030 Add implementation of new insertion \\
10031 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
10032 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
10034 (Error_Msg_Internal): Make sure that we set Last_Killed to
10035 True when a message from another package is suppressed.
10036 Implement insertion character ~ (insert string)
10037 (First_Node): Minor adjustments to get better placement.
10040 Implement new -gnatl=xxx switch to output listing to file
10043 Implement new -gnatl=xxx switch to output listing to file
10045 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
10046 (Commands_To_Stdout): New flag
10047 Implement new -gnatl=xxx switch to output listing to file
10048 New switch Dump_Source_Text
10049 (Warn_On_Deleted_Code): New warning flag for -gnatwt
10050 Define Error_Msg_Line_Length
10051 (Warn_On_Assumed_Low_Bound): New switch
10053 * osint.ads, osint.adb
10054 (Normalize_Directory_Name): Fix bug.
10055 Implement new -gnatl=xxx switch to output listing to file
10056 (Concat): Removed, replaced by real concatenation
10057 Make use of concatenation now allowed in compiler
10058 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
10059 we find the 'lib' or 'bin' directory even when the tool has been
10060 invoked with a relative path.
10061 (Executable_Name): New function taking string parameters.
10063 * osint-c.ads, osint-c.adb:
10064 Implement new -gnatl=xxx switch to output listing to file
10066 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
10069 Implement new -gnatl=xxx switch to output listing to file
10070 Recognize new -gnatL switch
10071 (no longer keep in old warning about old style usage)
10072 Use concatenation to simplify code
10073 Recognize -gnatjnn switch
10074 (Scan_Front_End_Switches): Clean up handling of -gnatW
10075 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
10077 2006-10-31 Robert Dewar <dewar@adacore.com>
10079 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
10080 (Set_Specific_Warning_Off): New procedure
10081 (Warning_Specifically_Suppressed): New function
10082 (Validate_Specific_Warnings): New procedure
10083 (Output_Msg_Text): Complete rewrite to support -gnatjnn
10085 * err_vars.ads: Implement insertion character ~ (insert string)
10087 2006-10-31 Bob Duff <duff@adacore.com>
10088 Ed Schonberg <schonberg@adacore.com>
10090 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
10091 the parent part is a build-in-place function call, generate assignments.
10092 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
10093 are build-in-place function calls.
10094 (Replace_Self_Reference): New subsidiary of
10095 Make_OK_Assignment_Statement, to replace an access attribute that is a
10096 self-reference into an access to the appropriate component of the
10097 target object. Generalizes previous mechanism to handle self-references
10098 nested at any level.
10099 (Is_Self_Referential_Init): Remove, not needed.
10100 (Is_Self_Referential_Init): New predicate to simplify handling of self
10101 referential components in record aggregates.
10102 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
10103 check for presence of entity before checking for self-reference.
10104 (Has_Default_Init_Comps): Return True if a component association is a
10105 self-reference to the enclosing type, which can only come from a
10106 default initialization.
10107 (Make_OK_Assignment_Statement): If the expression is of the form
10108 Typ'Acc, where Acc is an access attribute, the expression comes from a
10109 default initialized self-referential component.
10110 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
10111 that has been derived from several abstract interfaces we must also
10112 initialize the tags of the secondary dispatch tables.
10114 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10115 Thomas Quinot <quinot@adacore.com>
10116 Javier Miranda <miranda@adacore.com>
10117 Robert Dewar <dewar@adacore.com>
10120 (Expand_Access_To_Protected_Op): If the context indicates that an access
10121 to a local operation may be transfered outside of the object, create an
10122 access to the wrapper operation that must be used in an external call.
10123 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
10124 target, pass the Valid attribute applied to a floating-point prefix on
10125 to the back end without expansion.
10126 (Storage_Size): Use the new run-time function Storage_Size to retrieve
10127 the allocated storage when it is specified by a per-object expression.
10128 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
10129 Nothing to do here, the attribute has been rewritten during semantic
10131 (Expand_Attribute_Reference): Handle expansion of the new Priority
10133 (Find_Fat_Info): Handle case of universal real
10134 (Expand_Access_To_Protected_Op): Fix use of access to protected
10135 subprogram from inside the body of a protected entry.
10136 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
10137 'Access and 'Unrestricted_Access, to transform the attribute reference
10138 into a fat pointer.
10139 (Is_Constrained_Aliased_View): New predicate to help determine whether a
10140 subcomponent's enclosing variable is aliased with a constrained subtype.
10141 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
10142 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
10143 an aliased prefix must be known to be constrained in order to use True
10144 for the attribute value, and now it's possible for some aliased views
10145 to be unconstrained.
10147 2006-10-31 Robert Dewar <dewar@adacore.com>
10149 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
10150 (Expand_Entity_Reference): Correct error of not handling subprogram
10151 formals in current_value processing.
10153 2006-10-31 Javier Miranda <miranda@adacore.com>
10154 Robert Dewar <dewar@adacore.com>
10155 Ed Schonberg <schonberg@adacore.com>
10156 Gary Dismukes <dismukes@adacore.com>
10158 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
10159 register in the final list objects containing class-wide interfaces;
10160 otherwise we incorrectly register the tag of the interface in the final
10162 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
10163 generate the wrapper if the parent primitive is abstract. This is
10164 required to report the correct error message.
10165 (Expand_N_Subtype_Indication): Do validity checks on range
10166 (Clean_Task_Names): If an initialization procedure includes a call to
10167 initialize a task (sub)component, indicate that the procedure will use
10168 the secondary stack.
10169 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
10170 compatibility for interfacing with CPP by default.
10171 (Expand_N_Object_Declaration): Only build an Adjust call when the
10172 object's type is a nonlimited controlled type.
10173 * exp_ch3.adb: Add with and use of Exp_Ch6.
10174 (Expand_N_Object_Declaration): Check for object initialization that is a
10175 call to build-in-place function and apply Make_Build_In_Place_Call_In_
10176 Object_Declaration to the call.
10177 (Freeze_Type): When the designated type of an RACW was not frozen at the
10178 point where the RACW was declared, validate the primitive operations
10179 with respect to E.2.2(14) when it finally is frozen.
10180 (Build_Initialization_Call,Expand_Record_Controller): Rename
10181 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
10182 return-by-reference has no meaning in Ada 2005.
10183 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
10184 to register tag of the immediate ancestor interfaces in the
10185 run-time structure.
10186 (Init_Secondary_Tags): Moved to the specification to allow the
10187 initialization of extension aggregates with abstract interfaces.
10188 (Build_Master_Renaming): Make public, for use by function declarations
10189 whose return type is an anonymous access type.
10190 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
10191 Insert_List_Before_And_Analyze after the generation of the specs
10192 associated with null procedures.
10193 (Expand_Tagged_Root): Update documentation in its specification.
10194 (Init_Secondary_Tags): Update documentation.
10195 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
10196 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
10197 then generate code to inherit the contents of the dispatch table
10198 directly from the ancestor.
10199 (Expand_Record_Controller): Insert controller component after tags of
10200 implemented interfaces.
10201 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
10202 create null procedure overridings when null procedures are inherited
10204 (Make_Null_Procedure_Specs): New procedure to generate null procedure
10205 declarations for overriding null primitives inherited from interfaces.
10206 (Is_Null_Interface_Procedure): New function in
10207 Make_Null_Procedure_Specs.
10208 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
10209 immediate ancestor of a tagged type is an abstract interface type we
10210 must generate the specification of the predefined primitives associated
10211 with controlled types (because the dispatch table of the ancestor is
10212 null and hence these entries cannot be inherited). This is required to
10213 elaborate well the dispatch table.
10215 2006-10-31 Javier Miranda <miranda@adacore.com>
10216 Ed Schonberg <schonberg@adacore.com>
10217 Bob Duff <duff@adacore.com>
10218 Gary Dismukes <dismukes@adacore.com>
10219 Robert Dewar <dewar@adacore.com>
10221 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
10223 (Expand_N_In): Do validity checks on range
10224 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
10225 (Expand_N_Allocator): For "new T", if the object is constrained by
10226 discriminant defaults, allocate the right amount of memory, rather than
10227 the maximum for type T.
10228 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
10229 when the allocator is initialized by a build-in-place call, since the
10230 allocator is already rewritten as a reference to the function result,
10231 and this prevents an unwanted duplication of the function call.
10232 Add with and use of Exp_Ch6.
10233 (Expand_Allocator_Expresssion): Check for an allocator whose expression
10234 is a call to build-in-place function and apply
10235 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
10236 untagged designated types).
10237 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
10238 optimization if source or target is biased.
10239 (Expand_N_Allocator): Add comments for case of an allocator within a
10240 function that returns an anonymous access type designating tasks.
10241 (Expand_N_Allocator): apply discriminant checks for access
10242 discriminants of anonymous access types (AI-402, AI-416)
10244 2006-10-31 Bob Duff <duff@adacore.com>
10245 Robert Dewar <dewar@adacore.com>
10246 Gary Dismukes <dismukes@adacore.com>
10247 Ed Schonberg <schonberg@adacore.com>
10249 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
10251 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
10252 (Expand_N_Assignment_Statement): Call
10253 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
10254 build-in-place function call. Currently, this can happen only for
10255 assignments that come from aggregates.
10256 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10257 in order to alleviate the upward compatibility introduced by AI-318.
10258 (Expand_N_Extended_Return_Statement): Add support for handling the
10259 return object as a build-in-place result.
10260 (Expand_Non_Function_Return): Implement simple return statements nested
10261 within an extended return.
10262 (Enable_New_Return_Processing): Turn on the new processing of return
10264 (Expand_Non_Function_Return): For a return within an extended return,
10265 don't raise Program_Error, because Sem_Ch6 now gives a warning.
10266 (Expand_N_Extended_Return_Statement): Implement AI-318
10267 (Expand_Simple_Function_Return): Ditto.
10268 (Expand_N_If_Statement): Handle new -gnatwt warning
10269 (Expand_N_Case_Statement): Handle new -gnatwt warning
10270 (Expand_N_Assignment): Handle assignment to the Priority attribute of
10271 a protected object.
10272 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
10273 validity checking of assignments to elementary record components.
10274 (Expand_N_Return_Statement): return Class Wide types on the secondary
10275 stack independantly of their controlled status since with HIE runtimes,
10276 class wide types are not potentially controlled anymore.
10278 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
10281 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
10282 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
10283 it expects a block, procedure, or task. The return statement will get
10284 turned into a block, and Expand_Cleanup_Actions will happen then.
10286 2006-10-31 Robert Dewar <dewar@adacore.com>
10287 Ed Schonberg <schonberg@adacore.com>
10288 Bob Duff <duff@adacore.com>
10289 Gary Dismukes <dismukes@adacore.com>
10291 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
10293 (Expand_Inlined_Call): Tagged types are by-reference types, and
10294 therefore should be replaced by a renaming declaration in the expanded
10295 body, as is done for limited types.
10296 (Expand_Call): If this is a call to a function with dispatching access
10297 result, propagate tag from context.
10298 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
10300 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
10301 build-in-place when the right-hand side of an assignment is a
10302 build-in-place function call.
10303 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
10304 of the explicit dereference of the allocator to the result subtype of
10305 the build-in-place function. This is needed to satisfy type checking
10306 in cases where the caller's return object is created by an allocator for
10307 a class-wide access type and the type named in the allocator is a
10309 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
10310 conversion of the reference to the declared object to the result subtype
10311 of the build-in-place function. This is needed to satisfy type checking
10312 in cases where the declared object has a class-wide type. Also, in the
10313 class-wide case, change the type of the object entity to the specific
10314 result subtype of the function, to avoid passing a class-wide object
10315 without explicit initialization to the back end.
10316 (Register_Interface_DT_Entry): Moved outside the body of
10317 Freeze_Subprogram because this routine is now public; it is called from
10318 Check_Dispatching_Overriding to handle late overriding of abstract
10319 interface primitives.
10320 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
10321 adding an implicit access actual on a call to a build-in-place function.
10322 (Expand_Actuals): Test for an actual parameter that is a call to a
10323 build-in-place function and apply
10324 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
10325 (Is_Build_In_Place_Function): New function to determine whether an
10326 entity is a function whose calls should be handled as build-in-place.
10327 (Is_Build_In_Place_Function_Call): New function to determine whether an
10328 expression is a function call that should handled as build-in-place.
10329 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
10330 calls to build-in-place functions as the initialization of an allocator.
10331 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
10332 handling calls to build-in-place functions in contexts that do not
10333 involve init of a separate object (for example, actuals of subprogram
10335 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
10336 handling calls to build-in-place functions as the initialization of an
10337 object declaration.
10338 (Detect_Infinite_Recursion): Add explicit parameter Process to
10339 instantiation of Traverse_Body to avoid unreferenced warning.
10340 (Check_Overriding_Inherited_Interfaces): Removed.
10341 (Register_Interface_DT_Entry): Code cleanup.
10342 (Register_Predefined_DT_Entry): Code cleanup.
10343 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
10344 inlined statements if within a transient scope.
10345 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
10346 formal parameters with occurrences of actuals in inlined body, establish
10347 visibility on the proper view of the actual's subtype for the body's
10349 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
10350 compatibility mode and we have an imported CPP subprogram because
10351 for now we assume that imported CPP primitives correspond with
10352 objects whose constructor is in the CPP side (and therefore we
10353 don't need to generate code to register them in the dispatch table).
10354 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
10355 aligned selected component.
10356 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
10357 the actual of an in-mode parameter is a type conversion.
10358 (Expand_Actuals): If the call does not come from source and the actual
10359 is potentially misaligned, let gigi handle it rather than rejecting the
10360 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
10361 Class Wide types as returning by reference independantly of their
10362 controlled status since with HIE runtimes class wide types are not
10363 potentially controlled anymore.
10365 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10367 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
10368 references that are private components of the protected object.
10369 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
10370 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
10371 instantiation to deal with warnings.
10372 (Initialize_Protection): If expression for priority is non-static, use
10373 System_Priority as its expected type, in case the expression has not
10376 2006-10-31 Robert Dewar <dewar@adacore.com>
10378 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
10379 initialization of Homonym_Len.
10380 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
10381 names from fully qualified name. Fixes problem of duplicate
10382 external names differing only in the presence of such a block name.
10384 2006-10-31 Thomas Quinot <quinot@adacore.com>
10385 Pablo Oliveira <oliveira@adacore.com>
10387 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
10388 subprogram Ids, even if they are not yet assigned.
10389 (Build_Subprogram_Id): It is now this function that will take care of
10390 calling Assign_Subprogram_Ids if necessary.
10391 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
10392 should be done only once they are assigned.
10393 (Build_From_Any_Function, case of tagged types): Add missing call to
10395 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
10396 type for an RACW type.
10397 (Add_RACW_Features): When processing an RACW declaration for which the
10398 designated type is already frozen, enforce E.2.2(14) rules immediately.
10399 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
10400 special reordering of controlling formals.
10402 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
10403 associated stub type for an RACW type.
10405 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10407 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
10408 fixed-point operations in an integer context, i.e. as operands of a
10409 conversion to an integer type, indicate that result must be rounded.
10411 2006-10-31 Robert Dewar <dewar@adacore.com>
10413 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
10414 cases, pass the encoding method, since it is now required by the run
10417 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
10418 assumption that Str'First = 1.
10419 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
10420 it on to the Value_Wide_Wide_Character call.
10421 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
10422 properly handles a string of the form quote-encoded_wide_char-quote.
10424 * s-wchcnv.adb: Minor reformatting
10426 2006-10-31 Javier Miranda <miranda@adacore.com>
10428 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
10429 run-time membership test to ensure that the constructed object
10430 implements the target abstract interface.
10432 2006-10-31 Robert Dewar <dewar@adacore.com>
10434 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
10435 Machine_Attribute pragma internally to implement the user pragma.
10436 Add processing for pragma Interface so that it is now completely
10437 equivalent to pragma Import.
10439 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
10440 so that it can be applied to all entities, including record components
10441 and enumeration literals.
10442 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
10443 priority ranges are correct, verify compatibility against task
10444 dispatching and locking policies, and if everything is correct an entry
10445 is added to the table containing priority specific dispatching entries
10446 for this compilation unit.
10447 (Delay_Config_Pragma_Analyze): Delay processing
10448 Priority_Specific_Dispatching pragmas because when processing the
10449 pragma we need to access run-time data, such as the range of
10450 System.Any_Priority.
10451 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
10452 Allow pragma Unreferenced as a context item
10453 Add pragma Preelaborable_Initialization
10454 (Analyze_Pragma, case Interface): Interface is extended so that it is
10455 now syntactically and semantically equivalent to Import.
10456 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
10457 insertion characters.
10458 Add handling for Pragma_Wide_Character_Encoding
10459 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
10460 never supercedes a real restriction, and that a real restriction
10461 always supercedes a warning.
10462 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
10465 2006-10-31 Bob Duff <duff@adacore.com>
10466 Ed Schonberg <schonberg@adacore.com>
10467 Robert Dewar <dewar@adacore.com>
10469 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
10470 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
10471 Is_Inherently_Limited_Type, because return-by-reference has no meaning
10473 (Find_Node_To_Be_Wrapped): Use new method of determining the result
10474 type of the function containing a return statement, because the
10475 Return_Type field was removed. We now use the Return_Applies_To field.
10477 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
10478 (Build_Task_Image_Decl): If procedure is not called from an
10479 initialization procedure, indicate that function that builds task name
10480 uses the sec. stack. Otherwise the enclosing initialization procedure
10481 will carry the indication.
10482 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
10483 N_Object_Declaration instead.
10484 (Kill_Dead_Code): New interface to implement -gnatwt warning for
10485 conditional dead code killed, and change implementation accordingly.
10486 (Insert_Actions): Add N_Return_Object_Declaration case.
10487 Correct comment to mention N_Extension_Aggregate node.
10488 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
10489 attempts to save information for global variables which cannot be
10491 (Get_Current_Value_Condition): Handle conditions the other way round
10492 (constant on left). Also handle right operand of AND and AND THEN
10493 (Set_Current_Value_Condition): Corresponding changes
10494 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
10495 (Get_Current_Value_Condition): Handle simple boolean operands
10496 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
10497 (Get_Current_Value_Condition): If the variable reference is within an
10498 if-statement, does not appear in the list of then_statments, and does
10499 not come from source, treat it as being at unknown location.
10500 (Get_Current_Value_Condition): Enhance to allow while statements to be
10501 processed as well as if statements.
10502 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
10504 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
10505 of loop. This is safe now that we fixed Kill_Current_Values.
10506 (OK_To_Do_Constant_Replacement): Check whether current scope is
10507 Standard, before examining outer scopes.
10509 2006-10-31 Vincent Celier <celier@adacore.com>
10511 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
10512 When True, apply VMS treatment to children of packages A, G, I and S.
10515 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
10517 2006-10-31 Robert Dewar <dewar@adacore.com>
10518 Ed Schonberg <schonberg@adacore.com>
10520 * freeze.adb: Add handling of Last_Assignment field
10521 (Warn_Overlay): Supply missing continuation marks in error msgs
10522 (Freeze_Entity): Add check for Preelaborable_Initialization
10524 * g-comlin.adb: Add Warnings (Off) to prevent new warning
10526 * g-expect.adb: Add Warnings (Off) to prevent new warning
10528 * lib-xref.adb: Add handling of Last_Assignment field
10529 (Generate_Reference): Centralize handling of pragma Obsolescent here
10530 (Generate_Reference): Accept an implicit reference generated for a
10531 default in an instance.
10532 (Generate_Reference): Accept a reference for a node that is not in the
10533 main unit, if it is the generic body corresponding to an subprogram
10536 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
10538 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
10540 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
10542 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
10543 use clauses, to avoid messages on packages used to qualify, and also
10544 to avoid messages from obsolescent units.
10545 (Warn_On_Useless_Assignments): Don't generate messages for imported
10546 and exported variables.
10547 (Warn_On_Useless_Assignments): New procedure
10548 (Output_Obsolescent_Entity_Warnings): New procedure
10549 (Check_Code_Statement): New procedure
10551 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
10552 Change name Is_Ada_2005 to Is_Ada_2005_Only
10553 (Last_Assignment): New field for useless assignment warning
10555 2006-10-31 Olivier Hainque <hainque@adacore.com>
10557 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
10558 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
10560 2006-10-31 Bob Duff <duff@adacore.com>
10561 Robert Dewar <dewar@adacore.com>
10562 Ed Schonberg <schonberg@adacore.com>
10564 * g-awk.adb (Default_Session, Current_Session): Compile this file in
10565 Ada 95 mode, because it violates the new rules for AI-318.
10567 * g-awk.ads: Use overloaded subprograms in every case where we used to
10568 have a default of Current_Session. This makes the code closer to be
10569 correct for both Ada 95 and 2005.
10571 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
10572 code, relying on the fact that the compiler generates a warning
10573 instead of an error in -gnatg mode.
10575 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
10576 E_Return_Statement entity kind.
10577 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
10579 * par.adb (P_Interface_Type_Definition): Addition of one formal to
10580 report an error if the reserved word abstract has been previously found.
10581 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
10583 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
10584 parenthesized range attribute usage
10585 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
10587 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
10588 in the syntax for extended_return_statement. This is not in the latest
10589 RM, but the ARG is expected to issue an AI allowing this.
10590 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
10591 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
10592 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
10593 P_Return_Statement): Parse the new syntax for extended_return_statement.
10595 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
10596 Output_End_Missing): Add error-recovery code for the new
10597 extended_return_statement syntax; that is, the new E_Return entry on
10600 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
10601 limited to nonlimited, because otherwise we violate the new Ada 2005
10602 rules about returning limited types in function Create_AST_Handler in
10605 * sem.adb (Analyze): Add cases for new node kinds
10606 N_Extended_Return_Statement and N_Return_Object_Declaration.
10608 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
10609 type is in the same category as type of context before applying check,
10610 to prevent anomalies in instantiations.
10611 (Resolve_Aggregate): Remove test for limited components in aggregates.
10612 It's unnecessary in Ada 95, because if it has limited components, then
10613 it must be limited. It's wrong in Ada 2005, because limited aggregates
10615 (Resolve_Record_Aggregate): Move check for limited types later, because
10616 OK_For_Limited_Init requires its argument to have been resolved.
10617 (Get_Value): When copying the component default expression for a
10618 defaulted association in an aggregate, use the sloc of the aggregate
10619 and not that of the original expression, to prevent spurious
10620 elaboration errors, when the expression includes function calls.
10621 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
10622 were missing. We also didn't handle qualified expressions. Now also
10623 allow function calls. Use new common routine OK_For_Limited_Init.
10624 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
10625 with space can upper case letter).
10627 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
10628 Has_Static_Discriminants flag
10629 (Record_Type_Declaration): Diagnose an attempt to declare an interface
10630 type with discriminants.
10631 (Process_Range_Expr_In_Decl): Do validity checks on range
10632 (Build_Discriminant_Constraints): Use updated form of
10633 Denotes_Discriminant.
10634 (Process_Subtype): If the subtype is a private subtype whose full view
10635 is a concurrent subtype, introduce an itype reference to prevent scope
10637 (Build_Derived_Record_Type, Collect_Interface_Primitives,
10638 Record_Type_Declaration): The functionality of the subprograms
10639 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
10640 is now performed by a single routine.
10641 (Build_Derived_Record_Type): If the type definition includes an explicit
10642 indication of limitedness, then the type must be marked as limited here
10643 to ensure that any access discriminants will not be treated as having
10644 a local anonymous access type.
10645 (Check_Abstract_Overriding): Issue a detailed error message when an
10646 abstract subprogram was not overridden due to incorrect mode of its
10648 (Analyze_Private_Extension_Declaration): Add support for the analysis of
10649 synchronized private extension declarations. Verify that the ancestor is
10650 a limited or synchronized interface or in the generic case, the ancestor
10651 is a tagged limited type or synchronized interface and all progenitors
10652 are either limited or synchronized interfaces.
10653 Derived_Type_Declaration): Check for presence of private extension when
10654 dealing with synchronized formal derived types.
10655 Process_Full_View): Enchance the check done on the usage of "limited" by
10656 testing whether the private view is synchronized.
10657 Verify that a synchronized private view is completed by a protected or
10659 (OK_For_Limited_Init_In_05): New function.
10660 (Analyze_Object_Declaration): Move check for limited types later,
10661 because OK_For_Limited_Init requires its argument to have been resolved.
10662 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10663 in order to alleviate the upward compatibility introduced by AI-318.
10664 (Constrain_Corresponding_Record): If the constraint is for a component
10665 subtype, mark the itype as frozen, to avoid out-of-scope references to
10666 discriminants in the back-end.
10667 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
10668 this subprogram against wrong sources.
10669 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
10670 discriminant of limited type completed with a protected type, when the
10671 discriminant is used to constrain a private component of the type, and
10672 expansion is disabled.
10673 (Find_Type_Of_Object): Do not treat a return subtype that is an
10674 anonymous subtype as a local_anonymous_type, because its accessibility
10675 level is the return type of the enclosing function.
10676 (Check_Initialization): In -gnatg mode, turn the error "cannot
10677 initialize entities of limited type" into a warning.
10678 (OK_For_Limited_Init): Return true for generated nodes, since it
10679 sometimes violates the legality rules.
10680 (Make_Incomplete_Declaration): If the type for which an incomplete
10681 declaration is created happens to be the currently visible entity,
10682 preserve the homonym chain when removing it from visibility.
10683 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
10684 inherited subprograms.
10685 (Access_Definition): If this is an access to function that is the return
10686 type of an access_to_function definition, context is a type declaration
10687 and the scope of the anonymous type is the current one.
10688 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
10689 incomplete subtype to the set of private dependents of the original
10691 (Constrain_Discriminated_Type): Emit an error message whenever an
10692 incomplete subtype is being constrained.
10693 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
10694 corresponding subtype of the full view of the original incomplete type.
10695 (Check_Incomplete): Properly detect invalid usage of incomplete types
10698 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
10700 * g-catiio.ads, g-catiio.adb (Value): New function.
10701 Given an input String, try and parse a valid Time value.
10703 2006-10-31 Vincent Celier <celier@adacore.com>
10705 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
10706 Integer_Address arithmetic, as in Set_Valid.
10708 2006-10-31 Arnaud Charlet <charlet@adacore.com>
10709 Robert Dewar <dewar@adacore.com>
10711 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
10712 handling executable extension manually and duplicating code.
10714 * make.adb: Implement new -S switch
10715 (Gnatmake): Use new function Osint.Executable_Name instead
10716 of handling executable extension manually.
10718 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
10719 is specified, the executable name ends with this suffix.
10720 Take advantage of Osint.Executable_Name instead of duplicating code.
10722 * switch-m.adb: Recognize new gnatmake -S switch
10724 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
10726 (Get_Target_Parameters): Set Executable_Extension_On_Target if
10729 * makeusg.adb: Add line for gnatmake -S switch
10731 2006-10-31 Vincent Celier <celier@adacore.com>
10733 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
10734 call it with -static-libgcc, as there are some platforms, such as
10735 Darwin, where one of these two switches is compulsory to link.
10737 2006-10-31 Vincent Celier <celier@adacore.com>
10739 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
10740 instead of ADA_PROJECT_PATH, for the project path.
10741 (Gnatls): When displaying the project path directories, use host dir
10744 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
10745 names in the project path, as absolute paths may correspond to
10746 multi-valued VMS logical names.
10748 2006-10-31 Vincent Celier <celier@adacore.com>
10750 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
10751 absolute path name.
10752 (Locate_Regular_File): Ditto
10753 (Change_Dir): Remove, no longer used
10754 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
10755 on Windows. Get it calling Get_Current_Dir.
10756 (OpenVMS): Remove imported boolean, no longer needed.
10757 (Normalize_Pathname)[VMS]: Do not resolve directory names.
10758 (Pid_To_Integer): New function to convert a Process_Id to Integer
10760 2006-10-31 Thomas Quinot <quinot@adacore.com>
10762 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
10763 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
10765 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
10768 2006-10-31 Robert Dewar <dewar@adacore.com>
10770 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
10771 initial letter o as a zero.
10773 2006-10-31 Robert Dewar <dewar@adacore.com>
10775 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
10777 2006-10-31 Robert Dewar <dewar@adacore.com>
10779 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
10781 (Layout_Variant_Record): Retrieve the discriminants from the entity
10782 rather than from the type definition, because in the case of a full
10783 type for a private type we need to take the discriminants from the
10785 (Layout_Component_List): When applying the Max operator to variants with
10786 a nonstatic size, check whether either operand is static and scale that
10787 operand from bits to storage units before applying Max.
10788 (Layout_Type): In VMS, if a C-convention access type has no explicit
10789 size clause (and does not inherit one in the case of a derived type),
10790 then the size is reset to 32 from 64.
10792 2006-10-31 Vincent Celier <celier@adacore.com>
10794 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
10795 its file has already been loaded, according to the unit being loaded,
10796 not to the current value of Multiple_Unit_Index.
10798 2006-10-31 Thomas Quinot <quinot@adacore.com>
10799 Eric Botcazou <ebotcazou@adacore.com>
10800 Arnaud Charlet <charlet@adacore.com>
10802 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
10803 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
10805 (a-except.o): Pass it to the compiler.
10806 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
10807 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
10808 a-calend-mingw.adb version.
10810 * Makefile.rtl: Added s-dsaser.
10811 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
10812 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
10813 Ada.Dispatching.Round_Robin.
10814 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
10816 * Make-lang.in: Remove all references to gt-ada-decl.h.
10817 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
10819 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
10820 Update dependencies.
10822 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
10824 2006-10-31 Vincent Celier <celier@adacore.com>
10826 * mlib-utl.adb (Initialized): Remove, no longer used
10827 (Initialize): Remove, no longer used
10828 (Ar): If Ar_Exec is null, get the location of the archive builder and,
10829 if there is one, the archive indexer. Fail if the archive builder cannot
10831 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
10834 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10836 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
10837 Process_Body_Clauses): If the context of a body includes a use clause
10838 for P.Q then a with_clause for P in the same body is not redundant,
10839 even if the spec also has a with_clause on P.
10840 Add missing continuation mark to error msg
10841 (Build_Limited_Views): A limited view of a type is tagged if its
10842 declaration includes a record extension.
10843 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
10844 node, even if the subunit has errors. This avoids malfunction by
10845 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
10846 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
10847 generation of obsolescent messages for with statements (cannot do
10848 this too early, or we cannot implement avoiding the messages in the
10849 case of obsolescent units withing obsolescent units).
10850 (Install_Siblings): If the with_clause is on a remote descendant of
10851 an ancestor of the current compilation unit, find whether there is
10852 a sibling child unit that is immediately visible.
10853 (Remove_Private_With_Clauses): New procedure, invoked after completing
10854 the analysis of the private part of a nested package, to remove from
10855 visibility the private with_clauses of the enclosing package
10857 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
10858 now centralized in Generate_Reference.
10859 (Install_Limited_Context_Clauses): Remove superfluous error
10860 message associated with unlimited view visible through use
10861 and renamings. In addition, at the point in which the error
10862 is reported, we add the backslash to the text of the error
10863 to ensure that it is reported as a single error message.
10864 Use new // insertion for some continuation messages
10865 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
10866 to create implicit with_clause for parent unit mentioned in original
10867 limited_with_clause.
10868 (Install_Limited_With_Unit): Set entity of parent identifiers if the
10869 unit is a child unit. For ASIS queries.
10870 (Analyze_Subunit): If the subunit appears within a child unit, make all
10871 ancestor child units directly visible again.
10873 2006-10-31 Robert Dewar <dewar@adacore.com>
10875 * par-ch10.adb (P_Context_Clause): Minor error message fix
10877 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
10878 Javier Miranda <miranda@adacore.com>
10880 * par-ch12.adb: Grammar update and cleanup.
10881 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
10882 support for synchronized derived type definitions.
10883 Add the new actual Abstract_Present to every call to
10884 P_Interface_Type_Definition.
10885 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
10886 a formal object declaration with an access definition or a subtype mark
10887 with a null exclusion.
10888 (P_Generic_Association): Handle association with box, and others_choice
10889 with box, to support Ada 2005 partially parametrized formal packages.
10891 2006-10-31 Robert Dewar <dewar@adacore.com>
10892 Javier Miranda <miranda@adacore.com>
10894 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
10895 (P_Type_Declaration): Remove barrier against the reserved word "limited"
10896 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
10897 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
10898 private extensions.
10899 (P_Type_Declaration): Add the new actual Abstract_Present to every call
10900 to P_Interface_Type_Definition.
10901 (P_Interface_Type_Definition): Addition of one formal to report an error
10902 if the reserved word abstract has been previously found.
10903 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
10904 object renaming declaration with an access definition or subtype mark
10905 with a possible null exclusion.
10907 * par-ch9.adb: Minor error msg fix
10909 * par-load.adb: Add missing continuation mark to error msg
10911 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
10913 2006-10-31 Vincent Celier <celier@adacore.com>
10915 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
10916 unknown attribute in unknown package or in package that does not need
10918 (Parse_Package_Declaration): Do not issue warning for unknown package in
10921 2006-10-31 Vincent Celier <celier@adacore.com>
10923 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
10924 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
10927 2006-10-31 Vincent Celier <celier@adacore.com>
10929 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
10930 on VMS, change "__" to '.' before checking the name.
10931 (Record_Ada_Source): Always add the source file name in the list of
10932 of sources, even if it is not the first time, as it is for another
10934 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
10935 dot, instead of replacing only the first '_'.
10937 * prj-part.adb (Parse): Convert project file path to canonical form
10939 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
10940 extended, the project id of the project extending it is recorded in its
10941 data, even when it has already been processed as an imported project.
10943 2006-10-31 Robert Dewar <dewar@adacore.com>
10945 * repinfo.adb (List_Entities): Don't list entities from renaming
10948 2006-10-31 Arnaud Charlet <charlet@adacore.com>
10949 Robert Dewar <dewar@adacore.com>
10951 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
10952 only a restriction warning is active for the given restriction. This is
10953 desirable because we do not want to modify code in the case where only
10955 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
10956 causes overriding of real restrictions.
10957 Take advantage of new No_Restrictions constant.
10959 * raise.h: (__gnat_set_globals): Change profile.
10961 2006-10-31 Arnaud Charlet <charlet@adacore.com>
10963 * rtsfind.adb: Remove s-polint from comment as it exists no more.
10966 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
10967 Move all the entities in obsolete package System.PolyORB_Interface to
10968 System.Partition_Interface.
10969 (RE_Storage_Size): New function in System.Tasking.
10970 (RE_Get_Ceiling): New entity.
10971 (RE_Set_Ceiling): New entity.
10972 (RO_PE_Get_Ceiling): New entity.
10973 (RO_RE_Set_Ceiling): New entity.
10974 (Inherit_CPP_DT): New entity
10976 2006-10-31 Robert Dewar <dewar@adacore.com>
10978 * scng.adb (Scan, case of numeric literal): Better msg for identifier
10979 starting with a digit.
10981 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10982 Thomas Quinot <quinot@adacore.com>
10983 Javier Miranda <miranda@adacore.com>
10984 Gary Dismukes <dismukes@adacore.com>
10986 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
10987 properly an attempt to apply Unchecked_Access to a protected operation.
10988 (OK_Self_Reference): New subprogram to check the legality of an access
10989 attribute whose prefix is the type of an enclosing aggregate.
10990 Generalizes previous mechanism to handle attribute references nested
10991 arbitrarily deep within the aggregate.
10992 (Analyze_Access_Attribute): An access attribute whose prefix is a type
10993 can appear in an aggregate if this is a default-initialized aggregate
10994 for a self-referential type.
10995 (Resolve_Attribute, case Access): Ditto.
10996 Add support for new implementation defined attribute Stub_Type.
10997 (Eval_Attribute, case Attribute_Stub_Type): New case.
10998 (Analyze_Attribute, case Attribute_Stub_Type): New case.
10999 (Stream_Attribute_Available): Implement using new subprogram from
11000 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
11001 Has_Specified_Stream_Attribute flag.
11002 Disallow Storage_Size and Storage_Pool for access to subprogram
11003 (Resolve_Attribute, case 'Access et al): Take into account anonymous
11004 access types of return subtypes in extended return statements. Remove
11005 accessibility checks on anonymous access types when Unchecked_Access is
11007 (Analyze_Attribute): Add support for the use of 'Class to convert
11008 a class-wide interface to a tagged type.
11009 Add support for the attribute Priority.
11010 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
11011 whether the designated type is discriminated with a constrained partial
11012 view and require static matching in that case.
11013 Add local variable Des_Btyp. The Designated_Type
11014 of an access to incomplete subtype is either its non-limited view if
11015 coming from a limited with or its etype if regular incomplete subtype.
11017 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
11018 Fix predicate to identify and allow cases of (expander-generated)
11019 references to tag of designated object of a RACW.
11020 (Validate_Static_Object_Name): In Ada 2005, a formal object is
11021 non-static, and therefore cannot appear as a primary in a preelaborable
11023 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
11024 Has_Read_Write_Attributes.
11025 (Has_Read_Write_Attributes): Reimplement in termes of
11026 Has_Stream_Attribute_Definition.
11027 (Missing_Read_Write_Attributes): When checking component types in a
11028 record, unconditionally call Missing_Read_Write_Attributes recursively
11029 (remove guard checking for Is_Record_Type / Is_Access_Type).
11031 2006-10-31 Robert Dewar <dewar@adacore.com>
11033 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
11034 useless assignments here and conditionalize it on absence of exception
11036 (Analyze_Exception_Handlers): Small code reorganization of error
11037 detection code, for new handling of formal packages.
11039 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11040 Hristian Kirtchev <kirtchev@adacore.com>
11042 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
11043 that has been constant-folded, preserve information of original tree,
11045 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
11046 generated private extension declaration if the formal derived type is
11047 synchronized. Carry synchronized present over to the generated private
11049 (Validate_Derived_Type_Instance): Ensure that the actual of a
11050 synchronized formal derived type is a synchronized tagged type.
11051 (Instantiate_Formal_Package): When creating the instantiation used to
11052 validate the actual package of a formal declared without a box, check
11053 whether the formal itself depends on a prior actual.
11054 (Instantiate_Formal_Subprogram): Create new entities for the defining
11055 identifiers of the formals in the renaming declaration, for ASIS use.
11056 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
11057 a renaming declaration or a subtype declaration for an actual in an
11058 instance, capture location information of declaration in generic, for
11060 (Instantiate_Formal_Package): Add comments on needed additional tests.
11061 AI-317 (partial parametrization) is fully implemented.
11062 (Validate_Private_Type_Instance): Add check for actual which
11063 must have preelaborable initialization
11064 Use new // insertion for some continuation messages
11065 (Analyze_Formal_Object_Declaration): Change usage of Expression to
11066 Default_Expression. Add type retrieval when the declaration has an
11067 access definition. Update premature usage of incomplete type check.
11068 (Check_Access_Definition): New subsidiary routine. Check whether the
11069 current compilation version is Ada 05 and the supplied node has an
11071 (Instantiate object): Alphabetize local variables. Handle the creation
11072 of new renaming declarations with respect to the kind of definition
11073 used - either an access definition or a subtype mark. Guard against
11074 unnecessary error message in the context of anonymous access types after
11075 they have been resolved. Add check for required null exclusion in a
11076 formal object declaration.
11077 (Switch_View): A private subtype of a non-private type needs to be
11078 switched (the base type can have been switched without its private
11079 dependents because of the last branch of Check_Private_View.
11080 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
11082 (Instantiate_Type): Emit an error message whenever a class-wide type of
11083 a tagged incomplete type is used as a generic actual.
11084 (Find_Actual_Type): Extend routine to handle a component type in a child
11085 unit that is imported from a formal package in a parent.
11086 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
11087 agree on constrainedness, rather than checking against ultimate ancestor
11088 (Instantiate_Subprogram_Body): Create a cross-reference link to the
11089 generic body, for navigation purposes.
11091 2006-10-31 Robert Dewar <dewar@adacore.com>
11092 Thomas Quinot <quinot@adacore.com>
11094 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
11096 (New_Stream_Subprogram): When processing an attribute definition clause
11097 for a stream-oriented subprogram, record an entity node occurring at
11098 the point of clause to use for checking the visibility of the clause,
11099 as defined by 8.3(23) as amended by AI-195.
11100 (New_Stream_Subprogram): New procedure, factoring behaviour from both
11101 New_Stream_Function and New_Stream_Procedure.
11102 (New_Stream_Function, New_Stream_Procedure): Removed.
11103 (Analyze_Attribute_Definition_Clause, case Address): Check new
11104 Alignment_Check check
11106 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11107 Javier Miranda <miranda@adacore.com>
11108 Robert Dewar <dewar@adacore.com>
11110 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
11111 generate the same errors compiling under -gnatc.
11112 (Try_Object_Operation): If no candidate interpretation succeeds, but
11113 there is at least one primitive operation with the right name, report
11114 error in call rather than on a malformed selected component.
11115 (Analyze_Selected_Component): If the prefix is an incomplete type from
11116 a limited view, and the full view is available, use the full view to
11117 determine whether this is a prefixed call to a primitive operation.
11118 (Operator_Check): Verify that a candidate interpretation is a binary
11119 operation before checking the type of its second formal.
11120 (Analyze_Call): Add additional warnings for function call contexts not
11122 (Analyze_Allocator): Move the check for "initialization not allowed for
11123 limited types" after analyzing the expression. This is necessary,
11124 because OK_For_Limited_Init looks at the structure of the expression.
11125 Before analysis, we don't necessarily know what sort of expression it
11126 is. For example, we don't know whether F(X) is a function call or an
11127 indexed component; the former is legal in Ada 2005; the latter is not.
11128 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
11129 were missing. We also didn't handle qualified expressions. Now also
11130 allow function calls. Use new common routine OK_For_Limited_Init.
11131 (Analyze_Type_Conversion): Do not perform some legality checks in an
11132 instance, because the error message will be redundant or spurious.
11133 (Analyze_Overloaded_Selected_Component): Do not do style check when
11134 setting an entity, since we do not know it is the right entity yet.
11135 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
11136 (Analyze_Overloaded_Selected_Component): Same change
11137 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
11138 since regular incomplete subtypes are transformed into corresponding
11139 subtypes of their full views.
11140 (Complete_Object_Operation): Treat name of transformed subprogram call
11141 as coming from source, for browsing purposes.
11142 (Try_Primitive_Operation): If formal is an access parameter, compare
11143 with base type of object to determine whether it is a primitive
11145 (Operator_Check): If no interpretation of the operator matches, check
11146 whether a use clause on any candidate might make the operation legal.
11147 (Try_Class_Wide_Operation): Check whether the first parameter is an
11148 access type whose designated type is class-wide.
11150 2006-10-31 Robert Dewar <dewar@adacore.com>
11151 Ed Schonberg <schonberg@adacore.com>
11152 Gary Dismukes <dismukes@adacore.com>
11154 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
11155 warn on infinite loops.
11156 Add \\ to some continuation messages
11157 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
11158 (Process_Bounds): If the bounds are integer literals that result from
11159 constant-folding, and they carry a user-defined type, preserve that type
11160 rather than treating this as an integer range.
11161 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
11162 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
11163 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
11164 left hand side of assignment.
11165 (Analyze_Assignment): Add suport to manage assigments to the attribute
11166 priority of a protected object.
11167 (Check_Possible_Current_Value_Condition): Allow fully qualified names
11168 not just identifiers.
11169 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
11170 or AND THEN for possible tracking.
11171 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
11172 case of while loops so we can track values in the loop body.
11174 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11175 Hristian Kirtchev <kirtchev@adacore.com>
11176 Bob Duff <duff@adacore.com>
11178 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
11179 procedure cannot be a protected operation (it is a basic_declaration,
11180 not a subprogram_declaration).
11181 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
11182 Subp. Add logic for entry processing.
11183 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
11184 Determine whether an entry or subprogram of a protected or task type
11185 override an inherited primitive of an implemented interface.
11186 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
11187 Update the actual used in calls to Check_Overriding_Indicator.
11188 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
11189 generate the proper reference to the parent unit, for cross-reference.
11190 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
11192 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11193 (Add_Extra_Formal): Revise procedure to allow passing in associated
11194 entity, scope, and name suffix, and handle setting of the new
11195 Extra_Formals field.
11196 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
11197 pass new parameters. Add support for adding the new extra access formal
11198 for functions whose calls are treated as build-in-place.
11199 (Analyze_A_Return_Statement): Correct casing in error message.
11200 Move Pop_Scope to after Analyze_Function_Return, because an extended
11201 return statement really is a full-fledged scope. Otherwise, visibility
11202 doesn't work right. Correct use of "\" for continuation messages.
11203 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
11204 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
11205 the node doesn't get properly marked as analyzed.
11206 (Analyze_Subprogram_Body): If subprogram is a function that returns
11207 an anonymous access type that denotes a task, build a Master Entity
11209 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
11210 proper usage of null exclusion in a result definition.
11211 (Process_Formals): Code cleanup and new error message.
11212 (Process_Formals): Detect incorrect application of null exclusion to
11214 (Conforming_Types): Handle conformance between [sub]types and itypes
11215 generated for entities that have null exclusions applied to them.
11216 (Maybe_Primitive_Operation): Add an additional type retrieval when the
11217 base type is an access subtype. This case arrises with null exclusions.
11218 (New_Overloaded_Entity): Do not remove the overriden entity from the
11219 homonym chain if it corresponds with an abstract interface primitive.
11220 (Process_Formals): Replace membership test agains Incomplete_Kind with a
11221 call to the synthesized predicate Is_Incomplete_Type.
11222 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
11224 (Analyze_Subprogram_Declaration): Check that abstract interface
11225 primitives are abstract or null.
11226 (Analyze_Subprogram_Specification): Remove previous check for abstract
11227 interfaces because it was not complete.
11228 (Has_Interface_Formals): Removed.
11230 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11231 Javier Miranda <miranda@adacore.com>
11233 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
11234 of Analyze_Package_Body, to create Itype references for anonymous
11235 access types created in the package declaration, whose designated types
11236 may have only a limited view.
11237 (Analyze_Package_Specification): For the private part of a nested
11238 package, install private_with_clauses of enclosing compilation unit if
11239 we are in its visible part.
11240 (Declare_Inherited_Private_Subprograms): Complete barrier
11241 to ensure that the primitive operation has an alias to some parent
11242 primitive. This is now required because, after the changes done for the
11243 implementation of abstract interfaces, the contents of the list of
11244 primitives has entities whose alias attribute references entities of
11245 such list of primitives.
11246 (Analyze_Package_Specification): Simplify code that handles parent units
11247 of instances and formal packages.
11248 (Uninstall_Declarations): Check the convention consistency among
11249 primitive overriding operations of a tagged record type.
11251 2006-10-31 Robert Dewar <dewar@adacore.com>
11252 Hristian Kirtchev <kirtchev@adacore.com>
11253 Javier Miranda <miranda@adacore.com>
11254 Ed Schonberg <schonberg@adacore.com>
11256 * sem_ch8.adb: Minor error msg rewording
11257 (Undefined): When checking for misspellings, invert arguments (to get
11258 expected and found set right)
11259 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
11260 (Analyze_Generic_Renaming): Same fix
11261 (Use_One_Package): Do not take into account the internal entities of
11262 abstract interfaces during the analysis of entities that are marked
11263 as potentially use-visible.
11264 (Find_Type): Handle the case of an attribute reference for
11265 implementation defined attribute Stub_Type (simply let the analysis of
11266 the attribute reference rewrite it).
11267 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
11268 type that appears in a Use_Type clause.
11269 (Analyze_Object_Renaming): Add support for renaming of the Priority
11271 (Find_Type): In Ada 2005, a task type can be used within its own body,
11272 when it appears in an access definition.
11273 (Analyze_Object_Renaming): Remove warning on null_exclusion.
11274 (Analyze_Object_Renaming): Introduce checks for required null exclusion
11275 in a formal object declaration or in a subtype declaration.
11276 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
11277 (Check_Null_Exclusion): New local routine to
11278 Analyze_Subprogram_Renaming. Check whether the formals and return
11279 profile of a renamed subprogram have required null exclusions when
11280 their counterparts of the renaming already impose them.
11281 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
11282 Determine whether an entity is inside a generic scope.
11283 (In_Open_Scope): First pass of documentation update.
11284 (Find_Expanded_Name): Add support for shadow entities associated with
11285 limited withed packages. This is required to handle nested packages.
11286 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
11287 that makes a renaming of a limited withed package illegal.
11289 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11290 Ed Schonberg <schonberg@adacore.com>
11292 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
11293 Check_Overriding_Indicator.
11294 (Analyze_Task_Definition): Ditto.
11295 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
11296 (Check_Overriding_Indicator): To find overridden interface operation,
11297 examine only homonyms that have an explicit subprogram declaration, not
11298 inherited operations created by an unrelated type derivation.
11299 (Check_Overriding_Indicator): When checking for the presence of "null"
11300 in a procedure, ensure that the queried node is a procedure
11302 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
11303 type when the formal is an access to variable.
11304 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
11305 (Analyze_Task_Type): Same addition
11306 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
11307 provide navigation capabilities for entries.
11309 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11310 Ed Schonberg <schonberg@adacore.com>
11311 Javier Miranda <miranda@adacore.com>
11312 Gary Dismukes <dismukes@adacore.com>
11314 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
11315 inherited from an interface ancestor by another interface in the
11316 context of an instance as 'late'.
11317 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
11318 of a call to a function that dispatches on access result.
11319 (Check_Dispatching_Operation): In case of late overriding of a primitive
11320 that covers abstract interface subprograms we register it in all the
11321 secondary dispatch tables associated with abstract interfaces.
11322 (Check_Dispatching_Call): Add check that a dispatching call is not made
11323 to a function with a controlling result of a limited type. This is a
11324 current implementation restriction.
11325 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
11326 (Check_Dispatching_Operation): Do no emit a warning if the controlling
11327 argument is an interface type that is a generic formal.
11328 (Is_Interface_Subprogram): Removed.
11329 (Check_Dispatching_Operation): If the subprogram is not a dispatching
11330 operation, check the formals to handle the case in which it is
11331 associated with an abstract interface type.
11333 2006-10-31 Robert Dewar <dewar@adacore.com>
11334 Ed Schonberg <schonberg@adacore.com>
11336 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
11337 Add new calls to this procedure during traversal
11338 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
11339 another unit if expansion is disabled.
11341 2006-10-31 Robert Dewar <dewar@adacore.com>
11343 * sem_eval.adb (Compile_Time_Compare): Make use of information from
11344 Current_Value in the conditional case, to evaluate additional
11345 comparisons at compile time.
11347 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11348 Hristian Kirtchev <kirtchev@adacore.com>
11349 Javier Miranda <miranda@adacore.com>
11351 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
11352 subprogram type to provide better diagnostics in case of ambiguity.
11353 (Covers): Handle coverage of formal and actual anonymous access types in
11354 the context of generic instantiation.
11355 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
11356 abstract interface types; this is required to handle concurrent types
11357 with discriminants and abstract interface types.
11358 (Covers): Include type coverage of both regular incomplete subtypes and
11359 incomplete subtypes of incomplete type visibles through a limited with
11362 2006-10-31 Robert Dewar <dewar@adacore.com>
11363 Hristian Kirtchev <kirtchev@adacore.com>
11364 Ed Schonberg <schonberg@adacore.com>
11366 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
11367 messages for entities in packages which are not used.
11368 (Collect_Synchronized_Interfaces): New procedure.
11369 (Overrides_Synchronized_Primitive): New function.
11370 (Denotes_Discriminant): Extend predicate to apply to task types.
11371 Add missing continuation marks in error msgs
11372 (Unqualify): New function for removing zero or more levels of
11373 qualification from an expression. There are numerous places where this
11374 ought to be used, but we currently only deal properly with zero or one
11376 (In_Instance); The analysis of the actuals in the instantiation of a
11377 child unit is not within an instantiation, even though the parent
11378 instance is on the scope stack.
11379 (Safe_To_Capture_Value): Exclude the case of variables that are
11381 (Check_Obsolescent): Removed
11382 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
11383 is an aliased view, even when rewritten as a reference to the target
11384 object in an assignment.
11385 (Get_Subprogram_Entity): New function
11386 (Known_To_Be_Assigned): New function
11387 (Type_Access_Level): Compute properly the access level of a return
11388 subtype that is an anonymous access type.
11389 (Explain_Limited_Type): Correct use of "\" for continuation messages.
11390 (Is_Transfer): The new extended_return_statement causes a transfer of
11392 (Has_Preelaborable_Initialization): New function
11393 (Has_Null_Exclusion): New function. Given a node N, determine whether it
11394 has a null exclusion depending on its Nkind.
11395 Change Is_Lvalue to May_Be_Lvalue
11396 (May_Be_Lvalue): Extensive additional code to deal with subprogram
11397 arguments (IN parameters are not Lvalues, IN OUT parameters are).
11398 (Safe_To_Capture_Value): Extend functionality so it can be used for
11399 the current value condition case.
11400 (Has_Compatible_Alignment): New function
11401 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
11402 objects to handle the Ada 2005 case, where aliasedness no longer implies
11403 that the object is constrained. In particular, for dereferenced names,
11404 the designated object must be assumed to be unconstrained.
11405 (Kill_Current_Values): Properly deal with the case where we encounter
11406 a loop in the scope chain.
11407 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
11409 (Compile_Time_Constraint_Error): Improve error message in error case
11411 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
11412 associated with entities of abstract interface primitives.
11413 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
11415 2006-10-31 Robert Dewar <dewar@adacore.com>
11417 * s-osinte-tru64.adb:
11418 Mark Asm statements Volatile to prevent warnings (seems a
11419 reasonable change anyway)
11422 * s-mastop-irix.adb: Add Volatile to Asm statements
11423 Suppresses warning, and seems appropriate in any case
11425 * s-osinte-vms.adb: Add Volatile to Asm statement
11427 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
11429 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
11431 Add call to Check_Code_Statement
11433 2006-10-31 Robert Dewar <dewar@adacore.com>
11434 Ed Schonberg <schonberg@adacore.com>
11435 Bob Duff <duff@adacore.com>
11437 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
11438 Synchronized_Present): Add Formal_Derived_Type_Definition and
11439 Private_Extension_Declaration to the list of assertions.
11440 (Is_Entry_Barrier_Function): New flag
11441 (Has_Self_Reference): New flag on aggregates, to indicate that they
11442 contain a reference to the enclosing type, inserted through a default
11444 (Next_Rep_Item): Move from Node4 to Node5.
11445 (Entity): Add this field for N_Attribute_Definition_Clause.
11446 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
11447 (N_Return_Object_Declaration): Remove this node kind. We now use
11448 N_Object_Declaration instead.
11449 (Actual_Designated_Subtype): Move to a different place to make room in
11450 N_Extended_Return_Statement.
11451 (Procedure_To_Call): Move to a different place to make room in
11452 N_Extended_Return_Statement.
11453 (Return_Type): Removed this field to make room in return statements
11455 (Return_Statement_Entity): New field in return statements, in part to
11456 replace Return_Type, and in part to support the fact that return
11457 statements are now pushed on the scope stack during semantic analysis.
11458 (Return_Object_Declarations): New field to support extended return
11460 (N_Extended_Return_Statement): New node for extended_return_statement
11462 (N_Return_Object_Declaration): New node for part of
11463 extended_return_statement nonterminal. Needed because all the necessary
11464 fields won't fit in N_Extended_Return_Statement.
11465 Generic_associations now carry the Box_Present flag, to indicate a
11466 default for an actual in a partially parametrized formal package.
11468 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
11469 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
11470 and for the new predefined dispatching policies: EDF_Across_Priorities,
11471 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
11472 Introduce new name Stub_Type for implementation defined attribute.
11473 Add pragma Preelaborable_Initialization
11474 Add entry for Priority attribute.
11475 Add Pragma_Wide_Character_Encoding
11476 (Get_Convention_Name): Given a convention id, this function returns the
11477 corresponding name id from the names table.
11479 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11480 Robert Dewar <dewar@adacore.com>
11481 Bob Duff <duff@adacore.com>
11483 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
11484 print null exclusion twice in the case of an access definition,
11485 Implement new -gnatL switch
11486 Remove N_Return_Object_Declaration. We now use
11487 N_Object_Declaration instead. Implement the case for
11488 N_Extended_Return_Statement. Alphabetize the cases.
11489 Add cases for new nodes N_Extended_Return_Statement and
11490 N_Return_Object_Declaration. The code is not yet written.
11491 Update the output for N_Formal_Object_Declaration
11492 and N_Object_Renaming_Declaration.
11493 (Write_Itype): Account for the case of a modular integer subtype whose
11494 base type is private.
11496 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11498 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
11499 Remove elaboration code, now done in the binder.
11501 * s-rident.ads: Make this unit Preelaborate.
11502 (No_Restrictions): New constant used to clean up code and follow
11503 preelaborate constraints.
11506 Add System.Restrictions dependence, referenced directly from the
11507 binder generated file.
11509 2006-10-31 Gary Dismukes <dismukes@adacore.com>
11511 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
11512 True when AAMP extended floating-point is in use (48-bit). Change type
11513 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
11514 the two byte array types on AFloat. Change type of IV_Ilf overlay
11515 variable from Byte8 to ByteLF. Add appropriate initializations of
11516 floating-point overlays for AAMP cases.
11518 2006-10-31 Javier Miranda <miranda@adacore.com>
11520 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
11521 (Get_Ceiling): New subprogram that returns
11522 the ceiling priority of the protected object.
11523 (Set_Ceiling): New subprogram that sets the new ceiling priority of
11524 the protected object.
11526 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
11528 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
11530 2006-10-31 Jose Ruiz <ruiz@adacore.com>
11532 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
11533 requeuing to the same protected object to give higher priority tasks
11534 the opportunity to execute.
11536 2006-10-31 Robert Dewar <dewar@adacore.com>
11538 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
11539 add more precise check for the character sequence that follows '[' to
11540 avoid possible confusion in case if '[' is the last character of a
11542 (Scan_Wide): Always allow brackets encoding
11544 2006-10-31 Olivier Hainque <hainque@adacore.com>
11546 * s-stchop.ads: make this unit preelaborate. This is desirable in
11547 general and made mandatory by the use of this unit by s-taprop which
11548 is itself preelaborate.
11550 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
11551 Td_Events component.
11553 2006-10-31 Vincent Celier <celier@adacore.com>
11555 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
11558 2006-10-31 Vincent Celier <celier@adacore.com>
11560 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
11562 2006-10-31 Vincent Celier <celier@adacore.com>
11564 * makegpr.adb (Check_Compilation_Needed): Take into account path names
11566 (Check_Compilation_Needed): When checking a C or C++ source, do not
11567 resolve symbolic links.
11568 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
11569 When not in verbose mode and Ellipse is True, display "..." for the
11570 first argument with Display set to False.
11571 (Build_Global_Archive): Always set Display True for the first object
11572 file. Call Display_Command with Ellipse set to True.
11574 2006-10-31 Matt Heaney <heaney@adacore.com>
11576 * a-crbtgo.ads: Commented each subprogram
11578 * a-crbtgo.adb: Added reference to book from which algorithms were
11581 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
11582 indicate which child.
11583 (Generic_Conditional_Insert): changed parameter name from "Success" to
11585 (Generic_Unconditional_Insert_With_Hint): improved algorithm
11587 * a-coorse.adb (Replace_Element): changed parameter name in call to
11588 conditional insert operation.
11590 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
11592 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
11595 * a-ciorse.adb (Replace_Element): changed parameter name in call to
11596 conditional insert operation.
11598 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
11601 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
11602 instead of mode inout.
11604 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
11606 (Generic_Read): preserve existing buckets array if possible
11607 (Generic_Write): don't send buckets array length anymore
11609 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
11610 instead of mode inout.
11612 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
11613 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11615 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
11616 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11617 (Replace_Element): local operation is now an instantiation
11619 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
11620 check current length.
11621 (Generic_Replace_Element): new operation
11623 2006-10-31 Doug Rupp <rupp@adacore.com>
11625 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
11626 Call TBK$SYMBOLIZE without omitting parameters.
11628 2006-10-31 Vincent Celier <celier@adacore.com>
11630 * symbols-processing-vms-ia64.adb,
11631 symbols-processing-vms-alpha.adb (Process): Do not include symbols
11632 that come from generic instantiations in bodies.
11634 2006-10-31 Pat Rogers <rogers@adacore.com>
11636 * a-rttiev.ads, a-rttiev.adb:
11637 This is a significant redesign primarily for the sake of automatic
11638 timer task termination but also to fix a design flaw.
11639 Therefore we are now using an RTS lock, instead of a protected
11640 object, to provide mutual exclusion to the queue of pending events
11641 and the type Timing_Event is no longer a protected type.
11643 2006-10-31 Robert Dewar <dewar@adacore.com>
11644 Cyrille Comar <comar@adacore.com>
11645 Ben Brosgol <brosgol@adacore.com>
11647 * debug.adb: Update flags documentation
11649 * gnat_ugn.texi: Add documentation for new -gnatwq switch
11650 Clean up documentation for several other warning switches
11651 Clarify how task stack size can be specified with various
11652 versions of Windows.
11653 Add note that -gnatVo includes ranges including loops
11654 Add documentation for -gnatL switch
11655 Add note on elaboration warning for initializing variables
11656 Add documentation for new -gnatwt warning switch
11657 Document new form of pragma Warnings (On|Off, string)
11658 Add comment on use of pragma Warnings to control warnings
11659 Add documentation for -gnatjnn switch
11660 Modify section on interfacing with C for VMS 64-bit.
11661 Add doc for -gnatVe/E
11662 Add documentation of new warning flags -gnatww/-gnatwW
11663 Add warnings about address clause overlays to list of warnings
11664 (Exception Handling Control): Document that the option --RTS must be
11665 used consistently for gcc and gnatbind.
11666 Clarify that inlining is not always possible
11667 Update documentation on pragma Unchecked_Union.
11670 Add documentation for new extended version of pragma Obsolescent
11671 Add documentation for implementation defined attribute 'Stub_Type.
11672 Add note on use of Volatile in asm statements
11673 Add documentation on use of pragma Unreferenced in context clause
11674 Document new form of pragma Warnings (On|Off, pattern)
11675 Document pragma Wide_Character_Encoding
11676 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
11677 enforced if code generation is active.
11678 Add section on pragma Suppress to document GNAT specific check
11680 Clarify difference between No_Dispatching_Calls & No_Dispatch.
11681 Add documentation for pragma Restrictions (No_Elaboration_Code)
11684 Add comments on layout of subprogram local variables in the
11685 presence of nested subprograms.
11687 * ug_words: Resync.
11689 * elists.ads: Minor reformatting
11690 Node returns Node_Or_Entity_Id (doc change only)
11692 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
11694 * g-arrspl.ads (Create): Update comments.
11696 * sem.ads: Add details on the handling of the scope stack.
11698 * usage.adb: Update documentation.
11700 * validsw.ads, validsw.adb:
11701 Add definition of Validity_Check_Components and implement -gnatVe/E
11703 * vms_data.ads: Add missing VMS qualifiers.
11705 * s-addope.ads: Add documentation on overflow and divide by zero
11707 2006-10-31 Robert Dewar <dewar@adacore.com>
11708 Thomas Quinot <quinot@adacore.com>
11709 Arnaud Charlet <charlet@adacore.com>
11711 * fmap.adb: Put routines in alpha order
11713 * g-boumai.ads: Remove redundant 'in' keywords
11715 * g-cgi.adb: Minor reformatting
11717 * g-cgi.ads: Remove redundant 'in' keywords
11719 * get_targ.adb: Put routines in alpha order
11721 * prj-attr.ads: Minor reformatting
11723 * s-atacco.ads: Minor reformatting
11725 * scn.adb: Put routines in alpha order
11727 * sinput-l.adb: Minor comment fix
11729 * sinput-p.adb: Minor comment fix
11731 * s-maccod.ads: Minor reformatting
11733 * s-memory.adb: Minor reformatting
11735 * s-htable.adb: Fix typo in comment.
11737 * s-secsta.adb: Minor comment update.
11739 * s-soflin.adb: Minor reformatting
11742 Add comment about odd qualification in Storage_Offset declaration
11745 Remove unnecessary 'in' keywords for formal parameters.
11747 * treeprs.adt: Minor reformatting
11749 * urealp.adb: Put routines in alpha order
11751 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
11754 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11756 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
11758 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
11759 workaround as on other platforms.
11761 * g-eacodu-vms.adb: Remove redundant 'in' keywords
11762 * g-expect-vms.adb: Remove redundant 'in' keywords
11764 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
11765 clear error message if the list-of-files file cannot be opened.
11767 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
11768 equality operator is always visible.
11770 * lang.opt: Woverlength-strings: New option.
11773 Update copyright, since nmake.ads and nmake.adb have changed.
11775 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
11776 (Binder_Output_Time_Stamps_Set): removed.
11777 (Old_Binder_Output_Time_Stamp): idem.
11778 (New_Binder_Output_Time_Stamp): idem.
11779 (Recording_Time_From_Last_Bind): idem.
11780 (Recording_Time_From_Last_Bind): Make constant.
11782 * output.ads, output.adb (Write_Str): Allow LF characters
11783 (Write_Spaces): New procedure
11785 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
11787 * inline.adb: Minor reformatting
11789 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11791 * s-mastop-vms.adb: Remove redundant 'in' keywords
11793 * s-osprim-vms.adb: Remove redundant 'in' keywords
11795 * s-trafor-default.adb: Remove redundant 'in' keywords
11797 * 9drpc.adb: Remove redundant 'in' keywords
11799 * s-osinte-mingw.ads: Minor reformatting
11801 * s-inmaop-posix.adb: Minor reformatting
11803 * a-direio.ads: Remove quotes from Compile_Time_Warning message
11805 * a-exexda.adb: Minor code reorganization
11807 * a-filico.adb: Minor reformatting
11809 * a-finali.adb: Minor reformatting
11811 * a-nudira.ads: Remove quote from Compile_Time_Warning message
11813 * a-numeri.ads: Minor reformatting
11815 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
11817 * exp_pakd.ads: Fix obsolete comment
11819 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
11820 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
11821 Probably not a bug, but certainly neater and more efficient.
11823 * a-tienio.adb: Minor reformatting
11825 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
11826 Avoid assuming low bound of string is 1.
11828 * gnatbind.adb: Change Bindusg to package and rename procedure as
11829 Display, which now ensures that it only outputs usage information once.
11830 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
11832 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
11835 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
11837 (Match): Add pragma Assert to ensure that Matches'First is zero
11839 * g-regpat.ads (Match): Document that Matches lower bound must be zero
11841 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
11842 documented preconditions (also kills warnings about bad indexes).
11844 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
11846 (Build_Import_Library): Ditto;
11848 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
11850 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
11852 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
11853 lower bound of choice table is 1.
11855 * sem_case.ads (Analyze_Choices): Document that lower bound of
11858 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
11861 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
11862 and add appropriate Assert pragma to suppress warnings.
11864 * atree.h, atree.ads, atree.adb
11865 Change Elist24 to Elist25
11866 Add definitions of Field28 and Node28
11867 (Traverse_Field): Use new syntactic parent table in sinfo.
11869 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11871 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11873 * exp_tss.adb: Put routines in alpha order
11875 * fe.h: Remove redundant declarations.
11877 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
11879 * utils.c (builtin_function): Rename to gnat_builtin_function.
11880 Move common code to add_builtin_function.
11881 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
11882 gnat_builtin_function.
11883 * gigi.h (builtin_function): Rename to gnat_builtin_function.
11884 Change the signature.
11886 2006-10-16 Brooks Moses <bmoses@stanford.edu>
11888 * Makefile.in: Add TEXI2PDF definition.
11889 * Make-lang.in: Add "ada.pdf" target.
11891 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
11893 * decl.c, utils.c: Fix comment typos.
11894 * utils.c: Fix a typo.
11896 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
11898 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
11899 on "pure" Ada subprograms if SJLJ exceptions are used.
11900 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
11901 on the declaration node of JMPBUF_SAVE.
11902 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
11903 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
11904 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
11906 2006-08-20 Laurent GUERBY <laurent@guerby.net>
11909 g-socket.adb (Bind_Socket): Call Set_Address.
11911 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
11914 * decl.c (same_discriminant_p): New static function.
11915 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
11916 subtype and we have discriminants, fix up the COMPONENT_REFs
11917 for the discriminants to make them reference the corresponding
11918 fields of the parent subtype after it has been built.
11920 2006-09-15 Roger Sayle <roger@eyesopen.com>
11923 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
11924 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
11926 2006-09-13 Olivier Hainque <hainque@adacore.com>
11929 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
11930 of a SAVE_EXPR, just make the operand addressable/not-readonly and
11931 let the common gimplifier code make and propagate a temporary copy.
11932 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
11933 out/in-out actuals and defer setting the addressable/readonly bits
11936 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
11939 * decl.c (components_to_record): Defer emitting debug info for the
11940 record type associated with the variant until after we are sure to
11943 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
11946 * gigi.h (gnat_internal_attribute_table): Declare.
11947 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
11948 * utils.c (gnat_internal_attribute_table): New global variable.
11949 (builtin_function): Always call decl_attributes on the builtin.
11950 (handle_const_attribute): New static function.
11951 (handle_nothrow_attribute): Likewise.
11953 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11955 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
11957 2006-06-23 Olivier Hainque <hainque@adacore.com>
11959 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
11960 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
11962 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
11963 Eric Botcazou <ebotcazou@adacore.com>
11966 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
11967 check-gnat into check-acats.
11969 2006-06-17 Karl Berry <karl@gnu.org>
11971 * gnat-style.texi (@dircategory): Use "Software development"
11972 instead of "Programming", following the Free Software Directory.
11974 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11977 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
11979 2006-06-06 Laurent GUERBY <laurent@guerby.net>
11982 mlib-utl.adb: Use Program_Name.
11984 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
11986 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
11987 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
11988 trans.c, utils.c: Fix comment typos. Follow spelling
11990 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
11993 2006-05-19 Nicolas Setton <setton@adacore.com>
11995 * misc.c (gnat_dwarf_name): New function.
11996 (LANG_HOOKS_DWARF_NAME): Define to it.
11998 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
12000 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
12001 (ada/misc.o): Likewise.
12002 (ada/utils.o): Likewise.
12004 2006-04-08 Aurelien Jarno <aurel32@debian.org>
12006 * Makefile.in: Add Ada support for GNU/kFreeBSD.
12007 * s-osinte-kfreebsd-gnu.ads: New file.
12009 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
12011 * Make-lang.in: Rename docdir to gcc_docdir.
12013 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
12015 * gigi.h (get_ada_base_type): Delete.
12016 * utils2.c (get_ada_base_type): Likewise.
12017 * trans.c (convert_with_check): Operate in the real base type.
12019 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12021 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
12023 2006-03-02 Richard Sandiford <richard@codesourcery.com>
12025 * utils.c (create_var_decl): Use have_global_bss_p when deciding
12026 whether to make the decl common.
12028 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12030 * Make-lang.in (Ada): Remove.
12031 (.PHONY): Remove Ada
12033 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12035 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
12036 aggregate, check the interpretations of the other operand to find one
12037 that may be a boolean array.
12039 (Analyze_Selected_Component): Fix flow-of-control typo in case where
12040 the prefix is a private extension.
12042 2006-02-17 Eric Botcazou <botcazou@adacore.com>
12045 * utils2.c (find_common_type): If both input types are BLKmode and
12046 have the same constant size, keep using the first one.
12048 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
12050 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
12052 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
12054 2006-02-17 Jose Ruiz <ruiz@adacore.com>
12056 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
12057 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12058 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
12059 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
12060 Abort_Defer/Undefer pairs to avoid the possibility of a task being
12061 aborted while owning a lock.
12063 2006-02-17 Javier Miranda <miranda@adacore.com>
12064 Robert Dewar <dewar@adacore.com>
12066 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
12067 through an access to class-wide interface we force the displacement of
12068 the pointer to the allocated object to reference the corresponding
12069 secondary dispatch table.
12070 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
12071 if Long_Shifts are supported on the target, even if 64 bit divides
12072 are not supported (configurable run time mode).
12073 (Expand_N_Type_Conversion): Do validity check if validity checks on
12074 operands are enabled.
12075 (Expand_N_Qualified_Expression): Do validity check if validity checks
12076 on operands are enabled.
12078 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12080 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
12081 must be materialized when the renamed expression is an explicit
12084 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12086 * freeze.adb (Statically_Discriminated_Components): Return false if
12087 the bounds of the type of the discriminant are not static expressions.
12089 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
12090 the bounds of the discriminant type are not static.
12092 2006-02-17 Robert Dewar <dewar@adacore.com>
12094 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
12095 then we close To if it is valid.
12097 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
12099 * init.c (facility_resignal_table): new array
12100 (__gnat_default_resignal_p): enhance default predicate to resignal if
12101 VMS condition has one of the predefined facility codes.
12103 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
12105 * Makefile.in: Use VMS64 specialized versions of several units in
12106 Interfaces.C hierarchy to be compatible with HP C default size choices.
12107 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
12109 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12111 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
12112 instantiation, the corresponding entity is the related_instance of the
12113 wrapper package created for the instance.
12115 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12117 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
12118 the current instance is nested within another instance in a child unit.
12120 2006-02-17 Javier Miranda <miranda@adacore.com>
12121 Ed Schonberg <schonberg@adacore.com>
12123 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
12124 type we cannot inherit the primitive operations; we inherit the
12125 Corresponding_Record_Type (which has the list of primitive operations).
12126 (Check_Anonymous_Access_Types): When creating anonymous access types for
12127 access components, use Rewrite in order to preserve the tree structure,
12129 (Analyze_Object_Declaration): For limited types with access
12130 discriminants with defaults initialized by an aggregate, obtain
12131 subtype from aggregate as for other mutable types.
12132 (Derived_Type_Declaration): If the derived type is a limited interface,
12133 set the corresponding flag (Is_Limited_Record is not sufficient).
12135 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12137 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
12138 to inline a function that returns an unconstrained type, the return
12139 expression must be the first variable declared in the body of the
12142 2006-02-17 Javier Miranda <miranda@adacore.com>
12144 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
12145 abstract interface type, the static analysis is not enough to know if
12146 the interface is implemented or not by the source tagged type. Hence
12147 we must pass the work to the expander to generate the required code to
12148 evaluate the conversion at run-time.
12149 (Resolve_Equality_Op): Do not apply previous
12150 transformation if expansion is disasbled, to prevent anomalies when
12151 locating global references in a generic unit.
12153 2006-02-17 Vincent Celier <celier@adacore.com>
12155 * snames.ads, snames.adb: New standard names for new project attributes:
12156 archive_builder, archive_indexer, compiler_pic_option,
12157 config_body_file_name, config_body_file_name_pattern,
12158 config_file_switches, config_file_unique, config_spec_file_name,
12159 config_spec_file_name_pattern, default_builder_switches,
12160 default_global_compiler_switches, default_language,
12161 dependency_file_kind, global_compiler_switches, include_path,
12162 include_path_file, language_kind, linker_executable_option,
12163 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
12164 roots, runtime_project.
12166 2006-02-17 Matthew Heaney <heaney@adacore.com>
12168 * a-convec.ads, a-convec.adb:
12169 (operator "&"): handle potential overflow for large index types
12170 (Insert): removed Contraint_Error when using large index types
12171 (Insert_Space): removed Constraint_Error for large index types
12172 (Length): moved constraint check from Length to Insert
12174 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
12175 as not null access.
12176 Explicit raise statements now include an exception message.
12177 (operator "&"): handle potential overflow for large index types
12178 (Insert): removed Contraint_Error when using large index types
12179 (Insert_Space): removed Constraint_Error for large index types
12180 (Length): moved constraint check from Length to Insert
12182 2006-02-17 Robert Dewar <dewar@adacore.com>
12184 * s-wchcnv.adb: Document handling of [ on output (we do not change
12185 this to ["5B"] and the new comments say why not.
12188 Add note for -gnatVo that this now includes the cases of type
12189 conversions and qualified expressions.
12190 Add comments on handling of brackets encoding for Text_IO
12192 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
12193 Thomas Quinot <quinot@adacore.com>
12194 Robert Dewar <dewar@adacore.com>
12195 Javier Miranda <miranda@adacore.com>
12197 * expander.adb: Fix typo in comment
12199 * exp_pakd.adb: Fix typo
12200 Minor comment reformatting.
12202 * g-dyntab.adb: Minor reformatting
12204 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
12205 aliased subprograms to look for the abstract interface subprogram.
12207 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
12209 * env.c (__gnat_setenv): Use size_t.
12210 (__gnat_unsetenv): Likewise.
12211 (__gnat_clearenv): Likewise.
12213 2006-02-16 Arnaud Charlet <charlet@adacore.com>
12215 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
12217 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12219 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
12220 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
12221 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
12222 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
12223 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
12224 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
12225 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
12226 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
12227 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
12230 2006-02-13 Jose Ruiz <ruiz@adacore.com>
12232 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
12233 protection against race conditions is not needed.
12234 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
12236 (Set_Specific_Handler): Add mutual exclusive access to the specific
12238 (Specific_Handler): Add mutual exclusive access for retrieving the
12241 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
12244 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
12245 Fall_Back_Handler and Specific_Handler.
12247 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
12248 termination handlers.
12249 Set two different owerflow depending on the maximal stack size.
12251 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
12252 protection against race conditions is not needed when executing the
12253 task termination handler.
12255 2006-02-13 Robert Dewar <dewar@adacore.com>
12257 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
12258 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
12259 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
12260 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
12261 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
12262 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
12263 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
12264 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
12265 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
12266 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
12267 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
12268 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
12269 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
12270 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
12271 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
12272 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
12273 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
12274 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
12275 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
12276 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
12277 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
12278 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
12279 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
12280 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
12281 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
12282 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
12283 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
12284 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
12285 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
12286 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
12287 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
12288 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
12289 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
12290 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
12293 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
12295 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
12296 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
12297 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
12298 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
12299 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
12300 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
12301 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
12302 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
12303 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
12305 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12307 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
12308 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
12309 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
12310 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
12311 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
12312 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
12313 replaced by anonymous access type.
12314 (pthread_sigmask): Now take an access sigset_t
12316 * s-osinte-hpux.ads: Ditto.
12317 (pthread_mutex_t, pthread_cond_t): Update definitions to support
12318 properly 32 and 64 bit ABIs.
12320 2006-02-13 Pascal Obry <obry@adacore.com>
12322 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
12323 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
12324 s-taprop-linux.adb, s-taprop-solaris.adb,
12325 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
12326 adjustement is already done when calling this routine.
12328 2006-02-13 Pascal Obry <obry@adacore.com>
12330 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
12331 table to take advantage of the 16 priority levels available on Windows
12332 2000 and XP. On NT4 there are only 7 priority levels, this is properly
12333 supported by this new mapping.
12335 2006-02-13 Nicolas Setton <setton@adacore.com>
12337 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
12338 (get_encoding): New subprogram. Extracts the encodings from an encoded
12341 2006-02-13 Pascal Obry <obry@adacore.com>
12342 Nicolas Roche <roche@adacore.com>
12343 Arnaud Charlet <charlet@adacore.com>
12345 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
12347 (__gnat_try_lock): Add unicode support by using a specific section on
12349 (__gnat_get_current_dir): Idem.
12350 (__gnat_open_read): Idem.
12351 (__gnat_open_rw): Idem.
12352 (__gnat_open_create): Idem.
12353 (__gnat_create_output_file): Idem.
12354 (__gnat_open_append): Idem.
12355 (__gnat_open_new): Idem.
12356 (__gnat_file_time_name): Idem.
12357 (__gnat_set_file_time_name): Idem.
12358 (__gnat_stat): Idem.
12359 (win32_no_block_spawn): Idem.
12360 (__gnat_locate_exec_on_path): Idem.
12361 (__gnat_opendir): New routine.
12362 (__gnat_closedir): Idem.
12363 (__gnat_readdir): Add new parameter length (pointer to int). Update
12364 implementation to use it and add specific Win32 code for Unicode
12366 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
12367 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
12368 (convert_addresses): Do not define this dummy routine on VMS.
12370 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
12371 runtime Unicode support will be activated.
12372 (S2WS): String to Wide-String conversion. This version just copy a
12373 string in non Unicode version.
12374 (WS2S): Wide-String to String conversion. This version just copy a
12375 string in non Unicode version.
12377 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
12378 (Open): Now import __gnat_opendir from adaint.c.
12379 (Read): Change the implementation to support unicode characters. It is
12380 not possible to use strlen() on Windows as this version supports only
12381 standard ASCII characters. So the length of the directory entry is now
12382 returned from the imported __gnat_readdir routine.
12383 Update copyright notice.
12385 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
12386 (opendir): Moved to adaint.c.
12388 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
12389 (Get_Directory): Fix wrong indexing.
12390 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
12391 __gnat_getenv from env.c
12392 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
12395 * env.h, env.c: New file.
12397 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
12398 adaint.c by __gnat_getenv from env.c
12400 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
12401 adaint.c by __gnat_getenv from env.c
12403 * Make-lang.in: Add env.o in the list of C object needed by gnat1
12405 Update dependencies.
12407 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12408 Olivier Hainque <hainque@adacore.com>
12409 Eric Botcazou <ebotcazou@adacore.com>
12411 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
12413 * gigi.h (value_factor_p): Add prototype and description, now public.
12415 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
12416 promotion for field with rep clause if the associated size was proven
12418 Expand comments describing attempts to use a packable type.
12419 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
12420 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
12421 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
12422 necessary since these are not different types and pointers may
12423 actually designate any subtype in this hierarchy.
12424 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
12425 discriminants but put them into record only if not Unchecked_Union;
12426 pass flag to components_to_record showing Unchecked_Union.
12427 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
12428 components before variants; don't set TYPE_UNCHECKED_UNION_P.
12429 (components_to_record): New argument UNCHECKED_UNION.
12430 Remove special case code for Unchecked_Union and instead use main code
12431 with small changes.
12434 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
12435 variable with the expression being built, only its inner field.
12437 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
12438 emit_sequence_entry_statements.
12439 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
12440 (establish_gnat_vms_condition_handler): Move before
12441 Subprogram_Body_to_gnu.
12442 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
12443 for a subprogram if it has a foreign convention or is exported.
12444 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
12445 substituted for a CONST_DECL.
12446 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
12447 Etype to assoc_to_constructor.
12448 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
12449 discriminants of Unchecked_Union.
12450 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
12451 don't need cluttering preprocessor directives.
12452 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
12453 condition handler as current in the compiled function.
12454 (body_with_handlers_p): New function. Tell whether a given sequence of
12455 statements node is attached to a package or subprogram body and involves
12456 exception handlers possibly nested within inner block statements.
12457 (emit_sequence_entry_statements): New function, to emit special
12458 statements on entry of sequences when necessary. Establish GNAT
12459 condition handler in the proper cases for VMS.
12460 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
12461 emit_sequence_entry_statements.
12463 * utils2.c (find_common_type): If both input types are BLKmode and
12464 have a constant size, use the smaller one.
12465 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
12468 * utils.c (value_factor_p): Make public, to allow uses from other gigi
12470 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
12471 (convert, case UNION_TYPE): Remove special treatment for unchecked
12475 (update_pointer_to): Update variants of pointer types to unconstrained
12476 arrays by attaching the list of fields of the main variant.
12478 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12479 Robert Dewar <dewar@adacore.com>
12481 * a-exexpr.adb, a-exexpr-gcc.adb
12482 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
12483 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
12484 Remove code unused for exception propagation for the compiler itself
12485 from a-except.adb and update to still share separate packages.
12487 * a-except.ads, a-except.adb: Ditto.
12488 Add comments that this version is now used only by the compiler and
12489 other basic tools. The full version that includes the Ada 2005 stuff
12490 is in separate files a-except-2005.ads/adb. The reason is that we do
12491 not want to cause bootstrap problems with compilers not recognizing
12493 Add exception reason code PE_Implicit_Return
12494 Add new exception reason code (Null Exception_Id)
12496 * a-except-2005.adb, a-except-2005.ads: New files.
12498 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
12500 * s-wchcon.adb: New file.
12502 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
12503 (traceback.o deps): Likewise.
12504 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
12505 Activate build of GMEM instrumentation library on VMS targets.
12506 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
12507 Use a-except-2005.ads/adb for all run-time library builds unless
12508 specified otherwise.
12509 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
12510 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
12511 Use s-parame.adb on all native platforms.
12512 Use s-parame-vxworks.adb on all vxworks platforms.
12513 Add env.c env.h in LIBGNAT_SRCS
12514 Add env.o in LIBGNAT_OBJS
12515 (GNATMAKE_OBJS): Remove ctrl_c.o object.
12516 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
12517 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
12518 supports VxWorks 6 RTPs.
12519 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
12520 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
12522 * types.h, types.ads (Terminate_Program): New exception
12523 Add comment on modifying multiple versions of a-except.adb when the
12524 table of exception reasons is modified.
12525 Add exception reason code PE_Implicit_Return
12526 Add new exception reason code (Null Exception_Id)
12528 * clean.adb (Initialize): Get the target parameters before checking
12529 if target is OpenVMS. Move the OpenVMS specific code here from package
12530 body elaboration code.
12532 2006-02-13 Thomas Quinot <quinot@adacore.com>
12533 Vincent Celier <celier@adacore.com>
12534 Robert Dewar <dewar@adacore.com>
12536 * ali-util.adb (Get_File_Checksum): Update to account for change in
12537 profile of Initialize_Scanner.
12539 * gprep.adb (Gnatprep): Update to account for change in profile of
12540 Initialize_Scanner.
12541 (Process_One_File): Same.
12543 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
12544 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
12545 that behaviour using the new Unit information recorded in the source
12546 files table, rather than going through all units every time.
12547 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
12548 (Get_Source_Unit): Same.
12550 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
12551 change in profile of Initialize_Scanner.
12552 (Prepare_To_Preprocess): Same.
12554 * lib.ads: Fix typo in comment (templace -> template).
12556 * prj-part.adb (Parse_Single_Project): Update to account for change in
12557 profile of Initialize_Scanner.
12559 * scn.adb (Initialize_Scanner): Account for change in profile of
12560 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
12561 Also record the association of the given Source_File_Index to the
12562 corresponding Unit_Number_Type.
12564 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
12566 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
12567 Remove Unit formal for generic scanner: this formal
12568 is only relevant to Scn (the scanner instance used to parse Ada source
12569 files), not to other instances. Update comment accordingly.
12570 (Scan): Use new function Snames.Is_Keyword_Name.
12572 * sinfo-cn.adb: Fix typo in comment.
12574 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
12577 * sinput.ads (Source_File_Record): New component Unit, used to capture
12578 the unit identifier (if any) associated to a source file.
12580 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
12581 Unit in Source_File_Record.
12583 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
12584 in profile of Initialize_Scanner.
12586 * scans.adb (Initialize_Ada_Keywords): New procedure
12588 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
12589 Ada keywords in the Namet table, without the need to call
12590 Initialize_Scanner.
12592 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
12593 (Is_Keyword_Name): New function
12595 * snames.ads: Add subtype Configuration_Pragma_Names
12596 Add pragma Ada_2005 (synonym for Ada_05)
12597 (Is_Keyword_Name): New function
12599 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
12601 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12603 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
12606 * a-stwima.adb (To_Set): Add extra check when N = 0.
12608 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
12610 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12612 * s-parame-mingw.adb, s-parame-linux.adb,
12613 s-parame-solaris.adb: Removed, replaced by s-parame.adb
12615 * s-parame-vxworks.ads: Fix typo.
12617 * s-parame-vxworks.adb: New file.
12619 * s-parame.adb: Version now used by all native platforms.
12620 (Default_Stack_Size): Use 2 megs for default stack size and use
12621 __gl_default_stack_size when available.
12622 (Minimum_Stack_Size): Use 12K.
12624 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
12625 (Create_Task): Refine implementation taking advantage of the XP stack
12626 size support. On XP, we now create the thread using the flag
12627 STACK_SIZE_PARAM_IS_A_RESERVATION.
12629 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
12631 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
12632 XP and 0 on older Windows versions.
12634 * interfac-vms.ads: Removed, no longer used.
12636 2006-02-13 Matthew Heaney <heaney@adacore.com>
12638 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
12639 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
12640 a-cohase.adb: All explicit raise statements now include an exception
12643 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
12644 (Update_Element_Preserving_Key): renamed op to just Update_Element.
12645 Explicit raise statements now include an exception message
12647 * a-cihase.ads, a-cohase.ads: Removed comment.
12649 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
12650 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
12651 a-szbzha.adb, a-szfzha.ads: New files.
12653 2006-02-13 Matthew Heaney <heaney@adacore.com>
12655 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
12658 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12660 * lang.opt: Wvariadic-macros: New option.
12661 Wold-style-definition: Likewise.
12662 Wmissing-format-attribute: Likewise.
12664 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
12665 -Wold-style-definition and -Wmissing-format-attribute.
12667 2006-02-13 Robert Dewar <dewar@adacore.com>
12669 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
12671 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
12673 2006-02-13 Nicolas Roche <roche@adacore.com>
12675 * a-envvar.adb, a-envvar.ads: New files.
12677 2006-02-13 Douglas Rupp <rupp@adacore.com>
12679 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
12681 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
12683 2006-02-13 Pat Rogers <rogers@adacore.com>
12685 * a-rttiev.adb, a-rttiev.ads: New files.
12687 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
12689 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
12690 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
12692 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
12694 2006-02-13 Robert Dewar <dewar@adacore.com>
12696 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
12697 sem_case.adb: Minor code reorganization (not Present should be No)
12699 2006-02-13 Geert Bosch <bosch@adacore.com>
12700 Gary Dismukes <dismukes@adacore.com>
12702 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
12703 0, since the lower bound of the actual string may be greater than one.
12706 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
12707 layout is requested.
12709 2006-02-13 Vincent Celier <celier@adacore.com>
12711 * back_end.adb (Scan_Compiler_Arguments): Check if
12712 Search_Directory_Present is True and, if it is, add the argument in
12713 the source search directory path.
12715 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
12716 Search_Directory_Present to True.
12718 2006-02-13 Joel Brobecker <brobecke@adacore.com>
12720 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
12721 volatile, to tell the compiler to preserve this variable at any level
12723 (Gen_Versions_Ada): Temporarily work around codegen bug.
12725 2006-02-13 Vincent Celier <celier@adacore.com>
12727 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
12728 gcc to link with option -shared-libgcc.
12729 (Gnatlink): Remove duplicate switches -shared-libgcc
12731 2006-02-13 Robert Dewar <dewar@adacore.com>
12733 * gnatvsn.ads (Current_Year): New constant, used to easily update
12734 copyright on all GNAT tools.
12736 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
12739 2006-02-13 Robert Dewar <dewar@adacore.com>
12741 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
12742 after hyphen (small aesthetic change useful for a range of numbers
12744 Suppress range checks for a couple of assignments which otherwise
12745 cause validity checks with validity checking turned on.
12747 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
12748 Improvement in error message for object.
12749 (Rep_Item_Too_Late): Remove '!' in warning message.
12751 2006-02-13 Robert Dewar <dewar@adacore.com>
12752 Eric Botcazou <ebotcazou@adacore.com>
12754 * err_vars.ads: Suppress range checks for a couple of assignments
12755 which otherwise cause validity checks with validity checking turned on.
12758 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
12759 Make message unconditional if it is a warning.
12760 (Error_Msg_NEL): Always output warning messages.
12761 Suppress range checks for a couple of assignments which otherwise
12762 cause validity checks with validity checking turned on.
12764 * errout.ads (Message Insertion Characters): Document that '!' is
12765 implied by '?' in error messages.
12767 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
12768 (Gnat1drv): Use a goto to end of main subprogram instead of
12769 Exit_Program (E_Success) so that finalization can occur normally.
12771 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12773 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
12776 2006-02-13 Vincent Celier <celier@adacore.com>
12778 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
12779 Unchecked_Conversion functions.
12780 (Modification_Time): Use direct conversion of OS_Time to Calendar time
12781 when OpenVMS returns False.
12783 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
12784 a-dirval.adb (OpenVMS): New Boolean function
12786 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12787 Thomas Quinot <quinot@adacore.com>
12789 * checks.adb (Build_Discriminant_Checks): If the expression being
12790 checks is an aggregate retrieve the values of its discriminants to
12791 generate the check, rather than creating a temporary and a reference
12793 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
12794 (Install_Null_Excluding_Check): Ditto
12795 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
12796 not for the renamed object, so that the actual itype is attached in the
12799 2006-02-13 Robert Dewar <dewar@adacore.com>
12800 Vincent Celier <celier@adacore.com>
12802 * debug.adb: Eliminate numeric switches for binder/gnatmake
12804 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
12805 switches for the compiler.
12806 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
12807 (Scan_Make_Switches): When failing with an illegal switch, output an
12808 error message with the full switch.
12809 Eliminate numeric switches for binder/gnatmake
12811 * switch.ads, switch.adb (Bad_Switch): New procedure
12813 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
12814 Remove 0-9 as debug flag character possibilities
12815 -d is now controlling the primary stack size when its value is a
12816 positive. Also add checks against invalid values, and support for kb,
12817 mb. Ditto for -D switch.
12819 2006-02-13 Robert Dewar <dewar@adacore.com>
12820 Serguei Rybin <rybin@adacore.com>
12822 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
12823 save/restore routines.
12824 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12825 were not always properly handled previously.
12826 Since we are changing the tree format anyway, also get rid of the
12827 junk obsolete Immediate_Errors flag.
12828 (Tree_Read): Change the way of reading Tree_Version_String - now we
12829 read the version string from the tree even if its length is not the
12830 same as the length of the version string computed from Gnatvsn.
12831 (Search_Directory_Present): New Boolean flag for the compiler.
12832 Define Tree_Version_String as a dynamic string.
12833 (Default_Stack_Size): new variable, used to handle switch -d.
12836 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
12837 only for main unit.
12838 Add pragma Ada_2005 (synonym for Ada_05)
12839 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12840 were not always properly handled previously.
12842 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
12843 explicit Ada_95 to Ada_2005.
12845 2006-02-13 Javier Miranda <miranda@adacore.com>
12846 Robert Dewar <dewar@adacore.com>
12847 Ed Schonberg <schonberg@adacore.com>
12849 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
12850 against errors in the source program: a private types for which the
12851 corresponding full type declaration is missing and pragma CPP_Virtual
12853 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
12854 (Is_Known_Null): New flag
12855 (Has_Pragma_Pure): New flag
12856 (No_Return): Present in all entities, set only for procedures
12857 (Is_Limited_Type): A type whose ancestor is an interface is limited if
12858 explicitly declared limited.
12859 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
12860 entities. Only used for component marked Is_Tag. If present it stores
12861 the Offset_To_Top function used to provide this value in tagged types
12862 whose ancestor has discriminants.
12864 * exp_ch2.adb: Update status of new Is_Known_Null flag
12866 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
12868 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
12869 the categorization sense if Is_Pure was set by pragma Pure_Function.
12871 2006-02-13 Quentin Ochem <ochem@adacore.com>
12872 Olivier Hainque <hainque@adacore.com>
12874 * bindusg.adb: Updated documentation for -d and -D switches.
12876 * raise.h (__gnat_set_globals): added new parameter for
12877 Default_Stack_Size.
12879 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
12880 (__gnat_handle_vms_condition): Adjust context before raise.
12881 (__gnat_install_handler): Restore the global vector setup for GCC
12882 versions before 3.4, as the frame based circtuitry is not available
12884 (__gnat_set_globals): added a parameter default_stack_size
12885 (__gl_default_stack_size): new variable.
12887 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12889 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
12890 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
12891 does not exist in the Ada RM.
12892 (Compatible_Int_Bounds): Determine whether two integer range bounds
12893 are of equal length and have the same start and end values.
12894 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
12895 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
12896 aggregate when it is part of an object declaration.
12897 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
12898 constrains discriminants of its parent, add explicitly the discriminant
12899 constraints of the ancestor by retrieving them from the
12900 stored_constraint of the parent.
12902 2006-02-13 Robert Dewar <dewar@adacore.com>
12904 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
12905 attribute Mechanism_Code is applied to renamed subprogram, modify
12906 prefix to point to base subprogram.
12907 Max/Min attributes now violate Restriction No_Implicit_Conditionals
12909 * sinfo.ads: Document that Mechanism_Code cannot be applied to
12910 renamed subprograms so that the front-end must replace the prefix
12913 2006-02-13 Javier Miranda <miranda@adacore.com>
12914 Gary Dismukes <dismukes@adacore.com>
12916 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
12917 availability of RE_Interface_Tag.
12918 (Build_Initialization_Call): Fix wrong access to the discriminant value.
12919 (Freeze_Record_Type): Do not generate the tables associated with
12920 timed and conditional dispatching calls through synchronized
12921 interfaces if compiling under No_Dispatching_Calls restriction.
12922 When compiling for Ada 2005, for a nonabstract
12923 type with a null extension, call Make_Controlling_Function_Wrappers
12924 and insert the wrapper function declarations and bodies (the latter
12925 being appended as freeze actions).
12926 (Predefined_Primitive_Bodies): Do not generate the bodies of the
12927 predefined primitives associated with timed and conditional
12928 dispatching calls through synchronized interfaces if we are
12929 compiling under No_Dispatching_Calls.
12930 (Build_Init_Procedure): Use RTE_Available to check if a run-time
12931 service is available before generating a call.
12932 (Make_Controlling_Function_Wrappers): New procedure.
12933 (Expand_N_Full_Type_Declaration): Create a class-wide master for
12934 access-to-limited-interfaces because they can be used to reference
12935 tasks that implement such limited interface.
12936 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
12937 procedure spec and body of the Offset_To_Top function that is generated
12938 when the parent of a type with discriminants has secondary dispatch
12940 (Init_Secondary_Tags): Handle the case in which the parent of the type
12941 containing secondary dispatch tables has discriminants to generate the
12942 correct arguments to call Set_Offset_To_Top.
12943 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
12945 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
12946 Add Wide_[Wide_]Expanded_Name.
12947 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
12948 the same functionality of Get_Prim_Op_Address but applied to predefined
12949 primitive operations because the pointers to the predefined primitives
12950 are now saved in a separate table.
12951 (Parent_Size): Modified to get access to the separate table of primitive
12952 operations or the parent type.
12953 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
12954 functionality of Set_Prim_Op_Address but applied to predefined primitive
12956 (Set_Signature): New subprogram used to store the signature of a DT.
12957 (Displace): If the Offset_To_Top value is not static then call the
12958 function generated by the expander to get such value; otherwise use
12959 the value stored in the table of interfaces.
12960 (Offset_To_Top): The type of the actual has been changed to Address to
12961 give the correct support to tagged types with discriminants. In this
12962 case this value is stored just immediately after the tag field.
12963 (Set_Offset_To_Top): Two new formals have been added to indicate if the
12964 offset_to_top value is static and hence pass this value to the run-time
12965 to store it in the table of interfaces, or else if this value is dynamic
12966 and then pass to the run-time the address of a function that is
12967 generated by the expander to provide this value for each object of the
12970 * rtsfind.ads (Default_Prin_Op_Count): Removed.
12971 (Default_Prim_Op_Count): New entity
12972 (Get_Predefined_Prim_Op_Address): New entity
12973 (Set_Predefined_Prim_Op_Address): New entity
12974 (RE_Set_Signature): New entity
12976 2006-02-13 Thomas Quinot <quinot@adacore.com>
12977 Ed Schonberg <schonberg@adacore.com>
12979 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
12980 Make_Adjust_Call done for a newly-allocated object.
12982 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
12983 in a subprogram are wrapped in a cleanup block, indicate that the
12984 subprogram contains an inner block with an exception handler.
12985 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
12986 Adjust call is for a newly-allocated object. In that case we must not
12987 assume that the finalization list chain pointers are correct (since they
12988 come from a bit-for-bit copy of the original object's pointers) so if
12989 the attach level would otherwise be zero (no change), we set it to 4
12990 instead to cause the pointers to be reset to null.
12992 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
12993 reset chain pointers to null.
12995 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12997 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
12998 string, and the context requires a loop for the assignment (e.g.
12999 because the left-hand side is packed), generate a unique name for the
13000 temporary that holds the string, to prevent spurious name clashes.
13002 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13003 Javier Miranda <miranda@adacore.com>
13004 Robert Dewar <dewar@adacore.com>
13005 Gary Dismukes <dismukes@adacore.com>
13007 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
13008 return unconstrained arrays.
13010 (Expand_Call): An indirect call through an access parameter of a
13011 protected operation is not a protected call.
13012 Add circuit to raise CE in Ada 2005 mode following call
13013 to Raise_Exception.
13014 (Register_DT_Entry): Do nothing if
13015 the run-time does not give support to abstract interfaces.
13016 (Freeze_Subprogram): In case of dispatching operations, do not generate
13017 code to register the operation in the dispatch table if the source
13018 is compiled with No_Dispatching_Calls.
13019 (Register_Predefined_DT_Entry): Generate code that calls the new
13020 run-time subprogram Set_Predefined_Prim_Op_Address instead of
13021 Set_Prim_Op_Address.
13023 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
13024 on array assignments if the right-hand side is a function call that has
13025 been inlined. Check is performed on the assignment in the block.
13026 (Process_Bounds): If bounds and range are overloaded, apply preference
13027 rule for root operations to disambiguate, and diagnose true ambiguity.
13028 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
13029 a tag-indeterminate right-hand side even when Expander_Active is True.
13030 Needed to ensure that dispatching calls to T'Input are allowed and
13031 get the tag of the target class-wide object.
13033 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
13034 an inherited primitive operation that already overrides several
13035 abstract interface primitives. For transitivity, the new entity must
13036 also override all the abstract interface primitives covered by the
13037 inherited overriden primitive.
13038 Emit warning if new entity differs from homograph in same scope only in
13039 that one has an access parameter and the other one has a parameter of
13040 a general access type with the same designated type, at the same
13041 position in the signature.
13042 (Make_Inequality_Operator): Use source locations of parameters and
13043 subtype marks from corresponding equality operator when creating the
13044 tree structure for the implicit declaration of "/=". This does not
13045 change anything in behaviour except that the decoration of the
13046 components of the subtree created for "/=" allows ASIS to get the
13047 string images of the corresponding identifiers.
13048 (Analyze_Return_Statement): Remove '!' in warning message.
13049 (Check_Statement_Sequence): Likewise.
13050 (Analyze_Subprogram_Body): For an access parameter whose designated type
13051 is an incomplete type imported through a limited_with clause, use the
13052 type of the corresponding formal in the body.
13053 (Check_Returns): Implicit return in No_Return procedure now raises
13054 Program_Error with a compile time warning, instead of beging illegal.
13055 (Has_Single_Return): Function returning unconstrained type cannot be
13056 inlined if expression in unique return statement is not an identifier.
13057 (Build_Body_To_Inline): It is possible to inline a function call that
13058 returns an unconstrained type if all return statements in the function
13059 return the same local variable. Subsidiary procedure Has_Single_Return
13060 verifies that the body conforms to this restriction.
13062 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
13063 same type, and one of them is of an anonymous access type, convert
13064 the other operand to it, so that this is a valid binary operation for
13066 (Resolve_Type_Conversion): Handle subtypes of protected types and
13067 task types when accessing to the corresponding record type.
13068 (Resolve_Allocator): Add '\' in 2-line warning message.
13069 Remove '!' in warning message.
13070 (Resolve_Call): Add '\' in 2-line warning message.
13071 (Valid_Conversion): Likewise.
13072 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
13073 resulting type may be an access type with an implicit dereference.
13074 Obtain the proper component from the designated type.
13075 (Make_Call_Into_Operator): Handle properly a call to predefined equality
13076 given by an expanded name with prefix Standard, when the operands are
13077 of an anonymous access type.
13078 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
13079 Explicit_Dereference and Resolve_Selected_Component, to verify that the
13080 prefix of the expression is not of an incomplete type. Allows full
13081 diagnoses of all semantic errors.
13082 (Resolve_Actuals): If the actual is an allocator whose directly
13083 designated type is a class-wide interface we build an anonymous
13084 access type to use it as the type of the allocator. Later, when
13085 the subprogram call is expanded, if the interface has a secondary
13086 dispatch table the expander will add a type conversion to force
13087 the displacement of the pointer.
13088 (Resolve_Call): If a function that returns an unconstrained type is
13089 marked Inlined_Always and inlined, the call will be inlined and does
13090 not require the creation of a transient scope.
13091 (Check_Direct_Boolean_Op): Removed
13092 (Resolve_Comparison_Op): Remove call to above
13093 (Resolve_Equality_Op): Remove call to above
13094 (Resolve_Logical_Op): Inline above, since this is only call.
13095 (Valid_Conversion): Handle properly conversions between arrays of
13096 convertible anonymous access types.
13099 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
13100 the literal in an unchecked conversion, because GCC 4.x needs a static
13101 value for a string bound.
13103 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13104 Hristian Kirtchev <kirtchev@adacore.com>
13106 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
13107 components of the corresponding record, take into account component
13108 definitions that are access definitions.
13109 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
13110 procedure is not considered a dispatching call and will be expanded
13113 2006-02-13 Javier Miranda <miranda@adacore.com>
13115 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
13116 controlling argument of the dispatching call is an abstract interface
13117 class-wide type then we use it directly.
13118 Check No_Dispatching_Calls restriction.
13119 (Default_Prim_Op_Position): Remove the code that looks for the last
13120 entity in the list of aliased subprograms. This code was wrong in
13122 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
13123 when the source is compiled with the No_Dispatching_Calls restriction.
13124 (Init_Predefined_Interface_Primitives): No need to inherit primitives
13125 if we are compiling with restriction No_Dispatching_Calls.
13126 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
13127 subprograms if we are compiling under No_Dispatching_Calls restriction.
13128 (Make_DT): Generate a dispatch table with a single dummy entry if
13129 we are compiling with the No_Dispatching_Calls restriction. In
13130 addition, in this case we don't generate code that calls to the
13131 following run-time subprograms: Set_Type_Kind, Inherit_DT.
13132 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
13133 of this subprogram if compiling with the No_Dispatching_Calls
13135 (Expand_Type_Conversion): Instead of using the actual parameter,
13136 the argument passed as parameter to the conversion function was
13137 erroneously referenced by the expander.
13138 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
13139 Set_Predefined_Primitive_Op_Address and Set_Signature.
13140 (Expand_Dispatching_Call): Generate call to
13141 Get_Predefined_Prim_Op_Address for predefined primitives.
13142 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
13143 predefined primitives.
13144 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
13145 primitives we reserve one dummy entry to ensure that the tag does not
13146 point to some memory that is associated with some other object. In
13147 addition, remove all the old code that generated the assignments
13148 associated with the signature of the dispatch table and replace them
13149 by a call to the new subprogram Set_Signature.
13150 (Set_All_DT_Position): Change the algorithm because now we have a
13151 separate dispatch table associated with predefined primitive operations.
13152 (Expand_Interface_Conversion): In case of non-static offset_to_top
13153 add explicit dereference to get access to the object after the call
13154 to displace the pointer to the object.
13155 (Expand_Interface_Thunk): Modify the generation of the actual used
13156 in the calls to the run-time function Offset_To_Top to fulfil its
13158 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
13160 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13162 * exp_dist.adb (Copy_Specification): For access parameters, copy
13163 Null_Exclusion flag, which will have been set for stream subprograms
13166 2006-02-13 Pascal Obry <obry@adacore.com>
13168 * expect.c (__gnat_expect_portable_execvp): New implementation. The
13169 previous implementation was using the C runtime spawnve routine but
13170 the corresponding wait was using directly the Win32 API. This was
13171 causing some times a lock when waiting for an event using
13172 WaitForSingleObject in __gnat_waitpid. This new implementation uses
13173 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
13174 API fixes this problem.
13176 2006-02-13 Robert Dewar <dewar@adacore.com>
13178 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
13181 2006-02-13 Thomas Quinot <quinot@adacore.com>
13183 * exp_pakd.ads: Fix typos in comments.
13185 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
13186 array reference that is an explicit dereference, mark the converted
13187 (packed) array reference as analyzed to prevent a forthcoming
13188 reanalysis from resetting its type to the original (non-packed) array
13191 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13192 Javier Miranda <miranda@adacore.com>
13193 Eric Botcazou <ebotcazou@adacore.com>
13195 * exp_util.ads, exp_util.adb (Find_Prim_Op,
13196 Is_Predefined_Primitive_Operation): When
13197 searching for the predefined equality operator, verify that operands
13198 have the same type.
13199 (Is_Predefined_Dispatching_Operation): Remove the code that looks
13200 for the last entity in the list of aliased subprograms. This code
13201 was wrong in case of renamings.
13202 (Set_Renamed_Subprogram): New procedure
13203 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
13204 Exp_Type constant computed when entering this subprogram.
13205 (Known_Null): New function
13206 (OK_To_Do_Constant_Replacement): New function
13207 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
13208 (Side_Effect_Free): An attribute reference 'Input is not free of
13209 side effect, unlike other attributes that are functions. (from code
13211 (Remove_Side_Effects): Expressions that involve packed arrays or records
13212 are copied at the point of reference, and therefore must be marked as
13213 renamings of objects.
13214 (Is_Predefined_Dispatching_Operation): Return false if the operation is
13215 not a dispatching operation.
13218 (Remove_Side_Effects): Lift enclosing type conversion nodes for
13219 elementary types in all cases.
13221 2006-02-13 Javier Miranda <miranda@adacore.com>
13223 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
13224 task types when accessing to the corresponding record type.
13225 Remove '!' in warning message.
13227 2006-02-13 Olivier Hainque <hainque@adacore.com>
13229 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
13230 to avoid useless and space inefficient overalignments on targets where
13231 Max_Alignment is larger than 16.
13233 2006-02-13 Pascal Obry <obry@adacore.com>
13235 * g-catiio.adb (Sec_Number): New type used to compute the number of
13236 seconds since 1-1-1970.
13237 (Image) [Natural]: The parameter was an Integer, as we can't deal with
13238 negative numbers (years, months...) it is better to have a Natural here.
13240 (Image) [Number]: Change parameter from Long_Integer to Number.
13241 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
13242 overflow for dates past year 2038.
13244 2006-02-13 Matthew Heaney <heaney@adacore.com>
13246 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
13249 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13251 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
13253 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
13254 finalization can occur normally.
13256 2006-02-13 Vincent Celier <celier@adacore.com>
13258 * gnatcmd.adb (Rules_Switches): New table
13259 (Add_To_Rules_Switches): New procedure
13260 (GNATCmd): For command CHECK, put all options following "-rules" in the
13261 Rules_Switches table. Append these -rules switches after the -cargs
13264 2006-02-13 Robert Dewar <dewar@adacore.com>
13266 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
13267 These two cases were generating incorrect output, and if this unit
13268 was built with checks on, generated a discriminant mismatch constraint
13271 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13272 Robert Dewar <dewar@adacore.com>
13274 * lib-xref.adb (Get_Type_Reference): For a private type whose full
13275 view is an array type, indicate the component type as well, for
13276 navigation purposes.
13277 (Generate_Reference): Don't consider array ref on LHS to be a case
13278 of violating pragma Unreferenced.
13279 Do not give Ada 2005 warning except on real reference.
13281 2006-02-13 Vincent Celier <celier@adacore.com>
13283 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
13284 main source, add switch -mdebug-main=_ada_ so that the executable can
13285 be debugged by the standard VMS debugger.
13286 (Gnatmake): Set No_Main_Subprogram to True when there is no main
13287 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
13288 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
13289 of the last source, as the binding and linking phases are never
13291 Set all executable obsolete when rebuilding a library.
13293 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
13296 2006-02-13 Javier Miranda <miranda@adacore.com>
13299 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
13300 code to improve the error message reported when the program has
13301 declarations of abstract interface types and it is not compiled with
13302 the -gnat05 switch.
13303 (P_Access_Definition): Reorganize the code to improve the error
13304 message reported when the new Ada 2005 syntax for anonymous
13305 access types is used and the program is not compiled with the
13308 2006-02-13 Robert Dewar <dewar@adacore.com>
13310 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
13311 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
13314 2006-02-13 Javier Miranda <miranda@adacore.com>
13316 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
13317 against source containing syntax errors.
13319 2006-02-13 Vincent Celier <celier@adacore.com>
13321 * prj.adb (Reset): Initialize the first element of table Namings with
13322 the standard naming data.
13324 2006-02-13 Vincent Celier <celier@adacore.com>
13326 * prj.ads (Error_Warning): New enumeration type
13328 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
13329 unknown, use the location of the project to report the error.
13330 (When_No_Sources): New global variable
13331 (Report_No_Ada_Sources): New procedure
13332 (Check): New parameter When_No_Sources. Set value of global variable
13334 (Find_Sources): Call Report_No_Ada_Sources when appropriate
13335 (Get_Sources_From_File): Ditto
13336 (Warn_If_Not_Sources): Better warning messages indicating the unit name
13339 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
13340 Call Prj.Proc.Process with parameter When_No_Sources.
13342 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
13343 Call Recursive_Check with parameter When_No_Sources.
13344 (Recursive_Check): New parameter When_No_Sources. Call itself and
13345 Prj.Nmsc.Check with parameter When_No_Sources.
13346 (Process): New parameter When_No_Sources. Call Check with parameter
13348 (Copy_Package_Declarations): New procedure to copy renamed parameters
13349 and setting the location of the declared attributes to the location
13350 of the renamed package.
13351 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
13354 2006-02-13 Vincent Celier <celier@adacore.com>
13356 * prj-makr.adb (Make): Preserve the comments from the original project
13358 When removing nodes (attributes Source_Dirs, Source_Files,
13359 Source_List_File and package Naming), save the comments and attach the
13360 saved comments to the newly created nodes.
13361 Do not add a with clause for the naming package if one already exists.
13363 2006-02-13 Javier Miranda <miranda@adacore.com>
13364 Gary Dismukes <dismukes@adacore.com>
13365 Robert Dewar <dewar@adacore.com>
13367 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
13369 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
13370 aliased entities to look for the overriden abstract interface
13372 (Is_Interface_Subprogram): Complete documentation.
13373 (Check_Dispatching_Operation): Do not generate code to register the
13374 operation in the dispatch table if the source is compiled with
13375 restriction No_Dispatching_Calls.
13376 (Override_Dispatching_Operation): Check for illegal attempt to override
13377 No_Return procedure with procedure that is not No_Return
13378 (Check_Dispatching_Call): Suppress the check for an abstract operation
13379 when the original node of an actual is a tag-indeterminate attribute
13380 call, since the attribute, which must be 'Input, can never be abstract.
13381 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
13382 call to the Input attribute (even when rewritten).
13383 (Propagate_Tag): Augment comment to indicate the possibility of a call
13384 to an Input attribute.
13386 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
13387 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
13389 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
13390 No_Wide_Characters is no longer partition-wide
13391 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
13394 2006-02-13 Douglas Rupp <rupp@adacore.com>
13396 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
13398 2006-02-13 Javier Miranda <miranda@adacore.com>
13400 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
13401 handles default-initialized components to keep separate the management
13402 of this feature but also avoid the unrequired resolution and
13403 expansion of components that do not have partially initialized
13405 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
13406 (Check_Bounds): Likewise.
13407 (Check_Length): Likewise.
13409 2006-02-13 Javier Miranda <miranda@adacore.com>
13410 Ed Schonberg <schonberg@adacore.com>
13412 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
13413 abstract interface type call analyze_and_resolve to expand the type
13414 conversion into the corresponding displacement of the
13415 reference to the base of the object.
13416 (Eval_Attribute, case Width): For systems where IEEE extended precision
13417 is supported, the maximum exponent occupies 4 decimal digits.
13418 (Accessibility_Message): Add '\' in 2-line warning message.
13419 (Resolve_Attribute): Likewise.
13420 (case Attribute_Access): Significantly revise checks
13421 for illegal access-to-subprogram Access attributes to properly enforce
13422 the rules of 3.10.2(32/2).
13423 Diagnose use of current instance with an illegal attribute.
13425 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
13427 (Enclosing_Generic_Unit): New function to return a node's innermost
13428 enclosing generic declaration node.
13429 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
13430 (Type_Access_Level): The accessibility level of anonymous acccess types
13431 associated with discriminants is that of the current instance of the
13432 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
13433 (Compile_Time_Constraint_Error): Handle case of conditional expression.
13434 (Kill_Current_Values_For_Entity): New function
13435 (Enter_Name): Change formal type to Entity_Id
13437 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
13438 Ed Schonberg <schonberg@adacore.com>
13439 Gary Dismukes <dismukes@adacore.com>
13441 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
13442 Analyze_Compilation_Unit.
13443 Detect and warn on redundant with clauses detected in a package spec
13444 and/or body when -gnatwr is used.
13445 (Analyze_Context): Analyze config pragmas before other items
13446 (Install_Context_Items): Don't analyze config pragmas here
13447 (Install_Limited_Withed_Unit): Set limited entity of package in
13448 with_clause so that cross-reference information or warning messages on
13449 unused packages can be properly generated
13450 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
13451 has Error_Posted set. Prevent infinite loops in illegal programs.
13452 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
13453 to the point of the error test requiring the current unit to be private.
13454 This ensures that private with clauses are not exempted from the basic
13455 checking for being a descendant of the same library unit parent as a
13456 withed private descendant unit.
13457 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
13458 handle private with clauses properly, as well as to account for cases
13459 where the withed unit is a public descendant of a private ancestor
13460 (in which case the current unit must be a descendant of the private
13461 ancestor's parent). The spec comments were updated accordingly. Also,
13462 the old error message in this subprogram was replaced with error
13463 messages that mirror the errors tested and reported by
13464 Check_Private_Child_Unit.
13465 Parameter and variable names improved for readability.
13466 (Install_Limited_Context_Clauses): Remove test for a withed unit being
13467 private as the precondition for calling
13468 Check_Private_Limited_Withed_Unit since that subprogram has been
13469 revised to test public units as well as private units.
13471 2006-02-13 Thomas Quinot <quinot@adacore.com>
13472 Robert Dewar <dewar@adacore.com>
13473 Ed Schonberg <schonberg@adacore.com>
13474 Javier Miranda <miranda@adacore.com>
13476 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
13477 that Scope_Stack.First = 1.
13478 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13479 were not always properly handled previously.
13480 (Formal_Entity): Complete rewrite, to handle properly some complex case
13481 with multiple levels of parametrization by formal packages.
13482 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
13483 to the corresponding derived type declaration for proper semantics.
13485 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
13486 (Check_Component): Enforce restriction on components of
13487 unchecked_unions: a component in a variant cannot contain tasks or
13489 (Unchecked_Union): Allow nested variants and multiple discriminants, to
13491 Add pragma Ada_2005 (synonym for Ada_05)
13492 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13493 were not always properly handled previously.
13494 Document that pragma Propagate_Exceptions has no effect
13495 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
13496 (Set_Convention_From_Pragma): Check that if a convention is
13497 specified for a dispatching operation, then it must be
13498 consistent with the existing convention for the operation.
13499 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
13500 longer required to specify an vtable-ptr component in the record. For
13501 compatibility reasons we leave the support for the previous definition.
13502 (Analyze_Pragma, case No_Return): Allow multiple arguments
13504 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
13505 non-overrideen inherited operation with a controlling result as
13506 illegal only its implicit declaration comes from the derived type
13507 declaration of its result's type.
13508 (Check_Possible_Deferred_Completion): Relocate the object definition
13509 node of the subtype indication of a deferred constant completion rather
13510 than directly analyzing it. The analysis of the generated subtype will
13511 correctly decorate the GNAT tree.
13512 (Record_Type_Declaration): Check whether this is a declaration for a
13513 limited derived record before analyzing components.
13514 (Analyze_Component_Declaration): Diagnose record types not explicitly
13515 declared limited when a component has a limited type.
13516 (Build_Derived_Record_Type): Code reorganization to check if some of
13517 the inherited subprograms of a tagged type cover interface primitives.
13518 This check was missing in case of a full-type associated with a private
13520 (Constant_Redeclaration): Check that the subtypes of the partial and the
13521 full view of a constrained deferred constant statically match.
13522 (Mentions_T): A reference to the current type in an anonymous access
13523 component declaration must be an entity name.
13524 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
13525 class_wide type to refer to full type, not to the incomplete one.
13526 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
13527 available. Required to give support to the certified run-time.
13528 (Analyze_Component_Declaration): In case of anonymous access components
13529 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
13530 (Process_Discriminants): For an access discriminant, use the
13531 discriminant specification as the associated_node_for_itype, to
13532 simplify accessibility checks.
13534 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13535 Javier Miranda <miranda@adacore.com>
13537 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
13538 abstract interpretations on an operator, remove interpretations that
13539 yield Address or a type derived from it, if one of the operands is an
13541 (Try_Object_Operation.Try_Primitive_Operation,
13542 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
13543 location when creating the new reference to a primitive or class-wide
13544 operation as a part of rewriting a subprogram call.
13545 (Try_Primitive_Operations): If context requires a function, collect all
13546 interpretations after the first match, because there may be primitive
13547 operations of the same type with the same profile and different return
13548 types. From code reading.
13549 (Try_Primitive_Operation): Use the node kind to choose the proper
13550 operation when a function and a procedure have the same parameter
13552 (Complete_Object_Operation): If formal is an access parameter and prefix
13553 is an object, rewrite as an Access reference, to match signature of
13554 primitive operation.
13555 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
13556 by an expanded name with prefix Standard, when the operands are of an
13557 anonymous access type.
13558 (Remove_Abstract_Operations): If the operation is abstract because it is
13559 inherited by a user-defined type derived from Address, remove it as
13560 well from the set of candidate interpretations of an overloaded node.
13561 (Analyze_Membership_Op): Membership test not applicable to cpp-class
13564 2006-02-13 Bob Duff <duff@adacore.com>
13566 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
13567 redundant use clauses.
13568 In particular, if the scope of two use clauses overlaps, but one is not
13569 entirely included in the other, we should not warn. This can happen
13570 with nested packages.
13571 (Analyze_Subprogram_Renaming): Protect the compiler against previously
13572 reported errors. The bug was reported when the compiler was built
13573 with assertions enabled.
13574 (Find_Type): If the node is a 'Class reference and the prefix is a
13575 synchronized type without a corresponding record, return the type
13578 2006-02-13 Javier Miranda <miranda@adacore.com>
13580 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
13581 if this is the full-declaration associated with a private declaration
13582 that implement interfaces, then the private type declaration must be
13584 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
13585 as aliased. The use of the 'access attribute is not available for such
13586 object (for this purpose the object should be explicitly marked as
13587 aliased, but being an anonymous type this is not possible).
13589 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13590 Robert Dewar <dewar@adacore.com>
13592 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
13593 compilation unit is an elaboration scope.
13594 (Add_Task_Proc): Add '\' in 2-line warning message.
13595 (Activate_All_Desirable): Deal with case of unit with'ed by parent
13597 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13598 Javier Miranda <miranda@adacore.com>
13600 * sem_type.adb (Write_Overloads): Improve display of candidate
13602 (Add_One_Interp): Do not add to the list of interpretations aliased
13603 entities corresponding with an abstract interface type that is an
13604 immediate ancestor of a tagged type; otherwise we have a dummy
13605 conflict between this entity and the aliased entity.
13606 (Disambiguate): The predefined equality on universal_access is not
13607 usable if there is a user-defined equality with the proper signature,
13608 declared in the same declarative part as the designated type.
13609 (Find_Unique_Type): The universal_access equality operator defined under
13610 AI-230 does not cover pool specific access types.
13611 (Covers): If one of the types is a generic actual subtype, check whether
13612 it matches the partial view of the other type.
13614 2006-02-13 Thomas Quinot <quinot@adacore.com>
13616 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
13617 line. This is necessary to allow In_Extended_Main_Unit to provide
13618 correct results for itypes while writing out expanded source.
13619 (Close_File): No need to update the source_index_table here since it's
13620 now done for each line.
13622 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13623 Robert Dewar <dewar@adacore.com>
13625 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
13626 preserve the source unit where the itype is declared, and prevent a
13628 (Note_Implicit_Run_Time_Call): New procedure
13629 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
13632 * sprint.ads: Document use of $ for implicit run time routine call
13634 2006-02-13 Quentin Ochem <ochem@adacore.com>
13636 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
13639 2006-02-13 Bob Duff <duff@adacore.com>
13641 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
13642 Scan_Unsigned, so we do not scan leading blanks and sign twice.
13643 Integer'Value("- 5") and Integer'Value("-+5") now correctly
13644 raise Constraint_Error.
13646 * s-vallli.adb (Scan_Long_Long_Integer): Call
13647 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
13648 do not scan leading blanks and sign twice.
13649 Integer'Value("- 5") and Integer'Value("-+5") now correctly
13650 raise Constraint_Error.
13652 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
13653 Scan_Long_Long_Unsigned): Split out most of the processing from
13654 Scan_Long_Long_Unsigned out into
13655 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
13656 This prevents scanning leading blanks and sign twice.
13657 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
13660 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
13661 out most of the processing from Scan_Unsigned out into
13662 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
13663 This prevents scanning leading blanks and sign twice.
13665 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
13666 use with Modular'Value attribute.
13667 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
13670 2006-02-13 Robert Dewar <dewar@adacore.com>
13672 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
13674 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
13676 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
13677 (PPC VxWorks): Likewise.
13678 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
13679 (forced_callee): Make non-inlinable and non-pure.
13680 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
13682 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13683 Ben Brosgol <brosgol@adacore.com>
13684 Robert Dewar <dewar@adacore.com>
13686 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
13688 Document that gnatbind -M option is for cross environments only.
13689 Added description of using gnatmem to trace gnat rtl allocs and deallocs
13690 Add note on use of $ to label implicit run time calls
13691 Add documentation for -gnatyI (check mode IN)
13692 Updated chapter on compatibility with HP Ada
13693 VMS-oriented edits.
13694 Ran spell and corrected errors
13695 Add documentation for gnatbind -d and rework documentation of -D
13697 Add subprogram/data elimination section.
13698 Minor editing of annex A.
13699 Add section for gnatcheck.
13700 Add documentation for restriction No_Dispatching_Calls
13701 Add documentation for pragma Ada_2005
13702 Remove mention of obsolete pragma Propagate_Exceptions
13703 Document that pragma Unreferenced can appear after DO in ACCEPT
13704 Clarify Pure_Function for library level units
13705 Mention Max/Min in connection with No_Implicit_Conditionals
13706 No_Wide_Characters restriction is no longer partition-wide
13707 Add a nice example for Universal_Literal_String attribute
13708 Document that pragma No_Return can take multiple arguments
13710 * ug_words: Added entry for gnatcheck
13712 * g-ctrl_c.ads (Install_Handler): Enhance comments
13714 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
13716 * g-trasym.ads: Add documentation on how to do off line symbolic
13717 traceback computation.
13719 * s-fatgen.adb: Add comments for Unaligned_Valid
13721 * stand.ads: Fix typo in comment
13723 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13725 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
13727 2006-02-06 Roger Sayle <roger@eyesopen.com>
13729 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
13731 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13734 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
13735 implementation that calls __main.
13737 2006-01-25 Peter O'Gorman <peter@pogma.com>
13740 * Makefile.in (GCC_LINK): Remove quotes.
13741 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
13744 (powerpc-darwin): Pass -shared-libgcc when building shared library.
13746 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13749 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
13751 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13753 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
13755 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13757 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
13760 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13762 * Make-lang.in: Update dependencies
13764 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13766 * Make-lang.in: Add rule for ada/exp_sel.o
13768 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13770 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
13772 2005-12-09 Arnaud Charlet <charlet@adacore.com>
13774 * gnatvsn.ads (Library_Version): Bump to version 4.2
13775 (ASIS_Version_Number): Bumped.
13777 2005-12-09 Doug Rupp <rupp@adacore.com>
13779 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
13780 Ada bind file prefix on VMS from b$ to b__.
13781 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
13784 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
13785 Targparm.OpenVMS_On_Target.
13786 (Object_Suffix): Initialize with target object suffix.
13787 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
13789 * butil.adb: Change some Hostparm.OpenVMS checks to
13790 Targparm.OpenVMS_On_Target.
13792 * clean.adb: Change some Hostparm.OpenVMS checks to
13793 Targparm.OpenVMS_On_Target.
13794 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
13795 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
13796 Ada bind file prefix on VMS from b$ to b__.
13798 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
13799 --GCC so that Get_Target_Parameters can find system.ads.
13800 (Gnatlink): Call Get_Target_Parameters in mainline.
13801 Initialize standard packages for Targparm.
13802 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
13803 (Process_Args): Also Check for object files with target object
13805 (Make_Binder_File_Names): Create with target object extension.
13806 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
13809 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
13810 Targparm.OpenVMS_On_Target.
13811 ({declaration},Build_Library,Check_Library): Change Ada bind file
13812 prefix on VMS from b$ to b__.
13814 * osint-b.adb: Change some Hostparm.OpenVMS checks to
13815 Targparm.OpenVMS_On_Target.
13816 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
13819 * targext.c: New file.
13821 * Makefile.in: add support for vxworks653 builds
13822 (../../vxaddr2line): gnatlink with targext.o.
13823 (TOOLS_LIBS): Move targext.o to precede libgnat.
13824 (init.o, initialize.o): Minor clean up in dependencies.
13825 (GNATLINK_OBJS): Add targparm.o, snames.o
13826 Add rules fo building targext.o and linking it explicitly with all
13828 Also add targext.o to gnatlib.
13830 * Make-lang.in: Add rules for building targext.o and linking it in
13831 with gnat1 and gnatbind.
13832 Add entry for exp_sel.o.
13834 * osint.adb Change some Hostparm.OpenVMS checks to
13835 Targparm.OpenVMS_On_Target.
13836 (Object_File_Name): Use target object suffix.
13838 * osint.ads (Object_Suffix): Remove, no longer used.
13839 (Target_Object_Suffix): Initialize with target object suffix.
13841 * rident.ads: Add special exception to license.
13843 * targparm.adb (Get_Target_Parameters): Set the value of
13844 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
13846 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
13848 * targparm.ads: Add special exception to license.
13850 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
13852 (Copy_File): Make sure from file is closed if error on to file
13853 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
13855 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
13856 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
13858 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
13859 target object suffix.
13861 2005-12-09 Jose Ruiz <ruiz@adacore.com>
13862 Quentin Ochem <ochem@adacore.com>
13863 Florian Villoing <villoing@adacore.com>
13865 * a-taster.ads, a-taster.adb: New files.
13867 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
13868 link to the version that does nothing. This way the task termination
13869 routine is not executed twice for the environment task when finishing
13870 because of an unhandled exception.
13872 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
13873 handler because of an unhandled exception.
13875 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
13876 System.Tasking.Utilities instead of that in System.Tasking.Stages.
13878 * s-finimp.adb (initialization code): Modify the soft link for the
13879 finalization of the global list instead of Adafinal.
13881 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
13882 non-tasking version of the soft link for task termination. We do
13883 nothing since if we are using the non-tasking version it
13884 means that the task termination functionality is not used.
13885 (Null_Finalize_Global_List): Add this null version for the procedure
13886 in charge of finalizing the global list for controlled objects.
13887 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
13888 instead for handling run-time termination in a more flexible way.
13889 (Adafinal_NT): This new procedure will take care of finalizing the
13890 global list for controlled objects if needed, but no tasking
13893 * s-tarest.adb (Task_Lock): Do not try to lock again the
13894 Global_Task_Lock if we already own it. Otherwise, we get blocked in
13895 some run-time operations.
13896 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
13897 until all nested locks have been released.
13898 (Task_Wrapper): Call the fall-back task termination handler. It
13899 applies to all tasks but the environment task.
13900 (Finalize_Global_Tasks): Add the call for the task termination
13901 procedure for the environment task.
13902 (Task_Wrapper): suppress warnings around declaration of
13903 Secondary_Stack_Address.
13905 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
13906 moved to the Common_ATCB record.
13907 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
13908 Common_ATCB record.
13909 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
13910 Common_ATCB record.
13912 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
13913 Fall_Back_Handler, and Specific_Handler.
13915 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
13916 defined in Ada.Task_Termination, to avoid circular dependencies.
13917 (Termination_Handler): Redefine this type here, alredy defined in
13918 Ada.Task_Termination, for avoiding circular dependencies.
13919 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
13920 for storing task termination handlers. In addition,
13921 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
13922 Common_ATCB because it is used by both the regular and the restricted
13924 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
13925 Common_ATCB because it is used by both the regular and the restricted
13927 (Common_ATCB): Added a dynamic task analyzer field.
13929 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
13930 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
13931 (Task_Wrapper): Call the task termination handler. It applies to all
13932 tasks but the environment task.
13933 (Finalize_Global_Tasks): Call the task termination procedure for the
13934 environment task. The call to Finalize_Global_List is now performed
13935 using the soft links mechanism.
13936 (Task_Wrapper): added dynamic stack analysis.
13938 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
13939 potentially blocking operations has been moved from
13940 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
13941 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
13942 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
13943 this run-time check.
13945 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
13946 of task termination procedure.
13947 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
13948 link for the task termination procedure.
13950 * bindusg.adb: (Bindusg): Added documentation for -u option.
13952 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
13953 (Get_Main_C): Add handling of dynamic stack analysis.
13954 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
13956 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
13957 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
13958 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
13960 * opt.ads: Added flags used by dynamic stack measurement.
13961 (Max_Line_Length): Remove (not used anymore)
13963 * s-io.ads, s-io.adb (Standard_Error): new subprogram
13964 (Standart_Output): new subprogram
13965 (Set_Output): new subprogram
13966 (Put): now uses the value of Current_Out to know if the output has to be
13967 send to stderr or stdout.
13969 * s-stausa.ads: Complete implementation.
13971 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
13973 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
13974 list of Ada 05 files.
13975 (GNAT Library Units): Add AltiVec files.
13977 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
13978 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
13979 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
13981 2005-12-09 Nicolas Setton <setton@adacore.com>
13983 * adaint.c (__gnat_locate_regular_file): Return immediately if
13984 file_name is empty.
13986 2005-12-09 Javier Miranda <miranda@adacore.com>
13987 Hristian Kirtchev <kirtchev@adacore.com>
13989 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
13990 to the specification because the frontend generates code that uses this
13992 (Set_Interface_Table): Add missing assertion.
13993 Update documentation describing the run-time structure.
13994 (Displace): New subprogram that displaces the pointer to the object
13995 to reference one of its secondary dispatch tables.
13996 (IW_Membership): Modified to use the new table of interfaces.
13997 (Inherit_TSD): Modified to use the new table of interfaces.
13998 (Register_Interface_Tag): Use the additional formal to fill the
13999 contents of the new table of interfaces.
14000 (Set_Interface_Table): New subprogram that stores in the TSD the
14001 pointer to the table of interfaces.
14002 (Set_Offset_To_Top): Use the additional formal to save copy of
14003 the offset value in the table of interfaces.
14004 Update structure of GNAT Primary and Secondary dispatch table diagram.
14005 Add comment section on GNAT dispatch table prologue.
14006 (Offset_To_Signature): Update the constant value of the Signature field.
14007 (Dispatch_Table): Update comment on hidden fields in the prologue.
14008 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
14009 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
14010 the type of formal parameter T to Tag, introduce additional assertions.
14011 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
14013 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
14015 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
14016 in all the calls to Expand_Interface_Thunk. Instead of referencing the
14017 record component containing the tag of the secondary dispatch table we
14018 have to use the Offset_To_Top run-time function to get this information;
14019 otherwise if the pointer to the base of the object has been displace
14020 we get a wrong value if we use the 'position attribute.
14022 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
14023 all the calls to Expand_Interface_Thunk.
14024 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
14025 interfaces; hence the call to Set_Interface_Table was clearly wrong.
14026 (Collect_All_Interfaces): Modify the internal subprogram Collect to
14027 ensure that the interfaces implemented by the ancestors are placed
14028 at the header of the generated list.
14029 (Expand_Interface_Conversion): Handle the case in which the displacement
14030 associated with the interface conversion is not statically known. In
14031 this case we generate a call to the new run-time subprogram Displace.
14032 (Make_DT): Generate and fill the new table of interfaces.
14033 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
14034 Get_Tagged_Kind and Set_Tagged_Kind.
14035 (Tagged_Kind): New function that determines the tagged kind of a type
14036 with respect to limitedness and concurrency and returns a reference to
14038 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
14039 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
14040 primary dispatch table for a type.
14041 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
14042 secondary dispatch table respectively of a tagged type.
14044 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
14045 (Expand_Interface_Conversion): New subprogram to indicate if the
14046 displacement of the type conversion is statically known.
14047 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
14049 * rtsfind.ads (RE_Offset_To_Top): New entity
14050 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
14051 accessible to users.
14052 (Re_Displace): New entity
14053 (RE_Interface_Data): New entity
14054 (RE_Set_Interface_Data): New_Entity
14055 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
14056 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
14057 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
14058 RE_TK_Tagged, RE_TK_Task.
14060 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
14061 Init_Secondary_Tags_Internal to allow its use with interface types and
14062 also to generate the code for the new additional actual required
14063 by Set_Offset_To_Top.
14064 (Build_Init_Statements): In case of components associated with abstract
14065 interface types there is no need to generate a call to its IP.
14066 (Freeze_Record_Type): Generate Select Specific Data tables only for
14068 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
14069 the bodies and specifications of the predefined primitive operations
14070 dealing with dispatching selects and abort, 'Callable, 'Terminated only
14071 for concurrent types.
14073 * exp_sel.ads, exp_sel.adb: New files.
14075 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
14076 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
14077 properly protected objects and attach handler in the case of the
14078 restricted profile.
14079 Move embeded package Select_Expansion_Utilities into a separate external
14081 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
14082 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
14083 (Build_K, Build_S_Assignment): New subprograms, part of the select
14084 expansion utilities.
14085 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
14086 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
14087 where the trigger is a dispatching procedure of a limited tagged type.
14089 2005-12-09 Olivier Hainque <hainque@adacore.com>
14091 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
14092 pointer initialization values. Make a SAVE_EXPR instead. Add comments
14093 about the use and expansion of SAVE_EXPRs in the various possible
14094 renaming handling cases.
14095 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
14096 abusing DECL_FCONTEXT.
14098 2005-12-09 Matthew Heaney <heaney@adacore.com>
14100 * a-convec.adb (Merge): Added assertions to check whether vector params
14103 * a-coinve.adb (Merge): Added assertions to check whether vector params
14106 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
14108 (Cursor'Read): raises PE
14110 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
14111 to its default value.
14113 * a-cihama.adb: Manually check whether cursor's key and elem are
14116 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
14117 (Merge): Assert that target and source lists are in order
14118 (Swap): Declare non-const temporaries, to pass to Splice
14120 * a-cdlili.ads: (Splice): Changed param name and param mode
14122 * a-cdlili.adb: (Splice): Changed param name and param mode
14123 (Merge): Assert that target and source lists are in order
14124 (Swap): Declare non-const temporaries, to pass to Splice
14126 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
14127 (Write): declare Stream param as not null
14129 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
14130 an exception message.
14132 2005-12-09 Thomas Quinot <quinot@adacore.com>
14133 Robert Dewar <dewar@adacore.com>
14135 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
14136 which is the absolute maximum length we can support.
14138 * frontend.adb: For the processing of configuration pragma files,
14139 remove references to Opt.Max_Line_Length, which is not checked anymore.
14141 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
14144 * scn.adb, scng.adb:
14145 Always check line length against the absolute supported maximum,
14146 Hostparm.Max_Line_Length.
14148 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
14149 value for the maximum line length is Max_Line_Length (not
14150 Column_Number'Last).
14151 Minor error msg update
14152 (Set_Style_Check_Options): New interface returning error msg
14153 Minor code reorganization (processing for 'M' was out of alpha order)
14155 * switch-c.adb: New interface for Set_Style_Check_Options
14157 * stylesw.ads (Set_Style_Check_Options): New interface returning error
14160 2005-12-09 Javier Miranda <miranda@adacore.com>
14162 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
14163 with IP subprogram were only supported if there were limited types.
14165 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
14166 records with IP subprogram were only supported if there were limited
14169 2005-12-09 Olivier Hainque <hainque@adacore.com>
14170 Eric Botcazou <ebotcazou@adacore.com>
14172 * trans.c (tree_transform, emit_check): Adjust calls to
14173 build_call_raise, passing the now expected GNAT_NODE argument.
14175 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
14176 source line information than what the current global locus indicates
14179 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
14180 field has overflowed.
14181 (build_call_raise): Add a GNAT_NODE argument to convey better source
14182 line information than what the current global locus indicates when
14184 (build_component_ref): Adjust call to build_call_raise.
14186 2005-12-09 Pascal Obry <obry@adacore.com>
14188 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
14189 the iterator is quitting iteration on parent directory.
14191 2005-12-09 Javier Miranda <miranda@adacore.com>
14193 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
14194 and the assignment to a class-wide object, before the assignment we
14195 generate a run-time check to ensure that the tag of the Target is
14196 covered by the tag of the source.
14198 2005-12-09 Robert Dewar <dewar@adacore.com>
14200 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
14201 parameter in call to Image_Wide_Character.
14203 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
14204 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
14205 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
14206 annoying FFFE/FFFF inconsistency.
14208 2005-12-09 Robert Dewar <dewar@adacore.com>
14209 Javier Miranda <miranda@adacore.com>
14210 Ed Schonberg <schonberg@adacore.com>
14212 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
14213 of type conversion.
14214 (Find_Interface): New subprogram that given a tagged type and one of its
14215 component associated with the secondary table of an abstract interface
14216 type, return the entity associated with such abstract interface type.
14217 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
14218 base type to create anonymous subtype, because entity may be a locally
14219 declared subtype or generic actual.
14220 (Find_Interface): New subprogram that given a tagged type and one of its
14221 component associated with the secondary table of an abstract interface
14222 type, return the entity associated with such abstract interface type.
14224 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
14225 conversion cannot be handled at compile time. In this case we pass this
14226 information to the expander to generate the appropriate code.
14228 2005-12-09 Robert Dewar <dewar@adacore.com>
14229 Ed Schonberg <schonberg@adacore.com>
14230 Gary Dismukes <dismukes@adacore.com>
14231 Javier Miranda <miranda@adacore.com>
14232 Hristian Kirtchev <kirtchev@adacore.com>
14234 * einfo.adb (Itype_Printed): New flag
14235 (Is_Limited_Type): Derived types do not inherit limitedness from
14236 interface progenitors.
14237 (Is_Return_By_Reference_Type): Predicate does not apply to limited
14240 * einfo.ads (Itype_Printed): New flag
14241 Move Is_Wrapper_Package to proper section
14242 Add missing Inline for Is_Volatile
14244 * output.ads, output.adb (Write_Erase_Char): New procedure
14245 (Save/Restore_Output_Buffer): New procedures
14246 (Save/Restore_Output_Buffer): New procedures
14248 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
14249 Add missing support for anonymous access type
14250 (Write_Id): Insert calls to Write_Itype
14251 (Write_Itype): New procedure to output itypes
14253 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
14254 use of "limited" in declaration.
14256 * sinfo.ads, sinfo.adb:
14257 Formal derived types can carry an explicit "limited" indication.
14259 * sem_ch3.adb: Add with and use of Targparm.
14260 (Create_Component): If Frontend_Layout_On_Target is True and the
14261 copied component does not have a known static Esize, then reset
14262 the size and positional fields of the new component.
14263 (Analyze_Component_Declaration): A limited component is
14264 legal within a protected type that implements an interface.
14265 (Collect_Interfaces): Do not add to the list the interfaces that
14266 are implemented by the ancestors.
14267 (Derived_Type_Declaration): If the parent of the full-view is an
14268 interface perform a transformation of the tree to ensure that it has
14269 the same parent than the partial-view. This simplifies the job of the
14270 expander in order to generate the correct object layout, and it is
14271 needed because the list of interfaces of the full-view can be given in
14273 (Process_Full_View): The parent of the full-view does not need to be
14274 a descendant of the parent of the partial view if both parents are
14276 (Analyze_Private_Extension_Declaration): If declaration has an explicit
14277 "limited" the parent must be a limited type.
14278 (Build_Derived_Record_Type): A derived type that is explicitly limited
14279 must have limited ancestor and progenitors.
14280 (Build_Derived_Type): Ditto.
14281 (Process_Full_View): Verify that explicit uses of "limited" in partial
14282 and full declarations are consistent.
14283 (Find_Ancestor_Interface): Remove function.
14284 (Collect_Implemented_Interfaces): New procedure used to gather all
14285 implemented interfaces by a type.
14286 (Contain_Interface): New function used to check whether an interface is
14288 (Find_Hidden_Interface): New function used to determine whether two
14289 lists of interfaces constitute a set equality. If not, the first
14290 differing interface is returned.
14291 (Process_Full_View): Improve the check for the "no hidden interface"
14292 rule as defined by AI-396.
14294 2005-12-09 Robert Dewar <dewar@adacore.com>
14296 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
14297 types, not on record subtypes.
14298 (Freeze_Entity): Code cleanup. Add barrier to the loop
14299 that generates the references for primitive operations. This allows to
14300 remove an unnecessary exception handler.
14301 Code reformatting and comment clean ups.
14303 2005-12-09 Vincent Celier <celier@adacore.com>
14305 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
14306 If GNAT CHECK is called with a project file, but with no
14307 source on the command line, call gnatcheck with all the compilable
14308 sources of the project.
14309 Take into account the new command Check, for gnatcheck. Treat as for
14310 other ASIS tools: take into account project, specific package Check and
14312 For ASIS tools, add the switches in package Compiler for
14313 the invocation of the compiler.
14315 * prj-attr.adb: Add package Check and its attributes
14317 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
14319 * vms_conv.adb (Initialize): Change Params of command Check to
14321 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
14322 Add data for new command Check
14324 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
14326 Add qualifiers for Check command options
14327 (Command_Type): New command Check
14329 2005-12-09 Thomas Quinot <quinot@adacore.com>
14331 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
14332 command line switch overruns the output buffer.
14334 2005-12-09 Robert Dewar <dewar@adacore.com>
14336 * sem_prag.adb: Processing for new pragma Complete_Representation
14337 (Analyze_Pragma, case Debug): Implement two argument form.
14339 * par-prag.adb: Entry for new pragma Complete_Representation
14340 (Prag, case Debug): Recognize two argument form of pragma Debug
14341 New interface for Set_Style_Check_Options.
14343 * sem_ch13.adb: Implement new pragma Complete_Representation.
14345 * snames.adb, snames.ads, snames.h: Entry for new pragma
14346 Complete_Representation.
14348 2005-12-09 Gary Dismukes <dismukes@adacore.com>
14350 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
14351 available user-specified stream attributes on limited parameters to
14352 also test the type directly rather than only its underlying type (for
14353 Ada 95) and, in the case of Ada 2005, to check that the user-specified
14354 attributes are visible at the point of the subprogram declaration.
14355 For Ada 2005, the error message is modified to indicate that the
14356 type's stream attributes must be visible (again, only for -gnat05).
14358 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14360 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
14361 anonymous access types.
14363 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
14364 matching of anonymous access types and anonymous access to subprogram
14365 types. 'R'M 4.9.1 (2/2).
14367 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14369 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
14370 rule prematurely when operands are universal, remaining ambiguities
14371 will be removed during resolution.
14374 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
14375 that are Ada 2005 functions.
14376 (Has_Abstract_Interpretation): Subsidiary to
14377 Remove_Conversions, to remove ambiguities caused by abstract operations
14378 on numeric types when operands are universal.
14380 2005-12-09 Robert Dewar <dewar@adacore.com>
14382 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
14383 for case where spec is categorized.
14385 2005-12-09 Javier Miranda <miranda@adacore.com>
14387 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
14388 types use the corresponding record type. This was not needed before
14389 the implementation of Ada 2005 synchronized types because
14390 concurrent types were never tagged types in Ada 95.
14392 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14394 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
14395 first subtype of the type of the expression to verify that it is a
14398 2005-12-09 Robert Dewar <dewar@adacore.com>
14400 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
14403 2005-12-09 Quentin Ochem <ochem@adacore.com>
14404 Robert Dewar <dewar@adacore.com>
14405 Ed Falis <falis@adacore.com>
14406 Florian Villoing <villoing@adacore.com>
14407 Thomas Quinot <quinot@adacore.com>
14408 Arnaud Charlet <charlet@adacore.com>
14410 * gnat_ugn.texi: Created section "Stack Related Tools"
14411 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
14412 "Stack Related Tools"
14413 Added subsection "Static Stack Usage Analysis"
14414 Added subsection "Dynamic Stack Usage Analysis"
14415 Include documentation of itypes in sprint listing (-gnatG)
14416 Documented gnatbind -D switch (default sec stack size for fixed sec
14418 Added Interrupt_State and Persistent_BSS to list of configuration
14420 Add missing doc for maximum value of nnn in -gnatyMnnn
14422 * gnat_rm.texi: Document the AltiVec binding.
14423 Add documentation for pragma Complete_Representation
14424 Shortened an overly long line (> 79 chars)
14425 Clarify documentation of unchecked conversion in implementation
14427 Document two argument form of pragma Debug
14429 * types.ads (Column_Number): Update documentation.
14431 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
14432 library level Finalize_Storage_Only objects (these are not attached to
14433 any finalization list).
14435 * system-mingw.ads: (Underlying_Priorities): Update comment.
14437 2005-12-09 Robert Dewar <dewar@adacore.com>
14439 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
14440 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
14441 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
14442 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
14443 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
14444 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
14445 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
14446 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
14449 2005-12-09 Robert Dewar <dewar@adacore.com>
14451 * s-vaflop-vms-alpha.adb: (Ne_F): New function
14452 (Ne_G): New function
14454 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
14455 for tag assignment.
14456 (Rewrite_Comparison): Handle case where operation is not a comparison
14457 and ignore, and also handle type conversion case.
14459 2005-12-09 Thomas Quinot <quinot@adacore.com>
14461 * exp_aggr.ads: Fix typo in comment.
14462 ???-mark Convert_Aggr_In_Assignment as needing documentation.
14464 2005-12-09 Gary Dismukes <dismukes@adacore.com>
14466 * layout.adb: Replace various uses of byte by storage unit throughout.
14467 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
14468 static size, convert to storage units before returning, to conform to
14471 2005-12-09 Matthew Gingell <gingell@adacore.com>
14473 * g-exctra.ads: Fix typo in comment.
14475 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14477 * utils.c: Minor reformatting.
14479 2005-12-09 Robert Dewar <dewar@adacore.com>
14482 Further comment fixes to make the status of the default file clear
14484 * s-bitops.adb: Clarify comment for Bits_Array
14486 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14488 * Make-lang.in (ada.install-normal): Remove.
14490 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14492 * Make-lang.in: Remove all dependencies on s-gtype.
14494 2005-12-05 Richard Guenther <rguenther@suse.de>
14496 * utils.c (convert): Use fold_convert where appropriate.
14498 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
14500 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
14503 2005-12-02 Richard Guenther <rguenther@suse.de>
14505 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
14507 2005-12-01 Roger Sayle <roger@eyesopen.com>
14509 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
14512 2005-11-23 Laurent GUERBY <laurent@guerby.net>
14514 * mlib-prj.adb (Build_Library): Initialize Delete.
14516 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
14518 * socket.c: Add extern int h_errno for rtems since networking header
14519 files are not available at this point in a tool bootstrap. Newlib
14520 only has basic C library header files.
14522 2005-11-19 Richard Guenther <rguenther@suse.de>
14523 Roger Sayle <roger@eyesopen.com>
14526 * misc.c (internal_error_function): Don't use vsprintf to format
14527 the error message text, instead use pp_format_text and the new
14528 pretty printer APIs. This allows handling of %qs, %w, etc.
14530 2005-11-18 Laurent GUERBY <laurent@guerby.net>
14533 * Makefile.in: Use s-auxdec-empty for RTEMS.
14535 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14538 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
14539 a temporary if taking the address of something that is neither
14540 reference, declaration, or constant, since the gimplifier
14541 can't handle that case.
14543 2005-11-17 Laurent GUERBY <laurent@guerby.net>
14546 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
14548 2005-11-16 Richard Guenther <rguenther@suse.de>
14550 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
14552 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
14555 * raise-gcc.c: Add missing stdarg.h include.
14557 2005-11-16 Richard Guenther <rguenther@suse.de>
14559 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
14560 (ada/misc.o): Likewise.
14562 2005-11-14 Thomas Quinot <quinot@adacore.com>
14564 * g-soccon.ads: Minor reformatting. Update comments.
14566 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
14567 gain visibility on the declaration of struct timeval.
14569 * g-soccon-freebsd.ads,
14570 g-soccon-darwin.ads,
14571 g-soccon-tru64.ads,
14575 g-soccon-solaris.ads,
14577 g-soccon-mingw.ads,
14578 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
14580 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
14581 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
14582 g-soccon-linux-x86.ads: New files.
14584 * g-socthi-mingw.adb:
14585 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
14587 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
14588 (time_t, suseconds_t): New types constructed to match the tv_sec
14589 and tv_usec fields of C struct timeval.
14590 (Timeval): Construct structure in terms of the new types.
14591 (Host_Errno): New function (imported from socket.c), returns last hosts
14594 * g-socthi-vxworks.adb: Add error handling circuitry.
14596 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
14597 components of struct timeval.
14598 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
14599 (Check_Selector): In error conditions, clear internal socket sets to
14600 avoid a memory leak.
14601 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
14602 Send_Timeout, Receive_Timeout.
14604 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
14605 the tv_sec and tv_usec fields of C struct timeval.
14606 (Timeval): Construct structure in terms of the new types.
14607 (Host_Errno): New function (imported from socket.c), returns last hosts
14610 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
14611 hosts database last error code.
14613 * gen-soccon.c: Complete value expansion should not be performed on
14614 TARGET, as it has the form of a math expression, and some components
14615 may be platform-defined macros.
14616 For VxWorks, generate the OK and ERROR values.
14617 New constants giving the sizes of the components of C struct timeval.
14619 2005-11-14 Robert Dewar <dewar@adacore.com>
14620 Ed Schonberg <schonberg@adacore.com>
14623 * types.ads: Include All_Checks in Suppress_Array
14625 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
14626 not(a=b), since we no longer do this rewriting, and hence it is not
14628 (Elaboration_Checks_Suppressed): Add special casing to
14629 deal with different cases of static and dynamic elaboration checks (all
14630 checks does not count in the first case, but does in the second).
14631 (Expr_Known_Valid): Do not assume that the result of any arbitrary
14632 function call is valid, since this is not the case.
14633 (Ensure_Valid): Do not apply validity check to a real literal
14634 in a universal or fixed context
14636 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
14637 elementary types using the operator in standard. It is cleaner not to
14638 modify the programmers intent, especially in the case of floating-point.
14639 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
14640 it did not matter because we always rewrote a/=b to not(a=b).
14641 (Expand_Allocator_Expression): For an allocator expression whose nominal
14642 subtype is an unconstrained packed type, convert the expression to its
14643 actual constrained subtype.
14644 Implement warning for <= or >= where < or > not possible
14645 Fix to Vax_Float tests (too early in many routines, causing premature
14646 Vax_Float expansions.
14648 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
14649 to be used with packages and generic packages as well as with
14651 (Suppress): Set All_Checks, but not Elaboration_Check, for case
14652 of pragma Suppress (All_Checks)
14653 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
14654 a string literal for precise control over warnings.
14655 Avoid raise of pragma in case of unrecognized pragma and just return
14658 * sem_prag.ads: Minor reformatting
14660 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
14661 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
14662 Switch. Do not handle any exception.
14663 Include -gnatwx as part of -gnatg (warn on redundant parens)
14664 Allow optional = after -gnatm
14665 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
14666 longer sets Elaboration_Checks.
14667 Code to set warning mode moved to Sem_Warn
14668 so that it can be shared by pragma processing.
14670 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
14673 * s-taprop-solaris.adb:
14674 Change some <= to =, to avoid new warning
14676 * a-exexda.adb, prj-proc.adb:
14677 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
14678 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
14680 2005-11-14 Robert Dewar <dewar@adacore.com>
14682 * exp_vfpt.adb: Handle /= case
14683 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
14684 so that we do not get duplicate scaling for fixed point conversions.
14686 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
14688 2005-11-14 Matthew Gingell <gingell@adacore.com>
14690 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
14691 Increase default priority on Lynx from 15 to 17, and meet the Ada
14692 requirement that Default_Priority be ((Priority'First +
14693 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
14695 2005-11-14 Vincent Celier <celier@adacore.com>
14697 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14698 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14699 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
14700 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
14701 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
14702 mlib-tgt-lynxos.adb (DLL_Prefix): New function
14704 2005-11-14 Doug Rupp <rupp@adacore.com>
14706 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
14709 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14711 * s-traces-default.adb, s-trafor-default.ads,
14712 s-tratas-default.adb: Fix compilation errors.
14714 2005-11-14 Jose Ruiz <ruiz@adacore.com>
14716 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
14717 raising the exception so the memory used is freed.
14719 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14721 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
14722 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
14723 (convert_address): Update comments and list of platforms using this.
14725 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
14728 2005-11-14 Pascal Obry <obry@adacore.com>
14729 Vincent Celier <celier@adacore.com>
14731 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
14734 * memroot.adb: Remove redundant with/use clause on
14735 System.Storage_Elements.
14737 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14739 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
14740 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
14741 related code to a-exexpr.adb
14742 (Save_Occurrence_And_Private): Move GCC EH related code to
14744 (Raise_Current_Excep): Add new variable Id with pragma
14745 volatile, to ensure that the variable lives on stack.
14747 * a-exexpr-gcc.adb, raise-gcc.c: New file.
14749 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
14751 Move GCC EH related code to a-exexpr-gcc.adb
14753 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
14755 Split the Linux version of g-soccon into separate variants for 32 and 64
14757 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
14758 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
14759 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
14760 of host variable $(RANLIB_FLAGS).
14761 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
14762 Code clean up: remove unused/obsolete targets.
14763 (EH_MECHANISM): New variable introduced to differenciate between the
14764 two EH mechanisms statically.
14765 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
14766 (LIBGNAT_OBJS): Add raise-gcc.o
14767 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
14768 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
14769 supports VxWorks 6 RTPs.
14770 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
14771 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
14773 * raise.c: Move all GCC EH-related routines to raise-gcc.c
14775 2005-11-14 Jose Ruiz <ruiz@adacore.com>
14777 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
14778 deferral level, when abort is not allowed, to a later stage (the
14780 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
14781 it will not get changed by the generated code. It was previously done
14784 2005-11-14 Thomas Quinot <quinot@adacore.com>
14785 Olivier Hainque <hainque@adacore.com>
14786 Eric Botcazou <ebotcazou@adacore.com>
14789 Factor common code to build a storage type for an unconstrained object
14790 from a fat or thin pointer type and a constrained object type.
14791 (annotate_value): Handle BIT_AND_EXPR.
14792 (annotate_rep): Don't restrict the back annotation of inherited
14793 components to the type_annotate_only case.
14794 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
14795 we are not defining the type.
14796 <E_Record_Type>: Likewise.
14797 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
14798 to get advantage of the new maybe_stabilize_reference interface, to
14799 ensure that what we reference is indeed stabilized instead of relying
14800 on assumptions on what the stabilizer does.
14801 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
14802 type imported through a limited_with clause, use its non-limited view.
14803 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
14805 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
14806 of #if sections + explicit comparisons of convention identifiers.
14807 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
14808 before early-returning for certain types when code generation is
14810 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
14811 nullification of gnu_expr we do for objects with address clause and
14812 that we are not defining.
14813 (elaborate_expression_1): Do not create constants when creating
14814 variables needed by the debug info: the dwarf2 writer considers that
14815 CONST_DECLs is used only to represent enumeration constants, and emits
14817 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
14818 object with an address clause into an indirect reference, drop the
14819 initializing expression.
14821 (STACK_CHECK_BUILTIN): Delete.
14822 (STACK_CHECK_PROBE_INTERVAL): Likewise.
14823 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
14824 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
14825 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
14826 corresponding to the renamed object as ignored for debugging purposes.
14828 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
14829 related): For a prefix that is a dereference of a fat or thin pointer,
14830 if there is an actual subtype provided by the front-end, use that
14831 subtype to build an actual type with bounds template.
14832 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
14833 is provided by the front-end, use that subtype to compute the size of
14834 the deallocated object.
14835 (gnat_to_gnu): When adding a statement into an elaboration procedure,
14836 check for a potential violation of a No_Elaboration_Code restriction.
14837 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14838 with extra arguments to control whether to recurse through non-values
14839 and to let the caller know if the stabilization has succeeded.
14840 (gnat_stabilize_reference): Now a simple wrapper around
14841 maybe_stabilize, for common uses without restriction on lvalues and
14842 without need to check for the success indication.
14843 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
14844 pass false instead of 0 as the FORCE argument which is a bool.
14845 (Identifier_to_gnu): Remove checks ensuring that an renamed object
14846 attached to a renaming pointer has been properly stabilized, as no such
14847 object is attached otherwise.
14848 (call_to_gnu): Invoke create_var_decl to create the temporary when the
14849 function uses the "target pointer" return mechanism.
14850 Reinstate conversion of the actual to the type of the formal
14851 parameter before any other specific treatment based on the passing
14852 mechanism. This turns out to be necessary in order for PLACEHOLDER
14853 substitution to work properly when the latter type is unconstrained.
14855 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
14857 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14858 with extra arguments to control whether to recurse through non-values
14859 and to let the caller know if the stabilization has succeeded.
14861 * utils2.c (gnat_build_constructor): Only sort the fields for possible
14862 static output of record constructor if all the components are constant.
14863 (gnat_build_constructor): For a record type, sort the list of field
14864 initializers in increasing bit position order.
14865 Factor common code to build a storage type for an unconstrained object
14866 from a fat or thin pointer type and a constrained object type.
14867 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
14868 types variants, and process special cases of VIEW_CONVERT expressions
14869 as their NOP_EXPR counterpart to ensure we get to the
14870 CORRESPONDING_VARs associated with CONST_DECls.
14871 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
14872 on the right-hand side.
14874 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
14876 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
14877 are converting back to its original type.
14878 (convert) <JM input>: Fallthrough regular conversion code instead of
14879 extracting the object if converting to a type variant.
14880 (create_var_decl): When a variable has an initializer requiring code
14881 generation and we are at the top level, check for a potential violation
14882 of a No_Elaboration_Code restriction.
14883 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
14884 SIZE and SIZE_UNIT which we need for later back-annotations.
14885 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
14886 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
14887 is an unchecked union.
14888 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
14889 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
14890 main variant, just replace the VIEW_CONVERT_EXPR.
14891 <UNION_TYPE>: Revert 2005-03-02 change.
14893 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
14895 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
14897 2005-11-14 Matthew Heaney <heaney@adacore.com>
14899 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
14900 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
14901 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
14902 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
14903 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
14904 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
14905 Compiles against the spec for ordered maps described in sections
14906 A.18.6 of the most recent (August 2005) AI-302 draft.
14908 2005-11-14 Olivier Hainque <hainque@adacore.com>
14910 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
14911 to ensure bias adjustments take place when need be and to prevent
14912 occurrences of intermediate overflows.
14914 2005-11-14 Matthew Gingell <gingell@adacore.com>
14915 Olivier Hainque <hainque@adacore.com>
14917 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
14920 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
14921 tracebacks on ia64 HP-UX and provide explanatory comment.
14922 Enable backtraces on ia64 GNU/Linux.
14923 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
14924 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
14926 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
14927 Javier Miranda <miranda@adacore.com>
14929 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
14930 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
14931 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
14932 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
14934 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
14935 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
14938 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
14939 subprogram that generates the external name associated with a
14940 secondary dispatch table.
14941 (Get_Secondary_DT_External_Name): New subprogram that generates the
14942 external name associated with a secondary dispatch table.
14944 2005-11-14 Emmanuel Briot <briot@adacore.com>
14946 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
14947 line in the ALI file to include both an instantiation reference, and a
14950 2005-11-14 Vincent Celier <celier@adacore.com>
14952 * clean.adb (Check_Project): Look for Ada code in extending project,
14953 even if Ada is not specified as a language.
14954 Use new function DLL_Prefix for DLL_Name
14955 (Clean_Interface_Copy_Directory): New procedure
14956 (Clean_Library_Directory): New procedure
14957 (Clean_Directory): Remove procedure, no longer used
14958 (Clean_Project): Do not delete any file in an externally built project
14960 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
14961 directory of an extending project, even when there are no Ada source
14963 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
14964 (Set_Ada_Paths.Add.Recursive_Add): Ditto
14966 * mlib-prj.adb (Check_Library): For all library projects, get the
14967 library file timestamp.
14968 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
14969 (Build_Library): Use new function DLL_Prefix for the DLL_Name
14970 (Clean): Remove procedure, no longer used
14971 (Ultimate_Extension_Of): New function
14972 (Build_Library): When cleaning the library directory, only remove an
14973 existing library file and any ALI file of a source of the project.
14974 When cleaning the interface copy directory, remove any source that
14975 could be a source of the project.
14977 * prj.ads, prj.adb (Project_Empty): Add values of new components
14978 Library_TS and All_Imported_Projects.
14979 (Project_Empty): Add values for new components of Project_Data:
14980 Library_ALI_Dir and Display_Library_ALI_Dir
14982 * prj-attr.adb: New project level attribute name Library_ALI_Dir
14984 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
14985 attribute Library_ALI_Dir.
14986 (Check_Library_Attributes): The library directory cannot be the same as
14987 any source directory of the project tree.
14988 (Check_Stand_Alone_Library): The interface copy directory cannot be
14989 the same as any source directory of the project tree.
14991 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
14992 all temporary files.
14994 2005-11-14 Robert Dewar <dewar@adacore.com>
14995 Ed Schonberg <schonberg@adacore.com>
14997 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
14998 (Check_Elab_Call): A call within a protected body is never an
14999 elaboration call, and does not require checking.
15000 (Same_Elaboration_Scope): Take into account protected types for both
15002 (Activate_Elaborate_All_Desirable): New procedure
15004 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
15007 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
15008 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
15010 * lib-writ.ads, lib-writ.adb:
15011 Implement new AD/ED for Elaborate_All/Elaborate desirable
15012 Use new Elaborate_All_Desirable flag in N_With_Clause node
15014 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
15015 N_Free_Statement nodes.
15016 Define new class N_Subprogram_Instantiation
15017 Add Elaborate_Desirable flag to N_With_Clause node
15018 Add N_Delay_Statement (covering two kinds of delay)
15020 * debug.adb: Introduce d.f flag for compiler
15021 Add -da switch for binder
15023 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15024 Cyrille Comar <comar@adacore.com>
15026 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
15027 for task component, in the case of a limited aggregate. The enclosed
15028 object declaration will create it earlier. Otherwise, in the case of a
15029 nested aggregate, the object may appear in the wrong scope.
15030 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
15031 (Gen_Assign): If the component being assigned is an array type and the
15032 expression is itself an aggregate, wrap the assignment in a block to
15033 force finalization actions on the temporary created for each row of the
15035 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
15036 structures are initialized after all discriminants are set so that
15037 they can be accessed even when their offset is dynamic.
15039 2005-11-14 Robert Dewar <dewar@adacore.com>
15040 Hristian Kirtchev <kirtchev@adacore.com>
15042 * sem_attr.adb: Implement Machine_Rounding attribute
15043 (Analyze_Access_Attribute): The access attribute may appear within an
15044 aggregate that has been expanded into a loop.
15045 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
15046 'Terminated whenever the prefix is of a task interface class-wide type.
15047 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
15048 the prefix is of a task interface class-wide type.
15050 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
15053 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
15054 Remove pragma Inline for [Unaligned_]Valid.
15055 Add comments that Valid routines do not work for Vax_Float
15057 * exp_attr.adb: Implement Machine_Rounding attribute
15059 * snames.h: Add entry for Machine_Rounding attribute
15061 2005-11-14 Javier Miranda <miranda@adacore.com>
15062 Robert Dewar <dewar@adacore.com>
15063 Hristian Kirtchev <kirtchev@adacore.com>
15065 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
15066 and related): For a prefix that is an explicit dereference of an
15067 access to unconstrained packed array type, annotate the dereference
15068 with an actual subtype so GIGI can make a correct size computation.
15069 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
15070 'Unrestricted_Access, if the designated type is an interface we
15071 add a type conversion to force the displacement of the pointer
15072 to the secondary dispatch table.
15073 Use Universal_Real instead of Long_Long_Float when we need a high
15074 precision float type for the generated code (prevents gratuitous
15075 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15076 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
15077 'Terminated for task interface class-wide objects. Generate a call to
15078 the predefined dispatching routine used to retrieve the _task_id from
15079 a task corresponding record.
15080 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
15082 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15083 (Check_Dispatching_Operation): Protect the frontend againts
15084 previously detected errors.
15086 * Makefile.rtl: Add new instantiations of system.fat_gen
15088 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
15089 Change name of instantiated package for better consistency
15090 with newly added system.fat_gen instantiations.
15092 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
15093 s-fvagfl.ads: New files.
15095 2005-11-14 Cyrille Comar <comar@adacore.com>
15096 Thomas Quinot <quinot@adacore.com>
15098 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
15099 assignment of a value of a tagged type that has been rewritten to a
15100 block statement, it is known by construction that no checks are
15101 necessary for the statements within the block: analyze it with checks
15103 (Expand_N_If_Statement): When killing a dead then-branch in an
15104 if-statement that has elsif_parts, recompute the Current_Value node
15105 for any entity whose value is known from the condition of the first
15107 (Expand_N_Return_Statement): When returning a mutable record, convert
15108 the return value into its actual subtype in order to help the backend
15109 to return the actual size instead of the maximum. This is another
15110 aftermath of not returning mutable records on the sec-stack anymore.
15112 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
15113 handling of error msg for suspicious reverse range iteration.
15114 (Check_Possible_Current_Value_Condition): Move declaration from body to
15115 spec, to allow this subprogram to be called from exp_ch5.
15117 2005-11-14 Thomas Quinot <quinot@adacore.com>
15119 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
15120 generate a set of nested array aggregates instead of a single flat
15121 aggregate for multi-dimensional arrays.
15123 2005-11-14 Pascal Obry <obry@adacore.com>
15125 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
15126 by spawnve is a process handle, no need to convert. Add a parameter
15127 close to control wether the process handle must be closed.
15128 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
15129 a process handle, not need to convert.
15130 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
15132 * g-expect.adb: (Kill): Document the new close parameter.
15133 (Close): Do not release the process handle in the kill there as
15134 waitpid() is using it.
15135 (Send_Signal): Release the process handle.
15137 2005-11-14 Robert Dewar <dewar@adacore.com>
15139 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
15140 need a high precision float type for the generated code (prevents
15141 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15144 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
15145 need a high precision float type for the generated code (prevents
15146 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15148 (Expand_Width_Attribute): In configurable run-time, the attribute is not
15149 allowed on non-static enumeration subtypes. Force a load error to emit
15150 the correct diagnostic.
15152 2005-11-14 Thomas Quinot <quinot@adacore.com>
15153 Robert Dewar <dewar@adacore.com>
15154 Ed Schonberg <schonberg@adacore.com>
15156 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
15157 subtype to compute the size of the designated object at run-time,
15158 create such a subtype and store it in the Actual_Designated_Subtype
15159 attribute of the N_Free_Statement.
15160 Generate itype for classwide designated object in both cases of
15161 user-specified storage pool: specific and class-wide, not only in the
15163 Raise CE when trying to set a not null access type object to null.
15164 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
15165 an explicit loop, because freeze nodes make its position variable.
15167 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
15170 2005-11-14 Javier Miranda <miranda@adacore.com>
15172 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
15173 Build_Stream_Procedure): Add the null-excluding attribute to the first
15175 This has no semantic meaning under Ada95 mode but it is a
15176 requirement under Ada05 mode.
15178 * par-ch3.adb (P_Access_Definition): Addition of warning message if
15179 the null exclusion is used under Ada95 mode
15180 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
15181 (P_Access_Definition): Remove assertion that forbids the use of
15182 the null-exclusion feature in Ada95.
15184 2005-11-14 Robert Dewar <dewar@adacore.com>
15186 * impunit.adb: Exclude container helper units not intended for use by
15189 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15191 * freeze.adb (Freeze_Entity): For an access formal that is an access
15192 to subprogram, freeze the anonymous subprogram type at the same time,
15193 to prevent later freezing in the wrong scope, such as the enclosing
15195 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
15196 subprogram whenever available.
15198 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15201 * gnatvsn.ads (Library_Version): Bump to 4.1
15203 2005-11-14 Robert Dewar <dewar@adacore.com>
15205 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
15206 Storage_Offset to avoid wrap around causing invalid results.
15208 2005-11-14 Pascal Obry <obry@adacore.com>
15210 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
15212 (Scan_Bind_Arg): Fail with an error message if -M option is used
15213 on a native compiler.
15215 2005-11-14 Robert Dewar <dewar@adacore.com>
15216 Vincent Celier <celier@adacore.com>
15218 * gprep.adb: Implement -C switch to scan comments
15220 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
15222 * scans.ads: Comment updates (including new use of Tok_Comment in
15225 * opt.ads: Add documentation for flags that are used by gprmake,
15226 currently and in the next version of gprmake.
15227 (Verbosity_Level): New variable
15228 Add Replace_In_Comments switch
15230 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
15232 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
15234 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15236 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
15237 message, friendlier.
15239 2005-11-14 Robert Dewar <dewar@adacore.com>
15241 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
15243 2005-11-14 Doug Rupp <rupp@adacore.com>
15245 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
15247 2005-11-14 Robert Dewar <dewar@adacore.com>
15249 * interfac.ads: Change declarations of IEEE float types so that we no
15250 longer need a separate version of this package for VMS.
15252 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15254 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
15255 internal entity created for the declaration of a child subprogram body
15256 with no spec as coming from source, to generate proper cross-reference
15259 2005-11-14 Vincent Celier <celier@adacore.com>
15261 * make.adb (Compile_Sources): Change verbose message to minimum
15262 verbosity level High for "is in an Ada library", "is a read-only
15263 library" and "is an internal library",
15264 (Create_Binder_Mapping_File): Path name of ALI file for library project
15265 must include the library directory, not the object directory.
15266 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
15267 for new switches -vl, -vm and -vh.
15268 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
15269 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
15270 (Compile_Sources): Do not attempt to compile if an ALI file is missing
15271 in a project that is externally built.
15272 (Compute_All_Imported_Projects): New procedure
15273 (Gnatmake): Check if importing libraries should be regenerated because
15274 at least an imported library is more recent.
15275 (Initialize): For each project compute the list of the projects it
15276 imports directly or indirectly.
15277 (Add_Library_Search_Dir): New procedure, used in place of
15278 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15279 put in the search paths.
15280 (Add_Source_Search_Dir): New procedure, used in place of
15281 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15282 put in the search paths.
15283 (Mark_Directory): Resolve the absolute path the directory before marking
15286 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
15287 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
15288 Switch. Do not handle any exception.
15289 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
15290 so that the switch is recognized as valid.
15291 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
15293 2005-11-14 GNAT Script <nobody@adacore.com>
15295 * Make-lang.in: Makefile automatically updated
15297 2005-11-14 Pascal Obry <obry@adacore.com>
15299 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
15301 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
15302 In both cases the last argument was dropped.
15304 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
15306 * namet.h: (Column_Numbe): New type.
15307 (Get_Column_Number): Define to sinput__get_column_number.
15308 (Instantiation): Define to sinput__instantiation.
15309 (Get_Column_Number): Declare.
15310 (Instantiation): Likewise.
15312 2005-11-14 Robert Dewar <dewar@adacore.com>
15314 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
15315 syntax, which could cause compiler hangs.
15317 2005-11-14 Vincent Celier <celier@adacore.com>
15319 * prj-ext.adb: Take into account new environment variable
15320 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
15322 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
15323 normalize its path name, making it absolute and resolving symbolic
15324 links, and replace the original if resolved path is different.
15326 2005-11-14 Vincent Celier <celier@adacore.com>
15328 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
15329 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
15331 2005-11-14 Emmanuel Briot <briot@adacore.com>
15333 * prj-pp.adb (Print): Do not output the with statement if the
15334 associated name is empty, which happens for virtual extending projects.
15335 (Print): Preserve the "extends all" attribute when printing the project.
15337 * prj-tree.ads (String_Value_Of): Add comment about returned value for
15338 a virtual extending project.
15340 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15342 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
15343 rhs of an assignment even if the type is unconstrained, when the
15344 context is non-expanding.
15345 In an inlined body, if the context type is private,
15346 resolve with its full view, which must be a composite type.
15348 2005-11-14 Robert Dewar <dewar@adacore.com>
15349 Ed Schonberg <schonberg@adacore.com>
15351 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15352 Do not give obsolescent warning on with of subprogram (since we
15354 (Analyze_With_Clause): Add test for obsolescent package
15355 (Install_Context_Clauses): If the unit is the body of a child unit, do
15356 not install twice the private declarations of the parents, to prevent
15357 circular lists of Use_Clauses in a parent.
15358 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
15359 compiling body of child unit.
15360 Use new class N_Subprogram_Instantiation
15361 (Expand_With_Clause): If this is a private with_clause for a child unit,
15362 appearing in the context of a package declaration, then the implicit
15363 with_clauses generated for parent units are private as well.
15364 (License_Check): Do not generate message if with'ed unit is internal
15366 2005-11-14 Gary Dismukes <dismukes@adacore.com>
15367 Ed Schonberg <schonberg@adacore.com>
15368 Thomas Quinot <quinot@adacore.com>
15370 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
15371 names are internal, because they will not have a corresponding partner
15372 in the actual package.
15373 (Analyze_Formal_Package): Move the setting of the formal package spec's
15374 Generic_Parent field so that it occurs prior to analyzing the package,
15375 to allow proper operation of Install_Parent_Private_Declarations.
15376 (Analyze_Package_Instantiation): Set the instantiated package entity's
15377 Package_Instantiation field.
15378 (Get_Package_Instantiation_Node): Move declaration to package spec.
15379 Retrieve the N_Package_Instantiation node when the Package_Instantiation
15381 (Check_Generic_Child_Unit): Within an inlined call, the only possible
15382 instantiation is Unchecked_Conversion, for which no parents are needed.
15383 (Inline_Instance_Body): Deinstall and record the use_clauses for all
15384 parent scopes of a scope being removed prior to inlining an instance
15386 (Analyze_Package_Instantiation): Do not perform front-end inlining when
15387 the current context is itself an instance within a non-instance child
15388 unit, to prevent scope stack errors.
15389 (Save_References): If the node is an aggregate that is an actual in a
15390 call, rewrite as a qualified expression to preserve some type
15391 information, to resolve possible ambiguities in the instance.
15392 (Instance_Parent_Unit): New global variable to record the ultimate
15393 parent unit associated with a generic child unit instance (associated
15394 with the existing Parent_Unit_Visible flag).
15395 (type Instance_Env): New component Instance_Parent_Unit for stacking
15396 parents recorded in the global Instance_Parent_Unit.
15397 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
15399 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
15400 it's not a top-level unit, and only do this if Instance_Parent_Unit is
15401 not already set. Replace test of Is_Child_Unit with test of parent's
15402 scope against package Standard. Add comments and a ??? comment.
15403 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
15404 on a child instance parent to test that the parent equals
15405 Instance_Parent rather than simply checking that the unit is not a
15407 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
15408 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
15409 a formal interface are ancestors of the corresponding actual.
15410 (Validate_Formal_Interface_Type): Additional legality checks.
15411 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
15412 interface types with ancestors.
15413 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
15414 to diagnose attempts to use generic within its own declaration.
15416 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15417 Javier Miranda <miranda@adacore.com>
15419 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
15421 (Build_Private_Derived_Type): The entity of the created full view of the
15422 derived type does not come from source. If after installing the private
15423 declarations of the parent scope the parent is still private, use its
15424 full view to construct the full declaration of the derived type.
15425 (Build_Derived_Record_Type): Relax the condition that controls the
15426 execution of the check that verifies that the partial view and
15427 the full view agree in the set of implemented interfaces. In
15428 addition, this test now only takes into account the progenitors.
15429 (Derive_Interface_Subprograms): No need to derive subprograms
15430 of ancestors that are interfaces.
15431 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
15433 Change name Is_Package to Is_Package_Or_Generic_Package
15434 (Complete_Subprograms_Derivation): Handle the case in which the full
15435 view is a transitive derivation of the ancestor of the partial view.
15436 (Process_Full_View): Rename local subprogram Find_Interface_In_
15437 Descendant to Find_Ancestor_Interface to leave the code more clear.
15438 Remove wrong code that avoids the generation of an error message
15439 when the immediate ancestor of the partial view is an interface.
15440 In addition some minor reorganization of the code has been done to
15441 leave it more clear.
15442 (Analyze_Type_Declaration): If type has previous incomplete tagged
15443 partial view, inherit properly its primitive operations.
15444 (Collect_Interfaces): Make public, for analysis of formal
15446 (Analyze_Interface_Declaration): New procedure for use for regular and
15447 formal interface declarations.
15448 (Build_Derived_Record_Type): Add support for private types to the code
15449 that checks if a tagged type implements abstract interfaces.
15450 (Check_Aliased_Component_Type): The test applies in the spec of an
15452 (Access_Type_Declaration): Clean up declaration of malformed type
15453 declared as an access to its own classwide type, to prevent cascaded
15455 (Collect_Interfaces): For private extensions and for derived task types
15456 and derived protected types, the parent may be an interface that must
15457 be included in the interface list.
15458 (Access_Definition): If the designated type is an interface that may
15459 contain tasks, create Master_Id for it before analyzing the expression
15460 of the declaration, which may be an allocator.
15461 (Record_Type_Declaration): Set properly the interface kind, for use
15462 in allocators, the creation of master id's for task interfaces, etc.
15464 2005-11-14 Javier Miranda <miranda@adacore.com>
15465 Ed Schonberg <schonberg@adacore.com>
15467 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
15468 omitted in case of stream attribute subprograms.
15469 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
15470 appear immediately after a subprogram body, when there is no previous
15471 subprogram declaration.
15472 Change name Is_Package to Is_Package_Or_Generic_Package
15473 (Process_Formals): A non null qualifier on a non null named access
15474 type is not an error, and is a warning only if Redundant_Constructs
15477 2005-11-14 Gary Dismukes <dismukes@adacore.com>
15478 Ed Schonberg <schonberg@adacore.com>
15480 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
15481 nested within Analyze_Package_Specification to install the private
15482 declarations and use clauses within each of the parent units of a
15483 package instance of a generic child package.
15484 (Analyze_Package_Specification): When entering a private part of a
15485 package associated with a generic instance or formal package, the
15486 private declarations of the parent must be installed (by calling new
15487 procedure Install_Parent_Private_Declarations).
15488 Change name Is_Package to Is_Package_Or_Generic_Package
15489 (Preserve_Full_Attributes): For a synchronized type, the corresponding
15490 record is absent in a generic context, which does not indicate a
15493 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15495 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
15496 not try to rewrite a renamed stream attribute, because the operations
15497 on the type may not have been generated.
15498 Handle properly a renaming_as_body generated for a stream operation
15499 whose default is abstract because the object type itself is abstract.
15500 (Find_Type): If the type is incomplete and appears as the prefix of a
15501 'Class reference, it is tagged, and its list of primitive operations
15502 must be initialized properly.
15503 (Chain_Use_Clauses): When chaining the use clauses that appear in the
15504 private declaration of a parent unit, prior to compiling the private
15505 part of a child unit, find on the scope stack the proper parent entity
15506 on which to link the use clause.
15507 (Note_Redundant_Use): Emit a warning when a redundant use clause is
15509 (Analyze_Object_Renaming): An attribute reference is not a legal object
15510 if it is not a function call.
15512 2005-11-14 Robert Dewar <dewar@adacore.com>
15513 Ed Schonberg <schonberg@adacore.com>
15515 * sem_eval.adb: Implement d.f flag
15516 (Subtype_Statically_Match): A generic actual type has unknown
15517 discriminants when the corresponding actual has a similar partial view.
15518 If the routine is called to validate the signature of an inherited
15519 operation in a child instance, the generic actual matches the full view,
15521 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
15522 Ed Schonberg <schonberg@adacore.com>
15523 Robert Dewar <dewar@adacore.com>
15524 Thomas Quinot <quinot@adacore.com>
15526 * sem_res.adb (Resolve_Call): Provide a better error message whenever
15527 a procedure call is used as a select statement trigger and is not an
15528 entry renaming or a primitive of a limited interface.
15529 (Valid_Conversion): If the operand has a single interpretation do not
15530 remove address operations.
15531 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
15532 statement to inhibit warning.
15533 (Resolve_Unary_Op): Do not produce a warning when
15534 processing an expression of the form -(A mod B)
15535 Use Universal_Real instead of Long_Long_Float when we need a high
15536 precision float type for the generated code (prevents gratuitous
15537 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15538 (Resolve_Concatenation_Arg): Improve error message when argument is an
15539 ambiguous call to a function that returns an array.
15540 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
15541 there is an implicit operator in the given scope if we are within an
15542 instance: legality check has been performed on the generic.
15543 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
15544 after resolving operand, to avoid false warnings on overloaded calls.
15546 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15547 Javier Miranda <miranda@adacore.com>
15550 * sem_type.adb (Covers): In an inlined body, a composite type matches
15551 a private type whose full view is a composite type.
15552 (Interface_Present_In_Ancestor): Protect the frontend against
15553 previously detected errors to ensure that its compilation
15554 with assertions enabled gives the same output that its
15555 compilation without assertions.
15556 (Interface_Present_In_Ancestor): Add support for private types.
15557 Change name In_Actual to In_Generic_Actual (clean up)
15558 (Disambiguate): New predicate In_Actual, to recognize expressions that
15559 appear in the renaming declaration generated for generic actuals, and
15560 which must be resolved in the outer context.
15562 2005-11-14 Robert Dewar <dewar@adacore.com>
15563 Thomas Quinot <quinot@adacore.com>
15564 Hristian Kirtchev <kirtchev@adacore.com>
15565 Ed Schonberg <schonberg@adacore.com>
15567 * sem_util.ads, sem_util.adb: Change name Is_Package to
15568 Is_Package_Or_Generic_Package.
15569 (Check_Obsolescent): New procedure.
15570 (Set_Is_Public): Remove obsolete junk test.
15571 (Set_Public_Status): Do not set Is_Public on an object whose declaration
15572 occurs within a handled_sequence_of_statemets.
15573 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
15574 for a parameterless procedure.
15575 (Enter_Name): Recognize renaming declarations created for private
15576 component of a protected type within protected operations, so that
15577 the source name of the component can be used in the debugger.
15579 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15580 Robert Dewar <dewar@adacore.com>
15582 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
15583 of a generic subprogram are not visible outside the body.
15584 (Set_Warning_Switch): New procedure (code to set warning mode moved
15585 here from Switch.C so that it can be shared by pragma processing.
15586 (Check_References): Special case warning for non-modified non-imported
15588 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
15589 form with a string literal argument
15591 2005-11-14 Javier Miranda <miranda@adacore.com>
15593 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
15595 (Write): Addition of "not null" to the anonymous access.
15596 (Read): Addition of "not null" to the anonymous access.
15597 (Write): Addition of "not null" to the anonymous access.
15599 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
15600 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
15601 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
15602 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
15603 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
15604 "not null" to the anonymous access.
15606 2005-11-14 Robert Dewar <dewar@adacore.com>
15608 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
15611 2005-11-14 Vincent Celier <celier@adacore.com>
15613 * switch.adb (Bad_Switch): New procedure
15614 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
15615 message when in error.
15617 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
15618 Too_Many_Output_Files): Remove declarations, no longer used.
15619 (Scan_Nat): New parameter Switch
15621 (Bad_Switch): New procedure
15623 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
15624 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
15625 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
15626 to Osint.Fail. Do not handle any exception.
15628 2005-11-14 Vincent Celier <celier@adacore.com>
15630 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
15631 designates a non existent directory.
15633 2005-11-14 Robert Dewar <dewar@adacore.com>
15635 * xgnatugn.adb: Replace invalid membership test by 'Valid
15637 2005-11-14 Vincent Celier <celier@adacore.com>
15639 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
15640 there is no object directory.
15642 2005-11-14 Robert Dewar <dewar@adacore.com>
15644 * usage.adb: Minor adjustment to output format, use nn instead of nnn
15645 (so that -gnateInnn does not run into next column)
15647 2005-11-14 Ed Falis <falis@adacore.com>
15649 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
15652 2005-11-14 Cyrille Comar <comar@adacore.com>
15654 * s-chepoo.ads: Add comments on Dereference.
15655 Remove unnecessary inherited abstract primitives.
15658 2005-11-14 Robert Dewar <dewar@adacore.com>
15660 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
15661 node parameter, not needed, since it is available as Declaration_Node.
15663 2005-11-14 Geert Bosch <bosch@adacore.com>
15665 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
15666 grammatically correct.
15668 2005-11-14 Vincent Celier <celier@adacore.com>
15670 * s-fileio.ads: Correct spelling error in comment
15672 2005-11-14 Cyrille Comar <comar@adacore.com>
15673 Robert Dewar <dewar@adacore.com>
15674 Vincent Celier <celier@adacore.com>
15675 Ben Brosgol <brosgol@adacore.com>
15676 Jose Ruiz <ruiz@adacore.com>
15677 Pascal Obry <obry@adacore.com>
15680 Document that -fstack-check is needed for strict compliance with the
15681 Ada 95 Reference Manual.
15682 Correct reference to VAX systems to meet HP guidelines
15683 Add documentation for new gnatmake switches -vl, -vm and -vh
15684 Replace DEC Ada by HP Ada
15685 Replace DIGITAL by HP
15686 Remove empty section on tools in compatibility section
15687 Clarify the Windows convention semantics.
15688 Document the Win32 calling convention.
15689 The Stdcall, Win32 and DLL convention are synonyms.
15690 Add a note in -gnatR description about zero size record components
15691 Note on new >= and <= warnings for -gnatwc
15692 Document that equal sign after -gnatm is optional.
15693 Note that strip is working fine on DLL built with a Library
15694 Project. The restriction apply only to DLL built with gnatdll.
15695 Update section about the way to debug a DLL.
15696 Update information about the DLL convention.
15697 Document -C switch for gnatprep
15698 Document new attribute Library_ALI_Dir
15699 Update elaboration doc to include implicit Elaborate pragmas now
15700 generated for subprogram instantiations.
15701 Document limitation on executable names that include spaces for --GCC,
15702 --GNATBIND, and --GNATLINK switches.
15703 Document that -w causes -gnatws to be added at start of gcc switches
15705 * gnat_rm.texi: Document that -mieee is needed for generating infinite
15706 and NaN values in case of overflow on machines that are not fully
15707 compliant with the IEEE floating-point standard.
15708 Create a section describing the set of compiler options needed for
15709 strict compliance with the Ada 95 Reference Manual.
15710 Add documentation for pragma Obsolescent applied to a package
15711 Clarify potential issues of mixed language programs related to the
15712 I/O buffering enabling in the elaboration of the GNAT runtime.
15713 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
15714 This documentation only patch adds extra documentsion for pragma
15715 Restrictions (No_Elaboration_Code), explaining why it is not possible
15716 to document this restriction in terms of allowed source constructs.
15717 Document string literal form of pragma Warnings
15718 Document new attribute Library_ALI_Dir
15719 Add documentation on stable attributes in project files that was missing
15721 * gnat-style.texi: Indicate that paragraphs within a single comment
15722 should be separated by empty comment lines
15724 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
15727 * bindusg.adb: Minor cleanup, put -m before -M for consistency
15729 2005-11-14 Robert Dewar <dewar@adacore.com>
15731 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
15732 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
15733 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
15734 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
15735 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
15736 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
15737 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
15738 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
15739 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
15740 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
15741 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
15742 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
15743 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
15744 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15745 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
15746 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
15747 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
15748 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
15749 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
15750 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
15751 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15752 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
15753 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
15754 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
15755 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
15756 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
15757 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
15758 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
15759 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
15760 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
15761 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
15762 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
15763 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
15764 system-interix.ads, system-solaris-sparc.ads,
15765 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
15766 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
15767 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
15768 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
15769 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
15770 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
15771 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
15772 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15773 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
15774 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
15775 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
15776 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
15777 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
15778 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
15779 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
15780 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
15781 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
15782 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
15783 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
15784 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
15785 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
15786 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
15787 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
15788 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
15789 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
15790 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15791 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
15792 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
15793 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
15794 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
15795 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
15796 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
15797 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15798 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
15799 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
15800 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
15801 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15802 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
15803 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
15804 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
15805 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
15806 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
15807 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
15808 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
15809 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
15810 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
15811 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
15812 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
15813 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
15814 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
15815 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
15816 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
15817 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
15818 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
15819 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
15820 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
15821 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
15822 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
15823 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
15824 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
15825 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
15826 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
15827 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
15828 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
15829 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
15830 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
15831 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
15832 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
15833 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
15834 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
15835 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
15836 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
15837 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
15838 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
15839 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
15840 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
15841 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
15842 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
15843 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
15844 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
15845 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
15846 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
15847 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
15848 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
15849 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
15850 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
15851 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
15852 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
15853 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
15854 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
15855 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
15856 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
15857 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
15858 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
15859 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
15860 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
15861 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
15862 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
15863 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
15864 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
15865 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
15866 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
15867 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
15868 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
15869 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
15870 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
15871 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
15872 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
15873 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
15874 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
15875 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
15876 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
15877 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
15878 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
15879 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
15880 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
15881 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
15882 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
15883 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
15884 a-numaux-darwin.ads, a-numaux-darwin.adb,
15885 a-swuwha.ads, a-stunha.ads: Minor reformatting
15887 2005-11-14 Robert Dewar <dewar@adacore.com>
15890 * osint-m.adb: Add pragma Elaborate_All for Osint
15892 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
15895 * trans.c (call_to_gnu): Restore statement lost in translation.
15897 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
15899 * init.c: Use the Linux-specific section for the IA-64/Linux target.
15900 (__gnat_adjust_context_for_raise): Add conditional code so that the
15901 IA-64 is also supported.
15903 2005-11-03 James E Wilson <wilson@specifix.com>
15906 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
15907 TREE_OVERFLOW check.
15909 2005-09-21 Olivier Hainque <hainque@adacore.com>
15912 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
15913 as we create them to store a size in bits.
15915 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
15923 * utils2.c (build_return_expr): New helper function.
15924 * gigi.h (build_return_expr): Declare it.
15925 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
15926 of manually building the RETURN_EXPR tree.
15927 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
15928 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
15929 build_binary_op for the "target pointer" case. Use build_return_expr
15930 instead of manually building the RETURN_EXPR tree.
15932 2005-09-16 Laurent GUERBY <laurent@guerby.net>
15935 * s-tpinop.ads: Make this unit Preelaborate.
15937 2005-09-16 Andreas Jaeger <aj@suse.de>
15939 * socket.c: Add string.h for memcpy.
15941 2005-09-05 Arnaud Charlet <charlet@adacore.com>
15943 * dec-io.ads, dec-io.adb: Removed, no longer used.
15945 2005-09-01 Arnaud Charlet <charlet@adacore.com>
15947 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
15949 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
15950 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
15951 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
15952 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
15953 dependent units are Preelaborate.
15954 (Initialize): Call Interrupt_Managemeent.Initialize and
15955 OS_Primitives.Initialize to ensure proper initialization of this unit.
15956 Remove use of System.Soft_Links
15957 Make this unit Preelaborate.
15959 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
15960 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
15961 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
15962 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
15963 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
15964 s-tratas.ads, s-tasinf.ads: Minor reformatting.
15965 Add pragma Preelaborate, since these packages are suitable for this
15969 * s-traent-vms.ads, s-intman-dummy.adb,
15970 s-taprop-dummy.adb: Make this unit Preelaborate.
15972 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
15973 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
15974 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
15975 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
15976 s-intman-solaris.adb, s-intman-irix-athread.adb,
15977 s-intman-irix.adb: Mark this unit Preelaborate.
15978 (Initialize): New procedure.
15981 * s-taspri-linux.ads: Removed.
15983 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
15984 as done by other implementations (e.g. posix).
15986 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
15987 responsible for deferring abort.
15988 Mark this unit Preelaborate.
15990 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
15991 proper initialization of the tasking run-time.
15993 * s-tasdeb.ads: Mark this unit Preelaborate.
15994 (Known_Tasks): Add explicit default value to avoid elaboration code.
15996 * s-inmaop-vms.adb (Elaboration code): Add call to
15997 Interrupt_Management.Initialize since the elaboration code depends on
15998 proper initialization of this package.
16000 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
16001 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
16002 s-osprim-posix.adb: Make this unit Preelaborate.
16004 * a-calend.adb: Add call to OS_Primitives.Initialize
16006 * a-elchha.adb: Update use of Except.Id.Full_Name.
16007 Minor reformatting.
16008 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
16010 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
16011 Move with clauses outside Warnings Off now that dependent units are
16013 Use raise xxx with "..."; Ada 2005 form.
16015 * a-taside.ads, a-taside.adb:
16016 Remove some dependencies, to make it easier to make this unit truly
16018 Rewrite some code to be conformant with Preelaborate rules.
16020 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
16021 marked Preelaborate in the future.
16023 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
16024 these units Preelaborate.
16026 * s-exctab.adb: Update use of Except.Id.Full_Name.
16028 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
16029 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
16030 Set_Exc_Stack_Addr): Removed, no longer used.
16031 Remove reference to *Machine_State_Addr*, no longer needed.
16033 * s-stalib.ads: Mark this unit as Preelaborate[_05].
16034 (Exception_Data): Full_Name is now a System.Address so that this unit
16035 can be made Preelaborate.
16036 Clean up/simplify code thanks to Full_Name being a System.Address.
16037 Remove obsolete pragma Suppress (All_Checks), no longer needed.
16039 * s-taskin.ads, s-taskin.adb:
16040 Move with clauses outside Warnings Off now that dependent units are
16042 Make this unit Preelaborate.
16043 (Initialize): New proceduure, replace elaboration code and makes the
16044 set up of the tasking run-time cleaner.
16045 (Detect_Blocking): Now a function instead of a deferred boolean, to
16046 obey Preelaborate rules.
16048 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
16049 soft links, no longer used.
16051 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
16052 packages are suitable for this categorization.
16054 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
16055 since we compile run-time sources in Ada 2005 mode.
16056 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
16057 avoid having s-taprop*.adb depend on s-soflin and to avoid code
16059 Remove reference to *Machine_State_Addr*, no longer needed.
16061 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16063 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
16064 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16065 Remove reference to System.Exceptions.
16067 * s-mastop-x86.adb: Removed, no longer used.
16069 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
16071 * a-excach.adb: Minor reformatting.
16073 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
16074 instead fix new warnings that were hidden by this change.
16075 (AAA, ZZZ): Removed, replaced by...
16076 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
16077 are used instead of constants, to help make Ada.Exception truly
16079 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
16080 Raise_Storage_Error): File is now a System.Address, to simplify code.
16081 (Elab code): Removed, no longer used.
16082 (Null_Occurrence): Remove Warnings Off and make this construct
16084 Remove code related to front-end zero cost exception handling, since
16085 it is no longer used.
16086 Remove -gnatL/-gnatZ switches.
16088 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
16089 Update use of Except.Msg.
16091 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
16092 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
16093 to front-end zero cost exception handling, since it is no longer used.
16094 Remove -gnatL/-gnatZ switches.
16096 * lib-writ.ads: Minor reformatting
16099 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
16101 * Make-lang.in: Remove references to s-except.ads
16103 * s-except.ads: Removed, no longer used.
16105 * s-mastop.ads, s-mastop.adb:
16106 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16107 Remove reference to System.Exceptions.
16109 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
16110 switch-b.adb: Remove code related to front-end zero cost exception
16111 handling, since it is no longer used.
16112 Remove -gnatL/-gnatZ switches.
16114 2005-09-01 Robert Dewar <dewar@adacore.com>
16115 Gary Dismukes <dismukes@adacore.com>
16116 Javier Miranda <miranda@adacore.com>
16118 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
16119 type by valid test and generate warning.
16120 (Tagged_Membership): Generate call to the run-time
16121 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
16122 Change formal name Subtype_Mark to Result_Definition in several calls to
16123 Make_Function_Specification.
16124 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
16125 check for proper accessibility of the operand of a class-wide allocator.
16126 The check can be left out if checks are suppressed or if the expression
16127 has a specific tagged type whose level is known to be safe.
16129 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
16130 generates the run-time check associated with null-excluding entities.
16131 (Expand_N_Return_Statement): Add tests to determine if the accessibility
16132 check on the level of the return expression of a class-wide function
16133 can be elided. The check usually isn't needed if the expression has a
16134 specific type (unless it's a conversion or a formal parameter). Also
16135 add a test for whether accessibility checks are suppressed. Augment
16136 the comments to describe the conditions for performing the check.
16138 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
16139 Javier Miranda <miranda@adacore.com>
16140 Gary Dismukes <dismukes@adacore.com>
16141 Ed Schonberg <schonberg@adacore.com>
16143 * a-tags.adb (IW_Membership): Give support to
16144 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
16145 subprogram has been extended to look for the tag in the ancestors tag
16147 Update the structure of the GNAT Dispatch Table to reflect the
16148 additional two tables used in dispatching selects.
16149 Introduce appropriate array types and record components in
16150 Type_Specific_Data to reflect the two tables.
16151 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
16152 the TSD of a tag, indexed by position.
16153 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
16154 operation kind in the TSD of a tag, indexed by position.
16156 * a-tags.ads: Introduce an enumeration type to capture different
16157 primitive operation kinds. Define a constant reflecting the number of
16158 predefined primitive operations.
16159 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
16160 of an entry wrapper.
16161 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
16162 callable entity of a primitive operation.
16164 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
16165 primitive operations used in dispatching selects for limited
16166 interfaces, limited tagged, task and protected types what implement a
16168 (Freeze_Type): Generate the bodies of the primitive operations used in
16169 dispatching selects for limited tagged, task and protected types that
16170 implement a limited interface. Generate statements to populate the two
16171 auxiliary tables used for dispatching in select statements.
16172 (Freeze_Record_Type): Add call to initialize the dispatch table entries
16173 associated with predefined interface primitive operations.
16174 (Build_Dcheck_Function): Change Set_Subtype_Mark to
16175 Set_Result_Definition.
16176 (Build_Variant_Record_Equality): Change Subtype_Mark to
16178 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
16179 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
16180 (Build_Assignment): Simplify the code that adds the run-time-check.
16181 (Expand_N_Object_Declaration): Code cleanup.
16183 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
16184 entries when there is a protected type that implements a limited
16187 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
16188 common routines used in expansion of dispatching selects.
16189 (Add_Private_Declarations): Select the appropriate protection type when
16190 there is a protected type that implements a limited interface.
16191 (Build_Parameter_Block): Generate a wrapped parameter block.
16192 (Build_Protected_Subprogram_Body): Select the appropriate type for
16193 locking entries when there is a protected type that implements a
16195 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
16196 classified as entry wrappers.
16197 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
16198 asynchronous selects.
16199 (Expand_N_Conditional_Entry_Call): Add support for expansion of
16200 dispatching conditional selects.
16201 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
16202 protection when there is a protected type that implements limited
16204 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
16206 (Extract_Dispatching_Call): Extract the entity of the name of a
16207 dispatching call, the object parameter, actual parameters and
16208 corresponding formals.
16209 (Make_Initialize_Protection): Correct logic of protection initialization
16210 when there is a protected type that implements a limited interface.
16211 (Parameter_Block_Pack): Populate a wrapped parameter block with the
16212 values of actual parameters.
16213 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
16214 block and assign them to the original actual parameters.
16216 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
16217 (Build_Protected_Sub_Specification): Change the type and name of the
16218 last formal to account for the increased variety of protection modes.
16220 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
16221 entities. Used to save the value of the Is_Hidden attribute when the
16222 limited-view is installed.
16223 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
16224 the attribute of procedures classified as entry wrappers.
16225 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
16226 entity of a primitive wrapper.
16227 (Write_Entity_Flags): Output the name and value of the
16228 Is_Primitive_Wrapper attribute.
16229 (Write_Field27_Name): Output the name and entity of the field Wrapped_
16231 (Underlying_Type): If we have an incomplete entity that comes from
16232 the limited view then we return the Underlying_Type of its non-limited
16233 view if it is already available.
16234 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
16235 including operators.
16236 (Write_Field26_Name): Add entry for Overridden_Operation
16237 (Overridden_Operation): New attribute of functions and procedures.
16239 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
16240 predefined position in the dispatch table for the primitive operations
16241 used in dispatching selects.
16242 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
16243 predefined primitive operations and replace it with
16244 Default_Prim_Op_Count.
16245 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
16246 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
16247 the names of the generated primitive operations used in dispatching
16249 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
16250 case of abstract interface types. They will be inherit by the objects
16251 implementing the interface.
16252 (Make_DT): There is no need to inherit the dispatch table of the
16253 ancestor interface for the elaboration of abstract interface types.
16254 The dispatch table will be inherited by the object implementing the
16256 (Copy_Secondary_DTs): Add documentation.
16257 (Validate_Position): Improve this static check in case of
16258 aliased subprograms because aliased subprograms must have
16260 (Init_Predefined_Interface_Primitives): New subprogram that initializes
16261 the entries associated with predefined primitives of all the secondary
16263 (Build_Anonymous_Access_Type): Removed.
16264 (Expand_Interface_Actuals): With the previous cleanup there is no need
16265 to build an anonymous access type. This allows further cleanup in the
16266 code generated by the expander.
16267 (Expand_Interface_Conversion): If the actual is an access type then
16268 build an internal function to handle the displacement. If the actual
16269 is null this function returns null because no displacement is
16270 required; otherwise performs a type conversion that will be
16271 expanded in the code that returns the value of the displaced actual.
16272 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
16273 conversions that have no effect in the generated code because no
16274 displacement is required. Code cleanup; use local variables to
16275 avoid repeated calls to the subprogram directly_designated_type().
16277 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
16278 Classify the primitive operations used in dispatching selects as
16280 (Implements_Limited_Interface): Determine whether some type either
16281 directly implements a limited interface or extends a type that
16282 implements a limited interface.
16283 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
16284 (Expand_Subtype_From_Expr): Do not build actual subtype if the
16285 expression is limited.
16286 (Find_Interface_Tag): Add code to handle class-wide types and
16287 entities from the limited-view.
16289 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
16290 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
16291 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
16292 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
16295 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
16296 of procedure name or prefix that appears as a trigger in a triggering
16299 * uintp.ads: Introduce constants Uint_11 and Uint_13.
16301 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16303 * s-tataat.adb, a-tasatt.adb:
16304 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
16306 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
16307 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
16308 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
16311 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16312 Jose Ruiz <ruiz@adacore.com>
16314 * s-taprop-vxworks.adb:
16315 Move with clauses outside Warnings Off now that dependent units are
16317 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
16318 initialization of this unit.
16319 (Specific): Add new procedures Initialize and Delete so that this
16320 package can be used for VxWorks 5.x and 6.x
16321 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
16322 differences between VxWorks 5.x and 6.x
16323 Minor reformatting.
16324 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
16326 Use only Preelaborate-compatible constructs.
16328 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
16329 Primitives.Operations.
16330 (Delete, Initialize): New procedures.
16332 * s-osinte-vxworks.adb: Body used to handle differences between
16333 VxWorks 5.x and 6.x
16334 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
16336 * s-osinte-vxworks.ads: Minor reformatting.
16337 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
16338 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
16340 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
16341 between Vxworks 5 and 6.
16342 (taskLock, taskUnlock): Removeed, no longer used.
16344 * adaint.c: The wait.h header is not located in the sys directory on
16345 VxWorks when using RTPs.
16346 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
16348 (__gnat_dup): dup is available on Vxworks when using RTPs.
16349 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
16351 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
16353 * expect.c: The wait.h header is not located in the sys directory on
16354 VxWorks when using RTPs.
16356 2005-09-01 Thomas Quinot <quinot@adacore.com>
16358 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
16360 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
16362 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
16363 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16364 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
16365 g-soccon-freebsd.ads: Add new constants:
16367 SO_RCVTIMEO/SO_SNDTIMEO
16371 Move all target-specific file inclusions and macro definitions to
16372 gsocket.h, in order to ensure that any C code in socket.c will see a
16373 set of constants that is consistent with the contents of g-soccon.ads.
16375 * gsocket.h: Code imported from gen-soccon.c:
16376 Move all target-specific file inclusions and macro definitions to
16377 gsocket.h, in order to ensure that any C code in socket.c will see a set
16378 of constants that is consistent with the contents of g-soccon.ads.
16379 This change also makes gen-soccon self-contained (removing dependencies
16380 upon GCC internal headers).
16382 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
16384 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
16386 * socket.c: Minor reformatting.
16388 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16389 Thomas Quinot <quinot@adacore.com>
16391 * fname-sf.adb, mlib-tgt.ads,
16392 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
16393 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
16394 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
16395 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
16396 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
16397 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
16398 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
16399 makegpr.adb: Remove redundant use_clauses.
16401 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16403 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
16404 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
16405 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
16406 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
16407 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
16408 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
16409 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
16410 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
16411 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16412 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
16413 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
16414 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
16415 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
16416 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
16417 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
16418 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
16419 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16420 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
16421 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
16422 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
16423 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
16424 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
16425 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
16426 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
16427 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
16428 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
16429 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
16430 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
16431 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
16432 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
16433 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
16434 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
16435 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
16436 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
16437 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
16438 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
16439 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
16440 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
16441 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
16442 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
16443 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
16444 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
16445 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
16446 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
16447 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
16448 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
16449 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
16450 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
16451 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
16452 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
16453 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
16454 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
16455 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
16456 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
16457 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
16458 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
16459 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
16460 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
16461 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
16462 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
16463 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
16464 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
16465 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
16466 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
16467 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
16468 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
16469 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
16470 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
16471 and always use the no parameter form for consistency.
16473 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
16475 2005-09-01 Robert Dewar <dewar@adacore.com>
16477 * binde.adb: Minor reformatting
16478 (Find_Elab_Order): Output warning if -p used with static elab order
16480 2005-09-01 Robert Dewar <dewar@adacore.com>
16482 * checks.adb (Check_Needed): New procedure, deals with removing checks
16483 based on analysis of short-circuited forms. Also generates warnings for
16484 improper use of non-short-circuited forms.
16487 2005-09-01 Robert Dewar <dewar@adacore.com>
16489 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
16492 2005-09-01 Robert Dewar <dewar@adacore.com>
16494 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
16496 Implement new insertion char < (conditional warning)
16497 * errutil.adb, erroutc.adb: Implement new insertion char <
16498 (conditional warning).
16499 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
16500 (Error_Msg_Warn): New variable for < insertion char.
16501 * prj-nmsc.adb: Implement new errout insertion char < (conditional
16503 (Check_For_Source): Change value of Source_Id only after the current
16504 source has been dealt with.
16506 2005-09-01 Robert Dewar <dewar@adacore.com>
16507 Doug Rupp <rupp@adacore.com>
16509 * exp_attr.adb: Handle vax fpt for 'Valid attribute
16510 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
16511 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
16512 (Valid_D, Valid_F, Valid_G): New functions
16514 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16515 Hristian Kirtchev <kirtchev@adacore.com>
16516 Javier Miranda <miranda@adacore.com>
16518 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
16519 from object notation, the original node is unanalyzed and carries no
16520 semantic information, so that accessiblity checks must be performed on
16521 the type of the actual itself.
16522 (Expand_N_Subprogram_Declaration): Change last actual parameter for
16523 compatibility with Build_Protected_Sub_Specification.
16524 (Check_Overriding_Inherited_Interfaces): Add suport to handle
16525 overloaded primitives.
16526 (Register_Interface_DT_Entry): Use the new name of the formal
16527 the the calls to Expand_Interface_Thunk
16529 * exp_dbug.ads: Augment comments on encoding of protected types to
16530 include the generation of dispatching subprograms when the type
16531 implements at least one interface.
16533 * lib.ads: Extend information in Load_Stack to include whether a given
16534 load comes from a Limited_With_Clause.
16536 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
16537 whether a potential circularity is harmless, because it includes units
16538 loaded through a limited_with clause. Extends previous treatment which
16539 did not handle properly arbitrary combinations of limited and
16540 non-limited clauses.
16542 2005-09-01 Nicolas Setton <setton@adacore.com>
16544 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
16545 to be encoded as typ___XBLU_lowerbound__upperbound instead of
16546 typ___XB_lowerbound__upperbound.
16548 2005-09-01 Thomas Quinot <quinot@adacore.com>
16550 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
16551 dummy access formal for RACW/RAS TypeCode TSS.
16552 (Build_TypeCode_Call): Do not generate dummy null access actual for
16553 calls to the TypeCode TSS.
16555 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16557 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
16558 fully qualified name, to distinguish instances with the same local name.
16560 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
16563 2005-09-01 Robert Dewar <dewar@adacore.com>
16565 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
16568 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
16570 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
16571 (Free): New deallocation procedure for filter elements
16572 (Close): Deallocate any existing filter for the concerned connection
16574 2005-09-01 Laurent Pautet <pautet@adacore.com>
16576 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
16577 position set is provided, we compute one in order to reduce the maximum
16578 length of the keys. This computation first selects a character
16579 position between 1 and the minimum length of the keys in order to
16580 avoid reducing one of the keys to an empty string.
16581 (Initialize, Compute): When the ratio V to K is too low, the algorithm
16582 does not converge. The initialization procedure now comes with a
16583 maximum number of iterations such that when exceeded, an exception is
16584 raised in Compute. The user can initialize this ratio to another value
16586 Reformating and updated headers.
16588 2005-09-01 Javier Miranda <miranda@adacore.com>
16590 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
16591 that given an entity T creates and returns an Itype that duplicates the
16592 contents of T. The returned Itype has the null-exclusion
16593 attribute set to True, and its Etype attribute references T
16594 to keep the association between the two entities.
16595 Update copyright notice
16597 * sem_aggr.adb (Check_Can_Never_Be_Null,
16598 Aggregate_Constraint_Checks, Resolve_Aggregate,
16599 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
16601 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
16603 2005-09-01 Gary Dismukes <dismukes@adacore.com>
16604 Robert Dewar <dewar@adacore.com>
16605 Hristian Kirtchev <kirtchev@adacore.com>
16607 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
16610 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
16612 Call Set_Result_Definition instead of Set_Subtype_Mark.
16613 (P_Subprogram_Specification): Add parsing of anonymous access result
16614 plus null exclusions. Call Set_Result_Definition instead of
16617 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16618 (P_Access_Type_Definition): Add parsing for an anonymous access result
16619 subtype, plus parsing for null exclusions. Call Set_Result_Definition
16620 instead of Set_Subtype_Mark.
16622 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16623 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
16624 (Result_Definition): New function for N_Function_Specifications.
16625 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
16626 N_Function_Specification.
16627 (Set_Null_Exclusion_Present): Allow this flag for
16628 N_Function_Specification.
16629 (Set_Result_Definition): New procedure for N_Function_Specifications.
16630 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
16631 and N_Function_Specification.
16633 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
16634 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
16635 Add support for LIMITED NEW for Ada 2005 AI-419
16636 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
16637 syntax for anonymous access results.
16638 Replace Subtype_Mark field by Result_Definition in
16639 N_Function_Specification and N_Access_Definition specs.
16640 Add Null_Exclusion_Present to spec of N_Function_Specification.
16641 (Result_Definition): New function for N_Function_Specification and
16642 N_Access_Function_Definition.
16643 (Set_Result_Definition): New procedure for N_Function_Specification and
16644 N_Access_Function_Definition.
16646 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
16647 Result_Definition for cases of N_Access_Function_Definition and
16648 N_Function_Specification.
16649 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
16651 2005-09-01 Vincent Celier <celier@adacore.com>
16653 * lib-writ.adb: Update Copyright notice
16654 (Write_With_Lines): On platforms where file names are case-insensitive,
16655 record the file names in lower case.
16656 (Write_ALI): For D lines, on platforms where file names are
16657 case-insensitive, record the file names in lower case.
16659 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16660 Emmanuel Briot <briot@adacore.com>
16662 * lib-xref.adb (Output_Overridden_Op): Display information on
16663 overridden operation.
16665 * lib-xref.ads: Add documentation on overridden operations.
16667 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
16670 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
16671 overriding entity information.
16673 2005-09-01 Vincent Celier <celier@adacore.com>
16675 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
16676 including those that are inherited.
16678 2005-09-01 Robert Dewar <dewar@adacore.com>
16680 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
16682 * par-prag.adb: Implement new pragma Debug_Policy
16684 * sem_prag.adb Implement new pragma Debug_Policy
16685 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
16686 Component_Size attribute specification. Give warning for ignored pragma
16689 * snames.h, snames.ads, snames.adb: Introduce entries in
16690 Preset_Names for Name_Disp_Asynchronous_Select,
16691 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
16692 Name_Disp_Timed_Select.
16693 New pragma Debug_Policy
16695 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
16697 Switch -gnata also sets Debug_Pragmas_Enabled
16699 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
16700 handle an explicit -gnata when compiling predefined files.
16702 2005-09-01 Vincent Celier <celier@adacore.com>
16704 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
16705 directories of projects that have no Ada sources.
16707 2005-09-01 Robert Dewar <dewar@adacore.com>
16709 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
16710 (makes a difference for wide characters)
16712 * widechar.adb, widechar.ads:
16713 Add Wide_Char_Byte_Count feature to count chars vs bytes
16715 2005-09-01 Thomas Quinot <quinot@adacore.com>
16716 Ed Schonberg <schonberg@adacore.com>
16717 Robert Dewar <dewar@adacore.com>
16719 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
16720 'Address attribute reference with an overloaded prefix, use the
16721 location of the prefix (not the location of the attribute reference) as
16722 the error location.
16723 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
16724 a function renaming thereof, is a valid prefix for 'Size (where it is
16725 intepreted as a function call).
16726 (Statically_Denotes_Entity): New predicate to determine whether the
16727 prefix of an array attribute can be considered static.
16730 (Eval_Attr): Fix failure to evaluate Component_Size for
16731 unconstrained arrays (resulted in wrong value in packed case, since
16732 back end cannot handle this case)
16734 2005-09-01 Robert Dewar <dewar@adacore.com>
16736 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
16737 error msgs for most common cases.
16738 Use new errout insertion char < (conditional warning)
16740 2005-09-01 Javier Miranda <miranda@adacore.com>
16741 Ed Schonberg <schonberg@adacore.com>
16743 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
16744 become local to the whole package.
16745 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
16746 the package was already analyzed the new algorithm "replaces" the
16747 real entities by the shadow ones. This is required to ensure that
16748 the order of these entities in the homonym chains does not change;
16749 otherwise we can have undefined references at linking time because
16750 in case of conflicts the external name of the entities will have
16751 a suffix that depends on the order of the entities in the chain.
16752 (Remove_Limited_With_Clause): Complementary code that completes the
16753 new algorithm and replaces the shadow entities by the real ones.
16754 (Install_Limited_Withed_Unit): When unchaining entities before the
16755 installation of the shadow entities, only regular entities of the
16756 public part must be taken into account. This is required to
16757 keep this routine in synch with the work done by Remove_Limited_
16759 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
16760 even if unit is analyzed, because the analysis of the unit is
16761 idempotent in any case, and the limited view of the unit may have to
16762 be installed for proper visibility.
16763 (Expand_Limited_With_Clause): Even if the unit in the implicit
16764 with_clause has been analyzed already, a limited view of the package
16765 must be built for the current context, if it does not exist yet.
16767 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16768 Javier Miranda <miranda@adacore.com>
16769 Gary Dismukes <dismukes@adacore.com>
16771 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
16772 defining entity for the instance body, make a new defining identifier
16773 rather than copying the entity of the spec, to prevent accidental
16774 sharing of the entity list.
16775 (Check_Private_View): When exchanging views of private types, build the
16776 list of exchanged views as a stack, to ensure that on exit the exchanges
16777 are undone in the proper order.
16778 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
16779 Restore the compilation environment in case of instantiation_error.
16780 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
16781 for an anonymous access result.
16782 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
16783 (Formal_Entity): Handle properly the case of a formal package that
16784 denotes a generic package renaming.
16786 2005-09-01 Thomas Quinot <quinot@adacore.com>
16788 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
16789 clause if the array aggregate is surrounded by parentheses.
16791 2005-09-01 Cyrille Comar <comar@adacore.com>
16792 Gary Dismukes <dismukes@adacore.com>
16793 Ed Schonberg <schonberg@adacore.com>
16794 Javier Miranda <miranda@adacore.com>
16796 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
16798 to check if a type is Constrained in cases related to code generation
16799 (rather than semantic checking) since otherwise we do not generate
16800 similar code for mutable private types depending if their
16801 discriminants are visible or not.
16802 (Check_Abstract_Overriding): Do not complain about failure to override
16803 the primitive operations used in dispatching selects since they will
16804 always be overriden at the freeze point of the type.
16805 (Access_Definition): Separate out handling for resetting the scope
16806 of an anonymous access function result type. Retrieve the scope
16807 of the associated function rather than using Current_Scope, which
16808 does not have a consistent value (depends on whether we're in the
16809 middle of analyzing formal parameters). Add ??? comment about
16810 finding a cleaner way to handle the special cases of scope setting.
16811 (Process_Incomplete_Dependents): A protected operation is never a
16812 dispatching operation (only its wrapper may be).
16813 (Build_Derived_Record_Type): In case of tagged private types that
16814 implement interfaces add derivation of predefined primitive
16816 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
16817 by two parameters that are used in case of derivation from abstract
16818 interface types: No_Predefined_Prims is used to avoid the derivation
16819 of predefined primitives from the interface, and Predefined
16820 Prims_Only is used to complete the derivation predefined primitives
16821 in case of private tagged types implementing interfaces.
16822 Fix typo in comments
16823 (Find_Interface_In_Descendant): Protect the frontend against
16824 wrong code with large circularity chains.
16825 (Is_Private_Overriding): Add support for entities overriding interface
16826 subprograms. The test failed because Entities associated with overriden
16827 interface subprograms are always marked as hidden (and used to build
16828 the secondary dispatch table); in this case the overriden entity is
16829 available through the field abstract_interface_alias (cf. override_
16830 dispatching_operation)
16831 (Access_Definition): Set the scope of the type to Current_Scope for the
16832 case of a function with an anonymous access result type.
16833 (Access_Subprogram_Declaration): Handle creation of the type entity for
16834 an access-to-function type with an anonymous access result.
16835 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
16836 in handling for N_Access_Function_Definition.
16837 (Analyze_Subtype_Declaration): Modify the text of error message.
16838 (Derived_Type_Declaration): Modify the text of error message.
16839 (Process_Subtype): Modify the text of error message plus cleanup
16840 of one redundant error message.
16841 (Analyze_Component_Declaration): Code cleanup.
16842 (Analyze_Object_Declaration): Code cleanup.
16843 (Analyze_Subtype_Declaration): Propagate the null-exclusion
16844 attribute in case of access types. Code cleanup.
16845 (Array_Type_Declaration): Code cleanup.
16846 (Process_Discriminants): Create the new null-excluding itype
16847 if required. Code cleanup.
16848 (Process_Subtype): Create the new null-excluding itype if
16849 required. Code cleanup.
16850 (Build_Derived_Record_Type): Code cleanup to avoid calling
16851 twice the subprogram derive_subprograms in case of private
16852 types that implement interfaces. In this particular case the
16853 subprogram Complete_Subprograms_Derivation already does the
16854 job associated with the second call.
16856 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
16857 conversion to the full view when generating an operation for a
16858 discriminant whose type may currently be private.
16860 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16861 Javier Miranda <miranda@adacore.com>
16863 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
16864 V (Obj.F), the rewriting does not involve the indexed component, but
16865 only the selected component itself.
16866 Do not apply the transformation if the analyzed node is an actual of a
16867 call to another subprogram.
16868 (Complete_Object_Operation): Retain the entity of the
16869 dispatching operation in the selector of the rewritten node. The
16870 entity will be used in the expansion of dispatching selects.
16871 (Analyze_One_Call): Improve location of the error message associated
16873 (Analyze_Selected_Component): No need to resolve prefix when it is a
16874 function call, resolution is done when parent node is resolved, as
16876 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
16877 when attempting to resolve a call transformed from its object notation.
16878 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
16879 of the argument list for each interpretation of the operation.
16880 (Try_Object_Operation): The designated type of an access parameter may
16881 be an incomplete type obtained through a limited_with clause, in which
16882 case the primitive operations of the type are retrieved from its full
16884 (Analyze_Call): If this is an indirect call, and the return type of the
16885 access_to_subprogram is incomplete, use its full view if available.
16887 2005-09-01 Javier Miranda <miranda@adacore.com>
16888 Gary Dismukes <dismukes@adacore.com>
16890 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
16891 access types the null-exclusion and access-to-constant attributes must
16893 (Analyze_Return_Statement): When the result type is an anonymous access
16894 type, apply a conversion of the return expression to the access type
16895 to ensure that appropriate accessibility checks are performed.
16896 (Analyze_Return_Type): For the case of an anonymous access result type,
16897 generate the Itype and set Is_Local_Anonymous_Access on the type.
16898 Add ??? placeholder for check to disallow returning a limited object
16899 in Ada 2005 unless it's an aggregate or a result of a function call.
16900 Change calls from Subtype_Mark to Result_Definition.
16901 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
16902 Result_Definition in call to Make_Function_Specification.
16903 (Build_Body_To_Inline): Change Set_Subtype_Mark to
16904 Set_Result_Definition.
16905 (Make_Inequality_Operator): Change formal Subtype_Mark to
16906 Result_Definition in call to Make_Function_Specification.
16907 (Process_Formals): Create the new null-excluding itype if required.
16908 (New_Overloaded_Entity): For an entity overriding an interface primitive
16909 check if the entity also covers other abstract subprograms in the same
16910 scope. This is required to handle the general case, that is, overriding
16911 other interface primitives and overriding abstract subprograms inherited
16912 from some abstract ancestor type.
16913 (New_Overloaded_Entity): For an overriding entity that comes from
16914 source, note the operation that it overrides.
16915 (Check_Conformance, Type_Conformant): Addition of one new formal
16916 to skip controlling formals in the analysis. This is used to
16917 handle overloading of abstract interfaces.
16918 (Base_Types_Match): Add missing case for types imported from
16919 limited-with clauses
16920 (New_Overloaded_Entity): Add barrier to protect the use of
16921 the "alias" attribute.
16923 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16925 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
16926 verify that the procedure and the entry are mode conformant.
16927 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
16928 as a different operator, which is often a cut-and-paste error.
16930 2005-09-01 Javier Miranda <miranda@adacore.com>
16931 Ed Schonberg <schonberg@adacore.com>
16933 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
16934 used in controlling parameters exclude null because it is necessary to
16935 read the tag to dispatch, and null has no tag.
16936 (Override_Dispatching_Operation): If the previous operation is inherited
16937 from an interface, it becomes hidden and does not participate in later
16940 2005-09-01 Javier Miranda <miranda@adacore.com>
16941 Ed Schonberg <schonberg@adacore.com>
16942 Gary Dismukes <dismukes@adacore.com>
16944 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
16945 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
16946 the expander will generate the corresponding run-time check to evaluate
16948 (Resolve_Call): Check for legal type of procedure name or prefix that
16949 appears as a trigger in a triggering alternative.
16950 (Valid_Conversion): If expression is ambiguous and the context involves
16951 an extension of System, remove System.Address interpretations.
16952 (Resolve_Qualified_Expression): Reject the case of a specific-type
16953 qualification applied to a class-wide argument. Enhance comment
16954 to explain checking of Original_Node.
16955 (Resolve_Type_Conversion): The location of the error message was not
16956 general enough to handle the general case and hence it has been removed.
16957 In addition, this patch improves the text of the message.
16958 (Resolve_Type_Conversion): Add missing support for access to interface
16960 (Resolve_Type_Conversion): If the target is a class-wide interface type,
16961 do not expand if the expression is the actual in a call, because proper
16962 expansion will take place when the call itself is expanded.
16963 (Resolve_Allocator): If the context is an unchecked conversion, the
16964 allocator inherits its storage pool, if any, from the target type of
16967 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16968 Javier Miranda <miranda@adacore.com>
16970 * sem_type.adb (Add_One_Interp): If a candidate operation is an
16971 inherited interface operation that has an implementation, use the
16972 implementation to avoid spurious ambiguities.
16973 (Interface_Present_In_Ancestor): In case of concurrent types we can't
16974 use the Corresponding_Record_Typ attribute to look for the interface
16975 because it is set by the expander (and hence it is not always
16976 available). For this reason we traverse the list of interfaces
16977 (available in the parent of the concurrent type).
16978 (Interface_Present_In_Ancestor): Handle entities from the limited view
16980 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16982 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
16983 from the list of required components.
16984 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
16985 primitive procedure of a limited interface with a controlling first
16987 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
16989 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
16990 capture if it is generated in the second operand of a short-circuit
16992 Do not capture values for variables with address clauses.
16993 (Is_Object_Reference): Treat a function call as an object reference only
16994 if its type is not Standard_Void_Type.
16996 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16998 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
16999 to a variable that is statically known to be constant.
17001 2005-09-01 Geert Bosch <bosch@adacore.com>
17002 Robert Dewar <dewar@adacore.com>
17004 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
17005 (VAXGF_Safe_First): Idem.
17007 2005-09-01 Robert Dewar <dewar@adacore.com>
17008 Arnaud Charlet <charlet@adacore.com>
17010 * g-dirope.ads: Minor reformatting
17011 Document that bounds of result of Base_Name match the input index
17013 Add documentation on environment variable syntax for Expand_Path
17015 * gnat_ugn.texi: Update documentation to include mention of -m switches
17016 Document new treatment of wide characters in max line length
17018 Remove -gnatL/-gnatZ switches, no longer used.
17019 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
17022 * gnat_rm.texi: Add doc for two argument form of pragma
17023 Float_Representation.
17024 Add documentation for pragma No_Strict_Aliasing
17025 Add note that explicit component clause overrides pragma Pack.
17026 Add documentation of pragma Debug_Policy
17028 2005-09-01 Matthew Heaney <heaney@adacore.com>
17030 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
17031 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
17032 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
17033 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
17034 draft (Draft 13, August 2005) of Ada Amendment 1.
17036 2005-09-01 Arnaud Charlet <charlet@adacore.com>
17038 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
17039 Note that the platform-specific version of g-soccon.ads for VMS is now
17040 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
17041 really is a package spec).
17042 Replace s-taspri-linux.ads by s-taspri-posix.ads
17043 Remove references to s-mastop-x86.adb
17045 * system-vxworks-xscale.ads: Removed, no longer used.
17046 * s-vxwork-xscale.ads: Removed, no longer used.
17048 2005-09-01 Robert Dewar <dewar@adacore.com>
17050 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
17051 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
17052 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
17053 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
17054 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
17055 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
17056 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
17057 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
17058 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
17059 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
17060 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
17061 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
17062 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
17063 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
17064 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
17065 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
17066 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
17067 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
17068 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
17069 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
17070 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
17072 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17076 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
17078 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17079 Doug Rupp <rupp@adacore.com>
17081 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
17083 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
17084 this code in the GNAT run-time.
17086 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
17089 * init.c (__gnat_error_handler [many]): Mark "msg" as const
17090 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
17092 (__gnat_inside_elab_final_code): Moved here from
17093 Standard_Library and only defined for the compiler.
17094 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
17095 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
17096 using RTPs because directly vectored Interrupt routines are not
17097 supported on this configuration.
17098 (getpid): Do not redefine this function on VxWorks when using RTPs
17099 because this primitive is well supported by the RTP libraries.
17100 (copy_msg): Correct the code that checks for buffer overflow.
17101 Discovered during code reading.
17103 2005-08-29 Olivier Hainque <hainque@adacore.com>
17105 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
17106 a library level mutable variable with an initializer, tell
17107 build_allocator to ignore the initializer's size. It may not be large
17108 enough for all the values that might be assigned to the variable later
17111 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17112 Eric Botcazou <ebotcazou@adacore.com>
17114 * trans.c: Protect < in error msg with quote
17115 Replace GCC_ZCX by Back_End_Exceptions.
17116 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
17117 has been sufficiently aligned in the record.
17119 2005-08-15 James E. Wilson <wilson@specifix.com>
17121 * system-linux-alpha.ads: Change ia64 to alpha.
17123 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
17125 * decl.c, utils.c: Fix comment typos.
17127 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
17129 * decl.c, init.c, initialize.c: Fix comment typos.
17131 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
17133 Make CONSTRUCTOR use VEC to store initializers.
17134 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
17136 * trans.c (extract_values): Likewise.
17137 * utils.c (convert, remove_conversions): Likewise.
17138 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
17139 gnat_build_constructor): Likewise.
17141 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
17143 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
17145 (compare_field_bitpos): Likewise.
17147 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
17149 * utils.c (create_var_decl): Only set DECL_COMMON on
17150 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
17151 VAR_OR_FUNCTION_DECL_P.
17153 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
17155 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
17158 2005-07-07 Pascal Obry <obry@adacore.com>
17160 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
17161 returned type on Windows.
17163 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
17166 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
17167 exception in this case.
17168 Simplify the code as "Image (Image'Range)" = "Image".
17170 2005-07-07 Vincent Celier <celier@adacore.com>
17172 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
17173 the destructor/constructor attributes for <lib>final/<lib>init.
17175 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
17177 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
17179 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
17180 type if the parameter is not passed by copy but reference by default.
17182 2005-07-07 Javier Miranda <miranda@adacore.com>
17184 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
17185 Reimplementation of the support for abstract interface types in order
17186 to leave the code more clear and easy to maintain.
17188 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
17189 abstract interface types in order to leave the code clearer and easier
17192 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
17193 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
17194 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
17195 appropriate entry of the secondary dispatch table.
17196 (Make_DT): Add code to inherit the secondary dispatch tables of
17199 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
17200 implementing both functionalities by means of a common routine, each
17201 routine has its own code.
17203 2005-07-07 Javier Miranda <miranda@adacore.com>
17205 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
17207 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
17210 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17213 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
17214 use of tag incomplete types.
17216 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
17217 give support to tagged incomplete types.
17219 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
17220 expression is a discriminant reference and its type is private, as can
17221 happen within a stream operation for a mutable record, use the full
17222 view of the type to resolve the case alternatives.
17223 (Analyze_Assignment): Check wrong dereference of incomplete types.
17225 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
17228 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
17231 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
17232 N_Incomplete_Type_Declaration nodes.
17234 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
17235 Tag_Present to give support to tagged incomplete types:
17237 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17240 2005-07-07 Olivier Hainque <hainque@adacore.com>
17243 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
17244 definitions for the Unwind wrappers in the compiler case.
17246 2005-07-07 Ed Schonberg <schonberg@adacore.com>
17247 Javier Miranda <miranda@adacore.com>
17249 * par-load.adb (Load): If a child unit is loaded through a limited_with
17250 clause, each parent must be loaded as a limited unit as well.
17252 * sem_ch10.adb (Previous_Withed_Unit): Better name for
17253 Check_Withed_Unit. Return true if there is a previous with_clause for
17254 this unit, whether limited or not.
17255 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
17257 (Is_Visible_Through_Renamings): New local subprogram of install_limited
17258 _withed_unit that checks if some package installed through normal with
17259 clauses has a renaming declaration of package whose limited-view is
17260 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
17261 of the current Draft document for Ada 2005.
17262 (Analyze_Context): Complete the list of compilation units that
17263 are allowed to contain limited-with clauses. It also contains
17264 checks that were previously done by Install_Limited_Context_Clauses.
17265 This makes the code more clear and easy to maintain.
17266 (Expand_Limited_With_Clause) It is now a local subprogram of
17267 Install_Limited_Context_Clauses, and contains the code that adds
17268 the implicit limited-with clauses for parents of child units.
17269 This functionality was prevously done by Analyze_Context.
17271 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
17274 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
17275 been erroneously named in a limited-with clause of its own context.
17276 In this case the error has been previously notified by Analyze_Context.
17278 2005-07-07 Ed Schonberg <schonberg@adacore.com>
17280 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
17281 generic package that contains local declarations with the same name.
17282 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
17284 2005-07-07 Bernard Banner <banner@adacore.com>
17286 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
17287 ia64 platform only on platforms that you the GCC unwind library
17288 rather than the system unwind library.
17290 2005-07-07 Thomas Quinot <quinot@adacore.com>
17292 * expect.c: Minor reformatting
17294 2005-07-07 Sergey Rybin <rybin@adacore.com>
17296 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
17299 * gnat_ugn.texi: Add description for new gnatpp option
17302 2005-07-04 Thomas Quinot <quinot@adacore.com>
17304 * g-expect-vms.adb, g-expect.ads, g-expect.adb
17305 (Get_Command_Output): New subprogram to launch a process and get its
17306 standard output as a string.
17308 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17309 Olivier Hainque <hainque@adacore.com>
17311 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
17312 fetch a code-range descriptor associated with the machine state. On
17313 failure set the machine state's PC to 0; on success, pass the
17314 descriptor to exc_virtual_unwind.
17316 * init.c (Tru64 section): New function __gnat_set_code_loc.
17318 2005-07-04 Vincent Celier <celier@adacore.com>
17320 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17321 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17322 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
17323 Remove all auto-initialization code, as this is now done through the
17324 constructor mechanism.
17326 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
17327 __gnat_sals_init_using_constructors): New functions.
17329 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
17330 Linker_Constructor and Linker_Destructor when switch -a is used.
17332 * bindusg.adb: Add line for new switch -a
17334 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
17335 (Gnatbind): When switch -a is used, check if it is allowed
17337 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
17339 2005-07-04 Joel Brobecker <brobecker@adacore.com>
17341 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
17342 This prevents us from hitting a limitation during the debug info
17343 generation when using stabs.
17344 (Prims_Ptr): Likewise.
17346 2005-07-04 Gary Dismukes <dismukes@adacore.com>
17347 Ed Schonberg <schonberg@adacore.com>
17348 Javier Miranda <miranda@adacore.com>
17350 * checks.adb (Null_Exclusion_Static_Checks): In the case of
17351 N_Object_Declaration, only perform the checks if the Object_Definition
17352 is not an Access_Definition.
17354 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
17355 where the parent of an the access definition is an N_Object_Declaration
17356 when determining the Associated_Node_For_Itype and scope of an
17357 anonymous access-to-subprogram type.
17359 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
17360 Corresponding_Spec on the body created for a null procedure. Add ???
17361 comment. Remove New_Copy_Tree call on body argument to
17362 Set_Body_To_Inline.
17364 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
17365 discriminants, use the type of the actual as well, because the
17366 discriminants may be read by the called subprogram.
17368 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
17369 access type we do not need to handle non-limited views.
17370 (Build_Derived_Record_Type): Additional check to check that in case of
17371 private types, interfaces are only allowed in private extensions.
17373 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17375 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
17376 <Pragma_Linker_Destructor>: Likewise.
17378 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
17379 Pragma_Linker_Destructor.
17381 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
17382 ATTR_LINK_DESTRUCTOR.
17383 (static_ctors, static_dtors): New variables.
17385 * misc.c (gnat_expand_body): Output current function as constructor
17386 and destructor if requested.
17388 * par-prag.adb: Add processing for pragma Linker_Constructor and
17391 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
17392 extracted from Check_Interrupt_Or_Attach_Handler.
17393 (Check_Interrupt_Or_Attach_Handler): Invoke it.
17394 Implement pragma Linker_Constructor and Linker_Destructor with the
17395 help of Find_Unique_Parameterless_Procedure.
17396 Replace Name_Alias with Name_Target for pragma Linker_Alias.
17398 * snames.h, snames.ads, snames.adb:
17399 Add Name_Linker_Constructor and Name_Linker_Destructor.
17400 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
17401 * snames.adb: Remove Name_Alias.
17403 * trans.c: Include cgraph.h.
17404 (build_global_cdtor): New function.
17405 (Compilation_Unit_to_gnu): Build global constructor and destructor if
17407 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
17409 (addressable_p) <COMPONENT_REF>: Unconditionally test
17410 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
17412 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
17413 variable if it is external.
17415 (static_ctors, static_dtors): New global variables.
17416 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
17417 <ATTR_LINK_DESTRUCTOR>: Likewise.
17418 (end_subprog_body): Chain function as constructor and destructor
17421 * exp_util.adb (Force_Evaluation): Unconditionally invoke
17422 Remove_Side_Effects with Variable_Ref set to true.
17423 (Remove_Side_Effects): Handle scalar types first. Use a renaming
17424 for non-scalar types even if Variable_Ref is true and for class-wide
17427 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17429 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
17430 to prevent spurious warnings.
17432 2005-07-04 Thomas Quinot <quinot@adacore.com>
17434 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
17435 Itypes. Itypes are really unexpected there.
17436 (Build_TypeCode_Function): Generalise special processing for Itypes to
17437 handle the case of numeric implicit base types as well as enumerated
17440 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17442 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
17443 controlled, indicate the expected type of the dereference that is
17444 created for the call to Deep_Finalize, to prevent spurious errors when
17445 the designated type is private and completed with a derivation from
17446 another private type.
17448 2005-07-04 Vincent Celier <celier@adacore.com>
17450 * make.adb (Change_To_Object_Directory): When unable to change the
17451 current dir to the object directory, output the full path of the
17454 2005-07-04 Matthew Gingell <gingell@adacore.com>
17456 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
17458 * indepsw-linux.adb: Replace by...
17460 * indepsw-gnu.adb: ...this new file
17462 2005-07-04 Vincent Celier <celier@adacore.com>
17464 * mlib-prj.adb (Auto_Initialize): New constant String
17465 (SALs_Use_Constructors): New Boolean function
17466 (Build_Library): Call gnatbind with Auto_Initialize switch when
17467 SALs_Use_Constructors returns True.
17469 * mlib-tgt.ads: Minor reformatting
17471 * mlib-utl.ads: Minor reformatting
17473 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
17475 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17477 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
17478 single protected declarations can have an interface list.
17479 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
17480 with seriously malformed entry declarations, and lead to compilation
17481 abandoned messages.
17483 2005-07-04 Javier Miranda <miranda@adacore.com>
17485 * par-load.adb: Load the context items in two rounds.
17487 2005-07-04 Robert Dewar <dewar@adacore.com>
17489 * scng.adb: Do not consider Mod used as an attribute to be a keyword
17491 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17492 Javier Miranda <miranda@adacore.com>
17494 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
17495 type extension needs a limited view.
17496 Remove previous restriction on private types available through the
17497 limited-view (only tagged private types were previously allowed).
17498 (Install_Withed_Unit): In the code that implements the
17499 legality rule given in AI-377, exclude a child unit with the name
17500 Standard, because it is a homonym of the Standard environment package.
17502 2005-07-04 Thomas Quinot <quinot@adacore.com>
17504 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
17505 overloaded function call, carry interpretations from the original tree
17508 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17510 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
17511 types check whether some designated type is a limited view, and use
17512 the non-limited view if available.
17514 2005-07-04 Gary Dismukes <dismukes@adacore.com>
17516 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
17517 constraint of full view of a private view T1 if present, when T2 is a
17518 discriminated full view.
17520 2005-07-04 Thomas Quinot <quinot@adacore.com>
17522 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
17523 actual that is a view conversion of a bit packed array reference.
17525 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17527 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
17528 present before checking whether an interface type covers a synchronized
17531 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17533 * sem_util.adb (Is_Object_Reference): An indexed or selected component
17534 whose prefix is an implicit dereference is an object reference. Removes
17535 spurious errors when compiling with -gnatc.
17537 2005-07-04 Robert Dewar <dewar@adacore.com>
17540 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
17542 2005-07-04 Matthew Gingell <gingell@adacore.com>
17544 * tracebak.c: Enable tracebacks on ia64 platforms
17546 2005-07-04 Vincent Celier <celier@adacore.com>
17548 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
17549 the GNAT BIND command, as gnatbind accepts multiples ALI files with
17550 the -L or -n switches.
17552 2005-07-04 Vincent Celier <celier@adacore.com>
17554 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
17555 correctly computed and the main project data is not modified while
17557 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
17558 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
17559 c++linker as this does not work on some platforms.
17561 2005-07-04 Matthew Heaney <heaney@adacore.com>
17563 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
17565 * a-coinve.adb: Perform constraint checks explicitly.
17567 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17568 Thomas Quinot <quinot@adacore.com>
17570 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
17571 new target gen-soccon.
17573 2005-07-04 Robert Dewar <dewar@adacore.com>
17575 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
17577 2005-07-04 Thomas Quinot <quinot@adacore.com>
17579 * g-socket.ads (Check_Selector): Minor rewording of comment.
17581 2005-07-04 Vincent Celier <celier@adacore.com>
17583 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
17585 2005-07-04 Thomas Quinot <quinot@adacore.com>
17587 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
17589 2005-07-04 Sergey Rybin <rybin@adacore.com>
17591 * gnat_ugn.texi: Add description of --eol gnatpp option
17593 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17594 Thomas Quinot <quinot@adacore.com>
17596 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
17597 if the user wants all calls of a subprogram to be flagged,
17598 independently of whether they are made from within the same unit or
17600 Mention restriction for pragma Linker_Alias on some platforms.
17601 Document pragma Linker_Constructor and Linker_Destructor.
17602 Rewrite documentation of Weak_External, Linker_Section and
17603 Linker_Alias pragmas.
17605 2005-07-04 Arnaud Charlet <charlet@adacore.com>
17607 * s-stausa.ads, s-stausa.adb: New files.
17609 2005-06-30 Kelley Cook
17611 * all files: Update FSF address in copyright headers.
17612 * gen-soccon.co (main): Output new FSF address in generated files.
17614 2005-06-28 Paul Brook <paul@codesourcery.com>
17616 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
17618 2005-06-14 Olivier Hainque <hainque@adacore.com>
17619 Eric Botcazou <ebotcazou@adacore.com>
17621 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
17622 exc_unwind, now that we are generating proper .debug_frame output for
17625 * tracebak.c: Remove the mips-irix section, as we are now using the
17626 s-mastop based unwinder again.
17627 Under SPARC/Solaris, take into account the stack bias to compute the
17628 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
17631 2005-06-14 Doug Rupp <rupp@adacore.com>
17633 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
17635 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
17637 2005-06-14 Pascal Obry <obry@adacore.com>
17639 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
17640 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
17641 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
17644 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
17645 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
17646 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
17647 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
17648 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
17649 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
17650 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
17651 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
17652 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
17653 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
17654 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
17655 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
17656 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
17657 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
17658 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
17659 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
17660 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
17661 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
17662 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
17663 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
17664 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
17665 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
17666 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
17667 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
17668 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
17669 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
17670 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
17671 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
17672 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
17673 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
17674 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
17675 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
17676 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
17677 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
17678 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
17679 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
17680 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
17681 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
17682 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
17683 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
17684 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
17685 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
17686 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
17687 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
17688 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
17689 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
17690 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
17691 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
17692 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
17693 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
17694 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
17695 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
17696 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
17697 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
17698 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
17699 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
17700 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
17701 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
17702 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
17703 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
17704 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
17705 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
17706 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
17707 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
17708 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
17709 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
17710 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
17711 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
17712 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
17713 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
17714 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
17715 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
17716 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
17717 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
17718 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
17719 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
17720 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
17721 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
17722 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
17723 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
17724 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
17725 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
17726 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
17727 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
17728 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
17729 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
17730 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
17731 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
17732 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
17733 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
17734 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
17735 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
17736 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
17737 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
17738 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
17739 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
17740 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
17741 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
17742 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
17743 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
17744 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
17745 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
17746 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
17747 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
17748 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
17749 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
17750 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
17751 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
17752 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
17753 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
17754 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
17755 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
17756 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17757 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
17758 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
17759 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
17760 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
17761 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
17762 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
17763 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
17764 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
17765 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
17766 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
17767 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
17768 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
17769 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
17770 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
17771 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
17772 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
17773 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
17774 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
17775 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
17776 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
17778 2005-06-14 Jose Ruiz <ruiz@adacore.com>
17779 Arnaud Charlet <charlet@adacore.com>
17781 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
17782 longer protected objects. They have been replaced by lower-level
17783 suspension objects made up by a mutex and a condition variable (or
17784 their equivalent given a particular OS) plus some internal data to
17785 reflect the state of the suspension object.
17786 (Initialize, Finalize): Add this initialization procedure for
17787 Suspension_Object, which is a controlled type.
17788 (Finalize): Add the finalization procedure for Suspension_Object,
17789 which is a controlled type.
17791 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
17792 Ada.Synchronous_Task_Control because there is no longer a need for a
17793 VxWorks specific version of this package. Target dependencies
17794 has been moved to System.Task_Primitives.Operations.
17796 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
17798 (InitializeCriticalSection, EnterCriticalSection,
17799 LeaveCriticalSection, DeleteCriticalSection): Replace the type
17800 pCriticalSection by an anonymous access type so that we avoid problems
17801 of accessibility to local objects.
17803 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
17804 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
17805 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
17806 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
17807 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
17808 set the environment task mask here.
17809 (Current_State): Add this function that returns the state of the
17811 (Set_False): Add this procedure that sets the state of the suspension
17813 (Set_True): Add this procedure that sets the state of the suspension
17814 object to True, releasing the task that was suspended, if any.
17815 (Suspend_Until_True): Add this procedure that blocks the calling task
17816 until the state of the object is True. Program_Error is raised if
17817 another task is already waiting on that suspension object.
17818 (Initialize): Add this procedure for initializing the suspension
17819 object. It initializes the mutex and the condition variable which are
17820 used for synchronization and queuing, and it sets the internal state
17822 (Finalize): Add this procedure for finalizing the suspension object,
17823 destroying the mutex and the condition variable.
17825 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
17826 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
17827 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
17828 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
17829 which provides a low-level abstraction (using operating system
17830 primitives) for Ada.Synchronous_Task_Control.
17831 This object is made up by a mutex (for ensuring mutual exclusion), a
17832 condition variable (for queuing threads until the condition is
17833 signaled), a Boolean (State) indicating whether the object is open,
17834 and a Boolean (Waiting) reflecting whether there is a task already
17835 suspended on this object.
17837 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
17838 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
17839 s-intman-vms.ads, s-intman-mingw.adb,
17840 (Initialize_Interrupts): Removed, no longer used.
17842 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
17843 (Setup_Interrupt_Mask): New procedure.
17845 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
17847 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
17849 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
17850 this is no longer done in the body of s-taprop
17851 (Server_Task): Explicitely test for Pending_Action in case
17852 System.Parameters.No_Abort is True.
17854 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
17855 is no longer done in the body of s-taprop
17857 2005-06-14 Robert Dewar <dewar@adacore.com>
17859 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
17860 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
17861 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17862 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
17863 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17864 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
17865 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
17866 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
17867 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
17868 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
17869 system-linux-hppa.ads, system-vms_64.ads,
17870 system-vxworks-alpha.ads: Minor comment update for
17871 AI-362 (unit is Pure).
17873 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
17874 Add pragma Pure_05 for AI-362
17875 Make remaining conversion functions obsolescent in Ada 95
17877 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17878 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
17879 Add entries for a-wichun and a-zchuni
17880 Add a-widcha a-zchara for AI-395
17881 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
17883 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17884 Add entries for a-wichun.o and a-zchuni.o
17885 Entries for a-widcha.o and a-zchara.o
17886 Add entry for a-chacon.o
17888 * a-ztenau.adb: Add with of Ada.Characters.Conversions
17890 * a-chacon.ads, a-chacon.adb: New files.
17892 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
17893 categorization violations.
17895 * a-strmap.ads: Add pragma Pure_05 for AI-362
17896 * a-strmap.ads: Add note on implicit categorization for AI-362
17898 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
17900 * par-prag.adb: Dummy entry for pragma Persistent_BSS
17901 Set Ada_Version_Explicit, for implementation of AI-362
17902 Add processing for pragma Pure_05 and Preelaborate_05
17903 Add entry for Assertion_Policy pragma
17905 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
17906 when needed for proper processing of categorization stuff
17909 For several cases, make errors in preealborate units warnings,
17910 instead of errors, if GNAT_Mode is set. For AI-362.
17912 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
17913 preelaborate unit is now warning if in GNAT mode
17915 * s-stoele.ads: Document AI-362 for pragma preelaborate
17917 2005-06-14 Doug Rupp <rupp@adacore.com>
17919 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
17920 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
17921 Default_Exception_Msg_Max_Length: new parameter.
17923 * a-except.ads: (Exception_Msg_Max_Length): Set to
17924 System.Parameters.Default_Exception_Msg_Max_Length
17925 Add pragma Preelaborate_05 for AI-362
17926 Add warnings off to allow categorization violations for AI-362
17928 2005-06-14 Vincent Celier <celier@adacore.com>
17930 * gnatsym.adb: Adapt to modification of package Symbols: procedure
17931 Process is now in package Processing.
17933 * symbols.ads, symbols.adb:
17934 (Processing): New package, containing procedure Process
17936 * symbols-vms-alpha.adb:
17937 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
17939 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
17940 symbols-processing-vms-ia64.adb: New files.
17942 2005-06-14 Pascal Obry <obry@adacore.com>
17944 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
17945 implementation. This new version generates the proper DllMain routine
17946 to initialize the SAL. The DllMain is generated in Ada and compiled
17947 before being added as option to the library build command.
17949 2005-06-14 Doug Rupp <rupp@adacore.com>
17950 Pascal Obry <obry@adacore.com>
17952 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
17953 call to decc$translate_vms.
17954 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
17955 need to remove those quotes before catenating the filename.
17956 (__gnat_locate_exec_on_path): improvements to the Win32 section:
17957 * avoid allocating the memory twice for better efficiency;
17958 * allocate 32K buffer for environment expansion as suggested by MSDN;
17959 * prepend ".;" to the path so that current directory is searched too.
17961 2005-06-14 Robert Dewar <dewar@adacore.com>
17963 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
17964 instead of raising CE (AI-241)
17965 Add warnings off to allow categorization violations for AI-362
17967 2005-06-14 Robert Dewar <dewar@adacore.com>
17969 * ali-util.adb, gnatbind.adb: Remove references to
17970 Force_RM_Elaboration_Order.
17972 * switch-b.adb: Remove recognition of -f switch
17974 2005-06-14 Pascal Obry <obry@adacore.com>
17976 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
17977 implementation which is slightly more efficient.
17979 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17980 Javier Miranda <miranda@adacore.com>
17981 Ed Schonberg <schonberg@adacore.com>
17982 Hristian Kirtchev <kirtchev@adacore.com>
17984 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
17985 allocator's designated type is a class-wide type, and compiling for
17986 Ada 2005, emit a run-time check that the accessibility level of the
17987 type given in the allocator's expression is not deeper than the level
17988 of the allocator's access type.
17990 (Tagged_Membership): Modified to gives support to abstract interface
17993 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
17995 (Descendant_Tag): New predefined function
17996 (Is_Descendant_At_Same_Level): New predefined function
17997 (Get_Access_Level): New private function
17998 (Set_Access_Level): New private procedure
17999 (IW_Membership): New function. Given the tag of an object and the tag
18000 associated with an interface, evaluate if the object implements the
18002 (Register_Interface_Tag): New procedure used to initialize the table of
18003 interfaces used by the IW_Membership function.
18004 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
18005 of the dispatch table.
18006 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
18007 table of interfaces of the parent.
18008 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
18009 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
18010 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
18011 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
18012 Ada 2005 semantics for the new predefined function.
18014 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
18015 call to Descendant_Tag rather than Internal_Tag.
18016 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
18017 the accessibility level of the attribute's Item parameter is not deeper
18018 than the level of the attribute's prefix type. Tag_Error is raised if
18019 the check fails. The check is only emitted for Ada_05.
18020 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
18021 requested stream attribute, use it.
18022 (Expand_N_Attribute_Reference): If the designated type is an interface
18023 then rewrite the referenced object as a conversion to force the
18024 displacement of the pointer to the secondary dispatch table.
18025 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
18026 is a dereference of an object with a constrained partial view.
18028 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
18029 type is a class-wide type, emit a run-time check that the accessibility
18030 level of the returned object is not deeper than the level of the
18031 function's master (only when compiling for Ada 2005).
18033 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
18034 Action_Nb_Arg): Add entries for new Get_Access_Level and
18035 Set_Access_Level routines in these tables.
18036 (Make_DT): Generate a call to set the accessibility level of the
18037 tagged type in its TSD.
18038 (Make_DT): Code cleanup. The functionality of generating all the
18039 secondary dispatch tables has been moved to freeze_record_type.
18040 (Make_Abstract_Interface_DT): Minor code cleanup.
18041 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
18042 this subprogram implements a new algorithm that provides the
18043 same functionality and it is more clear in case of primitives
18044 associated with abstract interfaces.
18045 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
18046 clean up, the functionality of this subprogram is now provided
18047 by Set_All_DT_Position.
18048 (Write_DT): New subprogram: a debugging procedure designed to be called
18049 within gdb to display the dispatch tables associated with a tagged
18051 (Collect_All_Interfaces): New subprogram that collects the whole list
18052 of interfaces that are directly or indirectly implemented by a tagged
18054 (Default_Prim_Op_Position): New subprogram that returns the fixed
18055 position in the dispatch table of the default primitive operations.
18056 (Expand_Interface_Actuals): New subprogram to generate code that
18057 displaces all the actuals corresponding to class-wide interfaces to
18058 reference the interface tag of the actual object.
18059 (Expand_Interface_Conversion): New subprogram. Reference the base of
18060 the object to give access to the interface tag associated with the
18061 secondary dispatch table.
18062 (Expand_Interface_Thunk): New subprogram that generates the code of the
18063 thunk. This is required for compatibility with the C+ ABI.
18064 (Make_Abstract_Interface_DT): New subprogram that generate the
18065 declarations for the secondary dispatch tables associated with an
18066 abstract interface.
18067 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
18068 attribute for each primitive operation covering interface subprograms
18069 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
18070 These subprograms were upgraded to give support to abstract interfaces
18072 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
18073 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
18074 RE_Set_Access_Level.
18075 (RE_Unit_Table): Add entries for new Ada.Tags operations.
18076 Add support to call the followig new run-time subprograms:
18077 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
18079 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
18080 match its full declaration when both have an access definition with
18081 statically matching designated subtypes.
18082 (Analyze_Component_Declaration): Delete commented out code that was
18083 incorrectly setting the scope of an anonymous access component's type.
18084 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
18085 an access discriminant when the containing type is nonlimited.
18086 (Make_Incomplete_Type_Declaration): Create an incomplete type
18087 declaration for a record type that includes self-referential access
18089 (Check_Anonymous_Access_Types): Before full analysis of a record type
18090 declaration, create anonymous access types for each self-referential
18092 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
18093 an access component in this context is a Local_Anonymous_Access, for
18094 proper accessibility checks.
18095 (Access_Definition): Set properly the scope of the anonymous access type
18096 created for a stand-alone access object.
18097 (Find_Type_Of_Object): An object declaration may be given with an access
18099 (Complete_Subprograms_Derivation): New subprogram used to complete
18100 type derivation of private tagged types implementing interfaces.
18101 In this case some interface primitives may have been overriden
18102 with the partial-view and, instead of re-calculating them, they
18103 are included in the list of primitive operations of the full-view.
18104 (Build_Derived_Record_Type): Modified to give support to private
18105 types implemening interfaces.
18106 (Access_Definition): Reject ALL on anonymous access types.
18107 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
18108 type derivation to occur at a deeper accessibility level than the
18110 For the case of derivation within a generic body however, disallow the
18111 derivation if the derived type has an ancestor that is a formal type
18112 declared in the formal part of an enclosing generic.
18113 (Analyze_Object_Declaration): For protected objects, remove the check
18114 that they cannot contain interrupt handlers if not declared at library
18116 (Add_Interface_Tag_Components): New subprogram to add the tag components
18117 corresponding to all the abstract interface types implemented by a
18118 record type or a derived record type.
18119 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18120 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18121 Process_Full_View, Record_Type_Declaration): Modified to give
18122 support to abstract interface types
18123 (Collect_Interfaces): New subprogram that collects the list of
18124 interfaces that are not already implemented by the ancestors
18125 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
18126 when partial view has no discriminants and full view has defaults.
18127 (Constrain_Access): Reject a constraint on a general access type
18128 if the discriminants of the designated type have defaults.
18129 (Access_Subprogram_Declaration): Associate the Itype node with the inner
18130 full-type declaration or subprogram spec. This is required to handle
18131 nested anonymous declarations.
18132 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18133 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18134 Process_Full_View, Record_Type_Declaration): Modified to give
18135 support to abstract interface types
18136 (Derive_Subprograms): Addition of a new formal to indicate if
18137 we are in the case of an abstact-interface derivation
18138 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
18139 to the specification because it is requied to analyze all the
18140 identifiers found in a list of interfaces
18142 * debug.adb: Complete documentation of flag "-gnatdZ"
18144 * exp_ch3.adb: Implement config version of persistent_bss pragma
18145 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
18146 testing for TSS presence to properly enforce visibility rules.
18147 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
18148 Make_Abstract_Interfaces_DT to generate the secondary tables
18149 associated with abstract interfaces.
18150 (Build_Init_Procedure): Modified to initialize all the tags
18152 (Component_Needs_Simple_Initialization): Similar to other tags,
18153 interface tags do not need initialization.
18154 (Freeze_Record_Type): Modified to give support to abstract interface
18156 (Expand_N_Object_Declaration): Do not generate an initialization for
18157 a scalar temporary marked as internal.
18159 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
18160 in-out parameter that is a component in an initialization procedure,
18161 whose constraint might depend on discriminants, and that may be
18162 misaligned because of packing or representation clauses.
18163 (Is_Legal_Copy): New predicate to determine whether a possibly
18164 misaligned in-out actual can actually be passed by copy/return. This
18165 is an error in case the type is by_reference, and a warning if this is
18166 the consequence of a DEC import pragma on the subprogram.
18167 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
18169 (Expand_Inlined_Call): Mark temporary generated for the return value as
18170 internal, so that no useless scalar normalization is generated for it.
18171 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
18172 null procedure can always be inlined.
18173 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
18174 procedure, generate an explicit empty body for it.
18176 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
18177 Given a type implementing an interface, returns the corresponding
18178 access_disp_table value.
18179 (Find_Interface_Tag): New subprogram. Given a type implementing an
18180 interface, returns the record component containing the tag of the
18182 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
18183 previous ones that return the corresponding tag and access_disp_table
18185 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
18186 is a predefined primitive operation.
18187 (Expand_Subtype_From_Expr): If the expression is a selected component
18188 within an initialization procedure, compute its actual subtype, because
18189 the component may depend on the discriminants of the enclosing record.
18191 * i-cpp.ads, i-cpp.adb:
18192 This package has been left available for compatibility with previous
18193 versions of the frontend. As part of the new layout this is now a
18194 dummy package that uses declarations available at a-tags.ads
18196 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
18197 "constant access" and "aliased [constant] access" when not compiling
18199 Suppress Ada 2005 keyword warning if -gnatwY used
18200 (P_Identifier_Declarations): Add support for object declarations with
18201 access definitions.
18202 (Private_Extension_Declaration): Complete the documentation
18203 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
18204 attribute in case of private extension declaration
18205 (P_Type_Declaration): Mark as "abstract" the type declarations
18206 corresponding with protected, synchronized and task interfaces
18207 (P_Declarative_Items): "not" and "overriding" are overriding indicators
18208 for a subprogram or instance declaration.
18210 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
18211 instantiation that is a dispatching operation has controlling access
18212 parameters that are null excluding.
18213 Save and restore Ada_Version_Explicit, for implementation of AI-362
18214 (Validate_Derived_Type_Instance): Add check for abstract interface
18216 (Analyze_Formal_Package): Establish Instantiation source for the copy of
18217 the generic that is created to represent the formal package.
18218 (Analyze_Package_Instantiation): Instantiate body immediately if the
18219 package is a predefined unit that contains inlined subprograms, and
18220 we are compiling for a Configurable_Run_Time.
18221 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
18222 If the program has a null default, generate an empty body for it.
18224 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
18225 error message condition, null procedures are correctly detected now.
18226 (New_Overloaded_Entity): Bypass trivial overriding indicator check
18227 for subprograms in the context of protected types. Instead, the
18228 indicator is examined in Sem_Ch9 while analysing the subprogram
18230 (Check_Overriding_Indicator): Check consistency of overriding indicator
18231 on subprogram stubs as well.
18232 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
18234 (Analize_Subprogram_Specification): When analyzing a subprogram in which
18235 the type of the first formal is a concurrent type, replace this type
18236 by the corresponding record type.
18237 (Analyze_Subprogram_Body): Undo the previous work.
18238 (Analyze_Procedure_Call): If the call has the form Object.Op, the
18239 analysis of the prefix ends up analyzing the call itself, after which
18241 (Has_Interface_Formals): New subprogram subsidiary to analyze
18242 subprogram_specification that returns true if some non
18243 class-wide interface subprogram is found
18244 (New_Overloaded_Entity): Modified to give support to abstract
18246 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
18247 access to subprograms must be recursive.
18248 (Is_Unchecked_Conversion): Improve the test that recognizes
18249 instantiations of Unchecked_Conversion, and allows them in bodies that
18250 are to be inlined by the front-end. When the body comes from an
18251 instantiation, a reference to Unchecked_Conversion will be an
18252 Expanded_Name, even though the body has not been analyzed yet.
18253 Replace Is_Overriding and Not_Overriding in subprogram_indication with
18254 Must_Override and Must_Not_Override, to better express intent of AI.
18255 (Analyze_Subprogram_Body): If an overriding indicator is given, check
18256 that it is consistent with the overrinding status of the subprogram
18258 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
18260 If the subprogram is a null procedure, indicate that it does not need
18263 * sem_disp.adb (Check_Controlling_Type): Give support to entities
18264 available through limited-with clauses.
18265 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
18266 allowed as the last primitive of a tagged type if it has no previous
18268 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
18269 to give support to abstract interface types
18271 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
18272 in the case where the target type is an anonymous access type of an
18273 object or component (that is, when Is_Local_Anonymous_Access is true).
18274 Prevent the special checks for conversions of access discriminants in
18275 the case where the discriminant belongs to a nonlimited type, since
18276 such discriminants have their accessibility level defined in the same
18277 way as a normal component of an anonymous access type.
18278 (Resolve_Allocator): When an allocator's designated type is a class-wide
18279 type, check that the accessibility level of type given in the
18280 allocator's expression or subtype indication is not statically deeper
18281 than the level of the allocator's access type.
18282 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
18283 name in a discriminant constraint of a record component.
18284 (Resolve_Explicit_Dereference): Do not check whether the type is
18285 incomplete when the dereference is a use of an access discriminant in
18286 an initialization procedure.
18287 (Resolve_Type_Conversion): Handle conversions to abstract interface
18289 (Valid_Tagged_Conversion): The conversion of a tagged type to an
18290 abstract interface type is always valid.
18291 (Valid_Conversion): Modified to give support to abstract interface types
18292 (Resolve_Actuals): Enable full error reporting on view conversions
18293 between unrelated by_reference array types.
18294 The rule for view conversions of arrays with aliased components is
18295 weakened in Ada 2005.
18296 Call to obsolescent subprogram is now considered to be a violation of
18297 pragma Restrictions (No_Obsolescent_Features).
18298 (Check_Direct_Boolean_Operator): If the boolean operation has been
18299 constant-folded, there is nothing to check.
18300 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
18301 check on possible violation of restriction No_Direct_Boolean_Operators
18302 until after expansion of operands, to prevent spurious errors when
18303 operation is constant-folded.
18305 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
18306 Has_Compatible_Type): Modified to give support to abstract interface
18308 (Interface_Present_In_Ancestor): New function to theck if some ancestor
18309 of a given type implements a given interface
18311 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
18312 prefix is a parameterless function that returns an access_to_procedure.
18313 (Transform_Object_Operation): Handle properly function calls of the
18314 form Obj.Op (X), which prior to analysis appear as indexed components.
18315 (Analyze_One_Call): Complete the error notification to help new Ada
18317 (Analyze_Allocator): For an allocator without an initial value, where
18318 the designated type has a constrained partial view, a discriminant
18319 constraint is illegal.
18321 2005-06-14 Robert Dewar <dewar@adacore.com>
18323 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
18324 do with treatment of Set_Col when positioned at end of line character.
18326 2005-06-14 Robert Dewar <dewar@adacore.com>
18328 * atree.adb: (Elist*): Protect against uninitialized field
18330 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18332 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
18333 for an attribute reference that returns an access type.
18334 (Apply_Discriminant_Check): No need for check if (designated) type has
18335 constrained partial view.
18337 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
18338 both bound checks, rather than a conjunction.
18339 (Insert_Valid_Check): If the expression is an actual that is an indexed
18340 component of a bit-packed array, force expansion of the packed element
18341 reference, because it is specifically inhibited elsewhere.
18343 2005-06-14 Vincent Celier <celier@adacore.com>
18345 * clean.adb (Clean_Project): Correctly delete executable specified as
18346 absolute path names.
18348 * make.adb (Gnatmake): Allow relative executable path names with
18349 directory information even when project files are used.
18350 (Change_To_Object_Directory): Fail gracefully when unable to change
18351 current working directory to object directory of a project.
18352 (Gnatmake): Remove exception handler that could no longer be exercized
18353 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
18354 may be deallocated by Normalize_Arguments.
18355 (Collect_Arguments): Eliminate empty arguments
18357 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
18358 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
18359 (Check_Project): Return False when Project is No_Project. Return True
18360 when All_Projects is True.
18361 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
18362 All_Projects to True.
18365 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18366 Javier Miranda <miranda@adacore.com>
18367 Thomas Quinot <quinot@adacore.com>
18368 Robert Dewar <dewar@adacore.com>
18369 Hristian Kirtchev <kirtchev@adacore.com>
18370 Gary Dismukes <dismukes@adacore.com>
18372 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
18373 anonymous access types, to indicate that the accessibility level of
18374 the type is determined by that of the enclosing declaration.
18375 (Has_Persistent_BSS): New flag
18376 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
18377 of this attribute with functions.
18378 (Is_Primitive_Wrapper): Remove the barrier.
18379 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
18380 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
18382 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
18383 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
18385 (Is_Pure_Unit_Access_Type): New flag
18386 (Abstract_Interfaces): Complete the assertion to cover all usages.
18387 (Set_Is_Interface): Complete the assertion to cover all usages.
18388 (Is_Primitive_Wrapper): New attribute.
18389 (Is_Obsolescent): Now applies to all entities (though it is only set
18390 for subprograms currently)
18391 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
18392 which solves various problems concerning access subtypes.
18393 (Has_Persistent_BSS): New flag
18394 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
18395 Remove these subprograms because this attribute is currently
18398 Has_Specified_Stream_Input (Flag190)
18399 Has_Specified_Stream_Output (Flag191)
18400 Has_Specified_Stream_Read (Flag192)
18401 Has_Specified_Stream_Write (Flag193)
18402 Present in all type and subtype entities. Set for a given view if the
18403 corresponding stream-oriented attribute has been defined by an
18404 attribute definition clause. When such a clause occurs, a TSS is set
18405 on the underlying full view; the flags are used to track visibility of
18406 the attribute definition clause for partial or incomplete views.
18407 (Is_Pure_Unit_Access_Type): New flag
18408 Clarify use of Is_Internal.
18409 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
18410 internally generated to wrap the invocation of tasks and protected
18411 types that implement interfaces.
18412 (Implementation_Base_Type): Documentation correction
18413 (Is_Obsolescent): Now applies to all entities (though it is only set
18414 for subprograms currently)
18415 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
18416 which solves various problems concerning access subtypes.
18418 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
18419 for examined parameters. Identify unequal parameter list lengths as
18420 non-conformant parameters.
18421 (Overriding_Possible): Do not check for "All" qualifier in declaration
18422 of controlling access parameter, following prescription of AI-404.
18423 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
18424 that build the procedure body that wraps an entry invocation
18425 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
18426 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
18427 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
18428 give support to abstract interface types
18430 * freeze.adb (Freeze_Entity): Issue error message if
18431 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
18432 type has no storage pool (Ada 2005) AI-366.
18433 Also modified to give support to abstract interface types
18434 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
18435 Inline_Always pragma.
18437 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
18438 now begin an entry declaration.
18439 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
18440 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
18441 a subprogram declaration preceded by an overriding indicator.
18442 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
18443 declarations or subprogram declarations preceded by reserved words
18444 "not" or "overriding".
18445 (P_Entry_Declaration): Update comment. Parse and check overriding
18446 indicator, set semantic flags of entry declarations.
18447 (P_Task): New error message in case of private applied
18448 to a task type declaration.
18449 (P_Protected): New error message in case of private applied
18450 to a task type declaration.
18452 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
18453 in which the full view of a type implementing an interface is a
18455 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
18456 Declare_Inherited_Private_Subprograms): If an explicit operation
18457 overrides an operation that is inherited in the private part, mark the
18458 explicit one as overriding, to enable overriding indicator checks.
18459 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
18460 full view to partial view, to simplify handling in back-end.
18462 * sprint.adb: Print interface lists where needed: derived types,
18463 protected types, task types.
18464 output "is null" for null procedures. Part of implementation of
18466 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
18467 relaxation of rules for access types in pure, shared passive partitions.
18469 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
18470 first read discriminants into temporary objects, performing checks on
18471 the read values, then possibly performing discriminant checks on the
18472 actual (if it is constrained), and only finally reading the components
18473 into a constrained temporary object.
18474 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
18475 case of reading discriminants of a mutable record type to recognize
18476 the new form of the code generated by
18477 Build_Mutable_Record_Read_Procedure.
18479 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
18480 of a simple call to Make_TSS_Name.
18481 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
18482 buffer, in order for Is_TSS to work correctly on local TSS names.
18484 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
18485 Is_Local_Anonymous_Access to check legaliy of attributes in the
18486 context of access components and stand-alone access objects.
18487 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
18488 treated as available for a limited private type if there is an
18489 attribute_definition_clause that applies to its full view, but not in
18490 other cases where the attribute is available for the full view
18491 (specifically, the sole fact that the full view is non-limited does not
18492 make the attribute available for the partial view).
18493 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
18494 non-overloaded intrinsic subprogram.
18495 (Check_Stream_Attribute): Reject an attribute reference for an
18496 unavailable stream attribute even if the prefix is not a limited type
18497 (case of a 'Input attribute reference for an abstract, non-classwide
18499 (Stream_Attribute_Available): New function to determine whether a stream
18500 attribute is available at a place.
18501 (Check_Attribute): Use Stream_Attribute_Available instead of just
18502 testing for TSS presence on the implementation base type.
18503 (Analyze_Attribute): Modified to give support to task interfaces.
18504 (Analyze_Access_Attribute): Add error check for use of an Access (or
18505 Unrestricted_Access) attribute with a subprogram marked as
18507 (Analyze_Attribute, case Attribute_Address): Add error check for use of
18508 an Address attribute with a subprogram marked as Inline_Always.
18509 Update Eval_Attribute to handle new value of Width from AI-395
18511 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
18512 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
18513 Factor common code across the stream-oriented attribute circcuits into
18514 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
18515 processing is functionally identical to the previous duplicated one,
18516 except that an expression that denotes an abstract subprogram will now
18517 be rejected, as mandated by AI-195 item 5.
18519 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
18520 Is_Local_Anonymous_Access to apply accessibility checks to access
18521 components and stand-alone access objects.
18522 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
18524 (Is_Potentially_Persistent_Type): New function
18525 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
18526 a heap-object whose type has a constrained partial view, the object is
18527 unconstrained and the component may depend on a discriminant, making its
18530 * sinfo.ads, sinfo.adb
18531 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
18532 (Must_Override): Flag applicable to N_Entry_Declaration.
18533 Indicate that interface_list can appear in single task and single
18534 protected declarations.
18535 Replace Is_Overriding and Not_Overriding with Must_Override and
18536 Must_Not_Override, to better express intent of AI.
18537 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
18538 of an overriding indicator in a subprogram or instance.
18539 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
18540 Add the overriding indicator [[not] overriding] construct to the
18541 following grammar productions:
18543 GENERIC_INSTANTIATION
18544 SUBPROGRAM_SPECIFICATION
18546 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
18547 can start with an overriding indicator.
18549 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
18550 flags accordingly on subrogram specifications or instances.
18553 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
18554 overriding_indicator, if present, is consistent with status of spec.
18555 Improve error message for null-excluding checks on controlling access
18557 (Check_In_Previous_With_Clause): Protect the frontend against
18558 previously reported critical errors in the context clauses.
18559 Save and restore Ada_Version_Explicit, for implementation of AI-362
18560 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
18561 operation verify that controlling formals of the renamed entity that
18562 are access parameters are explicitly non-null.
18563 (Find_Expanded_Name): Improve error message when prefix is an illegal
18564 reference to a private child unit.
18566 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
18567 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
18568 Rewrite to correspond to new wide character names in AI-395
18570 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
18571 default procedures.
18573 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18574 Robert Dewar <dewar@adacore.com>
18576 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
18577 code, not on the bodies of predefined operations, to cut down on
18580 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18582 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
18583 be expanded in place. The size computation does not require a
18584 subtraction, which would raise an exception on a compiler built with
18585 assertions when the upper bound is Integer'first.
18586 (Flatten): For an array of composite components, take into account the
18587 size of the components to determine whether it is safe to expand the
18588 array into a purely positional representation.
18590 2005-06-14 Thomas Quinot <quinot@adacore.com>
18592 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
18593 denoting a formal parameter into account.
18595 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18597 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
18598 the entry_call alternative of a conditional entry call, wrap the
18599 conditional entry call itself.
18601 2005-06-14 Nicolas Setton <setton@adacore.com>
18602 Ed Schonberg <schonberg@adacore.com>
18604 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
18605 the "simple_choice" member in a variant record, in accordance with the
18606 description in the package spec: the information output for a constant
18607 should be "S number", not "SS number".
18608 (Get_Encoded_Name): Return at once if not generating code. Avoids name
18609 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
18611 2005-06-14 Thomas Quinot <quinot@adacore.com>
18613 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
18614 RACW without any primitives, do not generate the if statement for
18615 dispatching by name in the PolyORB/DSA case, as it would be malformed
18616 (it would have an Elsif_Parts list that is not No_List, but with a
18619 2005-06-14 Robert Dewar <dewar@adacore.com>
18621 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
18623 2005-06-14 Jose Ruiz <ruiz@adacore.com>
18625 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
18626 can determine whether pragma Suppress_Exception_Locations is in effect.
18628 * utils2.c (build_call_raise): Do not pass the file name to the
18629 exception handler if pragma Suppress_Exception_Locations is in effect.
18630 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
18632 2005-06-14 Emmanuel Briot <briot@adacore.com>
18634 * g-debpoo.adb (Deallocate, Dereference): Improve output.
18636 2005-06-14 Nicolas Roche <roche@adacore.com>
18638 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
18640 (Next_Level): Fix minor bug in handling of ../dir case
18641 (Read): Add dir separator to Directory name so that "" is understood as
18644 2005-06-14 Pascal Obry <obry@adacore.com>
18646 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
18647 releasing the items.
18649 2005-06-14 Vincent Celier <celier@adacore.com>
18650 Cyrille Comar <comar@adacore.com>
18652 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
18653 with output file descriptor and with output file name.
18654 (Dup, Dup2): Now global procedures as they are used by two subprograms
18655 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
18657 2005-06-14 Thomas Quinot <quinot@adacore.com>
18660 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
18662 (Create_Selector): Bind listening socket used to create the signalling
18663 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
18664 Set listen backlog to 1 to ensure that we detect socket theft by a
18665 failure of our own connect(2) call.
18666 (Check_Selector): Improve documentation of the selector mechanism.
18667 (Broadcast_Inet_Addr): New constant.
18669 2005-06-14 Gary Dismukes <dismukes@adacore.com>
18671 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
18672 type which turns out to be an incomplete and incorrect fix.
18673 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
18674 of the type is declared in a record (for determination of insertion
18676 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
18677 a private type and ensure that the primary entity is used for the type
18678 of the newly created function's V formal by taking the Etype of the
18681 2005-06-14 Javier Miranda <miranda@adacore.com>
18682 Jose Ruiz <ruiz@adacore.com>
18683 Robert Dewar <dewar@adacore.com>
18684 Ed Schonberg <schonberg@adacore.com>
18686 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
18687 that indicates if we are parsing a compilation unit found in a
18688 limited-with clause.
18689 It is use to avoid the circularity check.
18691 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
18692 we are parsing a compilation unit found in a limited-with clause. This
18693 is use to avoid the circularity check.
18695 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
18696 unit as a consequence of parsing a limited-with clause. This is used
18697 to avoid the circularity check.
18699 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
18700 (Analyze_Context): Limited-with clauses are now allowed
18701 in more compilation units.
18702 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
18703 againts previously reported critical errors in context clauses
18704 (Install_Limited_Withed_Unit): Code cleanup plus static detection
18705 of two further errors: renamed subprograms and renamed packages
18706 are not allowed in limited with clauses.
18707 (Install_Siblings): Do not install private_with_clauses on the package
18708 declaration for a non-private child unit.
18709 (Re_Install_Parents): When a parent of the subunit is reinstalled,
18710 reset visibility of child units properly.
18711 (Install_Withed_Unit): When a child unit appears in a with_clause of its
18712 parent, it is immediately visible.
18714 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18715 Emmanuel Briot <briot@adacore.com>
18717 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
18718 declared within an inlined body as referenced, to prevent spurious
18720 (Output_One_Ref): If an entity renames an array component, indicate in
18721 the ALI file that this aliases (renames) the array. Capture as well
18722 function renamings that rename predefined operations.
18723 Add information about generic parent for package and subprogram
18725 (Get_Type_Reference): For a subtype that is the renaming of an actual in
18726 an instantiation, use the first_subtype to ensure that we don't generate
18727 cross-reference information for internal types.
18728 For objects and parameters of a generic private type, retain the '*'
18729 indicator to distinguish such an entity from its type.
18731 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
18732 to store information about instantiated entities.
18734 * ali.adb (Scan_ALI): Add support for parsing the reference to the
18737 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
18738 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
18741 2005-06-10 Doug Rupp <rupp@adacore.com>
18742 Arnaud Charlet <charlet@adacore.com>
18743 Olivier Hainque <hainque@adacore.com>
18744 Jose Ruiz <ruiz@adacore.com>
18746 * Make-lang.in: Add initialize.o when needed.
18747 Remove obsolete references to RT_FLAGS.
18748 Add missing dependencies for sdefault.o
18750 * initialize.c: New file.
18752 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
18753 [VMS] cond_signal_table: Fix problem in declaration.
18754 [VMS] __gnat_error_handler: rewrite.
18755 Move all __gnat_initialize() routines to initialize.c
18756 Specialize the former "hpux" section to "hppa hpux", as this is what the
18757 section really is here for and we now have other hpux ports that need
18758 different contents.
18759 (__gnat_adjust_context_for_raise) i386-linux: First version of this
18760 function for this target. Adjust PC by one in the machine context. This
18761 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
18762 it is more reliable to do that in the signal handler itself.
18763 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
18764 flags, so that the handler is passed the context structure to adjust
18765 prior to the raise.
18766 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
18767 SA_SIGINFO sigaction should look like. Call
18768 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
18769 Machine_State_Operations stuff.
18770 Add conditional code so that the x86_64 is also supported.
18772 2005-06-14 Pascal Obry <obry@adacore.com>
18774 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
18777 2005-06-14 Robert Dewar <dewar@adacore.com>
18779 * opt.ads, opt.adb: New flags for persistent_bss mode
18780 Add Ada_Version_Explicit, for implementation of AI-362
18781 Add Assertions_Enabled_Config and associated handling
18782 Needed since setting can be changed with Assertion_Policy pragma
18783 Add new flag Warn_On_Ada_2005_Compatibility
18785 * switch-c.adb: Recognize -gnatwy/Y
18786 Set Ada_Version_Explicit, for implementation of AI-362
18787 The -gnatg switch now includes -gnatyu
18789 * usage.adb: Add -gnatwy/Y
18790 Remove wrong asterisk on -gnatwX line
18791 Add line for -gnatyu switch
18793 2005-06-14 Vincent Celier <celier@adacore.com>
18795 * osint.adb (Add_Default_Search_Dirs): Put source and object
18796 directories of project files before directories coming from
18797 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
18799 2005-06-14 Robert Dewar <dewar@adacore.com>
18802 * par-ch2.adb (Scan_Pragma_Argument): New procedure
18803 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
18805 2005-06-14 Vincent Celier <celier@adacore.com>
18807 * prep.adb (Preprocess): Ignore error when scanning the first token of
18810 2005-06-14 Vincent Celier <celier@adacore.com>
18812 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
18813 (Check_Stand_Alone_Library): If the specified reference symbol file does
18814 not exist, only issue a warning when the symbol policy is not
18815 Controlled. And, when symbol policy is Compliant, set the symbol
18816 policy to Autonomous.
18818 2005-06-14 Vincent Celier <celier@adacore.com>
18820 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
18821 when the project file in a with clause is not the last one, that is the
18822 project file name is followed by a comma.
18823 * prj-pp.adb: (First_With_In_List): New Boolean global variable
18824 (Print): Issue list of project files separated by commas in with clauses
18825 according to the values returned by Is_Not_Last_In_List.
18826 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
18827 (Set_Is_Not_Last_In_List): New procedure
18829 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
18831 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
18833 2005-06-14 Robert Dewar <dewar@adacore.com>
18835 * scng.adb: Add call to new Check_EOF routine
18836 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
18837 Add some comments regarding wide character handling
18839 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
18841 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
18843 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
18844 characters are now considered graphic characters and hence yield false
18847 * nmake.adt: Modify header so that xnmake does not generate output
18848 files with multiple blank lines.
18850 * treeprs.adt: Remove a blank line so that output from xtreeprs does
18851 not have an extra blank line
18853 2005-06-14 Gary Dismukes <dismukes@adacore.com>
18855 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
18856 expression when the component type is an anonymous access type to
18857 ensure that appropriate accessibility checks are done.
18859 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
18860 expression of an assignment when the target object is of an anonymous
18861 access type. This ensures that required accessibility checks are done.
18862 (One_Bound): Move the check for type Universal_Integer to
18864 (Process_Bounds): Check whether the type of the preanalyzed range is
18865 Universal_Integer, and in that case set Typ to Integer_Type prior
18866 to setting the type of the original range and the calls to One_Bound.
18868 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18870 * sem_case.adb (Expand_Others_Choice): Improve warning.
18872 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18874 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
18875 constraint of full view if present, when other type is discriminated.
18876 (Eval_Relational_Op): Recognize tests of pointer values against Null,
18877 when the pointer is known to be non-null, and emit appropriate warning.
18879 2005-06-14 Robert Dewar <dewar@adacore.com>
18880 Ed Schonberg <schonberg@adacore.com>
18883 * sem_prag.adb: Implement pragma Persistent_BSS
18884 Remove obsolete pragma Persistent_Data, Persistent_Object
18885 Set Ada_Version_Explicit, for implementation of AI-362
18886 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
18887 Add processing for pragma Pure_05 and Preelaborate_05
18888 Add processing for Assertion_Policy pragma
18889 Add pragma identifiers for Assert
18890 (Analyze_Pragma, case Assert): Check number of arguments
18891 (Process_Inline): Additional guard against an illegal program, where the
18892 argument of the pragma is undefined, and warnings on redundant
18893 constructs are enabled.
18894 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
18895 Ada_05 to this pragma, specifying that the pragma is only active in
18897 (Check_Arg_Order): New procedure
18898 Add appropriate calls to this procedure throughout
18899 Also throughout, check entity name before doing any other checks
18901 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
18902 Remove obsolete pragma Persistent_Data, Persistent_Object
18903 Add entries for pragma Pure_05 and Preelaborate_05
18904 Add entries for Assertion_Policy pragma and associated names
18905 Add some names for pragma argument processing
18907 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
18909 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18911 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
18912 appears within a negation (either from source or as a rewriting of
18913 inequality) adjust text of warning accordingly.
18915 2005-06-14 Thomas Quinot <quinot@adacore.com>
18917 * s-strxdr.adb: Follow AI95-00132
18919 2005-06-14 Arnaud Charlet <charlet@adacore.com>
18921 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
18923 2005-06-14 Arnaud Charlet <charlet@adacore.com>
18924 Jose Ruiz <ruiz@adacore.com>
18926 * s-tposen.adb, s-tpobop.adb
18927 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
18929 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
18930 there is no violation of the Max_Entry_Queue_Length restriction (if it
18931 has been set); Program_Error is raised otherwise.
18932 (Requeue_Call): Before requeuing the task on the target entry queue we
18933 check that there is no violation of the Max_Entry_Queue_Length
18934 restriction (if it has been set); Program_Error is raised otherwise.
18936 2005-06-14 Robert Dewar <dewar@adacore.com>
18938 * styleg.adb: Fix several remaining problems in -gnatyu switch
18939 Blank line count not reset at start
18940 Scanning outside source buffer in some cases
18941 Confusing message for blanks at end of file
18942 Non-empty blank lines not recognized
18944 * nmake.adt: Modify header so that xnmake does not generate output
18945 files with multiple blank lines.
18947 * treeprs.adt: Remove a blank line so that output from xtreeprs does
18948 not have an extra blank line
18950 2005-06-14 Sergey Rybin <rybin@adacore.com>
18952 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
18954 2005-06-14 Doug Rupp <rupp@adacore.com>
18955 Vincent Celier <celier@adacore.com>
18957 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
18960 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
18961 Remove "Library" command.
18962 Change keyword for style check -gnatyd from NOCRLF to
18964 Remove useless second style check keyword NONE
18965 Remove help documentation for inexistent style check keyword
18967 Add help documentation for style check keywords DOS_LINE_ENDINGS,
18968 UNNECESSARY_BLANK_LINES and XTRA_PARENS
18969 Add UNNECESSARY_BLANK_LINES for -gnatyu
18970 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
18972 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
18974 2005-06-14 Vincent Celier <celier@adacore.com>
18976 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
18977 gprmake was invoked with -d.
18978 (Compile_Sources): If -d was used, output the "completed ..." message
18979 for each compilation.
18980 (Scan_Arg): Recognize new switch -d
18981 When -c and at least one main is specified, set
18982 Unique_Compile to True to guarantee that no other sources will be
18985 2005-06-14 Matthew Heaney <heaney@adacore.com>
18987 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
18988 * a-swuwha.ads, a-swuwha.adb: New files
18990 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
18991 * a-szuzha.ads, a-szuzha.adb: New files.
18993 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
18994 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
18995 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
18996 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
18997 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
18998 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
18999 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
19000 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
19001 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
19002 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
19005 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
19006 Olivier Hainque <hainque@adacore.com>
19007 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19008 Pascal Obry <obry@adacore.com>
19010 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
19012 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
19013 making a temporary around a procedure call because of non-addressable
19015 (process_freeze_entity): If entity is a private type, capture size
19016 information that may have been computed for the full view.
19017 (tree_transform, case N_Allocator): If have initializing expression,
19018 check type for Has_Constrained_Partial_View and pass that to
19020 (tree_transform, case N_Return_Statement): Pass extra arg to
19023 * decl.c (annotate_value): Remove early return if -gnatR is not
19025 (gnat_to_gnu_field): Don't make a packable type for a component clause
19026 if the position is byte aligned, the field is aliased, and the clause
19027 size isn't a multiple of the packable alignment. It serves no useful
19028 purpose packing-wise and would be rejected later on.
19029 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
19032 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
19033 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
19035 (create_concat_name): Idem.
19037 2005-06-10 Robert Dewar <dewar@adacore.com>
19038 Eric Botcazou <ebotcazou@adacore.com>
19039 Ben Brosgol <brosgol@adacore.com>
19040 Cyrille Comar <comar@adacore.com>
19041 Sergey Rybin <rybin@adacore.com>
19042 Pascal Obry <obry@adacore.com>
19044 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
19045 Document second argument (Ada_05) of pragma Obsolescent
19046 Add note that call to subprogram marked with pragma Obsolescent
19047 is now considered to be a violation of program Restrictions
19048 (No_Obsolescent_Features).
19049 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
19050 that only machine-dependent attributes are supported.
19053 Commented out menu lines and empty section for gnatclean examples
19055 Fix some over long lines
19056 Clarify and enhance documentation of ADA_PROJECT_PATH.
19057 Rework section 2.11.2(3) about linking with a non-GNU compiler.
19058 Mention new switch -fcallgraph-info.
19059 Mention new switch -fstack-usage.
19060 For gnatpp, replace '-notab' with '-N' and add this option to Index
19061 Corrected VMS example.
19062 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
19064 Add documentation for -gnatyu switch (unnecessary blank lines)
19065 Document new switch -U for GNAT PRETTY and GNAT METRIC
19066 Add note about Stdcall being handled as C convention on non Windows OS.
19067 Remove some junk typo in description of gnatbind -S switch
19068 Remove reference to Extensions_Allowed pragma
19069 Document the new order of the directories to be searched (source and
19070 object directories of project files before directories in ADA_*_PATH
19071 environment variables.
19073 * g-trasym.ads: Document that IRIX is supported
19075 2005-06-10 Arnaud Charlet <charlet@adacore.com>
19077 * Makefile.in: Add initialize.o when needed.
19078 Adapt to new VMS package body Symbols and subunits
19079 No specialized version of a-sytaco is needed for VxWorks.
19081 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
19082 * a-zchara.ads, a-widcha.ads: New files.
19084 * system-hpux-ia64.ads: New file.
19086 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
19087 is imported from the VxWorks kernel.
19089 2005-06-14 Robert Dewar <dewar@adacore.com>
19091 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
19092 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
19093 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
19094 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
19095 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
19096 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
19097 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
19098 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
19099 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
19100 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
19101 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
19102 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
19104 2005-06-14 Thomas Quinot <quinot@adacore.com>
19106 * xeinfo.adb: Fix typo in comment
19108 2005-06-14 Javier Miranda <miranda@adacore.com>
19110 * repinfo.ads: Fix typo in comment
19112 2005-06-14 Gary Dismukes <dismukes@adacore.com>
19114 * s-finimp.adb (Parent_Tag): Delete this imported function (function
19115 Parent_Tag is now in the visible part of Ada.Tags).
19116 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
19117 using imported function.
19119 2005-06-14 Bernard Banner <banner@adacore.com>
19121 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
19122 also apply for handling support for VxSim 653.
19124 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
19126 * xsnames.adb: Add automatic generation of snames.h.
19128 2005-06-14 Thomas Quinot <quinot@adacore.com>
19130 * gen-soccon.c: Add IP_MULTICAST_IF constant
19131 Minor reformatting and adjustments to prevent warnings.
19133 2005-06-14 Pascal Obry <obry@adacore.com>
19135 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
19137 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
19139 * trans.c (gnat_gimplify_expr): Call
19140 recompute_tree_invarant_for_addr_expr when we change
19141 the operand of the ADDR_EXPR.
19143 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19145 * misc.c: Don't include errors.h.
19147 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19149 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
19151 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
19153 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
19155 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
19157 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
19160 * Makefile.in: Make TGT_LIB behave correctly.
19162 2005-04-23 DJ Delorie <dj@redhat.com>
19164 * misc.c: Adjust warning() callers.
19166 2005-04-16 Laurent GUERBY <laurent@guerby.net>
19169 * a-nudira.adb (Value): Check for valid string.
19170 * a-nuflra.adb (Value): Likewise.
19172 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
19174 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
19176 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
19178 * adaint.c, init.c, tracebak.c: Fix comment typos.
19179 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
19181 2005-04-07 Laurent GUERBY <laurent@guerby.net>
19182 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19184 * Makefile.in: Add make ifeq define for hppa linux tasking support.
19185 * system-hpux.ads: Define Signed_Zeros to be True.
19186 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
19188 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
19190 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
19191 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
19194 2005-03-30 Tom Tromey <tromey@redhat.com>
19196 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
19198 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
19200 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
19202 2005-03-29 Robert Dewar <dewar@adacore.com>
19204 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
19205 fixed-point expression has value that is not a multiple of the Small
19208 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
19210 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
19213 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
19215 2005-03-29 Vincent Celier <celier@adacore.com>
19217 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
19218 (Build_Dynamic_Library.Version_String): Return the empty string when
19219 Lib_Version is empty or when the symbol policy is not Autonomous.
19221 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
19222 a symbol is not in the reference symbol file, increase the Major ID
19223 and set the Minor ID to 0.
19224 Use gsmatch=lequal instead of gsmatch=equal
19226 2005-03-29 Doug Rupp <rupp@adacore.com>
19228 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
19229 name and translate.
19231 2005-03-29 Javier Miranda <miranda@adacore.com>
19233 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
19234 (Inherit_DT): The first formal has been redefined as a Tag.
19235 This allows us the removal of the subprogram Get_TSD.
19236 (TSD): Replace the call to Get_TSD by the actual code.
19238 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
19239 (Make_DT): Upgrade the call to Inherit_TSD according to the
19240 new interface: the first formal is now a Tag.
19242 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
19243 redefined as a Tag.
19244 This change allows us to remove the subprogram Get_TSD.
19245 (CPP_Get_TSD): Subprogram removed.
19246 (TSD): Replace the call to CPP_Get_TSD by the actual code.
19248 * rtsfind.ads: Remove support to call the run-time
19251 2005-03-29 Robert Dewar <dewar@adacore.com>
19253 * errutil.adb, errout.adb:
19254 Minor comment updates on Line_Terminator references
19256 * par-ch10.adb: Add ??? comment about line terminator
19258 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
19259 (check dos line terminator).
19260 (Check_Line_Max_Length): New procedure, split off from the existing
19261 Check_Line_Terminator routine. Separating this out allows -gnatyf to
19262 be properly recognized.
19264 * styleg.adb: Add ??? comment for line terminator reference
19266 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
19267 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
19269 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
19270 (check dos line terminator).
19271 (Check_Line_Max_Length): New procedure, split off from the existing
19272 Check_Line_Terminator routine. Separating this out allows -gnatyf to
19273 be properly recognized.
19275 * stylesw.ads, stylesw.adb:
19276 Add handling for new -gnatyd switch (check dos line terminator)
19278 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
19279 Recognize -gnatwb/-gnatwB switches
19280 Include Warn_On_Bad_Fixed_Value for -gnatg
19283 Add line for new -gnatyd switch (check dos line terminator)
19285 * usage.adb: Add lines for -gnatwb/-gnatwB
19287 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
19289 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
19291 * gnat_ugn.texi: Fix overlong lines
19292 Document new -gnatyd switch
19293 Document new -gnatwb/-gnatwB switches
19295 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19297 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
19298 order to retrieve the component list of the type, before examining
19299 individual components.
19301 * sem_type.adb (Covers): Types are compatible if one is the base type
19302 of the other, even though their base types might differ when private
19303 views are involved.
19305 2005-03-29 Thomas Quinot <quinot@adacore.com>
19307 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
19308 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
19309 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
19310 analyzed if expansion is disabled (which could otherwise cause spurious
19311 error messages if expansion has been disabled due to previous
19312 (unrelated) errors).
19314 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
19315 is disabled, the entity denoted by the argument is the access type
19316 itself, not an underlying record type, so there is no need to go back
19317 to the Corresponding_Remote_Type.
19319 2005-03-29 Gary Dismukes <dismukes@adacore.com>
19320 Robert Dewar <dewar@adacore.com>
19322 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
19323 expand a call to an instance of
19324 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
19325 Constructor actual of the instance. A class-wide membership
19326 check is also generated, to ensure that the tag passed to the instance
19327 denotes a type in the class.
19328 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
19329 of Name_Generic_Dispatching_Constructor.
19331 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
19332 05 unit for AI-260-02).
19334 * a-tgdico.ads: New file.
19336 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
19337 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
19339 * snames.ads, snames.adb (Preset_Names): Add entry for
19340 Generic_Dispatching_Constructor.
19343 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
19344 character type cases.
19345 (Analyze_Subprogram_Renaming): Add special handling for
19346 the case of renaming of stream attributes when the renaming denotes a
19347 generic formal subprogram association for an abstract formal subprogram.
19348 Check that the attribute is a primitive stream attribute (and not
19349 a class-wide stream attribute) and then rewrite the attribute name
19350 as the name of the appropriate compiler-generated stream primitive.
19352 2005-03-29 Robert Dewar <dewar@adacore.com>
19354 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
19356 (Is_Possibly_Unaligned_Object): Correct typo that
19357 resulted in inaccurate result for unaligned scalars within records.
19359 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19361 * freeze.adb (Freeze_Record_Type): If the type of the component is an
19362 itype whose parent is controlled and not yet frozen, do not create a
19363 freeze node for the itype if expansion is disabled.
19365 2005-03-29 Vincent Celier <celier@adacore.com>
19367 * make.adb (Gnatmake): Don't fail if the main project file is declared
19368 as having no Ada sources. Do not display message "no sources to
19369 compile" in quiet output.
19371 2005-03-29 Doug Rupp <rupp@adacore.com>
19373 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
19376 2005-03-29 Robert Dewar <dewar@adacore.com>
19378 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
19381 2005-03-29 Robert Dewar <dewar@adacore.com>
19383 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
19384 missing TYPE Improve the error message generated when compiling a
19385 limited interface in Ada83 or Ada95 mode.
19387 2005-03-29 Robert Dewar <dewar@adacore.com>
19389 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
19390 rather than proceed ahead using a junk attribute name.
19392 2005-03-29 Vincent Celier <celier@adacore.com>
19394 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
19396 * prj-part.adb (Parse_Single_Project): Set the location of a project
19397 on its defining identifier, rather than on the reserved word "project".
19399 * prj-proc.adb (Expression): Adapt to the fact that default of external
19400 references may be string expressions, not always literal strings.
19401 (Recursive_Process): Set Display_Name equal to Name
19402 when Location is No_Location, that is when there is no actual file.
19403 Get the Display_Name of the project from the source, when it is not a
19405 (Process): Use the Display_Name in error messages
19407 * prj-strt.adb (External_Reference): Allow default to be string
19408 expressions, not only literal strings.
19410 2005-03-29 Vincent Celier <celier@adacore.com>
19412 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
19413 file and the reference symbol file to be the same file.
19415 2005-03-29 Thomas Quinot <quinot@adacore.com>
19417 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
19418 forbid conversion of a local access-to-subprogram type to a remote one.
19420 * sem_util.adb (Wrong_Type): For a record type that is the expanded
19421 equivalent type for a remote access-to-subprogram type, go back to the
19422 original RAS entity when displaying an error message, so the casing is
19423 the original source casing.
19425 2005-03-29 Robert Dewar <dewar@adacore.com>
19427 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
19430 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19432 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
19433 subtype if code is being pre-analyzed, to prevent un-expanded
19434 references to protected formals, among others.
19435 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
19436 interpretation that can be a call, include the result of the call as a
19437 possible interpretation of the dereference.
19439 * sem_ch5.adb (Process_Bounds): Determine type of range by
19440 pre-analyzing a copy of the original range, and then analyze the range
19441 with the expected type.
19443 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
19444 with an overloaded prefix where not all interpretations yield an
19445 access to subprogram, do not rewrite node as a call.
19446 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
19447 the node as a call once the context identifies the interpretation of
19448 the prefix whose call yields the context type.
19449 (Valid_Conversion): For the case of a conversion between
19450 local access-to-subprogram types, check subtype conformance using
19451 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
19452 detailed error message.
19454 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19456 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
19457 indicator, indicate that the formal can never be null.
19458 (Process_Formals): If a formal has a non_null indicator, insert the
19459 resulting subtype immediately before the enclosing subprogram decl,
19460 and not at the beginning of the corresponding declarative part, to
19461 prevent access before elaboration (Ada2005).
19463 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19466 * utils.c (finish_record_type): Use variable_size when setting sizes.
19468 2005-03-29 Robert Dewar <dewar@adacore.com>
19470 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
19471 guarantee Unix style line terminators for the output files, even when
19472 running on windows.
19474 2005-03-29 Robert Dewar <dewar@adacore.com>
19476 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
19477 buffer if an exception is raised.
19479 2005-03-29 Ed Falis <falis@adacore.com>
19481 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
19484 2005-03-29 Robert Dewar <dewar@adacore.com>
19486 * sem_util.ads: Minor reformatting
19487 * gnat_rm.texi: Minor editing.
19489 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
19491 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
19492 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
19494 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
19496 * adaint.c (__gnat_portable_spawn): Adjust cast.
19498 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
19500 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
19502 2005-03-17 Pascal Obry <obry@adacore.com>
19504 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
19507 * expect.c (__gnat_waitpid): Moved here from adaint.c.
19508 Reimplement under Win32 using Win32 API.
19510 (__gnat_kill) [Win32]: Properly close the process handle before leaving
19513 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
19515 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
19516 (DECL_RENAMED_OBJECT): New accessor macro.
19517 (SET_DECL_RENAMED_OBJECT): New setter macro.
19519 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
19520 object in all cases. Attach the renamed object to the VAR_DECL.
19521 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
19522 field is not prescribed.
19524 * misc.c (gnat_handle_option): Handle -gnatO separately.
19525 (gnat_print_decl) <VAR_DECL>: New case.
19526 Print the DECL_RENAMED_OBJECT node.
19528 * lang.opt: Declare separate -gnatO option.
19530 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
19531 pointer, replace it with the renamed object.
19532 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
19533 pointer type if the source is not a fat pointer type whose underlying
19534 array has the same non-zero alias set as that of the destination array.
19536 2005-03-17 Javier Miranda <miranda@adacore.com>
19538 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
19539 (Get_Inheritance_Depth): Removed.
19540 (Set_Inheritance_Depth): Removed.
19542 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
19543 subprogram Get_Expanded_Name because it is not referenced by the
19546 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
19547 (CPP_Get_Inheritance_Depth): Removed.
19548 (CPP_Set_Inheritance_Depth): Removed.
19550 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
19552 2005-03-17 Robert Dewar <dewar@adacore.com>
19554 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
19555 3, since we now expect GCC 3 to do all the work.
19557 2005-03-17 Javier Miranda <miranda@adacore.com>
19559 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
19560 of one barrier to avoid wrong usage of this attribute.
19562 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
19563 First_Private_Entity.
19565 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
19566 the subprogram against wrong usage.
19567 Adapt the code to traverse the entities in the
19568 scope of a record_type because in addition to its usage regarding
19569 packages, this subprogram is also called by Expand_N_Freeze_Entity
19570 to install the visible declarations of the enclosing scope of a
19571 record_type_with_private to establish the proper visibility before
19572 freezing the entity and related subprograms.
19574 2005-03-17 Ed Schonberg <schonberg@adacore.com>
19576 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
19579 2005-03-17 Thomas Quinot <quinot@adacore.com>
19581 * exp_ch3.adb (Check_Attr): New subprogram.
19582 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
19583 into a new Check_Attr subprogram, in order to provide a more
19584 explanatory error message (including the name of the missing attribute).
19585 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
19586 subprogram determines whether a default implementation exists for a
19587 given stream attribute.
19588 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
19589 Determine whether to generate a default implementation for each stream
19590 attribute separately, as this depends on the specific attribute.
19592 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
19593 limited extension where a stream attribute is missing for a limited
19594 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
19595 generate a bogus reference to the missing attribute to prevent
19596 cascaded errors. Instead, generate a null statement.
19598 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
19599 available for a limited type if it has been specified for an ancestor
19602 2005-03-17 Ed Schonberg <schonberg@adacore.com>
19604 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
19605 entity is an operator.
19607 2005-03-17 Thomas Quinot <quinot@adacore.com>
19609 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19610 spec, to make this predicate available to other units.
19612 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
19615 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
19616 when no distribution runtime library is available.
19618 * sem_res.adb, sem_dist.adb: Disable expansion of remote
19619 access-to-subprogram types when no distribution runtime library is
19621 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
19622 predicate available to other units.
19624 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19625 spec, to make this predicate available to other units.
19627 2005-03-17 Vincent Celier <celier@adacore.com>
19629 * make.adb (Insert_Project_Sources): Make sure the Q is always
19632 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
19633 the default for the tree, not the global default naming.
19635 * prj-proc.adb (Recursive_Process): No need to put the default naming
19636 in the project data, it's already there.
19638 2005-03-17 Doug Rupp <rupp@adacore.com>
19640 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
19642 * 5xcrtl.ads: Renamed to...
19643 * s-crtl-vms64.ads: ...this new file
19645 2005-03-17 Robert Dewar <dewar@adacore.com>
19648 * namet.adb (Copy_One_Character): Set proper wide character encoding
19649 for upper half character if we have upper half encoding.
19651 2005-03-17 Robert Dewar <dewar@adacore.com>
19653 * par.adb (Par): Improved msg for attempt to recompile predefined unit
19655 2005-03-17 Thomas Quinot <quinot@adacore.com>
19657 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
19658 tagged limited type, the TSS is a newly built renaming declaration:
19659 insert it using Set_TSS, not Copy_TSS.
19661 2005-03-17 Javier Miranda <miranda@adacore.com>
19663 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
19664 Try_Object_Operation): Analyze the object that is accessible
19665 through the prefix of the subprogram call before we apply
19666 the transformation of the object-operation notation.
19668 2005-03-17 Jose Ruiz <ruiz@adacore.com>
19670 * s-taprob.adb (Initialize_Protection): Initialize the protected
19671 object's owner to Null_Task.
19672 (Lock): If pragma Detect_Blocking is in effect and the caller of this
19673 procedure is already the protected object's owner then Program_Error
19674 is raised. In addition the protected object's owner is updated.
19675 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
19676 of this procedure is already the protected object's owner then
19677 Program_Error is raised.
19678 In addition the protected object's owner is updated.
19679 (Unlock): Remove the ownership of the protected object.
19681 * s-taprob.ads (Protection): Add the field Owner, used to store the
19682 protected object's owner.
19683 This component is needed for detecting one type of potentially blocking
19684 operations (external calls on a protected subprogram with the same
19685 target object as that of the protected action). Document the rest of
19688 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
19689 Initialize the protected object's owner to Null_Task.
19690 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
19691 caller of this procedure is already the protected object's owner then
19692 Program_Error is raised.
19693 Do not raise Program_Error when this procedure is called from a
19695 (Unlock_Entries): Remove the ownership of the protected object.
19696 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
19697 of this procedure is already the protected object's owner then
19698 Program_Error is raised.
19699 Do not raise Program_Error when this procedure is called from
19700 a protected action.
19702 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
19703 used to store the protected object's owner.
19705 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
19706 effect and this procedure (a potentially blocking operation) is called
19707 from whithin a protected action, Program_Error is raised.
19708 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
19709 and this procedure (a potentially blocking operation) is called from
19710 whithin a protected action, Program_Error is raised.
19712 2005-03-17 Vincent Celier <celier@adacore.com>
19713 Nicolas Setton <setton@adacore.com>
19715 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
19716 switch, not supported by the linker on Darwin. Add '_' before
19717 <library>init, as this character is added unconditionally by the
19719 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
19720 correct one ".dylib". This fixes detection of the archive files when
19721 building library projects.
19723 2005-03-17 Vincent Celier <celier@adacore.com>
19725 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
19726 -gnat83, -gnat95 and -gnat05.
19728 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
19730 * gnat_ugn.texi: Document gnatmem restriction
19732 2005-03-17 Thomas Quinot <quinot@adacore.com>
19734 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
19737 2005-03-17 Robert Dewar <dewar@adacore.com>
19739 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
19740 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
19741 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
19743 * casing.adb: Comment improvements
19745 2005-03-17 Pascal Obry <obry@adacore.com>
19747 * g-expect.adb: Minor reformatting.
19749 2005-03-15 Zack Weinberg <zack@codesourcery.com>
19751 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
19752 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
19755 2005-03-15 Vincent Celier <celier@adacore.com>
19757 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
19758 Add new parameter In_Tree to specify the project tree: needed
19759 by the project manager. Adapt to changes in project manager
19760 using new parameter In_Tree.
19762 2005-03-15 Jakub Jelinek <jakub@redhat.com>
19764 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
19765 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
19766 ada/bldtools to avoid make -jN failures.
19768 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
19770 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
19771 to NULL_TREE on entry.
19773 2005-03-15 Robert Dewar <dewar@adacore.com>
19775 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
19776 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
19777 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19778 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
19779 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
19780 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
19781 system-interix.ads, system-solaris-sparc.ads,
19782 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
19783 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
19784 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19785 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
19786 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
19787 Compiler_System_Version to be False.
19789 * opt.ads: Add new flag Opt.Address_Is_Private
19791 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
19792 Add new parameter Compiler_System_Version to avoid checking for
19793 completeness of parameters when compiler is compiling itself.
19794 Allows old versions of GNAT to be compiled with new compiler.
19796 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
19798 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
19799 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
19801 (Stack_Base_Available): New flag.
19802 (Get_Page_Size): New overloaded functions imported from C.
19803 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
19804 PROT_ON, PROT_OFF): New constants.
19805 (mprotect): New function imported from C.
19806 (pthread_teb_t): New record type.
19808 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
19809 (Create_Task): Account for the Yellow Zone and the guard page.
19811 2005-03-15 Vincent Celier <celier@adacore.com>
19813 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19814 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19815 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
19816 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
19817 Library_File_Name_For): Add new parameter In_Tree
19818 to specify the project tree: needed by the project manager.
19819 Adapt to changes in project manager using new parameter In_Tree.
19820 Remove local imports, use functions in System.CRTL.
19822 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
19823 to use the project manager.
19825 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
19826 In_Tree to designate the project tree. Adapt to changes in the project
19827 manager, using In_Tree.
19829 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
19830 Copy_Interface_Sources): Add new parameter In_Tree to specify the
19831 project tree: needed by the project manager.
19832 (Build_Library): Check that Arg'Length >= 6 before checking if it
19833 contains "--RTS=...".
19835 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
19836 Library_File_Name_For): Add new parameter In_Tree to specify the
19837 project tree: needed by the project manager.
19839 * prj.ads, prj.adb: Major modifications to allow several project trees
19840 in memory at the same time.
19841 Change tables to dynamic tables and hash tables to dynamic hash
19842 tables. Move tables and hash tables from Prj.Com (in the visible part)
19843 and Prj.Env (in the private part). Move some constants from the visible
19844 part to the private part. Make other constants deferred.
19845 (Project_Empty): Make it a variable, not a function
19846 (Empty_Project): Add parameter Tree. Returns the data with the default
19847 naming data of the project tree Tree.
19848 (Initialize): After updating Std_Naming_Data, copy its value to the
19849 component Naming of Project Empty.
19850 (Register_Default_Naming_Scheme): Use and update the default naming
19851 component of the project tree, instead of the global variable
19853 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
19854 Tree is not defaulted, return the default naming data of the Tree.
19855 (Initial_Buffer_Size): Constant moved from private part
19856 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
19857 variables initialized in procedure Initialize.
19858 (Add_To_Buffer): Add two in out parameters to replace global variables
19859 Buffer and Buffer_Last.
19860 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
19862 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
19864 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19865 for the project tree.
19866 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
19867 constant at the beginning of the package spec, so that they cane be used
19868 in subprograms before their full declarations.
19869 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
19870 (Empty_Project): Add parameter of type Project_Node_Ref
19871 (Private_Project_Tree_Data): Add component Default_Naming of type
19873 (Buffer, Buffer_Last): remove global variables
19874 (Add_To_Buffer): Add two in out parameters to replace global variables
19875 Buffer and Buffer_Last.
19876 (Current_Packages_To_Check): Remove global variable
19877 (Empty_Name): Move to private part
19878 (No-Symbols): Make it a constant
19879 (Private_Project_Tree_Data): New type for the private part of the
19881 (Project_Tree_Data): New type for the data of a project tree
19882 (Project_Tree_Ref): New type to designate a project tree
19883 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19884 for the project tree.
19886 * prj-attr.ads: Add with Table; needed, as package Prj no longer
19887 imports package Table.
19889 * prj-com.adb: Remove empty, no longer needed body
19891 * prj-com.ads: Move most of the content of this package to package Prj.
19893 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
19894 designate the project node tree and Packages_To_Check to replace
19895 global variable Current_Packages_To_Check.
19896 Add new parameters In_Tree and Packages_To_Check to local subprograms,
19897 when needed. Adapt to changes in project manager with project node tree
19900 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
19901 project tree to most subprograms. Move tables and hash tables to
19902 private part of package Prj.
19903 Adapt to changes in project manager using project tree In_Tree.
19905 * prj-makr.adb (Tree): New constant to designate the project node tree
19906 Adapt to change in project manager using project node tree Tree
19908 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
19909 display the Library_Src_Dir and the Library_Dir.
19910 Add new parameter In_Tree to designate the project node tree to most
19911 subprograms. Adapt to changes in the project manager, using project tree
19913 (Check_Naming_Scheme): Do not alter the casing on platforms where
19914 the casing of file names is not significant.
19915 (Check): Add new parameter In_Tree to designate the
19917 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
19918 designate the project tree.
19919 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
19921 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
19922 to replace those that were in the private part of package Prj.
19923 Add new parameter In__Tree to designate the project node tree to most
19924 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
19925 (Post_Parse_Context_Clause): When specifying the project node of a with
19926 clause, indicate that it is a limited with only if there is "limited"
19927 in the with clause, not necessarily when In_Limited is True.
19928 (Parse): Add new parameter In_Tree to designate the project node tree
19930 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
19931 designate the project node tree. Adapt to change in Prj.Tree with
19932 project node tree In_Tree.
19934 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
19935 tree In_Tree in the call to function Empty_Process to give its initial
19936 value to the project data Processed_Data.
19937 Add new parameters In_Tree to designate the project tree and
19938 From_Project_Node_Tree to designate the project node tree to several
19939 subprograms. Adapt to change in project manager with project tree
19940 In_Tree and project node tree From_Project_Node_Tree.
19942 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
19943 to replace those that were in the private part of package Prj.
19944 Add new parameter In_Tree to designate the project node tree to most
19945 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
19947 * prj-tree.ads, prj-tree.adb: Add new parameter of type
19948 Project_Node_Tree_Ref to most subprograms.
19949 Use this new parameter to store project nodes in the designated project
19951 (Project_Node_Tree_Ref): New type to designate a project node tree
19952 (Tree_Private_Part): Change table to dynamic table and hash tables to
19953 dynamic hash tables.
19955 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
19956 the project tree to most subprograms. Adapt to changes in project
19957 manager using project tree In_Tree.
19959 * makegpr.adb (Project_Tree): New constant needed to use project
19962 2005-03-15 Olivier Hainque <hainque@adacore.com>
19964 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
19965 for sigactions with SA_SIGINFO set. Call
19966 __gnat_adjust_context_for_raise before raising, to perform the
19967 potentially required adjustments to the machine context for the GCC
19970 * raise.h (__gnat_adjust_context_for_raise): New prototype.
19972 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
19973 Adjust PC by one in the provided machine context.
19974 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
19975 so that the handler is passed the context structure to adjust prior to
19977 (__gnat_error_handler) HPUX: Adjust the signature to match what an
19978 SA_SIGINFO sigaction should look like. Call
19979 __gnat_adjust_context_for_raise before actually raising.
19980 (__gnat_adjust_context_for_raise): Default noop to help PC
19981 adjustments before raise from signal handlers.
19982 (__gnat_error_handler): Indirectly call a predicate function to
19983 determine if a condition should be resignaled or not.
19984 (__gnat_set_resignal_predicate): User interface to modify the predicate.
19985 (__gnat_default_resignal_p): Default GNAT predicate.
19987 2005-03-15 Doug Rupp <rupp@adacore.com>
19989 * adaint.c: Prefix #include of VMS system header files with vms/
19990 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
19991 Do not define a dummy function "convert_addresses" under Darwin,
19994 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
19997 2005-03-15 Nicolas Setton <setton@adacore.com>
19999 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
20002 2005-03-15 Robert Dewar <dewar@adacore.com>
20004 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
20007 * a-retide.ads: Minor comment changes
20009 2005-03-15 Robert Dewar <dewar@adacore.com>
20011 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
20012 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
20013 Realloc_For_Chunk to private part of package.
20014 New subprograms for AI-301
20016 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
20017 Get_Line procedure.
20018 Avoid unnecessary use of Get/Set_Wide_String
20020 2005-03-15 Robert Dewar <dewar@adacore.com>
20023 * a-stunau.ads, a-stunau.adb:
20024 Change interface to allow efficient (and correct) implementation
20025 The previous changes to allow extra space in unbounded strings had
20026 left this interface a bit broken.
20028 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
20030 * g-spipat.ads, g-spipat.adb: New interface for Get_String
20031 Minor reformatting (function specs)
20033 * g-spitbo.adb: New interface for Get_String
20035 * g-spitbo.ads: Minor reformatting
20037 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
20039 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
20041 2005-03-15 Javier Miranda <miranda@adacore.com>
20042 Robert Dewar <dewar@adacore.com>
20043 Thomas Quinot <quinot@adacore.com>
20044 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20046 * atree.ads, atree.adb: Add support for Elist24 field
20048 * atree.h: Fix wrong definition of Field27
20049 Add support for Elist16 field
20050 Add support for Elist24 field
20052 * einfo.ads, einfo.adb (Abstract_Interfaces,
20053 Set_Abstract_Interfaces): New subprograms.
20054 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
20056 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
20057 entities rather than a single node.
20058 (Is_Interface, Set_Is_Interface): New subprogram
20059 (First_Tag_Component): New syntesized attribute
20060 (Next_Tag_Component): New synthesized attribute
20061 (Write_Entity_Flags): Upgraded to write Is_Interface
20062 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
20063 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
20064 (Task_Body_Procedure): New subprogram to read this attribute.
20065 (Set_Task_Body_Procedure): New subprogram to set this attribute.
20066 (Has_Controlled_Component): Now applies to all entities.
20067 This is only a documentation change, since it always worked to apply
20068 this to other than composite types (yielding false), but now this is
20070 Update documentation on Must_Be_Byte_Aligned for new spec
20072 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
20073 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
20074 uses of the Access_Disp_Table attribute to reference the first dispatch
20075 table associated with a tagged type. As
20076 part of the implementation of abstract interface types,
20077 Access_Disp_Table has been redefined to contain a list of dispatch
20078 tables (rather than a single dispatch table).
20079 Similarly, upgrade all the references to Tag_Component by the
20080 new attribute First_Tag_Component.
20081 (Find_Inherited_TSS): Moved to exp_tss.
20082 Clean up test in Expand_N_Object_Declaration for cases
20083 where we need to do a separate assignment of the initial value.
20084 (Expand_N_Object_Declaration): If the expression in the
20085 declaration of a tagged type is an aggregate, no need to generate an
20086 additional tag assignment.
20087 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
20089 Bit packed array ops are only called if operands are known to be
20091 (Component_Equality): When returning an N_Raise_Program_Error statement,
20092 ensure that its Etype is set to Empty to avoid confusing GIGI (which
20093 expects that only expressions have a bona fide type).
20094 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
20095 determine the amount of data to be copied.
20097 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
20098 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
20099 INTERFACE_TYPE_DEFINITION ::=
20100 [limited | task | protected | synchronized] interface
20101 [AND interface_list]
20103 * par-ch3.adb (P_Type_Declaration): Modified to give support to
20105 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
20107 (P_Interface_Type_Definition): New subprogram that parses the new
20108 syntax rule of Ada 2005 interfaces
20109 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
20110 messages by the correct RENAMES (quotes removed).
20112 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
20113 attribute First_Tag_Component.
20115 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
20116 (Interface_List, Set_Interface_List): New subprograms.
20117 (Interface_Present, Set_Interface_Present): New subprograms.
20118 (Limited_Present, Set_Limited_Present): Available also in derived
20119 type definition nodes.
20120 (Protected_Present, Set_Protected_Present): Available also in
20121 record type definition and
20122 derived type definition nodes.
20123 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
20124 (Task_Present, Set_Task_Present): New subprogram.
20125 (Task_Body_Procedure): Removed.
20126 (Set_Task_Body_Procedure): Removed.
20127 These subprogram have been removed because the attribute
20128 Task_Body_Procedure has been moved to the corresponding task type
20129 or task subtype entity to leave a field free to store the list
20130 of interfaces implemented by a task (for AI-345)
20131 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
20132 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
20133 expression flag Do_Range_Check
20134 (Exception_Junk): Change to Flag7 to accomodate above change
20135 (Box_Present, Default_Name, Specification, Set_Box_Present,
20136 Set_Default_Name, Set_Specification): Expand the expression
20137 "X in N_Formal_Subprogram_Declaration" into the corresponding
20138 two comparisons. Required to use the csinfo tool.
20140 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
20141 "with string" given.
20143 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
20146 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
20149 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
20150 attribute Task_Body_Procedure rather than the old semantic field that
20151 was available in the task_type_declaration node.
20153 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
20154 interface type definitions.
20155 (P_Formal_Derived_Type_Definition): Modified to handle the list of
20158 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
20159 task type declaration.
20160 (P_Protected): Modified to handle the list of interfaces in a
20161 protected type declaration.
20163 2005-03-15 Doug Rupp <rupp@adacore.com>
20164 Vincent Celier <celier@adacore.com>
20166 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
20167 (Gen_Output_File_C): Likewise.
20168 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
20170 2005-03-15 Thomas Quinot <quinot@adacore.com>
20172 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
20173 is an N_Raise_Constraint_Error node, create a new copy of it without
20174 going through a call to Duplicate_Subexpr.
20176 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20177 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20178 Nicolas Setton <setton@adacore.com>
20179 Ed Schonberg <schonberg@adacore.com>
20185 * decl.c (gnat_to_gnu_field): Reject aliased components with a
20186 representation clause that prescribes a size not equal to the rounded
20187 size of their types.
20188 (gnat_to_gnu_entity, case E_Component): Always look at
20189 Original_Record_Component if Present and not the entity.
20190 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
20191 of tagged extension types by not making field for components that are
20193 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
20194 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
20195 expression to the type of the object when the object is constant.
20196 Reverse defer_debug_incomplete_list before traversing it, so that trees
20197 are processed in the order at which they were added to the list. This
20198 order is important when using the stabs debug format.
20199 If we are deferring the output of debug information, also defer this
20200 output for a function return type.
20201 When adding fields to a record, prevent emitting debug information
20202 for incomplete records, emit the information only when the record is
20204 (components_to_record): New parameter defer_debug.
20205 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
20206 (gnat_to_gnu_field_decl): New function.
20207 (substitution_list, annotate_rep): Call it.
20208 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
20209 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
20210 No longer update discriminants to not be a COMPONENT_REF.
20211 (copy_alias_set): Strip padding from input type; also handle
20212 unconstrained arrays properly.
20214 * gigi.h (write_record_type_debug_info): New function.
20215 Convert to use ANSI-style prototypes. Remove unused
20216 declarations for emit_stack_check, elab_all_gnat and
20217 set_second_error_entity.
20218 (gnat_to_gnu_field_decl): New decl.
20220 * utils.c (write_record_type_debug_info): New function.
20221 (finish_record_type): Delegate generation of debug information to
20222 write_record_type_debug_info.
20223 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
20224 (update_pointer_to): Fix pasto.
20225 (convert) <UNION_TYPE>: Accept slight type variations when
20226 converting to an unchecked union type.
20228 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
20229 replace the N_Freeze_Entity with a null statement.
20231 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
20232 within a constrained subcomponent of an enclosing record, place the
20233 freeze nodes in the scope stack entry for the enclosing record.
20234 (Undelay_Type): New Subprogram.
20235 (Set_Small_Size): Pass T, the type to modify; all callers changed.
20236 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
20237 within records; allow them to have freeze nodes if their base types
20240 * exp_util.adb (Remove_Side_Effects): Properly test for
20241 Expansion_Delayed and handle case when it's inside an
20242 N_Qualified_Expression.
20244 * sem_ch3.adb (Derived_Type_Declaration): New predicate
20245 Comes_From_Generic, to recognize accurately that the parent type in a
20246 derived type declaration can be traced back to a formal type, because
20247 it is one or is derived from one, or because its completion is derived
20249 (Constrain_Component_Type): If component comes from source and has no
20250 explicit constraint, no need to constrain in in a subtype of the
20252 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
20253 Minor change to propagate Is_Ada_2005 flag
20255 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
20256 Expansion_Delayed is False.
20257 (assoc_to_constructor): Ignore fields that have a
20258 Corresponding_Discriminant.
20259 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
20260 function returns "by target", dereference the target pointer using the
20261 type of the actual return value.
20262 <all>: Be prepared for a null gnu_result.
20263 (processed_inline_subprograms): Check flag_really_no_inline
20264 instead of flag_no_inline.
20265 (set_second_error_entity): Remove unused function.
20266 (gnat_to_gnu, case N_Selected_Component): Call
20267 gnat_to_gnu_field_decl.
20268 (assoc_to_constructor): Likewise.
20270 2005-03-15 Robert Dewar <dewar@adacore.com>
20271 Ed Schonberg <schonberg@adacore.com>
20272 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20274 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
20275 Must_Be_Byte_Aligned for cases where we do not need to use a
20276 System.Pack_nn unit.
20278 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
20280 Needed now that we do some processing for IN parameters as well. This
20281 may well fix some unrelated errors.
20282 (Expand_Call): Handle case of unaligned objects (in particular those
20283 that come from packed arrays).
20284 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
20285 renamed entity is an inherited operation, re-expand the call using the
20286 original operation, which is the one to call.
20287 Detect attempt to inline parameterless recursive subprogram.
20288 (Represented_As_Scalar): Fix to work properly with private types
20289 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
20290 accurate estimate. Yields True in far fewer cases than before,
20291 improving the quality of code that depends on this test.
20293 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
20294 over both visible and private declarations to remove them from tree,
20295 and mark subprograms declared in package as eliminated, to prevent
20296 spurious use in subsequent compilation of generic units in the context.
20298 * exp_util.ads: Minor cleanup in variable names
20300 * sem_eval.ads, sem_eval.adb: Minor reformatting
20301 (Compile_Time_Known_Bounds): New function
20303 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20305 * exp_ch7.adb (Convert_View): Use base types of underlying types when
20306 determining whether an unchecked conversion is needed for the argument
20307 of an initialization call.
20309 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20311 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
20312 that appears in the instantiation rather than the internal subtype
20313 generated in the wrapper package, to avoid anomalies in gigi when the
20314 target is derived from a private type whose full view is an access type.
20316 2005-03-15 Robert Dewar <dewar@adacore.com>
20318 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
20320 Add documentation to replace the use of this flag
20321 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
20324 2005-03-15 Thomas Quinot <quinot@adacore.com>
20326 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
20327 here from exp_attr so it can be shared between exp_attr and exp_dist.
20328 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
20329 all TSS names, not a subset thereof, and the previous name introduced
20330 an unnecessarily confusion that a distinction might exist between
20331 "OK" TSS names and some "not OK" TSS names.
20333 2005-03-15 Doug Rupp <rupp@adacore.com>
20335 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
20338 2005-03-15 Pascal Obry <obry@adacore.com>
20339 Eric Botcazou <ebotcazou@adacore.com>
20343 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
20344 when IN_RTS. This is to work around a bootstrap path problem.
20346 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
20347 table and pass it to __gnat_install_SEH_handler().
20348 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
20350 * lang.opt: Fix specification of -fRTS=.
20352 2005-03-15 Doug Rupp <rupp@adacore.com>
20353 Bernard Banner <banner@adacore.com>
20354 Vincent Celier <celier@adacore.com>
20355 Arnaud Charlet <charlet@adacore.com>
20358 This change works fine when gnatlib is built from the gcc directory,
20359 but does not work when using the libada Makefile, since GCC_FOR_TARGET
20360 is not passed to ada/Makefile.in, so more work is needed by a
20361 Makefile/configure expert.
20363 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
20364 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
20365 Setup gnatlink switch -M for x86_64 linux, as it is already setup
20367 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
20368 Run ranlib on libgccprefix.a
20369 Define PREFIX_OBJS for Darwin, to build libgccprefix.
20370 (ADA_INCLUDE_SRCS): Split Ada packages.
20372 2005-03-15 Robert Dewar <dewar@adacore.com>
20374 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
20376 * impunit.adb: Add GNAT.UTF_32
20378 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
20380 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
20381 now uses GNAT.UTF_32).
20383 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
20384 capabilities for categorizing characters using Unicode categories
20386 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20388 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
20389 instantiation that has been rewritten as a package body, retrieve spec
20390 to generate proper name for implicit_with_clause.
20391 (Install_Parents): Recognize a parent that is an instantiation but has
20392 been rewritten as a package declaration during analysis.
20394 2005-03-15 Javier Miranda <miranda@adacore.com>
20395 Ed Schonberg <schonberg@adacore.com>
20397 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
20398 parameter reported some error we immediately return. This improves the
20399 behaviour of the frontend in case of errors.
20400 (Install_Parent, Remove_Parent): Introduce new flag
20401 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
20402 ancestor of a generic child unit, when the child is being instantiated.
20403 (Inline_Instance_Body): If we are compiling the private
20404 part or the body of a child unit, restore the proper visibility of the
20405 parents after compiling the instance body.
20407 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20408 Javier Miranda <miranda@adacore.com>
20411 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
20412 of a private type, in which case it is underlying_type that denotes
20413 the proper task. Also modified to use the new entity attribute
20414 that is directly available in the task type and task subtype entities
20415 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
20416 arrays when other dimensions than the first are constrained by
20417 discriminants of an enclosing record.
20418 (Insert_Explicit_Dereference): If the prefix is an indexed component or
20419 a combination of indexed and selected components, find ultimate entity
20420 and generate the appropriate reference for it, to suppress spurious
20422 (Note_Possible_Modification): If an entity name has no entity, return.
20423 (Is_Variable): A function call never denotes a variable.
20424 (Requires_Transient_Scope): For record types, recurse only on
20425 components, not on internal subtypes that may have been generated for
20426 constrained components.
20428 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20430 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
20431 Eliminated as candidates for resolution. Both efficient, and avoids
20432 anomalies with operators declared in deleted code.
20433 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
20434 expansion is disabled (as when compiling a generic) to prevent spurious
20435 warnings on prefixes of selected components.
20437 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20439 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
20440 attached to a list before checking whether it appears in the private
20441 declarations of the current package.
20442 (Make_Inequality_Operator): Insert declaration in proper declarative
20443 list rather than just setting the Parent field, so that
20444 Is_Private_Declaration can handle it properly.
20446 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20448 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
20449 a renaming a body, check that the renamed subprogram in not intrinsic.
20450 (Find_Direct_Name): If several use_visible entities hide
20451 each other, and the context is a predefined file compiled through
20452 rtsfind, keep only the entity that comes from a predefined file.
20454 2005-03-15 Geert Bosch <bosch@adacore.com>
20456 * s-fatgen.adb (Valid): Extend special exceptions to account for long
20457 long float padding to also cover AMD64 and IA64.
20459 2005-03-15 Gary Dismukes <dismukes@adacore.com>
20461 * s-imgwch.adb: Add with and use of Interfaces.
20462 (Img_Wide_Character): Change type of Val to Unsigned_16.
20463 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
20465 2005-03-15 Matthew Gingell <gingell@adacore.com>
20467 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
20469 2005-03-15 Robert Dewar <dewar@adacore.com>
20471 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
20473 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
20475 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
20477 2005-03-15 Robert Dewar <dewar@adacore.com>
20479 * s-bitops.adb, s-bitops.ads,
20480 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
20481 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
20482 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
20483 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
20484 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
20485 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
20486 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
20487 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
20490 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20492 * utils2.c (build_binary_op): Fix typo.
20494 2005-03-15 Doug Rupp <rupp@adacore.com>
20496 * s-crtl.ads (popen,pclose): New imports.
20498 2005-03-15 Cyrille Comar <comar@adacore.com>
20500 * comperr.adb (Compiler_Abort): remove references to obsolete
20501 procedures in the bug boxes for various GNAT builds.
20503 2005-03-15 Vincent Celier <celier@adacore.com>
20505 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
20507 2005-03-15 Geert Bosch <bosch@adacore.com>
20508 Arnaud Charlet <charlet@adacore.com>
20509 Robert Dewar <dewar@adacore.com>
20510 Cyrille Comar <comar@adacore.com>
20511 Sergey Rybin <rybin@adacore.com>
20513 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
20514 too specific and long-winded to be appropriate for the GNAT User's
20516 Warn about use of GCC switches not documented in the GNAT User's Guide,
20517 as these may cause generated code to not conform to Ada semantics.
20518 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
20519 Add documentation for -gnat95 and -gnat05 switches
20520 Remove paragraph documenting obsolete way to refer to third party
20522 Add a few references to Ada_05 that were missing.
20523 Update documentation on -gnatZ/-gnatL.
20524 Document limitation when using -m64 under Solaris.
20525 Change the "Name Casing" subsection of the pretty-printer section
20526 according to the changes in the dictionary processing.
20528 * gnat_rm.texi: Document the Ada_05 pragma.
20529 Section on record representation clauses describes the new more
20530 relaxed rules about placement of large packed bit array components.
20531 Add documentation of GNAT.UTF_32
20533 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
20535 * misc.c (gnat_post_options): Turn off structural
20538 2005-03-08 Laurent Guerby <laurent@guerby.net>
20540 * system-linux-sparc.ads: Fix typo in previous commit.
20542 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
20543 Laurent Guerby <laurent@guerby.net>
20546 * system-linux-sparc.ads: New.
20547 * Makefile.in: Add sparc linux entry.
20549 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
20551 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
20552 parameters as unused.
20554 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
20555 Partial merge from libada-gnattools-branch:
20557 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
20558 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
20559 into code in gnattools/Makefile.in. Remove direct dependencies on
20560 stamp-tools by tools clauses.
20561 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
20562 * config-lang.in: Add gnattools to $lang_dirs.
20564 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
20567 * utils.c (gnat_type_for_mode): Return null instead of ICE because
20568 we asked for an unknown mode.
20570 2005-02-12 Richard Henderson <rth@redhat.com>
20572 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
20573 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
20575 2005-02-10 Andreas Jaeger <aj@suse.de>
20577 * init.c (__gnat_initialize): Mark parameter as unused.
20579 2005-02-09 Doug Rupp <rupp@adacore.com>
20581 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
20582 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
20584 2005-02-09 Doug Rupp <rupp@adacore.com>
20586 * gnatchop.adb (dup, dup2),
20587 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
20589 * gnatlbr.adb (mkdir),
20590 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
20592 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
20594 2005-02-09 Doug Rupp <rupp@adacore.com>
20596 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
20598 2005-02-09 Robert Dewar <dewar@adacore.com>
20599 Thomas Quinot <quinot@adacore.com>
20600 Javier Miranda <miranda@adacore.com>
20601 Pascal Obry <obry@adacore.com>
20602 Ed Schonberg <schonberg@adacore.com>
20603 Doug Rupp <rupp@adacore.com>
20604 Gary Dismukes <dismukes@adacore.com>
20605 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20607 * g-zstspl.ads: New file.
20609 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
20611 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
20613 Add definition of Wide_Wide_Space for AI-285
20615 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
20616 interface (to support Ada 95 and Ada 2005 units).
20617 Add Unbounded_IO files
20618 Add entries for Wide_Wide packages for AI-285
20619 Add list of containers packages to Ada 2005 unit list
20621 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
20622 support new Unbounded_IO package cleanly.
20624 * g-utf_32.ads, g-utf_32.adb: New files.
20626 * Makefile.rtl: Add entry for g-utf_32
20627 Add new files for Unbounded_IO
20628 Adjust make file for new AI-285 wide wide packages
20629 Add AI-302 containers to the run time.
20631 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
20632 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
20633 subprograms for AI-301.
20635 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
20637 * a-stunau.ads: Minor comment correction
20639 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
20641 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
20642 (Check_RPC): Update to match changes in expanded code.
20643 Clean up unused entity.
20645 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
20646 was not taken into account.
20647 This includes proper initialization with Normalize_Scalars.
20648 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
20649 normalize scalars cases (particularly the latter) to do a better job
20650 of finding invalid representations.
20652 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
20654 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
20657 * exp_dist.adb: Add support for wide wide character type
20658 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
20659 private part, generate stub bodies at the end of the private part,
20660 not the visible part.
20661 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
20663 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
20664 generic wrapper to execute final processing after completing the
20665 expansion of the RPC receiver for an RACW.
20667 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
20668 packages and attributes.
20669 (Preset_Names): Addition of the new reserved words of Ada 2005,
20670 that is interface, overriding and synchronized.
20671 (Get_Pragma_Id): Give support to the use of the new reserved word
20672 "interface" as a pragma name.
20673 (Is_Pragma_Name): Give support to the use of the new reserved word
20674 "interface" as a pragma name.
20675 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
20676 attribute implementation.
20678 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
20679 checks to entities that are output parameters of Asm operations.
20680 Handle the Stream_Size attribute.
20681 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
20683 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
20685 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
20686 for second parameter being 0.0.
20687 Add support for wide wide character type.
20688 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
20690 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
20691 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
20692 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
20693 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
20694 for wide wide character cases.
20696 * cstand.adb: Create entities for Wide_Wide_Character and
20699 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
20700 accordance with AI-258.
20701 Add new declarations for 16/32 bit C character types (Part of AI285)
20703 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
20704 (Obsolescent_Warning): New field
20705 (Rep_Clause): New local subprogram used to share code. Returns the rep
20706 clause for which the name is given in parameter.
20707 (Has_Stream_Size_Clause): New routine.
20708 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
20709 (Address_Clause): Implementation is now using Rep_Clause.
20710 (Alignment_Clause): Idem.
20711 (Size_Clause): Idem.
20713 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
20714 entity in non-Ada 2005 mode and generate warning.
20716 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
20717 (Prag): Code cleanup. Remove old gnat pragma "overriding"
20719 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
20720 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
20721 on the named unit if the pragma is not in the current compilation unit,
20722 so that elaboration calls in the current unit can set up an elaboration
20723 dependency on the named unit, as needed.
20724 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
20725 subprogram as well as for subprograms declared within a package.
20726 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
20729 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
20730 to z) to avoid some instances of duplication for Wide_Wide packages.
20732 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
20735 * scn.adb: Char_Literal_Value field is now a Uint
20737 * scng.adb: Significant rewrite to handle new Ada 2005 features
20738 allowing wide and wide wide characters in program text, e.g. for
20739 identifiers, as described in AI-285.
20740 (Set_Reserved): New procedure, makes setting up keywords cleaner.
20741 (Initialize_Scanner): Register the new reserved words of Ada 2005.
20742 (Scan): Give support to the new reserved words.
20744 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
20745 warning notifying that interface, overriding, and synchronized are
20746 new reserved words.
20747 (P_Pragma): Allow the use of the new reserved word "interface" as
20750 * gnatls.adb, gnatbind.adb,
20751 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
20752 identifiers named "interface" to "SAL_Interface".
20754 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
20755 (Structured Exception handling).
20756 (Gen_Main_C): Idem.
20759 (Gen_Main_Ada): Set the default exit code if specified.
20760 (Gen_Main_C): Likewise.
20762 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
20763 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
20765 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
20768 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
20769 has a collision with the new Ada 2005 "interface" reserved word.
20771 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
20772 generate a warning notifying that interface, overriding, and
20773 synchronized are new reserved words.
20775 * scans.ads (Token_Type): Addition of the tokens corresponding to the
20776 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
20777 and Tok_Synchronized.
20779 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
20780 "dispatching" rather than "primitive" operations, since dispatching
20781 calls are now allowed to abstract formal subprograms (which are not
20783 Char_Literal_Value field is now a Uint
20784 (Resolve_Slice): If the prefix is an access to an unconstrained array,
20785 compute the actual subtype of the designated object to impose the proper
20787 (Resolve_Selected_Component): Do not insert an access check if the
20788 prefix is an access type: such a node is expanded into an explicit
20789 dereference, on which the access check is performed anyway. Removes
20790 expensive duplicate checks.
20791 (Resolve_Call): Use new flag Is_Obsolescent and field
20792 Obsolescent_Warning so that pragma Obsolescent works on library
20794 Add support for wide wide character type
20795 (Resolve_Allocator): Replace the error message on wrong null-exclusion
20796 value by a warning message.
20797 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
20798 as fixed-point, and one of the operands is non-static and universal, it
20799 can only be an illegal exponentiation operation, in which case there is
20800 no real value to retrieve.
20802 * exp_strm.adb: Add support for wide wide character type
20803 (Build_Elementary_Input_Call): Compute the size of the stream element by
20804 querying the rep chain to find the Stream_Attribute attribute value.
20805 (Build_Elementary_Write_Call): Ditto.
20807 * sem_aggr.adb: Char_Literal_Value field is now a Uint
20808 Add support for wide wide character type
20809 Replace the error messages on wrong null-exclusion value by warnings
20810 as described in Ada 2005.
20811 (Resolve_Extension_Aggregate): Document the fact that the error
20812 message on class-wide expressions in extensions aggregates.
20814 * sem_case.adb: Add support for wide wide character type
20816 * sem_ch13.adb: Add support for wide wide character type
20817 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
20819 * sem_ch3.adb: Add support for wide wide character type
20820 (Process_Subtype): If constraint is illegal for the type, set Ekind of
20821 now-useless Itype, to prevent cascaded errors on a compiler built
20824 * sem_ch8.adb: Add with and use of Sem_Disp.
20825 (Analyze_Subprogram_Renaming): Replace unclean uses of
20826 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
20827 of Corresponding_Spec to Empty).
20828 (Attribute_Renaming): Replace use of Corresponding_Spec with
20829 Corresponding_ Formal_Spec and simplify condition.
20830 (Use_One_Package): Check that scope of homonym of identifier is defined,
20831 before checking whether it is a wrapper package.
20832 Add support for wide wide character type
20834 * sem_eval.adb: Add support for wide wide character type.
20835 (Eval_Arithmetic_Op): Check for compile time known signed integer
20836 overflow in the non-static case.
20837 (Subtypes_Statically_Match): A formal scalar type and its base type do
20838 not statically match.
20840 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
20841 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
20843 (Unit_Declaration_Node): Ditto.
20844 (Is_Variable_Prefix): For the case of an indexed component whose prefix
20845 has a packed array type, the prefix has been rewritten into a type
20846 conversion. Determine variable-ness from the converted expression.
20847 Handle wide wide character cases.
20849 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
20851 * stringt.ads, stringt.adb: Handle full UTF-32 range.
20852 Remove ["0A"] from comment, since it can look like a line terminator.
20853 Currently we don't permit this, but this is under discussion by the
20854 ARG, and it is easy enough to use a different example.
20856 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
20857 handling UTF-32 encoding for wide wide character.
20858 Implement new brackets coding ["hhhhhhhh"]
20859 Add UTF-8 encodings for full UTF-32 range
20861 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
20863 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
20864 bit range Add full UTF-32 support.
20865 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
20866 notify that constraint error will be raised at run-time
20867 because a null value is assigned to a null-excluding object.
20868 Remove some obsolete declarations and make Char_Code
20871 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
20872 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
20873 Rcheck subprograms.
20875 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
20876 wrong null-exclusion value by a warning message.
20877 (Enable_Range_Check): Do range check if the prefix is an
20878 explicit dereference whose designated object is an unconstrained array.
20879 Current algorithm for removing duplicate checks is over-eager in this
20882 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
20883 null-exclusion value by a warning message
20885 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
20886 completely. Add support for Uint2 field
20888 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
20889 exp_prag.adb: Char_Literal_Value field is now a Uint.
20891 * exp_util.adb (Insert_Actions): Replace
20892 N_Formal_Subprogram_Declaration by
20893 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
20894 Char_Literal_Value field is now a Uint.
20896 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
20897 defined for subprogram renaming declarations. When set, the field
20898 indicates the defining entity of a corresponding formal subprogram
20899 when the renaming corresponds to a formal subprogram association in an
20901 (Set_Corresponding_Formal_Spec): New procedure to return
20902 Corresponding_Formal_Spec field.
20903 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
20904 (which is now a subtype).
20905 Char_Literal_Value field is now a Uint
20907 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
20908 pointer to the base of the dispatch table.
20909 Minor changes to comments.
20910 (Controlling_Type): New function for determining the tagged type
20911 associated with a tagged primitive subprogram.
20912 (Expand_Dispatching_Call): Add support for a controlling actual that is
20913 directly a value of type Ada.Tag rather than a tagged object.
20915 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
20916 describing the new layout.
20917 (Dispatch_Table): The expander computes the actual array size, allocates
20918 the Dispatch_Table record accordingly, and generates code that displaces
20919 the base of the record after the Typeinfo_Ptr component. The access to
20920 these components is done by means of local functions.
20921 (Offset_To_Top): New function.
20922 (Typeinfo_Ptr): New function.
20923 (Get_TSD): Modified to access the new position of the TSD.
20924 (Set_TSD): Modified to save the TSD in its new position.
20926 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
20927 case of formal abstract subprograms. Add check and message for -gnat05.
20930 * sem_ch12.adb: Add with and use for Sem_Disp.
20931 (Analyze_Associations): Minor change from "=" to "in" for use of
20932 N_Formal_Subtype_Declaration (which is now a subtype).
20933 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
20934 N_Formal_Subtype_Declaration (which is now a subtype).
20935 (Analyze_Formal_Subprogram): Add handling for
20936 N_Formal_Abstract_Subprogram, marking the formal as abstract and
20937 dispatching, setting the controlling status of the formal parameters
20938 and result, and issuing an error if there is no controlling type for
20939 the formal subprogram.
20940 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
20941 which is an unclean use of that field, we set the new field
20942 Corresponding_Formal_Spec to make the formal subprogram available to
20943 processing in Analyze_Subprogram_Declaration.
20944 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
20945 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
20946 Constrained, so that it is is does not statically match its anonymous
20949 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
20950 abstract formal subprograms in error check for functions returning
20951 abstract types. Set scope of new designator for
20952 a parameterless subprogram, so that it is available when checking the
20953 body for nested subprograms, before full analysis of said body.
20954 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
20955 subprogram only if inner one comes from source.
20956 (Analyze_Function_Call): If the call is given in object notation, the
20957 analysis of the name rewrites the node and analyzes it with the proper
20958 argument list. After analyzing the name, if the call has been rewritten
20959 and the result type is set, no further analysis is needed.
20960 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
20961 mark in function specification, in a context where the formals are
20962 visible and hide outer homographs.
20964 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
20965 as the tagged type for the cases of abstract formal subprograms and
20966 renamings of those. Clean up spec comments.
20967 (Check_Dispatching_Context): Add error message to indicate "abstract
20968 procedure", covering the case of a call to a formal abstract procedure
20969 that has statically tagged operands.
20970 (Check_Dispatching_Call): Check for the case of an actual given by
20971 a tag-indeterminate function call whose type is an ancestor of the
20972 containing call's associated tagged type. This situation can occur
20973 for inherited primitives with function defaults. In this case we
20974 use the tagged type's tag directly as the controlling argument for
20976 (Expand_Call): Name change on call to Expand_Dispatch_Call.
20978 * sprint.adb (Sprint_Node_Actual): Split
20979 N_Formal_Subprogram_Declaration into two alternatives for the new
20980 cases N_Formal_Abstract_Subprogram_Declaration and
20981 N_Formal_Concrete_Subprogram_Declaration.
20982 Char_Literal_Value field is now a Uint.
20984 * trans.c: Get rid of junk Uint2 reference.
20985 Char_Literal_Value field is now a Uint.
20986 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
20987 (gigi): Correct third arg to gimplify_body.
20989 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
20990 (TYPE_LANG_FLAG_0): Check for record or union.
20992 * treepr.adb: Char_Literal_Value field is now a Uint
20994 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
20997 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
20998 Add full UTF-32 support
20999 Char_Code is now 32 bits
21001 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
21002 wide character UTF_32 line terminators.
21003 Initialize Main_Source_File to avoid error when no main
21006 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
21007 (Main_Source_File) when no main source has been loaded, to avoid
21010 2005-02-09 Robert Dewar <dewar@adacore.com>
21012 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
21013 Fix name of Set routine
21015 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
21018 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
21019 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
21022 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
21023 forms of Get_Line subprograms for AI-301.
21025 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
21026 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
21027 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
21028 a-stwima.ads: Minor reformatting.
21030 2005-02-09 Doug Rupp <rupp@adacore.com>
21031 Thomas Quinot <quinot@adacore.com>
21033 * adaint.c, adaint.h
21034 [VMS] (to_ptr32): New function.
21035 (MAYBE_TO_PTR32): New macro.
21036 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
21038 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
21039 [VMS] (#define fork()): Remove since unneccessary.
21040 (__gnat_set_close_on_exec): New routine to support
21041 GNAT.OS_Lib.Set_Close_On_Exec.
21043 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
21044 the parent side as close-on-exec so that they are not inherited by the
21047 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
21048 set or clear the FD_CLOEXEC flag on a file descriptor.
21050 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
21051 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21055 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
21056 on the field if Pragma Component_Alignment (Storage_Unit).
21057 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
21058 side-effects as if it were a constant; also make SAVE_EXPR to protect
21060 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
21062 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
21063 (components_to_record): Test it.
21064 Fix improper usage of REFERENCE_CLASS_P.
21066 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
21069 * utils2.c: Minor reformatting.
21071 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
21072 handle other cases like RECORD_TYPE.
21074 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
21076 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21078 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
21079 component of an array of arrays in an assignment context, and the
21080 aggregate has component associations that require sliding on
21081 assignment, force reanalysis of the aggregate to generate a temporary
21082 before the assignment.
21083 (Must_Slide): Make global to the package, for use in Gen_Assign.
21085 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21087 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
21088 unchecked union with no inferable discriminants, return a
21089 Raise_Program_Error node, rather than inserting it at the point the
21091 (Expand_Record_Equality, Component_Equality): Handle properly the case
21092 where some subcomponent is an unchecked union whose generated equality
21093 code raises program error.
21095 2005-02-09 Doug Rupp <rupp@adacore.com>
21097 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
21098 [VMS] (#define exit hack): Remove.
21100 2005-02-09 Pascal Obry <obry@adacore.com>
21101 Arnaud Charlet <charlet@adacore.com>
21103 * init.c (__gnat_initialize): Add a new parameter eh which contains the
21104 address of the exception registration. The Win32 version of this
21105 routine calls __gnat_install_SEH_handler() to initialize the SEH
21106 (Structured Exception Handling) handler.
21107 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
21108 SEH (Structured Exception Handling) now.
21109 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
21110 (__gnat_initialize for ppc-vxworks): Adjust comments and the
21111 preprocessor condition protecting the call to the extra eh setup
21112 subprogram, which is only available for the ppc target.
21113 (__gnat_clear_exception_count): replaced reference to
21114 variable taskIdCurrent by call to taskIdSelf(), cleaner.
21116 * seh_init.c: New file.
21118 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
21119 (GNATBIND_OBJS): Idem.
21121 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
21122 routine takes a new parameter (a pointer to the exception registration
21123 for the SEH (Structured Exception Handling) support.
21125 * raise.h: (__gnat_install_SEH_handler): New prototype.
21126 Update copyright notice.
21128 * s-tassta.adb (Task_Wrapper): Declare the exception registration
21129 record and initialize it by calling __gnat_install_SEH_handler.
21131 2005-02-09 Vincent Celier <celier@adacore.com>
21133 * make.adb (Gnatmake): Do not fail when the main project has no object
21136 2005-02-09 Doug Rupp <rupp@adacore.com>
21138 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
21139 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
21140 [VMS]: Add translations for g-enblsp.adb.
21142 * s-asthan-vms.adb: Removed.
21143 * s-asthan-vms-alpha.adb: Added.
21145 2005-02-09 Pascal Obry <obry@adacore.com>
21147 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
21148 (LIBGNAT_OBJS): Add seh_init.o.
21150 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21153 * Makefile.in: Link all gnat tools with -static-libgcc, since
21154 -shared-libgcc is now used by default on some systems (e.g. linux with
21156 Remove references to Makefile.prolog/generic, no longer used.
21158 2005-02-09 Vincent Celier <celier@adacore.com>
21160 * prj-makr.adb (Process_Directory): Put file name in canonical case
21161 before matching against the patterns.
21162 If gnatname has been invoked as <prefix>-gnatname
21163 then invoke the compiler as <prefix>-gcc, not just "gcc".
21165 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21167 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
21168 with expansion disabled. The actual subtype is needed among other
21169 places when the selected component appears in the context of a loop
21170 bound, and denotes a packed array.
21171 (Operator_Check): Always use the first subtype in the
21172 error message, to avoid the appearance of internal base types.
21173 (Transform_Object_Operation): Copy each actual in full
21174 to the parameter associations of the constructed call, rather than
21175 using the shallow copy mechanism of New_Copy_List. This ensures that
21176 the chaining of named associations is done properly.
21177 (Complete_Object_Operation): Rewrite node, rather than
21178 replacing it, so that we can trace back to the original selected
21181 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
21182 and calls that use object notation, if the called function is not
21183 declared in a withed unit, place the elaboration constraint on the
21184 unit in the context that makes the function accessible.
21185 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
21186 imposes an elaboration constraint between two packages.
21188 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21190 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
21191 views of a private type after handling its private dependents, to
21192 maintain proper stack discipline between entry and exit from the
21195 2005-02-09 Cyrille Comar <comar@adacore.com>
21197 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
21198 Minor reformatting.
21200 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21202 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
21203 fields for foreign threads.
21205 2005-02-09 Doug Rupp <rupp@adacore.com>
21207 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
21208 recursion warnings when compiled with -gnatdm.
21210 2005-02-09 Robert Dewar <dewar@adacore.com>
21212 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
21213 Slight fix to documentation of -gnaty with no parameters
21215 * xr_tabls.ads: Add ??? comment for missing overall comment
21217 * xsinfo.adb: Make default file name be sinfo.h, since this is what
21218 we now use by default.
21220 * xsnames.adb: Adjust end of file test to look for five space followed
21221 by '#' instead of six spaces. The format of xsnames.adb was modified
21222 in the last update.
21224 * a-numeri.ads: Add reference to AI-388 for greek letter pi
21227 * clean.adb: Minor reformatting.
21229 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
21230 gnatname.adb: Minor reformatting
21231 Add 2005 to copyright output when utility is run
21233 * csets.adb: Eliminate obsolete comment
21235 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
21238 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
21240 2005-02-09 Sergey Rybin <rybin@adacore.com>
21242 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
21243 the difference between compact and incompact layout and add the record
21244 representation clause to the example illustrating different layouts.
21245 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
21246 component clauses").
21248 2005-02-09 Florian Villoing <villoing@adacore.com>
21250 * gnat_ugn.texi: Fix typos.
21251 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
21253 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
21254 in the generated documentation.
21256 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21258 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
21260 Update linker wrapper when linking with non GNU C++.
21262 2005-02-09 Pascal Obry <obry@adacore.com>
21265 Document the procedure to debug the DllMain routine on Windows.
21266 Add note about -funwind-tables and mixed Ada and C/C++ programming in
21268 Document new BIND qualifer /RETURN_CODES=VMS.
21270 2005-02-09 Ben Brosgol <brosgol@adacore.com>
21272 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
21273 Edited gnatmetric chapter
21275 2005-02-09 Robert Dewar <dewar@adacore.com>
21278 Changes to document new wide wide character support
21280 Update documentation on Normalize_Scalars and Initialize_Scalars
21282 2005-02-09 Pascal Obry <obry@adacore.com>
21284 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
21286 2005-02-09 Jose Ruiz <ruiz@adacore.com>
21288 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
21289 from the VxWorks kernel) that is needed for getting the active
21290 priority of the different tasks.
21292 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
21293 Use a pragma Elaborate_Body in the spec file instead.
21294 Noticed by code reading.
21296 2005-02-09 Thomas Quinot <quinot@adacore.com>
21298 * exp_util.ads: Minor correction in comment.
21300 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21302 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
21303 since this procedure is now too complex to be worth inlining.
21305 2005-02-09 Richard Henderson <rth@redhat.com>
21307 * utils.c (gnat_define_builtin): Remove.
21308 (gnat_install_builtins): Use build_common_builtin_nodes.
21310 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21312 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21313 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
21314 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
21315 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
21316 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
21317 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
21318 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
21319 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
21320 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
21321 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
21322 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
21323 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
21324 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
21325 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
21326 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
21327 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
21328 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
21329 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
21330 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
21331 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
21332 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
21333 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
21334 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
21335 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
21336 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
21337 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
21338 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21339 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
21340 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
21341 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
21342 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21343 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
21344 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
21345 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
21348 2005-01-27 Laurent GUERBY <laurent@guerby.net>
21350 * Makefile.in: Fix a-intnam.ads from previous commit,
21351 add 2005 to copyright.
21352 * a-intman-rtems.ads: Renamed to...
21353 * a-intnam-rtems.ads:
21355 2005-01-27 Laurent GUERBY <laurent@guerby.net>
21357 * Makefile.in: Rename GNAT RTEMS specific files.
21358 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
21359 5rosinte.ads, 5rparame.adb: Replaced by files below.
21360 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
21361 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
21363 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
21364 Laurent GUERBY <laurent@guerby.net>
21367 * 5rosinte.ads: Add No_Key constant.
21368 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
21369 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
21371 2005-01-26 Laurent GUERBY <laurent@guerby.net>
21374 * i-cobol.adb (Valid_Numeric): Handle zero length case.
21376 2005-01-20 Richard Henderson <rth@redhat.com>
21378 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
21379 a-intnam-linux.ads and system-linux-alpha.ads.
21380 * a-intnam-linux-alpha.ads: Remove file.
21381 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
21382 * system-linux-alpha.ads: New file.
21384 2005-01-18 Jakub Jelinek <jakub@redhat.com>
21387 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
21388 set to the new string.
21390 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
21392 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
21395 2005-01-18 Richard Henderson <rth@redhat.com>
21397 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
21398 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
21400 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
21402 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
21404 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
21405 (GCC_ZCX_Support): Likewise.
21407 2005-01-11 Bastian Blank <waldi@debian.org>
21409 * system-linux-s390.ads: Define Preallocated_Stacks.
21410 * system-linux-s390x.ads: Likewise.
21412 2005-01-04 Arnaud Charlet <charlet@adacore.com>
21414 * gnat_ugn.texi: Fix texi errors with null variables.
21416 2005-01-03 Thomas Quinot <quinot@adacore.com>
21418 * gen-soccon.c: New utility program to generate g-soccon.ads
21421 * socket.c, gsocket.h: Split inclusion of system header files into a
21422 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
21424 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
21425 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21426 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
21427 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
21428 should not be edited by hand anymore, but should be regenerated using
21431 2005-01-03 Robert Dewar <dewar@adacore.com>
21432 Ed Schonberg <schonberg@adacore.com>
21433 Vincent Celier <celier@adacore.com>
21435 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
21436 on/off, since this is an obsolescent feature, for which we now generate
21439 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
21440 warning mode is set and obsolescent usage of this attribute occurs.
21441 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
21442 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
21443 predates, and partly motivates, the adoption of the AI.
21444 Implement new Ada 2005 attribute Mod
21446 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
21449 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
21451 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
21452 pragma restrictions.
21453 New entry for Ada 2005 attribute Mod.
21456 Add recognition of new pragma Restrictions No_Dependence
21457 Recognize restriction No_Obsolescent_Features at parse time
21459 * bcheck.adb: Add circuitry for checking for consistency of
21460 No_Dependence restrictions.
21462 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
21465 * restrict.ads, restrict.adb: Add subprograms to deal with
21466 No_Dependence restrictions.
21468 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
21471 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
21472 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
21474 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
21475 dummy parameter to scng instantiation.
21476 Needed for new restriction No_Obsolescent_Features
21478 * scn.adb: (Obsolescent_Check): New procedure
21479 Needed for new restriction No_Obsolescent_Features
21481 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
21482 specified by AI-285, needed for implementation of AI-388 (adding greek
21483 pi to Ada.Numerics).
21484 Add new generic formal to scng, needed for new restriction
21485 No_Obsolescent_Features.
21487 * s-rident.ads: Add new restriction No_Obsolescent_Features.
21489 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
21490 restrictions lines.
21491 (Scan_ALI): When finding an unexpected character on an R line, raise
21492 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
21493 Ignore_Errors is True, default restrictions are set and scanning of the
21494 ALI file continues with the next line. Also, when Bad_R_Line is raised
21495 and Ignore_Errors is True, skip to the end of le line.
21497 * sem_ch10.adb: Check that explicit with's do not violate
21498 No_Dependence restrictions.
21499 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
21500 illegal context clauses containing child units of instance.
21502 * sem_prag.adb: Processing and checking for new No_Dependence
21504 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
21505 analyze and check the External argument.
21507 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
21509 2005-01-03 Robert Dewar <dewar@adacore.com>
21511 * atree.adb: Add a fifth component to entities
21512 This allows us to add 32 flags and four new fields
21514 * atree.ads: Add a fifth component to entities
21515 This allows us to add 32 flags and four new fields
21517 * einfo.ads, einfo.adb: Document new fields and new flags now available
21518 Add routines for printing new fields
21520 * treepr.adb: Call routines to print out additional fields if present
21522 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21524 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
21525 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
21527 * Makefile.in: Add support to build shared Ada libraries on solaris x86
21528 Remove gpr2make, replaced by gprmake.
21529 Remove references to gnatmem and libaddr2line.
21530 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
21531 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
21532 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
21533 a-numaux-darwin.ads and a-numaux-darwin.adb
21534 Enable mlib-tgt-lynxos.adb on lynxos.
21536 * Make-lang.in: Remove rules for gpr2make.
21537 When generating sdefault.adb, do not call Relocate_Path
21538 on S3 for function Target_Name, as it is not a path.
21539 Remove references to gnatmem and libaddr2line.
21541 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
21544 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
21546 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
21547 address is incompatible with its base type alignment constraints when
21548 this can be decided statically.
21550 2005-01-03 Olivier Hainque <hainque@adacore.com>
21552 * decl.c (compatible_signatures_p): New function. The intended purpose
21553 is to check if two function signatures for a call-site and a callee are
21554 compatible enough for the call to be valid. The underlying purpose is
21555 to check if a call to a mapped builtin is using the right interface.
21556 The current code actually does not check antyhing - this a placeholder
21557 for future refinements.
21558 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
21559 builtin calls for convention Intrinsic.
21561 * gigi.h (builtin_decl_for): Declare (new function).
21563 * utils.c (gnat_install_builtins): Install the target specific builtins.
21564 (builtin_decl_for): New function, provide a dummy body for now.
21566 2005-01-03 Geert Bosch <bosch@adacore.com>
21568 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
21569 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21570 (Pred): Implement in terms of Succ.
21572 * trans.c (convert_with_check): Reimplement conversion of float to
21575 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21576 Vincent Celier <celier@adacore.com>
21578 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
21579 bounds can be negative, and must be declared Int, not Nat.
21581 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
21582 array is checked after using the index in the array.
21584 * makegpr.adb (Add_Switches): Check if there is a package for the
21585 processor. If there is no package, do not look for switches.
21587 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21589 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
21590 generation of predefined stream operations (specs and bodies) should
21591 proceed. Under various restrictions these subprograms must not be
21594 2005-01-03 Thomas Quinot <quinot@adacore.com>
21597 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
21598 amount of PCS-specific code in RACW stubs generation.
21599 (Copy_Specification): Set Etype on copied formal parameter entities, as
21600 this information is needed for PolyORB stubs generation.
21601 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
21602 variable Dynamic_Async.
21603 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
21604 (Build_RPC_Receiver_Specification): Make generic again, as recent
21605 changes have allowed RPC receivers to have the same profile for both
21606 variants of the PCS.
21607 Reorganise RPC receiver generation to reduce differences between the
21608 structure of GARLIC and PolyORB RPC receivers.
21609 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
21611 Simplify elaboration code for RCI packages.
21613 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
21614 generation to reduce differences between the structure of GARLIC and
21615 PolyORB RPC receivers.
21617 * s-stratt.adb: Fix typo in comment.
21619 2005-01-03 Thomas Quinot <quinot@adacore.com>
21621 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
21622 copied from Make_Init_Call).
21624 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
21625 reads and assignments on a temporary variable declared with appropriate
21628 2005-01-03 Robert Dewar <dewar@adacore.com>
21630 * i-c.adb (To_C): Raise CE if string is null and Append_Null
21632 2005-01-03 Robert Dewar <dewar@adacore.com>
21634 * i-cstrin.adb (Update): Do not append a null in form called with a
21635 String. This avoids unintended behavior.
21637 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21640 * init.c: Fix warnings on Free BSD section.
21642 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21645 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
21648 2005-01-03 Vincent Celier <celier@adacore.com>
21650 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
21651 libraries when Unique_Compile is True (-u switch).
21654 2005-01-03 Robert Dewar <dewar@adacore.com>
21656 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
21657 upper case letter or underscore after W, as allowed by spec.
21659 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21661 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
21662 darwin port by using proper type definitions from header files.
21663 Use SIGTERM instead of SIGABRT for SIGADAABORT.
21665 2005-01-03 Robert Dewar <dewar@adacore.com>
21667 * par.adb: Enhance error message handling for configuration file
21670 2005-01-03 Robert Dewar <dewar@adacore.com>
21672 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
21673 removed during the previous update (test properly for case of dividing
21674 largest negative number by -1, which generates overflow).
21676 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21677 Sergey Rybin <rybin@adacore.com>
21679 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
21680 to use as the defining identifier for a formal package.
21681 (Remove_Parent): If the instance takes place within (an instance of)
21682 a sibling, preserve private declarations of common parent.
21684 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21686 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
21687 to determine whether one of the operands is a fixed-point type for
21688 which a user-defined multiplication or division operation might be
21691 * sem_res.adb (Valid_Conversion): The legality rules for conversions
21692 of access types are symmetric in Ada 2005: either designated type can
21695 2005-01-03 Vincent Celier <celier@adacore.com>
21697 * s-fileio.adb (Temp_File_Record): Change length of string component
21698 Name from L_tmpnam + 1 to max_path_len + 1.
21700 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21702 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
21703 Self_Id.Deferral_Level = 0.
21704 (Do_Pending_Action): Move this function to the spec.
21706 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
21707 Do_Pending_Action explicitely when needed, in case we're using
21708 No_Abort restrictions.
21710 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
21711 deferral level since it will not get changed by the generated code.
21712 Keeping a default value of 1 would prevent some operations (e.g.
21713 select or delay) to proceed successfully.
21715 2005-01-03 Ben Brosgol <brosgol@adacore.com>
21716 Robert Dewar <dewar@adacore.com>
21717 Cyrille Comar <comar@adacore.com>
21719 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
21720 porting guide chapter (vms version).
21721 Revised doc title (removed "for native platforms") and subtitle.
21722 Add discussion on warning flag for obsolescent features. First we
21723 note that it applies to obsolete GNAT features, which was previously
21724 omitted. Second we contrast the behavior with that of the new
21725 Ada 2005 AI-368 restriction No_Obsolescent_Features.
21726 Preliminary rewriting of GNAT & libraries chapter in order to take
21727 into account default project locations & new project manager
21730 2005-01-03 Robert Dewar <dewar@adacore.com>
21732 * cstand.adb (Create_Operators): Clean up format and documentation of
21733 unary and binary operator result tables. No change in code, just
21734 reformatting and addition of comments.
21736 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
21737 sem_ch2.adb: Minor reformatting
21739 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
21740 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
21741 comments for Tree_Read and Tree_Write.
21743 2005-01-03 Pascal Obry <obry@adacore.com>
21745 * exp_attr.ads: Minor reformatting.
21747 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
21749 * comperr.adb (Compiler_Abort): Add specialized message for GAP
21752 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21754 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
21755 whether the ancestor type is private, as may be the case with nested
21758 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
21761 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
21763 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
21765 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
21766 * utils2.c (build_unary_op): Likewise.
21768 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21770 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
21772 2004-12-19 Richard Henderson <rth@redhat.com>
21774 * trans.c (gigi): Update gimplify_body call.
21776 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
21778 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
21780 2004-12-07 Ed Falis <falis@adacore.com>
21782 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
21783 current task being suspended.
21785 * init.c (__gnat_clear_exception): added to reset VxWorks exception
21787 (__gnat_map_signal): removed test for current task being suspended.
21789 2004-12-07 Gary Dismukes <dismukes@adacore.com>
21791 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
21792 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
21793 targets (such as AAMP).
21795 2004-12-07 Ed Schonberg <schonberg@adacore.com>
21797 * atree.adb (Visit_Itype): Create a new name for the generated itype,
21798 because the back-end may otherwise treat it as a redefinition of the
21801 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
21803 * back_end.adb (Scan_Back_End_Switches): Accept --param.
21805 * lang-specs.h: Accept --param.
21807 2004-12-07 Vincent Celier <celier@adacore.com>
21809 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
21810 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
21811 Current_Body_Suffix => Ada_Body_Suffix).
21812 Take into account Externally_Built attribute.
21814 * clean.adb (In_Extension_Chain): Always return False when one of the
21815 parameter is No_Project.
21816 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
21817 Ada_Language_Index).
21818 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
21819 Process_Languages for procedure Parse).
21821 * gnatcmd.adb (Carg_Switches): New table.
21822 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
21823 Adapt to name changes in package Prj (Current_Spec_Suffix =>
21824 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
21826 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
21827 Header_Num and function Hash are now declared in package Prj,
21830 * prj.adb (Suffix_Of): New function.
21831 (Set (Suffix)): New procedure.
21832 (Hash): One function moved from Prj.Com
21833 (Is_Present, Language_Processing_Data_Of): New functions
21834 (Set): Two new procedures
21835 (Add_Language_Name, Display_Language_Name): New procedures
21837 * prj.ads: (Suffix_Of): New function
21838 (Set (Suffix)): New procedure
21839 Add several types and tables for multi-language support.
21840 (Header_Num): Type moved from Prj.Com
21841 (Hash): Two functions moved from Prj.Com
21842 (Is_Present, Language_Processing_Data_Of): New functions
21843 (Set): Two new procedures
21844 (Add_Language_Name, Display_Language_Name): New procedures
21845 (Naming): Component name changes:
21846 Current_Spec_Suffix => Ada_Spec_Suffix,
21847 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
21848 Impl_Suffixes, Supp_Suffixes.
21849 (Project_Data): New components: Externally_Built, Supp_Languages,
21850 First_Language_Processing, Supp_Language_Processing, Default_Linker,
21851 Default_Linker_Path.
21853 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
21854 new package Language_Processing with its attributes (Compiler_Driver,
21855 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
21856 Binder_Driver, Default_Linker).
21858 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
21859 (Header_Num): Type moved to package Prj
21861 * prj-env.adb: Adapt to name changes in package Prj
21862 (Current_Spec_Suffix => Ada_Spec_Suffix,
21863 Current_Body_Suffix => Ada_Body_Suffix).
21865 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
21866 default to the project path, except the "-" is one of the directories
21867 in env var ADA_PROJECT_PATH.
21868 (Current_Project_Path): Global variable, replacing Project_Path
21869 that was in the body of Prj.Part.
21870 (Project_Path): New function
21871 (Set_Project_Path): New procedure
21872 Initialize Current_Project_Path during elaboration of the package
21873 Remove dependency on Prj.Com, no longer needed
21875 * prj-ext.ads (Project_Path): New function
21876 (Set_Project_Path): New procedure
21878 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
21879 suffix is defined for language <lang>.
21880 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
21881 accessing directly the components of Naming.
21882 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
21883 Reorganise of this package.
21884 Break procedure Check in several procedures.
21886 * prj-nmsc.ads: Replace all procedures (Ada_Check,
21887 Other_Languages_Check and Language_Independent_Check) with a single
21890 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
21891 Process_Languages, no longer needed.
21893 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
21894 Current_Project_Path.
21895 Remove elaboration code, moved to the body of Prj.Ext
21896 Use new function Prj.Ext.Project_Path instead of old variable
21898 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
21899 When comparing with project paths on the stack, first put the resolved
21900 path in canonical case.
21901 (Parse_Single_Project): Set the path name of the project file in the
21902 tree to the normalized path.
21904 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
21905 parameter Process_Languages, no longer needed.
21906 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
21907 Other_Languages_Check.
21909 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
21910 to store the resolved canonical path of the project file.
21911 Remove dependency to Prj.Com, no longer needed
21913 * prj-util.adb: Adapt to name changes in package Prj
21914 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
21917 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
21918 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
21919 Externally_Built, Include_Option, Language_Processing.
21921 * makegpr.adb: Numerous changes due to changes in packages
21924 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
21925 default to the project path, except whe "-" is one of the directories
21926 in env var ADA_PROJECT_PATH.
21927 (Gnatls): In verbose mode, add the new section "Project Search Path:"
21929 2004-12-07 Robert Dewar <dewar@adacore.com>
21931 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
21933 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
21936 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
21937 flag. No longer needed now that we handle this in gnat1drv.adb.
21939 * repinfo.ads: Minor reformatting
21941 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21942 Olivier Hainque <hainque@adacore.com>
21943 Eric Botcazou <ebotcazou@adacore.com>
21945 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
21946 TYPE_SIZE_UNIT of result type if SIZE is not specified.
21947 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
21948 of a bitfield, which we know is useless and causes trouble because of
21949 alignment implications.
21951 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
21953 (process_attributes): Clear DECL_COMMON again when a section attribute
21955 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
21956 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
21957 (create_field_decl): Special case ADDRESSABLE negative to mean
21958 "no bitfield creation", to be used by make_aligning_type. Don't
21959 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
21960 fields claimed addressable still have to be bitfields. Use
21961 value_factor_p instead of a raw binop construction to check for the
21962 position's alignment.
21964 2004-12-07 Geert Bosch <bosch@adacore.com>
21966 * eval_fat.adb: Revert previous change.
21968 2004-12-07 Thomas Quinot <quinot@adacore.com>
21969 Ed Schonberg <schonberg@adacore.com>
21971 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
21972 with an implicit dereference as its prefix, use
21973 Insert_Explicit_Dereference instead of merely rewriting the prefix into
21974 an explicit dereference. This ensures that a reference to the original
21975 prefix is generated, if appropriate.
21977 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
21978 dereference is rewritten to an explicit one, generate a reference to
21979 the entity denoted by its prefix using the original prefix node, so
21980 the dereference can be properly recorded as a read of the denoted
21981 access value, if appropriate.
21983 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
21984 emitting 'assigned but never read' warning on a variable on the basis
21985 that it has an access type.
21986 (Check_References): Emit unreferenced warning when the scope is a
21989 2004-12-07 Robert Dewar <dewar@adacore.com>
21990 Ed Schonberg <schonberg@adacore.com>
21992 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
21995 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
21996 leaving call unchanged.
21997 This deals with the case where the pragma Import specified
21998 an external name, to be handled by the back end.
22000 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
22001 subprogram which is Imported with convention Intrinsic if an
22002 External_Name argument is specified.
22003 (Process_Import_Or_Interface): Properly diagnose link name argument.
22004 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
22005 with Sem_Ch6.Cannot_Inline.
22006 (Process_Inline): Provide separate warning for inapplicable inline
22008 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
22009 treatment is uniform on different targets.
22011 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22013 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
22014 construct is rewritten, preserve end label to permit source navigation.
22016 2004-12-07 Thomas Quinot <quinot@adacore.com>
22018 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
22019 Specific_Build_Stub_Target): New subprograms.
22020 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
22021 the PCS implementation used, using the above PCS-customized subprograms.
22022 Minor reformatting.
22023 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
22024 for generation of DSA code targeted to the PolyORB PCS.
22025 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
22026 implementation of the partition communication subsystem in ancillary
22028 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
22029 PolyORB_Support.Build_Stub_Type): New subrograms containing the
22030 PCS-specific part of Add_Stub_Type.
22031 (Insert_Partition_Check): Use runtime library function to perform
22034 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
22035 (RE_Same_Partition): New entity, from s-parint.
22037 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
22039 2004-12-07 Gary Dismukes <dismukes@adacore.com>
22041 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
22042 Output the copyright message on a separate line from the version
22045 2004-12-07 Joel Brobecker <brobecker@adacore.com>
22047 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
22048 compile-time warning.
22050 2004-12-07 Robert Dewar <dewar@adacore.com>
22052 * g-regpat.adb: (Match): Change a misuse of or to or else
22054 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22057 (Generate_Reference): Handle properly a reference to an entry formal,
22058 when an accept statement has a pragma Unreferenced for it.
22060 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
22061 and the Has_Pragma_Unreferenced flag for each formal before analyzing
22062 the body, to ensure that warnings are properly emitted for each accept
22063 statement of a given task entry.
22065 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
22067 * Makefile.in: Add support for foreign threads on VMS.
22069 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22071 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
22073 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
22075 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
22077 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
22079 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
22081 2004-12-07 Robert Dewar <dewar@adacore.com>
22083 * nlists.adb (Prepend_Debug): Remove parameters and nest within
22085 (Remove_Next_Debug): Same fix
22087 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
22088 maintain back pointers now, though we did not used to, and comments
22090 (Prepend): Remove pragma Inline.
22091 (Remove_Next): Same cleanup
22093 2004-12-07 Thomas Quinot <quinot@adacore.com>
22095 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
22096 used to record an implicit dereference as a read operation on its
22097 prefix when operating under -gnatc. Necessary to avoid spurious
22098 'variable assigned but never read' warnings in that mode.
22099 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
22100 is a non-overloaded implicit dereference, call the above subprogram to
22101 ensure proper recording of references.
22103 2004-12-07 Gary Dismukes <dismukes@adacore.com>
22105 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
22106 to be resolved later as part of Analyze_Iteration_Scheme's call to
22109 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22111 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
22112 prefix is not a scalar type, place error message on prefix, not on
22115 2004-12-07 Bernard Banner <banner@adacore.com>
22117 * vxaddr2line.adb: Add support for x86 vxworks
22119 2004-12-07 Thomas Quinot <quinot@adacore.com>
22121 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
22122 documentation of the behaviour of these functions when passed an IP
22123 address that has no record in the system hosts database and no reverse
22126 * cstand.adb, a-tags.ads: Fix typos in comment.
22128 2004-12-07 Robert Dewar <dewar@adacore.com>
22130 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
22131 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
22132 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
22133 s-poosiz.ads: Minor reformatting
22135 * make.adb: Minor reformatting
22136 Add some ??? comments asking for more comments
22138 * s-poosiz.adb: Minor reformatting
22139 Add comments on alignment requirement
22141 * sinfo.ads: Remove obsolete comment and fix typo.
22143 2004-12-07 Vincent Celier <celier@adacore.com>
22144 Sergey Rybin <rybin@adacore.com>
22146 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
22147 Files" with the new tool and package names.
22148 Reformatting to suppress most of the warnings for line too long
22149 Document the new section "Project Search Path:" in the output of
22151 Add gnatmetric section
22153 2004-12-07 Vincent Celier <celier@adacore.com>
22155 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
22156 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
22157 and -eit to -ept. Added qualifier
22158 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
22160 2004-11-27 Andreas Schwab <schwab@suse.de>
22162 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
22164 2004-11-25 Arnaud Charlet <charlet@adacore.com>
22166 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
22167 internal implementation unit GNAT.Sockets.Thin,
22168 as their usage for sockets is non-portable (using the read and write
22169 functions from the system runtime library is fine on UNIX but won't
22170 work under Windows).
22172 * mingw32.h: Update copyright notice.
22174 2004-11-25 Arnaud Charlet <charlet@adacore.com>
22176 * ada-tree.h: Minor reformatting of previous change to avoid lines
22177 longer than 79 characters.
22179 2004-11-25 Olivier Hainque <hainque@adacore.com>
22181 * tb-gcc.c: GCC infrastructure based implementation of
22184 2004-11-24 Steven Bosscher <stevenb@suse.de>
22186 * misc.c (gnat_post_options): Don't clear
22187 flag_inline_functions.
22189 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
22192 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
22195 2004-11-21 Andreas Jaeger <aj@suse.de>
22197 * stylesw.adb: Change Style_Check_Subprogram_Order to
22198 Style_Check_Order_Subprograms.
22200 2004-11-18 Arnaud Charlet <charlet@adacore.com>
22202 * adaint.h, adaint.c
22203 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
22205 Add also a cast to kill another warning.
22206 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
22207 parameter with the priority class of the parent process instead of
22208 always using the NORMAL_PRIORITY_CLASS.
22209 (__gnat_dup): New function.
22210 (__gnat_dup2): New function.
22211 (__gnat_is_symbolic_link): Enable the effective body of this
22212 function when __APPLE__ is defined.
22214 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
22217 2004-11-18 Olivier Hainque <hainque@adacore.com>
22219 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
22220 address of which may be used to represent "others" and "all others"
22221 choices in exception tables, instead of the current harcoded
22222 (void *)0 and (void *)1.
22223 (Setup_Exception): Do nothing in the GNAT SJLJ case.
22225 * gigi.h (others_decl, all_others_decl): New decls representing the
22226 new Others_Value and All_Others_Value objects.
22227 (struct attrib): Rename "arg" component as "args", since GCC expects a
22228 list of arguments in there.
22230 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
22231 corresponding objects exported by a-exexpr, instead of hardcoded dummy
22234 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
22235 others_decl and all_others_decl instead of hardcoded dummy addresses
22236 to represent "others" and "all others" choices, which is cleaner and
22237 more flexible with respect to the possible eh pointer encoding policies.
22239 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
22240 (process_attributes): Account for the naming change of the "args"
22241 attribute list entry component.
22243 * decl.c (build_attr_list): Rename into prepend_attributes to allow
22244 cumulating attributes for different entities into a single list.
22245 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
22246 attributes for the current entity and propagate first subtype
22247 attributes to other subtypes.
22248 <E_Procedure>: Attribute arguments are attr->args and not
22249 attr->arg any more.
22250 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
22251 argument provided, as this is what GCC expects. Use NULL_TREE instead
22254 2004-11-18 Robert Dewar <dewar@adacore.com>
22256 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
22257 Minor reformatting througout (including new function specs)
22258 Add ??? comments asking for clarification.
22260 2004-11-18 Thomas Quinot <quinot@adacore.com>
22262 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
22263 incomplete duplicate implementation of this subprogram from butil.
22265 2004-11-18 Thomas Quinot <quinot@adacore.com>
22267 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
22268 procedures factors the common processing for building an RPC receiver
22269 for an RCI package or an RACW type.
22270 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
22271 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
22272 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
22274 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
22276 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
22278 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
22279 distribution subprogram identifiers that are either subprogram numbers
22281 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
22282 string distribution identifiers assigned to a given subprogram.
22283 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
22284 (Add_RAS_Dereference_TSS): Add comments.
22285 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
22286 is not referenced yet because it will be used by the PolyORB DSA
22288 (Insert_Partition_Check): Remove fossile code.
22289 (First_RCI_Subprogram_Id): Document this constant.
22290 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
22292 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
22293 replaced with calls to Get_Library_Unit_Name_String. Previously there
22294 were several instances of the same code in different locations in the
22295 compiler; this checkin completes the replacement of all of these
22296 instances with calls to a common subprogram.
22297 Minor reformatting.
22299 * sem_dist.adb: Remove comment noting that RPC receiver generation
22300 should be disabled for RACWs that implement RASs.
22301 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
22303 * sem_util.ads, sem_util.adb (Has_Stream): New function
22304 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
22305 qualified name of a library unit into the name buffer.
22306 (Note_Possible_Modification): Generate a reference only
22307 if the context comes from source.
22309 * snames.ads (PCS_Names): New subtype corresponding to names of
22310 supported implementations of the Partition Communication Subsystem
22311 (PCS) (i.e. the runtime library support modules for the distributed
22314 2004-11-18 Robert Dewar <dewar@adacore.com>
22315 Ed Schonberg <schonberg@adacore.com>
22317 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
22318 (Has_Rep_Pragma): New function
22319 (Has_Attribute_Definition_Clause): New function
22320 (Record_Rep_Pragma): Moved here from sem_ch13.adb
22321 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
22323 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
22325 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
22326 (Expand_Pragma_Psect_Object): New procedure
22327 These procedures contain the revised and cleaned up processing for
22328 these two pragmas. This processing was formerly in Sem_Prag, but
22329 is more appropriately moved here. The cleanup involves making sure
22330 that the pragmas are properly attached to the tree, and that no
22331 nodes are improperly shared.
22333 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
22334 pragmas to Exp_Prag, which is more appropriate.
22335 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
22336 check for duplicates Remove use of Is_Psected flag, no longer needed.
22337 Use new Make_String_Literal function with string.
22339 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
22340 that are functions return universal values, that have to be converted
22341 to the context type.
22342 Use new Make_String_Literal function with string.
22343 (Get_Stream_Convert_Pragma): New function, replaces the use of
22344 Get_Rep_Pragma, which had to be kludged to work in this case.
22346 * freeze.adb: Use new Has_Rep_Pragma function
22348 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
22349 function with string.
22350 Use new Has_Rep_Pragma function.
22352 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
22355 2004-11-18 Robert Dewar <dewar@adacore.com>
22357 * errout.ads, errout.adb: (First_Sloc): New function
22359 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
22360 check (-gnatyx) instead of being included as a redundant construct
22363 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
22364 Style_Check_Order_Subprograms.
22366 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
22367 stylesw.adb: Add Style_Check_Xtra_Parens
22369 * usage.adb: Add line for -gnatyx (check extra parens)
22371 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
22373 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22374 Robert Dewar <dewar@adacore.com>
22376 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
22377 discriminant of a constrained subtype, analyze the copy of the
22378 corresponding constraint, because in some cases it may be only
22379 partially analyzed.
22380 Removes long-lived ??? comments.
22382 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
22383 handled controlled or secondary-stack expressions within the
22384 iteration_scheme of a loop.
22386 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
22387 bounds that may contain functions calls, to prevent memory leaks when
22388 the bound contains a call to a function that uses the secondary stack.
22389 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
22390 generate temporaries for loop bounds that might contain function calls
22391 that require secondary stack and/or finalization actions.
22393 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
22394 selected component and the selector is overloadable (not just a
22395 function) treat as function call, Analyze_Call will disambiguate if
22397 (Analyze_Selected_Component): Do not generate an actual subtype for the
22398 selected component if expansion is disabled. The actual subtype is only
22399 needed for constraint checks.
22400 (Analyze_Allocator): If restriction No_Streams is set, then do
22401 not permit objects to be declared of a stream type, or of a
22402 composite type containing a stream.
22404 * restrict.ads: Remove the a-stream entry from Unit_Array, since
22405 No_Streams no longer prohibits with'ing this package.
22407 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
22408 discriminants, but the parent base has unknown discriminants, there is
22409 no discriminant constraint to inherit. Such a discrepancy can arise
22410 when the actual for a formal type with unknown discriminants is a
22411 similar private type whose full view has discriminants.
22412 (Analyze_Object_Declaration): If restriction No_Streams is set, then
22413 do not permit objects to be declared of a stream type, or of a
22414 composite type containing a stream.
22416 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22418 * exp_dbug.ads: Update documentation to reflect simpler encoding for
22419 protected operations.
22421 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
22422 generated name, it complicates decoding in gdb and hinders debugging
22423 of protected operations.
22424 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
22425 flag for the protected entry barrier function.
22426 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
22427 flag for the protected entry function.
22429 2004-11-18 Nicolas Setton <setton@adacore.com>
22431 * expect.c: Define __unix__ when __APPLE__ is defined.
22433 * Makefile.in: Inform the value of the variable GMEM_LIB in the
22434 Darwin-specific section.
22436 * lang-specs.h: Change the placement of the %1 marker.
22437 Works around the fact that gcc adds -fPIC by default under Darwin.
22439 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22441 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
22442 type of the object with the packed array type, set the Analyzed flag
22443 on the object if it is an entity or simple indexed component, to avoid
22444 spurious type errors.
22446 2004-11-18 Gary Dismukes <dismukes@adacore.com>
22448 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
22449 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
22450 separate line from the version message.
22452 2004-11-18 Ed Falis <falis@adacore.com>
22454 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
22456 (init_float): Eliminate initialization of floating point status for
22457 AE653. The instructions have no effect for vThreads.
22459 2004-11-18 Vincent Celier <celier@adacore.com>
22461 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
22462 gnatbind is invoked with -shared.
22464 2004-11-18 Jose Ruiz <ruiz@adacore.com>
22466 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
22467 for Detect_Blocking which is redundant with the check done within the
22468 procedure Protected_Single_Entry_Call.
22469 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
22470 Detect_Blocking which is redundant with the check done within the
22471 procedure Protected_Single_Entry_Call.
22473 2004-11-18 Vincent Celier <celier@adacore.com>
22475 * makegpr.adb (Compile): Put the compiling switches (in package
22476 Compiler and on the command line) immediately after "-c", instead of
22477 at the end of the command line invocation of the compiler, when
22478 compiling a non-Ada file.
22479 (Build_Global_Archive): When there is no need to rebuild the archive,
22480 set Global_Archive_Exists, so that the archive is passed to the linker
22483 2004-11-18 Robert Dewar <dewar@adacore.com>
22484 Sergey Rybin <rybin@adacore.com>
22487 Remove extra paren check from list of checks for redundant constructs
22488 Add documentation of new -gnatyx style check (check extra parens)
22489 Remove paragraph about gnatelim debug options.
22491 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
22492 objects rather than forbidding dependencies on the package Ada.Streams.
22494 * sinfo.ads: Add ??? note that we should document pragmas passed to
22497 * g-expect.ads: Fix a few typos in the comments.
22499 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
22501 * misc.c (gnat_handle_option): Use %< and %> for quoting in
22504 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22506 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
22508 2004-11-07 Andreas Schwab <schwab@suse.de>
22510 * Makefile.in (install-gnatlib): Remove spurious hyphen.
22512 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
22515 * Makefile.in (darwin): Set soext to .dylib.
22517 2004-10-26 Vincent Celier <celier@gnat.com>
22518 Thomas Quinot <quinot@act-europe.fr>
22520 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
22521 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
22522 there is no use of GNAT.Sockets.Constants.
22523 Remove remaining pragma Import for C_Write
22524 Remove C_Read and C_Write from internal implementation unit
22525 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
22526 the read and write functions from the system runtime library is fine
22527 on UNIX but won't work under Windows).
22529 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
22530 (Check_Selector): Use C_Recv instead of C_Read.
22531 Selectors are the GNAT.Sockets abstraction to perform a select()
22532 call on a set of descriptors. To allow abortion of an ongoing
22533 select operation, some data is written to a dedicated socket that
22534 is always monitored.
22535 Under Windows, the write and read library functions cannot operate
22536 on sockets, so we need to use send and recv instead, which is portable
22537 across all supported platforms.
22539 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
22540 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
22541 (using the read and write functions from the system runtime library is
22542 fine on UNIX but won't work under Windows).
22544 2004-10-26 Nicolas Setton <setton@act-europe.fr>
22546 * mlib-tgt-darwin.adb: New file.
22548 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22549 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22550 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
22551 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
22554 * Makefile.in: Add support for building shared libraries under Darwin.
22555 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
22556 the low level EH init subprogram to be called from __gnat_initialize.
22558 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
22559 indicates which options to pass to the archive indexer.
22561 * mlib-utl.adb: Add support for calling ranlib with additional
22562 options. This is needed for instance under Mac OS X.
22563 (Ranlib_Options): New global variable, used to store the potential
22564 options to pass to ranlib.
22565 (Ar): Use Ranlib_Options when spawning ranlib.
22566 (Initialize): Set the value of ranlib option.
22568 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
22570 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
22571 instead of 8K, to reflect the real potential needs for stack-checking
22574 2004-10-26 Pascal Obry <obry@gnat.com>
22576 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
22578 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
22579 Windows only the initial thread stack size can be set so it is good to
22580 start we a low stack size.
22581 The OS will adjust the size as needed.
22583 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
22584 Nicolas Setton <setton@act-europe.fr>
22586 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
22587 "__unix__" instead of "unix".
22588 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
22589 sections were just mistakenly ignored. The former is
22590 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
22591 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
22592 of hpux. This prevents an unwanted definition of the symbol
22593 convert_addresses in adaint.o.
22595 2004-10-26 Gary Dismukes <dismukes@gnat.com>
22597 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
22598 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
22600 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22602 * a-filico.ads, a-filico.adb: fix incorrect header.
22604 2004-10-26 Javier Miranda <miranda@gnat.com>
22606 * a-ststio.ads: Fix typo in identifier
22608 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22610 * sem_ch4.adb: Minor reformatting.
22612 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22614 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
22615 enabled, check the result of unary and binary operations when the
22616 expression is the right-hand side of an assignment.
22618 2004-10-26 Vincent Celier <celier@gnat.com>
22620 * clean.adb (Delete): Do not output warnings when in quiet output and
22621 not in verbose mode.
22622 (Force_Deletions): New Boolean flag, defaulted to False
22623 (Delete): Only delete a file if it is writable, and when
22624 Force_Deletions is True.
22625 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
22626 (Usage): Line for new switch -f
22627 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
22630 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
22632 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
22633 JM type only if its size matches that of the wrapper. When a size is
22634 prescribed and the field is not aliased, remove the wrapper of a JM
22635 type only if the size is not greater than that of the packed array.
22636 (gnat_to_gnu_entity): Change the extension of packed array wrappers
22639 2004-10-26 Geert Bosch <bosch@gnat.com>
22641 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
22642 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
22643 (Pred): Implement in terms of Succ.
22645 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22647 * exp_aggr.adb (Safe_Component): An aggregate component that is an
22648 unchecked conversion is safe for in-place use if the expression of the
22649 conversion is safe.
22650 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
22651 be expandable in place even if the aggregate does not come from source.
22652 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
22653 designated object of an allocator in place, rather than building it
22654 first on the stack. The previous scheme forces a full copy of the array,
22655 and may be altogether unsusable if the size of the array is too large
22656 for stack allocation.
22658 2004-10-26 Robert Dewar <dewar@gnat.com>
22660 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
22661 compares if the component is atomic.
22663 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
22664 array assignment if the component type is atomic.
22666 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22667 Eric Botcazou <ebotcazou@act-europe.fr>
22669 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
22670 is aliased and is a by_reference type, do not pass by copy.
22671 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
22672 detect whether the call is in the right side of an assignment or
22673 the expression of an object declaration. Recurse on component
22674 association within aggregates.
22675 Call it in the condition that determines whether the temporary is
22676 necessary for correct stack-checking.
22678 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22680 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
22681 RACW_Type, used in the PolyORB version.
22682 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
22683 version and the GARLIC version.
22685 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
22686 Rename RCI_Info to RCI_Locator for better consistency between the
22687 GARLIC and PolyORB versions of the distributed systems annex.
22688 (DSA_Implementation_Name): This enumeration lists the possible
22689 implementations of the Partition Communication Subsystem for the
22690 Distributed Systems Annex (DSA). The three available implementations
22691 are the dummy stub implementation (No_DSA), and two versions based on
22692 two different distribution runtime libraries: GARLIC and PolyORB. Both
22693 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
22695 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
22698 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
22699 between the GARLIC and PolyORB versions of the distributed systems
22701 Remove RE_Unbounded_Reclaim_Pool since it is unused.
22703 2004-10-26 Gary Dismukes <dismukes@gnat.com>
22705 * gnat1drv.adb: Suppress calling the back end when
22706 Frontend_Layout_On_Target is true.
22708 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22710 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
22711 Set_Read_Only): New subprograms.
22712 These new routines allow the user to set or unset the Owner execute
22713 and Owner write permission flags on a file.
22715 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
22716 GNAT.OS_Lib.Set_Executable instead of rolling our own.
22718 2004-10-26 Matthew Gingell <gingell@gnat.com>
22720 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
22722 2004-10-26 Pascal Obry <obry@gnat.com>
22724 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
22725 memory before the faulting page we properly test the process read
22726 access for this address using appropriate Win32 routine.
22727 (HPUX sections): guard with "__hpux__" instead of "hpux".
22729 2004-10-26 Robert Dewar <dewar@gnat.com>
22731 * lib-xref.adb (Generate_Reference): Don't complain about reference to
22732 entry parameter if pragma Unreferenced set, since we do not properly
22733 handle the case of multiple parameters.
22735 2004-10-26 Vincent Celier <celier@gnat.com>
22737 * prj-env.adb: (Contains_ALI_Files): New Boolean function
22738 (Ada_Objects_Path.Add): For a library project, add to the object path
22739 the library directory only if there is no object directory or if the
22740 library directory contains ALI files.
22741 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22743 2004-10-26 Vincent Celier <celier@gnat.com>
22745 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
22746 extension of library projects.
22748 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
22749 path defaults to ".:<prefix>/lib/gnat".
22750 (Parse): For an extending all project, allow direct import of a project
22751 that is virtually extended.
22753 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
22754 the specified name is directly imported, return its ID. Otherwise, if
22755 an extension of this project is imported, return the ID of the
22758 2004-10-26 Robert Dewar <dewar@gnat.com>
22760 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
22761 (Sub3): New procedure, used by Scaled_Divide
22762 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
22763 correct more than one instance of failure to propagate carries
22765 (Double_Divide): Handle overflow case of largest negative number
22766 divided by minus one.
22768 * s-arit64.ads (Double_Divide): Document that overflow can occur in
22769 the case of a quotient value out of range.
22772 2004-10-26 Robert Dewar <dewar@gnat.com>
22774 * s-bitops.adb (Bit_Eq): Remove redundant check.
22776 * s-bitops.ads: Minor comment updates
22777 Change some occurrences of Address to System.Address
22779 * s-carsi8.ads: Fix minor cut-and-paste error in comments
22781 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22783 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
22784 accessibility check to prefix that is a protected operation.
22786 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22788 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
22789 empty, post message on stub.
22791 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22792 Javier Miranda <miranda@gnat.com>
22794 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
22795 current instance appears within a unit that is directly in the context
22797 Used to determine whether the body of the instance should be analyzed
22798 immediately after its spec, to make its subprogram bodies available
22799 for front-end inlining.
22800 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
22801 constraint is not allowed on the component type (AARM 12.5.3(3))
22803 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22805 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
22806 'Storage_Pool): enhance, document & limit detection of non-sharable
22809 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
22811 * s-pooglo.ads: Add more documentation now that this pool is properly
22814 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22816 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
22817 or protected type with discriminants, do not constrain the
22818 corresponding record type if the subtype declaration has no
22819 discriminant constraints. This can be the case in source code, or in
22820 the subtype declaration created to rename an actual type within an
22823 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22825 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
22826 different kind of stub (possibly wrong name for file), do not check
22828 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
22829 includes call to some function that returns an unconstrained type, do
22832 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22834 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
22835 appear in the code for the main unit. Dependencies among units in the
22836 context of the main unit are established when those other units are
22837 compiled. Otherwise spurious elaboration constraints can generate
22838 incorrect elaboration circularities.
22840 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22841 Ed Schonberg <schonberg@gnat.com>
22843 * sem_util.adb (Is_Aliased_View): Defend against the case where this
22844 subprogram is called with a parameter that is not an object name. This
22845 situation arises for some cases of illegal code, which is diagnosed
22846 later, and in this case it is wrong to call Is_Aliased, as that might
22847 cause a compiler crash.
22848 (Explain_Limited_Type): Refine previous fix to include
22849 inherited components of derived types, to provide complete information.
22851 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
22852 is the prival for a protected object.
22853 It is necessary to mark this entity as a variable, in addition to
22854 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
22855 modified to avoid checking the Aliased flag on entities that are not
22856 objects. (Checking that flag for non-objects is erroneous and could
22857 lead to a compiler crash).
22859 2004-10-26 Robert Dewar <dewar@gnat.com>
22861 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
22862 X_Frac = 0.5, then we know that the number X must be positive.
22863 (Succ): Remove the same redundant test, and also fix the primary test
22864 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
22866 (Decompose): Add fuller comments to spec
22868 2004-10-26 Pascal Obry <obry@gnat.com>
22870 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
22871 validity (process must have read access). Set to 0 in all other cases.
22872 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
22873 violation on Win32.
22874 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
22875 segmentation violation.
22877 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
22879 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
22880 whose type is a constructed subtype of an aliased object with an
22881 unconstrained nominal subtype, convert the actual to the constructed
22882 subtype before taking its address.
22884 2004-10-26 Vincent Celier <celier@gnat.com>
22886 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
22887 (Is_Path_Name_Case_Sensitive): New function
22889 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
22890 (Base_Name, Simple_Name, Current_Directory, Compose,
22891 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
22894 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22895 Vasiliy Fofanov <fofanov@act-europe.fr>
22896 Vincent Celier <celier@gnat.com>
22898 * gnat_ugn.texi: Generalize "finding memory problems" section into a
22899 "memory management issues" section and document some of the useful
22900 memory pools provided as part of the GNAT library.
22901 Remove "virtual" from declaration of A::method2 in
22902 the simple example of Ada/C++ mixed system.
22903 Library Projects may be virtually extended: their virtual extensions
22904 are not Library Projects.
22905 Added section on extending project hierarchies.
22907 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
22909 * adaint.c (__gnat_get_libraries_from_registry): Cast value
22911 (__gnat_portable_spawn): Remove const.
22913 * mingw32.h (MAXPATHLEN): Check for previous definition.
22915 2004-10-17 Matthias Klose <doko@debian.org>
22917 * gnatvsn.ads: Set gnat library version to 4.0.
22919 2004-10-05 Vincent Celier <celier@gnat.com>
22921 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
22923 2004-10-04 Laurent GUERBY <laurent@guerby.net>
22926 * Makefile.in: Define and use RANLIB_FLAGS.
22928 2004-10-04 Pascal Obry <obry@gnat.com>
22930 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
22931 other x86 platforms).
22933 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
22935 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
22936 in general and triggers stack alignment adjustment for thread entry
22937 points on targets where this is necessary.
22939 2004-10-04 Bernard Banner <banner@gnat.com>
22942 * Makefile.in: Add section for powerpc linux
22943 Add variant i-vxwork-x86.ads
22945 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
22947 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
22949 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
22950 table registration calls when need be. Ensures no reference to the crt
22951 ctors symbol are issued in the SJLJ case, which avoids possible
22952 undefined symbol errors in the case of modules to be statically linked
22955 2004-10-04 Javier Miranda <miranda@gnat.com>
22957 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
22958 in-line the code corresponding to subprogram Analyze_Actuals. In
22959 addition, analyze the actuals only in case of subprogram call.
22961 2004-10-04 Ed Falis <falis@gnat.com>
22963 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
22965 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
22967 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
22968 in the documentation.
22970 2004-10-04 Robert Dewar <dewar@gnat.com>
22972 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
22974 (Analyze_Block_Statement): Add circuitry to detect following dead code
22975 (Check_Unreachable_Code): Handle case of block exit
22977 2004-10-04 Robert Dewar <dewar@gnat.com>
22979 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
22980 (XMatchD): Avoid warning for Logic_Error call
22982 2004-10-04 Robert Dewar <dewar@gnat.com>
22984 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
22985 consider expressions buried within a procedure actual to be an actual.
22986 This caused some blowups with uses of packed slices within a procedure
22989 2004-10-04 Robert Dewar <dewar@gnat.com>
22991 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
22992 longer need to be initialized to zero.
22993 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
22994 initialized to zero.
22996 * checks.adb (Expr_Known_Valid): Packed arrays are now always
22997 considered valid, even if the representation is modular. That's correct
22998 now that we no longer initialize packed modular arrays to zero.
23000 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
23001 suffixes. These are now documented as the only cases in which the
23002 debugger ignores outer records.
23003 Previously, the spec allowed arbitrary suffixes for this purpose.
23004 Change name of LJM to JM for packed array pad records
23005 Create separate section on packed array handling, and add a whole new
23006 set of comments to this section describing the situation with packed
23007 modular types and justification requirements depending on endianness.
23009 2004-10-04 Robert Dewar <dewar@gnat.com>
23011 * a-except.adb: Add a comment for last change
23013 * einfo.ads: Minor spelling correction in comment
23015 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
23017 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
23020 * sem_util.ads: Minor comment update
23022 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23024 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
23025 Inline_Always when in Configurable_Run_Time mode.
23027 * sem_prag.adb (Process_Convention): If entity is an inherited
23028 subprogram, apply convention to parent subprogram if in same scope.
23029 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
23030 when in Configurable_Run_Time mode.
23032 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23034 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
23035 class_wide type after component list has been inherited.
23037 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23039 * sem_ch12.adb (Check_Generic_Actuals): New predicate
23040 Denotes_Previous_Actual, to handle properly the case of a private
23041 actual that is also the component type of a subsequent array actual.
23042 The visibility status of the first actual is not affected when the
23043 second is installed.
23044 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
23045 make fully recursive the treatment of formals of packages declared
23047 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
23048 the above on exit from an instantiation.
23049 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
23050 current instantiation which is now complete.
23051 (Analyze_Package_Instantiation): No instantiated body is needed if the
23052 main unit is generic. Efficient, and avoid anomalies when a instance
23053 appears in a package accessed through rtsfind.
23055 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23057 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
23058 do not generate a declaration for a temporary if the call is part of a
23059 library-level instantiation.
23061 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23063 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
23064 searching for a limited component to flag.
23066 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
23067 expansion of Input, to account for the fact that the implicit call
23068 generated by the attribute reference must freeze the user-defined
23069 stream subprogram. This is only relevant to 'Input, because it can
23070 appear in an object declaration, prior to the body of the subprogram.
23072 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
23073 expansion can proceed and further errors uncovered.
23074 (Minor clean up): Fix cases of using | instead of \ for continuation
23077 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23079 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
23081 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
23082 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
23083 Use gcc_assert and gcc_unreachable.
23085 * decl.c (gnat_to_gnu_entity, case object): Check and process a
23086 specified alignment before validating size.
23087 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
23088 stripped-down declaration for the type of the inner field when making
23091 * utils.c (finish_record_type): Do not compute the size in units
23092 incrementally. Instead compute it once for the rep clause case.
23093 Use gcc_assert and gcc_unreachable.
23095 2004-10-04 Vincent Celier <celier@gnat.com>
23097 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
23099 (Is_Valid_Path_Name): Take '/' as a directory separator.
23101 2004-10-04 Vincent Celier <celier@gnat.com>
23103 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
23104 (Extended_Project) only if Extended_Project is defined, to avoid
23106 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
23108 (Parse_Single_Project): Ditto.
23110 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
23111 Add_To_Project_Path for virtual projects.
23113 2004-10-04 Vincent Celier <celier@gnat.com>
23115 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23116 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23117 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
23118 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
23119 parameter Options_2.
23121 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
23122 Build_Dynamic_Library with an empty Options_2.
23124 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
23127 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
23128 directory separator, if any.
23129 (Gprmake): Do not allow mains on the command line for library projects.
23130 Do not attempt to link when the project is a library project.
23131 (Library_Opts): New table to store Library_Options.
23132 (Build_Library): If Library_Options is specified, pass these options
23133 when building a shared library.
23135 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
23137 * s-tposen.adb (Service_Entry): The object must be always unlocked at
23138 the end of this procedure now that the unlock operation was inserted
23141 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
23143 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
23144 corresponding to the Preallocated_Stacks flags in System.
23145 (Get_Target_Parameters): Including the processing for
23146 Preallocated_Stacks.
23148 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
23149 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
23150 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23151 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
23152 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
23153 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23154 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
23155 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
23156 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
23157 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
23158 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
23159 used to signal whether the compiler creates the required stacks and
23160 descriptors for the different tasks (when True) or it is done by the
23161 underlying operating system at run time (when False).
23162 It is initially set to False in all targets.
23164 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
23165 if it is supported by the target.
23166 (Make_Task_Create_Call): Pass the stack address if it has been
23167 previously created. Otherwise pass a Null_Address.
23169 * snames.adb: Add _stack.
23171 * snames.ads: Add Name_uStack. Required to allow the expander to
23172 statically allocated task stacks.
23174 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
23175 Stack_Address argument.
23176 Check that its value is equal to Null_Address because this target does
23177 not support the static stack allocation.
23179 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23181 * usage.adb: Change "pragma inline" to "pragma Inline" in information
23184 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23186 * exp_dist.adb: Split declaration of asynchronous flag out of
23187 Add_RACW_Read_Attribute.
23188 Minor reformatting for better alignment with PolyORB version.
23189 Store the entity for the asynchronous flag of an RACW, rather than the
23190 expression, in the asynchronous flags table. This will allow this flag
23191 to be used in other subprograms beside Add_RACW_Read_Attribute.
23193 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23195 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
23196 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23197 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
23198 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
23199 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
23200 sockets constant MSG_NOSIGNAL (Linux-specific).
23201 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
23202 all Send operations.
23203 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
23204 from trigerring SIGPIPE.
23205 Rename components to avoid clash with Ada 2005 possible reserved
23207 (Check_Selector): When the select system call returns with an error
23208 condition, propagate Socket_Error to the caller.
23210 2004-10-01 Jan Hubicka <jh@suse.cz>
23212 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
23214 2004-09-23 Robert Dewar <dewar@gnat.com>
23217 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
23218 instead do this at freeze time (we won't do it if there is an address
23220 Change "pragma inline" to "pragma Inline" in information and error
23222 Minor reformatting.
23224 * freeze.adb (Check_Address_Clause): Remove previous change, not the
23225 right way of doing things after all.
23226 (Freeze_Entity): For object, set Is_Public for imported entities
23227 unless there is an address clause present.
23229 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
23231 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
23232 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
23233 ensures proper handling of types with rep clauses, which might have
23234 their TYPE_SIZE set already.
23236 2004-09-21 Robert Dewar <dewar@gnat.com>
23238 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
23239 packed array types in both little- and big-endian cases. This change
23240 ensures that we no longer count on the unused bits being initialized
23241 for such types (and in particular ensures that equality testing will
23242 only read the relevant bits).
23243 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23244 These changes mean that we no longer need to initialize small packed
23246 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
23247 optimization to an LJM field as to its parent field.
23249 * ada-tree.h, trans.c, utils.c, utils2.c:
23250 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23252 2004-09-20 Jan Hubicka <jh@suse.cz>
23254 * utils.c (gnat_finalize): Remove.
23255 (end_subprog_body): Directly call cgraph_finalize_function;
23256 do not lower the nested functions.
23258 2004-09-20 Robert Dewar <dewar@gnat.com>
23261 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
23262 if an address clause is present, since that means that the Import
23265 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
23267 * 5tsystem.ads: Removed, no longer used.
23269 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
23270 Zack Weinberg <zack@codesourcery.com>
23272 * ada-tree.def: Use tree_code_class enumeration constants
23273 instead of code letters.
23274 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
23275 Update for new tree-class enumeration constants.
23277 2004-09-17 Vincent Celier <celier@gnat.com>
23279 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
23280 capabilities of the general project manager.
23282 2004-09-09 Vincent Celier <celier@gnat.com>
23284 * a-direct.ads: Add pragma Ada_05
23285 (Directory_Entry_Type): Give default value to component Kind to avoid
23286 not initialized warnings.
23288 * a-direct.adb (Current_Directory): Remove directory separator at the
23290 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
23291 an existing directory.
23292 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
23293 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
23294 Convert the result to File_Size.
23296 * prj.ads: (Project_Error): New exception
23298 * prj-attr.adb: Except in procedure Initialize, Fail comes from
23299 Prj.Com, not from Osint.
23300 (Attrs, Package_Attributes): Tables moved to private part of spec
23301 (Add_Attribute, Add_Unknown_Package): Moved to new child package
23303 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
23304 Prj.Project_Error after call to Fail.
23305 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
23306 Fail. Check that package name is not already in use.
23308 * prj-attr.ads: Comment updates to indicate that all subprograms may be
23309 used by tools, not only by the project manager, and to indicate that
23310 exception Prj.Prj_Error may be raised in case of problem.
23311 (Add_Unknown_Package, Add_Attribute): Moved to new child package
23313 (Attrs, Package_Attributes): Table instantiations moved from the body to
23314 the private part to be accessible from Prj.Attr.PM body.
23316 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
23317 from new package Prj.Attr.PM.
23318 (Parse_Attribute_Declaration): Call Add_Attribute from new package
23321 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
23323 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
23324 instead of Elaboration_Checks).
23326 * a-calend.adb: Minor reformatting
23328 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23330 * gigi.h (maybe_pad_type): New declaration.
23331 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
23333 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
23335 * cuintp.c: Convert to use buildN.
23337 * decl.c (maybe_pad_type): No longer static.
23338 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
23340 Convert to use buildN.
23342 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
23343 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
23344 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
23346 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
23347 (gnat_gimplify_expr, case ADDR_EXPR): New case.
23348 Convert to use buildN.
23350 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
23351 TREE_READONLY for const.
23352 Convert to use buildN.
23354 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
23355 (create_var_decl): Refine when TREE_STATIC is set.
23356 Convert to use buildN.
23358 2004-09-09 Gary Dismukes <dismukes@gnat.com>
23360 * gnat_ugn.texi: Delete text relating to checking of ali and object
23363 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
23366 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
23368 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
23369 pragmas recognized by GNAT.
23371 * gnat_rm.texi: Document pragma Detect_Blocking.
23373 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
23374 raise Program_Error if called from a protected operation.
23376 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
23377 the protected action nesting level.
23378 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
23379 protected action nesting level.
23380 (Unlock): When pragma Detect_Blocking is active decrease the protected
23381 action nesting level.
23383 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
23384 Protected_Action_Nesting.
23386 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
23387 Common_ATCB record. It contains the dynamic level of protected action
23388 nesting for each task. It is needed for checking whether potentially
23389 blocking operations are called from protected operations.
23390 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
23391 Detect_Blocking is active or not in the partition.
23393 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
23394 raise Program_Error if called from a protected operation.
23395 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
23396 Program_Error if called from a protected operation.
23397 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
23398 Program_Error if called from a protected operation.
23400 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
23401 raise Program_Error if called from a protected operation.
23403 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
23404 raise Program_Error if called from a protected operation, and increase
23405 the protected action nesting level.
23406 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
23407 Program_Error if called from a protected operation, and increase the
23408 protected action nesting level.
23409 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
23410 protected action nesting level.
23412 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
23413 raise Program_Error if called from a protected operation, and increase
23414 the protected action nesting level.
23415 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
23416 Program_Error if called from a protected operation, and increase the
23417 protected action nesting level.
23418 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
23419 raise Program_Error if called from a protected operation.
23420 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
23421 active, raise Program_Error if called from a protected operation.
23422 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
23423 protected action nesting level.
23425 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
23426 insertion of the statement raising Program_Error. The run time
23427 contains the required machinery for handling that.
23429 * sem_util.ads: Change comment associated to procedure
23430 Check_Potentially_Blocking_Operation.
23431 This procedure does not insert a call for raising the exception because
23432 that is currently done by the run time.
23434 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
23436 * init.c: Add the global variable __gl_detect_blocking that indicates
23437 whether pragma Detect_Blocking is active (1) or not (0). Needed for
23438 making the pragma available at run time.
23439 (__gnat_set_globals): Pass and update the detect_blocking parameter.
23441 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
23442 pragma Detect_Blocking is active.
23444 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
23446 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
23447 DB is found in the ali file. Any unit compiled with pragma
23448 Detect_Blocking active forces its effect in the whole partition.
23450 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
23451 Detect_Blocking is active and delay is called from a protected
23454 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
23455 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
23456 Detect_Blocking is active (0 otherwise).
23457 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
23458 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
23461 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
23463 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
23464 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
23467 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
23468 (Register_Receiving_Stub): Add Subp_Info formal parameter.
23469 Update API in placeholder implemetation of s-parint to reflect changes
23470 in distribution runtime library.
23472 * sem_ch3.adb (Expand_Derived_Record): Rename to
23473 Expand_Record_Extension.
23475 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
23476 primitive operations of potentially distributed object types that have
23477 non-controlling anonymous access formals.
23479 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
23481 New implementation of expansion for remote access-to-subprogram types,
23482 based on the RACW infrastructure.
23483 This version of sem_dist is compatible with PolyORB/DSA as well as
23486 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
23487 Asynchrronous that applies to a remote access-to-subprogram type, mark
23488 the underlying RACW type as asynchronous.
23490 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
23491 __gnat_using_gnu_linker to 1.
23493 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
23494 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
23495 GNAT.Perfect_Hash_Generators, and remove the empty
23496 GNAT.Perfect_Hash package.
23498 * atree.adb: Minor reformatting
23500 * exp_ch3.adb (Expand_Derived_Record): Rename to
23501 Expand_Record_Extension.
23502 (Build_Record_Init_Proc.Build_Assignment): The default expression in
23503 a component declaration must remain attached at that point in the
23504 tree so New_Copy_Tree copies it if the enclosing record type is derived.
23505 It is therefore necessary to take a copy of the expression when building
23506 the corresponding assignment statement in the init proc.
23507 As a side effect, in the case of a derived record type, we now see the
23508 original expression, without any rewriting that could have occurred
23509 during expansion of the ancestor type's init proc, and we do not need
23510 to go back to Original_Node.
23512 * exp_ch3.ads (Expand_Derived_Record): Rename to
23513 Expand_Record_Extension.
23515 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
23516 Returns the RACW type used to implement a remote access-to-subprogram
23518 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
23519 New subprograms. Used to create a proxy tagged object for a remote
23520 subprogram. The proxy object is used as the designated object
23521 for RAS values on the same partition (unless All_Calls_Remote applies).
23522 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
23523 System.Partition_Interface.Get_Unique_Remote_Pointer.
23524 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
23525 Renamed from Add_RAS_*_Attribute.
23526 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
23528 New implementation of expansion for remote access-to-subprogram types,
23529 based on the RACW infrastructure.
23531 * exp_dist.ads (Copy_Specification): Update comment to note that this
23532 function can copy the specification from either a subprogram
23533 specification or an access-to-subprogram type definition.
23535 2004-09-09 Ed Schonberg <schonberg@gnat.com>
23537 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
23538 in an instance, between an explicit subprogram an one inherited from a
23539 type derived from an actual.
23541 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
23542 add a polling call if the subprogram is to be inlined by the back-end,
23543 to avoid repeated calls with multiple inlinings.
23545 * checks.adb (Apply_Alignment_Check): If the expression in the address
23546 clause is a call whose name is not a static entity (e.g. a dispatching
23547 call), treat as dynamic.
23549 2004-09-09 Robert Dewar <dewar@gnat.com>
23551 * g-trasym.ads: Minor reformatting
23553 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
23554 packed arrays, since unused bits are expected to be zero for a
23557 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
23559 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
23562 2004-09-09 Pascal Obry <obry@gnat.com>
23564 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
23565 enable map file generation. Add the right option to generate the map
23566 file if Map_File is set to True.
23568 * gnatdll.adb (Gen_Map_File): New variable.
23569 (Syntax): Add info about new -m (Map_File) option.
23570 (Parse_Command_Line): Add support for -m option.
23571 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
23572 Minor reformatting.
23574 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
23576 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
23577 new gnatdist implementation.
23578 Define a subpackage isolating the output routines specific to this
23581 2004-09-09 Joel Brobecker <brobecker@gnat.com>
23583 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
23585 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
23587 2004-09-09 Cyrille Comar <comar@act-europe.fr>
23589 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
23592 * opt.ads: Add Ada_Version_Runtime constant used to decide which
23593 version of the language is used to compile the run time.
23595 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
23597 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
23598 of variable length temporaries for function return now that the
23599 back-end and gigi support it.
23601 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23603 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
23605 * trans.c (struct stmt_group): Delete field GLOBAL.
23606 (gnat_init_stmt_group): Do not initialize it.
23607 (call_to_gnu): Use save_expr, not protect_multiple_eval.
23608 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
23609 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
23610 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
23611 (start_stmt_group): Likewise.
23612 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
23614 * utils2.c (ggc.h): Include.
23615 (build_call_raise): Call build_int_cst, not build_int_2.
23617 * utils.c (gnat_init_decl_processing): Fix arg to
23618 build_common_tree_nodes.
23619 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
23620 (gnat_define_builtin): Set built_in_decls.
23621 (init_gigi_decls): Call build_int_cst, not build_int_2.
23623 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
23624 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
23625 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
23626 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
23627 SET_TYPE_MODULE): Use them.
23628 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
23629 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
23630 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
23631 SET_TYPE_ADA_SIZE): Likewise.
23632 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
23633 (DECL_CONST_CORRESPONDING_VAR,
23634 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
23635 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
23636 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
23637 (TYPE_RM_SIZE_NUM): New macro.
23638 (TYPE_RM_SIZE): Modified to use above.
23640 * cuintp.c: (build_cst_from_int): New function.
23641 (UI_To_gnu): Use it.
23643 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
23644 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
23645 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
23646 MIN_EXPR for the size, copy it into new.
23648 2004-09-01 Robert Dewar <dewar@gnat.com>
23650 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
23651 packed indexed component where array is an IN OUT formal. This
23652 generated garbage code previously.
23654 * gnat_ugn.texi: Document -fverbose-asm
23656 * gnat-style.texi: Minor updates (note that boolean constants and
23657 variables are joined with AND/OR rather than short circuit forms).
23659 2004-09-01 Ed Schonberg <schonberg@gnat.com>
23661 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
23662 it is an upward conversion of an untagged type with no representation
23665 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
23667 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
23668 System.Partition_Interface.
23670 * checks.adb (Apply_Access_Checks): Do not generate checks when
23671 expander is not active (but check for unset reference to prefix of
23674 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
23675 pragma Debug as an if statement with a constant condition, for
23676 consistent treatment of entity references contained within the
23677 enclosed procedure call.
23679 2004-09-01 Vincent Celier <celier@gnat.com>
23681 * bindgen.adb: (Set_EA_Last): New procedure
23682 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
23684 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
23685 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
23686 linked without errors.
23687 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
23689 (Gen_Exception_Table_C): Correct same bugs
23691 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
23693 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
23694 on Windows, make sure that the drive letter is in upper case.
23696 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
23697 Windows, when the drive letter is added and Case_Sensitive is True, the
23698 drive letter is forced to upper case.
23700 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
23701 to Options_2 for the call to MLib.Utl.Gcc.
23703 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
23704 directory separator when defining BASE_DIR.
23706 2004-09-01 Pascal Obry <obry@gnat.com>
23708 * gprcmd.adb (Extend): Do not output trailing directory separator. This
23709 is not needed and it confuses Windows GNU/make which does not report
23710 directory terminated by a slash as a directory.
23711 (gprcmd): Idem for "pwd" internal command.
23713 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
23714 target names rewrite to fix regressions with recent version of
23715 GNU/make. Starting with GNU/make 3.80 the pipe character was not
23716 handled properly anymore.
23718 2004-09-01 Andreas Schwab <schwab@suse.de>
23720 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
23721 * raise.c [!IN_RTS]: Undef abort.
23723 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
23725 * utils2.c (build_allocator): Use ssize_int.
23727 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
23729 2004-08-27 Andreas Schwab <schwab@suse.de>
23731 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
23733 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
23734 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23736 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
23738 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
23740 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
23741 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23742 * utils.c (init_gigi_decls): Likewise.
23743 * utils2.c (build_call_raise, build_allocator): Likewise.
23745 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
23747 * utils.c (gnat_init_decl_processing): Adjust
23748 build_common_tree_nodes call.
23750 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
23752 * utils2.c (build_allocator): Use build_int_cst for negative
23755 2004-08-18 Richard Henderson <rth@redhat.com>
23757 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
23759 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
23761 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
23763 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
23764 (gnat_to_gnu): Likewise.
23766 2004-08-16 Pascal Obry <obry@gnat.com>
23768 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
23769 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
23770 option and not mdll anymore. Update comment.
23772 2004-08-16 Pascal Obry <obry@gnat.com>
23774 * bld.adb (Put_Include_Project): Properly handle directory separators
23777 2004-08-16 Ed Schonberg <schonberg@gnat.com>
23779 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
23780 decreasing the number of allocated junk nodes while searching for the
23781 appropriate subprogram.
23783 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
23785 * cuintp.c (UI_To_gnu): Use build_int_cst..
23786 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23787 * utils.c (init_gigi_decls): Likewise.
23788 * utils2.c (build_call_raise): Likewise.
23790 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
23792 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
23793 for a global aliased object with a variable size and an unconstrained
23794 nominal subtype, pretend there is no initializer if the one we have is
23795 incomplete, and avoid referencing an inexistant component in there. The
23796 part we have will be rebuilt anyway and the reference may confuse
23797 further operations.
23799 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
23801 * einfo.ads: Minor reformatting
23803 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
23804 restrictions in the ALI if we only want to warn about violations.
23806 2004-08-13 Vincent Celier <celier@gnat.com>
23808 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
23809 when creating a new Unit_Record in table Units.
23811 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
23812 that are violated, if any.
23814 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
23815 add directory separator if path already ends with a directory separator.
23817 2004-08-13 Ed Schonberg <schonberg@gnat.com>
23819 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
23820 unit, this is an attempt to inline a construct that is not available in
23821 the current restricted mode, so abort rather than trying to continue.
23823 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
23824 discriminants that rename those of the parent, recover names of
23825 original discriminants for the constraint on the full view of the
23827 (Complete_Private_Subtype): Do not create a subtype declaration if the
23828 subtype is an itype.
23830 * gnat_rm.texi: Added section on implementation of discriminated
23831 records with default values for discriminants.
23833 2004-08-13 Ed Schonberg <schonberg@gnat.com>
23836 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
23837 the second operand is overloaded.
23839 2004-08-10 Richard Henderson <rth@redhat.com>
23841 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
23842 add __builtin_alloca.
23844 2004-08-10 Richard Henderson <rth@redhat.com>
23846 * config-lang.in (boot_language): Yes.
23848 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
23850 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
23851 from complaining on potential uninitialized reference.
23852 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
23853 new specification and test explicitly for non-zero return value.
23855 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
23856 returning C.int, to avoid using a derived boolean type.
23858 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
23859 Duplicate_Subexpr_No_Checks in preference to direct use of
23860 Remove_Side_Effects and New_Copy_Tree.
23861 Clear Comes_From_Source on prefix of 'Size attribute reference.
23863 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
23864 g-socthi-vxworks.adb: Change calls to
23865 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
23866 and test explicitly for non-zero return value.
23868 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
23869 (Is_Socket_In_Set): Declare imported function as returning C.int, to
23870 avoid using a derived boolean type.
23872 2004-08-09 Albert Lee <lee@gnat.com>
23874 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
23876 2004-08-09 Pascal Obry <obry@gnat.com>
23878 * gnat_ugn.texi: Document new way to build DLLs on Windows using
23879 GCC's -shared option.
23881 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
23882 Options_2 parameter (options put after object files).
23884 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
23886 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
23887 ignore overflows on low and high bounds of an index to also account for
23888 differences in signedness between sizetype and gnu_index_subtype.
23889 These are as legitimate as the ones caused by a lower TYPE_PRECISION
23892 2004-08-09 Robert Dewar <dewar@gnat.com>
23894 * s-solita.ads, s-solita.adb: Minor reformatting
23896 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
23897 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
23898 obsolescent section
23899 Add note that No_Implicit_Conditionals does not suppress
23900 run time constraint checks.
23902 * vms_conv.ads: Minor reformatting
23904 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
23905 and necessary for following change).
23906 (Mark): Return new format Mark_Id containing sec stack address
23907 (Release): Use sec stack address from Mark_Id avoiding Self call
23909 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
23910 pointer (cleanup and necessary for following change).
23911 Define Mark_Id as record containing address of secondary stack, that way
23912 Release does not need to find the stack again, decreasing the number of
23913 calls to Self and improving efficiency.
23915 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
23917 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
23918 case variable into the individual case branches when possible.
23920 * sem_ch11.adb: Minor reformatting
23922 * prj.ads: Correct spelling of suffixs
23924 * prj-nmsc.adb: Minor reformatting
23925 Correct spelling suffixs throughout (also in identifiers)
23927 * freeze.adb: Minor spelling correction
23929 * exp_ch2.adb: Cleanups to handling of Current_Value
23930 (no functional effect).
23932 * bld.adb: Correct spelling of suffixs
23934 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
23936 2004-08-09 Ed Schonberg <schonberg@gnat.com>
23939 * sem_ch7.adb (Install_Private_Declarations): In the body of the
23940 package or of a child, private entities are both immediately_visible
23943 2004-08-09 Ed Schonberg <schonberg@gnat.com>
23945 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
23946 there are no range checks on the value of the literal.
23948 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
23949 wrapped is the triggering alternative of an asynchronous select, action
23950 statements mustbe inserted before the select itself.
23952 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
23953 case where the prefix is a protected function call.
23954 (Resolve_Attribute, case 'Access): The attribute reference on a
23955 subprogram is legal in a generic body if the subprogram is declared
23958 2004-08-09 Vincent Celier <celier@gnat.com>
23960 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
23961 languages, otherwise building the library may fail with unresolved
23963 (Compile_Sources): Do not build libraries if -c switch is used
23965 * gnatlink.adb (Process_Args): New switches -M and -Mmap
23966 (Write_Usage): If map file creation is supported, output new switches
23968 (Gnatlink): When -M is specified, add the necessary switch(es) to the
23969 gcc call, when supported.
23971 * Makefile.in: Added indepsw.o to the object list for gnatlink
23972 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
23974 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
23975 indepsw.adb, indepsw.ads: New files.
23977 2004-08-09 Bernard Banner <banner@gnat.com>
23979 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
23981 * Makefile.in: add section for vxworks x86
23983 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
23985 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
23986 per-object constrained components where the discriminant is of an
23988 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
23989 the parent initialization procedure for derived Unchecked_Unions.
23990 Instead, derived Unchecked_Unions build their own initialization
23992 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
23993 Check the body of the subprogram for details.
23994 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
23995 functions for derived Unchecked_Union types by introducing a condition.
23996 Allow the creation of TSS equality functions for Unchecked_Unions.
23997 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
23998 Add formal parameter Discr to function signature. Discr is used to
23999 control the generated case statement for Unchecked_Union types.
24000 (Make_Eq_If): Rename formal parameter Node to E in function signature.
24002 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
24004 Check the body of the subprogram for details.
24005 (Expand_Composite_Equality): Augment composite type equality to include
24006 correct handling of Unchecked_Union components.
24007 (Expand_N_In): Add condition to detect illegal membership tests when the
24008 subtype mark is a constrained Unchecked_Union and the expression lacks
24009 inferable discriminants, and build a Raise_Program_Error node.
24010 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
24011 to detect types that contain components of unconstrained Unchecked_Union
24012 subtype. Add condition to detect equality between types that have an
24013 unconstrained Unchecked_Union component, and build a Raise_Program_Error
24014 node. Add condition to detect equality between Unchecked_Union types
24015 that lack inferable discriminants, and build a Raise_Program_Error node.
24016 Otherwise build a TSS equality function call.
24017 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
24018 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
24019 with the operand lacking inferable discriminants, and build a Raise_
24020 Program_Error node.
24021 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
24022 composite equality.
24023 (Has_Inferable_Discriminants): Implement new predicate for objects and
24024 expressions of Unchecked_Union type. Check the body of subprogram for
24026 (Has_Unconstrained_UU_Components): Add function
24027 Component_Is_Unconstrained_UU. It is used to detect whether a single
24028 component is of an unconstrained Unchecked_Union subtype. Add function
24029 Variant_Is_Unconstrained_UU. It is used to detect whether a single
24030 component inside a variant is of an unconstrained Unchecked_Union type.
24032 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
24033 inferred discriminant values. Add condition to generate a case
24034 statement with an inferred discriminant as the switch.
24035 (Make_Component_List_Assign): Introduce a Boolean flag that determines
24036 the behaviour of the subprogram in the presence of an Unchecked_Union.
24037 Add condition to trigger the usage of the inferred discriminant value
24038 as the generated case statement switch.
24039 (Make_Field_Assign): Introduce a Boolean flag that determines the
24040 behaviour of the subprogram in the presence of an Unchecked_Union. Add
24041 condition to trigger the usage of the inferred discriminant value as
24042 the right-hand side of the generated assignment.
24044 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
24045 parameter generation when dealing with Unchecked_Unions.
24047 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
24048 checks for Unchecked_Unions.
24050 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
24052 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
24053 Raise_Program_Error nodes for the execution of Read and Write
24054 attributes of Unchecked_Union types and the execution of Input and
24055 Output attributes of Unchecked_Union types that lack default
24056 discriminant values.
24058 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
24059 Unchecked_Union. Add procedure Check_Component. It is used to inspect
24060 per-object constrained components of Unchecked_Unions for being
24061 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
24062 check individual components withing a variant.
24064 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
24065 comparison of Unchecked_Unions.
24066 (Resolve_Equality_OP): Remove guard that prevents equality between
24069 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
24070 of component subtypes for Unchecked_Union components.
24071 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
24072 since it is the actual subtype.
24074 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
24075 pass of Unchecked_Union subtypes as generic actuals to formal types
24076 that lack known_discriminant_parts or that are derived Unchecked_Union
24077 types, and do nothing. In any other case, produce an error message.
24079 * sem_ch3.adb (Analyze_Component_Declaration): Add function
24080 Contains_POC. It determines whether a constraint uses the discriminant
24081 of an enclosing record type.
24082 Add condition to detect per-object constrained component and set the
24084 (Derived_Type_Declaration): Remove guard that prevents derivation from
24085 Unchecked_Union types.
24086 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
24089 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
24090 references to Unchecked_Union discriminants.
24092 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
24093 formal generation when dealing with Unchecked_Unions.
24094 (Set_Actual_Subtypes): Add condition to prevent generation of actual
24095 subtypes for Unchecked_Unions.
24097 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
24098 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
24099 completions of discriminated partial views by Unchecked_Unions and
24100 produce an error message.
24102 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24104 * trans.c (struct stmt_group): New field, GLOBAL.
24105 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
24106 (struct elab_info): New struct.
24107 (elab_info_list, gnu_elab_proc_stack): New variables.
24108 (Compilation_Unit_to_gnu): New procedure.
24109 (gigi): Call it and also handle elaboration procs we've saved.
24110 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
24111 global field from parent.
24112 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
24113 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
24114 (start_stmt_group): Initialize global field from parent.
24115 (add_decl_expr): Set to global for current statement group.
24116 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
24119 * utils.c (global_bindings_p): True when no current_function_decl; no
24120 longer check current_binding_level.
24122 2004-08-09 Ben Brosgol <brosgol@gnat.com>
24124 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
24127 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
24129 2004-08-06 Andreas Schwab <schwab@suse.de>
24131 * utils.c (gnat_define_builtin): Remove second parameter of
24133 (begin_subprog_body): Likewise.
24135 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
24137 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
24138 optimization, not supported by the tree-ssa back-end.
24140 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
24142 * s-mastop-irix.adb: Update comments.
24144 * a-except.adb (Exception_Information): Raise Constraint_Error if
24145 exception Id is Null_Id.
24146 This is required behavior, which is more reliably and clearly checked
24147 at the top level interface level.
24149 2004-07-26 Javier Miranda <miranda@gnat.com>
24151 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
24152 call if a component has no default_expression and the box is used.
24154 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
24155 default_expression and you use box, it behaves as if you had declared a
24156 stand-alone object.
24157 (Resolve_Record_Aggregate): If a component has no default_expression and
24158 you use box, it behaves as if you had declared a stand-alone object.
24160 * sem_ch10.adb (Install_Siblings): Do not make visible the private
24161 entities of private-with siblings.
24163 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24165 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
24166 for a component of an itype, set the parent pointer for analysis,
24167 there is no list in which to insert it.
24169 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
24170 bona-fide renamings, not for inherited operations.
24172 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
24173 actual for a formal that is an access parameter, create local
24174 finalization list even if the expression is not an aggregate.
24176 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24179 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
24180 Diagnose properly illegal subprogram renamings that are library units.
24182 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24185 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
24186 conversion rewritten as an unchecked conversion, check that original
24187 expression is a variable.
24189 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
24190 unchecked_conversion, create new node rather than rewriting in place,
24191 to preserve original construct.
24193 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24195 * gigi.h (gnat_expand_body): Deleted.
24197 * Make-lang.in: (trans.o): Depends on function.h.
24199 * misc.c: (gnat_expand_body): Moved to here.
24201 * trans.c (gnat_expand_body_1): Deleted.
24202 (gnat_expand_body): Moved from here.
24203 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
24204 (add_stmt): Check for marked visited with global_bindings_p.
24205 (gnat_gimplify_expr, case COMPONENT_REF): New case.
24206 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
24208 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
24209 VIEW_CONVERT_EXPR if not operation type.
24211 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
24214 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
24215 changes: reformatting of negation operators, removing unneeded
24216 inequality comparison with zero, converting equality comparisons with
24217 zero to negations, changing int/0/1 to bool/false/true, replace calls
24218 to gigi_abort with abort, and various other similar changes.
24220 2004-07-26 Vincent Celier <celier@gnat.com>
24222 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
24225 * make.adb (Gnatmake): Fail when a library is not present and there is
24226 no object directory.
24228 * mlib-prj.adb (Check_Library): No need to check if the library needs
24229 to be rebuilt if there is no object directory, hence no object files
24230 to build the library.
24232 * opt.ads (Setup_Projects): New Boolean flag.
24234 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
24236 Create directory when Kind /= "" and in "gnat setup". Report error if
24237 directory cannot be created.
24238 (Ada_Check): Create library interface copy dir if it does not exist
24239 and we are in "gnat setup".
24240 (Find_Sources): No error if in "gnat setup" and no Ada sources were
24242 (Language_Independent_Check): Create object directory, exec directory
24243 and/or library directory if they do not exist and we are in
24246 * vms_conv.ads: (Command_Type): New command Setup.
24248 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
24250 * vms_data.ads: Add qualifiers/switches for new built-in command
24253 2004-07-25 Richard Henderson <rth@redhat.com>
24255 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
24256 DECL_IGNORED_P on RESULT_DECL.
24258 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
24260 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
24261 allocation and potentially overflowing update with
24262 Tailored_Exception_Information. Use the sec-stack free procedural
24263 interface to output Exception_Information instead.
24265 * a-except.adb (To_Stderr): New subprogram for character, and string
24266 version moved from a-exextr to be visible from other separate units.
24267 (Tailored_Exception_Information): Remove the procedural version,
24268 previously used by the default Last_Chance_Handler and not any more.
24269 Adjust various comments.
24271 * a-exexda.adb: Generalize the exception information procedural
24272 interface, to minimize the use of secondary stack and the need for
24273 local buffers when the info is to be output to stderr:
24274 (Address_Image): Removed.
24275 (Append_Info_Character): New subprogram, checking for overflows and
24276 outputing to stderr if buffer to fill is of length 0.
24277 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
24278 (Append_Info_Address, Append_Info_Exception_Name,
24279 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
24280 Append_Info_Basic_Exception_Traceback,
24281 Append_Info_Exception_Information): New subprograms.
24282 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
24283 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
24284 Exception_Info_Maxlength, Exception_Name_Length,
24285 Exception_Message_Length): New subprograms.
24286 (Exception_Information): Use Append_Info_Exception_Information.
24287 (Tailored_Exception_Information): Use
24288 Append_Info_Basic_Exception_Information.
24289 Export services for the default Last_Chance_Handler.
24291 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
24292 other separate units.
24294 2004-07-20 Vincent Celier <celier@gnat.com>
24296 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
24298 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24300 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
24301 emit itype references for the designated types of component types that
24302 are declared outside of the full record declaration, and that may
24303 denote a partial view of that record type.
24305 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24308 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
24309 which is the designated type in an access component declaration, to the
24310 list of incomplete dependents of the parent type, to avoid elaboration
24311 issues with out-of-scope subtypes.
24312 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
24313 full view of the parent.
24315 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24318 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
24319 entities that are hidden, such as references to generic actuals
24320 outside an instance.
24322 2004-07-20 Javier Miranda <miranda@gnat.com>
24324 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
24325 support to the new notation.
24326 (Analyze_Selected_Component): Add call to Try_Object_Operation.
24328 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
24330 * s-taprob.adb: Adding the elaboration code required for initializing
24331 the tasking soft links that are common to the full and the restricted
24334 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
24335 restricted run time has been moved to the package
24336 System.Soft_Links.Tasking.
24338 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
24339 restricted run time has been moved to the package
24340 System.Soft_Links.Tasking.
24342 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
24344 * s-solita.ads, s-solita.adb: New files.
24346 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24348 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
24349 Case_Statement_to_gnu): Split off from gnat_to_gnu.
24350 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
24351 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
24352 Exception_Handler_to_gnu_zcx): Likewise.
24354 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
24356 * gigi.h (builtin_function): Declare.
24358 2004-07-15 Robert Dewar <dewar@gnat.com>
24360 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
24363 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
24364 access values as an example of a warning.
24366 * gnat_rm.texi: Document new attribute Has_Access_Values
24368 * gnat-style.texi: Document that box comments belong on nested
24371 * sem_util.ads (Has_Access_Values): Improved documentation
24373 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
24375 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
24376 (Process_Interface_Name): Call to this new procedure
24377 (Set_Extended_Import_Export_External_Name): Call to this new procedure
24379 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
24381 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
24383 * einfo.ads: Minor comment typo fixed
24385 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
24387 * snames.adb: Add _atcb.
24389 * snames.ads: Add Name_uATCB.
24391 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
24392 (in the expanded code) when using the restricted run time.
24394 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
24395 a in parameter in order to allow ATCBs to be preallocated (in the
24398 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
24399 order to allow ATCBs to be preallocated. In case of error, the ATCB is
24400 deallocated in System.Tasking.Stages.
24402 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
24403 order to allow ATCBs to be preallocated.
24405 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
24406 here. It was previously done in Initialize_ATCB.
24408 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
24410 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
24411 Restricted run time.
24413 * exp_ch3.adb: When using the Restricted run time, pass the
24414 preallocated Ada_Task_Control_Block when creating a task.
24416 2004-07-15 Ed Schonberg <schonberg@gnat.com>
24418 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
24419 function call that is itself an actual in an enclosing call, diagnose
24420 problem here rather than assuming that resolution will catch it.
24422 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
24423 the local copy of a generic unit for a formal package, and the generic
24424 is a child unit, install private part of ancestors before compiling
24425 private part of spec.
24427 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
24428 use scope entities rather than tree structures, to handle properly
24429 parent units that are instances rewritten as bodies for inlining
24432 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
24433 Remove_Parents): Handle properly a parent unit that is an
24434 instantiation, when the unit has been rewritten as a body for inlining
24437 * par.adb (Goto_List): Global variable to collect goto statements in a
24438 given unit, for use in detecting natural loops.
24440 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
24441 use in detecting natural loops.
24443 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
24444 backwards goto's, and rewrite as a infinite loop, to improve locality
24447 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
24448 subcomponent that includes an indexed reference, to prevent the
24449 generation of copies that would miscompile the desired assignment
24451 (Build_Task_Image_Decls): Add a numeric suffix to
24452 generated name for string variable, to avoid spurious conflicts with
24453 the name of the type of a single protected object.
24455 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
24456 loop with an explicit exit statement, to avoid generating an
24457 out-of-range value with 'Succ leading to spurious constraint_errors
24458 when compiling with -gnatVo.
24460 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
24462 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
24463 might not be analyzed yet, even if its Etype is already set (case of an
24464 unchecked conversion built using Unchecked_Convert_To, for example).
24465 If the prefix has already been analyzed, this will be a nop anyway.
24467 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
24468 controller type, or an assignment of a record type with controlled
24469 components, copy only user data, and leave the finalization chain
24470 pointers untouched.
24472 2004-07-15 Vincent Celier <celier@gnat.com>
24474 * make.adb (Collect_Arguments): Improve error message when attempting
24475 to compile a source not part of any project, when -x is not used.
24477 * prj.ads: (Defined_Variable_Kind): New subtype
24479 * prj-attr.adb (Register_New_Package): Two new procedures to register
24480 a package with or without its attributes.
24481 (Register_New_Attribute): Mew procedure to register a new attribute in a
24483 New attribute oriented subprograms: Attribute_Node_Id_Of,
24484 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24485 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24487 New package oriented subprograms: Package_Node_Id_Of,
24488 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24490 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
24492 (Package_Node_Id): Now a private, self initialized type
24493 (Register_New_Package): New procedure to register a package with its
24495 New attribute oriented subprograms: Attribute_Node_Id_Of,
24496 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24497 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24499 New package oriented subprograms: Package_Node_Id_Of,
24500 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24502 * prj-dect.adb (Parse_Attribute_Declaration,
24503 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
24505 * prj-makr.adb (Make): Parse existing project file before creating
24506 other files. Fail if there was an error during parsing.
24508 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
24509 new spec of Prj.Attr.
24511 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
24512 to new spec of Prj.Attr.
24514 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24516 * utils2.c: Fix typo in comment.
24518 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24520 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
24521 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
24523 2004-07-14 Andreas Schwab <schwab@suse.de>
24525 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
24527 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24529 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
24531 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
24534 * misc.c (gnat_types_compatible_p): New function.
24535 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
24536 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
24538 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
24539 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
24540 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
24541 (mark_visited): Don't mark dummy type.
24542 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
24543 parameter, we must remove any LJM building from GNU_NAME.
24544 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
24545 (pos_to_constructor): Use int_const_binop.
24546 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
24549 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
24550 (gnat_pushlevel): Set TREE_USE on BLOCK node.
24551 (gnat_install_builtins): Add __builtin_memset.
24553 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
24555 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
24556 for a renaming, stabilize the initialization expression if we are at a
24557 local level. At the local level, uses of the renaming may be performed
24558 by a direct dereference of the initializing expression, and we don't
24559 want possible variables there to be evaluated for every use.
24561 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
24562 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
24563 them on the way. Account for the fact that we may introduce side
24564 effects in the process.
24566 2004-07-13 Richard Henderson <rth@redhat.com>
24568 * misc.c (default_pass_by_ref): Use pass_by_reference.
24570 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
24572 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
24573 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
24575 2004-07-08 Richard Henderson <rth@redhat.com>
24577 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
24580 2004-07-06 Vincent Celier <celier@gnat.com>
24582 * vms_conv.ads: Minor reformatting.
24583 Alphabetical order for enumerated values of type Command_Type, to have
24584 the command in alphabetical order for the usage.
24586 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
24587 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
24589 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
24591 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
24592 (Add_Archive_Path): Only add the global archive if there is one.
24593 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
24594 or not any object file to put in the global archive, and don't build
24595 a global archive if there is none.
24596 (X_Switches): New table
24597 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
24598 in the X_Switches table, if any.
24599 (Initialize): Make sure the X_Switches table is empty
24600 (Scan_Arg): Record -X switches in table X_Switches
24602 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
24604 * make.adb: Minor comment fix
24606 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
24607 invoked with directory information, add the directory in front of the
24610 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
24611 invoked with directory information, add the directory in front of the
24614 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
24615 when Keep_Temporary_Files is False.
24616 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
24617 directory information, add the directory in front of the path.
24618 When not on VMS, handle new switch -dn before the command to set
24619 Keep_Temporary_Files to True.
24620 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
24623 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
24624 invoked with directory information, add the directory in front of the
24627 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
24629 * snames.ads, snames.adb (Name_Stub): New name for the distributed
24632 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
24633 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
24635 * g-socket.adb (To_Timeval): Fix incorrect conversion of
24636 Selector_Duration to Timeval for the case of 0.0.
24638 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
24639 documentation from Evolve_And_Then.
24641 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
24643 * s-taprop-tru64.adb, s-taprop-os2.adb,
24644 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
24646 2004-07-06 Robert Dewar <dewar@gnat.com>
24648 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
24649 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
24650 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
24651 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
24652 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
24653 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
24654 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
24655 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
24656 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
24657 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
24658 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
24659 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
24660 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
24661 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
24662 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
24663 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
24664 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
24665 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
24666 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
24667 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
24668 vms_data.ads: Minor reformatting,
24669 Fix bad box comment format.
24671 * gnat_rm.texi: Fix minor grammatical error
24673 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
24675 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
24676 more cases of discriminated records to be recognized as not needing a
24678 (Has_Access_Values): New function.
24680 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
24682 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
24683 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
24684 with LRM terminology).
24685 Change terminology in comments primitive type => elementary type.
24687 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24690 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
24691 parameters do not impose any requirements on the presence of a body.
24693 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24696 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
24697 compilation unit and is in an open scope at the point of instantiation,
24698 assume that a body may be present later.
24700 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24702 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
24703 Improve error message when specified size is not supported.
24705 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
24706 is never a primitive operation.
24708 2004-07-05 Andreas Schwab <schwab@suse.de>
24710 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
24711 RECORD_OR_UNION_CHECK.
24712 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
24714 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
24716 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
24717 dependency on xgnatugn, instead build it via a submake.
24718 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
24720 2004-07-04 Richard Henderson <rth@redhat.com>
24722 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
24724 2004-07-01 Richard Henderson <rth@redhat.com>
24726 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
24727 * utils.c (max_size): Likewise.
24729 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24731 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
24732 and rest_of_type_compilation; add arg to create_*_decl.
24733 (annotate_decl_with_node): Deleted.
24734 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
24735 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
24736 (get_current_block_context, gnat_pushdecl): New declarations.
24737 (gnat_init_stmt_group): Likewise.
24738 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
24739 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
24740 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
24741 (gnat_init): Call gnat_init_stmt_group.
24742 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
24743 (gnu_pending_elaboration_list): Deleted.
24744 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
24745 (gigi): Rearrange initialization calls and move some to last above.
24746 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
24747 Delete calls to add_decl_expr; add arg to create_*_decl.
24748 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
24749 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
24750 begin_subprog_body and call it.
24751 Don't push and pop ggc context.
24752 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
24753 (add_stmt): Remove handling of DECL_EXPR from here.
24754 If not in function, mark visited.
24755 (add_decl_expr): Put global at top level.
24756 Check for cases of DECL_INITIAL we have to handle here.
24757 (process_type): Add extra arg to create_type_decl.
24758 (build_unit_elab): Rework to just gimplify.
24759 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
24760 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
24761 (get_pending_elaborations, pending_elaborations_p): Likewise.
24762 (push_pending_elaborations, pop_pending_elaborations): Likewise.
24763 (get_elaboration_location, insert_elaboration_list): Likewise.
24764 (gnat_binding_level): Renamed from ada_binding_level.
24765 (init_gnat_to_gnu): Don't clear pending_elaborations.
24766 (global_bindings_p): Treat as global if no current_binding_level.
24767 (set_current_block_context): New function.
24768 (gnat_pushdecl): Renamed from pushdecl; major rework.
24769 All callers changed.
24770 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
24771 (finish_record_type): Call call pushdecl for stub decl.
24772 (function_nesting_depth): Deleted.
24773 (begin_subprog_body): Delete obsolete code.
24774 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
24776 2004-06-28 Robert Dewar <dewar@gnat.com>
24778 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24779 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24780 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
24781 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
24782 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
24784 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
24785 deal with problem of inefficient slices on machines with strict
24786 alignment, when the slice is a component of a composite.
24788 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
24789 machines, we need the check there as well.
24791 2004-06-28 Ed Schonberg <schonberg@gnat.com>
24793 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
24794 determine safe copying direction for overlapping slice assignments
24795 when component is controlled.
24797 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
24798 formal derived type in the actual for a formal package are visible in
24799 the enclosing instance.
24801 2004-06-28 Ed Schonberg <schonberg@gnat.com>
24804 * sem_util.adb (Trace_Components): Diagnose properly an illegal
24805 circularity involving a private type whose completion includes a
24806 self-referential component.
24807 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
24808 renaming or an instantiation from an implicit derived operation.
24810 2004-06-28 Pascal Obry <obry@gnat.com>
24812 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
24814 (Library_File_Name_For): Idem.
24816 2004-06-28 Matthew Gingell <gingell@gnat.com>
24818 * g-traceb.ads: Add explanatory note on the format of addresses
24819 expected by addr2line.
24821 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
24823 * Makefile.in: Force debugging information on s-tasdeb.adb,
24824 a-except.adb and s-assert.adb needed by the debugger.
24826 2004-06-28 Vincent Celier <celier@gnat.com>
24828 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
24832 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
24834 * prj.adb: Minor reformatting
24835 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
24837 * prj.ads: Comment updates
24839 (Project_Data): Change Flag1 to Need_To_Build_Lib.
24840 Remove Flag2: not used.
24842 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
24845 * gnat_ugn.texi: Put a "null;" declaration in one project file example
24847 * gnat_rm.texi: Document Empty declarations "null;".
24849 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
24850 front of the linker options.
24851 (Link_Foreign): Put the global archives and the libraries in front of
24852 the linker options.
24854 2004-06-28 Javier Miranda <miranda@gnat.com>
24856 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
24857 (RTU_Loaded): Code cleanup
24858 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
24859 withed predefined units.
24861 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
24862 explicitly withed predefined units.
24863 Fix typo in comment
24865 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
24866 explicitly withed predefined units.
24868 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24870 * ada-tree.def (DECL_STMT): Deleted.
24871 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
24872 (DECL_STMT_VAR): Deleted.
24873 * decl.c: add_decl_stmt now add_decl_expr.
24874 * gigi.h: Likewise.
24875 * trans.c: Likewise.
24876 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
24877 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
24878 (add_stmt): Only handle padded type here.
24879 (add_stmt_with_node): Allow gnat_node to not be present.
24880 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
24881 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
24882 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
24883 make a SAVE_EXPR for the entire fat pointer.
24884 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
24885 (create_index_type): Make a DECL_EXPR.
24886 (end_subprog_body): Don't call allocate_struct_function here but
24889 2004-06-25 Pascal Obry <obry@gnat.com>
24891 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
24892 Relocatable from Build_Dynamic_Library call.
24894 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
24895 Relocatable are now synonym.
24897 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
24899 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
24900 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
24903 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
24904 Lib_Address and Relocatable.
24905 (Default_DLL_Address): Removed.
24907 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24908 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24909 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
24910 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
24911 (Default_DLL_Address): Removed.
24913 * mlib-tgt-mingw.adb: Ditto.
24914 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
24916 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
24917 the initial thread stack size.
24919 * a-strmap.ads: Move package L to private part as it is not used in
24920 the spec. Found while reading code.
24922 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
24924 * tracebak.c: Introduce support for a GCC infrastructure based
24925 implementation of __gnat_backtrace.
24927 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
24928 any more. Use accessors instead. This eases maintenance and relaxes
24929 some alignment constraints.
24930 (_GNAT_Exception structure): Remove the Ada specific fields
24931 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
24933 (is_handled_by, __gnat_eh_personality): Replace component references to
24934 exception structure by use of the new accessors.
24936 * init.c (__gnat_initialize): Adjust comments to match the just
24937 reverted meaning of the -static link-time option.
24939 * adaint.c (convert_addresses): Arrange not to define a stub for
24940 mips-irix any more, as we now want to rely on a real version from a
24941 recent libaddr2line.
24943 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
24944 the personality routine can use them and not have to rely on a C
24945 counterpart of the record anymore. This simplifies maintenance and
24946 relaxes the constraint of having Standard'Maximum_Alignment match
24948 Update comments, and add a section on the common header alignment issue.
24950 2004-06-25 Geert Bosch <bosch@gnat.com>
24952 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
24953 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
24955 2004-06-25 Robert Dewar <dewar@gnat.com>
24957 * gnat_rm.texi: Fix section on component clauses to indicate that the
24958 restriction on byte boundary placement still applies for bit packed
24960 Add comment on stack usage from Initialize_Scalars
24962 * gnat_ugn.texi: Add documentation for -gnatyLnnn
24964 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
24965 limiting nesting level.
24967 * usage.adb: Add line for -gnatyLnnn switch
24969 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
24970 sem_ch13.adb, exp_aggr.adb: Minor reformatting
24972 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
24973 type as well as on the subtype. This corrects a problem in freeze in
24974 setting alignments of atomic types.
24976 * sem_eval.ads: Minor comment typo fixed
24978 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
24979 level. Minor reformatting.
24981 * fname.adb (Is_Predefined_File_Name): Require a letter after the
24982 minus sign. This means that file names like a--b.adb will not be
24983 considered predefined.
24985 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
24986 record Test new flag and give diagnostic for bad component clause.
24987 (Freeze_Entity): Set alignment of array from component alignment in
24988 cases where this is safe to do.
24990 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
24993 * cstand.adb: (Create_Standard): Set alignment of String to 1
24995 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
24997 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
24998 code in the common constrained array cases.
25000 * a-storio.adb: Change implementation to avoid possible alignment
25001 problems on machines requiring strict alignment (data should be moved
25002 as type Buffer, not type Elmt).
25004 * checks.adb (Apply_Array_Size_Check): Improve these checks by
25005 killing the overflow checks which we really do not need (64-bits is
25008 2004-06-25 Vincent Celier <celier@gnat.com>
25010 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
25011 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
25012 inconditionally for the main project.
25013 (Recursive_Add_Archives.Add_Archive_Path): New procedure
25014 (Link_Executables.Check_Time_Stamps): New procedure
25015 (Link_Executables.Link_Foreign): New procedure
25016 Changes made to reduce nesting level of this package
25017 (Check): New procedure
25018 (Add_Switches): When not in quiet output, check that a switch is not
25019 the concatenation of several valid switches. If it is, issue a warning.
25020 (Build_Global_Archive): If the global archive is rebuilt, linking need
25022 (Compile_Sources): Rebuilding a library archive does not imply
25023 rebuilding the global archive.
25024 (Build_Global_Archive): New procedure
25025 (Build_Library): New name for Build_Archive, now only for library
25027 (Check_Archive_Builder): New procedure
25028 (Create_Global_Archive_Dependency_File): New procedure
25029 (Gprmake): Call Build_Global_Archive before linking
25030 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
25032 (Scan_Arg): Display the Copyright notice when -v is used
25034 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
25037 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
25039 Add new GNAT LIST qualifier /FILES=
25040 Added qualifier /DIRECTORY= to GNAT METRIC
25041 Added qualifier /FILES= to GNAT METRIC
25042 Added qualifier /FILES to GNAT PRETTY
25044 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
25045 to take into account both versions of the switch.
25047 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
25048 always be the last switch to the gcc driver. Disable switch storing so
25049 that switches automatically added by the gcc driver are not put in the
25052 * prj.adb (Project_Empty): Take into account changes in components of
25055 * prj.ads (Languages_Processed): New enumaration value All_Languages.
25057 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
25058 used. Split Boolean component Ada_Sources_Present in two Boolean
25059 components Ada_Sources_Present and Other_Sources_Present.
25062 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
25063 instead of Sources_Present.
25064 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25066 * prj-nmsc.adb: Minor reformatting
25067 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
25068 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
25069 Check_Ada_Naming_Scheme.
25070 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
25073 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
25075 Make sure that all cycles where there is at least one "limited with"
25077 (Parse_Single_Project): New Boolean parameter In_Limited
25079 * prj-proc.adb (Recursive_Check): When Process_Languages is
25080 All_Languages, call first Prj.Nmsc.Ada_Check, then
25081 Prj.Nmsc.Other_Languages_Check.
25083 * prj-proc.adb (Process): Use Ada_Sources_Present or
25084 Other_Sources_Present (instead of Sources_Present) depending on
25087 * lang-specs.h: Keep -g and -m switches in the same order, and as the
25090 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
25091 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
25093 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
25096 * lib.ads (Disable_Switch_Storing): New procedure.
25098 * make.adb: Modifications to reduce nesting level of this package.
25099 (Check_Standard_Library): New procedure
25100 (Gnatmake.Check_Mains): New procedure
25101 (Gnatmake.Create_Binder_Mapping_File): New procedure
25102 (Compile_Sources.Compile): Add switch -gnatez as the last option
25103 (Display): Never display -gnatez
25105 * Makefile.generic:
25106 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
25108 * gnatcmd.adb (Check_Project): New function
25109 (Process_Link): New procedure to reduce nesting depth
25110 (Check_Files): New procedure to reduce the nesting depth.
25111 For GNAT METRIC, include the inherited sources in extending projects.
25112 (GNATCmd): When GNAT LS is invoked with a project file and no files,
25113 add the list of files from the sources of the project file. If this list
25114 is too long, put it in a temp text files and use switch -files=
25115 (Delete_Temp_Config_Files): Delete the temp text file that contains
25116 a list of source for gnatpp or gnatmetric, if one has been created.
25117 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
25118 in the project file is too large, create a temporary text file that
25119 list them and pass it to the tool with "-files=<temp text file>".
25120 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
25122 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
25123 generated file is in not in Ada.
25125 * gnatls.adb: Remove all parameters And_Save that are no longer used.
25126 (Scan_Ls_Arg): Add processing for -files=
25127 (Usage): Add line for -files=
25129 * g-os_lib.adb (On_Windows): New global constant Boolean flag
25130 (Normalize_Pathname): When on Windows and the path starts with a
25131 directory separator, make sure that the resulting path will start with
25134 * clean.adb (Clean_Archive): New procedure
25135 (Clean_Project): When there is non-Ada code, delete the global archive,
25136 the archive dependency files, the object files and their dependency
25137 files, if they exist.
25138 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
25140 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
25142 * sinfo.ads: Fix typo in comment.
25144 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
25145 the TSS for remote access-to-subprogram types, since these TSS are
25146 always present once the type has been analyzed.
25147 (RAS_E_Dereference): Same.
25149 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
25150 reference raises Bad_Attribute, mark the reference as analyzed so the
25151 node (and any children resulting from rewrites that could have occurred
25152 during the analysis that ultimately failed) is not analyzed again.
25154 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
25156 * exp_dist.adb: Minor comment fix.
25158 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
25159 type is an anonymous access type, no unchecked deallocation of the
25160 allocated object can occur. If the object is controlled, attach it with
25161 a count of 1. This allows attachment to the Global_Final_List, if
25162 no other relevant list is available.
25163 (Get_Allocator_Final_List): For an anonymous access type that is
25164 the type of a discriminant or record component, the corresponding
25165 finalisation list is the one of the scope of the type.
25167 2004-06-25 Ed Schonberg <schonberg@gnat.com>
25169 * sem_ch3.adb (Replace_Type): When computing the signature of an
25170 inherited subprogram, use the first subtype if the derived type
25171 declaration has no constraint.
25173 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
25174 before applying previous optimization. Minor code cleanup.
25176 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
25177 placed at the beginning of an unpacked record without explicit
25178 alignment, a slice of it will be aligned and does not need a copy when
25181 2004-06-25 Ed Schonberg <schonberg@gnat.com>
25185 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
25186 reference is written with expressions mimicking parameters.
25188 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
25191 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
25192 STEP 2a. The constraints of a full type declaration of a derived record
25193 type are checked for conformance with those declared in the
25194 corresponding private extension declaration. The message
25195 "not conformant with previous declaration" is emitted if an error is
25198 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
25200 * g-traceb.ads: Document the need for -E binder switch in the spec.
25202 * g-trasym.ads: Document the need for -E binder switch in the spec.
25204 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
25206 * sem_prag.adb: Add handling of pragma Detect_Blocking.
25208 * snames.h, snames.ads, snames.adb: Add entry for pragma
25211 * s-rident.ads: Change reference to pragma Detect_Blocking.
25213 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
25216 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
25217 to indicate whether pragma Detect_Blocking is active.
25219 * par-prag.adb: Add entry for pragma Detect_Blocking.
25221 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
25222 of not handling WITH.
25223 Note that this replaces the previous update which was incorrect.
25225 2004-06-25 Javier Miranda <miranda@gnat.com>
25227 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
25228 use-clauses to have a clean environment.
25230 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
25231 the installation of the use-clauses to stablish a clean environment in
25232 case of compilation of a separate unit; otherwise the call to
25233 use_one_package is protected by the barrier Applicable_Use.
25235 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
25236 the installation of the use-clauses to stablish a clean environment in
25237 case of compilation of a separate unit.
25238 (End_Use_Clauses): Minor comment cleanup.
25240 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
25242 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
25244 2004-06-23 Richard Henderson <rth@redhat.com>
25246 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
25248 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25250 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
25251 now bool instead of int.
25252 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
25253 * trans.c (gnu_switch_label_stack): New function.
25254 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
25255 elaboration of renamed entity returns.
25256 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
25257 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
25258 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
25259 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
25260 DECL_SIZE_UNIT and simplify variable-sized case.
25261 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
25262 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
25263 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
25264 (build_unit_elab): Disable for now.
25265 * utils.c (mark_visited): New function.
25266 (pushdecl): Walk tree to call it for global decl.
25267 (update_pointer_to): Update all variants of pointer and ref types.
25268 Add arg to COMPONENT_REF.
25269 (convert): Likewise.
25270 Move check for converting between variants lower down.
25271 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
25272 (build_allocator): Don't force type of MODIFY_EXPR.
25273 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
25274 put_var_into_stack.
25276 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25278 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
25279 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
25280 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
25282 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
25283 all callers changed.
25284 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
25285 the way that EXIT_STMT finds the loop label.
25286 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
25287 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
25288 (add_stmt): Use annotate_with_locus insted of setting directly.
25289 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
25290 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
25291 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
25292 (build_vms_descriptor): Add extra args to ARRAY_REF.
25293 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
25294 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
25296 (build_binary_op): Don't make explicit CONVERT_EXPR.
25297 Add extra rgs to ARRAY_REF.
25299 2004-06-14 Pascal Obry <obry@gnat.com>
25301 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
25302 Windows. Fix minor typo.
25304 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
25305 which is now supported on Windows. With this implementation using the
25306 Library Project feature is no different on Windows than on UNIX.
25308 2004-06-14 Vincent Celier <celier@gnat.com>
25310 * makegpr.adb (Compile_Sources): Nothing to do when there are no
25313 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
25315 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
25316 found, show the project name and the path of the previously parsed
25319 2004-06-14 Ed Schonberg <schonberg@gnat.com>
25321 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
25322 array, avoid copying the actual before the call.
25324 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
25326 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
25327 Instead, allocate memory on worst-case alignment assumptions, and then
25328 return an aligned address within the allocated zone.
25330 2004-06-14 Robert Dewar <dewar@gnat.com>
25332 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
25333 elab entities in predefined units in No_Run_Time_Mode.
25334 (Gen_Adainit_C): Same fix
25335 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
25336 units in No_Run_Time_Mode
25337 (Gen_Elab_Calls_C): Same fix
25339 * symbols-vms-alpha.adb: Minor reformatting
25341 * g-debpoo.ads: Minor reformatting
25343 * lib.adb (In_Same_Extended_Unit): Version working on node id's
25345 * lib.ads (In_Same_Extended_Unit): Version working on node id's
25347 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
25350 * make.adb: Minor reformatting
25352 * par-ch12.adb: Minor reformatting
25354 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
25356 * prj-strt.adb: Minor reformatting
25358 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
25361 * sem_attr.adb: Minor reformatting
25363 * sem_ch7.adb: Minor reformatting
25365 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
25366 for type in the same unit as the object declaration.
25368 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
25369 static string expressions and not just string literals.
25371 (Set_Warning): Reset restriction warning flag for restriction pragma
25372 Implement pragma Profile_Warnings
25373 Implement pragma Profile (Restricted)
25374 Give obolescent messages for old restrictions and pragmas
25376 * snames.h, snames.ads, snames.adb: Add new entry for pragma
25379 * s-rident.ads: Add declarations for restrictions required by profile
25380 Restricted and profile Ravenscar.
25382 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
25384 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
25385 configuration pragmas.
25387 2004-06-11 Vincent Celier <celier@gnat.com>
25389 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
25390 gnatsym, when symbol policy is Restricted.
25392 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
25393 gnatsym, when symbol policy is Restricted.
25395 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
25396 read the symbol file.
25397 (Finalize): Fail in symbol policy Restricted if a symbol in the original
25398 symbol file is not in the object files. Do not create a new symbol file
25399 when symbol policy is Restricted.
25401 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
25404 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
25406 (Usage): Line for new switch -R
25408 * make.adb (Initialize): When the platform is not VMS, add the
25409 directory where gnatmake is invoked in the front of the path, if
25410 gnatmake is invoked with directory information. Change the Scan_Args
25411 while loop to a for loop.
25412 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
25413 if Depth is equal or greater than the proposed depth, there is nothing
25415 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
25418 * prj.ads: Add new symbol policy Restricted.
25420 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
25421 with the new parameters Check_All_Labels and Case_Location.
25423 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
25424 (Library_Symbol_File needs to be defined).
25426 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
25427 and Case_Location If Check_All_Labels is True, check that all values of
25428 the string type are used, and output warning(s) if they are not.
25430 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
25433 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
25435 * gnat_ugn.texi: Update documentation about the library directory in
25438 * makegpr.adb (Display_Command): In verbose mode, also display the
25439 value of the CPATH env var, when the compiler is gcc.
25440 (Initialize): Change the Scan_Args while loop to a for loop
25441 (Compile_Individual_Sources): Change directory to object directory
25442 before compilations.
25444 * symbols.ads: New symbol policy Restricted.
25446 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
25448 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
25449 is now taken care of internally in the Exception_Propagation package
25450 and does not require clients assistance any more.
25452 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
25453 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
25454 functions. Helpers to maintain a predicate required in the handling of
25455 occurrence transfer between tasks.
25456 This is now handled internally and does not require clients assistance
25457 for the setup/propagate separation anymore.
25458 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
25459 allocation strategy, handle the Setup_And_Not_Propagated predicate and
25462 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
25463 raise_after_setup, now that everything is handled internally within the
25464 setup/propagation engine.
25466 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
25468 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
25469 Add additional conditions for the case of an actual being a simple
25470 name or literal. Improve inlining by preventing the generation
25471 of temporaries with a short lifetime (one use).
25473 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
25476 * einfo.ads: Minor comment updates for Has_Completion and
25477 E_Constant list of flags.
25479 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
25480 and constant redeclarations now set the Has_Completion flag of their
25481 defining identifiers.
25483 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
25484 Inspect_Deferred_Constant_Completion.
25485 Used to detect private deferred constants that have not been completed
25486 either by a constant redeclaration or pragma Import. Emits error message
25487 "constant declaration requires initialization expression".
25489 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
25490 completes a deferred constant.
25492 2004-06-11 Geert Bosch <bosch@gnat.com>
25494 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
25496 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
25497 calculating exponent for scaling denormal numbers.
25498 (Leading_Part): Properly raise Constraint_Error for zero or negative
25500 (Remainder): Properly raise Constraint_Error for zero divisor.
25502 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
25504 * sem_util.adb: Minor reformatting.
25506 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
25507 dereference when accessing the entry parameter record.
25508 (Check_Array_Type): Always check for possible implicit dereference.
25509 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25510 Abort if a pointer is still present (denoting that an implicit
25511 dereference was left in the tree by the front-end).
25513 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
25514 dereference when accessing the entry parameter record.
25515 (Check_Array_Type): Always check for possible implicit dereference.
25516 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25517 Abort if a pointer is still present (denoting that an implicit
25518 dereference was left in the tree by the front-end).
25520 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
25522 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
25523 message, like the compiler itself does. Easier to parse the output.
25525 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
25527 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
25528 be base names, and not includes directories.
25530 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
25532 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
25533 so that dependencies are properly taken into account by make.
25535 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
25538 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
25539 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
25541 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
25543 * Makefile.in (install-gnatlib): install target-specific run-time files.
25545 * Make-lang.in: Remove obsolete targets.
25547 2004-06-11 Ed Schonberg <schonberg@gnat.com>
25549 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
25550 specification, to catch misuses of program unit names.
25552 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
25553 superfluous conversions in an instance.
25555 2004-06-11 Ed Schonberg <schonberg@gnat.com>
25558 * sem_ch12.adb (Save_References): If operator node has been folded to
25559 enumeration literal, associated_node must be discarded.
25561 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
25563 * s-stchop-vxworks.adb: Add required pragma Convention to
25564 Task_Descriptor because it is updated by a C function.
25566 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
25569 * Makefile.in: Remove target specific SO_OPT on IRIX
25571 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25573 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
25574 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
25575 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
25576 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
25577 (STMT_STMT, USE_STMT): New statement codes.
25578 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
25579 * ada-tree.h: Reflect above changes.
25580 (struct tree_loop_id): Deleted.
25581 (union lang_tree_node, struct lang_decl, struct lang_type):
25582 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
25583 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
25584 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
25585 (IS_ADA_STMT): New macro.
25586 * decl.c (annotate_decl_with_node): New function.
25587 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
25588 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
25589 Call add_stmt_with_node to do needed assignments.
25590 Add call to update setjmp buffer directly, not via EXPR_STMT.
25591 (maybe_variable): Argment GNAT_NODE deleted.
25592 * gigi.h (maybe_variable): Likewise.
25593 (make_transform, add_stmt_with_node, set_block_for_group): New.
25594 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
25595 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
25596 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
25597 (set_lineno, set_lineno_from_sloc): Likewise.
25598 (record_code_position, insert_code_for): Likewise.
25599 (gnat_poplevel): Now returns void.
25600 (end_subprog_body): Now takes argument.
25601 * misc.c (cgraph.h, tree-inline.h): New includes.
25602 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
25603 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
25604 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
25605 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
25606 (gnat_parse_file): Don't set immediate_size_expand.
25607 Call cgraph functions.
25608 (gnat_expand_expr): Remove most cases.
25609 (record_code_position, insert_code_for): Remove from here.
25610 * trans.c (toplev.h, tree-gimple.h): Now included.
25611 (discard_file_names): Deleted.
25612 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
25613 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
25614 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
25615 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
25616 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
25617 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
25618 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
25619 (set_block_for_group, add_stmt_list): Likewise.
25620 (start_stmt_group): Renamed from start_block_stmt.
25621 (end_stmt_group): Likewise, from end_block_stmt.
25622 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
25623 (gigi): Don't set discard_file_names or call set_lineno.
25624 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
25625 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
25626 Numerous changes throughout to reflect new names and complete
25627 function-at-a-time implementation.
25628 (gnat_expand_stmt): Delete or comment out all cases.
25629 (process_inlined_subprograms): Use add_stmt.
25630 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
25631 call set_lineno; also remove unneeded block handling.
25632 (process_type): Remove unneeded block handling.
25633 (build_unit_elab): Remove calls to deleted functions.
25634 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
25635 (tree-dump.h): Likewise.
25636 (struct ada_binding_level): Add field jmpbuf_decl.
25637 (gnat_define_builtin, gnat_install_builtins): New.
25638 (gnat_gimplify_function, gnat_finalize): Likewise.
25639 (gnat_poplevel): No longer return BLOCK, set it instead.
25640 Remove code dealing with nested functions.
25641 (gnat_init_decl_processing): Also set size_type_node.
25642 Call gnat_install_builtins.
25643 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
25644 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
25645 Remove special-case for "main".
25646 (end_subprog_body): Add arg and rework for tree-ssa.
25647 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
25648 Add case for BOOLEAN_TYPE.
25649 * utils2.c (rtl.h): Now include.
25650 (build_call_raise): Test Debug_Flag_NN directly.
25651 (build_call_alloc_dealloc): Don't use local stack allocation for now.
25652 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
25653 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
25655 2004-06-07 Robert Dewar <dewar@gnat.com>
25657 * a-direct.ads, einfo.ads: Minor comment updates
25659 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
25660 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
25661 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
25662 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
25663 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
25665 * s-interr-sigaction.adb: Remove unreferenced variable
25666 (Attached_Interrupts). Minor reformatting.
25667 Avoid use of variable I (replace by J).
25669 * par-ch10.adb: Fix text of one error message
25671 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
25672 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
25673 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
25674 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
25675 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
25676 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
25677 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
25678 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
25679 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
25680 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
25681 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
25684 2004-06-07 Doug Rupp <rupp@gnat.com>
25686 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
25688 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
25690 * mlib-tgt-vms-ia64.adb: New file.
25692 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
25693 Add mlib-tgt-vms-ia64.adb
25694 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
25695 Move to alpha specific ifeq section.
25696 Add VMS specific versions of symbols.adb
25697 Renaming of 5q vms files.
25699 * 5qsystem.ads renamed to system-vms_64.ads.
25701 2004-06-07 Vincent Celier <celier@gnat.com>
25703 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
25704 explain that when a time of day corresponding to the non existing hour
25705 on the day switching to DST is specified, Split may return a different
25708 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
25711 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
25712 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
25714 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
25716 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
25717 the linking options.
25718 (Build_Library.Check_Libs): On VMS, if there is a dependency on
25719 g-trasym.ads, set Gtrasymobj_Needed to True.
25721 * prj-attr.adb: Add new package Metrics for gnatmetric
25723 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
25724 canonical case to take into account files with upper case characters on
25726 (Ada_Check): Load the reference symbol file name in the name buffer to
25727 check it, not the symbol file name.
25729 * snames.ads, snames.adb: Add standard name Metrics (name of project
25730 file package for gnatmetric).
25732 * vms_conv.ads: Add Metric to Comment_Type
25734 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
25736 * vms_data.ads: Add qualifiers for GNAT METRIC
25738 * makegpr.adb (Link_Executables): Take into account the switches
25739 specified in package Linker of the main project.
25741 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
25743 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
25744 the index of the last element is Units.Last, not Units.Table'Last
25745 (which is usually not a valid index within the actually allocated
25746 storage for the table).
25748 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
25749 determines whether to generate a call to a checked storage pool
25750 Dereference action.
25751 Generate such a call only for a dereference that either comes from
25752 source, or is the result of rewriting a dereference that comes from
25755 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
25757 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
25759 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
25761 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
25762 file level, elaborate the stride for inner dimensions in alignment
25765 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
25768 2004-06-07 Javier Miranda <miranda@gnat.com>
25770 * exp_ch6.adb: Correct wrong modification in previous patch
25772 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
25774 * g-trasym.ads: Corrected comment to properly reflect level of support
25777 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
25779 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
25780 includes case of a variable referenced on the left hand side of an
25781 assignment, therefore remove redundant code. Variables and prefixes of
25782 indexed or selected components are now marked as referenced on left
25783 hand side. Warnings are now properly emitted when variables or prefixes
25784 are assigned but not read.
25786 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
25787 left hand side referenced variables. Private access types do not
25788 produce the warning "variable ... is assigned but never read".
25789 Add also additional checks to left hand side referenced variables.
25790 Aliased, renamed objects and access types do not produce the warning
25791 "variable ... is assigned but never read" since other entities may read
25792 the memory location.
25794 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
25796 * Makefile.in: In the powerpc/vxworks-specific section, restore
25797 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
25800 2004-06-07 Ed Schonberg <schonberg@gnat.com>
25802 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
25803 predefined operators.
25804 Removes spurious type errors from g-trasym-vms.adb.
25806 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
25807 distinct from the operator appearing in the source, call appropriate
25808 routine to insert conversions when needed, and complete resolution of
25810 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
25811 interpretations for rewritten right operand.
25812 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
25813 the other operand is overloaded and the context is a type conversion.
25815 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25817 * ada-tree.def (BLOCK_STMT): Now has two operands.
25820 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
25822 * gigi.h: (gnat_poplevel): Now returns a tree.
25824 * trans.c (end_block_stmt): Add arg; all callers changed.
25825 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
25826 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
25827 (add_stmt): Set TREE_TYPE.
25828 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
25829 (gnat_expand_stmt, case BREAK_STMT): New case.
25831 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
25833 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
25835 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
25836 procedure Set_Stack_Size that is not needed.
25838 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
25840 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
25841 used for gnatpp input file and for the files upon which it depends
25843 2004-06-07 Ben Brosgol <brosgol@gnat.com>
25845 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25847 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
25849 * gnatvsn.ads: Bump version numbers appropriately.
25850 Add new build type.
25852 2004-06-07 Pascal Obry <obry@gnat.com>
25854 * gnat_ugn.texi: Improve comments about imported names and link names
25855 on Windows. Add a note about the requirement to use -k gnatdll's option
25856 when working with a DLL which has stripped stdcall symbols (no @nn
25859 2004-05-27 Vincent Celier <celier@gnat.com>
25861 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
25862 COMMENTS_LAYOUT=UNTOUCHED
25864 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
25865 symbols-vms-alpha.adb
25867 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
25869 * sem.ads: Clarify documentation on checks suppression.
25871 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
25873 2004-05-27 Ed Schonberg <schonberg@gnat.com>
25875 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
25876 the case of multiple derivations.
25877 (Is_Object_Reference): For a selected component, verify that the prefix
25878 is itself an object and not a value.
25880 * sem_ch12.adb (Same_Instantiated_Constant): New name for
25881 Same_Instantiated_Entity.
25882 (Same_Instantiated_Variable): Subsidiary to
25883 Check_Formal_Package_Instance, to recognize actuals for in-out generic
25884 formals that are obtained from a previous formal package.
25885 (Instantiate_Subprogram_Body): Emit proper error when
25886 generating code and the proper body of a stub is missing.
25888 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
25889 has a universal interpretation, do the disambiguation here.
25891 * exp_ch4.adb (Expand_N_Type_Conversion,
25892 Expand_N_Unchecked_Type_Conversion): Special handling when target type
25893 is Address, to avoid typing anomalies when Address is a visible integer
25896 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
25897 to determine whether a subprogram should not be marked Pure, even when
25898 declared in a pure package.
25900 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
25902 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
25904 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
25905 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
25906 Update the documentation about the Ravenscar profile, following the
25907 definition found in AI-249.
25909 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
25910 setting the Profile (Ravenscar). This must be done in addition to
25911 setting the required restrictions.
25913 * rtsfind.ads: Add the set of operations defined in package
25916 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
25919 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
25921 lang-specs.h: Always require -c or -S and always redirect to /dev/null
25922 if -gnatc or -gnats is passed.
25924 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
25926 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
25927 a significant reference. Warnings are now properly emitted when a
25928 discriminated type is not referenced.
25930 * lib-xref.adb (Generate_Reference): A deferred constant completion,
25931 record representation clause or record type discriminant does not
25932 produce a reference to its corresponding entity. Warnings are now
25933 properly emitted when deferred constants and record types are not
25936 2004-05-27 Geert Bosch <bosch@gnat.com>
25938 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
25939 Fixes ACATS Annex G tests.
25941 2004-05-27 Robert Dewar <dewar@gnat.com>
25943 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
25946 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
25948 * s-interr.adb (Server_Task): Take into account case of early return
25949 from sigwait under e.g. linux.
25951 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
25953 * gnat_ugn.texi: Add description for the new gnatpp options:
25954 -rnb - replace the original source without creating its backup copy
25955 -c0 - do not format comments
25957 2004-05-24 Geert Bosch <bosch@gnat.com>
25959 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
25960 with 192 bits of precision, sufficient to reduce a double-extended
25961 arguments X with a maximum relative error of T'Machine_Epsilon, for X
25962 in -2.0**32 .. 2.0**32.
25963 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
25964 reduction by the processor, which only uses a 68-bit approximation of
25966 (Tan): Always reduce arguments and compute function either using
25967 the processor's fptan instruction, or by dividing sin and cos as needed.
25969 2004-05-24 Doug Rupp <rupp@gnat.com>
25971 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
25972 gcc error on 32/64 bit VMS.
25974 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
25976 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
25977 since this is what we get for stack overflows although not documented
25979 Document the issues which may require adjustments to our signal
25982 2004-05-24 Ed Schonberg <schonberg@gnat.com>
25984 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
25985 enclosing dynamic scope if the instantiation is within a generic unit.
25987 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
25989 * exp_dbug.ads: Fix typo.
25991 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
25992 Rename it to its proper name: system-linux-ia64.ads
25993 (stamp-gnatlib1): Remove extra target specific run time files when
25994 setting up the rts directory.
25996 2004-05-24 Javier Miranda <miranda@gnat.com>
25998 * einfo.ads, einfo.adb (Limited_Views): Removed.
25999 (Limited_View): New attribute that replaces the previous one. It is
26000 now a bona fide package with the limited-view list through the
26001 first_entity and first_private attributes.
26003 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
26004 limited-private-with clause.
26005 (Install_Limited_Withed_Unit): Install the private declarations of a
26006 limited-private-withed package. Update the installation of the shadow
26007 entities according to the new structure (see Build_Limited_Views)
26008 (Build_Limited_Views): Replace the previous implementation of the
26009 limited view by a package entity that references the first shadow
26010 entity plus the first shadow private entity (required for limited-
26011 private-with clause)
26012 (New_Internal_Shadow_Entity): Code cleanup.
26013 (Remove_Limited_With_Clause): Update the implementation to undo the
26014 new work carried out by Build_Limited_Views.
26015 (Build_Chain): Complete documentation.
26016 Replace Ada0Y by Ada 0Y in comments
26019 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
26020 types the level of accessibility depends on the enclosing type
26023 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
26024 entities. Complete documentation of previous change.
26026 2004-05-24 Robert Dewar <dewar@gnat.com>
26028 * namet.adb: Minor reformatting
26029 Avoid use of name I (replace by J)
26030 Minor code restructuring
26032 * sem_ch6.adb: Minor reformatting
26034 * lib-writ.adb: Do not set restriction as active if this is a
26035 Restriction_Warning case.
26037 * sem_prag.adb: Reset restriction warning flag if real pragma
26038 restriction encountered.
26040 * s-htable.adb: Minor reformatting
26041 Change rotate count to 3 in Hash (improves hash for small strings)
26043 * 5qsystem.ads: Add comments for type Address (no literals allowed).
26045 * gnat_ugn.texi: Add new section of documentation "Code Generation
26046 Control", which describes the use of -m switches.
26048 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
26050 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
26051 through the DECL_INITIAL for renamed variables.
26053 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
26055 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
26057 2004-05-19 Joel Brobecker <brobecker@gnat.com>
26059 * exp_dbug.ads: Correct comments concerning handling of overloading,
26060 since we no longer use $ anymore.
26062 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
26064 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
26065 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
26066 with illegal subunits.
26068 2004-05-19 Ed Schonberg <schonberg@gnat.com>
26070 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
26071 body with front-end inlining enabled, check whether an inline pragma
26072 appears immediately after the body and applies to it.
26074 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
26075 enabled and the pragma appears after the body of the subprogram.
26077 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26079 Part of function-at-a-time conversion
26081 * misc.c (adjust_decl_rtl): Deleted.
26082 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
26085 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
26086 (add_decl_stmt, add_stmt, block_has_vars): New functions.
26087 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
26089 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
26090 when making a decl.
26091 (gnat_to_gnu_entity): Likewise.
26092 Use add_stmt to update setjmp buffer.
26093 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
26095 No longer call adjust_decl_rtl.
26096 (DECL_INIT_BY_ASSIGN_P): New macro.
26097 (DECL_STMT_VAR): Likewise.
26099 * trans.c (gigi): Call start_block_stmt to make the outermost
26101 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
26102 Call start_block_stmt and end_block_stmt temporarily.
26103 Use gnat_expand_stmt instead of expand_expr_stmt.
26104 (add_decl_stmt): New function.
26105 (tree_transform): Call it.
26106 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
26107 (end_block_stmt): Set type and NULL_STMT.
26108 (gnat_expand_stmt): Make recursize call instead of calling
26110 (gnat_expand_stmt, case DECL_STMT): New case.
26111 (set_lineno_from_sloc): Do nothing if global.
26112 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
26113 (start_block_stmt, add_stmt, end_block_stmt): New functions.
26114 (build_block_stmt): Call them.
26115 (gnat_to_code): Don't expand NULL_STMT.
26116 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
26118 (tree_transform): Likewise.
26119 (tree_transform, case N_Null_Statement): Return NULL_STMT.
26120 (gnat_expand_stmt, case NULL_STMT): New case.
26121 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
26124 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
26127 * utils.c (create_var_decl): Do not call expand_decl or
26129 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
26130 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
26132 (struct e_stack): Add chain_next to GTY.
26133 (struct binding_level): Deleted.
26134 (struct ada_binding_level): New struct.
26135 (free_block_chain): New.
26136 (global_binding_level, clear_binding_level): Deleted.
26137 (global_bindings_p): Rework to see if no chain.
26138 (kept_level_p, set_block): Deleted.
26139 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
26140 new data structure and work directly on BLOCK node.
26141 (gnat_poplevel): Similarly.
26142 (get_decls): Look at BLOCK_VARS.
26143 (insert_block): Work directly on BLOCK node.
26144 (block_has_var): New function.
26145 (pushdecl): Rework for new binding structures.
26146 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
26148 (build_subprog_body): Likewise.
26149 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
26151 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
26153 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
26154 (DECL_STMT_VAR): Likewise.
26156 2004-05-17 Robert Dewar <dewar@gnat.com>
26158 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
26161 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
26162 of restriction synonyums by using
26163 Restrict.Process_Restriction_Synonyms.
26165 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
26167 * s-restri.ads (Tasking_Allowed): Correct missing comment
26169 * s-rident.ads: Add entries for restriction synonyms
26171 * ali.adb: Fix some problems with badly formatted ALI files that can
26172 result in infinite loops.
26174 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
26175 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
26176 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
26177 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
26178 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
26179 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
26180 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
26181 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
26182 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
26183 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
26184 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
26185 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
26186 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
26187 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
26188 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
26189 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
26190 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
26191 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
26192 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
26193 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
26194 to Task_Id (minor cleanup).
26196 2004-05-17 Vincent Celier <celier@gnat.com>
26198 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
26199 directory separator.
26201 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
26202 project being extended, if Languages is not declared in extending
26205 2004-05-17 Javier Miranda <miranda@gnat.com>
26207 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
26208 limited view of a visible sibling.
26210 2004-05-14 Robert Dewar <dewar@gnat.com>
26212 * gnat_ugn.texi: Minor change to -gnatS documentation
26214 * sprint.adb: Remove some instances of Assert (False) and for this
26215 purpose replace them by output of a ??? string.
26217 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
26220 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
26221 flag processing. This was suppressing required dependencies in
26222 No_Run_Time mode and is not needed since the binder does not generate
26223 references for things in libgnat anyway.
26225 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
26228 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
26230 * gnat_ugn.texi: Document AIX-specific issue with initialization of
26233 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
26234 action for the case of an actual parameter in an init proc call.
26236 2004-05-14 Ed Schonberg <schonberg@gnat.com>
26238 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
26239 subtype, check visible entities in base type.
26241 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
26242 actions if the object is a renaming.
26244 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
26245 Check_Formal_Package_Instance, to determine more precisely when the
26246 formal and the actual denote the same entity.
26248 2004-05-14 Javier Miranda <miranda@gnat.com>
26250 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
26252 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
26253 corresponding to a private_with must be removed from visibility; it
26254 will be made visible later, just before we analyze the private part of
26256 (Check_Private_Child_Unit): Allow private_with clauses in public
26258 (Install_Siblings): Make visible the private entities of private-withed
26260 (Install_Withed_Unit): Do not install the private withed unit if we
26261 are compiling a package declaration and the Private_With_OK flag was
26262 not set by the caller. These declarations will be installed later,
26263 just before we analyze the private part of the package.
26265 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
26266 during the evaluation of the expression that initializes the object,
26267 decorate it with the expected type to avoid cascade errors.
26270 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
26271 subprogram we have to install the private_with clauses after its
26272 specification has been analyzed (as documented in AI-262.TXT).
26274 * sem_ch8.adb (Has_Private_With): New function. Determines if the
26275 current compilation unit has a private with on a given entity.
26276 (Find_Direct_Name): Detect the Beaujolais problem described in
26279 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
26280 provides the functionality of the function Is_Ancestor that was
26281 previously available in sem_ch10. It has been renamed to avoid
26284 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
26286 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26288 * utils.c (build_vms_descriptor): Use SImode pointers.
26290 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
26292 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
26294 2004-05-14 GNAT Script <nobody@gnat.com>
26296 * Make-lang.in: Makefile automatically updated
26298 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
26300 Renaming of target specific files for clarity
26302 * Makefile.in: Rename GNAT target specific files.
26304 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
26305 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
26306 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
26307 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
26308 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
26309 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
26310 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
26311 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
26312 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
26313 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
26314 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
26315 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
26316 51osinte.adb, 51osinte.ads, 51system.ads,
26317 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26318 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
26319 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
26320 56tpopsp.adb, 57system.ads, 58system.ads,
26321 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
26322 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
26323 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
26324 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
26325 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
26326 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
26327 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
26328 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
26329 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
26330 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
26331 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
26332 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
26333 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
26334 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
26335 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
26336 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
26337 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
26338 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
26339 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
26340 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
26341 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
26342 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
26343 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
26344 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
26345 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
26346 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
26347 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
26348 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
26349 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
26350 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
26351 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
26352 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
26353 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
26354 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
26355 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
26356 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
26357 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
26358 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
26359 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
26360 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
26362 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
26363 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
26364 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
26365 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
26366 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
26367 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
26368 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
26369 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
26370 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
26371 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
26372 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
26373 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
26374 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
26375 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
26376 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
26377 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
26378 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
26379 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
26380 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
26381 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
26382 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
26383 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
26384 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
26385 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
26386 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
26387 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
26388 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
26389 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
26390 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
26391 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
26392 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
26393 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
26394 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
26395 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
26396 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
26397 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
26398 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
26399 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
26400 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
26401 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
26402 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
26403 s-osinte-vms.ads, s-osinte-vxworks.adb,
26404 s-osinte-vxworks.ads, s-osprim-mingw.adb,
26405 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
26406 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26407 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
26408 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
26409 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
26410 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26411 s-stchop-vxworks.adb, s-taprop-dummy.adb,
26412 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
26413 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
26414 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
26415 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
26416 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
26417 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
26418 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
26419 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
26420 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
26421 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
26422 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
26423 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
26424 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
26425 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
26426 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
26427 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
26428 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
26429 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
26430 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
26431 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
26432 system-irix-o32.ads, system-linux-x86_64.ads,
26433 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
26434 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
26435 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
26436 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
26437 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
26438 system-vxworks-mips.ads, system-vxworks-ppc.ads,
26439 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
26442 2004-05-13 Zack Weinberg <zack@codesourcery.com>
26444 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
26446 2004-05-13 Diego Novillo <dnovillo@redhat.com>
26448 Merge from tree-ssa-20020619-branch.
26450 * config-lang.in (boot_language, build_by_default): Set
26452 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
26453 (max_size): Add static chain op for call_expr.
26455 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
26458 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
26460 2004-05-11 Roger Sayle <roger@eyesopen.com>
26462 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
26465 2004-05-10 Doug Rupp <rupp@gnat.com>
26467 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
26470 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
26472 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
26474 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
26475 Fixes undefined symbols in IA64 gnatlib.
26477 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
26479 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
26480 Short_Address). This will be moved to system.auxdec.
26482 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
26484 * sem_util.adb: Replace test for presence of a node that is always
26485 present with a call to Discard_Node.
26487 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
26488 Analyze on the library unit node after generation of distribution stub
26489 constructs. The call was a no-op because Unit_Node has already been
26490 Analyzed, and the tree fragments for the distribution stubs are
26491 analyzed as they are inserted in Exp_Dist.
26492 Update comment regarding to distribution stubs to reflect that we
26493 do not generate stub in separate files anymore.
26495 * einfo.ads: Clarify the fact that a tagged private type has the
26496 E_Record_Type_With_Private Ekind.
26498 * erroutc.adb: Minor reformatting
26500 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
26501 values if line length is increased using -gnatyM (noticed during code
26504 * eval_fat.adb: Minor reformatting
26505 Put spaces around exponentiation operator
26507 2004-05-10 Ed Schonberg <schonberg@gnat.com>
26510 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
26511 has been rewritten as an explicit dereference, retrieve type of
26512 original node to check for possibly unconstrained record type.
26514 2004-05-10 Ed Schonberg <schonberg@gnat.com>
26516 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
26517 overriding, use the operation of the parent unconditionally.
26519 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
26520 operation when either operand is a literal, to avoid further
26523 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
26524 overridden by a previous explicit declaration, mark the previous entity
26527 * sem_disp.adb (Check_Dispatching_Operation): New predicate
26528 Is_Visibly_Controlled, to determine whether a declaration of a
26529 primitive control operation for a derived type overrides an inherited
26530 one. Add warning if the explicit declaration does not override.
26532 2004-05-10 Vincent Celier <celier@gnat.com>
26534 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
26535 some cases when the sources are no longer present.
26537 * make.adb (Collect_Arguments): Fail if an external source, not part
26538 of any project need to be compiled, when switch -x has not been
26541 * makeusg.adb: Document new switch -x
26543 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
26544 defaulted to False.
26546 * switch-m.adb (Scan_Make_Switches): New switch -x
26548 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
26549 gnatmake switch -x.
26551 * gnat_ugn.texi: Document new gnatmake switch -x
26553 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
26555 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
26557 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
26558 (process_attributes): Likewise.
26560 2004-05-10 Joel Brobecker <brobecker@gnat.com>
26562 * s-inmaop.ads: Fix spelling mistake in one of the comments.
26564 2004-05-10 Robert Dewar <dewar@gnat.com>
26566 * gnat_ugn.texi: Document that for config pragma files, the maximum
26567 line length is always 32767.
26569 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
26570 literals is now allowed.
26572 * gnat-style.texi: Remove statement about splitting long lines before
26573 an operator rather than after, since we do not follow this rule at all.
26574 Clarify rule (really lack of rule) for spaces around exponentiation
26576 * sem_elim.adb: Allow concatenation of string literals as well as a
26577 single string literal for pragma arguments.
26579 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
26581 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
26582 written for append case.
26584 * frontend.adb: Changes to avoid checking max line length in config
26587 * g-os_lib.ads: Minor reformatting
26589 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
26590 wrong in any case. Instead use standard value. Noticed during code
26593 * opt.ads (Max_Line_Length): New field, used to implement removal of
26594 limitation on length of lines when scanning config pragma files.
26596 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
26597 makeutl.ads, makeutl.adb: Minor reformatting
26599 * scn.adb: Do not check line length while scanning config pragma files
26600 Do not check line length while scanning out license information
26602 * scng.adb: Changes to avoid line length checks while parsing config
26605 2004-05-10 GNAT Script <nobody@gnat.com>
26607 * Make-lang.in: Makefile automatically updated
26609 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
26611 * osint.adb (Find_Program_Name): Fix handling of VMS version
26614 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
26616 * g-os_lib.ads (Invalid_Time): New constant
26618 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
26619 return OS_Time instead of time_t to match what is imported by Ada.
26620 Now return -1 if the file doesn't exist, instead of a random value
26622 2004-05-05 Robert Dewar <dewar@gnat.com>
26624 * usage.adb: Add line for -gnatR?s switch
26626 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
26628 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
26629 and for Match (Data_First, Data_last)
26631 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
26632 written when we are dealing with multi-unit files.
26634 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
26636 * Makefile.in: Remove unused targets and variables.
26638 2004-05-05 Vincent Celier <celier@gnat.com>
26640 * switch-m.adb: New gnatmake switch -eI
26642 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
26643 of new gnatmake switch -eInnn.
26645 * makegpr.adb: Take into account new parameters Index and Src_Index in
26648 * clean.adb: Implement support for multi-unit sources, including new
26651 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
26654 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
26655 (Extract_From_Q): New out parameter Index
26656 (Mark, Is_Marked): Subprograms moved to Makeutl
26657 (Switches_Of): New parameter Source_Index
26658 (Add_Switch): New parameter Index
26659 (Check): New parameter Source_Index
26660 (Collect_Arguments): New parameter Source_Index
26661 (Collect_Arguments_And_Compile): New parameter Source_Index
26662 (Compile): New parameter Source_Index
26663 Put subprograms in alphabetical order
26664 Add support for multi-source sources, including in project files.
26666 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
26667 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
26670 * makeusg.adb: New gnatmake switch -eInnn
26672 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
26675 * opt.ads (Main_Index): New variable, defaulted to 0.
26677 * osint.ads, osinte.adb (Add_File): New parameter Index
26678 (Current_Source_Index): New function
26680 * prj.adb: Take into account new components Index and Src_Index
26682 * prj.ads (String_Element): New component Index
26683 (Variable_Value): New component Index
26684 (Array_Element): New component Src_Index
26686 * prj-attr.adb: Indicate that optional index may be specified for
26687 attributes Main, Executable, Spec, Body and some of Switches.
26689 * prj-attr.ads (Attribute_Kind): New values for optional indexes
26690 (Attribute_Record): New component Optional_Index
26692 * prj-com.ads (File_Name_Data): New component Index
26694 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
26696 * prj-env.adb (Put): Output optional index
26698 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
26699 attributes Spec and Body.
26701 * prj-nmsc.adb: Process optional indexes
26703 * prj-pp.adb: Ouput "at" for optional indexes
26705 * prj-proc.adb: Take into account optional indexes
26707 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
26708 Optional_Index. For string literal,
26709 process optional index when Optional_Index is True.
26710 (Parse_Expresion): New Boolean parameter Optional_Index
26712 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
26713 (Set_Source_Index_Of): New procedure
26715 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
26718 * prj-util.ads (Executable_Of): New parameter Index
26719 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
26720 New parameter Src_Index, defaulted to 0.
26722 2004-05-05 Ed Schonberg <schonberg@gnat.com>
26725 * sem_ch3.adb (Access_Definition): If this is an access parameter
26726 whose designated type is imported through a limited_with clause, do
26727 not add the enclosing subprogram to the list of private dependents of
26730 2004-05-05 Ed Schonberg <schonberg@gnat.com>
26733 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
26734 a limited_with clause, and the other is its non-limited view.
26736 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
26738 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
26740 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
26741 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
26742 Stand.Boolean_Literals to produce references to entities
26743 Standard_False and Standard_True from compile-time computed boolean
26746 * stand.ads (Boolean_Literals): New variable, provides the entity
26747 values for False and True, for use by the expander.
26749 2004-05-05 Doug Rupp <rupp@gnat.com>
26751 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
26752 5vinmaop.adb: Unchecked convert Short_Address vice Address
26754 * adaint.c, raise.c: Caste CRTL function return value
26755 to avoid gcc error on 32/64 bit IVMS.
26757 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
26760 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
26762 * 5qsystem.ads (Address): Declare as Long_Integer
26763 (Short_Address): Declare as 32 bit subtype of Address
26764 Declare abstract address operations to avoid gratuitous ambiguities.
26766 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
26768 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
26769 instead of the old Boolean_Entry_Barriers.
26770 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
26772 2004-05-05 GNAT Script <nobody@gnat.com>
26774 * Make-lang.in: Makefile automatically updated
26776 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
26778 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
26780 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
26783 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
26784 alone. Replacing object references by literals is inappropriate in a
26785 so low level context.
26787 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
26789 * a-exexpr.adb: Add comments
26791 2004-05-03 Joel Brobecker <brobecker@gnat.com>
26793 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
26794 declare the Ancestor_Tags array in Type_Specific_Data with a small size
26795 without risking a bounds check error when accessing one of its
26797 (Type_Specific_Data): Define Ancestor_Tags as a small array.
26798 This prevents us from hitting a limitation during the debug info
26799 generation when using stabs.
26801 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
26803 This prevents us from hitting a limitation during the debug info
26804 generation when using stabs.
26806 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
26808 lang-specs.h: Remove -gnatz* from specs.
26810 2004-05-03 Vincent Celier <celier@gnat.com>
26812 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
26814 * Make-lang.in, Makefile.in: Add gprmake
26816 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
26818 * sem_aggr.adb: Fix typo in comment.
26820 2004-05-03 Robert Dewar <dewar@gnat.com>
26822 * make.adb: Minor reformatting
26824 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
26826 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
26827 so that it works when address is not a private type.
26829 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
26830 properly with rewritten unchecked conversions. This prevents
26831 order-of-elaboration issues that can otherwise arise.
26832 (Minimum_Size): Don't check size of access types under VMS
26834 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
26835 interpretations of integer literals as type System.Address.
26837 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
26838 (Is_Descendent_Of): New function
26840 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
26842 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26843 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
26844 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
26846 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
26847 of the old Max_Entry_Queue_Depth.
26849 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26850 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
26851 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
26853 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
26854 New entry for proper handling of Max_Entry_Queue_Depth.
26855 New entry for proper handling of No_Dynamic_Interrupts.
26857 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
26858 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26859 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
26860 the GNAT specific restriction Max_Entry_Queue_Depth.
26861 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
26862 the GNAT specific restriction No_Dynamic_Interrupts.
26864 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
26865 instead of the old Boolean_Entry_Barriers.
26866 Use the new restriction No_Dynamic_Attachment instead of the old
26867 No_Dynamic_Interrupts.
26869 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
26870 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26872 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
26873 of the old Max_Entry_Queue_Depth.
26875 2004-05-03 GNAT Script <nobody@gnat.com>
26877 * Make-lang.in: Makefile automatically updated
26879 2004-04-29 Ed Schonberg <schonberg@gnat.com>
26881 * checks.adb (Enable_Range_Check): If the prefix of an index component
26882 is an access to an unconstrained array, perform check unconditionally.
26884 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26886 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
26889 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
26891 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
26892 alternate stack setting. There was no support for the tasking cases
26893 and the changes eventually caused a number of side-effect failures in
26894 the non-tasking case too.
26896 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
26898 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
26901 2004-04-29 Vincent Celier <celier@gnat.com>
26903 * make.adb (Gnatmake): Increase max size of argument array for
26904 gnatbind for the potential addition of -F.
26905 If there are Stand-Alone Library projects, invoke gnatbind with -F to
26906 be sure that elaboration flags will be checked.
26908 * switch-c.adb: Correct call to Scan_Pos for -gnateI
26910 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
26912 * sem_warn.adb (Check_References): Move '<access-variable> may be
26913 null' warning out of under Warn_On_No_Value_Assigned.
26915 2004-04-29 Ed Falis <falis@gnat.com>
26917 * gnat_ugn.texi: Fixed texi error
26919 2004-04-29 Robert Dewar <dewar@gnat.com>
26921 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
26922 abstract operations if they come from predefined files.
26924 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
26927 * s-addope.adb: Correct obvious error in mod function
26929 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
26931 * Makefile.in: Add target pairs for powerpc darwin*
26934 * a-intnam-darwin.ads, s-osinte-darwin.adb,
26935 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
26937 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
26939 * Makefile.in: Add target macro definitions for s390*-linux*.
26940 * system-linux-s390.ads: New file.
26941 * system-linux-s390x.ads: New file.
26943 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
26945 * gnat_ugn.texi: Correct argument to @setfilename.
26947 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
26949 * a-exexpr.adb (Unwind_Word): New data type.
26950 (Unwind_Exception): Use it as type of Private1 and Private2.
26952 * raise.c (db_action_for): Fix debug printf.
26954 2004-04-27 Ed Schonberg <schonberg@gnat.com>
26956 * a-wtmoio.ads: Formal type must be a modular type, not a signed
26959 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26961 * decl.c (gnat_to_gnu_entity, case object): Call
26962 __builtin_update_setjmp_buf.
26964 * gigi.h (update_setjmp_buf): Deleted.
26965 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
26967 * misc.c: (update_setjmp_buf): Deleted.
26969 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
26970 around block of RTL.
26972 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
26974 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
26976 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
26977 subprogram for which no pragma All_Calls_Remote applies, store the
26978 address of the real subprogram in the underlying record type, so local
26979 dereferences do not go through the PCS.
26981 2004-04-26 Robert Dewar <dewar@gnat.com>
26983 * i-c.ads: Add some type qualifications to avoid ambiguities when
26984 compiling with s-auxdec.ads and a non-private address type.
26986 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
26988 * Makefile.rtl: Fix error in previous check-in:
26989 Add s-addope.o to non tasking object list (rather than tasking object
26992 2004-04-26 Javier Miranda <miranda@gnat.com>
26994 * sem_aggr.adb: Fix typo in comments
26995 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
26996 Required to check the null-exclusion attribute.
26998 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
26999 case of anonymous access types in record and array components. For a
27000 component definition the level is the same of the enclosing composite
27003 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
27004 that are anonymous access types the level of accessibility depends on
27005 the enclosing type declaration. In order to have this information, set
27006 the scope of the anonymous access type to the enclosing record type
27008 (Array_Type_Declaration): In case of components that are anonymous
27009 access types the level of accessibility depends on the enclosing type
27010 declaration. In order to have this information, set the scope of the
27011 anonymous access type to the enclosing array type declaration.
27013 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
27016 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
27017 renaming of anonymous access-to-constant types allowed if and only if
27018 the renamed object is access-to-constant.
27020 * sem_util.adb (Type_Access_Level): In case of anonymous access types
27021 that are component_definition or discriminants of a nonlimited type,
27022 the level is the same as that of the enclosing component type.
27024 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
27026 * sem_elim.adb: Some minor code reorganization from code reading. Fix
27027 misprint in the function name (File_Name_Match).
27029 2004-04-23 Laurent GUERBY <laurent@guerby.net>
27031 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
27034 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27036 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
27038 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
27040 * adaint.c (__gnat_try_lock): No longer requires that the parent
27041 directory be writable, the directory itself is enough.
27042 (gnat_is_absolute_path): Change profile, so that the call from
27043 GNAT.OS_Lib can be made more efficient.
27045 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
27046 from GNAT.OS_Lib can be made more efficient.
27048 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
27049 one copy of the file name. Found by code reading.
27051 2004-04-23 Vincent Celier <celier@gnat.com>
27053 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
27054 Correct documentation on gnatmake switches transmitted to the compiler
27056 * ali.ads: Minor comment fix
27058 2004-04-23 Javier Miranda <miranda@gnat.com>
27060 * sem_ch6.adb: (Confirming Types): Code cleanup
27062 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
27063 subprogram types: E_Anonymous_Access_Subprogram_Type and
27064 E_Anonymous_Access_Protected_Subprogram_Type.
27066 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
27068 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27069 whether a pragma All_Calls_Remote applies to the subprogram on which
27071 No functional change is introduced by this revision; the new parameter
27072 will be used to allow calls to local RCI subprograms to be optimized
27073 to not use the PCS in the case where no pragma All_Calls_Remote applies,
27074 as is already done in the PolyORB implementation of the DSA.
27076 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27077 whether a pragma All_Calls_Remote applies to the subprogram on which
27079 No functional change is introduced by this revision; the new parameter
27080 will be used to allow calls to local RCI subprograms to be optimized
27081 to not use the PCS in the case where no pragma All_Calls_Remote applies,
27082 as is already done in the PolyORB implementation of the DSA.
27084 2004-04-23 Robert Dewar <dewar@gnat.com>
27086 * Makefile.rtl: Add entry for s-addope.o in run time library list
27087 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
27088 * s-addope.ads, s-addope.adb: New files.
27090 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
27091 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
27092 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
27093 System.Address to be non-private and signed.
27095 * sem_elim.adb: Minor reformatting (fairly extensive)
27096 Some minor code reorganization from code reading
27097 Add a couple of ??? comments
27099 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27101 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
27102 (tree_transform, case N_If_Statement): Remove non-determinism.
27104 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
27106 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
27108 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
27109 Eliminate' section.
27111 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
27112 no longer used as a parameter name for Eliminate pragma).
27114 2004-04-22 Laurent GUERBY <laurent@guerby.net>
27116 PR optimization/14984
27117 PR optimization/14985
27118 * trans.c (gigi): Fix non determinism leading to bootstrap
27119 comparison failures.
27121 2004-04-21 Pascal Obry <obry@gnat.com>
27123 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
27124 passed to spawnvp() to properly handle program pathname with spaces on
27127 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
27129 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
27130 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
27131 unlocked in case of exceptions.
27133 2004-04-21 Joel Brobecker <brobecker@gnat.com>
27135 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
27136 This function does not exist anymore.
27138 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
27140 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
27142 * link.c: Move variables to the __gnat name space.
27144 * Makefile.in: list link.o explicitly when needed.
27146 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
27148 2004-04-21 Javier Miranda <miranda@gnat.com>
27150 * einfo.adb (Original_Access_Type): New subprogram
27151 (Set_Original_Access_Type): New subprogram
27152 (Write_Field21_Name): Write the name of the new field
27154 * einfo.ads (Original_Access_Type): New field present in access to
27156 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
27157 E_Anonymous_Access_Protected_Subprogram_Type.
27159 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
27162 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
27163 to anonymous access to subprogram types.
27165 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
27166 to subprogram types.
27168 * sem_ch3.adb (Access_Definition): Complete decoration of entities
27169 corresponding to anonymous access to subprogram types.
27170 (Analyze_Component_Declaration): Add new actual to the call to
27171 subprogram replace_anonymous_access_to_protected_subprogram.
27172 (Array_Type_Declaration): Add new actual to the call to subprogram
27173 replace_anonymous_access_to_protected_subprogram.
27174 (Process_Discriminants): Add new actual to the call to subprogram
27175 replace_anonymous_access_to_protected_subprogram.
27176 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
27178 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27181 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
27182 access to subprogram types.
27184 * sem_util.adb (Has_Declarations): Addition of package_specification
27187 2004-04-21 Ed Schonberg <schonberg@gnat.com>
27189 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
27190 inlined flags to renamed entity only if in current unit.
27192 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
27194 * s-parint.ads: Add DSA implementation marker.
27196 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
27197 value of System.Partition_Interface.DSA_Implementation to determine
27198 what version of the distributed systems annex is available (no
27199 implementation, GLADE, or PolyORB).
27201 2004-04-21 Joel Brobecker <brobecker@gnat.com>
27203 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
27205 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27207 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
27208 with new type if alias sets differ.
27209 Fixes ACATS c41103b.
27211 2004-04-21 Vincent Celier <celier@gnat.com>
27213 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
27214 Add array Lang_Args for the language specific compiling argument
27217 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
27219 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
27221 * gnat_rm.texi: Update the descripton of the Eliminate pragma
27222 according to the recent changes in the format of the parameters of the
27223 pragma (replacing Homonym_Number with Source_Location).
27225 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
27227 * 5isystem.ads: Removed, unused.
27229 * gnat_rm.texi: Redo 1.13 change.
27231 2004-04-19 Robert Dewar <dewar@gnat.com>
27233 * s-stoele.ads: Clean up definition of Storage_Offset (the new
27234 definition is cleaner, avoids the kludge of explicit Standard operator
27235 references, and also is consistent with a visible System.Address with
27236 no visible operations.
27238 * s-geveop.adb: Add declarations to avoid assumption of visible
27239 operations on type System.Address (since these might not be available
27240 if Address is a non-private type for which the operations
27241 are made abstract).
27243 * sem_eval.adb: Minor reformatting
27245 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
27246 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
27247 reformatting (new function spec format).
27249 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
27250 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
27251 s-caun64.adb: Add declarations to avoid assumption of visible
27252 operations on type System.Address (since these might not be available
27253 if Address is a non-private type for which the operations are made
27256 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
27258 * exp_intr.adb: Minor comment update
27260 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
27262 * 5omastop.adb: Add declarations to avoid assumption of visible
27263 operations on type System.Address (since these might not be available
27264 if Address is a non-private type for which the operations
27265 are made abstract).
27267 2004-04-19 Vincent Celier <celier@gnat.com>
27269 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
27271 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
27274 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
27276 Call Check with Process_Languages.
27277 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
27278 with Process_Languages.
27279 (Recursive_Check): New Boolean parameter Process_Languages. Call
27280 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
27283 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
27285 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
27286 parameter Ada_Main, defaulted to True.
27287 Check for Ada specific characteristics only when Ada_Main is True.
27289 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
27291 * prj.adb: (Project_Empty): Add new Project_Data components.
27293 * prj.ads: New types and tables for non Ada languages.
27294 (Project_Data): New components Languages, Impl_Suffixes,
27295 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
27296 Include_Path, Include_Data_Set.
27298 * prj-env.ads, prj-env.adb: Minor reformatting
27300 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
27301 Put subprograms in alphabetical order
27303 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
27304 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
27307 * mlib-prj.adb: Back out modification in last version, as they are
27309 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
27311 * make.adb: (Mains): Moved to package Makeutl
27312 (Linker_Opts): Moved to package Makeutl
27313 (Is_External_Assignment): Moved to package Makeutl
27314 (Test_If_Relative_Path): Moved to package Makeutl
27315 (Gnatmake): Move sorting of linker options to function
27316 Makeutl.Linker_Options_Switches.
27318 * makeutl.ads, makeutl.adb: New files.
27320 * Makefile.in: Add makeutl.o to the object files for gnatmake
27322 * makeusg.adb: Add line for new switch -eL.
27324 * gnatls.adb (Image): New function.
27325 (Output_Unit): If in verbose mode, output the list of restrictions
27326 specified by pragmas Restrictions.
27328 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
27331 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
27332 needed, to put it in the range 1970 (included) - 2026 (excluded).
27333 (Time_Of): Do not shift Unix_Min_Year (1970).
27334 Shift the date by multiple of 56 years, if needed, to put it in the
27335 range 1970 (included) - 2026 (excluded).
27337 * adaint.h, adaint.c (__gnat_set_executable): New function.
27339 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27341 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
27342 and pop GC context.
27343 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
27344 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
27345 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
27346 (tree_transform, case N_Code_Statement): Likewise.
27347 (gnat_expand_stmt, case LABEL_STMT): Don't look at
27348 LABEL_STMT_FIRST_IN_EH.
27349 (gnat_expand_stmt, case ASM_STMT): New case.
27351 * utils2.c (build_unary_op): Properly set TREE_READONLY of
27352 UNCONSTRAINED_ARRAY_REF.
27354 * utils.c (poplevel): Temporarily push/pop GC context around inline
27355 function expansion.
27357 * decl.c (maybe_variable): Properly set TREE_READONLY of
27358 UNCONSTRAINED_ARRAY_REF.
27359 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
27361 * ada-tree.def: (ASM_STMT): New.
27363 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
27364 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
27365 ASM_STMT_INPUT): New.
27366 (ASM_STMT_CLOBBER): Likewise.
27368 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
27370 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
27371 general rcheck mechanism to raise Program_Error for E.4(18), instead
27372 of a custom raiser in System.Partition_Interface.
27373 Part of general cleanup work before PolyORB integration.
27375 * snames.ads, snames.adb: Add new runtime library entities and names
27378 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27380 (Build_Subprogram_Id): New subprogram provided by exp_dist
27381 Code reorganisation in preparation for PolyORB integration.
27383 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27385 (Build_Subprogram_Id): New subprogram provided by exp_dist
27387 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
27388 actual parameter types for call to dereference of an
27389 access-to-subprogram type.
27391 * rtsfind.ads: Add new runtime library entities and names for PolyORB
27394 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
27395 instead, which has the same behaviour here since we never pass it a
27398 * link.c (run_path_option, Solaris case): Use -Wl, as for other
27401 * Makefile.in: adjust object file lists for gnatlink and gnatmake
27402 to account for new dependency upon Interfaces.C.Strings + link.o
27403 For x86 FreeBSD, use 86numaux.
27405 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
27406 from Mlib.Tgt to Mlib.
27408 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
27409 target-independent.
27411 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
27412 target-specific versions of this subprogram, now implemented as a
27413 target-independent function in Mlib.
27415 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
27416 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
27417 (Linker_Library_Path_Option): Remove target-specific versions of this
27418 subprogram, now implemented as a target-independent function in Mlib.
27420 * atree.adb: (Allocate_Initialize_Node): New subprogram.
27421 Factors out node table slots allocation.
27422 (Fix_Parents): New subprogram.
27423 Encapsulate the pattern of fixing up parent pointers for syntactic
27424 children of a rewritten node.
27425 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
27426 (Rewrite): Use New_Copy when creating saved copy of original node.
27427 (Replace): Use Copy_Node to copy nodes.
27429 2004-04-19 Javier Miranda <miranda@gnat.com>
27431 * sprint.adb (Sprint_Node_Actual): Give support to the new
27432 Access_To_Subprogram node available in Access_Definition nodes. In
27433 addition, give support to the AI-231 node fields: null-exclusion,
27434 all-present, constant-present.
27436 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
27438 * sinfo.ads, sinfo.adb:
27439 New field Access_To_Subprogram_Definition in Access_Definition nodes
27441 * sem_ch6.adb (Process_Formals): Move here the code that creates and
27442 decorates internal subtype declaration corresponding to the
27443 null-excluding formal. This code was previously in Set_Actual_Subtypes.
27444 In addition, carry out some code cleanup on this code. In case of
27445 access to protected subprogram call
27446 Replace_Anonymous_Access_To_Protected_Subprogram.
27447 (Set_Actual_Subtypes): Code cleanup.
27449 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
27450 Find_Type in case of anonymous access renamings. Add warning in case of
27451 null-excluding attribute used in anonymous access renaming.
27453 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27456 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
27458 (Access_Definition): In case of anonymous access to subprograms call
27459 the corresponding semantic routine to decorate the node.
27460 (Access_Subprogram_Declaration): Addition of some comments indicating
27461 some code that probably should be added here. Detected by comparison
27462 with the access_definition subprogram.
27463 (Analyze_Component_Declaration): In case of access to protected
27464 subprogram call Replace_Anonymous_Access_To_Protected.
27465 (Array_Type_Declaration): In case of access to protected subprogram call
27466 Replace_Anonymous_Access_To_Protected_Subprogram.
27467 (Process_Discriminants): In case of access to protected subprogram call
27468 Replace_Anonymous_Access_To_Protected_Subprogram.
27470 * par.adb (P_Access_Definition): New formal that indicates if the
27471 null-exclusion part was present.
27472 (P_Access_Type_Definition): New formal that indicates if the caller has
27473 already parsed the null-excluding part.
27475 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
27476 (P_Identifier_Declarations): Code cleanup and give support to renamings
27477 of anonymous access to subprogram types.
27478 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
27479 (P_Array_Type_Definition): Give support to AI-254.
27480 (P_Component_Items): Give support to AI-254.
27481 (P_Access_Definition): New formal that indicates if the header was
27482 already parsed by the caller.
27483 (P_Access_Type_Definition): New formal that indicates if the caller has
27484 already parsed the null-excluding part.
27486 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
27487 call to P_Access_Definition.
27489 2004-04-19 Geert Bosch <bosch@gnat.com>
27491 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
27492 the delicate semantics of floating-point to integer conversion.
27493 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
27495 * eval_fat.adb (Machine_Mantissa): Moved to spec.
27496 (Machine_Radix): New function.
27498 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
27500 (Machine_Radix): New function also for use in conversion checks.
27502 2004-04-19 Ed Schonberg <schonberg@gnat.com>
27504 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
27506 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
27507 to decorate the access-to-protected subprogram and the equivalent type.
27509 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
27510 to anonymous access to subprogram types.
27512 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
27513 constant-folding, for legality checks in contexts that require an RM
27516 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
27517 temporary but stack checking is not enabled, increment serial number
27518 to so that symbol generation is consistent with and without stack
27521 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
27522 independent on whether stack checking is enabled, caller must check
27523 the corresponding flag.
27525 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
27527 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
27528 parent if it has discriminants.
27529 (Build_Derived_Private_Type): Constructed full view does
27530 not come from source.
27531 (Process_Discriminants): Default discriminants on a tagged type are
27532 legal if this is the internal completion of a private untagged
27535 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
27536 no constraint checks, because it corresponds to an existing object.
27538 * sem_prag.adb (Process_Convention): Pragma applies
27539 only to subprograms in the same declarative part, i.e. the same unit,
27540 not the same scope.
27542 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
27543 ignore type mismatch on a numeric conversion if expression comes from
27546 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
27548 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
27549 Homonym_Number parameter, add processing for Source_Location parameter
27551 (Check_Eliminated): Remove the check for homonym numbers, add the check
27552 for source location traces.
27554 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
27555 with Arg_Source_Location corresponding to the changes in the format of
27558 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
27559 Eliminate pragma corresponding to the changes in the format of the
27560 pragma: Homonym_Number is replaced with Source_Location, two ways of
27561 distinguishing homonyms are mutially-exclusive.
27563 2004-04-19 Joel Brobecker <brobecker@gnat.com>
27565 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
27567 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
27568 No_Dollar_In_Label, no longer necessary, as it is always True.
27569 (Strip_Suffixes): Likewise.
27571 2004-04-19 Gary Dismukes <dismukes@gnat.com>
27573 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
27574 modulus for compatibility with size clause on targets with 16-bit
27577 * layout.adb (Discrimify): In the case of private types, set Vtyp to
27578 full type to fix type mismatches on calls to size functions for
27579 discriminant-dependent array components.
27581 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
27583 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
27586 2004-04-19 Pascal Obry <obry@gnat.com>
27588 * mdll-utl.adb (Locate): New version is idempotent.
27590 2004-04-17 Laurent Guerby <laurent@guerby.net>
27592 PR ada/14988 (partial)
27593 * impunit.adb: Fix typo.
27595 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
27597 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
27598 and install-rts-cert targets. Remove all gnatlib and gnattools
27599 targets and all other rts-* targets (moved to libada). Remove (now)
27600 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
27601 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
27603 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27605 * trans.c (tree_transform): Shortcut returning error_mark_node for
27606 statements in annotate_only_mode.
27607 (tree_transform, case N_Label, case N_Return_Statement,
27608 N_Goto_Statement): Make statement tree instead of generating code.
27609 (tree_transform, case N_Assignment_Statement): No longer check
27610 type_annotate_only.
27611 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
27613 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
27615 (gnat_to_gnu): Collect any RTL generated and deal with it.
27616 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
27617 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
27618 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
27620 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
27622 * ada-tree.def (EXPR_STMT): Fix typo in name.
27623 (BLOCK_STMT, IF_STMT): New nodes.
27625 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
27626 LABEL_STMT_FIRST_IN_EH): New macros.
27627 (RETURN_STMT_EXPR): Likewise.
27629 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
27630 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
27632 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
27634 * atree.ads: Correct documentation on extended nodes.
27636 * link.c: Set run_path_option for FreeBSD.
27638 2004-04-08 Vincent Celier <celier@gnat.com>
27640 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
27641 one of the ALI file, do not link with DEC lib.
27643 * par.adb Remove the last two characters ("%s" or "%b") when checking
27644 if a language defined unit may be recompiled.
27646 2004-04-08 Ed Schonberg <schonberg@gnat.com>
27648 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
27649 removal of abstract operation leaves no possible interpretation for
27652 * sem_eval.adb (Eval_Qualified_Expression): Use
27653 Set_Raises_Constraint_Error on node when needed, so that it does not
27654 get optimized away by subsequent optimizations.
27656 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
27657 operands even when they are not wrapped in a type conversion.
27659 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
27661 * sem_prag.adb (Set_Exported): Warn about making static as result of
27662 export only when the export is coming from source. This may be not
27663 be true e.g. on VMS where we expand export pragmas for exception codes
27664 together with imported or exported exceptions, and we don't want the
27665 user to be warned about something he didn't write.
27667 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
27669 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
27670 duplication between normal entities and those declared as renamings.
27671 No functional change.
27673 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
27674 inline functions returning an unconstrained result.
27676 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
27678 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
27679 conform to what other front-ends do.
27681 2004-04-08 Doug Rupp <rupp@gnat.com>
27683 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
27686 2004-04-06 Pascal Obry <obry@gnat.com>
27688 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
27690 * osint.adb (Program_Name): Do not look past a directory separator.
27692 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
27694 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
27696 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
27697 requirement for preserving a copy of the original assignment node.
27699 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
27701 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
27703 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
27706 2004-04-06 Ed Schonberg <schonberg@gnat.com>
27708 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
27709 operator calls in functional notation, and apply
27710 Universal_Interpretation to operands, not to their type.
27712 2004-04-06 Robert Dewar <dewar@gnat.com>
27714 * 5wdirval.adb: Minor reformatting
27716 2004-04-06 Ed Falis <falis@gnat.com>
27718 * gnat_rm.texi: Improve a reference to the GCC manual
27720 2004-04-05 Vincent Celier <celier@gnat.com>
27722 * adaint.h, adaint.c: Add function __gnat_named_file_length
27724 * impunit.adb: Add Ada.Directories to the list
27726 * Makefile.in: Add VMS and Windows versions of
27727 Ada.Directories.Validity package body.
27729 * Makefile.rtl: Add a-direct and a-dirval
27731 * mlib-tgt.ads: Minor comment update.
27733 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
27734 a-direct.ads, a-direct.adb: New files.
27736 2004-04-05 Vincent Celier <celier@gnat.com>
27739 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
27740 just to the compiler.
27742 2004-04-05 Robert Dewar <dewar@gnat.com>
27744 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
27745 returned string is 1.
27747 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
27749 * eval_fat.ads: Minor reformatting
27751 * g-curexc.ads: Document that lower bound of returned string values
27754 * gnatlink.adb: Add ??? comment for previous change
27755 (need to document why this is VMS specific)
27757 * s-stoele.ads: Minor reformatting
27759 * tbuild.ads: Minor reformatting throughout (new function specs)
27761 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
27764 * scng.adb: Minor reformatting
27766 2004-04-05 Geert Bosch <bosch@gnat.com>
27768 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
27769 (Leading_Part): Still perform truncation to machine number if the
27770 specified radix_digits is greater or equal to machine_mantissa.
27772 2004-04-05 Javier Miranda <miranda@gnat.com>
27774 * par-ch3.adb: Complete documentation of previous change
27775 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
27776 (aliased must appear before constant).
27778 * par-ch4.adb: Complete documentation of previous change.
27780 * par-ch6.adb: Complete documentation of previous change.
27782 * sinfo.ads: Fix typo in commment.
27784 2004-04-05 Ed Schonberg <schonberg@gnat.com>
27786 * sem_ch3.adb (Inherit_Components): If derived type is private and has
27787 stored discriminants, use its discriminants to constrain parent type,
27788 as is done for non-private derived record types.
27790 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
27791 Ada 2005 AI-310: an abstract non-dispatching operation is not a
27792 candidate interpretation in an overloaded call.
27794 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
27795 expression is Null and target type is not an access type (e.g. a
27796 non-private address type).
27798 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
27800 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
27801 statement whose right-hand side is an inlined call, save a copy of the
27802 original assignment subtree to preserve enough consistency for
27803 Analyze_Assignment to proceed.
27805 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
27806 complete assignment subtree which is now unnecessary, as the expansion
27807 of inlined call has been improved to preserve a consistent assignment
27808 tree. Note_Possible_Modification must be called only
27809 after checks have been applied, or else unnecessary checks will
27812 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
27813 of explicit dereferences that do not Come_From_Source:
27814 - be selective on cases where we must go back to the dereferenced
27815 pointer (an assignment to an implicit dereference must not be
27816 recorded as modifying the pointer);
27817 - do not rely on Original_Node being present (Analyze_Assignment
27818 calls Note_Possible_Modification on a copied tree).
27820 * sem_warn.adb (Check_References): When an unset reference to a pointer
27821 that is never assigned is encountered, prefer '<pointer> may be null'
27822 warning over '<pointer> is never assigned a value'.
27824 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
27826 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
27829 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
27831 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
27832 libexc. We currently don't reference anything in this library and
27833 linking it in triggers linker warnings we don't want to see.
27835 * init.c: Update comments.
27837 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27839 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
27840 * utils.c (create_field_decl): Likewise.
27841 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
27843 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
27845 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
27846 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
27847 Add info directory entry and category.
27849 2004-04-02 Jan Hubicka <jh@suse.cz>
27851 * utils.c: Include function.h
27852 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
27854 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
27857 * Make-lang.in: Clean up generation of documentation
27859 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
27861 * xgnatug.adb: Removed, replaced by xgnatugn.adb
27863 * xgnatugn.adb: Replaces xgnatug.adb
27865 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
27867 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
27869 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
27870 gnat_ug_wnt.texi: Removed.
27872 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
27874 * utils2.c: Update copyright notice.
27876 2004-04-01 Robert Dewar <dewar@gnat.com>
27878 * checks.adb: Minor reformatting throughout
27879 Note that prev checkin added RM reference to alignment warning
27881 2004-04-01 Ed Schonberg <schonberg@gnat.com>
27883 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
27884 non-static when building aggregate for bit-packed array.
27886 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
27887 function call that is itself the actual in a procedure call, build
27890 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
27891 a string literal, create a temporary for it, constant folding only
27892 handles scalars here.
27894 2004-04-01 Vincent Celier <celier@gnat.com>
27896 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
27897 Error_Msg_SP): New empty procedures to instantiate the Scanner.
27898 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
27900 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
27901 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
27902 and get the checksum.
27904 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
27906 Increase the Marking_Label at the end of the Multiple_Main_Loop,
27907 instead of at the beginning.
27909 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
27911 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
27914 * osint.ads (Multi_Unit_Index_Character): New Character global variable
27916 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
27919 * par.adb: Remove test on file name to detect language defined units.
27920 Add test on unit name, after parsing, to detect language defined units
27921 that are not compiled with -gnatg (except System.RPC and its children)
27923 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
27924 following units without style checking.
27926 * switch-c.adb: Change -gnatC to -gnateI
27928 * usage.adb: Document new switch -gnateInnn
27930 * scng.adb (Accumulate_Token_Checksum): New procedure
27931 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
27932 word or literal number.
27933 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
27936 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
27939 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
27940 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
27941 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
27942 5vtpopde.adb: Add missing 'constant' keywords.
27944 2004-04-01 Javier Miranda <miranda@gnat.com>
27946 * par-ch4.adb: (P_Allocator): Code cleanup
27948 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
27951 * sinfo.ads: Complete documentation of previous change
27953 2004-04-01 Pascal Obry <obry@gnat.com>
27955 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
27956 only on VMS. This special handling was done because an old GNU/ld bug
27957 on Windows which has been fixed.
27959 2004-04-01 GNAT Script <nobody@gnat.com>
27961 * Make-lang.in: Makefile automatically updated
27963 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27965 * decl.c (gnat_to_gnu_entity, make_type_from_size):
27966 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
27967 * trans.c (tree_transform, convert_with_check): Likewise.
27968 * utils.c (gnat_signed_or_unsigned_type): Likewise.
27969 (build_vms_descriptor, unchecked_convert): Likewise.
27970 * utils2.c (nonbinary_modular_operation): Likewise.
27972 2004-03-29 Javier Miranda <miranda@gnat.com>
27974 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
27975 (Install_Null_Excluding_Check): Local subprogram that determines whether
27976 an access node requires a runtime access check and if so inserts the
27977 appropriate run-time check.
27978 (Apply_Access_Check): Call Install_Null_Excluding check if required
27979 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
27981 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
27983 * einfo.ads: Fix typo in comment
27985 * exp_ch3.adb (Build_Assignment): Generate conversion to the
27986 null-excluding type to force the corresponding run-time check.
27987 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
27988 type to force the corresponding run-time check.
27990 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
27991 the null-excluding type to force the corresponding run-time check.
27993 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
27994 case of access types unless they have the null-excluding attribute.
27996 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
27999 * exp_util.ads: Fix typo in comment
28001 * par.adb (P_Null_Exclusion): New subprogram
28002 (P_Subtype_Indication): New formal that indicates if the null-excluding
28003 part has been scanned-out and it was present
28005 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
28007 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
28008 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
28009 type to force the corresponding run-time check
28010 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
28012 (Resolve_Array_Aggregate): Carry out some static checks
28013 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
28015 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
28016 attribute must be set only if specified by means of the null-excluding
28017 part. In addition, we must also propagate the access-constant attribute
28019 (Access_Subprogram_Declaration, Access_Type_Declaration,
28020 Analyze_Component_Declaration, Analyze_Object_Declaration,
28021 Array_Type_Declaration, Process_Discriminants,
28022 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
28023 and carry out some static checks.
28024 (Build_Derived_Access_Type): Set the null-excluding attribute
28025 (Derived_Type_Declaration, Process_Subtype): Carry out some static
28028 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
28030 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
28032 * sem_ch6.adb (Process_Formals): Carry out some static checks.
28033 (Set_Actual_Subtypes): Generate null-excluding subtype if the
28034 null-excluding part was present; it is not required to be done here in
28035 case of anonymous access types.
28036 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
28039 * sem_res.adb (Resolve_Actuals): Carry out some static check
28040 (Resolve_Null): Allow null in anonymous access
28042 * sinfo.adb: New subprogram Null_Exclusion_Present
28043 All_Present and Constant_Present available on access_definition nodes
28045 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
28046 object_declaration, derived_type_definition, component_definition,
28047 discriminant_specification, access_to_object_definition,
28048 access_function_definition, allocator, access_procedure_definition,
28049 access_definition, parameter_specification, All_Present and
28050 Constant_Present flags available on access_definition nodes.
28052 2004-03-29 Robert Dewar <dewar@gnat.com>
28054 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
28055 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
28056 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
28057 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
28058 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
28059 sem_prag.adb: Updates to handle multiple units/file
28061 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
28063 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
28064 sem_util.adb: Minor reformatting
28066 * sem_ch12.adb: Add comment for previous change
28068 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
28070 * osint.adb (Executable_Prefix): Set Exec_Name to the current
28071 executable name when not initialized. Otherwise, use its current value.
28073 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
28074 initialize it to another executable name than the current one. This
28075 allows to configure paths for an executable name (gnatmake) different
28076 from the current one (gnatdist).
28078 2004-03-29 Ed Schonberg <schonberg@gnat.com>
28080 * exp_ch6.adb (Expand_Call): A call to a function declared in the
28081 current unit cannot be inlined if it appears in the body of a withed
28082 unit, to avoid order of elaboration problems in gigi.
28084 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
28085 information for protected (wrapper) operation as well, to simplify gdb
28088 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
28089 protected body, indicate that the entity for the generated spec comes
28090 from source, to ensure that references are properly generated for it.
28091 (Build_Body_To_Inline): Do not inline a function that returns a
28094 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
28095 apply convention to homonyms that are declared explicitly.
28097 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
28098 that renames an equality operator and the operands are overloaded,
28099 resolve them with the declared formal types, before rewriting as an
28102 2004-03-29 GNAT Script <nobody@gnat.com>
28104 * Make-lang.in: Makefile automatically updated
28106 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
28108 * memtrack.adb: Log realloc calls, which are treated as free followed
28111 2004-03-25 Vincent Celier <celier@gnat.com>
28113 * prj-makr.adb (Process_Directories): Detect when a file contains
28114 several units. Do not include such files in the config pragmas or
28115 in the naming scheme.
28117 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
28118 Resolve links only when not in Trusted_Mode.
28119 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
28120 Do not resolve links for the display names.
28122 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
28123 resolve links when computing the display names.
28125 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
28127 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
28128 attribute reference does not denote a subtype, it can be any
28129 expression that has a classwide type, potentially after an implicit
28130 dereference. In particular, the prefix can be a view conversion for
28131 a classwide type (for which Is_Object_Reference holds), but it can
28132 also be a value conversion for an access-to-classwide type. In the
28133 latter case, there is an implicit dereference, and the original node
28134 for the prefix does not verify Is_Object_Reference.
28136 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
28137 conversion of a discriminant-dependent component of a mutable object
28140 2004-03-25 Ed Schonberg <schonberg@gnat.com>
28142 * freeze.adb (Freeze_Entity): When an inherited subprogram is
28143 inherited, has convention C, and has unconstrained array parameters,
28144 place the corresponding warning on the derived type declaration rather
28145 than the original subprogram.
28147 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
28148 indication on renaming declaration, if formal has a box and actual
28151 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
28152 determine whether to generate an implicit or explicit reference to
28153 the renamed entity.
28155 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
28156 subprogram renaming comes from a defaulted formal subprogram in an
28159 2004-03-25 Gary Dismukes <dismukes@gnat.com>
28161 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
28162 value expressions to ensure that calls within a component definition
28163 will be checked (since those are evaluated during the record type's
28166 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
28168 * s-tpobop.adb: Code clean up:
28169 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
28171 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
28173 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
28175 * Makefile.in: Clean up in the ravenscar run time.
28177 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28179 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
28180 of No_Strict_Aliasing to build_pointer_type_for_mode.
28181 * utils.c (update_pointer_to): Walk pointer and ref chains.
28183 2004-03-22 Cyrille Comar <comar@act-europe.fr>
28185 * ali.ads: Fix Comment about Dynamic_Elab.
28187 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
28188 Has_RACW, Is_Generic, etc.)
28189 (Output_Object, Gnatls): Take into account ALI files not attached to
28192 2004-03-22 Vincent Celier <celier@gnat.com>
28194 * gprep.adb: Change all String_Access to Name_Id
28195 (Is_ASCII_Letter): new function
28196 (Double_File_Name_Buffer): New procedure
28197 (Preprocess_Infile_Name): New procedure
28198 (Process_Files): New procedure
28199 (Gnatprep): Check if output and input are existing directories.
28200 Call Process_Files to do the real job.
28202 2004-03-22 Robert Dewar <dewar@gnat.com>
28204 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
28205 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
28207 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
28209 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
28210 case when the source contains only comments.
28212 2004-03-22 Ed Schonberg <schonberg@gnat.com>
28214 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
28215 declaration for a child subprogram body that acts as a spec, indicate
28216 that the entity in the declaration needs debugging information.
28218 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
28219 full view if the subtype is created for a constrained record component;
28220 gigi has enough information to construct the record, and there is no
28221 place in the tree for the declaration.
28223 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
28224 serial number for the dummy body that is built for analysis, to avoid
28225 inconsistencies in the generation of internal names when compiling
28228 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
28230 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
28233 2004-03-22 GNAT Script <nobody@gnat.com>
28235 * Make-lang.in: Makefile automatically updated
28237 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28239 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28240 * trans.c (tree_transform, emit_index_check): Likewise.
28241 * utils.c (build_template): Likewise.
28242 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
28243 (maybe_unconstrained_array, unchecked_convert): Likewise.
28244 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
28245 (build_unary_op): Likewise.
28246 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28247 (fill_vms_descriptor): Likewise.
28248 (build_call_alloc_dealloc): Likewise.
28250 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
28252 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
28255 * gnat_ug.texi: Add info directory category and entry.
28256 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28257 gnat_ug_wnt.texi: Regenerate.
28259 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
28261 * ada-tree.h: Update copyright notice.
28262 Minor reformatting.
28264 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
28266 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
28267 as regular exception objects and not as mere integers representing the
28268 condition code. The latter approach required some dynamics to mask off
28269 severity bits, which did not fit well into the GCC table based model.
28270 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
28271 exception data objects. We don't it and it would conflict with the other
28272 external symbol we have to generate for such exceptions.
28274 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
28275 the special code for VMS exceptions, since these are now represented
28276 as regular exceptions objects.
28278 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28280 * decl.c (debug_no_type_hash): Remove.
28281 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
28282 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
28284 2004-03-19 Laurent Guerby <laurent@guerby.net>
28286 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
28287 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
28289 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28291 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
28292 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
28293 (TYPE_RM_SIZE_INT): Directly use type.values.
28294 (TREE_LOOP_ID): Clean up check.
28295 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
28296 TYPE_VALUES, not TYPE_FIELDS.
28297 * trans.c (convert_with_check): Delay access of bounds of basetype
28298 until sure is numeric.
28300 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
28302 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
28305 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
28306 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
28307 Specific.Set instead of direct call to e.g pthread_setspecific.
28309 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
28311 * adaint.c: Update comments.
28313 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
28314 GNATLIB_SHARED for FreeBSD.
28316 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
28318 * init.c [VxWorks]: Do not fix the stack size for the environment task.
28319 When needed (stack checking) the stack size is retrieved
28320 from the VxWorks kernel.
28322 * Makefile.in: Flag -nostdinc is required when building the run time
28323 for avoiding looking for files in the base compiler.
28324 Add the VxWorks specific version of the package body for
28325 System.Stack_checking.Operations (5zstchop.adb).
28327 * Make-lang.in: Add the object file for
28328 System.Stack_Checking.Operations.
28330 * Makefile.rtl: Add object file for the package
28331 System.Stack_Checking.Operations.
28333 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
28335 * s-stache.ads, s-stache.adb: Move the operations related to stack
28336 checking from this package to package System.Stack_Checking.Operations.
28337 This way, stack checking operations are only linked in the final
28338 executable when using the -fstack-check flag.
28340 2004-03-18 Doug Rupp <rupp@gnat.com>
28342 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
28345 * 5qsystem.ads, 5xcrtl.ads: New files.
28347 2004-03-18 Vincent Celier <celier@gnat.com>
28349 * prj.adb (Reset): Reset hash table Files_Htable
28351 * prj-env.adb (Source_Paths, Object_Paths): New tables.
28352 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
28353 the procedures Add_To_Path_File.
28354 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
28355 making sure that each directory is present only once and, for object
28356 dirs, when a directory already present is added, the duplicate is
28357 removed and the directory is always put as the last in the table.
28358 Write the path files at the end of these accumulations.
28360 * prj-nmsc.adb (Record_Source): Add source file name in hash table
28361 Files_Htable for all sources.
28363 * prj-proc.adb (Process): Remove restrictions between not directly
28364 related extending projects.
28366 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
28368 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
28369 (Find_Sources): Minor speed optimization.
28371 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
28372 parameter Trusted_Mode.
28374 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
28376 * scn.adb (Determine_License): Take into account a degenerated case
28377 when the source contains only comments.
28379 2004-03-18 Ed Schonberg <schonberg@gnat.com>
28381 * sem_warn.adb (Check_References): For a warning on a selected
28382 component that does not come from source, locate an uninitialized
28383 component of the record type to produce a more precise error message.
28385 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
28387 * 3zsoccon.ads: Fix multicast options.
28389 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
28392 2004-03-15 Robert Dewar <dewar@gnat.com>
28394 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
28395 pragma used for a private type.
28397 * lib-xref.adb (Generate_Reference): Do not generate warning if
28398 reference is in a different unit from the pragma Unreferenced.
28400 * 5vtpopde.adb: Minor reformatting
28401 Fix casing of To_Task_ID
28403 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
28404 flag if we have an unchecked conversion to an access type in the same
28407 2004-03-15 Geert Bosch <bosch@gnat.com>
28409 * a-ngcoty.adb (Modulus): In alternate formula for large real or
28410 imaginary parts, use Double precision throughout.
28412 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
28413 we want to be able to compile run-time with -gnata for testing, but
28414 this may also be instantiated in user code that is compiled with -gnata.
28416 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
28418 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
28419 codes. Having a separate type for this is useful to enforce consistency
28420 throughout the various run-time units.
28421 (Exception_Data): Use Exception_Code for Import_Code.
28423 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
28424 Natural and Integer in various places.
28425 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
28426 with the severity bits masked off.
28427 (Register_VMS_Exception): Handle the additional exception data pointer
28430 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
28431 component, now reflected by an exported accessor.
28432 (is_handled_by): New routine to compute whether the propagated
28433 occurrence matches some handler choice specification. Extracted out of
28434 get_action_description_for, and expanded to take care of the VMS
28436 (get_action_description_for): Use is_handled_by instead of an explicit
28437 complex condition to decide if the current choice at hand catches the
28438 propagated occurrence.
28440 * raise.h (Exception_Code): New type for C.
28442 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
28443 System.Standard_Library.Exception_Code, to allow references from the
28444 pragma import/export expander.
28446 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
28447 New accessors to allow easy access to GNAT exception data
28449 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
28450 redundant Handled_By_Others component, helper for the personality
28451 routine which will now be able to call the appropriate exception data
28454 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
28455 component of Standard_Exception_Type to be the closest possible to
28456 Exception_Code in System.Standard_Library, that we cannot get at this
28457 point. Expand a ??? comment to notify that this type node should
28458 probably be rewritten later on.
28460 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
28461 registration call to include a pointer to the exception object in the
28464 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
28465 instead of int and explicit bitmasks.
28467 2004-03-15 Vincent Celier <celier@gnat.com>
28469 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
28470 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
28472 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
28473 longer needed now that it is in the spec of
28474 System.Tasking.Task_Attributes.
28476 * adaint.h, adaint.c: (__gnat_create_output_file): New function
28478 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
28480 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
28482 * make.adb (Gnatmake): Do not check the executable suffix; it is being
28483 taken care of in Scan_Make_Arg.
28484 (Scan_Make_Arg): Add the executable suffix only if the argument
28485 following -o, in canonical case, does not end with the executable
28486 suffix. When in verbose mode and executable file name does not end
28487 with executable suffix, output the executable name, in canonical case.
28489 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
28490 to avoid warnings when instantiating Ada.Task_Attributes.
28493 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
28494 in the correct order.
28496 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
28497 redirect standard output and error to a file for the invocation of the
28498 compiler, then read the file.
28500 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
28501 directory, instead of the Value.
28502 (Find_Source_Dirs): Remove useless code & comments.
28504 2004-03-15 Ed Schonberg <schonberg@gnat.com>
28506 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
28507 tagged type is inherited, and the parent operation is not frozen yet,
28508 force generation of a freeze node for the inherited operation, so the
28509 corresponding dispatch entry is properly initialized.
28510 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
28511 when looking for user-defined equality operation.
28513 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
28514 boolean when locating primitive equality of tagged component.
28516 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
28517 bit-aligned field and the right-hand side a string literal, introduce
28518 a temporary before expanding assignment into a loop.
28520 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
28521 priority in full, to ensure that any expanded subepxressions of it are
28522 elaborated in the scope of the init_proc.
28524 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
28525 after object declaration, skipping over code that may have been
28526 generated for validity checks.
28528 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
28529 discriminants, ignore the known discriminants of its full view, if
28530 any, to check legality.
28532 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
28533 component if type has unknown discriminants.
28534 (Analyze_Private_Extension_Declaration): Discriminant constraint is
28535 null if type has unknown discriminants.
28537 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
28538 for end label when present.
28540 * s-fileio.adb (Open): When called with a C_Stream, use given name for
28541 temporary file, rather than an empty string.
28543 2004-03-15 Ed Falis <falis@gnat.com>
28545 * s-thread.adb: Removed, no longer used.
28547 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28549 * decl.c (target.h): Now include.
28550 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
28551 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
28552 (validate_size): For POINTER_TYPE, get smallest size permitted on
28555 * fe.h: Sort Einfo decls and add Set_Mechanism.
28557 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
28558 (ada/decl.o): Depends on target.h.
28560 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
28561 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
28563 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
28565 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
28567 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
28568 Insert_Dereference_Action when rewriting an implicit dereference into
28569 an explicit one, this will be taken care of during expansion of the
28570 explicit dereference.
28571 (Expand_N_Slice): Same. Always do the rewriting, even for the case
28572 of non-packed slices, since the dereference action generated by
28573 expansion of the explicit dereference is needed in any case.
28574 (Expand_N_Selected_Component): When rewriting an implicit dereference,
28575 analyze and resolve the rewritten explicit dereference so it is seen
28577 (Insert_Dereference_Action): This procedure is now called only for the
28578 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
28579 dereferences that do not come from source (including explicit
28580 dereferences resulting from rewriting implicit ones), but do not
28581 recursively insert a check for the dereference nodes contained within
28583 (Insert_Dereference_Action): Clarify and correct comment.
28585 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
28588 Move language detection to the top level.
28589 * config-lang.in: Build by default.
28591 2004-03-05 Robert Dewar <dewar@gnat.com>
28593 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
28595 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
28596 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
28597 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
28598 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
28599 unchecked conversion to spec to avoid warnings.
28601 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
28604 * 7stpopsp.adb: Correct casing in To_Task_ID call
28606 * a-strsea.ads, a-strsea.adb: Minor reformatting
28608 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
28610 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
28611 Adjust Max_Msg_Length to be clearly large enough.
28613 * fe.h: Define In_Same_Source_Unit
28615 * osint.adb: Add pragma Warnings Off to suppress warnings
28616 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
28619 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
28621 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
28623 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
28625 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
28627 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
28629 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
28630 node. We now do generate them for gcc back end.
28632 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
28635 * sinput-c.adb: Fix bad name in header.
28636 Add pragma Warnings Off to suppress aliasing warning.
28638 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
28640 * snames.h, snames.ads, snames.adb: Add entry for pragma
28641 No_Strict_Aliasing.
28643 2004-03-05 Vincent Celier <celier@gnat.com>
28645 * prj-com.ads: Add hash table Files_Htable to check when a file name
28646 is already a source of another project.
28648 * prj-nmsc.adb (Record_Source): Before recording a new source, check
28649 if its file name is not already a source of another project. Report an
28652 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
28653 source file name, call gnatpp with all the sources of the main project.
28655 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
28658 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
28659 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
28660 /RUNTIME_SYSTEM=, converted to --RTS=
28661 /NOTABS, converted to -notabs
28663 2004-03-05 Pascal Obry <obry@gnat.com>
28665 * make.adb: Minor reformatting.
28667 2004-03-05 Ed Schonberg <schonberg@gnat.com>
28669 Part of implemention of AI-262.
28670 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
28672 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
28675 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
28676 when component type is a partially constrained class-wide subtype.
28677 (Constrain_Discriminated_Type): If parent type has unknown
28678 discriminants, a constraint is illegal, even if full view has
28680 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
28681 with unknown discriminants whose full view is a discriminated record.
28683 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
28684 flag, to handle properly derivations of tagged types with unknown
28686 (Analyze_Package_Spec, Analyze_Package_Body): Install
28687 Private_With_Clauses before analyzing private part or body.
28689 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
28690 Has_Discriminants can be true for a given type (documentation).
28692 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
28694 * s-restri.ads: Fix license (GPL->GMGPL).
28696 * s-tassta.adb: Minor reformatting.
28698 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28699 by calls to Exit_One_ATC_Level, since additional clean up is performed
28702 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28703 by calls to Exit_One_ATC_Level, since additional clean up is performed
28706 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28708 * trans.c: Reflect GCC changes to fix bootstrap problem.
28709 Add warning for suspicious aliasing unchecked conversion.
28711 2004-03-05 GNAT Script <nobody@gnat.com>
28713 * Make-lang.in: Makefile automatically updated
28715 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
28717 * ali.adb (Read_Instantiation_Instance): Do not modify the
28718 current_file_num when reading information about instantiations, since
28719 this corrupts files in later references.
28721 2004-03-02 Vincent Celier <celier@gnat.com>
28723 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
28724 before checking if it is read-only.
28726 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
28727 of SRC_DIRS and eliminate duplicates.
28729 * gprcmd.adb: Replace command "path" with command "path_sep" to return
28730 the path separator.
28731 (Usage): Document path_sep
28733 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
28734 C++ compiler. No need for a script.
28735 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
28736 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
28739 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
28740 where there are Ada sources.
28741 (Set_Ada_Paths): Only add to the include path the source dirs of project
28743 (Add_To_Path): Add the Display_Values of the directories, not their
28746 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
28749 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
28751 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
28752 Value is canonicalized.
28753 (Language_Independent_Check): Do not copy Value to Display_Value when
28754 canonicalizing Value.
28756 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
28757 path to find limited with cycles.
28758 (Parse_Single_Project): Use canonical cased path to find the end of a
28761 2004-03-02 Ed Schonberg <schonberg@gnat.com>
28763 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
28764 and not a child unit.
28766 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
28767 appear in a with_clause.
28769 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
28770 only happen in type_annotate mode, do not try to elaborate it.
28772 * exp_util.adb (Force_Evaluation): If expression is a selected
28773 component on the left of an assignment, use a renaming rather than a
28774 temporary to remove side effects.
28776 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
28777 inlined instance body, which is analyzed before the end of the
28780 2004-03-02 Robert Dewar <dewar@gnat.com>
28782 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
28783 sem_ch4.adb: Use new feature for substitution of keywords in VMS
28785 * errout.ads, errout.adb: Implement new circuit for substitution of
28788 * sem_case.adb (Analyze_Choices): Place message properly when case is
28789 a subtype reference rather than an explicit range.
28791 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
28793 2004-03-02 Doug Rupp <rupp@gnat.com>
28795 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
28797 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
28799 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
28801 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28803 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
28806 2004-02-25 Robert Dewar <dewar@gnat.com>
28808 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28809 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
28810 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
28811 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
28812 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
28813 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
28814 the defining instance of the type to avoid aliasing problems.
28815 Fix copyright header. Fix bad comments in package header.
28817 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
28819 2004-02-25 Ed Schonberg <schonberg@gnat.com>
28821 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
28822 rewritten as references when aliased through an address clause.
28824 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
28825 whether call can be interpreted as an indirect call to the result of a
28826 parameterless function call returning an access subprogram.
28828 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
28831 * exp_ch7.adb (Make_Clean): Remove generation of calls to
28832 Unlock[_Entries], since this is now done by Service_Entries directly.
28834 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
28836 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
28837 Requeue_Call for better code readability. Change spec and update calls:
28838 PO_Service_Entries now unlock the PO on exit.
28839 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
28840 PO_Service_Entries.
28842 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
28844 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
28846 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
28848 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
28849 protected subprogram call and analyzing the result of such expanding
28850 in case when the called protected subprogram is eliminated.
28852 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
28855 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
28857 * Makefile.in: Clean ups.
28859 2004-02-23 Ed Schonberg <schonberg@gnat.com>
28861 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
28862 protected operations if original subprogram is flagged as eliminated.
28863 (Expand_N_Subprogram_Body): For a protected operation, create
28864 discriminals for next operation before checking whether the operation
28867 * exp_ch9.adb (Expand_N_Protected_Body,
28868 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
28869 for internal protected operations if the original subprogram is
28872 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
28873 declared in a single protected object.
28875 2004-02-23 Vincent Celier <celier@gnat.com>
28877 * prj-attr.adb: Make attribute Builder'Executable an associative array,
28878 case insensitive if file names are case insensitive, instead of a
28879 standard associative array.
28881 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
28882 them as case insensitive on platforms where the file names are case
28885 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
28886 project file has already been parsed that canonical path are compared.
28888 2004-02-23 Robert Dewar <dewar@gnat.com>
28890 * sinput-c.ads: Correct bad unit title in header
28892 * freeze.adb: Minor reformatting
28894 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28896 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
28897 nonaddressable COMPONENT_REF that is removing padding that we are
28898 taking the address of, take the address of the padded record instead
28899 if item is variable size.
28901 2004-02-20 Robert Dewar <dewar@gnat.com>
28903 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
28905 2004-02-20 Ed Schonberg <schonberg@gnat.com>
28907 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
28908 itype references for the constrained designated type of a component
28909 whose base type is already frozen.
28911 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
28913 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
28914 avoid GCC warnings.
28916 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
28918 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
28919 identifier for a phantom package that rewrites the formal package
28920 declaration with a box. The Add semantic decorations for the defining
28921 identifier from the original node (that represents the formal package).
28923 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
28925 * Make-lang.in (ada/stamp-sdefault): Use the top level
28928 2004-02-19 Richard Henderson <rth@redhat.com>
28930 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
28932 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
28934 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
28935 Scan_ALI can be used for multiple ALI files without reinitializing
28938 2004-02-18 Robert Dewar <dewar@gnat.com>
28940 * debug.adb: Minor reformatting.
28942 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28944 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
28945 to zero if there is an address clause.
28947 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
28949 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
28951 2004-02-18 Gary Dismukes <dismukes@gnat.com>
28953 * layout.adb (Layout_Component_List): Revise generation of call to
28954 discriminant-checking function to pass selections of all of the type's
28955 discriminants rather than just the variant-controlling discriminant.
28957 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
28959 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
28960 fail in the current setup and triggers spurious system error messages.
28961 Pretend it occurred and failed instead.
28963 2004-02-18 Vincent Celier <celier@gnat.com>
28965 * bld.adb: Mark FLDFLAGS as saved
28966 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
28967 it is not the root project. Put each directory to be
28968 extended between double quotes to prevent it to be expanded on Windows.
28969 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
28970 the project file. Set them back to their initial values if they have not
28971 been set in the project file.
28973 * gprcmd.adb: (Gprdebug, Debug): New global variables
28974 (Display_Command): New procedure
28975 (Usage): Document new command "linkopts"
28976 Call Display_Command when env var GPRDEBUG has the value "TRUE"
28977 Implement new command "linkopts"
28978 Remove quotes that may be around arguments for "extend"
28979 Always call Normalize_Pathname with arguments formatted for the platform
28981 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
28982 Change @echo to @$(display) in target clean to be able to clean silently
28984 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
28986 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
28989 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
28990 = Extending_All when current project is an extending all project.
28992 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
28993 set to True only for LINK command, after Unix switch -o.
28994 (Process_Arguments): Set Output_File_Expected to True for LINK command
28995 after Unix switch -o. When Output_File_Expected is True, never add an
28996 extension to a file name.
28998 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
28999 option file name, only to the --for-linker= switch.
29000 (Option_File_Name): If option file name do not end with ".opt", append
29003 2004-02-18 GNAT Script <nobody@gnat.com>
29005 * Make-lang.in: Makefile automatically updated
29007 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
29009 * Make-lang.in (stamp-sdefault): Do not depend on
29012 2004-02-12 Zack Weinberg <zack@codesourcery.com>
29014 * config-lang.in: Disable Ada by default until probe logic for
29015 a bootstrap Ada compiler can be moved to the top level configure
29018 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
29020 * decl.c (components_to_record): Don't claim that the internal fields
29021 we make to hold the variant parts are semantically addressable, because
29024 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
29025 adjust the comment describing the modular type form when we can use it.
29026 (Install_PAT): Account for the Esiz renaming.
29028 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
29029 sc_onstack context indication before raising the exception to which
29030 the signal is mapped. Allows better handling of later signals possibly
29031 triggered by the resumed user code if the exception is handled.
29033 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
29035 * 5zinit.adb: Removed, no longer used.
29037 2004-02-12 Robert Dewar <dewar@gnat.com>
29039 * ali.adb: Remove separating space between parameters on R line. Makes
29040 format consistent with format used by the binder for Set_Globals call.
29042 * atree.ads, atree.adb: Minor reformatting (new function header format)
29044 * bindgen.adb: Add Run-Time Globals documentation section containing
29045 detailed documentation of the globals passed from the binder file to
29048 * gnatls.adb: Minor reformatting
29050 * init.c (__gnat_set_globals): Add note pointing to documentation in
29053 * lib-writ.ads, lib-writ.adb: Remove separating space between
29054 parameters on R line.
29055 Makes format consistent with format used by the binder for Set_Globals
29058 * osint.ads: Add 2004 to copyright notice
29061 * snames.ads: Correct capitalization of FIFO_Within_Priorities
29062 Noticed during code reading, documentation issue only
29064 * usage.adb: Remove junk line for obsolete C switch
29065 Noticed during code reading
29067 2004-02-12 Vincent Celier <celier@gnat.com>
29069 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
29070 extend for each directory, so that multiple /** directories are
29071 extended individually.
29072 (Recursive_Process): Set the default for LANGUAGES to ada
29074 * gprcmd.adb: Define new command "ignore", to do nothing.
29075 Implement new comment "path".
29077 * Makefile.generic: Suppress output when SILENT is set
29078 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
29079 used, so that the correct compiler is invoked.
29080 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
29081 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
29083 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
29085 * Makefile.in: Clean ups and remove obsolete targets.
29087 2004-02-12 Ed Schonberg <schonberg@gnat.com>
29089 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
29090 predicate declared in exp_util.
29092 * exp_util.adb: Add comments.
29094 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
29095 visibility before compiling context of the subunit.
29097 * sem_res.adb (Check_Parameterless_Call): If the context expects a
29098 value but the name is a procedure, do not attempt to analyze as a call,
29099 in order to obtain more telling diagnostics.
29101 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
29102 'Access on parameterless function calls.
29103 (Normalize_Actuals): For a parameterless function call with missing
29104 actuals, defer diagnostic until resolution of enclosing call.
29106 * sem_util.adb (Wrong_Type): If the context type is an access to
29107 subprogram and the expression is a procedure name, suggest a missing
29110 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
29111 Nathanael Nerode <neroden@gcc.gnu.org>
29115 Merge with libada-branch:
29116 * config-lang.in: Build libada only when ada is built.
29118 2004-02-09 Ed Schonberg <schonberg@gnat.com>
29120 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
29121 for a tagged type, verify that both formals have the same type.
29123 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
29124 temporary when the formal is an in-parameter and the actual a possibly
29127 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
29128 when expansion is disabled, to ensure proper name capture with
29129 overloaded literals. Condition can be of any boolean type, resolve
29132 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
29133 renaming is for a formal subprogram with a default operator name, and
29134 there is a usable operator that is visible at the point of
29137 2004-02-09 Robert Dewar <dewar@gnat.com>
29139 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
29140 rewrite to ignore errors in ali files, intended to allow tools downward
29141 compatibility with new versions of ali files.
29143 * ali.ads: Add new parameter Ignore_Errors
29145 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
29146 duplicating the error message giving the file with restrictions.
29148 * debug.adb: Add debug flag I for gnatbind
29150 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
29151 operators for the case where the operator is a defining operator.
29153 * exp_ch3.adb: Minor reformatting (new function spec format).
29155 * exp_ch4.adb: Add comment for previous change, and make minor
29156 adjustment to loop to always check for improper loop termination.
29157 Minor reformatting throughout (new function spec format).
29159 * gnatbind.adb: Implement -di debug flag for gnatbind
29161 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
29163 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
29165 * lib-load.adb: Fix bad assertion.
29166 Found by testing and code reading.
29167 Minor reformatting.
29169 * lib-load.ads: Minor reformatting.
29171 * lib-writ.adb: There is only one R line now.
29173 * lib-writ.ads: Add documentation on making downward compatible changes
29174 to ali files so old tools work with new ali files.
29175 There is only one R line now.
29176 Add documentation on format incompatibilities (with special GPS note)
29178 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
29180 * par-load.adb: Minor reformatting
29182 * sem_ch8.adb: Fix to error message from last update
29183 Minor reformatting and restructuring of code from last update
29185 * par-prag.adb, snames.adb, snames.ads, snames.h,
29186 sem_prag.adb: Implement pragma Profile.
29188 * stylesw.adb: Implement -gnatyN switch to turn off all style check
29191 * usage.adb: Add line for -gnatyN switch
29193 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
29195 2004-02-09 Albert Lee <lee@gnat.com>
29197 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
29199 2004-02-09 Ed Schonberg <schonberg@gnat.com>
29201 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
29204 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
29205 is nested in an instance that is not frozen yet, to avoid
29206 order-of-elaboration problems in gigi.
29208 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
29209 body the attribute is legal.
29211 2004-02-09 Robert Dewar <dewar@gnat.com>
29213 * s-rident.ads: Minor comment correction
29215 * targparm.adb: Remove dependence on uintp completely. There was
29216 always a bug in Make in that it called Targparm before initializing
29217 the Uint package. The old code appeared to get away with this, but
29218 the new code did not! This caused an assertion error in gnatmake.
29220 * targparm.ads: Fix bad comment, restriction pragmas with parameters
29221 are indeed fully supported.
29223 2004-02-06 Alan Modra <amodra@bigpond.net.au>
29225 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
29227 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
29229 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
29230 with targetm.calls.promote_prototypes.
29232 2004-02-04 Robert Dewar <dewar@gnat.com>
29234 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
29235 ali.ads, gprcmd.adb: Minor reformatting
29237 * bindgen.adb: Output restrictions string for new style restrictions
29240 * impunit.adb: Add s-rident.ads (System.Rident) and
29241 s-restri (System.Restrictions)
29243 * lib-writ.adb: Fix bug in writing restrictions string (last few
29246 * s-restri.ads, s-restri.adb: Change name Restrictions to
29247 Run_Time_Restrictions to avoid conflict with package name.
29248 Add circuit to read and acquire run time restrictions.
29250 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
29252 * restrict.ads, restrict.adb: Use the new restriction
29253 No_Task_Attributes_Package instead of the old No_Task_Attributes.
29255 * sem_prag.adb: No_Task_Attributes is a synonym of
29256 No_Task_Attributes_Package.
29258 * snames.ads, snames.adb: New entry for proper handling of
29259 No_Task_Attributes.
29261 * s-rident.ads: Adding restriction No_Task_Attributes_Package
29262 (AI-00249) that supersedes the GNAT specific restriction
29263 No_Task_Attributes.
29265 2004-02-04 Ed Schonberg <schonberg@gnat.com>
29268 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
29269 body, an identifier may be wrapped in an unchecked conversion.
29271 2004-02-04 Vincent Celier <celier@gnat.com>
29273 * lib-writ.ads: Comment update for the W lines
29275 * bld.adb: (Expression): An empty string list is static
29277 * fname-uf.adb: Minor comment update
29279 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
29281 * gnatbind.adb: Initialize Cumulative_Restrictions with the
29282 restrictions on the target.
29284 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
29286 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
29289 2004-02-02 Arnaud Charlet <charlet@gnat.com>
29291 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
29293 2004-02-02 Vincent Celier <celier@gnat.com>
29295 * gprcmd.adb (Check_Args): If condition is false, print the invoked
29296 comment before the usage.
29297 Gprcmd: Fail when command is not recognized.
29298 (Usage): Document command "prefix"
29300 * g-md5.adb (Digest): Process last block.
29301 (Update): Do not process last block. Store remaining characters and
29304 * g-md5.ads (Update): Document that several call to update are
29305 equivalent to one call with the concatenated string.
29306 (Context): Add fields to allow new Update behaviour.
29308 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
29309 defaulted to False.
29310 When May_Fail is True and no existing file can be found, return No_File.
29312 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
29315 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
29316 spec file name instead on the W line.
29318 2004-02-02 Robert Dewar <dewar@gnat.com>
29320 * ali.adb: Read and acquire info from new format restrictions lines
29322 * bcheck.adb: Add circuits for checking restrictions with parameters
29324 * bindgen.adb: Output dummy restrictions data
29325 To be changed later
29327 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
29328 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
29329 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
29330 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
29331 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
29333 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
29334 the warning message on access to possibly uninitialized variable S)
29335 Minor changes for new restrictions handling.
29337 * gnatbind.adb: Minor reformatting
29338 Minor changes for new restrictions handling
29339 Move circuit for -r processing here from bcheck (cleaner)
29341 * gnatcmd.adb, gnatlink.adb: Minor reformatting
29343 * lib-writ.adb: Output new format restrictions lines
29345 * lib-writ.ads: Document new R format lines for new restrictions
29348 * s-restri.ads/adb: New files
29350 * Makefile.rtl: Add entry for s-restri.ads/adb
29352 * par-ch3.adb: Fix bad error messages starting with upper case letter
29355 * restrict.adb: Major rewrite throughout for new restrictions handling
29356 Major point is to handle restrictions with parameters
29358 * restrict.ads: Major changes in interface to handle restrictions with
29359 parameters. Also generally simplifies setting of restrictions.
29361 * snames.ads/adb: New entry for proper handling of No_Requeue
29363 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
29364 restriction counting.
29365 Other minor changes for new restrictions handling
29367 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
29368 Restriction_Warnings now allows full parameter notation
29369 Major rewrite of Restrictions for new restrictions handling
29371 2004-02-02 Javier Miranda <miranda@gnat.com>
29373 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
29374 syntax rule for object renaming declarations.
29375 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
29376 component definitions.
29378 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
29380 (Array_Type_Declaration): Give support to access components. In addition
29381 it was also modified to reflect the name of the object in anonymous
29382 array types. The old code did not take into account that it is possible
29383 to have an unconstrained anonymous array with an initial value.
29384 (Check_Or_Process_Discriminants): Allow access discriminant in
29386 (Process_Discriminants): Allow access discriminant in non-limited types
29387 Initialize the new Access_Definition field in N_Object_Renaming_Decl
29388 node. Change Ada0Y to Ada 0Y in comments
29390 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
29391 equality operators.
29392 Change Ada0Y to Ada 0Y in comments
29394 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
29395 renamings Change Ada0Y to Ada 0Y in comments
29397 * sem_type.adb (Find_Unique_Type): Give support to the equality
29398 operators for universal access types
29399 Change Ada0Y to Ada 0Y in comments
29401 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
29403 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
29405 (N_Object_Renaming_Declaration): Addition of Access_Definition field
29406 Change Ada0Y to Ada 0Y in comments
29408 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
29409 component definition and object renaming nodes
29410 Change Ada0Y to Ada 0Y in comments
29412 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
29414 * restrict.adb: Use the new restriction identifier
29415 No_Requeue_Statements instead of the old No_Requeue for defining the
29416 restricted profile.
29418 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
29419 No_Requeue_Statements.
29421 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
29422 that supersedes the GNAT specific restriction No_Requeue. The later is
29423 kept for backward compatibility.
29425 2004-02-02 Ed Schonberg <schonberg@gnat.com>
29427 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
29428 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
29429 pragma and fix incorrect ones.
29431 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
29432 warning if the pragma is redundant.
29434 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
29436 * 5staprop.adb: Add missing 'constant' keywords.
29438 * Makefile.in: use consistent value for SYMLIB on
29439 platforms where libaddr2line is supported.
29441 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29443 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
29446 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
29448 * init.c (__gnat_install_handler): Setup an alternate stack for signal
29449 handlers in the environment thread. This allows proper propagation of
29450 an exception on stack overflows in this thread even when the builtin
29451 ABI stack-checking scheme is used without support for a stack reserve
29454 * utils.c (create_field_decl): Augment the head comment about bitfield
29455 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
29456 here, because the former is not accurate enough at this point.
29457 Let finish_record_type decide instead.
29458 Don't make a bitfield if the field is to be addressable.
29459 Always set a size for the field if the record is packed, to ensure the
29460 checks for bitfield creation are triggered.
29461 (finish_record_type): During last pass over the fields, clear
29462 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
29463 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
29464 from DECL_BIT_FIELD.
29466 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
29468 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
29469 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
29470 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
29472 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29474 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
29476 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
29477 (ZCX_By_Default): Likewise.
29478 (Front_End_ZCX_Support): Likewise.
29480 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
29481 (Initialize_Lock): Mark Level unreferenced.
29482 (Sleep): Mark Reason unreferenced.
29483 (Timed_Sleep): Likewise.
29484 (Wakeup): Likewise.
29485 (Exit_Task): Use Result.
29486 (Check_No_Locks): Mark Self_ID unreferenced.
29488 * 5gtasinf.adb (New_Sproc): Make Attr constant.
29489 (Bound_Thread_Attributes): Make Sproc constant.
29490 (New_Bound_Thread_Attributes): Likewise.
29492 2004-01-26 Ed Schonberg <schonberg@gnat.com>
29494 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
29495 one-dimensional array an slice assignments, when component type is
29498 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
29499 component type is controlled, and control_actions are in effect, use
29500 TSS procedure rather than generating inline code.
29502 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
29503 arrays with controlled components.
29505 2004-01-26 Vincent Celier <celier@gnat.com>
29507 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
29508 command line for the non VMS case.
29510 * gnatlink.adb (Process_Binder_File): When building object file, if
29511 GNU linker is used, put all object paths between quotes, to prevent ld
29512 error when there are unusual characters (such as '!') in the paths.
29514 * Makefile.generic: When there are sources in Ada and the main is in
29515 C/C++, invoke gnatmake with -B, instead of -z.
29517 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
29518 from VMS_Conversion.
29519 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
29520 specification of argument file on the command line.
29522 2004-01-26 Bernard Banner <banner@gnat.com>
29524 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
29526 2004-01-26 Ed Schonberg <schonberg@gnat.com>
29528 * snames.adb: Update copyright notice.
29529 Add info on slice assignment for controlled arrays.
29531 2004-01-23 Robert Dewar <dewar@gnat.com>
29533 * exp_aggr.adb: Minor reformatting
29535 * exp_ch9.adb: Minor code clean up
29537 Fix bad character in comment
29540 * targparm.adb (Get_Target_Parameters): Give clean abort error on
29541 unexpected end of file, along with more detailed message.
29543 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29545 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
29548 * decl.c (copy_alias_set): New function.
29549 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
29551 2004-01-23 Doug Rupp <rupp@gnat.com>
29553 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
29554 lib$${file} in case subsequent character is not a separator.
29556 2004-01-23 Vincent Celier <celier@gnat.com>
29558 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
29559 when the GCC version is at least 3.
29561 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
29562 Remove all "Opt.", to prepare for opt split
29564 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
29565 Extends_All. Set to True when the project parsed is an extending all
29566 project. Fails for importing an extending all project only when the
29567 imported project is an extending all project.
29568 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
29569 depending on the value of Extends_All returned.
29571 * prj-proc.adb (Process): Check that no project shares its object
29572 directory with a project that extends it, directly or indirectly,
29573 including a virtual project.
29574 Check that no project extended by another project shares its object
29575 directory with another also extended project.
29577 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
29578 Kind = N_With_Clause
29580 * prj-tree.ads: Minor reformatting
29581 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
29583 2004-01-23 Ed Schonberg <schonberg@gnat.com>
29585 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
29586 applies to a type with an incomplete view, use full view in Name of
29587 clause, for consistency with uses of Get_Attribute_Definition_Clause.
29589 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
29591 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
29592 SCHED_RR, since other values are not supported by this policy.
29593 (Initialize): Move initialization of mutex attribute to package
29594 elaboration, to prevent early access to this variable.
29596 * Makefile.in: Remove mention of Makefile.adalib, unused.
29598 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
29599 1ssecsta.ads: Removed, unused.
29601 2004-01-21 Javier Miranda <miranda@gnat.com>
29603 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
29604 entity if already built in the current scope.
29606 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
29607 reminder in internal scopes. Required for nested limited aggregates.
29609 2004-01-21 Doug Rupp <rupp@gnat.com>
29611 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
29612 VMS. Replace all occurences of libgnat- and libgnarl- with
29613 libgnat$(hyphen) and libgnarl$(hyphen).
29614 Fixed shared library build problem on VMS.
29616 2004-01-21 Robert Dewar <dewar@gnat.com>
29618 * mlib-prj.adb: Minor reformatting
29620 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
29622 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
29623 'constant' keywords for declaration of pointers that are not modified.
29625 * exp_pakd.adb: Fix English in comment.
29627 2004-01-21 Ed Schonberg <schonberg@gnat.com>
29630 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
29631 copy all attributes of the parent, including the foreign language
29634 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
29637 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
29638 for 'delay until' statement.
29640 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
29642 * Make-lang.in: Replace $(docdir) with doc.
29643 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
29644 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
29645 to use consistent MAKEINFO rule.
29646 (ada.man, ada.srcman): Dummy entry.
29647 (ADA_INFOFILES): Define.
29648 (ada.info, ada.srcinfo): New rules.
29650 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
29652 * utils.c: Update copyright notice, missed in previous change.
29654 2004-01-19 Vincent Celier <celier@gnat.com>
29656 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
29657 args if Bind is True. Set First_ALI, if not already done.
29658 (Build_Library): For Stand Alone Libraries, extract from one ALI file
29659 an eventual --RTS switch, for gnatbind, and all backend switches +
29660 --RTS, for linking.
29662 2004-01-19 Robert Dewar <dewar@gnat.com>
29664 * sem_attr.adb, memtrack.adb: Minor reformatting
29666 2004-01-19 Ed Schonberg <schonberg@gnat.com>
29668 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
29669 that rename enumeration literals. This is properly done in sem_eval.
29671 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
29672 to functions that rename enumeration literals.
29674 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
29675 functions that rename enumeration literals.
29677 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
29679 * Make-lang.in (utils.o): Depend on target.h.
29680 * utils.c: Include target.h.
29681 (process_attributes): Use targetm.have_named_sections instead
29682 of ASM_OUTPUT_SECTION_NAME.
29684 2004-01-16 Andreas Jaeger <aj@suse.de>
29686 * Makefile.in: Add $(DESTDIR).
29688 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
29690 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
29691 also when not defining if a Size clause applies. That information is
29694 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
29696 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
29697 symbolic links for the shared gnat run time when needed.
29699 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
29701 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
29702 for writing, and terminate with an error message if not.
29704 2004-01-15 Ed Schonberg <schonberg@gnat.com>
29706 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
29707 warning on an access to subprogram in an instance, when the target
29708 type is declared in the same generic unit.
29709 (Eval_Attribute): If 'access is known to fail accessibility check,
29710 rewrite as a raise statement.
29712 2004-01-15 GNAT Script <nobody@gnat.com>
29714 * Make-lang.in: Makefile automatically updated
29716 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
29718 * Make-lang.in (ada.srcextra): Dummy entry.
29720 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
29722 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
29724 2004-01-13 Ed Schonberg <schonberg@gnat.com>
29726 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
29727 components that are initialized with aggregates.
29729 2004-01-13 Vincent Celier <celier@gnat.com>
29731 * gnatlink.adb (Process_Binder_File): To find directory of shared
29732 libgcc, if "gcc-lib" is not a subdirectory, look for the last
29733 subdirectory "lib" in the path of the shared libgnat or libgnarl.
29735 * make.adb (Gnatmake): If GCC version is at least 3, link with
29736 -shared-libgcc, when there is at least one shared library project.
29738 * opt.ads (GCC_Version): New integer constant.
29740 * adaint.c (get_gcc_version): New function.
29742 2004-01-13 Robert Dewar <dewar@gnat.com>
29744 * sem_dist.adb, sem_res.adb, sem_util.adb,
29745 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
29746 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
29748 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
29750 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
29751 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
29754 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
29756 * misc.c: Remove trailing spaces.
29757 Update copyright notice missed in previous change.
29760 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
29763 * Makefile.generic: Update copyright.
29764 Add license notice.
29766 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
29767 of prefix/share/make.
29769 * Makefile.prolog: Update copyright.
29770 Add license notice.
29772 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
29774 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
29775 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
29776 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
29779 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
29782 2004-01-12 Javier Miranda <miranda@gnat.com>
29784 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
29785 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
29786 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
29787 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
29788 Component_Definition node.
29790 2004-01-12 Ed Falis <falis@gnat.com>
29792 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
29794 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
29796 * link.c: Change default libgnat kind to STATIC for FreeBSD.
29798 2004-01-12 Bernard Banner <banner@gnat.com>
29800 * Makefile.in: map 86numaux to a-numaux for x86_64
29802 2004-01-12 Ed Schonberg <schonberg@gnat.com>
29804 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
29805 generated to rename a generic actual, go to the actual itself, the
29806 subtype is not a user-visible entity.
29808 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
29809 part is a private subtype, reset the visibility of its full view, if
29810 any, to be consistent.
29813 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
29814 to use a generic package G as a formal package for another generic
29817 2004-01-12 Robert Dewar <dewar@gnat.com>
29819 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
29821 * usage.adb: Remove mention of obsolete -gnatwb switch
29822 Noticed during code reading
29824 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
29826 * 1ssecsta.adb: Minor changes for -gnatwa warnings
29828 2004-01-12 GNAT Script <nobody@gnat.com>
29830 * Make-lang.in: Makefile automatically updated
29832 2004-01-09 Mark Mitchell <mark@codesourcery.com>
29834 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
29836 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29838 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
29840 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
29842 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
29843 Update comment and copyright date.
29844 * stamp-xgnatug: Delete.
29846 2004-01-05 Robert Dewar <dewar@gnat.com>
29848 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
29849 be modified by the binder generated main program if the -D switch is
29852 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
29853 imported functions (since now we expect this to be done for imported
29856 * 5vtaprop.adb: Add several ??? for sections requiring more comments
29857 Minor reformatting throughout
29859 * 5zinit.adb: Minor reformatting
29860 Add 2004 to copyright date
29861 Minor changes to avoid -gnatwa warnings
29862 Correct some instances of using OR instead of OR ELSE (noted while
29863 doing reformatting)
29865 * sprint.adb: Minor updates to avoid -gnatwa warnings
29867 * s-secsta.ads, s-secsta.adb:
29868 (SS_Get_Max): New function to obtain high water mark for ss stack
29869 Default_Secondary_Stack is not a constant since it may be modified by
29870 the binder generated main program if the -D switch is used.
29872 * switch-b.adb: New -Dnnn switch for binder
29875 Make -gnatg imply all warnings currently in -gnatwa
29877 * vms_conv.adb: Minor reformatting
29878 Add 2004 to copyright notice
29879 Add 2004 to printed copyright notice
29881 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
29882 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
29883 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
29884 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
29885 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
29886 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
29887 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
29888 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
29889 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
29890 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
29891 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
29892 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
29893 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
29894 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
29895 checks.adb, clean.adb, cstand.adb, einfo.ads,
29896 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
29897 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
29898 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
29899 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
29900 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
29901 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
29902 Minor reformatting and code clean ups.
29903 Minor changes to prevent -gnatwa warnings
29905 * ali.adb: Minor reformatting and cleanup of code
29906 Acquire new SS indication of secondary stack use from ali files
29908 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
29909 (since now we expect this to be done for imported functions)
29911 * bindgen.adb: Generate call to modify default secondary stack size if
29914 * bindusg.adb: Add line for new -D switch
29916 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
29917 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
29918 Add circuitry for both records and arrays to avoid gigi
29919 processing if the type involved has non-bit-aligned components
29921 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
29922 N_String_Literal node always references an E_String_Literal_Subtype
29923 entity. This may not be true in the future.
29924 (Possible_Bit_Aligned_Component): Move processing of
29925 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
29927 * exp_ch6.adb (Expand_Thread_Body): Pick up
29928 Default_Secondary_Stack_Size as variable so that we get value modified
29929 by possible -Dnnn binder parameter.
29931 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
29932 (Type_May_Have_Bit_Aligned_Components): New function.
29934 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
29935 (Type_May_Have_Bit_Aligned_Components): New function.
29937 * fe.h: (Set_Identifier_Casing): Fix prototype.
29938 Add declaration for Sem_Elim.Eliminate_Error_Msg.
29939 Minor reformatting.
29941 * freeze.adb (Freeze_Entity): Add RM reference to error message about
29942 importing constant atomic/volatile objects.
29943 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
29944 unless explicit Pure_Function pragma given, to avoid insidious bug of
29945 call to non-pure imported function getting eliminated.
29947 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
29948 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
29949 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
29950 Add 2004 to printed copyright notice
29952 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
29955 * Makefile.rtl: Add entry for g-sestin.o
29956 g-sestin.ads: New file.
29958 * mdll.adb: Minor changes to avoid -gnatwa warnings
29960 * mlib-tgt.adb: Minor reformatting
29962 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
29963 New switch Sec_Stack_Used (GNAT, GNATBIND)
29964 Make Default_Secondary_Stack_Size a variable instead of a constant,
29965 so that it can be modified by the new -Dnnn bind switch.
29967 * rtsfind.adb (Load_Fail): Give full error message in configurable
29968 run-time mode if all_errors mode is set. This was not done in the case
29969 of a file not found, which was an oversight.
29970 Note if secondary stack unit is used by compiler.
29972 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
29973 ineffective elaborate all pragmas on non-visible packages (this
29974 happened when a renamed subprogram was called). Now the elaborate all
29975 always goes on the package containing the renaming rather than the one
29976 containing the renamed subprogram.
29978 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
29979 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
29981 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
29982 has an Etype that references an E_String_Literal.
29983 (Eval_String_Literal): Avoid assumption that N_String_Literal node
29984 always references an E_String_Literal_Subtype entity. This may not
29985 be true in the future.
29987 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
29990 * sem_res.adb (Resolve): Specialize msg for function name used in proc
29993 2004-01-05 Ed Falis <falis@gnat.com>
29995 * g-debuti.adb: Replaced direct boolean operator with short-circuit
29998 2004-01-05 Vincent Celier <celier@gnat.com>
30000 * bld.adb: Minor comment updates
30001 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
30004 * make.adb (Gnatmake): Special process for files to compile/check when
30005 -B is specified. Fail when there are only foreign mains in attribute
30006 Main of the project file and -B is not specified. Do not skip bind/link
30007 steps when -B is specified.
30009 * makeusg.adb: Document new switch -B
30011 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
30013 * switch-m.adb: (Scan_Make_Switches): Process -B switch
30015 * vms_data.ads: Add new GNAT PRETTY qualifier
30016 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
30018 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30020 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
30023 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
30024 Set_Identifier_Casing.
30026 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
30027 has size that overflows.
30029 2004-01-05 Gary Dismukes <dismukes@gnat.com>
30031 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
30032 -gnatwa warning on static condition.
30034 2004-01-05 Doug Rupp <rupp@gnat.com>
30036 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
30038 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
30040 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
30041 all attributes, including read-only attribute.
30043 2004-01-05 Pascal Obry <obry@gnat.com>
30045 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
30046 library naming scheme.
30048 * mlib-prj.adb (Build_Library): Generate different names for the static
30049 or dynamic version of the GNAT runtime. This is needed to support the
30050 new shared library naming scheme.
30051 (Process_Binder_File): Add detection of shared library in binder file
30052 based on the new naming scheme.
30054 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
30055 scheme for the shared runtime libraries.
30058 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
30060 (install-gnatlib): Do not create symlinks for shared libraries.
30061 (gnatlib-shared-default): Idem.
30062 (gnatlib-shared-dual-win32): New target. Not used for now as the
30063 auto-import feature does not support arrays/records.
30064 (gnatlib-shared-win32): Do not create copy for the shared libraries.
30065 (gnatlib-shared-vms): Fix shared runtime libraries names.
30067 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
30068 dependent runtime shared library name.
30070 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
30072 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
30075 2004-01-05 Ed Schonberg <schonberg@gnat.com>
30077 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
30078 protected objects when allocator has a subtype indication, not a
30079 qualified expression. Note that qualified expressions may have to be
30080 checked when limited aggregates are implemented.
30082 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
30083 pure, emit warning.
30084 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
30085 subprogram is imported, remove warning.
30087 2004-01-05 Geert Bosch <bosch@gnat.com>
30089 * s-poosiz.adb: Update copyright notice.
30090 (Allocate): Use Task_Lock to protect against concurrent access.
30091 (Deallocate): Likewise.
30093 2004-01-05 Joel Brobecker <brobecker@gnat.com>
30095 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
30098 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
30100 * gnat_ug.texi: Force a CVS commit by updating copyright.
30101 * gnat_ug_vxw.texi: Regenerate.
30102 * gnat_ug_wnt.texi: Regenerate.
30103 * gnat_ug_vms.texi: Regenerate.
30104 * gnat_ug_unx.texi: Regenerate.
30106 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
30108 * trans.c: Remove uses of "register" specifier in
30109 declarations of local variables.
30111 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
30113 * stamp-xgnatug: New stamp file.
30114 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
30115 (ada/doctools/xgnatug): Add $(build_exeext).
30116 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
30117 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
30119 2003-12-17 Ed Falis <falis@gnat.com>
30121 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
30124 * a-exextr.adb: Add context clause for
30125 Ada.Exceptions.Last_Chance_Handler.
30127 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
30129 * cstand.adb (Create_Standard): Change the way how the declaration of
30130 the Duration type is created (making it the same way as it is for all
30131 the other standard types).
30133 2003-12-17 Robert Dewar <dewar@gnat.com>
30135 * s-crtl.ads: Fix header format
30136 Change Pure to Preelaborate
30138 2003-12-17 Ed Schonberg <schonberg@gnat.com>
30140 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
30141 the expression type only if it is declared in the current unit.
30143 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
30144 are universal and already analyzed, as can occur in constrained
30145 subcomponents that depend on discriminants, when one constraint is a
30148 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
30149 type Any_Fixed is legal as the argument of a conversion, if only one
30150 fixed-point type is in context.
30152 2003-12-17 GNAT Script <nobody@gnat.com>
30154 * Make-lang.in: Makefile automatically updated
30156 2003-12-15 Robert Dewar <dewar@gnat.com>
30158 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
30161 2003-12-15 Vincent Celier <celier@gnat.com>
30163 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
30164 (Gnatchop): Do not set failure status when reporting the number of
30167 2003-12-15 Doug Rupp <rupp@gnat.com>
30169 * s-ctrl.ads: New file.
30171 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
30173 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
30174 (GNATBIND_OBJS): Add ada/s-crtl.o.
30176 * Makefile.in [VMS]: Clean up ifeq rules.
30178 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
30179 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
30180 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
30181 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
30182 s-tasdeb.adb: Update copyright.
30183 Import System.CRTL.
30184 Make minor modifications to use System.CRTL declared functions instead
30185 of importing locally.
30187 2003-12-15 GNAT Script <nobody@gnat.com>
30189 * Make-lang.in: Makefile automatically updated
30191 2003-12-11 Ed Falis <falis@gnat.com>
30193 * 5zinit.adb: Clean up.
30195 * 5zintman.adb (Notify_Exception): replaced case statement with a call
30196 to __gnat_map_signal, imported from init.c to support
30197 signal -> exception mappings that depend on the vxWorks version.
30200 Created and exported __gnat_map_signal to support signal -> exception
30201 mapping that is dependent on the VxWorks version.
30202 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
30204 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
30206 * 5wosinte.ads: Link with -mthreads switch.
30208 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
30210 * init.c (__gnat_install_handler [NetBSD]): Set
30211 __gnat_handler_installed, as done on all other platforms.
30212 Remove duplicated code.
30214 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
30216 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
30218 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
30220 * sinfo.ads: Fix inconsistent example code in comment.
30222 2003-12-11 Robert Dewar <dewar@gnat.com>
30224 * a-tiinau.adb: Add a couple of comments
30226 * sem_ch3.adb: Minor reformatting
30229 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
30230 Minor reformatting throughout
30232 2003-12-11 Ed Schonberg <schonberg@gnat.com>
30234 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
30235 bounds of a loop, create a separate block in order to generate proper
30236 cleanup actions to prevent memory leaks.
30238 * sem_res.adb (Resolve_Call): After a call to
30239 Establish_Transient_Scope, the call may be rewritten and relocated, in
30240 which case no further processing is needed.
30242 * sem_util.adb: (Wrong_Type): Refine previous fix.
30243 Fixes ACATS regressions.
30246 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
30249 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
30251 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
30252 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
30255 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
30258 2003-12-08 Robert Dewar <dewar@gnat.com>
30260 * 7sintman.adb: Minor reformatting
30262 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
30263 standard linker options to get standard libraries linked. We now plan
30264 to provide dummy versions of these libraries to match the appropriate
30265 configurable run-time (e.g. if a library is not needed at all, provide
30266 a dummy empty library).
30268 * targparm.ads: Configurable_Run_Time mode no longer affects linker
30269 options (-L parameters and standard libraries). What we plan to do is
30270 to provide dummy libraries where the libraries are not required.
30272 * gnatbind.adb: Minor comment improvement
30274 2003-12-08 Javier Miranda <miranda@gnat.com>
30276 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
30277 aggregate in the parent. Otherwise constants with limited aggregates
30278 are not supported. Add new formal to pass the component type (Ctype).
30279 It is required to call the corresponding IP subprogram in case of
30280 default initialized components.
30281 (Gen_Assign): In case of default-initialized component, generate a
30282 call to the IP subprogram associated with the component.
30283 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
30284 of aggregate with default initialized components.
30285 (Has_Default_Init_Comps): Improve implementation to recursively check
30286 all the present expressions.
30288 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
30289 to indicate that the initialization call corresponds to a
30290 default-initialized component of an aggregate.
30291 In case of default initialized aggregate with tasks this parameter is
30292 used to generate a null string (this is just a workaround that must be
30293 improved later). In case of discriminants, this parameter is used to
30294 generate a selected component node that gives access to the discriminant
30297 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
30298 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
30299 allocated aggregates with default-initialized components.
30301 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
30302 the box notation is used in positional aggregates.
30304 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
30306 * lib.ads: Fix typo in comment
30308 2003-12-08 Vincent Celier <celier@gnat.com>
30310 * prj.adb (Project_Empty): New component Unkept_Comments
30311 (Scan): Remove procedure; moved to Prj.Err.
30313 * prj.ads (Project_Data): New Boolean component Unkept_Comments
30314 (Scan): Remove procedure; moved to Prj.Err.
30316 * prj-dect.adb: Manage comments for the different declarations.
30318 * prj-part.adb (With_Record): New component Node
30319 (Parse): New Boolean parameter Store_Comments, defaulted to False.
30320 Set the scanner to return ends of line and comments as tokens, if
30321 Store_Comments is True.
30322 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
30323 comments are associated with these nodes. Store the node IDs in the
30325 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
30327 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
30328 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
30329 current project. Call Tree.Restore afterwards. Set the various nodes
30330 for comment storage (Next_End, End_Of_Line, Previous_Line,
30333 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
30334 defaulted to False.
30336 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
30337 to False. When Truncated is True, truncate the string, never go to the
30339 (Write_End_Of_Line_Comment): New procedure
30340 (Print): Process comments for nodes N_With_Clause,
30341 N_Package_Declaration, N_String_Type_Declaration,
30342 N_Attribute_Declaration, N_Typed_Variable_Declaration,
30343 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
30344 Process nodes N_Comment.
30346 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
30347 without comments and there are some comments, set the flag
30348 Unkept_Comments to True.
30349 (Scan): If there are comments, set the flag Unkept_Comments to True and
30350 clear the comments.
30351 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
30352 (Next_End_Nodes: New table
30353 (Comment_Zones_Of): New function
30354 (Scan): New procedure; moved from Prj. Accumulate comments in the
30355 Comments table and set end of line comments, comments after, after end
30357 (Add_Comments): New procedure
30358 (Save, Restore, Seset_State): New procedures
30359 (There_Are_Unkept_Comments): New function
30360 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
30361 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
30363 (First_Comment_After, First_Comment_After_End): New functions
30364 (First_Comment_Before, First_Comment_Before_End): New functions
30365 (Next_Comment): New function
30366 (End_Of_Line_Comment, Follows_Empty_Line,
30367 Is_Followed_By_Empty_Line): New functions
30368 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
30369 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
30370 (Set_Next_Comment): New procedure
30371 (Default_Project_Node): Associate comment before if the node can store
30374 * scans.ads (Token_Type): New enumeration value Tok_Comment
30375 (Comment_Id): New global variable
30377 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
30378 defaulted to False.
30379 (Scan): Store position of start of comment. If comments are tokens, set
30380 Comment_Id and set Token to Tok_Comment when scanning a comment.
30381 (Set_Comment_As_Token): New procedure
30383 * sinput-p.adb: Update Copyright notice
30384 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
30385 that no longer exists.
30387 2003-12-08 Javier Miranda <miranda@gnat.com>
30389 * sem_aggr.adb: Add dependence on Exp_Tss package
30390 Correct typo in comment
30391 (Resolve_Aggregate): In case of array aggregates set the estimated
30392 type of the aggregate before calling resolve. This is needed to know
30393 the name of the corresponding IP in case of limited array aggregates.
30394 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
30395 in case of default initialized array components.
30397 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
30398 types. Required to give support to limited aggregates in generic
30401 2003-12-08 Ed Schonberg <schonberg@gnat.com>
30403 * sem_ch3.adb (Check_Initialization): For legality purposes, an
30404 inlined body functions like an instantiation.
30405 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
30406 until bounds are analyzed, to diagnose premature use of type.
30408 * sem_util.adb (Wrong_Type): Improve error message when the type of
30409 the expression is used prematurely.
30411 2003-12-08 GNAT Script <nobody@gnat.com>
30413 * Make-lang.in: Makefile automatically updated
30415 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
30417 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
30418 they are automatically generated by Make-lang.in and cause nothing but
30419 maintenance troubles.
30421 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
30423 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
30424 version of this unit).
30426 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
30428 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
30429 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
30430 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
30431 the body of System.Interrupt_Management common to several targets.
30432 Update copyright notice when appropriate.
30434 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
30437 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
30438 to ensure that the kernel fills in the interrupted context structure
30439 before calling a signal handler, which is necessary to be able to
30440 unwind past it. Update the copyright notice.
30442 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
30444 * a-elchha.ads: New file.
30446 * a-elchha.adb: New default last chance handler. Contents taken from
30447 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
30449 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
30450 is moved to a-elchha.adb to provide a target-independent default last
30453 * Makefile.rtl: Add a-elchha.o
30455 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
30457 2003-12-05 Ed Schonberg <schonberg@gnat.com>
30459 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
30460 declared in an instance, do not inline the call if the instance is not
30461 frozen yet, to prevent order of elaboration problems.
30463 * sem_prag.adb: Add comments for previous fix.
30465 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
30467 * g-table.adb: Use the right variable in Set_Item.
30468 Update copyright notice.
30470 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
30472 * Makefile.in: Remove unused rules.
30474 2003-12-05 Vincent Celier <celier@gnat.com>
30476 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
30477 -nostdlib. Not needed here after all.
30479 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
30482 * adaint.h, adaint.c, g-os_lib.ads:
30483 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
30484 on some platforms (including FreeBSD), it is a 64 bit value.
30485 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
30487 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
30489 * gnatvsn.ads (Library_Version): Now contain only the relevant
30491 (Verbose_Library_Version): New constant.
30493 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
30494 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
30495 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
30497 * gnatlbr.adb: Clean up: replace Library_Version by
30498 Verbose_Library_Version.
30500 * make.adb, lib-writ.adb, exp_attr.adb:
30501 Clean up: replace Library_Version by Verbose_Library_Version.
30503 * 5lintman.adb: Removed.
30506 Update and simplify computation of LIBRARY_VERSION.
30507 Fix computation of GSMATCH_VERSION.
30508 5lintman.adb is no longer used: replaced by 7sintman.adb.
30510 2003-12-03 Robert Dewar <dewar@gnat.com>
30513 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
30514 name. Modified to consider small non-bit-packed arrays as troublesome
30515 and in need of component-by-component assigment expansion.
30517 2003-12-03 Vincent Celier <celier@gnat.com>
30519 * lang-specs.h: Process nostdlib as nostdinc
30521 * back_end.adb: Update Copyright notice
30522 (Scan_Compiler_Arguments): Process -nostdlib directly.
30524 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
30527 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
30528 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
30529 included in HIE_NONE_TARGET_PAIRS.
30531 2003-12-03 Ed Schonberg <schonberg@gnat.com>
30534 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
30535 is legal in an instance, because legality is cheched in the template.
30538 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
30539 appplied to an unchecked conversion of a formal parameter.
30542 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
30545 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
30547 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
30548 routines. The second one is new functionality to deal with backtracing
30549 through signal handlers.
30550 (unwind): Split into the two separate subroutines above.
30551 Update the documentation, and deal properly with sizeof (REG) different
30552 from sizeof (void*).
30554 2003-12-01 Nicolas Setton <setton@act-europe.fr>
30556 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
30557 so that the debugger can reliably access the value of the parameter,
30558 and therefore is able to display the exception name when an exception
30559 breakpoint is reached.
30561 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
30563 * fmap.adb: Fix typo in warning message.
30565 * g-socket.ads, g-socket.adb: Make Free a visible instance of
30566 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
30568 2003-12-01 Vincent Celier <celier@gnat.com>
30570 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
30572 (Build_Library): Get the switches only if Default_Switches is declared
30575 2003-12-01 Ed Schonberg <schonberg@gnat.com>
30577 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
30578 actuals that are indexed components, reanalyze actual to ensure that
30579 packed array references are properly expanded.
30581 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
30582 attempted assignment to a discriminant.
30584 2003-12-01 Robert Dewar <dewar@gnat.com>
30586 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
30589 * switch-c.adb: Minor reformatting of comments
30591 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
30593 * Makefile.in: Clean ups.
30595 2003-12-01 GNAT Script <nobody@gnat.com>
30597 * Make-lang.in: Makefile automatically updated
30599 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
30601 * 5wsystem.ads: Disable zero cost exception, not ready yet.
30603 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
30605 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
30606 to force serialization.
30608 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
30610 * g-socket.ads, g-socket.adb:
30611 Clarify documentation of function Stream. Introduce a Free procedure
30612 to release the returned Stream once it becomes unused.
30614 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
30616 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
30618 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
30619 since NT 4 cannot handle timeout values that are too large,
30620 e.g. DWORD'Last - 1.
30622 2003-11-26 Ed Schonberg <schonberg@gnat.com>
30625 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
30626 in procedure calls and whose expansion must be deferred.
30628 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
30632 (Build_Derived_Array_Type): Create operator for unconstrained type
30633 if ancestor is unconstrained.
30635 2003-11-26 Vincent Celier <celier@gnat.com>
30637 * make.adb (Project_Object_Directory): New global variable
30638 (Change_To_Object_Directory): New procedure
30639 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
30640 of Change_Dir directly. Do not change working directory to object
30641 directory of main project after each compilation.
30642 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
30644 Change to object directory of main project before binding step.
30645 (Initialize): Initialize Project_Object_Directory to No_Project
30648 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
30649 binding a Stand-Alone Library.
30651 * output.adb: Update Copyright notice
30652 (Write_Char): Output buffer when full
30654 2003-11-26 Robert Dewar <dewar@gnat.com>
30656 * sem_ch13.adb: (Check_Size): Reset size if size is too small
30659 (Check_Size): Fix documentation to include bit-packed array case
30661 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
30663 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
30665 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
30667 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
30670 * utils.c (init_gigi_decls): Change name of built-in setjmp to
30671 __builtin_setjmp, since this is apparently needed by recent
30674 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30676 * adadecode.c: Only include ctype.h if not IN_GCC.
30677 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
30679 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
30682 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
30683 signals and interrupts.
30685 * 5zintman.ads: New File.
30687 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
30688 add exception signals to the set of unmasked signals.
30691 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
30692 between signals and interrupts.
30693 Add to Unblocked_Signal_Mask the set of signals that are in
30697 Adding a check to see whether the Interrupt_ID we want to unmask is in
30698 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
30699 reason is that the index type of the Keep_Unmasked array is not always
30700 Interrupt_ID; it may be a subtype of Interrupt_ID.
30702 2003-11-24 Gary Dismukes <dismukes@gnat.com>
30705 (Remove_Side_Effects): Condition constantness of object created for a
30706 an unchecked type conversion on the constantness of the expression
30707 to ensure the correct value for 'Constrained when passing components
30708 of view-converted class-wide objects.
30710 2003-11-24 Robert Dewar <dewar@gnat.com>
30712 * par-load.adb (Load): Improve handling of misspelled and missing units
30713 Removes several cases of compilation abandoned messages
30715 * lib.adb: (Remove_Unit): New procedure
30717 * lib.ads: (Remove_Unit): New procedure
30719 * lib-load.adb: Minor reformatting
30721 2003-11-24 Vincent Celier <celier@gnat.com>
30724 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
30725 (Marking_Label): Label to mark processed source files. Incremented for
30727 (Gnatmake): Increase Marking_Labet for each executable
30728 (Is_Marked): Compare against marking label
30729 (Mark): Mark with marking label
30731 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
30734 Move the declaration of the TSD for System.Threads to System.Soft_Links.
30737 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
30738 (rts-cert): build a single relocatable object for the run-time lib.
30741 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
30744 Use gnatls rather than gcc to obtain the location of GNAT RTL for
30747 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
30749 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
30750 can not use it as before (that is, as a variable) when dumping it into
30751 the tree file. Add a local variable to store the result of this
30752 function and to be used as the string to be written into the tree.
30754 * scn.adb (Initialize_Scanner): Add comments explaining the recent
30757 * sinput.adb (Source_First, Source_Last): In case of
30758 Internal_Source_File, replace returning attributes of
30759 Internal_Source_Ptr (which is wrong) with returning attributes of
30762 2003-11-24 Ed Schonberg <schonberg@gnat.com>
30765 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
30766 used for implicit concatenation operators.
30770 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
30771 task bodies that are in the scope of a Suppress pragma.
30772 (Check_A Call): Use the flag to prevent spurious elaboration checks.
30774 * sinfo.ads, sinfo.adb:
30775 New flag No_Elaboration_Check on function/procedure calls, to properly
30776 suppress checks on calls in task bodies that are within a local suppress
30780 (Expand_Concatenate_Other): Use the proper integer type for the
30781 expression for the upper bound, to avoid universal_integer computations
30784 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
30786 * .cvsignore: Delete.
30788 2003-11-21 Andreas Schwab <schwab@suse.de>
30790 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
30792 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
30794 * 5wsystem.ads: Enable zero cost exception.
30796 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
30798 * 5ztiitho.adb: Remove an unreferenced variable.
30800 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
30802 * adaint.c: For FreeBSD, use mkstemp.
30804 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
30806 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
30808 2003-11-21 Robert Dewar <dewar@gnat.com>
30810 * bld.adb: Remove useless USE of gnatvsn
30812 * gnatchop.adb: Minor reformatting
30813 Clean up version handling to be more consistent
30815 * gnatxref.adb: Minor reformatting
30817 * gprcmd.adb: Minor reformatting
30818 Fix output of copyright to be more consistent with other tools
30820 2003-11-21 Vincent Celier <celier@gnat.com>
30822 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
30824 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
30826 * atree.adb (Initialize): Add initializations for global variables
30827 used in New_Copy_Tree.
30829 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
30830 Internal_Source_File as the actual).
30831 Put the set of statements creating Any_Character before the set of
30832 statements creating Any_Array to have Any_Character fully initialized
30833 when it is used in creating Any_Array.
30835 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
30836 not call Scan in case if the actual is Internal_Source_File
30837 Add 2003 to copyright note.
30839 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
30840 processing Internal_Source_File.
30842 * types.ads: Add the constant Internal_Source_File representing the
30843 source buffer for artificial source-code-like strings created within
30844 the compiler (the definition of Source_File_Index is changed).
30846 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
30848 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
30849 56system.ads: New file, FreeBSD version.
30851 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
30853 * Make-lang.in (ada.extraclean): Delete.
30855 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
30857 * gnatmem.adb: Clean up verbose output.
30859 * gprcmd.adb: Change copyright to FSF.
30861 2003-11-19 Vincent Celier <celier@gnat.com>
30863 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
30864 and Version (ignored).
30866 * symbols.ads: (Policy): New type
30867 (Initialize): New parameter Reference, Symbol_Policy and
30869 Remove parameter Force.
30870 Minor reformatting.
30872 * snames.ads, snames.adbadb: New standard names
30873 Library_Reference_Symbol_File and Library_Symbol_Policy
30876 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
30880 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
30882 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
30884 * prj.adb: (Project_Empty): New component Symbol_Data
30886 * prj.ads: (Policy, Symbol_Record): New types
30887 (Project_Data): New component Symbol_Data
30890 New attributes Library_Symbol_File, Library_Symbol_Policy and
30891 Library_Reference_Symbol_File.
30894 (Ada_Check): When project is a Stand-Alone library project, process
30895 attribute Library_Symbol_File, Library_Symbol_Policy and
30896 Library_Reference_Symbol_File.
30898 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30899 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
30900 5sml-tgt.adb (Build_Dynamic_Library): New parameter
30901 Symbol_Data (ignored).
30903 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
30904 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
30905 functions Option_File_Name and Version_String. Set new options of
30906 gnatsym related to symbol file, symbol policy and reference symbol
30910 Extensive modifications to take into account the reference symbol file,
30911 the symbol policy, the library version and to put in the symbol file the
30912 minor and major IDs.
30914 * bld.adb (Process_Declarative_Items): Put second argument of
30915 gprcmd to_absolute between single quotes, to avoid problems with
30918 * bld-io.adb: Update Copyright notice.
30919 (Flush): Remove last character of a line, if it is a back slash, to
30920 avoid make problems.
30923 Implement new scheme with reference symbol file and symbol policy.
30925 * g-os_lib.ads: (Is_Directory): Clarify comment
30927 2003-11-19 Robert Dewar <dewar@gnat.com>
30929 * atree.adb: Move New_Copy_Tree global variables to head of package
30931 * errout.adb: Minor reformatting
30933 2003-11-19 Javier Miranda <miranda@gnat.com>
30935 * sem_ch4.adb: (Diagnose_Call): Improve error message.
30936 Add reference to Ada0Y (AI-50217)
30938 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
30939 sem_util.adb: Add reference to AI-50217
30941 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
30943 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
30945 * sem_aggr.adb: Complete documentation of AI-287 changes
30947 * par-ch4.adb: Document previous changes.
30949 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
30950 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
30953 * exp_aggr.adb: Add references to AI-287 in previous changes
30955 2003-11-19 Ed Schonberg <schonberg@gnat.com>
30958 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
30959 in the rewriting is the result of an inlined call.
30961 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
30962 parameter is a type conversion, use original node to construct the
30963 post-call assignment, because expression may have been rewritten, e.g.
30964 if it is a packed array.
30967 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
30968 body, just as it is in an instance.
30969 Categorization routines
30971 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
30972 Instantiate_Object): Set proper sloc reference for message on missing
30975 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
30977 * Makefile.in: Add FreeBSD libgnat pairs.
30979 * usage.adb: Fix typo in usage message.
30981 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
30983 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
30984 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
30985 pragma Thread_Body.
30986 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
30988 * s-thread.adb: This file is now a dummy implementation of
30991 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
30993 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
30995 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
30997 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
30998 instanciation references in the parent type description.
31000 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31002 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
31004 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
31005 TYPE_PRECISION directly from esize.
31007 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
31010 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
31012 * init.c: Initialization routines for FreeBSD
31014 * link.c: Link info for FreeBSD
31016 * sysdep.c: Add the case of FreeBSD
31018 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
31020 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
31021 already called in System.Threads.
31023 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
31024 environment task, as it has been moved to System.Threads.Initialization.
31026 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
31028 * adaint.c (__gnatlib_install_locks): Only reference
31029 __gnat_install_locks on VMS, since other platforms can avoid using
31030 --enable-threads=gnat
31032 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31034 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
31036 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
31037 TYPE_PACKED_ARRAY_TYPE_P.
31038 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
31040 Part of PR ada/12806
31041 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
31042 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
31044 2003-11-17 Vincent Celier <celier@gnat.com>
31046 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
31048 Do not set exit status to Failure when Warning is True.
31049 (Gnatchop): Make errors "no compilation units found" and
31050 "no source files written" warnings only.
31052 * make.adb (Gnatmake): When using a project file, set
31053 Look_In_Primary_Dir to False.
31054 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
31055 and Local_Configuration_Pragmas in the project where they are declared
31056 not an extending project which might have inherited them.
31058 * osint.adb (Locate_File): If Name is already an absolute path, do not
31059 look for a directory.
31061 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
31062 -gnats (Check_Syntax) is used, issue only a warning, not an error.
31064 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
31065 in objects of type Variable_Value.
31067 * prj.ads: (Variable_Value): New component Project
31069 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
31070 is in a project extended by Project.
31072 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
31073 Project of Variable_Values to this new parameter value.
31074 (Expression): Set component Project of Variable_Values.
31075 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
31076 Set the component Project in array elements.
31078 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
31080 * errout.adb: (Initialize): Add initialization for error nodes.
31082 * sem_ch12.adb (Initialize): Add missing initializations for
31083 Exchanged_Views and Hidden_Entities.
31085 2003-11-17 Ed Schonberg <schonberg@gnat.com>
31087 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
31088 already instantiated tree for use in subsequent inlining.
31089 (Analyze_Associations, Instantiate_Formal_Subprogram,
31090 Instantiate_Object): improve error message for mismatch in
31093 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
31094 instantiations of subprograms declared in instances.
31096 2003-11-17 Javier Miranda <miranda@gnat.com>
31098 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
31099 executed only under the Extensions_Allowed flag.
31101 2003-11-17 Robert Dewar <dewar@gnat.com>
31103 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
31105 (Address_Image): Fix bug of returning 0x instead of 0x0
31106 Minor reformatting (function specs).
31108 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
31109 (missed case of 33-63)
31111 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
31113 * s-thread.adb: Add comments for pragma Restriction
31115 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
31116 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
31118 2003-11-17 Ed Falis <falis@gnat.com>
31120 * s-thread.adb: Added No_Tasking restriction for this implementation.
31122 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
31124 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31125 instanciation references in the parent type description.
31127 2003-11-17 GNAT Script <nobody@gnat.com>
31129 * Make-lang.in: Makefile automatically updated
31131 2003-11-16 Jason Merrill <jason@redhat.com>
31133 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
31134 and TAGS files that include them for each front end.
31136 2003-11-14 Andreas Jaeger <aj@suse.de>
31138 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
31139 is the canonical version.
31140 * misc.c (gnat_handle_option): Likewise.
31142 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
31144 * 5nsystem.ads: New file for x86_64-linux-gnu.
31146 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
31148 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
31150 * comperr.adb: Fix logic in previous change.
31152 2003-11-13 Vincent Celier <celier@gnat.com>
31154 * 5bml-tgt.adb (Build_Dynamic_Library): Use
31155 Osint.Include_Dir_Default_Prefix instead of
31156 Sdefault.Include_Dir_Default_Name.
31158 * gnatlbr.adb: Update Copyright notice
31159 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
31160 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
31161 instead of Sdefault.Object_Dir_Default_Name
31164 (Process_Binder_File): Never suppress the option following -Xlinker
31167 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
31168 Sdefault.Object_Dir_Default_Name.
31170 * osint.ads, osint.adb:
31171 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
31172 Minor reformatting.
31174 * vms_conv.ads: Minor reformating
31175 Remove GNAT STANDARD and GNAT PSTA
31178 Allow GNAT MAKE to have several files on the command line.
31179 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
31180 Sdefault.Object_Dir_Default_Name.
31182 Remove data for GNAT STANDARD
31185 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
31186 Remove data for GNAT STANDARD
31187 Remove options and documentation for -gnatwb/-gnatwB: these warning
31188 options no longer exist.
31190 2003-11-13 Ed Falis <falis@gnat.com>
31192 * 5zthrini.adb: (Init_RTS): Made visible
31195 (Register): Removed unnecessary call to taskVarGet that checked whether
31196 an ATSD was already set as a task var for the argument thread.
31199 Updated comment to reflect that this is a VxWorks version
31200 Added context clause for System.Threads.Initialization
31201 Added call to System.Threads.Initialization.Init_RTS
31203 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
31206 (Init_RTS): New procedure, for the initialization of the run-time lib.
31209 Remove dependancy on System.Init, so that this file can be used in the
31210 AE653 sequential run-time lib.
31212 2003-11-13 Robert Dewar <dewar@gnat.com>
31214 * bindgen.adb: Minor reformatting
31216 2003-11-13 Ed Schonberg <schonberg@gnat.com>
31219 (Apply_Discriminant_Check): Do no apply check if target type is derived
31220 from source type with no applicable constraint.
31223 (Ensure_System_Dependency): Do not apply the style checks that may have
31224 been specified for the main unit.
31227 (Find_Selected_Component): Further improvement in error message, with
31231 (Resolve): Handle properly the case of an illegal overloaded protected
31234 2003-11-13 Javier Miranda <miranda@gnat.com>
31237 (Has_Default_Init_Comps): New function to check the presence of
31238 default initialization in an aggregate.
31239 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
31240 extension aggregate of a limited record. In addition, a new formal
31241 was added to do not initialize the record controller (if any) during
31242 this recursive expansion of ancestors.
31243 (Init_Controller): Add support for limited record components.
31244 (Expand_Record_Aggregate): In case of default initialized components
31245 convert the aggregate into a set of assignments.
31247 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
31248 describing the new syntax.
31249 Nothing else needed to be done because this subprogram delegates part of
31250 its work to P_Precord_Or_Array_Component_Association.
31251 (P_Record_Or_Array_Component_Association): Give support to the new
31252 syntax for default initialization of components.
31255 (Resolve_Aggregate): Relax the strictness of the frontend in case of
31256 limited aggregates.
31257 (Resolve_Record_Aggregate): Give support to default initialized
31259 (Get_Value): In case of default initialized components, duplicate
31260 the corresponding default expression (from the record type
31261 declaration). In case of default initialization in the *others*
31262 choice, do not check that all components have the same type.
31263 (Resolve_Extension_Aggregate): Give support to limited extension
31267 (Check_Initialization): Relax the strictness of the front-end in case
31268 of aggregate and extension aggregates. This test is now done in
31269 Get_Value in a per-component manner.
31271 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
31272 expression corresponds to a limited aggregate. This test is now done
31275 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
31278 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
31279 present in an N_Component_Association node
31281 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
31283 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
31284 type-conformant entry only if they are homographs.
31286 2003-11-13 GNAT Script <nobody@gnat.com>
31288 * Make-lang.in: Makefile automatically updated
31290 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31292 * adadecode.c: Use <> form of include for ctype.h.
31293 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
31295 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31297 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
31298 Works around PR middle-end/6552.
31300 2003-11-10 Ed Falis <falis@gnat.com>
31302 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
31304 * 5zinit.adb: (Install_Handler): Moved back to spec
31305 (Install_Signal_Handlers): Deleted
31307 * 5zthrini.adb: Added context clause for System.Storage_Elements
31308 (Register): Only handles creation of taskVar; initialization moved to
31310 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
31311 Added declaration of environment task secondary stack and
31314 * s-thread.adb: Implement bodies for thread body processing
31317 Added comment identifying supported targets for pragma Thread_Body.
31319 2003-11-10 Pascal Obry <obry@gnat.com>
31321 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
31325 (Open): Properly check for string length before copying into the buffer.
31326 Raises Name_Error if buffer is too small. Note that this was a potential
31329 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
31331 * bindgen.adb, comperr.adb: Code clean ups.
31332 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
31334 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
31336 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
31338 2003-11-10 Vincent Celier <celier@gnat.com>
31341 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
31344 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
31346 * prj.adb: (Project_Empty): Add new boolean component Virtual
31348 * prj.ads: (Virtual_Prefix): New constant string
31349 (Project_Data): New boolean component Virtual
31351 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
31352 a library project is extended by a virtual extending project.
31355 Modifications throughout to implement extending-all project, including:
31356 (Virtual_Hash, Processed_Hash): New hash tables
31357 (Create_Virtual_Extending_Project): New procedure
31358 (Look_For_Virtual_Projects_For): New procedure
31361 (Process): After checking the projects, if main project is an
31362 extending-all project, set the object directory of all virtual extending
31363 project to the object directory of the main project.
31364 Adjust error message when a virtual extending project has the same
31365 object directory as an project being extended.
31366 (Recursive_Process): If name starts with the virtual prefix, set Virtual
31367 to True in the project data.
31370 (Default_Project_Node): Add new boolean component Extending_All
31371 (Is_Extending_All): New function
31372 (Set_Is_Extending_All): New procedure
31374 * prj-tree.ads: (Is_Extending_All): New function
31375 (Set_Is_Extending_All): New procedure
31376 (Project_Node_Record): New boolean component Extending_All
31378 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
31381 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
31383 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
31384 "gprcmd prefix" to define it.
31386 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
31388 * einfo.ads: Fix a typo and remove an extraneous word in comments.
31391 (Create_Dummy_Package_Unit): Set the scope of the entity for the
31392 created dummy package to Standard_Standard, not to itself, to
31393 defend other parts of the front-end against encoutering a cycle in
31397 (Analyze_With_Clause): When setting the entities for the successive
31398 N_Expanded_Names that constitute the name of a child unit, do not
31399 attempt to go further than Standard_Standard in the chain of scopes.
31400 This case arises from the placeholder units created by
31401 Create_Dummy_Package_Unit in the case of a with_clause for a
31402 nonexistent child unit.
31404 2003-11-10 Ed Schonberg <schonberg@gnat.com>
31407 (Expand_Thread_Body): Place subprogram on scope stack, so that new
31408 declarations are given the proper scope.
31411 (Check_Expr_Constants): Reject an expression that contains a constant
31412 created during expansion, and that appears after the object to which
31413 the address clause applies.
31415 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
31416 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
31417 that uses 'Range of a function call with controlled components, so
31418 that the function result can be finalized before starting the loop.
31421 (Find_Selected_Component): Improve error message when prefix is
31422 an implicit dereference of an incomplete type.
31424 2003-11-10 Robert Dewar <dewar@gnat.com>
31426 * opt.ads: New Print_Standard flag for -gnatS switch
31428 * sem_ch13.adb: Remove some additional checks for unaligned arrays
31430 * cstand.adb (Create_Standard): Print out package standard if -gnatS
31433 * debug.adb: Update doc for -gnatds to discuss relationship with new
31436 * sinfo.adb: Add new field Entity_Or_Associated_Node
31438 * sinfo.ads: Add new field Entity_Or_Associated_Node
31439 Update documentation for Associated_Node and Entity fields to clarify
31440 relationship and usage.
31443 (Write_Id): Properly process Associated_Node field in generic template
31446 Recognize new -gnatS switch for printing package Standard
31447 This replaces gnatpsta
31450 Add line for new -gnatS switch for printing package Standard
31451 This replaces gnatpsta
31453 2003-11-10 Andreas Jaeger <aj@suse.de>
31455 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
31458 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31460 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
31463 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31465 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
31468 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
31470 * sysdep.c: Add handling of cygwin.
31472 2003-11-10 GNAT Script <nobody@gnat.com>
31474 * Make-lang.in: Makefile automatically updated
31476 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31479 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
31480 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
31481 Replace GNAT_ROOT by GCC_ROOT.
31483 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
31485 2003-11-06 Zack Weinberg <zack@codesourcery.com>
31487 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
31488 and update for changed meaning of GET_MODE_BITSIZE.
31490 2003-11-04 Doug Rupp <rupp@gnat.com>
31492 * sysdep.c: Problem discovered during IA64 VMS port.
31493 [VMS] #include <unixio.h> to get proper prototypes.
31496 Issues discovered/problems fixed during IA64 VMS port.
31497 [VMS] #define _POSIX_EXIT for proper semantics.
31498 [VMS] #include <unixio.h> for proper prototypes.
31499 [VMS] (fork): #define IA64 version.
31500 (__gnat_os_exit): Remove unnecessary VMS specific code.
31502 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31504 Part of PR ada/12806
31505 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
31509 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
31512 * targtyps.c, decl.c, misc.c,
31513 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
31514 routines to work around change in FP sizing semantics in GCC.
31517 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
31519 * gigi.h: (enumerate_modes): New function.
31521 * Make-lang.in: (ada/misc.o): Add real.h.
31523 * misc.c: (enumerate_modes): New function.
31525 2003-11-04 Robert Dewar <dewar@gnat.com>
31527 * 3vtrasym.adb: Minor reformatting
31528 Use terminology encoded/decoded name, rather than C++ specific notion
31529 of mangling (this is the terminology used throughout GNAT).
31531 * einfo.h: Regenerated
31533 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
31536 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
31538 * par-prag.adb: Add dummy entry for Thread_Body pragma
31541 Add entries for System.Threads entities for thread body processing
31544 (Analyze_Pragma, Access attributes): Check these are not applied to a
31545 thread body, since this is not permitted
31547 * sem_prag.adb: Add processing for Thread_Body pragma.
31551 (Resolve_Call): Check for incorrect attempt to call a thread body
31552 procedure with a direct call.
31554 * snames.ads, snames.adb: Add entry for Thread_Body pragma
31555 Add names associated with thread body expansion
31557 * snames.h: Add entry for Thread_Body pragma
31559 * s-thread.adb: Add entries for thread body processing
31560 These are dummy bodies so far
31562 * s-thread.ads: Add documentation on thread body handling.
31563 Add entries for thread body processing.
31565 2003-11-04 Javier Miranda <miranda@gnat.com>
31568 (Build_Limited_Views): Return after posting an error in case of limited
31569 with_clause on subprograms, generics, instances or generic renamings
31570 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
31571 on subprograms, generics, instances or generic renamings
31573 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
31575 * raise.c (setup_to_install): Correct mistake in last revision; two
31576 arguments out of order.
31578 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
31579 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
31580 notice, missed in previous change.
31581 Remove trailing blanks and other style errors introduced in previous
31584 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
31586 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
31587 rid of the wrapper for a LJM type, ensuring we don't do that if the
31588 field is addressable. This avoids potential low level type view
31589 mismatches later on, for instance in a by-reference argument passing
31592 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31594 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
31595 aligned at byte boundary.
31597 2003-11-04 Joel Brobecker <brobecker@gnat.com>
31599 * decl.c (components_to_record): Do not delete the empty variants from
31600 the end of the union type.
31602 2003-11-04 Ed Schonberg <schonberg@gnat.com>
31604 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
31605 operation for a derived type, an explicit declaration may use a local
31606 subtype of Boolean.
31608 2003-11-04 Vincent Celier <celier@gnat.com>
31610 * make.adb (Gnatmake): Allow main sources on the command line with a
31611 library project when it is only for compilation (no binding or
31614 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31616 * Makefile.in: Remove many duplicate variables.
31618 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
31620 * Make-lang.in (dvi): Move targets to $(docobjdir).
31621 (gnat_ug_vms.dvi): Simplify rule and adjust target.
31622 (gnat_ug_wnt.dvi): Likewise.
31623 (gnat_ug_unx.dvi): Likewise.
31624 (gnat_ug_vxw.dvi): Likewise.
31625 (gnat_rm.dvi): Likewise.
31626 (gnat-style.dvi): Likewise.
31628 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
31630 * gigi.h: Missed commit from update for C90.
31632 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
31634 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
31636 2003-10-31 Andreas Schwab <schwab@suse.de>
31638 * raise.c (get_action_description_for): Fix typo in last change.
31640 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
31643 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
31644 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
31646 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
31648 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
31649 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
31650 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
31651 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
31652 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
31654 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
31657 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
31658 numbers when symbol name is too long.
31660 2003-10-30 Ed Falis <falis@gnat.com>
31662 * g-signal.ads, g-signal.adb: New files
31664 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
31666 * Makefile.rtl: Introduce GNAT.Signals
31668 2003-10-30 Robert Dewar <dewar@gnat.com>
31670 * freeze.adb: Minor reformatting
31672 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
31674 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
31675 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
31676 New handling of Id_Check parameter to improve recognition of keywords
31677 used as identifiers.
31678 Update copyright notice to include 2003
31680 2003-10-29 Robert Dewar <dewar@gnat.com>
31682 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
31683 sem_ch10.adb: Minor reformatting
31685 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
31686 (Expand_Assign_Record): Test right hand side for bit unaligned as well
31688 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
31690 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
31691 Support for TBK$SYMBOLIZE-based symbolic traceback.
31693 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
31696 Revert previous change, that did not work well when pragma No_Run_Time
31697 was used in conjunction with a run-time other than ZFP.
31699 2003-10-29 Vincent Celier <celier@gnat.com>
31702 (Gnatmake): When there are no Ada mains in attribute Main, disable the
31703 bind and link steps only is switch -z is not used.
31705 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
31707 * Makefile.generic: Remove duplicated setting of CC.
31709 * Makefile.prolog: Set CC to gcc by default, to override make's
31712 * einfo.h: Regenerated.
31714 2003-10-29 Ed Schonberg <schonberg@gnat.com>
31716 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
31717 current body, after compiling subunit.
31719 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
31720 when in deleted code, because gigi needs properly ordered freeze
31721 actions to annotate types.
31723 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
31724 prevent the premature freezing of record type that contains
31725 subcomponents with a private type that does not yet have a completion.
31727 2003-10-29 Javier Miranda <miranda@gnat.com>
31730 (Analyze_Package_Instantiation): Check that instances can not be used in
31731 limited with_clauses.
31734 (Analyze_Package_Renaming): Check that limited withed packages cannot
31735 be renamed. Improve text on error messages related to limited
31738 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
31740 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
31741 Update copyright notice.
31743 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
31744 (Install_Limited_Context_Clauses): New subprogram that isolates all the
31745 checks required for limited context_clauses and installs the limited
31747 (Install_Limited_Withed_Unit): Complete its documentation.
31748 (Analyze_Context): Check that limited with_clauses are only allowed in
31750 (Install_Context): Call Install_Limited_Context_Clauses after the
31751 parents have been installed.
31752 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
31753 package as 'From_With_Type'; this mark indicates that the limited view
31754 is installed. Used to check bad usages of limited with_clauses.
31755 (Build_Limited_Views): Do not add shadow entities to the scope's list
31756 of entities. Do not add real entities to the Non_Limited_Views chain.
31757 Improve error notification.
31758 (Remove_Context_Clauses): Remove context clauses in two phases:
31759 limited views first and regular views later (to maintain the
31761 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
31762 its visible entities.
31764 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
31766 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
31767 with any type that Is_Fixed_Point_Type.
31769 * sinfo.ads: Fix documentation for Associated_Node attribute.
31771 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
31773 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
31774 both '-gnatc' and '-gnatt' are specified.
31776 * atree.adb (Initialize): Add initialization for Node_Count (set to
31779 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31781 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
31782 do not consider as Pure.
31784 Part of implementation of function-at-a-time:
31786 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
31787 (tree_transform): Add new argument to build_component_ref.
31788 (tree_transform, case N_Assignment_Statement): Make and return an
31790 (tree_transform): If result IS_STMT, set flags and return it.
31791 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31793 * utils2.c (build_simple_component_ref, build_component_ref): Add new
31795 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
31796 (build_allocator): Likewise.
31798 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
31799 Add new arg to build_component_ref.
31800 (maybe_unconstrained_array, unchecked_convert): Likewise.
31802 * ada-tree.def (EXPR_STMT): New code.
31804 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
31806 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
31807 build_component_ref calls.
31809 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
31811 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31812 (build_component_ref): Add new argument, NO_FOLD_P.
31814 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
31816 * Makefile.generic: Add missing substitution on object_deps handling.
31819 * Make-lang.in (check-ada): Enable ACATS test suite.
31821 2003-10-27 Robert Dewar <dewar@gnat.com>
31824 (Freeze_Array_Type): We do not need an initialization routine for types
31825 derived from String or Wide_String. They should be treated the same
31826 as String and Wide_String themselves. This caused problems with the
31827 use of Initialize_Scalars.
31830 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
31831 composites. This allows use of component clauses that are not byte
31835 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
31836 is an attempt to pack an array of atomic objects.
31838 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
31840 2003-10-27 Pascal Obry <obry@gnat.com>
31843 (Basename): Check for drive letters in a pathname only on DOS based OS.
31845 2003-10-27 Vincent Celier <celier@gnat.com>
31848 (Gnatmake): When unable to change dir to the object dir, display the
31849 content of the parent dir of the obj dir, to try to understand why this
31852 2003-10-27 GNAT Script <nobody@gnat.com>
31854 * Make-lang.in: Makefile automatically updated
31856 2003-10-27 Ed Schonberg <schonberg@gnat.com>
31859 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
31860 should not be done in Save/Restore_Scope_Stack, because it is performed
31864 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31865 whether use clauses should be removed/restored.
31868 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31869 whether use clauses should be removed/restored.
31871 2003-10-26 Andreas Jaeger <aj@suse.de>
31873 * Makefile.in: Remove duplicated lines.
31875 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
31877 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
31878 minimize the differences with ACT tree.
31880 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
31881 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
31882 Gnatvsn.Gnat_Static_Version_String to reduce differences between
31885 2003-10-24 Pascal Obry <obry@gnat.com>
31888 * adadecode.c (ostrcpy): New function.
31889 (__gnat_decode): Use ostrcpy of strcpy.
31890 (has_prefix): Set first parameter a const.
31891 (has_suffix): Set first parameter a const.
31892 Update copyright notice. Fix source name in header.
31893 Removes a trailing space.
31895 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
31898 Remove the test against being in No_Run_Time_Mode before generating a
31899 call to Register_Tag. It is redundant with the test against the
31900 availability of the function Register_Tag.
31902 2003-10-24 Vincent Celier <celier@gnat.com>
31904 * g-catiio.adb: (Month_Name): Correct spelling of February
31906 * make.adb: (Mains): New package
31907 (Initialize): Call Mains.Delete
31908 (Gnatmake): Check that each main on the command line is a source of a
31909 project file and, if there are several mains, each of them is a source
31910 of the same project file.
31911 (Gnatmake): When a foreign language is specified in attribute Languages,
31912 no main is specified on the command line and attribute Mains is not
31913 empty, only build the Ada main. If there is no Ada main, just compile
31914 the Ada sources and their closure.
31915 (Gnatmake): If a main is specified on the command line with directory
31916 information, check that the source exists and, if it does, that the path
31917 is the actual path of a source of a project.
31920 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
31921 Full_Path is True, return the full path instead of the simple file name.
31922 (Project_Of): New function
31925 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
31926 defaulted to False.
31927 (Project_Of): New function
31929 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
31931 * Makefile.generic:
31932 Ensure objects of main project are always checked and rebuilt if needed.
31933 Set CC to gcc by default.
31934 Prepare new handling of link by creating a global archive (not activated
31937 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
31938 stringt.h: Update copyright notice. Remove trailing blanks.
31939 Fix source name in header.
31941 2003-10-24 Robert Dewar <dewar@gnat.com>
31943 * sem_ch12.adb: Minor reformatting
31946 Minor reformatting (including new function return style throughout)
31949 Minor reformatting (including new function return style throughout)
31951 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
31953 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
31954 stringt.h: Update copyright notice. Remove trailing blanks.
31955 Fix source name in header.
31957 2003-10-24 GNAT Script <nobody@gnat.com>
31959 * Make-lang.in: Makefile automatically updated
31961 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
31963 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
31964 stringt.h: Convert to ISO C90 declarations and definitions.
31966 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
31969 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
31970 External_Tag attribute definition clauses.
31972 2003-10-23 Ed Schonberg <schonberg@gnat.com>
31975 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
31976 child unit, generate a fully qualified name to avoid spurious errors
31977 when the context contains renamings of different child units with
31978 the same simple name.
31980 * exp_dbug.ads: Add documentation on name qualification for renamings
31983 2003-10-23 Robert Dewar <dewar@gnat.com>
31985 * g-regpat.ads, g-regpat.adb: Minor reformatting
31987 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
31989 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
31991 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31993 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
31996 * urealp.h: (Machine): Update to proper definition.
31998 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
32000 * init.c, adaint.c: Minor reformatting.
32002 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
32004 * adaint.c (w32_epoch_offset): Define static const at file level.
32005 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
32006 rather than t_create, t_access in call to GetFileTime. Use union
32007 to convert between FILETIME and unsigned long long.
32008 (__gnat_file_time_name): Test for invalid file handle.
32009 (__gnat_set_filetime_name): Support win32 targets using
32010 w32api SetFileTime.
32012 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
32014 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
32016 * ctrl_c.c (__gnat_int_handler): Remove declaration.
32018 * decl.c (creat_concat_name): Const-ify prefix.
32020 * adaint.c: Include ctype.h if __MINGW32__.
32021 (__gnat_readlink): Mark arguments as possibly unused.
32022 (__gnat_symlink): Likewise.
32023 (__gnat_is_symbolic_link): Likewise.
32024 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
32026 (__gnat_file_time_name): Don't declare struct stat statbuf when
32028 (__gnat_is_absolute_path): Add parenthesis around condition of
32029 'if' statement to avoid warning.
32030 (__gnat_plist_init): Specify void as parameter.
32031 (plist_enter): Likewise.
32032 (plist_leave): Likewise.
32033 (remove_handle): Make static. Initialize prev.
32035 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
32038 * Makefile.in: Disable build of gnatpsta.
32039 * cstreams.c (__gnat_full_name): Minor improvements and clean up
32040 of previous change.
32042 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32044 * tracebak.c (MAX): Avoid redefinition warning.
32046 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
32047 Change msg to const char *.
32048 (__gnat_install_handler): Remove ss, unused.
32049 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
32051 * cstreams.c (__gnat_full_name): Declare p only when used.
32052 (__gnat_full_name) [sgi] Return buffer.
32054 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
32056 * mingw32.h: New file.
32057 * gnat_wrapper.adb: New file.
32059 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
32061 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
32062 string match a pre compiled regular expression (the corresponding
32063 version of the function working on a raw regular expression)
32064 Fix typos in various comments
32065 Update copyright notice in spec
32067 2003-10-21 Gary Dismukes <dismukes@gnat.com>
32070 (Component_Needs_Simple_Initialization): Return False when the type is a
32071 packed bit array. Revise spec comments to document this case.
32074 (Expand_Pragma_Import): Set any expression on the imported object to
32075 empty to avoid initializing imported objects (in particular this
32076 covers the case of zero-initialization of bit arrays).
32077 Update copyright notice.
32079 2003-10-21 Ed Schonberg <schonberg@gnat.com>
32082 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
32083 a subunit is missing.
32084 (Instantiate_Subprogram_Body): If body of function is missing, set type
32085 of return expression explicitly in dummy body, to prevent cascaded
32086 errors when a subunit is missing.
32090 (Access_Subprogram_Declaration): Verify that return type is valid.
32094 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
32099 (Corresponding_Discriminant): If the scope of the discriminant is a
32100 private type without discriminant, use its full view.
32103 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
32105 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
32106 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
32107 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
32108 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
32109 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
32110 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
32111 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
32112 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
32113 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
32114 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
32115 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
32116 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
32117 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
32118 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
32119 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
32120 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
32121 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
32122 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
32123 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
32124 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
32125 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
32126 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
32127 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
32128 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
32129 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
32130 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
32131 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
32132 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
32133 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
32134 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
32135 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
32136 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
32137 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
32138 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
32139 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
32140 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
32141 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
32142 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
32143 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
32144 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
32145 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
32146 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
32147 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
32148 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
32149 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
32150 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
32151 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
32152 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
32153 vms_conv.ads, vms_conv.adb, vms_data.ads,
32154 vxaddr2line.adb: Files added. Merge with ACT tree.
32156 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
32157 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
32158 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
32159 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
32160 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
32161 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
32162 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32163 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
32164 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
32165 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
32167 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32168 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32169 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32170 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32171 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
32172 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
32173 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32174 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
32175 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
32176 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
32177 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32178 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
32179 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
32180 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32181 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
32182 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
32183 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
32184 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32185 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
32186 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
32187 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
32188 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32189 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32190 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32191 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
32192 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
32193 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
32194 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32195 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
32196 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32197 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32198 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
32199 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32200 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
32201 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
32202 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
32203 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
32204 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
32205 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
32206 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
32207 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
32208 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
32209 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
32210 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
32211 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
32212 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
32213 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
32214 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
32215 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
32216 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
32217 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
32218 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
32219 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
32220 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
32221 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
32222 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
32223 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
32224 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
32225 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
32226 checks.adb, checks.ads, cio.c, comperr.adb,
32227 comperr.ads, csets.adb, cstand.adb, cstreams.c,
32228 debug_a.adb, debug_a.ads, debug.adb, decl.c,
32229 einfo.adb, einfo.ads, errout.adb, errout.ads,
32230 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
32231 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
32232 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
32233 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32234 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
32235 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
32236 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
32237 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
32238 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
32239 fe.h, fmap.adb, fmap.ads, fname.adb,
32240 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
32241 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
32242 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
32243 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32244 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32245 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32246 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
32247 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
32248 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
32249 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
32250 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
32251 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
32252 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
32253 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
32254 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
32255 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
32256 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
32257 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
32258 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
32259 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
32260 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
32261 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
32262 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
32263 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
32264 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
32265 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
32266 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
32267 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
32268 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
32269 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
32270 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
32271 layout.adb, lib.adb, lib.ads, lib-list.adb,
32272 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
32273 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32274 link.c, live.adb, make.adb, make.ads,
32275 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
32276 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
32277 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
32278 misc.c, mkdir.c, mlib.adb, mlib.ads,
32279 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
32280 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
32281 namet.adb, namet.ads, namet.h, nlists.ads,
32282 nlists.h, nmake.adt, opt.adb, opt.ads,
32283 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
32284 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
32285 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32286 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
32287 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
32288 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
32289 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
32290 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
32291 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
32292 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
32293 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
32294 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
32295 prj-util.adb, prj-util.ads, raise.c, raise.h,
32296 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
32297 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
32298 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
32299 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
32300 scans.ads, scn.adb, scn.ads, s-crc32.adb,
32301 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
32302 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32303 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
32304 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
32305 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
32306 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32307 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32308 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
32309 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
32310 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
32311 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
32312 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
32313 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
32314 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
32315 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32316 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
32317 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
32318 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
32319 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
32320 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
32321 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
32322 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
32323 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
32324 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
32325 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
32326 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
32327 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
32328 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
32329 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
32330 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
32331 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
32332 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
32333 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
32334 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
32335 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
32336 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
32337 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
32338 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32339 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32340 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
32341 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32342 stringt.adb, stringt.ads, stringt.h, style.ads,
32343 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
32344 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
32345 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
32346 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
32347 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
32348 table.adb, table.ads, targparm.adb, targparm.ads,
32349 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
32350 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
32351 ttypes.ads, types.ads, types.h, uintp.adb,
32352 uintp.ads, uintp.h, uname.adb, urealp.adb,
32353 urealp.ads, urealp.h, usage.adb, utils2.c,
32354 utils.c, validsw.adb, validsw.ads, widechar.adb,
32355 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
32356 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
32357 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
32358 gnatvsn.ads: Merge with ACT tree.
32360 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
32362 2003-10-20 Mark Mitchell <mark@codesourcery.com>
32364 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
32365 (gnat_ug_vmx.info): Likewise.
32366 (gnat_ug_vxw.info): Likewise.
32367 (gnat_ug_wnt.info): Likewise.
32368 (gnat_rm.info): Likewise.
32369 (gnat-style.info): Likewise.
32371 * Make-lang.in (ada.install-info): Remove target.
32372 (info): New target.
32373 (install-info): Likewise.
32374 (gnat_ug_unx.info): Simplify rule.
32375 (gnat_ug_vmx.info): Likewise.
32376 (gnat_ug_vxw.info): Likewise.
32377 (gnat_ug_wnt.info): Likewise.
32378 (gnat_rm.info): Likewise.
32379 (gnat-style.info): Likewise.
32381 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
32383 * Make-lang.in: Replace uses of $(target_alias) with
32384 $(target_noncanonical).
32385 * ada/Makefile.in: Remove unused mention of $(target_alias).
32387 2003-10-06 Mark Mitchell <mark@codesourcery.com>
32389 * Make-lang.in (ada.info): Replace with ...
32391 (ada.dvi): Replace with ...
32394 2003-09-29 Zack Weinberg <zack@codesourcery.com>
32396 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
32397 initialize dconstp5 and dconstmp5.
32399 2003-09-28 Richard Henderson <rth@redhat.com>
32401 * trans.c (tree_transform): Update call to expand_asm_operands.
32403 2003-09-21 Richard Henderson <rth@redhat.com>
32405 * trans.c, utils.c: Revert.
32407 2003-09-21 Richard Henderson <rth@redhat.com>
32409 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
32412 2003-09-04 Michael Matz <matz@suse.de>
32414 * misc.c: Include "target.h".
32415 * Make-lang.in (misc.o): Add dependency on target.h.
32417 2003-09-03 DJ Delorie <dj@redhat.com>
32419 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
32422 2003-08-30 Zack Weinberg <zack@codesourcery.com>
32424 * Makefile.in: Update substitutions to match changes to
32425 configure. Use include directives instead of @-insertions
32426 to read in host and target fragments. Add a rule to
32427 regenerate ada/Makefile.
32429 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
32431 * lang-options.h: Remove.
32432 * lang.opt: Add help text.
32434 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
32436 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
32439 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
32441 * misc.c (gnat_handle_option): Don't handle filenames.
32443 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
32445 * Make-lang.in: Replace PWD with PWD_COMMAND.
32446 * Makefile.adalib: Likewise.
32447 * Makefile.in: Likewise.
32449 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
32451 * misc.c (gnat_argv): Revert last change.
32452 (gnat_handle_option, gnat_init_options): Copy arguments.
32454 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
32456 * misc.c (gnat_argv): Make const.
32458 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
32460 * misc.c (save_argc, save_argv): Keep non-static!
32462 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
32464 * misc.c (save_argc, save_argv): Make static.
32465 (gnat_init_options): New prototype.
32466 (gnat_init_options): Update.
32468 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
32470 * gnat_ug.texi: Remove unlikely characters from @vars.
32471 * gnat_ug_vms.texi: Regenerate.
32473 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
32475 * misc.c (record_code_position): Adjust emit_note call.
32477 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
32479 * misc.c (gnat_handle_option): Don't check for missing arguments.
32481 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
32483 * utils.c (end_subprog_body): Adjust expand_function_end call.
32485 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
32487 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
32490 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
32492 * lang.opt: Declare Ada.
32493 * misc.c (gnat_init_options): Update.
32495 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
32497 * utils.c (begin_subprog_body): Adjust init_function_start call.
32499 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
32501 * Make-lang.in: Update to use options.c and options.h.
32502 * misc.c: Include options.h not aoptions.h.
32503 (gnat_handle_option): Abort on unrecognized switch.
32504 (gnat_init_options): Request Ada switches.
32506 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
32508 * lang.opt: Add -Wall.
32509 * misc.c (gnat_handle_option): Handle it.
32511 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
32513 * misc.c (gnat_handle_option): Fix warnings.
32515 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
32517 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
32519 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
32521 * Make-lang.in: Update to handle command-line options.
32522 * lang.opt: New file.
32523 * misc.c: Include aoptions.h.
32524 (cl_options_count, cl_options): Remove.
32525 (gnat_handle_option): New.
32526 (gnat_decode_option): Remove.
32527 (LANG_HOOKS_DECODE_OPTION): Remove.
32528 (LANG_HOOKS_HANDLE_OPTION): Override.
32530 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
32532 * init.c, misc.c, trans.c, utils.c: Remove dead code.
32534 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
32536 * Makefile.in: Replace "host_canonical" with "host" for autoconf
32539 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
32541 * Make-lang.in: Update.
32542 * misc.c: Include opts.h. Define cl_options_count and cl_options.
32544 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
32546 * misc.c (gnat_init_options): Update.
32548 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
32550 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
32551 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
32552 __attribute__ ((__unused__)).
32554 2003-06-05 Jan Hubicka <jh@suse.cz>
32556 * Make-lang.in: Add support for stageprofile and stagefeedback
32558 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
32560 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
32561 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
32563 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
32565 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
32566 Remove non-VMS directive.
32567 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
32569 (Examples of gnatls Usage): Remove VMS alternative.
32571 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
32574 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
32575 and turn ZCX_By_Default back to False since the underlying support
32576 is not quite there yet.
32578 2003-06-01 Andreas Jaeger <aj@suse.de>
32580 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
32581 and ROUND_TYPE_SIZE_UNIT.
32583 2003-05-22 Geert Bosch <bosch@gnat.com>
32585 * gnat_rm.texi : Remove reference to Ada Core Technologies.
32587 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
32589 * trans.c (tree_transform): Use location_t and input_location
32591 (build_unit_elab): Likewise.
32592 * utils.c (create_label_decl): Likewise.
32594 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
32596 * trans.c (tree_transform, build_unit_elab,
32597 set_lineno): Rename lineno to input_line.
32598 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
32599 end_subprog_body): Likewise.
32600 * utils2.c (build_call_raise): Likewise.
32602 2003-05-01 Laurent Guerby <guerby@acm.org>
32605 * 5iosinte.ads: Increase pthread_cond_t size to match recent
32606 LinuxThread and NPTL version, merge from ACT.
32608 2003-04-28 Zack Weinberg <zack@codesourcery.com>
32610 * utils.c (convert): No need to clear TREE_CST_RTL.
32612 2003-04-23 Geert Bosch <bosch@gnat.com>
32614 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32615 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32616 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32617 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32618 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32619 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
32620 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
32621 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
32622 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32623 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
32624 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
32625 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
32626 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
32627 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
32628 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
32629 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
32630 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
32631 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
32632 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
32633 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32634 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32635 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
32636 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32637 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
32638 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
32639 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
32640 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
32641 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
32642 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
32643 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
32644 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
32645 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
32646 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
32647 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
32648 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
32649 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
32650 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
32651 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
32652 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
32653 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
32654 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
32655 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
32656 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
32657 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
32658 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
32659 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
32660 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
32661 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
32662 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
32663 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
32664 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
32665 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
32666 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
32667 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
32668 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
32669 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
32670 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
32671 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
32672 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
32673 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
32674 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
32675 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
32676 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
32677 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
32678 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
32679 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
32680 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
32681 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
32682 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
32683 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
32684 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
32685 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
32686 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
32687 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
32688 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
32689 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
32690 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
32691 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
32692 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
32693 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
32694 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
32695 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
32696 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
32697 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
32698 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
32699 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
32700 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
32701 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
32702 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
32703 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
32704 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
32705 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
32706 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
32707 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
32708 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
32709 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
32710 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
32711 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
32712 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
32713 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
32714 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
32715 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
32716 ali.adb, ali.ads, alloc.ads, argv.c,
32717 atree.adb, atree.ads, atree.h, aux-io.c,
32718 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
32719 binde.adb, binde.ads, binderr.adb, binderr.ads,
32720 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
32721 butil.adb, butil.ads, cal.c, calendar.ads,
32722 casing.adb, casing.ads, ceinfo.adb, checks.adb,
32723 checks.ads, cio.c, comperr.adb, comperr.ads,
32724 config-lang.in, csets.adb, csets.ads, csinfo.adb,
32725 cstand.adb, cstand.ads, cuintp.c, debug.adb,
32726 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
32727 dec-io.ads, dec.ads, deftarg.c, directio.ads,
32728 einfo.adb, einfo.ads, elists.adb, elists.ads,
32729 elists.h, errno.c, errout.adb, errout.ads,
32730 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
32731 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
32732 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
32733 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
32734 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
32735 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
32736 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
32737 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
32738 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
32739 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
32740 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
32741 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
32742 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
32743 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
32744 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
32745 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
32746 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
32747 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
32748 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
32749 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
32750 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32751 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32752 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32753 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
32754 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
32755 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
32756 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
32757 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
32758 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
32759 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
32760 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
32761 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
32762 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
32763 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
32764 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
32765 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
32766 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
32767 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
32768 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
32769 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
32770 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
32771 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
32772 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
32773 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
32774 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
32775 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
32776 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
32777 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
32778 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
32779 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
32780 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
32781 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
32782 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
32783 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
32784 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
32785 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
32786 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
32787 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
32788 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
32789 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32790 lib.adb, lib.ads, live.adb, live.ads,
32791 machcode.ads, make.adb, make.ads, makeusg.adb,
32792 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
32793 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
32794 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
32795 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
32796 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
32797 mlib.ads, namet.adb, namet.ads, nlists.adb,
32798 nlists.ads, opt.adb, opt.ads, osint-b.adb,
32799 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
32800 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
32801 osint.ads, output.adb, output.ads, par-ch10.adb,
32802 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
32803 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32804 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
32805 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
32806 par-tchk.adb, par-util.adb, par.adb, par.ads,
32807 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
32808 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
32809 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
32810 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
32811 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
32812 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
32813 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
32814 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
32815 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
32816 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
32817 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
32818 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
32819 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
32820 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
32821 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
32822 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
32823 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
32824 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32825 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
32826 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
32827 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
32828 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
32829 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32830 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
32831 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
32832 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
32833 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
32834 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
32835 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
32836 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
32837 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
32838 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
32839 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
32840 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
32841 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
32842 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
32843 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
32844 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
32845 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
32846 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
32847 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
32848 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
32849 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
32850 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
32851 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
32852 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
32853 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
32854 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
32855 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
32856 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
32857 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
32858 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
32859 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
32860 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
32861 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
32862 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
32863 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
32864 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
32865 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
32866 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
32867 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
32868 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
32869 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
32870 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
32871 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
32872 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
32873 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
32874 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
32875 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
32876 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
32877 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
32878 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
32879 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
32880 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
32881 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
32882 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
32883 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
32884 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
32885 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
32886 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32887 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
32888 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
32889 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
32890 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32891 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
32892 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
32893 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
32894 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
32895 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
32896 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
32897 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
32898 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
32899 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
32900 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
32901 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
32902 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
32903 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
32904 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
32905 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
32906 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
32907 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
32908 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
32909 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
32910 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
32911 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
32912 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
32913 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
32914 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
32915 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
32916 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
32917 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32918 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32919 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
32920 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
32921 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
32922 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
32923 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
32924 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
32925 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
32926 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
32927 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
32928 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
32929 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
32930 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
32931 snames.ads, sprint.adb, sprint.ads, stand.adb,
32932 stand.ads, stringt.adb, stringt.ads, style.adb,
32933 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
32934 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
32935 switch-m.ads, switch.adb, switch.ads, system.ads,
32936 table.adb, table.ads, targparm.adb, targparm.ads,
32937 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
32938 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
32939 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
32940 ttypef.ads, ttypes.ads, types.adb, types.ads,
32941 uintp.adb, uintp.ads, uname.adb, uname.ads,
32942 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
32943 usage.adb, usage.ads, validsw.adb, validsw.ads,
32944 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
32945 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
32946 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
32947 formatting and other trivial changes from ACT.
32949 2003-04-12 Zack Weinberg <zack@codesourcery.com>
32951 * gigi.h, utils2.c (build_constructor):
32952 Rename gnat_build_constructor. Use build_constructor.
32953 * decl.c (gnat_to_gnu_entity)
32954 * trans.c (tree_transform, pos_to_constructor, extract_values)
32955 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
32956 (unchecked_convert)
32957 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
32958 (fill_vms_descriptor):
32961 2003-04-06 Zack Weinberg <zack@codesourcery.com>
32963 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
32964 * misc.c (gnat_tree_size): New function.
32965 (LANG_HOOKS_TREE_SIZE): Override.
32967 2003-04-03 Jason Merrill <jason@redhat.com>
32969 * misc.c (gnat_adjust_rli): #if 0.
32971 2003-03-31 Geert Bosch <bosch@gnat.com>
32974 * link.c : Fix misspelled "const" keyword
32976 2003-03-23 Mark Mitchell <mark@codesourcery.com>
32979 * utils2.c: Adjust calls to put_var_into_stack.
32981 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
32983 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
32985 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
32987 * misc.c (gnat_init): Update for new prototype.
32989 2003-03-05 Olivier Hainque <hainque@gnat.com>
32992 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
32993 warning, and fix return type for the IN_RTS && !SJLJ case.
32995 2003-03-04 Tom Tromey <tromey@redhat.com>
32997 * Make-lang.in (ada.tags): New target.
32999 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
33002 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
33003 wrapper, which name remains constant whatever underlying GCC
33006 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
33007 the stable interface needed for a-except.
33009 2003-03-02 Andreas Jaeger <aj@suse.de>
33011 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33012 gnat_ug_wnt.texi: Regenerate.
33014 2003-03-02 Laurent Guerby <guerby@acm.org>
33016 * Makefile.in (install-gnatlib): Match previous change there
33019 2003-02-28 Andreas Schwab <schwab@suse.de>
33021 * Make-lang.in (install-gnatlib): Change to ada directory before
33022 running make instead of using ada/Makefile directly.
33024 2003-02-18 Ben Elliston <bje@redhat.com>
33026 Part of PR ada/9406
33027 * gnat_ug.texi (Binder output file): Grammar fix.
33029 2003-02-18 Ben Elliston <bje@redhat.com>
33032 * 5qtaprop.adb (Sleep): Fix typo in comment.
33034 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
33036 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
33037 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33038 gnat_ug_wnt.texi: Regenerate.
33040 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
33042 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
33043 be created if necessary.
33044 (ada.install-common): Let $(DESTDIR)$(bindir) be created
33045 if necessary. Remove erroneous and redundant gnatchop
33046 installation commands. Test for gnatdll before attempting
33048 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
33049 and gnatdll from all plausible locations.
33051 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
33053 * utils2.c (build_unary_op): Don't check flag_volatile.
33054 * gnat_ug.texi: Remove -fvolatile from example.
33055 * gnat_ug_vxw.texi: Likewise.
33057 2003-01-29 Laurent Guerby <guerby@acm.org>
33060 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
33061 * Makefile.in: match previous change.
33062 * Make-lang.in: match previous change.
33064 2003-01-29 Joel Sherrill <joel@OARcorp.com>
33066 * 5rosinte.ads: Add SIGXCPU.
33067 * 5rtpopsp.adb: New file.
33068 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
33069 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
33070 specific file 5rtpopsp.adb.
33071 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
33072 is likely needed for all newlib targets.
33073 * init.c: Add RTEMS specific version of __gnat_initialize().
33075 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33077 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
33079 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33081 * init.c (__gnat_error_handler): Make msg const.
33083 * gmem.c (convert_addresses): Move declaration ...
33084 * adaint.h: ... here.
33085 * adaint.c (convert_addresses): Adapt addrs type to match
33088 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
33090 2003-01-24 Andreas Schwab <schwab@suse.de>
33092 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
33093 size_t to avoid warning.
33095 2003-01-21 Zack Weinberg <zack@codesourcery.com>
33097 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
33099 2003-01-09 Geoffrey Keating <geoffk@apple.com>
33101 * gnat_rm.texi: Remove RCS version number.
33103 * ada-tree.h (union lang_tree_node): Add chain_next option.
33105 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
33107 * Make-lang.in (ada.install-info, ada.install-common,
33108 ada.uninstall): Prepend $(DESTDIR) to the destination
33109 directory in all (un)installation commands.
33110 * Makefile.in (install-gnatlib, install-rts): Ditto.
33112 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
33114 * gnat_rm.texi, gnat_ug.texi: Use @copying.
33115 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33116 gnat_ug_wnt.texi: Regenerate.
33118 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
33120 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
33122 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
33123 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
33124 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
33125 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
33126 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
33127 $(srcdir)/doc/include/gcc-common.texi.
33129 2002-12-15 Geert Bosch <bosch@gnat.com>
33131 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
33133 2002-12-14 Geert Bosch <bosch@gnat.com>
33136 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
33137 case of a body created for a Renaming_As_Body, on which
33138 conformance checks are not performed.
33140 2002-11-30 Zack Weinberg <zack@codesourcery.com>
33142 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
33143 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
33144 not already included.
33145 * Make-lang.in: Update dependencies.
33147 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
33148 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
33149 solution to buffer overflow bug on GNU/Linux.
33151 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
33155 * bindgen.adb: Remove all references to Public_Version.
33156 * comperr.adb: Remove all references to Public_Version and
33157 GNATPRO_Version; correct bug reporting instructions.
33158 * comperr.ads: Change to match bug box.
33159 * gnatvsn.ads: Remove all references to Public version and
33162 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
33165 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
33169 * config-lang.in: Remove diff_excludes.
33171 2002-11-05 Graham Stott <graham.stott@btinternet.com>
33174 * trans.c (gnu_pending_elaboration_lists): New GC root.
33175 (build_unit_elab): Use..
33177 2002-10-30 Geert Bosch <bosch@gnat.com>
33180 * misc.c : Include optabs.h
33182 * Make-lang.in (misc.o): Add dependency on optabs.h
33184 2002-10-29 Geert Bosch <bosch@gnat.com>
33187 * Make-lang.in (gnatbind): Depend on CONFIG_H
33189 2002-10-29 Geert bosch <bosch@gnat.com>
33192 * misc.c: Unrevert misc.c (1.13)
33194 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
33196 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
33197 maintainership comments.
33199 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
33202 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
33203 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
33204 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
33205 7staprop.adb: Correct statements in comments about
33206 maintainership of GNAT.
33209 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
33210 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
33211 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
33212 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
33213 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
33214 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
33215 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
33216 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
33217 comments about maintainership of GNAT.
33219 PR ada/6919 (forward port of patch for PR ada/5904)
33220 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
33221 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
33222 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
33223 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
33224 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
33225 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
33226 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
33227 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
33228 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
33229 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
33230 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
33231 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
33232 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
33233 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
33234 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
33235 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
33236 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
33237 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
33238 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
33239 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
33240 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
33241 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
33242 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
33243 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
33244 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
33245 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
33246 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
33247 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
33248 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
33249 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
33250 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
33251 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
33252 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
33253 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
33254 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
33255 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
33256 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
33257 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
33258 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
33259 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
33260 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
33261 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
33262 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
33263 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
33264 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
33265 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
33266 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
33267 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
33268 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
33269 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
33270 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
33271 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
33272 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
33273 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
33274 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
33275 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
33276 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
33277 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
33278 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
33279 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
33280 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
33281 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
33282 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
33283 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
33284 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
33285 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
33286 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
33287 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
33288 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
33289 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
33290 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
33291 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
33292 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
33293 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
33294 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
33295 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
33296 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
33297 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
33298 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
33299 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
33300 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
33301 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
33302 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
33303 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
33304 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
33305 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
33306 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
33307 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
33308 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
33309 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
33310 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
33311 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
33312 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
33313 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
33314 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
33315 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
33316 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
33317 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
33318 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
33319 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
33320 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
33321 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
33322 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
33323 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
33324 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
33325 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
33326 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
33327 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
33328 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
33329 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
33330 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
33331 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
33332 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
33333 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
33334 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
33335 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
33336 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
33337 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
33338 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
33339 par-endh.adb par-labl.adb par-load.adb par-prag.adb
33340 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
33341 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
33342 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
33343 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
33344 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
33345 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
33346 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
33347 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
33348 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
33349 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
33350 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
33351 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
33352 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
33353 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
33354 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
33355 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
33356 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
33357 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
33358 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
33359 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
33360 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
33361 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
33362 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
33363 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
33364 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
33365 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
33366 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
33367 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
33368 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
33369 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
33370 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
33371 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
33372 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
33373 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
33374 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
33375 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
33376 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
33377 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
33378 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
33379 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
33380 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
33381 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
33382 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
33383 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
33384 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
33385 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
33386 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
33387 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
33388 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
33389 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
33390 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
33391 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
33392 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
33393 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
33394 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
33395 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
33396 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
33397 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
33398 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
33399 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
33400 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
33401 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
33402 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
33403 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
33404 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
33405 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
33406 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
33407 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
33408 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
33409 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
33410 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
33411 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
33412 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
33413 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
33414 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
33415 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
33416 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
33417 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
33418 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
33419 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
33420 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
33421 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
33422 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
33423 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
33424 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
33425 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
33426 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
33427 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
33428 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
33429 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
33430 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
33431 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
33432 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
33433 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
33434 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
33435 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
33436 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
33437 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
33438 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
33439 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
33440 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
33441 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
33442 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
33443 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
33444 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
33445 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
33446 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
33447 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
33448 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
33449 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
33450 stringt.ads stringt.h style.adb style.ads stylesw.adb
33451 stylesw.ads switch.adb switch.ads sysdep.c system.ads
33452 table.adb table.ads targparm.adb targparm.ads targtyps.c
33453 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
33454 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
33455 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
33456 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
33457 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
33458 usage.ads utils.c utils2.c validsw.adb validsw.ads
33459 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
33460 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
33461 xtreeprs.adb: Correct statements in comments about maintainership
33464 2002-09-23 Zack Weinberg <zack@codesourcery.com>
33466 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
33467 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
33468 * gnatvsn.ads: Gnat_Version_String is now a function.
33469 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
33470 copy the C version_string into a String and return it.
33471 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
33472 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
33473 Remove pragma Ident (Gnat_Version_String). If this was the
33474 sole use of package Gnatvsn, remove the with statement too.
33475 * gnat1drv.adb: Tweak -gnatv output.
33477 2002-09-17 Richard Henderson <rth@redhat.com>
33479 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
33480 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
33481 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
33482 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
33483 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
33484 and real_2expN instead of a loop.
33485 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
33486 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
33488 2002-08-25 Andre Leis <a.leis@gmx.net>
33489 David Billinghurst (David.Billinghurst@riotinto.com>
33491 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
33493 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33495 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
33496 Remove $(CONFIG_H) dependency.
33498 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
33500 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
33502 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33504 * adadecode.c (ada_demangle): Use xstrdup in lieu of
33506 * misc.c (gnat_decode_option): Likewise.
33508 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
33510 * make.adb (Add_Switch): Make Generic_Position a procedure. The
33511 function approach did not work well because of a side effect (the
33512 function call could reallocate the table which was being indexed
33513 using its result). Fixes ada/4851. [RESURRECTED]
33515 2002-07-01 Roger Sayle <roger@eyesopen.com>
33517 * ada/utils.c (builtin_function): Accept an additional parameter.
33519 2002-06-28 Andreas Jaeger <aj@suse.de>
33522 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
33525 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33527 * Makefile.in (SHELL): Set to @SHELL@.
33529 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33531 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
33532 array size calculation.
33534 2002-06-04 Andreas Jaeger <aj@suse.de>
33536 * Make-lang.in (gnatbind): Readd rule that has been lost in last
33539 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
33541 Merge from pch-branch:
33543 * config-lang.in (gtfiles): Add ada-tree.h.
33544 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
33545 (SET_TYPE_MODULUS): New.
33546 (SET_TYPE_INDEX): New.
33547 (SET_TYPE_DIGITS_VALUE): New.
33548 (SET_TYPE_RM_SIZE): New.
33549 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
33550 (SET_TYPE_ADA_SIZE): New.
33551 (SET_TYPE_ACTUAL_BOUNDS): New.
33552 (SET_DECL_CONST_CORRESPONDING_VAR): New.
33553 (SET_DECL_ORIGINAL_FIELD): New.
33554 (TREE_LOOP_ID): Correct typo.
33555 * decl.c: Use new macros.
33556 * utils.c: Include debug.h, use new macros.
33557 * utils2.c: Use new macros.
33559 * ada-tree.h: Update all macros for new tree description.
33560 (struct tree_loop_id): New.
33561 (union lang_tree_node): New.
33562 (struct lang_decl): New.
33563 (struct lang_type): New.
33564 * misc.c (gnat_mark_tree): Delete.
33565 (LANG_HOOKS_MARK_TREE): Delete.
33566 * trans.c (tree_transform): No longer any need to cast
33569 * utils.c (struct language_function): New dummy structure.
33571 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
33572 (misc.o): Likewise.
33573 (utils.o): Likewise; also gtype-ada.h.
33574 * Make-lang.in (gnat1): Add dependency on s-gtype.
33575 (gnatbind): Add dependency on $(CONFIG_H).
33576 * utils.c: Correct last #include.
33577 (stuct e_stack): Remove unnecessary 'static'.
33578 (mark_e_stack): Remove unused prototype.
33580 * scn-nlit.adb: Remove whitespace after version number to
33581 keep lines under 80 chars.
33582 * snames.adb: Likewise.
33583 * treepr.ads: Likewise.
33585 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
33586 (misc.o): Likewise.
33587 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
33588 * config-lang.in (gtfiles): New.
33589 * decl.c: Use gengtype for roots.
33590 * gigi.h: Use gengtype for roots.
33591 * trans.c: Use gengtype for roots.
33592 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
33594 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
33596 * misc.c (gnat_init): Adjust setting of internal_error_function.
33598 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
33600 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
33601 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33602 gnat_ug_wnt.texi: Regenerate.
33604 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
33606 * 5ntaprop.adb (with System.OS_Primitives): Remove.
33608 * cstreams.c (max_path_len): Move from here ...
33609 * adaint.c (__gnat_max_path_len): ... to here.
33610 * adaint.c (__gnat_max_path_len): Declare.
33611 * g-dirope.adb (Max_Path): Adjust.
33612 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
33613 * i-cstrea.ads (max_path_len): Adjust.
33614 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
33615 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
33617 * Makefile.in, Make-lang.in: Documentation is now built in
33618 Make-lang.in. Store Info and generated Texinfo files in the
33620 * gnat_ug.texi: Remove CVS keywords, correct version number.
33621 Set file name correctly.
33623 * gnat_ug_*.texi: Add.
33624 * .cvsignore: Ignore generated Texinfo files.
33626 2002-05-30 Zack Weinberg <zack@codesourcery.com>
33628 * ada.h: Add MI guard macro.
33629 (SUBTYPE): Define constants with an anonymous enum, not static
33631 (IN): Cast constants to appropriate type before use.
33633 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
33635 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
33638 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33640 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
33641 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
33642 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
33643 (ALL_ADA_CFLAGS): Likewise.
33644 (ADA_INCLUDES): Likewise.
33645 Adapt for new working dir.
33646 (GNATBIND): Use Makefile.in version.
33647 (.SUFFIXES): Copy from Makefile.in.
33648 (ada-warn): Define.
33649 (.adb.o, .ads.o): Copy from Makefile.in.
33650 Added $(OUTPUT_OPTION).
33651 (GNAT1_C_OBJS): Moved from Makefile.in.
33652 Prefix with ada subdir.
33653 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
33654 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
33655 Adapt for new working dir.
33656 (EXTRA_GNATBIND_OBJS): Likewise.
33657 (ADA_BACKEND): Moved from Makefile.in.
33658 Renamed to avoid conflict with global BACKEND.
33660 (TARGET_ADA_SRCS): Moved from Makefile.in.
33661 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
33663 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
33664 (ada_extra_files): Moved from Makefile.in.
33665 Prefix with ada subdir.
33666 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
33667 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
33668 (ada/nmake.ads): Likewise.
33669 (update-sources): Moved from Makefile.in.
33670 Prefix with ada subdir.
33671 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
33672 (ADA_TREE_H): Likewise.
33673 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
33674 (ada/memtrack.o): Likewise.
33675 (ada/adadecode.o): Likewise.
33676 Update dependencies.
33677 (ada/adaint.o): New.
33678 (ada/argv.o): Moved from Makefile.in.
33679 Prefix with ada subdir.
33680 Update dependencies.
33681 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
33682 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
33683 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
33684 Prefix with ada subdir.
33685 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
33686 (GNAT DEPENDENCIES): Regenerate.
33687 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
33688 toplevel Makefile.in.
33689 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
33690 (TARGET_ADA_SRCS): Removed.
33691 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
33692 (GNATBIND_OBJS): Likewise.
33693 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
33694 (BACKEND): Removed.
33695 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
33696 (TREE_H): Likewise.
33697 (ada_extra_files): Likewise.
33698 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
33699 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
33700 (update-sources): Likewise.
33701 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
33702 (ADA_TREE_H): Likewise.
33703 (adadecoce.o): Likewise.
33704 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
33705 (GNAT DEPENDENCIES): Likewise.
33707 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33709 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
33710 * Makefile.in: Likewise.
33712 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33714 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
33715 Restore $(CONFIG_H) and prefix.o dependencies.
33716 (ada.stage[1-4]): Depend on stage?-start.
33718 * Makefile.in (b_gnatb.c): Depend on interfac.o.
33720 2002-05-02 Jim Wilson <wilson@redhat.com>
33722 * utils.c (finish_record_type): Change record_size to record_type.
33724 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
33726 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
33727 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
33728 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
33730 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
33732 * misc.c (gnat_parse_file): Update.
33734 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
33736 * misc.c (gnat_init): Don't set lang_attribute_common.
33738 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
33740 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
33742 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
33744 * gnat_ug.texi: New file.
33746 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
33747 instead of gfdl.texi
33749 * xgnatug.adb, ug_words: New files.
33751 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
33752 gnat_rm and gnat-style manuals.
33754 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
33756 * gigi.h (incomplete_type_error): Remove.
33757 * utils.c (incomplete_type_error): Remove.
33759 2002-04-16 Mark Mitchell <mark@codesourcery.com>
33761 * trans.c (tree_transform): Add has_scope argument to
33762 expand_start_stmt_expr.
33764 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
33766 * gigi.h (truthvalue_conversion): Rename.
33767 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
33768 * trans.c (tree_transform): Update.
33769 * utils2.c (truthvalue_conversion): Rename, update.
33770 (build_binary_op, build_unary_op): Update.
33772 2002-04-04 Laurent Guerby <guerby@acm.org>
33774 * make.adb: Implement -margs, remove restriction about file name placement.
33775 * makeusg.adb: Documentation update.
33776 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
33777 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
33779 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
33781 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
33782 (builtin_function): Similarly.
33784 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
33786 * decl.c (gnat_to_gnu_entity): Update.
33787 * gigi.h (mark_addressable): Rename.
33788 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
33789 * trans.c (tree_transform): Update.
33790 * utils.c (create_var_decl): Update.
33791 * util2.c (build_binary_op, build_unary_op,
33792 fill_vms_descriptor): Update.
33793 (mark_addressable): Rename, update.
33795 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
33797 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
33799 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
33800 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
33801 * trans.c (tree_transform, convert_with_check): Update.
33802 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
33805 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
33807 * gigi.h (finish_incomplete_decl): Rename.
33808 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
33809 * utils.c (gnat_init_decl_processing): Don't set hook.
33810 (finish_incomplete_decl): Rename.
33812 2002-03-29 Andreas Schwab <schwab@suse.de>
33814 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
33817 2001-03-28 Robert Dewar <dewar@gnat.com>
33820 (Remove_Checks): New procedure
33823 (Remove_Checks): New procedure
33826 Use new Duplicate_Subexpr functions
33827 (Duplicate_Subexpr_No_Checks): New procedure
33828 (Duplicate_Subexpr_No_Checks_Orig): New procedure
33829 (Duplicate_Subexpr): Restore original form (checks duplicated)
33830 (Duplicate_Subexpr): Call Remove_Checks
33833 (Duplicate_Subexpr_No_Checks): New procedure
33834 (Duplicate_Subexpr_No_Checks_Orig): New procedure
33835 Add 2002 to copyright notice
33837 * sem_util.adb: Use new Duplicate_Subexpr functions
33840 (Eval_Indexed_Component): This is the place to call
33841 Constant_Array_Ref and to replace the value. We simply merge
33842 the code of this function in here, since it is now no longer
33843 used elsewhere. This fixes the problem of the back end not
33844 realizing we were clever enough to see that this was
33846 (Expr_Val): Remove call to Constant_Array_Ref
33847 (Expr_Rep_Val): Remove call to Constant_Array_Ref
33849 (Constant_Array_Ref): Deal with string literals (patch
33850 suggested by Zack Weinberg on the gcc list)
33852 2001-03-28 Ed Schonberg <schonber@gnat.com>
33854 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
33855 Duplicate_Subexpr_Move_Checks.
33857 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
33858 Duplicate_Subexpr_Move_Checks.
33860 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
33861 value of array exists before retrieving it (it may a private
33862 protected component in a function).
33864 2002-03-28 Geert Bosch <bosch@gnat.com>
33866 * prj-pp.adb : New file.
33868 * prj-pp.ads : New file.
33870 2002-03-28 Andreas Jaeger <aj@suse.de>
33872 * Makefile.in (stamp-sdefault): Fix path for Makefile.
33874 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
33876 * misc.c (gnat_expand_expr): Move prototype.
33878 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
33880 * misc.c (insert_default_attributes): Remove.
33882 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
33884 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
33885 (gnat_init): Don't set hook.
33886 (gnat_expand_expr): Fix prototype.
33888 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
33890 * misc.c (ggc_p): Remove.
33892 2002-03-27 Geert Bosch <bosch@gnat.com>
33894 * prj-makr.ads, prj-makr.adb : New files.
33896 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
33898 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
33899 (lang_mark_tree): Make static, rename.
33901 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
33903 * misc.c (maybe_build_cleanup): Remove.
33905 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
33907 * gigi.h (yyparse): Remove.
33909 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
33911 * gnat_rm.texi: Sync with ACT version.
33912 (From Ben Brosgol <brosgol@gnat.com>)
33914 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
33916 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
33917 (gnat_init): Remove old hook.
33919 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
33921 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
33922 (yyparse): Rename gnat_parse_file.
33924 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
33926 Delete all lines containing "$Revision:".
33927 * xeinfo.adb: Don't look for revision numbers.
33928 * xnmake.adb: Likewise.
33929 * xsinfo.adb: Likewise.
33930 * xsnames.adb: Likewise.
33931 * xtreeprs.adb: Likewise.
33933 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33935 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
33936 gnat_tree_code_name): Delete.
33937 (tree_code_type, tree_code_length, tree_code_name): Define.
33938 (gnat_init): Don't try to copy into the various tree_code
33941 2002-03-11 Richard Henderson <rth@redhat.com>
33943 * Makefile.in (.NOTPARALLEL): Add fake tag.
33945 2002-03-07 Geert Bosch <bosch@gnat.com>
33947 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
33948 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
33949 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
33950 switch-m.adb, switch-m.ads : New files.
33952 2002-03-07 Geert Bosch <bosch@gnat.com>
33954 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
33955 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
33956 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
33957 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
33958 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
33959 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
33960 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
33961 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
33962 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
33963 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
33964 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
33965 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
33966 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
33967 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
33968 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
33969 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
33970 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
33971 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
33972 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
33973 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
33974 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
33975 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
33976 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
33977 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
33978 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
33979 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
33980 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
33981 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
33982 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
33983 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
33984 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
33985 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
33986 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
33987 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
33988 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
33989 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
33990 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
33991 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
33992 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
33993 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
33994 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
33995 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
33996 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
33997 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
33998 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
33999 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
34000 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
34001 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
34002 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
34003 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
34004 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
34005 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
34006 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
34007 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
34008 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
34009 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
34010 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
34011 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
34012 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
34013 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
34014 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
34015 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
34016 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
34017 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
34018 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
34019 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
34020 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
34021 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
34022 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
34023 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
34024 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
34025 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
34026 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
34027 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34028 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34029 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
34030 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
34031 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
34032 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
34033 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34034 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
34035 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
34036 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
34037 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
34038 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
34039 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
34040 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
34041 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
34042 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
34043 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
34044 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
34045 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
34046 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
34047 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
34048 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
34049 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
34050 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
34052 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
34053 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
34054 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
34055 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
34057 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
34058 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
34060 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
34061 to mdll-fil.ad[bs] and mdll-util.ad[bs]
34063 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
34064 from mdllfile.ad[bs] and mdlltool.ad[bs]
34066 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34068 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
34069 lieu of explicit sizeof/sizeof.
34071 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
34073 * misc.c (copy_lang_decl): Remove.
34075 2002-02-27 Zack Weinberg <zack@codesourcery.com>
34077 * misc.c: Delete traditional-mode-related code copied from the
34078 C front end but not used, or used only to permit the compiler
34081 2002-02-07 Richard Henderson <rth@redhat.com>
34083 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
34084 * adaint.h (__gnat_to_gm_time): Update prototype.
34086 2002-01-30 Richard Henderson <rth@redhat.com>
34088 * trans.c (tree_transform) [N_Loop_Statement]: Use
34089 expand_exit_loop_top_cond.
34091 2001-12-23 Richard Henderson <rth@redhat.com>
34093 * utils.c (end_subprog_body): Push GC context around
34094 rest_of_compilation for nested functions.
34096 2001-12-23 Richard Henderson <rth@redhat.com>
34098 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
34100 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
34102 * gnat-style.texi (Declarations and Types): Remove ancient style
34103 rule which was mandated by code generation issues.
34105 * gnat-style.texi (header): Add @dircategory, @direntry.
34106 (title page): Remove date.
34107 (general) Add @./@: where approriate, and two spaces after the
34108 full stop at the end of a sentence. Use @samp markup when
34109 referring concrete lexical entities (keywords, attribute names
34110 etc.), and @syntax for ARM grammar elements. Use @r for English
34111 text in comments. Use @emph for emphasis. Change "if-statements"
34112 etc. to "if statements" (without @samp). Break long lines. Make
34113 casing of section names consistent.
34114 (Identifiers): Use @samp markup for variable names.
34115 (Comments): Use @samp markup for comment characters. Line-end
34116 comments may follow any Ada code, not just statements. Fix
34117 misspelling of "Integer" as "integer".
34118 (Loop statements): Do not use variable name "I", use "J".
34119 (Subprogram Declarations): Document alignment.
34120 (Subprogram Bodies, Block statements): Document empty line before
34123 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
34125 * make.adb (Add_Switch): Make Generic_Position a procedure. The
34126 function approach did not work well because of a side effect (the
34127 function call could reallocate the table which was being indexed
34128 using its result). Fixes ada/4851.
34130 2001-12-19 Robert Dewar <dewar@gnat.com>
34132 * bindgen.adb: Minor reformatting
34134 * cstand.adb: Minor reformatting
34136 * fmap.adb: Minor reformatting
34137 Change name from Add for Add_To_File_Map (Add is much too generic)
34138 Change Path_Name_Of to Mapped_Path_Name
34139 Change File_Name_Of to Mapped_File_Name
34140 Fix copyright dates in header
34143 Change name from Add for Add_To_File_Map (Add is much too generic)
34144 Change Path_Name_Of to Mapped_Path_Name
34145 Change File_Name_Of to Mapped_File_Name
34146 Fix copyright dates in header
34148 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
34149 Add use clause for Fmap.
34151 * make.adb: Minor reformatting
34153 * osint.adb: Minor reformatting. Change of names in Fmap.
34154 Add use clause for Fmap.
34156 * prj-env.adb: Minor reformatting
34158 * prj-env.ads: Minor reformatting
34160 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
34161 error found (there were odd exceptions to this general rule in
34162 -gnatec/-gnatem processing)
34164 2001-12-19 Olivier Hainque <hainque@gnat.com>
34166 * raise.c (__gnat_eh_personality): Exception handling personality
34167 routine for Ada. Still in rough state, inspired from the C++ version
34168 and still containing a bunch of debugging artifacts.
34169 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
34170 inspired from the C++ library.
34172 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
34173 exception handling integration.
34175 2001-12-19 Arnaud Charlet <charlet@gnat.com>
34177 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
34178 (HIE_SOURCES): Add s-secsta.ad{s,b}.
34179 (HIE_OBJS): Add s-fat*.o
34180 (RAVEN_SOURCES): Remove files that are no longer required. Add
34181 interrupt handling files.
34182 (RAVEN_MOD): Removed, no longer needed.
34184 2001-12-19 Robert Dewar <dewar@gnat.com>
34186 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
34187 Add 2001 to copyright date
34189 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
34190 need to force universal inlining for these cases.
34192 2001-12-19 Arnaud Charlet <charlet@gnat.com>
34194 * s-taprob.adb: Minor clean ups so that this unit can be used in
34197 * exp_ch7.adb: Allow use of secondary stack in HI mode.
34198 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
34200 2001-12-19 Vincent Celier <celier@gnat.com>
34202 * prj-tree.ads (Project_Node_Record): Add comments for components
34203 Pkg_Id and Case_Insensitive.
34205 2001-12-19 Pascal Obry <obry@gnat.com>
34207 * g-socket.adb: Minor reformatting. Found while reading code.
34209 2001-12-19 Robert Dewar <dewar@gnat.com>
34211 * prj-tree.ads: Minor reformatting
34213 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
34215 * config-lang.in (diff_excludes): Remove.
34217 2001-12-17 Ed Schonberg <schonber@gnat.com>
34219 * sem_res.adb (Resolve_Selected_Component): do not generate a
34220 discriminant check if the selected component is a component of
34221 the argument of an initialization procedure.
34223 * trans.c (tree_transform, case of arithmetic operators): If result
34224 type is private, the gnu_type is the base type of the full view,
34225 given that the full view itself may be a subtype.
34227 2001-12-17 Robert Dewar <dewar@gnat.com>
34229 * sem_res.adb: Minor reformatting
34231 * trans.c (tree_transform, case N_Real_Literal): Add missing third
34232 parameter in call to Machine (unknown horrible effects from this
34235 * urealp.h: Add definition of Round_Even for call to Machine
34236 Add third parameter for Machine
34238 2001-12-17 Ed Schonberg <schonber@gnat.com>
34240 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
34241 predefined units in No_Run_Time mode.
34243 2001-12-17 Richard Kenner <kenner@gnat.com>
34245 * misc.c (insn-codes.h): Now include.
34247 2001-12-17 Olivier Hainque <hainque@gnat.com>
34249 * a-except.adb: Preparation work for future integration of the GCC 3
34250 exception handling mechanism
34251 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
34252 to factorize previous code sequences and make them externally callable,
34253 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
34254 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
34255 Use the new notification routines.
34257 2001-12-17 Emmanuel Briot <briot@gnat.com>
34259 * prj-tree.ads (First_Choice_Of): Document the when others case
34261 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34263 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
34264 HI-E mode, in order to support Ravenscar profile properly.
34266 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
34267 mode on 32 bits targets.
34269 2001-12-17 Vincent Celier <celier@gnat.com>
34271 * fmap.adb: Initial version.
34273 * fmap.ads: Initial version.
34275 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
34276 If search is successfully done, add to mapping.
34278 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
34281 (Gnatmake): Add new local variable Mapping_File_Name.
34282 Create mapping file when using project file(s).
34283 Delete mapping file before exiting.
34285 * opt.ads (Mapping_File_Name): New variable
34287 * osint.adb (Find_File): Use path name found in mapping, if any.
34289 * prj-env.adb (Create_Mapping_File): New procedure
34291 * prj-env.ads (Create_Mapping_File): New procedure.
34293 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
34296 * usage.adb: Add entry for new switch -gnatem.
34298 * Makefile.in: Add dependencies for fmap.o.
34300 2001-12-17 Ed Schonberg <schonber@gnat.com>
34302 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
34303 is a package instantiation rewritten as a package body.
34304 (Install_Withed_Unit): Undo previous change, now redundant.
34306 2001-12-17 Gary Dismukes <dismukes@gnat.com>
34309 (Compute_Length): Move conversion to Unsigned to callers.
34310 (Get_Max_Size): Convert Len expression to Unsigned after calls to
34311 Compute_Length and Determine_Range.
34312 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
34313 Compute_Length and Determine_Range.
34314 Above changes fix problem with length computation for supernull arrays
34315 where Max (Len, 0) wasn't getting applied due to the Unsigned
34316 conversion used by Compute_Length.
34318 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34321 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
34322 System.Secondary_Stack.
34323 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
34325 Remove unused entity RE_Exception_Data.
34327 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
34329 * rident.ads (No_Secondary_Stack): New restriction.
34331 2001-12-17 Joel Brobecker <brobecke@gnat.com>
34333 * gnat_rm.texi: Fix minor typos. Found while reading the section
34334 regarding "Bit_Order Clauses" that was sent to a customer.
34335 Very interesting documentation!
34337 2001-12-17 Robert Dewar <dewar@gnat.com>
34339 * sem_case.adb (Choice_Image): Avoid creating improper character
34340 literal names by using the routine Set_Character_Literal_Name. This
34341 fixes bombs in certain error message cases.
34343 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34345 * a-reatim.adb: Minor reformatting.
34347 2001-12-17 Ed Schonberg <schonber@gnat.com>
34349 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
34350 case where the formal is an extension of another formal in the current
34351 unit or in a parent generic unit.
34353 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34355 * s-tposen.adb: Update comments. Minor reformatting.
34356 Minor code clean up.
34358 * s-tarest.adb: Update comments. Minor code reorganization.
34360 2001-12-17 Gary Dismukes <dismukes@gnat.com>
34362 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
34365 2001-12-17 Robert Dewar <dewar@gnat.com>
34367 * exp_attr.adb: Minor reformatting
34369 2001-12-17 Ed Schonberg <schonber@gnat.com>
34371 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
34372 derivations nested within a child unit: verify that the parent
34373 type is declared in an outer scope.
34375 2001-12-17 Robert Dewar <dewar@gnat.com>
34377 * sem_ch12.adb: Minor reformatting
34379 2001-12-17 Ed Schonberg <schonber@gnat.com>
34381 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
34382 warning if current unit is a predefined one, from which bodies may
34385 2001-12-17 Robert Dewar <dewar@gnat.com>
34387 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
34388 Fix header format. Add 2001 to copyright date.
34390 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
34391 which caused CE during compilation if checks were enabled.
34393 2001-12-17 Vincent Celier <celier@gnat.com>
34396 (Switches_Of): New function
34397 (Test_If_Relative_Path): New procedure
34398 (Add_Switches): Use new function Switches_Of
34399 (Collect_Arguments_And_Compile): Use new function Switches_Of.
34400 When using a project file, test if there are any relative
34401 search path. Fail if there are any.
34402 (Gnatmake): Only add switches for the primary directory when not using
34403 a project file. When using a project file, change directory to the
34404 object directory of the main project file. When using a project file,
34405 test if there are any relative search path. Fail if there are any.
34406 When using a project file, fail if specified executable is relative
34407 path with directory information, and prepend executable, if not
34408 specified as an absolute path, with the exec directory. Make sure
34409 that only one -o switch is transmitted to the linker.
34411 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
34414 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
34415 when using a non standard naming scheme.
34416 (Check_Ada_Naming_Scheme): Make sure that error messages
34417 do not raise exceptions.
34418 (Is_Illegal_Append): Return True if there is no dot in the suffix.
34419 (Language_Independent_Check): Check the exec directory.
34421 * prj.adb (Project_Empty): Add new component Exec_Directory
34424 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
34425 (Project_Data): Add component Exec_Directory
34427 * snames.adb: Updated to match snames.ads revision 1.215
34429 * snames.ads: Added Exec_Dir
34431 2001-12-17 Robert Dewar <dewar@gnat.com>
34433 * make.adb: Minor reformatting
34435 * prj-nmsc.adb: Minor reformatting
34437 * snames.adb: Updated to match snames.ads
34439 * snames.ads: Alphebetize entries for project file
34441 2001-12-17 Ed Schonberg <schonber@gnat.com>
34443 * trans.c (process_freeze_entity): Do nothing if the entity is a
34444 subprogram that was already elaborated.
34446 2001-12-17 Richard Kenner <kenner@gnat.com>
34448 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
34449 and Esize if object is referenced via pointer.
34451 2001-12-17 Ed Schonberg <schonber@gnat.com>
34453 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
34454 is discrete before analyzing choices.
34456 2001-12-17 Joel Brobecker <brobecke@gnat.com>
34458 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
34459 containing the name of the Ada Main Program. This string is mainly
34460 intended for the debugger.
34461 (Gen_Output_File_C): Do the equivalent change when generating a C file.
34463 2001-12-17 Robert Dewar <dewar@gnat.com>
34465 * ali.adb: Set new Dummy_Entry field in dependency entry
34467 * ali.ads: Add Dummy_Entry field to source dependency table
34469 * bcheck.adb (Check_Consistency): Ignore dummy D lines
34471 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
34473 * lib-writ.ads: Document dummy D lines for missing files.
34475 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
34477 2001-12-17 Robert Dewar <dewar@gnat.com>
34479 * ali.adb: Type reference does not reset current file.
34481 * ali.adb: Recognize and scan renaming reference
34483 * ali.ads: Add spec for storing renaming references.
34485 * lib-xref.ads: Add documentation for handling of renaming references
34487 * lib-xref.adb: Implement output of renaming reference.
34490 (Determine_Range): Document local variables
34491 (Determine_Range): Make sure Hbound is initialized. It looks as though
34492 there could be a real problem here with an uninitialized reference
34493 to Hbound, but no actual example of failure has been found.
34495 2001-12-17 Laurent Pautet <pautet@gnat.com>
34498 Fix comment of Shutdown_Socket and Close_Socket. These functions
34499 should not fail silently because if they are called twice, this
34500 probably means that there is a race condition in the user program.
34501 Anyway, this behaviour is consistent with the rest of this unit.
34502 When an error occurs, an exception is raised with the error message
34503 as exception message.
34505 2001-12-17 Robert Dewar <dewar@gnat.com>
34507 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
34508 that it happens before modification of Sloc values for -gnatD.
34510 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
34511 so that it happens before modification of Sloc values for -gnatD.
34513 * switch.adb: Minor reformatting
34515 2001-12-15 Richard Henderson <rth@redhat.com>
34517 * sem_ch7.adb: Wrap comment.
34519 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
34521 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
34522 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
34523 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
34524 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
34525 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
34526 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
34527 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
34528 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
34529 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
34530 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
34531 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
34532 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
34533 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
34534 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
34535 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
34536 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
34537 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
34538 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
34539 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
34540 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
34541 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
34542 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
34543 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
34544 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
34547 2001-12-14 Vincent Celier <celier@gnat.com>
34549 * osint.adb(Create_Debug_File): When an object file is specified,
34550 put the .dg file in the same directory as the object file.
34552 2001-12-14 Robert Dewar <dewar@gnat.com>
34554 * osint.adb: Minor reformatting
34556 * lib-xref.adb (Output_Instantiation): New procedure to generate
34557 instantiation references.
34559 * lib-xref.ads: Add documentation of handling of generic references.
34561 * ali.adb (Read_Instantiation_Ref): New procedure to read
34562 instantiation references
34564 * ali.ads: Add spec for storing instantiation references
34566 * bindusg.adb: Minor reformatting
34568 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34570 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34572 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34574 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34578 Add 2001 to copyright date
34579 Add entry for Latin-5 (Cyrillic ISO-8859-5)
34581 2001-12-14 Matt Gingell <gingell@gnat.com>
34583 * adaint.c: mktemp is a macro on Lynx and can not be used as an
34586 2001-12-14 Richard Kenner <kenner@gnat.com>
34588 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
34589 if operand is CONSTRUCTOR.
34591 2001-12-14 Ed Schonberg <schonber@gnat.com>
34593 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
34594 before emiting check on right-hand side, so that exception information
34597 2001-12-14 Richard Kenner <kenner@gnat.com>
34599 * utils.c (create_var_decl): Throw away initializing expression
34600 if just annotating types and non-constant.
34602 2001-12-14 Vincent Celier <celier@gnat.com>
34604 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
34607 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34609 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
34611 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34613 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
34615 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
34617 * ChangeLog: Remove piece of diff output.
34619 2001-12-14 Geert Bosch <bosch@gnat.com>
34621 * config-lang.in: Update copyright notice
34623 * layout.adb: Remove commented out code.
34625 * mdllfile.ads: Update copyright notice. Fix header format.
34627 * sem_case.ads: Likewise.
34629 * sem_ch3.adb: Minor reformatting.
34631 2001-12-12 Geert Bosch <bosch@gnat.com>
34633 * freeze.ads: Update copyright date.
34635 * g-comlin.ads: Minor reformatting.
34637 * gnat-style.texi: Fix typo.
34639 2001-12-12 Geert Bosch <bosch@gnat.com>
34641 * einfo.h: Regenerate.
34643 2001-12-12 Ed Schonberg <schonber@gnat.com>
34645 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
34646 on known node types, rather than untyped fields. Further cleanups.
34648 2001-12-12 Robert Dewar <dewar@gnat.com>
34651 (Save_Entity_Descendant): Minor comment update.
34652 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
34653 of an N_Attribute_Reference node. As per note below, this does not
34654 eliminate need for Associated_Node in attribute ref nodes.
34655 (Associated_Node): Documentation explicitly mentions attribute
34656 reference nodes, since this field is used in such nodes.
34658 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
34660 2001-12-12 Robert Dewar <dewar@gnat.com>
34662 * s-stalib.adb: Add more comments on with statements being needed
34664 * par-ch12.adb: Minor reformatting
34666 * prj-dect.ads: Fix copyright header
34668 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
34669 inputs fit in 32 bits, but the result still overflows.
34671 * s-fatgen.ads: Minor comment improvement
34673 2001-12-12 Ed Schonberg <schonber@gnat.com>
34675 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
34676 formal derived type, look for an inherited component from the full
34677 view of the parent, if any.
34679 2001-12-12 Robert Dewar <dewar@gnat.com>
34681 * checks.ads (Apply_Alignment_Check): New procedure.
34683 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
34684 ensure that the alignment of objects with address clauses is
34685 appropriate, and raise PE if not.
34687 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
34688 Exp_Pakd.Known_Aligned_Enough
34690 * mdllfile.ads: Minor reformatting
34692 * mlib-fil.ads: Minor reformatting
34694 2001-12-12 Ed Schonberg <schonber@gnat.com>
34696 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
34697 fix to any component reference if enclosing record has non-standard
34700 2001-12-12 Vincent Celier <celier@gnat.com>
34702 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
34705 2001-12-12 Ed Schonberg <schonber@gnat.com>
34707 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
34710 2001-12-12 Robert Dewar <dewar@gnat.com>
34712 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
34714 2001-12-12 Emmanuel Briot <briot@gnat.com>
34716 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
34717 and it adds dependencies to system.io.
34719 2001-12-12 Pascal Obry <obry@gnat.com>
34721 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
34724 2001-12-11 Ed Schonberg <schonber@gnat.com>
34726 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
34727 that is the parent of other generics, the instance body replaces the
34728 instance node. Retrieve the instance of the spec, which is the one
34729 that is visible in clients and within the body.
34731 2001-12-11 Vincent Celier <celier@gnat.com>
34733 * gnatmain.adb: Initial version.
34735 * gnatmain.ads: Initial version.
34737 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
34739 * snames.adb: Updated to match snames.ads.
34741 * snames.ads: Added Gnatstub.
34743 2001-12-11 Vincent Celier <celier@gnat.com>
34745 * prj-attr.adb (Initialization_Data): Change name from
34746 Initialisation_Data.
34748 2001-12-11 Emmanuel Briot <briot@gnat.com>
34750 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
34751 + and * applied to backslashed expressions like \r.
34753 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
34755 * g-os_lib.ads: String_List type added, Argument_List type is now
34756 subtype of String_List.
34758 2001-12-11 Robert Dewar <dewar@gnat.com>
34760 * g-os_lib.ads: Change copyright to FSF
34761 Add comments for String_List type
34763 2001-12-11 Vincent Celier <celier@gnat.com>
34765 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
34766 string to the buffer).
34768 2001-12-11 Ed Schonberg <schonber@gnat.com>
34770 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
34773 * sem_attr.adb: Simplify previous fix for Address.
34774 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
34775 to avoid anomalies where the bound of the type appears to raise
34778 2001-12-11 Robert Dewar <dewar@gnat.com>
34780 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
34783 2001-12-11 Ed Schonberg <schonber@gnat.com>
34785 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
34786 renamed unit before checking for recursive instantiations.
34788 2001-12-11 Emmanuel Briot <briot@gnat.com>
34790 * prj.ads: Add comments for some of the fields.
34792 2001-12-11 Robert Dewar <dewar@gnat.com>
34794 * lib-xref.adb (Output_Refs): Don't output type references outside
34795 the main unit if they are not otherwise referenced.
34797 2001-12-11 Ed Schonberg <schonber@gnat.com>
34799 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
34800 code and diagnose additional illegal uses
34802 * sem_util.adb (Is_Object_Reference): An indexed component is an
34803 object only if the prefix is.
34805 2001-12-11 Vincent Celier <celier@gnat.com>
34807 * g-diopit.adb: Initial version.
34809 * g-diopit.ads: Initial version.
34812 (Expand_Path): Avoid use of Unbounded_String
34813 (Find, Wildcard_Iterator): Moved to child package Iteration
34815 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
34817 2001-12-11 Robert Dewar <dewar@gnat.com>
34819 * sem_attr.adb: Minor reformatting
34821 2001-12-11 Ed Schonberg <schonber@gnat.com>
34823 * sem_ch3.adb: Clarify some ???.
34825 2001-12-11 Robert Dewar <dewar@gnat.com>
34827 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
34828 Exp_Pakd.Known_Aligned_Enough
34830 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
34831 version is moved to Exp_Ch13.
34833 2001-12-11 Robert Dewar <dewar@gnat.com>
34835 * einfo.ads: Minor reformatting
34837 * exp_ch5.adb: Add comment for previous.change
34839 * ali.adb: New interface for extended typeref stuff.
34841 * ali.ads: New interface for typeref stuff.
34843 * checks.adb (Apply_Alignment_Check): New procedure.
34845 * debug.adb: Add -gnatdM for modified ALI output
34847 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
34849 * lib-xref.adb: Extend generation of <..> notation to cover
34850 subtype/object types. Note that this is a complete rewrite,
34851 getting rid of the very nasty quadratic algorithm previously
34852 used for derived type output.
34854 * lib-xref.ads: Extend description of <..> notation to cover
34855 subtype/object types. Uses {..} for these other cases.
34856 Also use (..) for pointer types.
34858 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
34860 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
34861 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
34863 2001-12-11 Vincent Celier <celier@gnat.com>
34866 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
34867 Changed /BIND_ONLY to /ACTIONS=BIND
34868 Changed /LINK_ONLY to /ACTIONS=LINK
34870 2001-12-11 Ed Schonberg <schonber@gnat.com>
34872 * sem_ch8.adb (Find_Selected_Component): improved search for a
34873 candidate package in case of error.
34875 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
34876 chain back on scope stack before reinstalling use clauses.
34878 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
34879 is enabled, do not kill the code for the condition, to preserve
34882 2001-12-11 Robert Dewar <dewar@gnat.com>
34884 * checks.adb (Insert_Valid_Check): Apply validity check to expression
34885 of conversion, not to result of conversion.
34887 2001-12-11 Ed Schonberg <schonber@gnat.com>
34889 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
34890 before freezing parent. If the declarations are mutually recursive,
34891 an access to the current record type may be frozen before the
34892 derivation is complete.
34894 2001-12-05 Vincent Celier <celier@gnat.com>
34896 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
34897 -c /COMPILE_ONLY, -l /LINK_ONLY
34900 (Bind_Only): New Flag
34901 (Link_Only): New flag
34903 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
34906 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
34909 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
34910 (Gnatmake): Set the step flags. Only perform a step if the
34911 corresponding step flag is True.
34912 (Scan_Make_Arg): Reset the bind and link step flags when -u
34913 or -gnatc has been specified.
34915 2001-12-05 Ed Schonberg <schonber@gnat.com>
34917 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
34918 get bounds from right operand.
34920 * sem_eval.adb: Minor reformatting
34922 * exp_util.adb (Make_Literal_Range): use bound of literal rather
34923 than Index'First, its lower bound may be different from 1.
34925 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
34928 2001-12-05 Vincent Celier <celier@gnat.com>
34930 * prj-nmsc.adb Minor reformatting
34932 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
34933 set and libraries are not supported.
34935 2001-12-05 Ed Schonberg <schonber@gnat.com>
34937 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
34938 private view explicitly, so the back-end can treat as a global
34941 2001-12-05 Ed Schonberg <schonber@gnat.com>
34943 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
34944 unit, always replace instance node with new body, for ASIS use.
34946 2001-12-05 Vincent Celier <celier@gnat.com>
34948 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
34949 libraries are not supported and both attributes Library_Name and
34950 Library_Dir are specified.
34952 * prj-proc.adb (Expression): Set location of Result to location of
34955 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
34956 (prj-nmsc is now importing MLib.Tgt)
34958 * prj-proc.adb: Put the change indicated above that was forgotten.
34960 2001-12-05 Robert Dewar <dewar@gnat.com>
34962 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
34964 2001-12-05 Ed Schonberg <schonber@gnat.com>
34966 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
34967 constraint, introduce explicit subtype declaration and derive from it.
34969 * sem_ch3.adb: Minor reformatting
34971 2001-12-05 Robert Dewar <dewar@gnat.com>
34973 * checks.adb (Determine_Range): Increase cache size for checks.
34976 * exp_ch6.adb: Minor reformatting
34977 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
34978 a parameter whose root type is System.Address, since treating such
34979 subprograms as pure in the code generator is almost surely a mistake
34980 that will lead to unexpected results.
34982 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
34983 change handling of conversions.
34985 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
34987 2001-12-05 Ed Schonberg <schonber@gnat.com>
34989 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
34990 aggregate with static wrong size, attach generated Raise node to
34993 2001-12-05 Robert Dewar <dewar@gnat.com>
34995 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
34996 Fixes compilation abandoned bomb in B24009B.
34998 2001-12-05 Ed Schonberg <schonber@gnat.com>
35001 Document use of Associated_Node on Selected_Components.
35002 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
35003 to clarify use of untyped descendant fields.
35005 2001-12-05 Robert Dewar <dewar@gnat.com>
35007 * prj-dect.ads: Add ??? comment
35008 Add 2001 to copyright notice (was not done in after all)
35010 * prj-part.adb: Minor reformatting. Reword one awkward error message.
35012 * prj.ads: Minor reformatting throughout, and add some ??? comments
35014 * snames.ads: Minor reformatting
35016 2001-12-05 Geert Bosch <bosch@gnat.com>
35018 * snames.adb: Autoupdate
35020 2001-12-05 Vincent Celier <celier@gnat.com>
35022 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
35024 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
35026 * prj-env.adb: Minor comment changes (modifying -> extends).
35028 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
35030 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
35033 * prj.adb (Initialize): Change Modifying to Extends.
35035 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
35037 * prj.ads: Minor comment change (Modifying -> extending).
35039 * snames.ads: Change modifying to extends.
35041 2001-12-05 Robert Dewar <dewar@gnat.com>
35043 * sem_warn.adb: Remove stuff for conditionals, we are not going to
35046 * sem_warn.ads: Remove stuff for conditionals, we are not going to
35047 do this after all. Add 2001 to copyright notice
35049 2001-12-04 Geert Bosch <bosch@gnat.com>
35051 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
35053 2001-12-04 Robert Dewar <dewar@gnat.com>
35055 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
35056 location if we already have errors. Stops some cases of cascaded
35059 * errout.adb: Improve comment.
35061 2001-12-04 Robert Dewar <dewar@gnat.com>
35064 (Analyze_Formal_Type_Definition): Defend against Error.
35065 (Analyze_Formal_Subprogram): Defend against Error.
35067 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
35068 remove following semicolon if present. Removes cascaded error.
35070 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
35073 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
35074 exceptions equals 0.
35075 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
35076 Fixes PIWG E tests (which have to be run with -gnatL).
35078 2001-12-04 Robert Dewar <dewar@gnat.com>
35080 * einfo.ads: Minor reformatting
35082 2001-12-04 Ed Schonberg <schonber@gnat.com>
35084 * einfo.ads: Block_Node points to the identifier of the block, not to
35085 the block node itself, to preserve the link when the block is
35086 rewritten, e.g. within an if-statement with a static condition.
35088 * inline.adb (Cleanup_Scopes): recover block statement from block
35089 entity using new meaning of Block_Node.
35091 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
35092 identifier of block node, rather than to node itself.
35094 2001-12-04 Gary Dismukes <dismukes@gnat.com>
35097 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
35098 (Discrimify): Go back to setting the Etypes of the selected component
35099 because the Vname component does not exist at this point and will
35100 fail name resolution. Also set Analyzed.
35101 Remove with and use of Sem_Res.
35103 2001-12-04 Arnaud Charlet <charlet@gnat.com>
35105 * Makefile.in: (HIE_SOURCES): add s-fat*.
35107 2001-12-04 Robert Dewar <dewar@gnat.com>
35110 (Compile_Time_Known_Attribute): New procedure.
35111 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
35112 proper range check.
35114 2001-12-04 Ed Schonberg <schonber@gnat.com>
35116 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
35117 processing discriminants to diagnose illegal default values.
35119 2001-12-04 Ed Schonberg <schonber@gnat.com>
35121 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
35122 access discriminant within a type extension that constrains its
35123 parent discriminants.
35125 2001-12-04 Ed Schonberg <schonber@gnat.com>
35127 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
35128 is malformed, use instance of Any_Id to allow analysis to proceed.
35130 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
35131 type definition is illegal.
35132 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
35135 2001-12-04 Ed Schonberg <schonber@gnat.com>
35137 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
35140 2001-12-04 Robert Dewar <dewar@gnat.com>
35142 * errout.adb: Minor reformatting
35144 2001-12-04 Robert Dewar <dewar@gnat.com>
35146 * exp_util.adb: Minor reformatting from last change
35148 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
35149 which is a rewriting of an expression, traverse the original
35150 expression to remove warnings that may have been posted on it.
35152 2001-12-04 Ed Schonberg <schonber@gnat.com>
35154 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
35155 record that has other packed components.
35157 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
35159 * adaint.c: Minor cleanups.
35161 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
35163 * adaint.c: Do not use utime.h on vxworks.
35165 2001-12-04 Arnaud Charlet <charlet@gnat.com>
35167 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
35168 more confusion than it solves.
35170 2001-12-04 Geert bosch <bosch@gnat.com>
35172 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
35174 2001-12-04 Geert Bosch <bosch@gnat.com>
35176 * Makefile.in (update-sources): New target.
35177 For use by gcc_release script.
35179 2001-12-04 Ed Schonberg <schonber@gnat.com>
35181 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
35182 a configuration pragma, it is now legal wherever a pragma can appear.
35184 2001-12-04 Zack Weinberg <zack@codesourcery.com>
35186 * Makefile.in: Don't set ALL. Delete @cross_defines@,
35187 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
35188 is now @CROSS@ -DIN_GCC; update comment.
35190 2001-12-04 Robert Dewar <dewar@gnat.com>
35192 * einfo.adb (Has_Pragma_Pure_Function): New flag.
35193 Fix problem that stopped ceinfo from working
35195 * einfo.ads (Has_Pragma_Pure_Function): New flag.
35197 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
35199 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
35202 (File_Time_Stamp): New procedure.
35203 (Preserve_Mode): New boolean.
35204 (Write_Unit): Pass time stamp.
35205 Implement -p switch (preserve time stamps).
35207 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
35209 * gnatchop.adb: Do usage info for -p switch
35211 * adaint.h (__gnat_set_file_time_name): New function
35213 * adaint.c (__gnat_set_file_time_name): Implement
35215 * adaint.h: Fix typo
35217 2001-12-03 Robert Dewar <dewar@gnat.com>
35219 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
35220 have Associated_Node.
35222 2001-12-03 Robert Dewar <dewar@gnat.com>
35224 * prj-proc.adb: Minor reformatting
35226 * make.adb: Minor reformatting
35228 2001-12-03 Geert Bosch <bosch@gnat.com>
35230 * make.adb: Minor reformatting.
35232 2001-12-03 Robert Dewar <dewar@gnat.com>
35234 * sem_ch12.adb: Minor reformatting
35236 2001-12-03 Ed Schonberg <schonber@gnat.com>
35238 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
35239 push Standard on the stack before analyzing the instance body,
35240 in order to have a clean visibility environment.
35242 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
35244 2001-12-03 Ed Schonberg <schonber@gnat.com>
35246 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
35247 instantiation of a body that contains an inlined body.
35249 2001-12-03 Ed Schonberg <schonber@gnat.com>
35252 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
35253 to prevent freezing within formal packages.
35254 (Freeze_Subprogram_Body): If body comes from another instance that
35255 appeared before its own body, place freeze node at end of current
35256 declarative part, to prevent a back-end crash.
35257 (Inline_Instance_Body): Handle properly a package instance within
35258 a subprogram instance that is a child unit.
35260 2001-12-01 Graham Stott <grahams@redhat.com>
35262 * Makefile.in (misc.o): Add missing $(srcdir) prefix
35263 and add optabs.h dependency.
35265 * misc.c: Include optabs.h
35266 (gnat_tree_code_type): Make static and const.
35267 (gnat_tree_code_length): Likewise.
35268 (gnat_tree_code_name): Likewise.
35269 (update_setjmp_buf): Obtain operands mode from insn_data.
35271 2001-11-29 Richard Henderson <rth@redhat.com>
35273 * init.c: Remove obsolete dwarf2 frame.h section.
35275 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
35277 * Make-lang.in (ada.generated-manpages): New dummy target.
35279 2001-11-29 Ed Schonberg <schonber@gnat.com>
35281 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
35282 into Command, an array conversion is illegal here. Uncovered by
35285 2001-11-28 Geert Bosch <bosch@gnat.com>
35287 * init.c: Minor whitespace changes.
35289 2001-11-28 Doug Rupp <rupp@gnat.com>
35291 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
35294 2001-11-28 Zack Weinberg <zack@codesourcery.com>
35296 * misc.c (gnat_expand_constant): Move declaration above
35297 definition of lang_hooks.
35298 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
35299 (gnat_init): lang_expand_constant no longer exists.
35301 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
35302 always have vprintf.
35303 (gnat_init): Always call set_internal_error_function.
35305 2001-11-27 Andreas Jaeger <aj@suse.de>
35307 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
35309 2001-11-27 Laurent Guerby <guerby@acm.org>
35311 * Makefile.in: Regenerate Ada dependencies.
35313 2001-11-26 Richard Henderson <rth@redhat.com>
35315 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
35316 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
35317 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
35319 2001-11-25 Laurent Guerby <guerby@acm.org>
35321 * sysdep.c (rts_get_*): Fix style.
35323 2001-11-19 Laurent Guerby <guerby@acm.org>
35325 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
35326 since it is of no apparent use and cause warnings.
35328 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
35330 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
35332 (gnat_init): Don't return NULL.
35333 (finish_parse): Remove.
35335 2001-11-17 Laurent Guerby <guerby@acm.org>
35337 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
35338 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
35339 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
35340 * lang-spec.h: Add missing struct field to silence warnings.
35341 * sysdep.c (rts_get_*): Provide K&R prototype.
35342 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
35343 * traceback.c (Unlock_Task, Lock_Task): Likewise.
35344 * tracebak.c (__gnat_backtrace): Remove unused variable.
35345 * utils.c (end_subprog_body): Move to K&R style.
35347 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35349 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
35351 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
35353 * misc.c (gnat_init): Change prototype. Include the
35354 functionality of the old init_parse and init_decl_processing.
35355 (gnat_init_decl_processing): New prototype.
35356 (init_parse): Remove.
35357 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
35359 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
35361 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
35362 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
35363 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
35364 set_yydebug): Remove.
35366 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
35368 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
35369 (struct lang_hooks): Constify.
35370 (language_string, lang_identify): Remove.
35371 * utils.c (init_decl_processing): Update.
35373 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
35375 * misc.c: Include langhooks-def.h.
35376 * Makefile.in: Update.
35378 2001-10-30 Robert Dewar <dewar@gnat.com>
35381 (Check_Identifier): Rewrite circuit to be compatible with use of letters
35382 in the upper half of ASCII.
35383 (Check_Identifier): Minor reformatting
35385 2001-10-30 Geert Bosch <bosch@gnat.com>
35387 * (Associated_Node, Set_Associated_Node): Do not check for
35390 2001-10-30 Robert Dewar <dewar@gnat.com>
35392 * a-reatim.ads: Minor reformatting
35394 2001-10-30 Robert Dewar <dewar@gnat.com>
35396 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
35397 undocumented declarations.
35399 2001-10-30 Pascal Obry <obry@gnat.com>
35401 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
35402 to the binder and linker.
35405 * mdll.ads: Fix layout. Update copyright notice.
35407 * mdll.adb: Fix layout. Update copyright notice.
35409 2001-10-30 Robert Dewar <dewar@gnat.com>
35411 * usage.adb: Minor fix to output for -gnaty.
35413 2001-10-30 Ed Schonberg <schonber@gnat.com>
35415 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
35416 to accommodate all its possible values.
35418 * a-reatim.adb (Split): Special-case handling of Time_Span_First
35419 and of small absolute values of T.
35421 2001-10-30 Richard Kenner <kenner@gnat.com>
35423 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
35424 set_mem_attributes since not needed and wrong if RESULT if a REG;
35425 fixes ACATS failures.
35427 2001-10-30 Geert Bosch <bosch@gnat.com>
35429 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
35430 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
35432 2001-10-30 Robert Dewar <dewar@gnat.com>
35434 * bindusg.adb: Undocument -f switch.
35436 * gnatcmd.adb: Remove /FULL_ELABORATION.
35438 * opt.ads (Force_RM_Elaboration_Order): Document that this is
35441 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
35443 * gnatbind.adb: Minor update of warning msg.
35445 2001-10-30 Vincent Celier <celier@gnat.com>
35447 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
35448 for project file switches (-P (/PROJECT_FILE=),
35449 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
35452 2001-10-30 Geert Bosch <bosch@gnat.com>
35454 * decl.c: Minor whitespace fixes.
35456 2001-10-30 Richard Kenner <kenner@gnat.com>
35458 * utils2.c (build_allocator): Test for SIZE overflow in array case too
35460 2001-10-30 Geert Bosch <bosch@gnat.com>
35462 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
35463 Found due to GCC 3.0 warning of using uninitialized value.
35466 (Get_Max_Size): Use variant record for tracking value/expression.
35467 Makes logic clearer and prevents warnings for uninitialized variables.
35468 (Layout_Array_Type): Use variant record for tracking value/expression.
35469 Makes logic clearer and prevents warnings for uninitialized variables.
35471 2001-10-30 Robert Dewar <dewar@gnat.com>
35473 * lib.adb: Minor reformatting
35475 * s-taprop.ads: Minor reformatting
35477 2001-10-29 Laurent Guerby <guerby@acm.org>
35480 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
35482 (_gnat_error_handler): Make MSG const.
35484 2001-10-29 Richard Kenner <kenner@gnat.com>
35486 * sysdep.c: Fix localtime_r problem on LynxOS.
35487 Also remove #elif to avoid warnings.
35489 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
35492 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
35494 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
35496 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
35497 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
35498 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
35499 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
35500 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
35501 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
35502 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
35503 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
35504 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
35505 types.ads, urealp.adb: Fix spelling errors.
35507 2001-10-27 Laurent Guerby <guerby@acm.org>
35509 * trans.c (gigi): Fix non determinism leading to bootstrap
35510 comparison failures for debugging information.
35512 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
35514 * gnat_rm.texi: Use @./@: where appropriate.
35516 2001-10-26 Robert Dewar <dewar@gnat.com>
35518 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
35520 2001-10-26 Richard Kenner <kenner@gnat.com>
35522 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
35524 2001-10-26 Richard Kenner <kenner@gnat.com>
35526 * decl.c (validate_size): Modify message for bad size to avoid
35527 implication that compiler is modifying the size.
35529 2001-10-26 Robert Dewar <dewar@gnat.com>
35531 * prj-util.adb: Minor reformatting. Fix bad header format.
35533 2001-10-26 Robert Dewar <dewar@gnat.com>
35535 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
35537 * sinfo.ads: Clarify use of Associated_Node (documentation only).
35539 * sem_ch12.adb: Change Node4 to Associated_Node. Change
35540 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
35541 much more narrowly in places where needed. These are cleanups.
35543 2001-10-26 Joel Brobecker <brobecke@gnat.com>
35545 * 5zosinte.ads (null_pthread): new constant.
35548 (Initialize_TCB): Initialize thread ID to null, to be able to verify
35549 later that this field has been set.
35550 (Finalize_TCB): ditto.
35551 (Suspend_Task): Verify that the thread ID is not null before using it.
35552 (Resume_Task): ditto.
35555 (Resume_All_Tasks): Lock the tasks list before using it.
35556 (Suspend_All_Tasks): ditto.
35558 2001-10-26 Richard Kenner <kenner@gnat.com>
35560 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
35561 Make constant variant of designated type for Is_Access_Constant.
35562 Call update_pointer_to with main variant.
35564 * trans.c (process_freeze_entity, process_type):
35565 Call update_pointer_to on main variant.
35567 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
35568 If main variant, update all other variants.
35570 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
35573 2001-10-26 Robert Dewar <dewar@gnat.com>
35575 * prj-util.adb: Minor reformatting
35577 2001-10-26 Robert Dewar <dewar@gnat.com>
35579 * prj-util.adb: Minor reformatting
35581 2001-10-26 Robert Dewar <dewar@gnat.com>
35583 * prj-attr.adb: Minor reformatting throughout
35585 2001-10-26 Robert Dewar <dewar@gnat.com>
35587 * prj-attr.ads: Minor reformatting
35588 Add ??? comment (this whole spec has almost no comments)
35590 2001-10-26 Vincent Celier <celier@gnat.com>
35592 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
35593 ("//") that precede the drive letter on Interix.
35595 2001-10-26 Geert Bosch <bosch@gnat.com>
35597 * gnat_rm.texi: Add GNAT Reference Manual.
35599 2001-10-25 Robert Dewar <dewar@gnat.com>
35601 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
35602 is Error. Similar change for other renaming cases.
35604 2001-10-25 Robert Dewar <dewar@gnat.com>
35606 * s-atacco.ads: Add pragma Inline_Always for functions.
35607 Fix header format. Add copyright 2001
35609 2001-10-25 Ed Schonberg <schonber@gnat.com>
35611 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
35612 return Error rather than Empty so that analysis can proceed.
35614 2001-10-25 Ed Schonberg <schonber@gnat.com>
35616 * sem_util.adb (Enter_Name): better handling of cascaded error
35617 messages when a unit appears in its own context.
35619 2001-10-25 Ed Schonberg <schonber@gnat.com>
35621 * sem_util.adb (Defining_Entity): in case of error, attach created
35622 entity to specification, so that semantic analysis can proceed.
35624 2001-10-25 Robert Dewar <dewar@gnat.com>
35627 (Defining_Entity): Deal with Error.
35628 (Process_End_Label): Deal with bad end label for.
35630 2001-10-25 Ed Schonberg <schonber@gnat.com>
35632 * sem_elab.adb (Check_A_Call): refine message when call is in an
35633 instance but callee is not declared in the generic unit.
35635 2001-10-25 Ed Schonberg <schonber@gnat.com>
35637 * sem_elab.adb (Check_A_Call): check for renaming before finding the
35638 enclosing unit, which may already be different from the calling unit.
35640 2001-10-25 Geert Bosch <bosch@gnat.com>
35642 * 4gintnam.ads: fix header format.
35644 2001-10-25 Ed Schonberg <schonber@gnat.com>
35646 * sem_res.adb (Resolve_Call): if the call is actually an indexing
35647 operation on the result of a parameterless call, perform elaboration
35648 check after the node has been properly rewritten.
35650 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
35651 inlined within the generic tree, the defining identifier is not a
35654 2001-10-25 Ed Schonberg <schonber@gnat.com>
35656 * sem_res.adb (Resolve): special-case resolution of Null in an
35657 instance or an inlined body to avoid view conflicts.
35659 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
35660 compatibility by retrieving the access type of the generic copy.
35662 2001-10-25 Robert Dewar <dewar@gnat.com>
35665 (Analyze_Number_Declaration): Handle error expression.
35666 (Signed_Integer_Type_Declaration): Handle error bound.
35667 (Analyze_Subtype_Indication): Handle error range.
35669 * sem_util.adb (Get_Index_Bounds): Check for Error.
35671 2001-10-25 Robert Dewar <dewar@gnat.com>
35673 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
35674 in no run time mode.
35676 2001-10-25 Pascal Obry <obry@gnat.com>
35678 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
35679 mode case for ALLOC case.
35681 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
35682 all platforms. Improvement of last change.
35684 2001-10-25 Robert Dewar <dewar@gnat.com>
35686 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
35688 2001-10-25 Geert Bosch <bosch@gnat.com>
35690 * osint.adb (Is_Relative): Remove duplicate.
35692 2001-10-25 Pascal Obry <obry@gnat.com>
35694 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
35695 pathnames in UNIX and DOS style with drive letter.
35696 (Is_Relative): new routine.
35698 * osint.adb: Minor reformatting
35700 * osint.adb (Is_Relative): implementation using
35701 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
35703 2001-10-25 Pascal Obry <obry@gnat.com>
35705 * g-dirope.adb (Basename): correctly compute offset between the
35706 original Path and the translated one.
35708 * g-dirope.adb: (Base_Name): add some comments.
35710 2001-10-25 Robert Dewar <dewar@gnat.com>
35712 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
35713 in HIE mode, avoids compilation abandoned message
35715 * exp_imgv.adb: Correct typo in previous change
35717 * exp_imgv.adb: Correct typo in previous change (not my day!)
35719 2001-10-25 Robert Dewar <dewar@gnat.com>
35721 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
35723 2001-10-25 Pascal Obry <obry@gnat.com>
35725 * g-awk.ads: Move all pragma inlines next to the routine
35726 declarations. This is more uniform with other GNAT spec.
35728 2001-10-22 Geert Bosch <bosch@gnat.com>
35730 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
35732 2001-10-19 Geert Bosch <bosch@gnat.com>
35734 * Makefile.in (tools, gnattools): Remove gnatmem.
35736 2001-10-17 Richard Henderson <rth@redhat.com>
35738 * Makefile.in (misc.o): Depend on langhooks.h.
35739 * misc.c: Include it.
35740 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
35741 (LANG_HOOKS_DECODE_OPTION): New.
35742 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
35744 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
35746 * trans.c (tree_transform): Adjust to recent change in
35747 expand_asm_operands to implement named asm operands.
35749 2001-10-11 Ed Schonberg <schonber@gnat.com>
35751 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
35752 renaming of discriminant for mutable record type.
35754 2001-10-11 Robert Dewar <dewar@gnat.com>
35756 * validsw.adb: Properly save -gnatVn status.
35758 2001-10-11 Robert Dewar <dewar@gnat.com>
35760 * usage.adb: Add lines for V switch.
35762 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
35763 (/VALIDITY_CHECKING).
35765 2001-10-11 Ed Schonberg <schonber@gnat.com>
35767 * sem_type.adb (Add_One_Interp): an operator for a type declared in
35768 an extension of System is known to be visible.
35770 2001-10-11 Ed Schonberg <schonber@gnat.com>
35772 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
35773 properly. Fixes regression on ACATS C34005G.
35775 2001-10-11 Robert Dewar <dewar@gnat.com>
35777 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
35778 loop in generic instance, since this is likely not very useful.
35780 2001-10-11 Robert Dewar <dewar@gnat.com>
35782 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
35783 the error message for high integrity mode.
35785 * rtsfind.adb (RTE): Give message if we try to find an entity that
35786 is not available in high integrity mode.
35789 (OK_To_Use_In_HIE_Mode): New array.
35790 (RTE): May return Empty in high integrity mode.
35792 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
35793 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
35795 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
35796 unit if not inlined always and in no runtime mode. Fixes problem
35797 caused by new Rtsfind changes.
35799 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
35802 * rtsfind.adb (RTE): Make sure we do not try to load unit after
35803 giving message for entity not available in high integrity mode.
35805 2001-10-11 Pascal Obry <obry@gnat.com>
35807 * impunit.adb: Add GNAT.CRC32.
35809 2001-10-11 Ed Schonberg <schonber@gnat.com>
35811 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
35812 properly the case where one universal operand in a non-static
35813 exponentiation of a real literal.
35815 2001-10-11 Ed Schonberg <schonber@gnat.com>
35817 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
35818 clause, return the gobal finalization list, for lack of anthing else.
35820 2001-10-11 Ed Schonberg <schonber@gnat.com>
35822 * exp_ch7.adb (Make_Transient_Block): if statement is within
35823 exception handler, always use new transient scope to place Clean
35826 2001-10-11 Pascal Obry <obry@gnat.com>
35829 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35830 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35831 (GNATLS_RTL_OBJS): add g-crc32.o
35832 (GNATMAKE_RTL_OBJS): add g-crc32.o
35835 (CRC_Match): new function.
35836 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
35837 instead of the previous simple checksum algorithm.
35838 (Time_Stamp_Mismatch): use CRC_Match for comparison.
35839 (Set_Source_Table): idem.
35842 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
35843 instead of simple checksum.
35844 (CRC_Match): new function.
35845 (CRC_Error): new constant.
35847 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
35848 a CRC now and not a simple checksum. A CRC uses lower-case hex
35849 letters, fixes ambiguity in parsing.
35851 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
35852 is what this variable will store.
35854 * bcheck.adb: Change reference to chechsum in comments by CRC.
35855 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
35856 rename All_Checksum_Match to All_CRC_Match. Change due to API
35857 renaming since now GNAT does not use a simple checksum but a
35858 CRC using GNAT.CRC32.
35860 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
35861 now and not anymore a simple checksum.
35863 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
35866 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
35869 (Restore_Scan_State): rename Checksum to CRC.
35870 (Save_Scan_State): idem.
35874 (Checksum): rename to CRC.
35875 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
35877 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
35878 GNAT.CRC32). Update copyright notice.
35880 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
35881 GNAT.CRC32). Update copyright notice.
35884 (Accumulate_Checksum): removed.
35885 (Update): new procedure. Add a wide-character into the CRC.
35888 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
35889 (Load_File): fix initialization of S (change Source_Checksum to
35892 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
35893 Source_CRC in S initialization.
35895 * sinput.adb (Source_Checksum): renamed to Source_CRC.
35897 * sinput.ads (Source_Checksum): renamed to Source_CRC.
35898 Update comments for the CRC.
35900 * types.adb (Hex): Use lowercase for the letter part.
35902 * types.ads (Get_Hex_String): Returns the hexadecimal representation
35903 for a word. This is currently used only for CRC. In previous version,
35904 the checksum was using a representation with all letter being
35905 upper-case. With the new implementation (using CRC) we do not remove
35906 the 32th bit of the CRC, so we can have an upper-case starting letter
35907 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
35908 It is ambigous since the CRC was optional and could be followed by
35909 options like EB, EE. So now this routines uses lower-case letter for
35910 the hexadecimal representation. Strange enough only lower case letters
35911 where checked in Scan_ALI (even if this was not a possible case).
35913 * gnatvsn.ads (Library_Version): changed to 3.15a.
35915 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
35918 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
35921 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
35922 Add 2001 to copyright notice
35923 (Accumulate_Checksum): Modify to use System.CRC32.
35925 * ali-util.ads: Redo changes of previous revision to continue to use
35926 the word Checksum. Add 2001 to copyright notice.
35928 * ali.adb: Undo some of previous changes, not needed.
35929 Keep the change for lower case letters in the checksum.
35931 * ali.ads: Undo previous change not needed.
35933 * bcheck.adb: Undo most of previous change, not needed.
35934 But do use Checksums_Match for checksum comparison.
35936 * gnatls.adb: Undo most of previous change, not needed.
35937 But do use Checksums_Match for comparing checksums.
35939 * lib-load.adb: Undo previous change, not needed.
35941 * lib-writ.adb: Undo previous change, not needed.
35943 * lib-writ.ads: Document that checksums use lower case,
35944 not upper case letters.
35946 * scans.adb: Undo previous change, not needed
35948 * scans.ads: Undo previous change, not needed.
35950 * scn-nlit.adb: Undo previous changes, not needed.
35952 * scn-slit.adb: Undo previous change, not needed. Fix header format.
35955 (Accumulate_Checksum): Use System.CRC32.
35956 (Initialize_Checksum): New procedure.
35957 Remove other changes of previous revision.
35959 * sinput-p.adb: Undo previous change, not needed.
35961 * sinput.adb: Undo previous change, not needed.
35963 * sinput-l.adb: Undo previous change, not needed.
35965 * sinput.ads: Undo previous change, not needed. Keep only comment
35966 on new checksum algorithm
35968 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
35969 Also remove a-tags and a-stream from GNAT sources.
35971 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
35973 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
35975 2001-10-11 Geert Bosch <bosch@gnat.com>
35977 * einfo.h: Regenerate.
35979 * nmake.ads: Regenerate.
35981 * nmake.adb: Regenerate.
35983 * sinfo.h: Regenerate.
35985 * treeprs.adb: Regenerate.
35987 2001-10-10 Geert Bosch <bosch@gnat.com>
35989 * gnat-style.texi: New file describing coding guidelines for Ada.
35991 2001-10-10 Ed Schonberg <schonber@gnat.com>
35993 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
35996 2001-10-10 Geert Bosch <bosch@gnat.com>
35998 * snames.ads: Add new names for project facility.
36000 * snames.adb: Update to reflect snames.ads changes.
36002 * snames.h: Update to reflect snames.ads changes.
36004 2001-10-10 Vincent Celier <celier@gnat.com>
36007 (Add_Switches): reflect the changes for the switches attributes
36008 Default_Switches indexed by the programming language,
36009 Switches indexed by the file name.
36010 (Collect_Arguments_And_Compile): Idem.
36011 Reflect the attribute name changes.
36014 (Initialisation_Data): Change the names of some packages and
36016 (Initialize): process case insensitive associative arrays.
36019 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
36022 (Parse_Attribute_Declaration): For case insensitive associative
36023 arrays, set the index string to lower case.
36026 Reflect the changes of the project attributes.
36029 Replace Check_Naming_Scheme by Ada_Check and
36030 Language_Independent_Check.
36033 Replaced Check_Naming_Scheme by 2 procedures:
36034 Ada_Check and Language_Independent_Check.
36037 (Process_Declarative_Items): For case-insensitive associative
36038 arrays, set the index string to lower case.
36039 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
36040 Prj.Nmsc.Check_Naming_Scheme.
36043 (Case_Insensitive): New function
36044 (Set_Case_Insensitive): New procedure
36047 (Case_Insensitive): New function
36048 (Set_Case_Insensitive): New procedure
36049 (Project_Node_Record): New flag Case_Insensitive.
36052 (Value_Of): new function to get the string value of a single
36053 string variable or attribute.
36056 (Value_Of): new function to get the string value of a single
36057 string variable or attribute.
36060 (Ada_Default_Spec_Suffix): New function
36061 (Ada_Default_Impl_Suffix): New function
36062 Change definitions of several constants to reflect
36063 new components of record types.
36066 (Naming_Data): Change several components to reflect new
36067 elements of naming schemes.
36068 (Project_Data): New flags Sources_Present and
36069 Language_Independent_Checked.
36070 (Ada_Default_Spec_Suffix): New function.
36071 (Ada_Default_Impl_Suffix): New function.
36074 Modification of predefined names for project manager: added
36075 Implementation, Specification_Exceptions, Implementation_Exceptions,
36076 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
36077 Default_Switches, _Languages, Builder, Cross_Reference,
36078 Finder. Removed Body_Part, Specification_Append, Body_Append,
36079 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
36082 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
36085 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
36086 not that it is Nil_Variable_Value.
36088 * prj.ads: Add ??? for uncommented declarations
36090 2001-10-10 Ed Schonberg <schonber@gnat.com>
36092 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
36093 constant, do not indicate possible modification, so that gigi can
36094 treat it as a bona fide constant.
36096 2001-10-10 Robert Dewar <dewar@gnat.com>
36098 * sem_prag.adb: Add processing for pragma External.
36100 * snames.ads: Add entry for pragma External.
36102 * par-prag.adb: Add pragma External.
36104 * snames.adb: Updated to match snames.ads.
36106 2001-10-10 Ed Schonberg <schonber@gnat.com>
36108 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
36109 a dynamic task if the allocator appears in an indexed assignment
36110 or selected component assignment.
36112 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
36113 For a dynamic task in an assignment statement, use target of
36114 assignment to generate meaningful name.
36116 2001-10-10 Ed Schonberg <schonber@gnat.com>
36118 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
36121 * einfo.ads: Body_Entity is also defined for generic package.
36122 Documentation change only
36124 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
36125 others_choice for a discriminated component initialization,
36126 convert discriminant references into the corresponding discriminals.
36128 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
36129 only if original type is private and expression has to be wrapped
36133 (Apply_Constraint_Check): Do not perform length check
36134 if expression is an aggregate with only an others_choice.
36135 (Length_N_Cond): two references to the same in_parameter
36136 (typically the discriminal in an init_proc) denote the same value.
36137 Two useful optimization uncovered by bugfixes above.
36139 2001-10-10 Robert Dewar <dewar@gnat.com>
36141 * xeinfo.adb: Change int to char in translation of enumeration types.
36142 This fixes a problem in the C representation of component alignment.
36143 Add 2001 to copyright notice
36145 2001-10-10 Richard Kenner <kenner@gnat.com>
36147 * decl.c: (validate_size): Do check size of object of integral type
36148 if it is a packed array type.
36150 2001-10-10 Richard Kenner <kenner@gnat.com>
36152 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
36153 VAR_DECL for constant if not Is_Public but -O0.
36155 2001-10-10 Richard Kenner <kenner@gnat.com>
36157 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
36159 2001-10-10 Geert Bosch <bosch@gnat.com>
36161 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
36162 use '/' as switch character, allowing for absolute file names.
36164 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
36166 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
36169 2001-10-08 Geert Bosch <bosch@gnat.com>
36171 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
36172 Automatically build utilities when files need to be regenerated.
36174 2001-10-08 Geert Bosch <bosch@gnat.com>
36176 * xsnames.adb: New utility for updating snames.ads and snames.adb
36178 2001-10-08 Zack Weinberg <zack@codesourcery.com>
36180 * Make-lang.in (ADAFLAGS): Add -W -Wall.
36181 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
36182 (gnat1): Also depend on attribs.o.
36183 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
36184 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
36185 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
36186 (ADAFLAGS): Add -W -Wall.
36187 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
36190 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
36191 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
36192 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
36193 Use $(ADAC), not $(CC), as compilation command.
36195 (gnattools): Depend directly on tools to build, don't use
36197 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
36199 * einfo.h, sinfo.h: New files (autogenerated).
36201 2001-10-08 Richard Henderson <rth@redhat.com>
36203 * comperr.adb (Abort_In_Progress): New.
36204 (Compiler_Abort): Use it to prevent recursion.
36206 2001-10-08 Robert Dewar <dewar@gnat.com>
36208 * atree.adb: Set Error_Posted in Error node, helps error recovery.
36210 * par-endh.adb (Output_End_Expected): We should also not test
36211 Error_Posted on the Error node, since now it is always set.
36213 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
36214 to help error recovery. Part of general work on 9407-004.
36216 * par.adb: Add ??? for misuse of error
36219 (Resolve): Defend against Error, fixes 9407-003.
36220 (Resolve_Discrete_Subtype_Indication): Defend against Error.
36222 * sinfo.ads (N_Error): Now has Etype field (which will be set
36223 to Any_Type to help error recovery).
36225 2001-10-08 Richard Kenner (kenner@gnat.com)
36227 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
36228 Consistently set MEM attributes from expression; fixes
36229 bootstrap failure on x86.
36231 2001-10-08 Geert Bosch (bosch@gnat.com)
36233 * 5oosinte.adb: Add 2001 to copyright notice.
36235 2001-10-08 Geert Bosch (bosch@gnat.com)
36237 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
36239 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
36241 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
36243 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
36245 2001-10-05 Geert Bosch (bosch@gnat.com)
36247 * adaint.h: Small formatting fix.
36249 2001-10-04 Geert Bosch <bosch@gnat.com>
36251 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
36252 Arg is int, not FILE *, in dummy version of functions.
36254 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
36255 Arg is int, not FILE *.
36257 2001-10-04 Geert Bosch <bosch@gnat.com>
36259 * 3lsoccon.ads: Added file, missed with initial check ins.
36261 * 4lintnam.ads: Fix header format.
36262 Change Linux to GNU/Linux.
36264 * 5iosinte.adb: Change Linux to GNU/Linux.
36266 * 5iosinte.ads: Change Linux to GNU/Linux.
36268 * 5itaprop.adb: Change Linux to GNU/Linux.
36270 * 5itaspri.ads: Change Linux to GNU/Linux.
36271 Update copyright notice.
36273 * 5lintman.adb: Change Linux to GNU/Linux.
36275 * 5lml-tgt.adb: Change Linux to GNU/Linux.
36277 * 5losinte.ads: Change Linux to GNU/Linux.
36279 * 5lsystem.ads: Change Linux to GNU/Linux.
36281 * 5qosinte.adb: Change Linux to GNU/Linux.
36283 * 5qosinte.ads: Change Linux to GNU/Linux.
36285 * 5qparame.ads: Change Linux to GNU/Linux.
36287 * 5qtaprop.adb: Change Linux to GNU/Linux.
36289 * 5qtaspri.ads: Change Linux to GNU/Linux.
36290 Add 2001 to copyright notice.
36292 * 5vintman.ads: Change Linux to GNU/Linux.
36293 Fix header format. Add 2001 to copyright notice.
36295 * g-soccon.ads: Change Linux to GNU/Linux.
36297 * g-trasym.ads: Change Linux to GNU/Linux.
36298 Add 2001 to copyright notice.
36300 * memtrack.adb: Change Linux to GNU/Linux.
36302 * s-intman.ads: Change Linux to GNU/Linux.
36303 Add 2001 to copyright notice. Fix header format.
36305 * s-stache.adb: Change Linux to GNU/Linux.
36307 * adaint.c: Change Linux to GNU/Linux.
36309 * cio.c: Change Linux to GNU/Linux.
36311 * cstreams.c: Change Linux to GNU/Linux.
36313 * init.c: Change Linux to GNU/Linux.
36315 * gmem.c: Change Linux to GNU/Linux.
36317 * tracebak.c: Change Linux to GNU/Linux.
36320 2001-10-02 Geert Bosch <bosch@gnat.com>
36322 * misc.c (insert_default_attributes): Add dummy version.