1 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
5 environment if generic instance is a top-level one.
7 2008-04-09 Doug Rupp <rupp@adacore.com>
9 * decl.c (validate_size): Set minimum size for fat pointers same as
10 access types. Code clean ups.
12 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
13 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
15 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
17 * s-crtl.ads (malloc32) New function, alias for malloc
18 (realloc32) New function, alias for realloc
20 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
22 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
23 allocator size is 32 and default pointer size is 64.
24 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
25 lhs type if smaller, whatever the modes.
27 * gigi.h (malloc32_decl): New macro definition
29 * utils.c (init_gigi_decls): New malloc32_decl
30 Various code clean ups.
32 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
33 Task_Address vice System.Address.
35 * s-taspri-vms.ads: Import System.Aux_DEC
36 (Task_Address): New subtype of System.Aux_DEC.Short_Address
37 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
39 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
40 Task_Address vice System.Address.
42 * s-inmaop-vms.adb: Import System.Task_Primitives
43 (To_Address): Unchecked convert to Task_Address vice System.Address
45 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
47 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
48 (To_Address) Unchecked convert to Task_Address vice System.Address
50 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
52 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
54 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
56 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
57 (fdesc_type_node): Define.
58 (null_fdesc_node): Likewise.
59 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
60 uses descriptors for vtables and the type comes from a dispatch table,
61 return the descriptor type.
62 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
63 uses descriptors for vtables and the type comes from a dispatch table,
64 build a descriptor in the static case and copy the existing one in the
66 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
67 the type is a pointer-to-subprogram coming from a dispatch table,
68 return the null descriptor.
69 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
70 vtables, the source type is the descriptor type and the target type
71 is a pointer type, first build the pointer.
72 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
73 build the descriptor type and the null descriptor.
75 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
77 * decl.c (prepend_attributes): Fix typo.
78 * trans.c (Pragma_to_gnu): Likewise.
79 * utils.c (gnat_genericize): Likewise.
81 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
82 Richard Kenner <kenner@adacore.com>
84 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
85 * decl.c (gnat_to_gnu_entity): Adjust for above change.
86 <E_Record_Type>: Try to get a better form of the component for
87 packing, even if it has an integral mode.
88 <E_Record_Subtype>: Likewise.
89 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
90 exception suppressing the final conversion between record types.
92 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
94 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
95 alignment for space, promote the alignment of non-scalar variables with
96 no size and alignment.
97 * gigi.h (gnat_types_compatible_p): Declare.
98 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
99 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
100 * utils.c (gnat_types_compatible_p) : New predicate.
101 (convert): Use it throughout to test for cases where a mere view
102 conversion is sufficient.
103 * utils2.c (build_binary_op): Minor tweaks.
104 (build_unary_op): Likewise.
106 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
108 * decl.c (adjust_packed): Expand comment.
110 2008-04-08 Arnaud Charlet <charlet@adacore.com>
112 * s-tasuti.ads: Use Task_Address instead of System.Address.
114 * makeutl.adb (Path_Or_File_Name): New function
116 * nlists.ads, itypes.ads: Update comments.
118 * s-crtl.ads (malloc32, realloc32): New functions.
120 * s-auxdec.ads (Short_Address_Size): New constant.
122 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
124 * s-ststop.ads, s-ststop.adb: New file.
126 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
129 2008-04-08 Pascal Obry <obry@adacore.com>
131 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
132 (Stop_Bits_Number): New type.
133 (Parity_Check): Likewise.
134 (Set): Add parameter to set the number of stop bits and
135 the parity. Parameter timeout is now a duration instead
138 * g-sercom-linux.adb:
139 Implement the stop bits and parity support for GNU/Linux.
140 Fix handling of timeout, it must be given in tenth of seconds.
142 * g-sercom-mingw.adb:
143 Implement the stop bits and parity support for Windows.
144 Use new s-win32.ads unit instead of declaring Win32 services
145 directly into this body.
146 Update handling of timeout as now a duration.
148 * s-win32.ads, s-winext.ads: New files.
150 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
151 Arnaud Charlet <charlet@adacore.com>
153 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
155 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
156 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
158 * s-osinte-lynxos-3.ads,
159 (Alternate_Stack): Remove when not needed. Simplify declaration
161 (Alternate_Stack_Size): New constant.
163 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
164 'Unrestricted_Access.
166 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
167 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
168 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
169 s-osinte-solaris.ads, s-osinte-vms.ads
170 (SA_ONSTACK): New constant.
171 (stack_t): New record type.
172 (sigaltstack): New imported function.
173 (Alternate_Stack): New imported variable.
174 (Alternate_Stack_Size): New constant.
176 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
178 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
179 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
180 s-taspri-vms.ads (Task_Address): New subtype of System.Address
181 (Task_Address_Size): New constant size of System.Address
182 (Alternate_Stack_Size): New constant.
184 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
185 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
186 Establish the alternate stack if the platform makes use of n alternate
187 signal stack for stack overflows.
188 (Create_Task): Take into account the alternate stack in the stack size.
189 (Initialize): Save the address of the alternate stack into the ATCB for
190 the environment task.
191 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
193 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
195 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
197 * s-intman-posix.adb:
198 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
199 alternate signal stack for stack overflows.
201 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
202 x86-64, adjust the saved value of the stack pointer if the signal was
203 raised by a stack checking probe.
204 (HP-UX section): Use global __gnat_alternate_stack as signal handler
205 stack and only for SIGSEGV.
206 (Linux section): Likewise on x86 and x86-64.
208 (__gnat_map_signal): Now static.
209 (__gnat_error_handler): Not static any more.
210 (__gnat_adjust_context_for_raise): New function. Signal context
211 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
212 propagation circuitry.
213 (__gnat_error_handler): Second argument of a sigaction handler is a
214 pointer, not an int, and is unused.
215 Adjust signal context before mapping to exception.
216 Install signal handlers for LynxOS case.
218 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
219 (Task_Id): Set size to Task_Address_Size
220 (To_Task_id): Unchecked convert from Task_Address vice System.Address
221 (To_Address): Unchecked convert to Task_Address vice System.Address
223 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
224 address into the ATCB if the platform makes use of an alternate signal
225 stack for stack overflows.
226 (Free_Task): Add call to Finalize_Attributes_Link.
227 Add argument Relative_Deadline to pass the value specified for
228 the task. This is not yet used for any target.
230 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
231 the value specified for the task.
233 2008-04-08 Arnaud Charlet <charlet@adacore.com>
235 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
236 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
237 s-vxwext-rtp.adb): New files.
239 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
240 Minor updates to accomodate changes above.
242 2008-04-08 Pascal Obry <obry@adacore.com>
244 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
245 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
246 Use new s-win32.ads unit instead of declaration
247 from s-osinte-mingw.ads.
249 * s-osinte-mingw.ads:
250 Move all non tasking based interface to s-win32.ads.
252 * s-osprim-mingw.adb:
253 Remove duplicated declarations and use s-win32.ads
256 2008-04-08 Vincent Celier <celier@adacore.com>
257 Arnaud Charlet <charlet@adacore.com>
259 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
260 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
261 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
262 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
263 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
265 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
266 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
267 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
268 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
269 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
270 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
271 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
272 mlib-tgt-specific-mingw.adb: New names.
275 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
277 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
278 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
279 Minor updates for VMS
283 2008-04-08 Thomas Quinot <quinot@adacore.com>
285 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
286 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
287 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
288 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
289 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
290 ASCII.NUL throughout.
292 2008-04-08 Arnaud Charlet <charlet@adacore.com>
293 Matthew Heaney <heaney@adacore.com>
295 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
298 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
299 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
300 to convention for non-RM specs.
301 Add descriptive header, and documented each operation
302 document each operation
304 2008-04-08 Robert Dewar <dewar@adacore.com>
305 Bob Duff <duff@adacore.com>
306 Gary Dismukes <dismukes@adacore.com>
307 Ed Schonberg <schonberg@adacore.com>
309 * alloc.ads: Add entries for Obsolescent_Warnings table
311 * einfo.ads, einfo.adb: Minor reformatting.
312 (Is_Discriminal): New subprogram.
313 (Is_Prival): New subprogram.
314 (Is_Protected_Component): New subprogram.
315 (Is_Protected_Private): Removed.
316 (Object_Ref, Set_Object_Ref): Removed.
317 (Prival, Set_Prival): Change assertion.
318 (Privals_Chain, Set_Privals_Chain): Removed.
319 (Prival_Link, Set_Prival_Link): New subprogram.
320 (Protected_Operation, Set_Protected_Operation): Removed.
321 (Protection_Object, Set_Protection_Object): New subprogram.
322 (Write_Field17_Name): Remove case for Object_Ref.
323 (Write_Field20_Name): Add case for Prival_Link.
324 (Write_Field22_Name): Remove case for Protected_Operation,
326 Add case for Protection_Object.
327 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
329 (Overlays_Constant): New flag
330 (Is_Constant_Object): New predicate
331 (Is_Standard_Character_Type): New predicate
332 (Optimize_Alignment_Space): New flag
333 (Optimize_Alignment_Time): New flag
334 (Has_Postconditions): New flag
335 (Obsolescent_Warrning): Field removed
336 (Spec_PPC_List): New field
337 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
338 subprograms to get and set the relative deadline associated to a task.
340 * exp_attr.adb (May_Be_External_Call): Account for the case where the
341 Access attribute is part of a named parameter association.
342 (Expand_Access_To_Protected_Op): Test for the attribute occurring
343 within an init proc and use that directly as the scope rather than
344 traversing up to the protected operation's enclosing scope. Only apply
345 assertion on Is_Open_Scopes in the case the scope traversal is done.
346 For the init proc case use the address of the first formal (_init) as
347 the protected object reference.
348 Implement Invalid_Value attribute
349 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
350 contents of the dispatch table there is no need to duplicate the
351 itypes associated with record types (i.e. the implicit full view
353 Implement Enum_Val attribute
354 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
355 within _Postconditions procedure
356 (Expand_N_Attribute_Reference, case Result): Implement new attribute
358 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
359 a return statement calls a function that is not available in
360 configurable runtime.
361 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
362 (Expand_Non_Function_Return): Generate call to _Postconditions proc
363 (Expand_Simple_Function_Return): Ditto
365 * frontend.adb: Add call to Sem_Aux.Initialize
367 * sem_aux.ads, sem_aux.adb: New file.
369 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
370 Add new Pragma_Relative_Deadline.
371 Add support for pragmas Check and Check_Policy
373 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
374 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
375 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
376 missing check because they are not allowed in CPP tagged types.
377 Add Sure parameter to Note_Possible_Modification calls
378 Add implementation of Invalid_Value attribute
379 Implement new attribute Has_Tagged_Values
380 Implement Enum_Val attribute
381 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
382 generated attributes.
383 (Analyze_Attribute, case Result): If prefix of the attribute is
384 overloaded, it always resolves to the enclosing function.
385 (Analyze_Attribute, case Result): Properly deal with analysis when
386 Postconditions are not active.
387 (Resolve_Attribute, case Result): Properly deal with appearence during
389 Add processing for attribute Result
391 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
393 (Analyze_Subprogram_Body): Install private_with_clauses when the body
395 (Check_Inline_Pragma): recognize an inline pragma that appears within
396 the subprogram body to which it applies.
397 (Analyze_Function_Return): Check that type of the expression of a return
398 statement in a function with a class-wide result is not declared at a
399 deeper level than the function.
400 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
401 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
402 user- defined operators.
403 (Install_Formals): Moved to spec to allow use from Sem_Prag for
404 analysis of precondition/postcondition pragmas.
405 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
406 Last_Formal, along with lots of comments on what this is about
407 (Analyze_Subprogram_Body): Fix case where we move entities from the
408 spec to the body when there are no body entities (now possible with
409 precondition and postcondition pragmas).
410 (Process_PPCs): New procedure
411 (Analyze_Subprogram_Body): Add call to Process_PPCs
413 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
415 (Pop_Scope): Restore Check_Policy_List on scope exit
416 (Push_Scope): Save Check_Policy_List on scope entry
417 Change name In_Default_Expression => In_Spec_Expression
418 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
419 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
420 (Analyze_Object_Renaming): Allow 'Reference as object
421 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
422 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
423 of restriction identifier.
424 Add Sure parameter to Note_Possible_Modication calls
426 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
427 Don't check for primitive operations when calling Rep_Item_Too_Late.
428 (Process_Import_Or_Interface): Do not place flag on formal
430 (Analyze_Pragma, case Export): If the entity is a deferred constant,
431 propagate information to full view, which is the one elaborated by the
433 (Make_Inline): the pragma is effective if it applies to an internally
434 generated subprogram declaration for a body that carries the pragma.
435 (Analyze_Pragma, case Optimize_Alignment): Set new flag
436 Optimize_Alignment_Local.
437 (Analyze_PPC_In_Decl_Part): New procedure
438 (Get_Pragma_Arg): Moved to outer level
439 (Check_Precondition_Postcondition): Change to allow new visibility
440 rules for package spec
441 (Analyze_Pragma, case Check_Policy): Change placement rules to be
442 same as pragma Suppress/Unsuppress.
443 Change name In_Default_Expression => In_Spec_Expression
444 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
445 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
446 (Check_Precondition_Postcondition): Do proper visibility preanalysis
447 for the case of these pragmas appearing in the spec.
448 (Check_Enabled): New function
449 (Initialize): New procedure
450 (Tree_Read): New procedure
451 (Tree_Write): New procedure
452 (Check_Precondition_Postcondition): New procedure
453 Implement pragmas Check and Check_Policy
454 Merge Assert processing with Check
456 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
457 New warning flag -gnatw.e
459 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
460 returning whether a task (or main procedure) has a pragma
462 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
463 (or main procedure) has a pragma Relative_Deadline.
464 Add Next_Pragma field to N_Pragma node
465 (PPC_Enabled): New flag
466 (Next_Pragma): Now used for Pre/Postcondition processing
468 * snames.h, snames.ads, snames.adb: New standard name
470 Add entry for 'Invalid_Value attribute
471 Add entry for new attribute Has_Tagged_Values
472 Add entry for Enum_Val attribute
473 Add new standard names Aggregate, Configuration and Library.
476 Add Pragma_Precondition
477 Add Pragma_Postcondition
479 New standard name Archive_Builder_Append_Option
480 (Preset_Names): Add _relative_deadline and relative_deadline definitions
481 There was also a missing non_preemptive_within_priorities.
482 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
484 Add support for pragmas Check and Check_Policy
486 * tree_gen.adb: Call Sem_Aux.Tree_Write
488 * tree_in.adb: Call Sem_Aux.Tree_Read
490 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
493 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
496 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
497 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
499 (Expand_Pragma_Check): New procedure
501 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
504 * sinfo.adb (PPC_Enabled): New flag
506 2008-04-08 Robert Dewar <dewar@adacore.com>
507 Gary Dismukes <dismukes@adacore.com>
508 Javier Miranda <miranda@adacore.com>
509 Ed Schonberg <schonberg@adacore.com>
511 * fe.h: Remove global Optimize_Alignment flag, no longer used
513 * layout.adb: Test Optimize_Alignment flags rather than global switch
515 * lib.ads, lib.adb: New OA_Setting field in library record
517 * lib-load.adb: New OA_Setting field in library record
519 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
520 units mentioned in limited_with_ clauses in the ali file, with an
522 New Ox fields in U line
524 * opt.adb: New flag Optimize_Alignment_Local
525 (Check_Policy_List[_Config]): New flags
527 * opt.ads (Invalid_Value_Used): New flag
528 New switch Optimize_Alignment_Local
529 (Warn_On_Parameter_Order): New flag
530 (Check_Policy_List[_Config]): New flags
532 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
533 limited_with clauses.
534 New data structures for Optimize_Alignment
536 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
538 (Check_Consistent_Optimize_Alignment): Rework for new structure
539 (Check_Consistent_Restrictions): Fix incorrect error message
541 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
542 created class-wide type (to the Parent field of the specific type).
543 (Install_Siblings): Handle properly private_with_clauses on subprogram
544 bodies and on generic units.
545 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
546 illegal limited_with_clause that names a non-existent package.
547 (Check_Body_Required): Determine whether a unit named a limited_with
549 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
550 Capture Optimize_Alignment settings to set new OA_Setting field in
552 (Build_Limited_Views): Include task and protected type declarations.
554 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
555 case of a possible constant redeclaration where the current object is
556 an entry index constant.
557 (Analyze_Object_Declaration): Generate an error in case of CPP
558 class-wide object initialization.
559 (Analyze_Object_Declaration): Add extra information on warnings for
560 declaration of unconstrained objects.
561 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
562 conflicts with the setting of Stored_Constraint in the case where the
563 access type entity has already been created as an E_Incomplete_Type due
564 to a limited with clause.
565 Use new Is_Standard_Character_Type predicate
566 (Analyze_Object_Declaration): Apply access_constant check only after
567 expression has been resolved, given that it may be overloaded with
568 several access types.
569 (Constant_Redeclaration): Additional legality checks for deferred
570 constant declarations tha involve anonymous access types and/or null
571 exclusion indicators.
572 (Analyze_Type_Declaration): Set Optimize_Alignment flags
573 (Analyze_Subtype_Declaration): Ditto
574 (Analyze_Object_Declaration): Ditto
575 (Analyze_Object_Declaration): Don't count tasks in generics
576 Change name In_Default_Expression => In_Spec_Expression
577 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
578 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
579 (Process_Discriminants): Additional check for illegal use of default
580 expressions in access discriminant specifications in a type that is not
582 (Check_Abstract_Overriding): If an inherited function dispaches on an
583 access result, it must be overridden, even if the type is a null
585 (Derive_Subprogram): The formals of the derived subprogram have the
586 names and defaults of the parent subprogram, even if the type is
587 obtained from the actual subprogram.
588 (Derive_Subprogram): In the presence of interfaces, a formal of an
589 inherited operation has the derived type not only if it descends from
590 the type of the formal of the parent operation, but also if it
591 implements it. This is relevant for the renamings created for the
592 primitive operations of the actual for a formal derived type.
593 (Is_Progenitor): New predicate, to determine whether the type of a
594 formal in the parent operation must be replaced by the derived type.
596 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
597 predicate recursive to handle components that have a user-defined
598 Initialize procedure. Handle controlled derived types whose ancestor
599 has a user-defined Initialize procedured.
600 (Note_Possible_Modification): Add Sure parameter, generate warning if
601 sure modification of constant
602 Use new Is_Standard_Character_Type predicate
603 (Find_Parameter_Type): when determining whether a protected operation
604 implements an interface operation, retrieve the type of the formal from
605 the entity when the formal is an access parameter or an
606 anonymous-access-to-subprogram.
607 Move Copy_Parameter_List to sem_util, for use when building stubbed
609 (Has_Access_Values): Tagged types now return False
610 (Within_HSS_Or_If): New procedure
611 (Set_Optimize_Alignment_Flags): New procedure
612 Change name In_Default_Expression => In_Spec_Expression
613 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
614 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
616 2008-04-08 Tristan Gingold <gingold@adacore.com>
618 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
620 2008-04-08 Tristan Gingold <gingold@adacore.com>
624 * cuintp.c: Fix 16 bits issue for AVR.
625 On AVR, integer is 16 bits, so it can't be used to do math with
627 So use long_integer instead.
629 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
631 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
632 System.OS_Primitives.
633 Change type of various constants, parameters and local variables from
634 Time to representation type OS_Time.
635 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
636 Remove the declaration of constant Mili_F from several routines. New
637 body for internal package Conversions_Operations.
638 (Time_Of): Add default parameters for several formals.
640 * a-caldel.adb: Minor reformatting
642 * a-calend.ads, a-calend.adb: New body for internal package
643 Conversions_Operations.
644 (Time_Of): Add default parameters for several formals.
646 * Makefile.rtl: Add a-ststop
647 Add Ada.Calendar.Conversions to the list of runtime files.
650 * a-calcon.adb, a-calcon.ads: New files.
652 2008-04-08 Jose Ruiz <ruiz@adacore.com>
653 Tristan Gingold <gingold@adacore.com>
655 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
656 (Install_Restricted_Handlers): New procedure
657 which is a simplified version of Install_Handlers that does not store
658 previously installed.
660 * s-interr-vxworks.adb: Fix ACATS cxc3001
661 On VxWorks interrupts can't be detached.
662 (Install_Restricted_Handlers): New procedure.
664 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
667 2008-04-08 Olivier Hainque <hainque@adacore.com>
669 * s-intman-vxworks.ads, s-intman-vxworks.adb
670 (Map_And_Raise_Exception): Remove. Was an import of only part of the
671 required services already implemented elsewhere.
672 (Notify_Exception): Delete body, import __gnat_error_handler instead.
673 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
674 argument passed to the handler, which we need for ZCX propagation
677 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
679 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
681 * g-timsta.adb, g-timsta.ads: New files.
683 2008-04-08 Robert Dewar <dewar@adacore.com>
685 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
686 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
687 (Raise_Exception_Always): Fix documentation accordingly
689 2008-04-08 Robert Dewar <dewar@adacore.com>
691 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
694 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
697 2008-04-08 Javier Miranda <miranda@adacore.com>
698 Robert Dewar <dewar@adacore.com>
699 Ed Schonberg <schonberg@adacore.com>
701 * a-tags.adb (Register_Interface_Offset): New subprogram.
702 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
703 (To_Predef_Prims_Table_Ptr): Removed.
705 (To_Acc_Size): Removed.
706 (Parent_Size): Modified to the call the subprogram returning the size of
707 the parent by means of the new TSD component Size_Func.
709 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
710 (DT_Offset_To_Top_Offset): New constant value that is used to generate
711 code referencing the Offset_To_Top component of the dispatch table's
713 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
714 use of 'address to initialize dispatch table slots.
715 (Size_Func): New component of the TSD. Used by the run-time to call the
716 size primitive of the tagged type.
718 * checks.adb (Apply_Access_Check): Avoid check when accessing the
719 Offset_To_Top component of a dispatch table.
720 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
721 deferred constant declaration. do not add a null expression, to prevent
722 spurious errors when full declaration is analyzed.
723 (Apply_Discriminant_Check): If both discriminant constraints share a
724 node which is not static but has no side effects, do not generate a
725 check for that discriminant.
726 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
727 subexpr, since the prefix of an attribute is a name.
729 * checks.ads: Fix nit in comment.
731 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
732 and body of predefined primitives in case of CPP tagged type
734 (Freeze_Type): Deal properly with no storage pool case
735 (Make_Predefined_Primitive_Specs): Generate specification of abstract
736 primitive Deep_Adjust if a nonlimited interface is derived from a
738 (Build_Dcheck_Functions): Create discriminant-checking functions only
739 for variants that have some component(s).
740 (Build_Slice_Assignment): In expanded code for slice assignment, handle
741 properly the case where the slice bounds extend to the last value of the
742 underlying representation.
743 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
744 (Is_Variable_Size_Record): An array component has a static size if
745 index bounds are enumeration literals.
747 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
748 an external tag has been specified for the type.
749 (Building_Static_DT): Add missing support for private types.
750 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
751 to the entity associated with the parent of Typ. This is done to
752 avoid wrong access when the parent is a private type.
753 (Expand_Interface_Conversion): Improve error message when the
754 configurable runtime has no support for dynamic interface conversion.
755 (Expand_Interface_Thunk): Add missing support to interface types in
756 configurable runtime.
757 (Expand_Dispatching_Call): remove obsolete code.
758 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
759 ensure that all subtypes and aggregates associated with dispatch
760 tables have the attribute Is_Dispatch_Table_Entity set to true.
761 (Register_Primitive): Rename one variable to improve code reading.
762 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
763 of the pointer to the 'size primitive in the TSD.
765 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
766 (RE_Offset_To_Top_Ptr): New entity.
767 (RE_Register_Interface_Offset): New entity.
768 (RE_Set_Dynamic_Offset_To_Top): New entity.
769 (RE_Set_Offset_To_Top): Removed entity.
770 (RE_Prim_Ptr): New entity
771 (RE_Size_Func): New entity
772 (RE_Size_Ptr): New entity
773 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
774 (Ada_Dispatching_Child): Define this new subrange.
775 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
776 RE_Time_Span, and RE_Time_Span_Zero).
777 (RE_Unit_Table): Add new required run-time calls
779 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
782 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
783 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
784 initializes the Offset_To_Top component of a dispatch table.
785 (Build_Predef_Prims): Removed.
786 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
788 (Build_Set_Size_Function): New subprogram.
790 * exp_ch13.adb: Do not generate storage variable for storage_size zero
791 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
793 2008-04-08 Robert Dewar <dewar@adacore.com>
795 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
796 computing Fore when Exp > 0
798 2008-04-08 Robert Dewar <dewar@adacore.com>
800 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
802 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
803 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
805 * fmap.adb: Remove Big_String declarations (now in Types)
806 (No_Mapping_File): New Boolean global variable
807 (Initialize): When mapping file cannot be read, set No_Mapping_File to
809 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
810 tables were empty before adding entries, open the mapping file
811 with Truncate = True, instead of delete/re-create.
813 * fname-sf.adb: Remove Big_String declarations (now in Types)
815 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
816 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
819 * table.ads: Add for Table_Ptr'Storage_Size use 0
821 * types.ads: Add Big_String declarations
822 Add Size_Clause of zero for big pointer types
824 2008-04-08 Vincent Celier <celier@adacore.com>
826 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
827 (Usage): Add line for switch --subdirs=
828 Add new switch -eL, to follow symbolic links when processing project
831 * gnatcmd.adb: Process switches -eL and --subdirs=
832 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
833 Program_Name to get proper tool names when AAMP_On_Target is set.
834 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
835 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
838 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
839 (Usage): Add lines for switches -eL and --subdirs=
841 * makeusg.adb: Add line for switch --subdirs=
844 (Source_Data): New Boolean component Compiled, defaulted to True
845 (Empty_File_Name: New global variable in private part, initialized in
846 procedure Initialize.
847 (Subdirs_Option): New constant string
848 (Subdirs): New String_Ptr global variable
849 (Language_Config): New component Include_Compatible_Languages
850 (Project_Qualifier): New type for project qualifiers
851 (Project_Data): New component Qualifier
852 (Project_Configuration): New component Archive_Builder_Append_Option
854 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
855 another imported project indicate the name of this imported project.
856 (Check_File): When a unit is in two project files, indicate the project
857 names and the paths of the source files for each project.
858 (Add_Source): Set Compiled to False if compiler driver is empty. Only
859 set object, dependency and switches file names if Compiled is True.
860 (Process_Compiler): Allow the empty string for value of attribute Driver
861 (Get_Directories): When Subdirs is not null and Object_Dir is not
862 specified, locate and create if necessary the actual object dir.
863 (Locate_Directory): When Subdirs is not empty and Create is not the
864 empty string, locate and create if necessary the actual directory
865 as a subdirectory of directory Name.
866 (Check_Library_Attributes.Check_Library): Allow a project where the only
867 "sources" are header files of file based languages to be imported by
868 library projects, in multi-language mode (gprbuild).
869 (Check_Library_Attributes.Check_Library): In multi-language mode
870 (gprbuild), allow a library project to import a project with no
871 sources, even when this is not declared explicitly.
872 (Check_If_Externally_Built): A virtual project extending an externally
873 built project is also externally built.
874 (Check_Library_Attributes): For a virtual project extending a library
875 project, inherit the library directory.
876 (Process_Project_Level_Array_Attributes): Process new attribute
878 For projects with specified qualifiers "standard", "library" or
879 "abstract", check that the project conforms to the qualifier.
880 (Process_Project_Level_Simple_Attributes): Process new attribute
881 Archive_Builder_Append_Option.
883 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
884 (Normalize_Compiler_Switches): Only keep compiler switches that are
885 passed to gnat1 by the gcc driver and that are stored in the ALI file
887 Do not take into account switc -save-temps
889 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
890 gprmake is called with -eL.
891 (Scan_Arg): Recognize switch -eL
892 (Usage): Add line for switch -eL
894 * prj.adb (Initialize): Initialize Empty_File_Name
895 (Project_Empty): New component Qualifier
897 * prj-attr.ads, prj-attr.adb: New project level attribute
899 New project level attribute Archive_Builder_Append_Option
901 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
903 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
904 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
905 upward compatibility.
907 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
908 each Trying ..." on different lines.
909 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
910 is "configuration" when not in configuration. Fail when in configuration
911 when a specified qualifier is other than "configuration".
913 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
914 full associative array together.
915 (Recursive_Process): Put the project qualifier in the project data
917 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
918 (Set_Project_Qualifier_Of): New procedure
920 2008-04-08 Robert Dewar <dewar@adacore.com>
922 * errout.ads: Update comments for new handling of info: messages
924 * erroutc.adb (Matches): New procedure
925 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
926 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
927 info messages as well as style messages.
929 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
931 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
933 (Check_A_Call): Special "info: " warnings now have ? in the text
934 (Elab_Warning): Use info message in static case
936 2008-04-08 Ed Schonberg <schonberg@adacore.com>
938 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
939 whether an array aggregate with static bounds and scalar components
940 should be expanded into a static constant.
942 2008-04-08 Gary Dismukes <dismukes@adacore.com>
943 Ed Schonberg <schonberg@adacore.com>
944 Robert Dewar <dewar@adacore.com>
946 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
947 Has_Stream_Attribute_ Definition when checking for available stream
948 attributes on parameters of a limited type in Ada 2005. Necessary for
949 proper recognition of visible stream attribute clauses.
950 (Has_Stream_Attribute_Definition): If the type is derived from a
951 private type, then use the derived type's underlying type for checking
952 whether it has stream attributes.
953 (Validate_Object_Declaration): The check for a user-defined Initialize
954 procedure applies also to types with controlled components or a
956 Reject an object declaration in a preelaborated unit if the type is a
957 controlled type with an overriding Initialize procedure.
958 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
959 checking when the parent of a dereference is a selected component and
960 the name has not been analyzed.
962 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
963 prefixes that are invalid explicit dereferences of remote
964 access-to-class-wide values, first checking whether the selected
965 component is a prefixed form of call to a tagged operation.
966 (Analyze_Call): Remove code that issues an error for limited function
967 calls in illegal contexts, as we now support all of the contexts that
969 Allow a function call that returns a task.and appears as the
970 prefix of a selected component.
971 (Analyze_Reference): Give error message if we try to make a 'Reference
972 for an object that is atomic/aliased without its type having the
973 corresponding attribute.
974 (Analyze_Call): Remove condition checking for attributes to allow
975 calls to functions with inherently limited results as prefixes of
976 attributes. Remove related comment about Class attributes.
977 (Analyze_Selected_Component): If the prefix is a remote type, check
978 whether this is a prefixed call before reporting an error.
979 (Complete_Object_Operation): If the controlling formal is an access to
980 variable reject an actual that is a constant or an access to one.
981 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
982 primitive operations from base type.
984 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
986 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
987 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
988 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
989 (Expand_N_Slice): Test for prefix that is a build-in-place function call
990 and call Make_Build_In_Place_Call_In_Anonymous_Context.
991 (Analyze_Call): Remove code that issues an error for limited function
992 calls in illegal contexts, as we now support all of the contexts that
994 New calling sequence for Get_Simple_Init_Val
995 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
996 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
998 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
999 Ed Schonberg <schonberg@adacore.com>
1000 Robert Dewar <dewar@adacore.com>
1002 * exp_ch2.adb: Minor reformatting.
1003 (Expand_Entry_Index_Parameter): Set the type of the identifier.
1004 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
1005 (Expand_Protected_Component): New routine.
1006 (Expand_Protected_Private): Removed.
1007 Add Sure parameter to Note_Possible_Modification calls
1009 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
1010 generated subprogram declaration must inherit the overriding indicator
1011 from the instantiation node.
1012 (Validate_Access_Type_Instance): If the designated type of the actual is
1013 a limited view, use the available view in all cases, not only if the
1014 type is an incomplete type.
1015 (Instantiate_Object): Actual is illegal if the formal is null-excluding
1016 and the actual subtype does not exclude null.
1017 (Process_Default): Handle properly abstract formal subprograms.
1018 (Check_Formal_Package_Instance): Handle properly defaulted formal
1019 subprograms in a partially parameterized formal package.
1020 Add Sure parameter to Note_Possible_Modification calls
1021 (Validate_Derived_Type_Instance): if the formal is non-limited, the
1022 actual cannot be limited.
1023 (Collect_Previous_Instances): Generate instance bodies for subprograms
1026 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
1028 Add Sure parameter to Note_Possible_Modification calls
1029 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
1030 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
1031 constant overlaid by variable and issue warning.
1032 Use new Is_Standard_Character_Type predicate
1033 (Analyze_Record_Representation_Clause): Check that the specified
1034 Last_Bit is not less than First_Bit - 1.
1035 (Analyze_Attribute_Definition_Clause, case Address): Check for
1036 self-referential address clause
1038 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
1039 detection mechanism when the lhs is a prival.
1040 (Analyze_Assignment): Call Check_Unprotected_Access to detect
1041 assignment of a pointer to protected data, to an object declared
1042 outside of the protected object.
1043 (Analyze_Loop_Statement): Check for unreachable code after loop
1044 Add Sure parameter to Note_Possible_Modication calls
1045 Protect analysis from previous syntax error such as a scope mismatch
1047 (Analyze_Assignment_Statement): The assignment is illegal if the
1048 left-hand is an interface.
1050 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
1051 violation of restriction No_Implicit_Conditionals
1052 Add Sure parameter to Note_Possible_Modication calls
1053 Use new Is_Standard_Character_Type predicate
1054 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
1055 call as operator. Fixes problems (e.g. validity checking) which
1056 come from the result looking as though it does not come from source).
1057 (Resolve_Call): Check case of name in named parameter if style checks
1059 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
1060 from the checking that such calls should not occur from an entry body.
1061 (Resolve_Call): If the return type of an Inline_Always function
1062 requires the secondary stack, create a transient scope for the call
1063 if the body of the function is not available for inlining.
1064 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
1065 that are actuals for in-out formals.
1066 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1067 primitive operations from base type.
1068 (Analyze_Selected_Component): If the context is a call to a protected
1069 operation the parent may be an indexed component prior to expansion.
1070 (Resolve_Actuals): If an actual is of a protected subtype, use its
1071 base type to determine whether a conversion to the corresponding record
1073 (Resolve_Short_Circuit): Handle pragma Check
1075 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
1076 Use new Is_Standard_Character_Type predicate
1077 (Eval_Relational_Op): Catch more cases of string comparison
1079 2008-04-08 Robert Dewar <dewar@adacore.com>
1080 Gary Dismukes <dismukes@adacore.com>
1082 * s-rident.ads: Add No_Default_Initialization restriction
1085 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
1086 (Set_TSS): Handle No_Default_Initialization case
1088 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
1089 No_Default_Initialization
1090 (Expand_N_Subprogram_Body): Remove redundant initialization of out
1091 parameters when Normalize_Scalars is active.
1092 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
1093 Fix casing error in formal parameter name in call
1094 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
1095 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1096 dispatching call on VM targets.
1098 2008-04-08 Gary Dismukes <dismukes@adacore.com>
1099 Thomas Quinot <quinot@adacore.com>
1101 * exp_ch7.adb (Find_Final_List): Change the test for generating a
1102 selected component from an access type's Associated_Final_Chain to
1103 check for the presence of that field, rather than assuming it exists
1104 for all named access types.
1105 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
1106 procedure to call at the end of the generated cleanup procedure.
1107 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
1108 and an At_End_Proc already exists in the handled sequence of statements
1109 for which cleanup actions are being expanded, the original cleanup
1110 action must be preserved.
1112 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1113 Ed Schonberg <schonberg@adacore.com>
1114 Robert Dewar <dewar@adacore.com>
1115 Gary Dismukes <dismukes@adacore.com>
1117 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
1118 Build_Unprotected_Subprogram_Body): Generate debug info for
1119 declarations related to the handling of private data in task and
1121 (Debug_Private_Data_Declarations): New subprogram.
1122 (Install_Private_Data_Declarations): Remove all debug info flagging.
1123 This is now done by Debug_Private_Data_Declarations at the correct
1125 (Build_Simple_Entry_Call): If the task name is a function call, expand
1126 the prefix into an object declaration, and make the surrounding block a
1128 (Build_Master_Entity): An internal block is a master if it wraps a call.
1129 Code reformatting, update comments. Code clean up.
1130 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
1131 (Replicate_Entry_Formals): If the formal is an access parameter or
1132 anonymous access to subprogram, copy the original tree to create new
1133 entities for the formals of the subprogram.
1134 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
1135 for tasks to store the value passed using pragma Relative_Deadline.
1136 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
1137 run-time call to create a task.
1138 (Build_Wrapper_Spec): If the controlling argument of the interface
1139 operation is an access parameter with a non-null indicator, use the
1140 non-null indicator on the wrapper.
1142 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
1143 present, which it may not be in the case where the type entity is an
1144 incomplete view brought in by a limited with.
1145 (Analyze_Task_Type): Only retrieve the full view when present, which it
1146 may not be in the case where the type entity is an incomplete view brought
1147 in by a limited with.
1148 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
1149 private components of a protected type, to prevent the generation of freeze
1150 nodes for which there is no proper scope of elaboration.
1152 * exp_util.ads, exp_util.adb
1153 (Remove_Side_Effects): If the expression is a function call that returns a
1154 task, expand into a declaration to invoke the build_in_place machinery.
1155 (Find_Protection_Object): New routine.
1156 (Remove_Side_Effects): Also make a copy of the value
1157 for attributes whose result is of an elementary type.
1158 (Silly_Boolean_Array_Not_Test): New procedure
1159 (Silly_Boolean_Array_Xor_Test): New procedure
1160 (Is_Volatile_Reference): New function
1161 (Remove_Side_Effects): Use Is_Volatile_Reference
1162 (Possible_Bit_Aligned_Component): Handle slice case properly
1164 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
1165 case test to Exp_Util
1166 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
1168 2008-04-08 Thomas Quinot <quinot@adacore.com>
1170 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
1172 (Add_RACW_Features): When processing an RACW in another unit than the
1173 main unit, set Body_Decls to No_List to indicate that the bodies of
1174 the type's TSS must not be generated.
1175 (GARLIC_Support.Add_RACW_Read_Attribute,
1176 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
1177 Body_Decls is No_List.
1178 (PolyORB_Support.Add_RACW_Read_Attribute,
1179 PolyORB_Support.Add_RACW_Write_Attribute,
1180 PolyORB_Support.Add_RACW_From_Any,
1181 PolyORB_Support.Add_RACW_To_Any,
1182 PolyORB_Support.Add_RACW_TypeCode): Same.
1183 (Transmit_As_Unconstrained): New function.
1184 (Build_Ordered_Parameters_List): Use the above to order parameters.
1185 (GARLIC_Support.Build_General_Calling_Stubs):
1186 Use the above to determine which parameters to unmarshall using 'Input
1187 at the point where their temporary is declared (as opposed to later on
1189 (PolyORB_Support.Build_General_Calling_Stubs):
1190 Use the above to determine which parameters to unmarshall using From_Any
1191 at the point where their temporary is declared (as opposed to later on
1192 with an assignment).
1194 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1196 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
1197 an Input function for an access type, do not perform default
1198 initialization on the local variable that receives the value, to
1199 prevent spurious warnings when the type is null-excluding.
1201 2008-04-08 Robert Dewar <dewar@adacore.com>
1202 Ed Schonberg <schonberg@adacore.com>
1204 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
1206 (Size_Known): Generic formal scalar types have known at compile
1207 time size, so remove check.
1208 Fix casing error in formal parameter name in call
1209 (Freeze_Subprogram): If the subprogram is a user-defined operator,
1210 recheck its overriding indication.
1212 2008-04-08 Vincent Celier <celier@adacore.com>
1214 * gnat1drv.adb: Send all messages indicating an error to standard error
1216 2008-04-08 Robert Dewar <dewar@adacore.com>
1218 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
1219 (List_Applicable_Restrictions): Do not list existing restrictions
1221 2008-04-08 Thomas Quinot <quinot@adacore.com>
1223 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
1224 add a pointer to generic sockets literature
1225 do not mention that the given example is "typical" usage.
1226 Remove obsolete comment about multicast not being supported on Windows.
1227 (Connect_Socket): Make Server mode IN rather than IN OUT
1228 since this formal is never modified.
1230 2008-04-08 Robert Dewar <dewar@adacore.com>
1232 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
1233 the declaration for some different entity.
1234 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
1235 list is precent (following the parent subtype indication), display
1236 appropriate "and" keyword.
1238 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
1239 Remove unnecessary calls to Init_Size_Align and Init_Esize.
1240 Add notes on use of Parent field of an Itype
1242 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1243 Robert Dewar <dewar@adacore.com>
1244 Gary Dismukes <dismukes@adacore.com>
1246 * lib-xref.adb (Is_On_LHS): Remove dead code
1247 (Output_Overriden_Op): If the overridden operation is itself inherited,
1248 list the ancestor operation, which is the one whose body or absstract
1249 specification is actually being overridden. For source navigation
1252 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
1253 operation is primitive for the type.
1254 (Declare_Inherited_Private_Subprograms): If the new operation overrides
1255 an inherited private subprogram, set properly the Overridden_Operation
1256 attribute, for better cross-reference information.
1257 (Analyze_Package_Specification): Do late analysis of spec PPCs
1258 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
1259 properly the full view and underlying full views of a private type in a
1260 child unit, whose full view is derived from a private type in a parent
1261 unit, and whose own full view becomes visible in the child body.
1263 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
1264 primitive operation after the type has been frozen, add an explicit
1265 reference to the type and the operation, because other primitive
1266 references have been emitted already.
1267 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1268 dispatching call on VM targets.
1270 2008-04-08 Vincent Celier <celier@adacore.com>
1271 Thomas Quinot <quinot@adacore.com>
1273 * make.adb: (Gnatmake_Called): Remove, no longer necessary
1274 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
1275 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
1276 (Insert_Project_Sources): Take into account index in multi-unit source
1278 After building a library project, delete all temporary files.
1279 (Initialize): Reset current output after parsing project file.
1280 (Collect_Arguments_And_Compile): Never insert in the queue the sources
1281 of library projects that are externally built.
1282 Put file name in error and inform messages if -df is used
1283 (Display): If invoked with -d7, do not display path names, but only
1286 * makeutl.ads (Path_Or_File_Name): New function
1287 (Path_Or_File_Name): New function
1289 2008-04-08 Arnaud Charlet <charlet@adacore.com>
1291 * Make-lang.in: Disable warnings during first stage of bootstrap
1293 Update dependencies.
1295 2008-04-08 Vincent Celier <celier@adacore.com>
1297 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
1298 case to decide if ALI object file is included in library.
1299 (Build_Library): Never attempt to build a library if the project is
1302 2008-04-08 Thomas Quinot <quinot@adacore.com>
1304 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
1305 (No_List) is defined to return Empty.
1307 2008-04-08 Jose Ruiz <ruiz@adacore.com>
1309 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
1312 (Read_Default_Search_Dirs): Do not consider spaces as path separators
1313 because spaces may be part of legal paths.
1315 2008-04-08 Robert Dewar <dewar@adacore.com>
1317 * par-ch11.adb (P_Exception_Handler): Check indentation level for
1320 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1322 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
1323 in a type declaration, if this is not an interface declaration or
1324 private type extension.
1326 2008-04-08 Vincent Celier <celier@adacore.com>
1328 * prj-util.adb (Executable_Of): New String parameter Language. When
1329 Ada_Main is False and Language is not empty, attempt to remove the body
1330 suffix or the spec suffix of the language to get the base of the
1331 executable file name.
1332 (Put): New Boolean parameter Lower_Case, defauilted to False. When
1333 Lower_Case is True, put the value in lower case in the name list.
1334 (Executable_Of): If there is no executable suffix in the configuration,
1335 then do not modify Executable_Extension_On_Target.
1337 * prj-util.ads (Executable_Of): New String parameter Language,
1338 defaulted to the empty string.
1339 (Put): New Boolean parameter Lower_Case, defauilted to False
1341 2008-04-08 Robert Dewar <dewar@adacore.com>
1343 * scng.adb (Scan_Identifier): Handle case of identifier starting with
1344 wide character using UTF-8 encoding.
1346 2008-04-08 Javier Miranda <miranda@adacore.com>
1348 * sem.adb (Analyze): Consider case in which we analyze an empty node
1349 that was generated by a call to a runtime function that is not
1350 available under the configurable runtime.
1352 * sem.ads (Inside_Freezing_Actions): New flag.
1353 (Save_Check_Policy_List): New field in scope stack entry
1355 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1356 Robert Dewar <dewar@adacore.com>
1358 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
1359 the ancestor part of an extension aggregate for a limited type.
1360 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
1361 enumeration index bounds.
1362 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
1363 when array is too short.
1364 (Check_Expr_OK_In_Limited_Aggregate): Move function
1365 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
1367 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
1368 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
1369 component associations.
1370 (Check_Non_Limited_Type): Moved to outer level and renamed.
1371 (Resolve_Record_Aggregate): In an extension aggregate, an association
1372 with a box initialization can only designate a component of the
1373 extension, not a component inherited from the given ancestor
1375 * sem_case.adb: Use new Is_Standard_Character_Type predicate
1377 2008-04-08 Robert Dewar <dewar@adacore.com>
1379 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
1381 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
1382 Properly handle case where Aft > Scale and input number is less than
1385 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1387 * s-stoele.ads, s-soflin.ads: Move the location of
1388 Dummy_Communication_Block from System.Storage_Elements to
1391 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
1392 emulate Communication_Block in certain scenarios.
1394 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1396 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
1398 Add new subtype S_WWC, unchecked conversion routines From_WWC and
1400 (I_WWC, O_WWC): New routines for input and output of
1401 Wide_Wide_Character.
1403 2008-04-08 Robert Dewar <dewar@adacore.com>
1405 * stringt.adb (Write_String_Table_Entry): Handle wide characters
1408 2008-04-08 Robert Dewar <dewar@adacore.com>
1410 * styleg.adb (Check_Comment): Allow special char after -- in
1411 non-end-of-line case
1413 2008-04-08 Robert Dewar <dewar@adacore.com>
1415 * stylesw.adb: Implement -gnaty + - y options
1416 (Set_GNAT_Style_Check_Options): Includ I in style check string
1418 * stylesw.ads: Add comments for new style switch options
1420 2008-04-08 Sergey Rybin <rybin@adacore.com>
1422 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
1423 to the set of the GNAT components needed by ASIS.
1425 2008-04-08 Bob Duff <duff@adacore.com>
1427 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
1429 2008-04-08 Tristan Gingold <gingold@adacore.com>
1431 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
1432 Improve error message generation.
1434 2008-04-08 Vincent Celier <celier@adacore.com>
1436 * a-direct.adb (Start_Search): Check for Name_Error before checking for
1437 Use_Error, as specified in the RM. Check if directory is open and raise
1438 Use_Error if it is not.
1440 2008-04-08 Vincent Celier <celier@adacore.com>
1441 Robert Dewar <dewar@adacore.com>
1443 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
1444 AAMP_On_Target is set.
1446 * vms_data.ads: Add NOxxx to style check switch list
1447 Add entry COMPONENTS for -gnatVe
1448 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
1450 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
1451 Add qualifiers for gnatmetric coupling options
1452 Add note that -gnata enables all checks
1453 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
1454 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
1455 New warning flag -gnatw.e
1457 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
1458 Add entry for -gnatyN (forgotten before)
1459 Line for new warning switch -gnatw.p
1460 New warning flag -gnatw.e
1462 * gnat_ugn.texi: Add documentation fpr project file switch -aP
1463 Document -gnaty - + y
1464 Replace occurences of "package specification" with "package spec"
1465 Define preprocessing symbols in documentation of gnatprep
1466 Clarify reason for distinguishing overflow checking
1467 Add documentation for project-aware tool switches -eL and --subdirs=
1468 Complete list of configuration pragmas
1469 Specify that, even when gnatmake switch -x is used, mains on the command
1470 line need to be sources of project files.
1471 Editing of gnatcheck/gnatmetric doc.
1472 Add documentation for -gnatw.p/-gnatw.P
1473 Add missing documentation for -fno-inline-functions.
1474 Add documentation for -gnatw.e
1476 * gnat_rm.texi: Add documentation for No_Default_Initialization
1477 Replace occurences of "package specification" with "package spec"
1478 Document use of * in Warnings Off string
1479 Update documentation of alignment/component clauses.
1480 Add documentation for Invalid_Value
1481 Document new consistency rule for Optimize_Alignment
1482 Add documentation for Precondition and Postcondition pragmas
1483 Add documentation for Check and Check_Policy pragmas
1484 Document new Enum_Val attribute
1485 Remove requirement for static string in pragma Assert
1486 Add documentation on GNAT.Time_Stamp
1488 * ug_words: add entry for -gnatVe
1489 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
1490 Add entry for -gnatw.e
1492 * debug.adb: Add missing documentation for d.a flag
1493 Document new -gnatd.a switch.
1494 Add documentation for new gnatmake debug switch -df
1496 2008-04-08 Thomas Quinot <quinot@adacore.com>
1498 * gen-soccon.c: Bump year in copyright notices.
1500 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
1502 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1504 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
1507 2008-04-08 Robert Dewar <dewar@adacore.com>
1508 Bob Duff <duff@adacore.com>
1510 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
1511 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
1513 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
1515 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
1517 * g-trasym.ads: Minor comment improvements
1519 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
1521 * a-sequio.ads, a-direio.ads: improve message for tagged type
1523 * a-strunb.ads: Minor reformatting
1525 * a-tifiio.adb: Minor reformatting
1527 * atree.adb (Fix_Parents): Use clearer names for formals
1528 Cleanup and simplify code
1529 Use named notation in calls
1531 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
1534 * uintp.adb: Used named notation for some confusing calls
1536 * bindusg.adb: Minor change in one line of output
1538 * cstand.adb: Minor reformatting of src representation of Standard
1540 * a-assert.ads: Add comment.
1542 * g-decstr.adb: Fix bad indentation
1544 * expander.ads, expander.adb: Code clean up.
1546 * sem_dist.ads: Minor comment improvement
1548 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
1549 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
1551 * i-cstrin.adb: Fix casing error in formal parameter name in call
1553 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1555 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
1556 mentioned in limited_with_clauses to do create semantic dependencies
1557 even though they appear in the ali file.
1559 2008-04-08 Emmanuel Briot <briot@adacore.com>
1561 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
1563 (Get_Configuration): New subprogram.
1565 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
1566 These optional parameters help preserve the casing of the project's name
1567 when pretty-printing.
1569 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
1570 Arnaud Charlet <charlet@adacore.com>
1572 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
1573 then use __gnat_set_exit_status to report the returned status code.
1575 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
1576 messages on .NET, since some constructs of the language are not
1579 * gnatlink.adb (Gnatlink): In case the command line is too long for the
1580 .NET linker, gnatlink now concatenate all .il files and pass this to
1583 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1584 Xavier Grave <grave@ipno.in2p3.fr>
1586 * Makefile.in: Add make ifeq define for mips/mipsel support.
1587 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
1588 system-linux-mips.ads: New files.
1590 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1592 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
1593 detect systems using GNU libc.
1599 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1601 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
1602 constant constant for sysconf call.
1603 (bit_field): New packed boolean type used by cpu_set_t.
1604 (cpu_set_t): New type corresponding to the C type with
1605 the same name. Note that on the Ada side we use a bit
1606 field array for the affinity mask. There is not need
1607 for the C macro for setting individual bit.
1608 (pthread_setaffinity_np): New imported routine.
1609 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
1612 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1614 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
1616 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1618 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
1619 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
1620 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
1621 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
1622 Return by Depressed Stack Pointer.
1624 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
1626 * decl.c (is_variable_size): Do not unconditionally return false
1627 on non-strict alignment platforms.
1629 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
1631 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
1632 used to process all the variants of the specified type.
1633 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
1634 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
1635 (rest_of_type_decl_compilation): Likewise.
1636 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
1638 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1640 * gigi.h (insert_block): Kill.
1641 * utils.c (insert_block): Kill.
1643 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
1645 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
1646 type has self-referential size, get the size from the initializing
1647 expression directly if it is also a constant whose nominal type
1648 has self-referential size.
1650 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1653 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
1656 * env.c: Always include crt_externs.h if __APPLE__ is defined.
1657 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
1659 2008-04-01 Andreas Jaeger <aj@suse.de>
1661 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
1664 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1666 * g-table.adb, g-tasloc.adb, g-traceb.ads,
1667 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
1668 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
1669 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
1670 gnatlink.adb, gnatmem.adb, gprep.adb,
1671 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
1672 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
1673 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
1674 lib-xref.ads, lib.adb, link.c, live.ads,
1675 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
1676 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
1677 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
1678 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
1679 namet.adb, namet.h, nlists.adb, nlists.ads,
1680 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
1681 osint-c.ads, osint.adb, osint.ads, output.ads,
1682 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
1683 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
1684 par-endh.adb, par-labl.adb, par-prag.adb,
1685 par-sync.adb, par-tchk.adb, par-util.adb,
1686 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
1687 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1688 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
1689 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
1691 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
1693 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
1694 size if it has overflowed.
1696 2008-03-31 Olivier Hainque <hainque@adacore.com>
1697 Eric Botcazou <ebotcazou@adacore.com>
1699 * utils2.c (find_common_type): Document assumption on t1/t2 vs
1700 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
1702 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1704 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
1705 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
1706 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
1707 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
1708 exp_tss.ads, exp_util.adb, exp_util.ads,
1709 exp_vfpt.adb, freeze.adb, freeze.ads,
1710 frontend.adb, g-alleve.adb, g-altcon.adb,
1711 g-altive.ads, g-alveop.ads, g-alvevi.ads,
1712 g-arrspl.adb, g-busorg.ads, g-calend.adb,
1713 g-calend.ads, g-casuti.ads, g-cgideb.adb,
1714 g-comlin.adb, g-comlin.ads, g-curexc.ads,
1715 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
1716 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
1717 g-dyntab.adb, g-encstr.ads, g-excact.ads,
1718 g-except.ads, g-expect.ads, g-heasor.adb,
1719 g-hesora.adb, g-hesorg.adb, g-htable.ads,
1720 g-locfil.ads, g-md5.adb, g-md5.ads,
1721 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
1722 g-pehage.adb, g-pehage.ads, g-regexp.adb,
1723 g-regexp.ads, g-regpat.adb, g-regpat.ads,
1724 g-soccon-aix.ads, g-soccon-darwin.ads,
1725 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
1726 g-soccon-hpux.ads, g-soccon-irix.ads,
1727 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
1728 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
1729 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
1730 g-soccon-solaris.ads, g-soccon-tru64.ads,
1731 g-soccon-vms.ads, g-soccon-vxworks.ads,
1732 g-soccon.ads, g-socket.adb, g-socket.ads,
1733 g-socthi-mingw.adb, g-socthi-vms.adb,
1734 g-socthi-vxworks.adb, g-soliop-mingw.ads,
1735 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
1736 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
1739 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
1741 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
1742 if the procedure is imported.
1744 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1746 * adaint.c: Fix warnings.
1748 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1750 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
1752 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1754 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
1755 Fix problem of status check for null file
1757 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1759 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
1760 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
1761 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
1762 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
1763 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
1766 2008-03-26 Thomas Quinot <quinot@adacore.com>
1769 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
1770 Get_Socket_Option): Add support for Receive_Packet_Info.
1772 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1773 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1774 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
1775 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
1776 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
1777 new constants SO_REUSEPORT and IP_PKTINFO
1779 2008-03-26 Robert Dewar <dewar@adacore.com>
1781 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
1782 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1783 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
1784 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
1785 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
1786 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
1787 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
1788 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1789 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
1790 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
1791 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
1792 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
1793 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
1794 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
1795 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
1796 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
1797 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
1798 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
1799 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
1800 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
1801 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
1802 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
1803 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
1804 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
1805 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
1806 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
1807 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
1808 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
1809 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
1810 s-tasloc.adb: Minor reformatting.
1812 Remove "used for" sections from comments.
1814 2008-03-26 Robert Dewar <dewar@adacore.com>
1816 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
1817 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
1818 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
1819 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
1820 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
1821 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
1822 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
1823 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
1824 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
1825 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
1826 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
1827 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
1828 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
1829 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
1830 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
1831 double spaced if it fits on one line and otherwise single spaced.
1833 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1835 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
1836 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
1837 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
1838 or task info if the thread could not be created.
1840 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1842 * gnatvsn.ads (Library_Version): Bump to 4.4.
1843 (Current_Year): Bump to 2008.
1845 2008-03-26 Robert Dewar <dewar@adacore.com>
1847 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
1849 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
1851 * debug.adb: Add debug flags d.r and d.v
1852 Add debug flag .T (Optimize_Alignment (Time))
1853 Add debug flag .S (Optimize_Alignment (Space))
1855 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
1856 depending on setting of relevant debug flags.
1857 Replace use of Warnings_Off by Has_Warnings_Off
1858 (Freeze_Entity): In circuit for warning on suspicious convention
1859 actuals, do not give warning if subprogram has same entity as formal
1860 type, or if subprogram does not come from source.
1861 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
1862 if Optimize_Alignment set to Space.
1864 * frontend.adb: Add call to Sem_Warn.Initialize
1865 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
1866 Reset Optimize_Alignment mode from debug switches .S and .T
1868 * layout.adb (Layout_Composite_Object): Rewritten for
1869 Optimize_Aligment pragma.
1871 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
1874 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
1876 * par-prag.adb (N_Pragma): Chars field removed, use Chars
1877 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
1878 this change. Add entry for pragma Optimize_Alignment
1880 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
1881 (Pragma_Identifier (..
1882 instead, adjustments throughout to accomodate this change.
1883 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
1884 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
1885 Add implementation of pragma Optimize_Alignment
1887 2008-03-26 Vincent Celier <celier@adacore.com>
1889 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
1890 Improve memory usage to avoid use of stack.
1892 2008-03-26 Robert Dewar <dewar@adacore.com>
1894 * a-teioed.ads: Correct value of Default_Fill
1896 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
1898 2008-03-26 Robert Dewar <dewar@adacore.com>
1900 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
1901 with Current_Output (introduce Self).
1903 2008-03-26 Robert Dewar <dewar@adacore.com>
1905 * checks.adb (Ensure_Valid): Capture valid status if possible
1908 2008-03-26 Robert Dewar <dewar@adacore.com>
1910 * stand.ads: Deal with reordering of package standard declarations
1912 * cstand.adb: Put package Standard declarations in proper order
1914 2008-03-26 Robert Dewar <dewar@adacore.com>
1916 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
1917 (Pragma_Identifier (.. instead.
1918 (OK_To_Reorder_Components): New flag
1919 (Has_Entries): Code cleanup.
1920 (Warnings_Off_Used): New flag
1921 (Warnings_Off_Used_Unmodified): New flag
1922 (Warnings_Off_Used_Unreferenced): New flag
1923 (Has_Warnings_Off): New function
1924 (Has_Unmodified): New function
1925 (Has_Unreferenced): New function
1926 (Is_Trivial_Subprogram): New flag
1927 (Is_Static_Dispatch_Table_Entity): New attribute.
1928 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
1929 (more consistent with other similar names)
1930 (Access_Subprogram_Type): New classification function
1932 2008-03-26 Robert Dewar <dewar@adacore.com>
1934 * errout.ads: Document new !! insertion sequence
1936 * errout.adb (N_Pragma): Chars field removed, use Chars
1937 (Pragma_Identifier (.. instead.
1938 Replace use of Warnings_Off by Has_Warnings_Off
1939 (Error_Msg_Internal): Don't delete warning ending in !!
1941 2008-03-26 Robert Dewar <dewar@adacore.com>
1943 * par.adb (Check_No_Right_Paren): Removed no longer used
1945 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
1946 (Pragma_Identifier (.. instead.
1948 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
1950 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
1951 par-ch4.adb: Minor improvements in error recovery and messages.
1953 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
1956 * par-ch9.adb: Minor improvements in error recovery and messages
1957 (P_Protected): Better error recovery for "protected type x;"
1959 * par-util.adb: Minor improvements in error recovery and messages
1960 (Check_No_Right_Paren): Removed no longer used
1962 2008-03-26 Ed Schonberg <schonberg@adacore.com>
1964 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
1965 that the prefix of an attribute is the type of the aggregate being
1968 2008-03-26 Javier Miranda <miranda@adacore.com>
1969 Robert Dewar <dewar@adacore.com>
1971 * exp_attr.adb (N_Pragma): Chars field removed.
1972 (Expand_N_Attribute_Reference): If the designated type associated with
1973 attribute 'Unrestricted_Access is a subprogram entity then replace it
1974 by an E_Subprogram_Type itype.
1975 Implement attribute Old
1977 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
1979 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
1981 New_Internal_Entity by call to Create_Itype to centralize calls
1982 building itypes, ad propagate the convention of the designated
1983 subprogram. In addition, disable the machinery cleaning constant
1984 indications from all entities in current scope when 'Unrestricted_Access
1985 corresponds with a node initializing a dispatch table slot.
1986 (Analyze_Attribute): Parameterless attributes returning a string or a
1987 type will not be called with improper arguments, so we can remove junk
1988 code that was dealing with this case.
1989 Implement attribute Old
1991 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
1992 Add entry for pragma Optimize_Alignment
1993 New standard names Sync and Synchronize
1995 2008-03-26 Robert Dewar <dewar@adacore.com>
1996 Arnaud Charlet <charlet@adacore.com>
1998 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
2000 (No_Exception_Propagation_Active): New function.
2001 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2002 Update comments, and review all uses of No_Exception_Propagation, which
2003 are now correct and in sync with what gigi expects.
2005 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
2007 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2008 Update comments, and review all uses of No_Exception_Propagation, which
2009 are now correct and in sync with what gigi expects.
2011 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2013 * sem_ch3.adb (Access_Definition): If the access type is the return
2014 result of a protected function, create an itype reference for it
2015 because usage will be in an inner scope from the point of declaration.
2016 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
2017 OK_To_Reorder_Components.
2018 (Make_Index): If an overloaded range includes a universal integer
2019 interpretation, resolve to Standard.Integer.
2020 (Analyze_Subtype_Indication): Copy Convention to subtype
2021 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
2022 limited an synchronized progenitors in type declaration and private
2023 extension declarations.
2025 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
2026 protected subprogram body, determine proper scope from subprogram
2029 2008-03-26 Robert Dewar <dewar@adacore.com>
2031 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
2034 2008-03-26 Gary Dismukes <dismukes@adacore.com>
2036 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
2037 of a heap allocator for a limited unconstrained function return when
2038 resstriction No_Allocators is active.
2039 (Analyze_Allocator): The restriction No_Allocators is now only checked
2040 on allocators that have Comes_From_Source set, as per RM-H.4(7).
2042 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
2043 of a heap allocator for a limited unconstrained function return when
2044 resstriction No_Allocators is active.
2045 (Analyze_Allocator): The restriction No_Allocators is now only checked
2046 on allocators that have Comes_From_Source set, as per RM-H.4(7).
2047 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
2048 operands are fixed-point types, the universal_fixed predefined operation
2049 is used, regardless of whether the operand type (s) have a primitive
2050 operation of the same name.
2052 2008-03-26 Javier Miranda <miranda@adacore.com>
2054 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
2055 Is_Static_Dispatch_Table
2056 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
2057 to Exchange_Declarations to exchange the private and full-view. Bug
2058 found working in this issue.
2059 (Expand_Dispatching_Call): Propagate the convention of the subprogram
2060 to the subprogram pointer type.
2061 (Make_Secondary_DT): Replace generation of Prim'Address by
2062 Address (Prim'Unrestricted_Access)
2063 (Make_DT): Replace generation of Prim'Address by
2064 Address (Prim'Unrestricted_Access)
2065 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
2066 simple call form for single entry.
2067 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
2068 tables of predefined primitives).
2069 (Make_Secondary_DT): Add support to handle access to dispatch tables of
2070 predefined primitives.
2071 (Make_Tags): Add entities to Access_Dispatch_Table associated with
2072 access to dispatch tables containing predefined primitives.
2074 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
2075 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
2077 (Register_Predefined_DT_Entry): Updated to handle the new contents
2078 of attribute Access_Disp_Table (pointers to dispatch tables containing
2079 predefined primitives).
2081 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
2083 (Find_Interface_ADT): Updated to skip the new contents of attribute
2084 Access_Dispatch_Table (pointers to dispatch tables containing predefined
2087 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
2089 (Set_Convention): Use new function Is_Access_Subprogram_Type
2090 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
2091 Access_Dispatch_Table (pointers to dispatch tables containing predefined
2094 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
2095 expanded code avoiding calls to Build_Predef_Prims.
2096 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
2097 call to Build_Get_Predefined_Prim_Op_Address.
2099 2008-03-26 Javier Miranda <miranda@adacore.com>
2101 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
2102 subprogram Corresponding_Runtime_Package to know the runtime package
2103 that will provide support to a given protected type.
2105 * exp_ch9.adb (Add_Private_Declarations,
2106 Build_Protected_Subprogram_Call,
2107 Build_Protected_Entry, Build_Simple_Entry_Call,
2108 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
2109 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
2110 cleanup using the new centralized subprogram Corresponding_Runtime
2111 Package to know the runtime package that provides support to
2112 a given protected type.
2114 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2116 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
2117 assignment is within the initialization procedure for a packed array,
2118 and Initialize_Scalars is enabled, compile right-hand side with checks
2119 off, because the value is purposely out of range.
2121 2008-03-26 Vincent Celier <celier@adacore.com>
2123 * gnatcmd.adb: Add processing for GNAT SYNC
2125 * vms_conv.ads: (Command_Type): Add command Sync
2127 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
2129 * vms_data.ads: Add entries for -gnatw.w
2130 Add qualifier for gnatstub --header-file option
2131 Add switches for GNAT SYNC
2133 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
2134 (Add_Package_Name): New procedure
2135 (Package_Name_List): New function
2136 (Initialize): Add known package names to the list
2137 (Register_New_Package): Add the new package name to the list
2139 2008-03-26 Robert Dewar <dewar@adacore.com>
2141 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
2142 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
2143 Raise_Exception by "raise with" construct.
2145 2008-03-26 Pascal Obry <obry@adacore.com>
2147 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
2148 supported platforms.
2150 * Makefile.rtl: Add g-sercom.o.
2152 * impunit.adb: Add g-sercom.adb.
2154 * s-crtl.ads (open): New routine.
2158 * s-osinte-mingw.ads (BYTE): New type.
2160 (OVERLAPPED): Likewise.
2161 (GENERIC_READ): New constant.
2162 (GENERIC_WRITE): Likewise.
2163 (OPEN_EXISTING): Likewise.
2164 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
2166 (CreateFile): New routine.
2167 (WriteFile): Likewise.
2168 (ReadFile): Likewise.
2169 (CloseHandle): Move next to the other file oriented routines.
2171 * g-sercom.ads: New unit.
2173 * g-sercom.adb: Default implementation, calls to this unit will raise
2174 a program error exception.
2176 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
2177 GNU/Linux implementations.
2179 2008-03-26 Robert Dewar <dewar@adacore.com>
2181 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
2183 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
2184 unchecked conversion for different conventions only for subprogram
2187 2008-03-26 Vincent Celier <celier@adacore.com>
2189 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
2190 to check if the specified object file is correct.
2192 2008-03-26 Thomas Quinot <quinot@adacore.com>
2194 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
2195 Comes_From_Source to exclude primitives from being checked. We want to
2196 exclude predefined primitives only, so use the appropriate specific
2197 predicate. Also, flag a formal parameter of an anonymous
2198 access-to-subprogram type as illegal for a primitive operation of a
2199 remote access to class-wide type.
2201 2008-03-26 Vincent Celier <celier@adacore.com>
2203 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
2204 known, check if it may be a missspelling of a known package name. In
2205 not verbose, not mode, issue warnings only if the package name is a
2206 possible misspelling.
2207 In verbose mode, always issue a warning for a not known package name,
2208 plus a warning if the name is a misspelling of a known package name.
2210 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
2211 limited withs or limited withs are parse during one call.
2212 (Parse_Single_Project): Post parse context clause in two passes: non
2213 limited withs before current project and limited withs after current
2216 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
2217 project with the name With_Name, even if it is only extended indirectly.
2218 (Recursive_Process): Process projects in order: first single withs, then
2219 current project, then limited withs.
2221 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
2222 project with the name With_Name, even if it is only extended indirectly.
2224 2008-03-26 Robert Dewar <dewar@adacore.com>
2226 * scn.adb (Initialize_Scanner): Format messages belong on standard error
2228 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2230 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
2231 a generic subprogram that is imported, do not attempt to compile
2234 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
2235 imported, do not generate a raise_program_error for the non-existent
2237 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
2238 perform minimal name resolution on the generic to avoid spurious
2240 (Find_Actual_Type): the designated type of the actual in a child unit
2241 may be declared in a parent unit without being an actual.
2243 2008-03-26 Robert Dewar <dewar@adacore.com>
2245 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
2246 * sinfo.ads, sinfo.adb (From_At_End): New flag
2248 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2250 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
2251 operations that have an interface parameter.
2252 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
2253 Don't treat No_Return call as raise.
2255 * sem_disp.adb (Check_Dispatching_Operations): apply check for
2256 non-primitive interface primitives to access parameters, not to all
2257 parameters of an access type.
2259 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2261 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
2262 declarations of a parent unit are made visible when compiling a child
2263 instance, the parent is not a hidden open scope, even though it may
2264 contain other pending instance.
2266 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
2267 hidden open scope for some child instance, it does affect the
2268 visibility status of other stach entries.
2269 (Analyze_Object_Renaming): Check that a class-wide object cannot be
2270 renamed as an object of a specific type.
2272 2008-03-26 Robert Dewar <dewar@adacore.com>
2274 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
2275 recursion and raise SE directly.
2276 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
2277 set for formal type for IN mode parameter.
2279 2008-03-26 Robert Dewar <dewar@adacore.com>
2281 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
2282 (Initialize): New procedure
2283 (Output_Warnings_Off_Warnings): New procedure
2284 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
2285 (Output_Non_Modifed_In_Out_Warnings): Ditto
2286 (Warn_On_Unreferenced_Entity): Ditto
2288 2008-03-26 Vincent Celier <celier@adacore.com>
2290 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
2293 2008-03-26 Matthew Heaney <heaney@adacore.com>
2295 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
2296 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
2297 Marked with clauses as private, and controlled operations as overriding
2299 2008-03-26 Robert Dewar <dewar@adacore.com>
2301 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
2303 2008-03-26 Robert Dewar <dewar@adacore.com>
2305 * back_end.adb, back_end.ads: Minor reformatting
2307 * bindgen.adb: Minor clarification of comments
2309 * fname.ads: Minor comment fixes
2311 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
2312 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
2314 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
2315 xsnames.adb: Remove warnings off pragma no longer needed
2317 * a-catizo.ads, a-calari.ads, a-calfor.adb,
2318 a-calfor.ads: Fix header.
2320 2008-03-26 Tristan Gingold <gingold@adacore.com>
2322 * init.c: Do not adjust pc for HPARITH on alpha/vms.
2324 2008-03-26 Robert Dewar <dewar@adacore.com>
2326 * lib-xref.adb: (OK_To_Set_Reference): New function
2327 (Generate_Reference): Don't set referenced from occurrence in Warnings,
2328 Unmodified, or Unreferenced pragma
2330 2008-03-26 Robert Dewar <dewar@adacore.com>
2332 * alloc.ads: Add entries for Warnings_Off_Pragmas table
2334 2008-03-26 GNAT Script <nobody@adacore.com>
2336 * Make-lang.in: Makefile automatically updated
2338 2008-03-26 Robert Dewar <dewar@adacore.com>
2340 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
2341 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
2342 removed, use Chars (Pragma_Identifier (.. instead, adjustments
2343 throughout to accomodate this change.
2345 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
2347 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
2348 Einfo.Set_Needs_Debug_Info)
2350 2008-03-26 Robert Dewar <dewar@adacore.com>
2352 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
2353 Add description for the new gnatstub option '--header-file'
2354 clarification of -gnatwz/-gnatwZ
2355 Add a "Irix-Specific Considerations" section to document the need to
2356 set LD_LIBRARY_PATH when using the default shared runtime library.
2357 Added documentation for both gcov and gprof.
2359 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
2360 messages that are not suppressed when clients are compiled.
2361 Add documentation of s-pooglo s-pooloc
2362 Document the new GNAT.Serial_Communications API.
2363 Add documentation for 'Old attribute
2364 Add description of pragma Optimize_Alignment
2366 * ug_words: Add entries for -gnatw.w -gnatw.W
2368 * usage.adb: Add line for -gnatw.w (warn on warnings off)
2370 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
2373 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
2375 * decl.c (maybe_pad_type): Avoid padding an integral type when
2376 bumping its alignment is sufficient.
2378 2008-03-25 Arnaud Charlet <charlet@adacore.com>
2380 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
2381 Fix wrong formatting (lines too long)
2383 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2385 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
2386 a-calend-vms.adb, a-calend.adb, a-calend.ads,
2387 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
2388 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
2389 a-cohama.ads, a-comlin.ads, a-coorse.adb,
2390 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
2391 a-except-2005.ads, a-except.adb, a-except.ads,
2392 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
2393 a-exextr.adb, a-filico.ads, a-finali.ads,
2394 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
2395 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
2396 a-sequio.ads, a-strbou.ads, a-strfix.adb,
2397 checks.adb, exp_ch3.adb, exp_ch4.adb,
2398 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
2399 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
2400 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
2401 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
2402 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
2404 2008-03-24 Robert Dewar <dewar@adacore.com>
2406 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
2407 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
2408 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
2409 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
2410 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
2411 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
2412 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2413 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
2414 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
2415 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
2416 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
2417 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
2418 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
2419 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2420 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2421 double spaced if it fits on one line and otherwise single spaced.
2423 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2425 PR documentation/15479
2426 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
2427 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
2428 (doc/gnat_ugn.info): Renamed from ...
2429 (doc/gnat_ugn_unw.info): ... this.
2430 (doc/gnat_ugn.dvi): Renamed from ...
2431 (doc/gnat_ugn_unw.dvi): ... this.
2432 (doc/gnat_ugn.pdf): Renamed from ...
2433 (doc/gnat_ugn_unw.pdf): ... this.
2434 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
2436 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
2437 unconditionally to gnat_ugn.info. Fix cross references to the
2438 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
2439 and GNU make manuals to be proper texinfo links.
2440 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
2442 2008-03-21 Olivier Hainque <hainque@adacore.com>
2444 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
2445 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
2447 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
2449 * trans.c (addressable_p): Add notes on addressability issues.
2451 2008-03-21 Olivier Hainque <hainque@adacore.com>
2452 Ed Schonberg <schonberg@adacore.com>
2454 * trans.c (addressable_p): Accept COND_EXPR when both arms
2456 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
2457 (call_to_gnu): Do not use name reference in the error message
2458 for a misaligned by_reference_parameter. The actual may be a
2461 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2463 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2465 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2467 * gnat_rm.texi (Implementation Defined Characteristics)
2468 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
2470 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
2471 (Switches for gnatchop, Installing a library): Likewise.
2473 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
2475 * trans.c (emit_range_check): Do not emit the check if the base type
2476 of the expression is the type against which its range must be checked.
2478 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2480 * decl.c (maybe_pad_type): Use value_factor_p.
2482 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2484 * lang.opt (nostdlib): Move around.
2485 * misc.c (gnat_handle_option): Fix formatting.
2486 (gnat_dwarf_name): Move around.
2487 * trans.c (Case_Statement_to_gnu): Fix formatting.
2488 (gnat_to_gnu): Likewise.
2489 * utils.c (aggregate_type_contains_array_p): Likewise.
2490 (create_subprog_decl): Likewise.
2492 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2494 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
2495 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
2497 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2499 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
2500 BIGGEST_ALIGNMENT when capping the alignment of records with
2501 strict alignment and size clause.
2503 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2505 * lang-specs.h: Pass -gnatwa if -Wall is passed.
2506 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
2507 and -Wuninitialized.
2508 (gnat_post_options): Clear warn_unused_parameter.
2510 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2512 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
2513 aligned bit-fields, bumping the alignment of the record type if deemed
2515 (value_factor_p): Return false instead of 0.
2517 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2519 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
2520 for scalar types with small alignment.
2522 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2524 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
2525 from that of the front-end's end label.
2526 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
2527 from that of the loop label.
2529 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2531 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
2532 comment for the packed array type case.
2533 * utils.c (build_template): Use a loop to strip padding or
2534 containing records for justified modular types.
2536 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2538 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
2539 large alignments specified for types.
2540 (validate_alignment): Minor cleanup.
2542 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2544 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
2545 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
2546 the component for packing, if possible, as well as if a component
2547 size clause is specified.
2548 <E_Record_Subtype>: For an array type used to implement a packed
2549 array, get the component type from the original array type.
2550 Try to get a smaller form of the component for packing, if possible,
2551 as well as if a component size clause is specified.
2552 (round_up_to_align): New function.
2553 (make_packable_type): Add in_record parameter.
2554 For a padding record, preserve the size. If not in_record and the
2555 size is too large for an integral mode, attempt to shrink the size
2556 by lowering the alignment.
2557 Ditch the padding bits of the last component.
2558 Compute sizes and mode manually, and propagate the RM size.
2559 Return a BLKmode record type if its size has shrunk.
2560 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
2561 Use Original_Array_Type to retrieve the type in case of an error.
2562 Adjust call to make_packable_type.
2563 (gnat_to_gnu_field): Likewise.
2564 (concat_id_with_name): Minor tweak.
2565 * trans.c (larger_record_type_p): New predicate.
2566 (call_to_gnu): Compute the nominal type of the object only if the
2567 parameter is by-reference. Do the conversion actual type -> nominal
2568 type if the nominal type is a larger record.
2569 (gnat_to_gnu): Do not require integral modes on the source type to
2570 avoid the conversion for types with identical names.
2571 (addressable_p): Add gnu_type parameter. If it is specified, do not
2572 return true if the expression is not addressable in gnu_type.
2573 Adjust recursive calls.
2574 * utils.c (finish_record_type): Remove dead code.
2576 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
2579 * decl.c (maybe_pad_type): Avoid padding an integral type when
2580 bumping its alignment is sufficient.
2582 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2584 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
2585 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
2587 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
2588 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
2589 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
2590 code output strings.
2591 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
2592 system-vms_64.ads: Fix typos in ada source code comments.
2593 * sinfo-cn.adb: Remove incomplete sentence.
2595 PR documentation/15479
2596 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
2598 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
2601 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
2603 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
2606 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
2607 that underlying type is present.
2609 2008-02-26 Tom Tromey <tromey@redhat.com>
2611 * misc.c (internal_error_function): Remove test of
2612 USE_MAPPED_LOCATION.
2613 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
2614 (Sloc_to_locus): Remove old location code.
2616 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2618 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
2619 `i.e.' by adding comma or `@:' as appropriate.
2620 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
2621 plain characters `C', use `@samp{C}'.
2622 * gnat_ugn.texi (File Naming Rules, About gnatkr)
2623 (Krunching Method): Likewise.
2625 * gnat_ugn.texi (Conventions): List environment variables and
2626 metasyntactic variables.
2627 (Compiling Programs): Fix notation of metasyntactic variables.
2628 Add @file where appropriate. Use @file for file extensions,
2630 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
2631 instead of @file, @env instead of @code.
2633 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2635 PR documentation/15479
2636 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
2637 and `...' with `@dots{}' or `@enddots{}'.
2639 PR documentation/15479
2640 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
2641 use @command instead of @code, @option instead of @samp or @code,
2642 @code instead of @var, @samp instead of @file.
2644 PR documentation/15479
2645 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
2646 in Makefile rules, by using `&&' rather than `;'.
2648 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2650 PR documentation/15479
2651 * gnat_ugn.texi: In non-code, avoid space before colon.
2652 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
2653 (Examples of gnatxref Usage): Use @command{vi} instead of
2655 (Character Set Control): Do not use @code for UTF-8.
2656 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
2658 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
2660 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
2662 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
2665 * env.c: Add __rtems__ to if defined.
2666 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
2667 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
2668 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
2669 pragma Convention as required.
2670 * gsocket.h: Make compile in and out of RTS.
2671 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
2672 Use g-soccon-rtems.ads.
2673 * g-soccon-rtems.ads, system-rtems.ads: New files.
2675 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2678 * Make-lang.in (gnat1): Add $(GMPLIBS).
2680 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
2682 * decl.c (components_to_record): Improve comment.
2684 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
2686 * decl.c (components_to_record): Do not reuse the empty union type
2687 if there is a representation clause on the record.
2688 * trans.c (addressable_p): Return true for INTEGER_CST.
2690 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
2692 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
2693 in pointer arithmetics.
2694 * utils2.c (build_allocator): Likewise.
2696 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
2698 * utils.c (build_function_stub): Properly build the call expression.
2700 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
2702 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
2703 before converting the expression to the type of the object.
2704 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
2705 Stabilize constructors for special wrapping types.
2707 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
2709 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
2710 when necessary. Merge some conditional statements. Update comments.
2711 Rename unchecked_convert_p local variable to suppress_type_conversion.
2712 Do not suppress conversions in the In case.
2713 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
2714 into account on non strict-alignment platforms.
2716 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
2718 * utils.c (aggregate_type_contains_array_p): New predicate.
2719 (create_field_decl): In a packed record, force byte alignment
2720 for fields without specified position that contain an array.
2722 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
2724 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
2726 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
2729 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
2731 (bit_field): New packed boolean type used by cpu_set_t.
2732 (cpu_set_t): New type corresponding to the C type with
2733 the same name. Note that on the Ada side we use a bit
2734 field array for the affinity mask. There is not need
2735 for the C macro for setting individual bit.
2736 (pthread_setaffinity_np): New imported routine.
2738 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
2741 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2742 on OpenBSD as is done on other BSD systems.
2745 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
2746 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
2750 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
2754 * init.c (__gnat_error_handler, __gnat_install_handler,
2755 __gnat_init_float): Define for OpenBSD.
2757 * initialize.c (__gnat_initialize): Define for OpenBSD.
2759 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
2762 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2763 instead of mktemp() or tmpnam() on NetBSD.
2765 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
2767 * trans.c (call_to_gnu): Make the temporary for non-addressable
2768 In parameters passed by reference.
2769 (addressable_p): Return true for STRING_CST and CALL_EXPR.
2771 2007-12-19 Robert Dewar <dewar@adacore.com>
2773 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
2774 Add pragma Warnings (Off) for unassigned IN OUT arguments
2776 * sem_warn.adb (Output_Reference): Suppress messages for internal names
2777 (Check_References): Extensive changes to tune up warnings
2778 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
2779 (Has_Pragma_Unmodifed_Check_Spec): New function
2780 (Check_References): Implement pragma Unmodified
2781 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
2783 * par-prag.adb: Dummy entry for pragma Unmodified
2785 * sem_prag.adb: Implement pragma Unmodified
2787 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
2788 (Proc_Next_Component_Or_Discriminant): Fix typo.
2791 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
2793 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
2794 because the former already takes care of discarding the result.
2795 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
2798 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
2800 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
2802 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
2803 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
2804 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
2805 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
2806 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2807 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2808 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
2809 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
2810 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
2811 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
2812 (Dynamic_Trampolines_Used): Delete.
2814 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
2815 Turn on stack probing mechanism on LynxOS.
2817 2007-12-19 Bob Duff <duff@adacore.com>
2819 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
2820 the resulting tail recursion by hand. This prevents running out of
2821 memory on deeply nested concatenations, since Field2 is where the left
2822 operand of concatenations is stored.
2823 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
2824 clarify that it can only return OK or Abandon.
2826 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
2827 operand by iteration, in order to avoid running out of memory on
2828 deeply-nested concatenations. Use the Parent pointer to get back up the
2830 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
2831 Resolve_Op_Concat_Rest): New procedures split out of
2832 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
2835 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
2836 Traverse_Func, because the former already takes care of discarding the
2839 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
2840 because the former already takes care of discarding the result.
2841 (Remove_Warning_Messages): Use appropriate subtype for Status and
2844 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2846 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
2847 discriminants forces expansion of the aggregate into assignments.
2848 (Init_Record_Controller): If the type of the aggregate is untagged and
2849 is not inherently limited, the record controller is not limited either.
2851 2007-12-19 Robert Dewar <dewar@adacore.com>
2853 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
2854 handling compile time known size of record or array (case of front end
2855 layout active, e.g. in GNAAMP).
2857 2007-12-19 Javier Miranda <miranda@adacore.com>
2859 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
2860 that forces the construction of static dispatch tables in case of
2863 2007-12-19 Robert Dewar <dewar@adacore.com>
2865 * exp_ch9.adb (Null_Statements): Moved to library level
2866 (Trivial_Accept_OK): New function
2867 (Expand_Accept_Declaration): Use Trivial_Accept_OK
2868 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
2870 2007-12-19 Robert Dewar <dewar@adacore.com>
2872 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
2873 in complex case where array is Volatile.
2875 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2877 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
2878 properly the Ada2005 rules concerning when the current instance of a
2879 record type is aliased.
2881 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2883 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
2885 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
2887 (P_Variant_Part): Cleaner patch for parenthesized discriminant
2889 2007-12-19 Vincent Celier <celier@adacore.com>
2891 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
2892 package is not known
2894 * prj-attr.ads (Unknown_Package): New constant
2895 Do not crash when an unknown package is in several projects
2897 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
2900 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
2901 existing package Language_Processing.
2903 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2904 Gary Dismukes <dismukes@adacore.com>
2905 Samuel Tardieu <sam@rfc1149.net>
2907 PR ada/15803, ada/15805
2908 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
2909 illegal access subtypes when there is a constrained partial view.
2910 (Check_For_Premature_Usage): New procedure inside
2911 Access_Subprogram_Declaration for checking that an access-to-subprogram
2912 type doesn't reference its own name within any formal parameters or
2913 result type (including within nested anonymous access types).
2914 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
2915 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
2916 context is an access_to_variable, the expression cannot be an
2919 2007-12-19 Bob Duff <duff@adacore.com>
2921 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
2922 (Analyze_Concatenation): Use iteration instead of recursion in order
2923 to avoid running out of stack space for deeply nested concatenations.
2925 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2926 Gary Dismukes <dismukes@adacore.com>
2928 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
2929 whose renamed entity is a subprogram that requires overriding.
2930 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
2931 issuing an error for premature usage and issue a message that says
2932 'type' rather than 'object'.
2934 2007-12-19 Gary Dismukes <dismukes@adacore.com>
2937 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
2938 presence of a statically tagged operand (Present (Static_Tag)) with
2939 test for Indeterm_Ancestor_Call when determining whether to propagate
2940 the static tag to tag-indeterminate operands (which forces dispatching
2942 (Check_Controlling_Formals): Ada2005, access parameters can have
2944 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
2945 not insert subprogram in list of primitive operations if already there.
2947 2007-12-19 Tristan Gingold <gingold@adacore.com>
2949 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
2952 2007-12-19 Thomas Quinot <quinot@adacore.com>
2954 Part of PR ada/33688
2955 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
2956 datagram info on Linux.
2958 2007-12-19 Vincent Celier <celier@adacore.com>
2960 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
2961 that the source path name is always found in the dependencies.
2963 2007-12-19 Robert Dewar <dewar@adacore.com>
2965 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
2966 Fix name of Wide_Wide_Latin_1/9 file names
2967 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
2968 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
2969 Add missing documentation for Ada.Command_Line.Response_File
2970 Update list of warning letters for Warnings pragma
2971 Add documentation for pragma Unmodified
2973 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
2975 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
2977 2007-12-17 Arnaud Charlet <charlet@adacore.com>
2979 * s-vxwork-alpha.ads: Removed, no longer used.
2981 2007-12-15 Jakub Jelinek <jakub@redhat.com>
2983 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
2985 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
2988 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
2989 mlib-tgt-specific.adb.
2991 2007-12-13 Bob Duff <duff@adacore.com>
2993 * trans.c (Attribute_to_gnu): Check for violations of the
2994 No_Implicit_Dynamic_Code restriction. This checking used to be done in
2995 the front end, but is moved here so we can make it more accurate.
2997 2007-12-13 Pascal Obry <obry@adacore.com>
2999 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
3000 version is provided for older GNU/Linux distribution not
3001 supporting thread affinity sets.
3003 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
3005 (bit_field): New packed boolean type used by cpu_set_t.
3006 (cpu_set_t): New type corresponding to the C type with
3007 the same name. Note that on the Ada side we use a bit
3008 field array for the affinity mask. There is not need
3009 for the C macro for setting individual bit.
3010 (pthread_setaffinity_np): New imported routine.
3012 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
3014 (Create_Task): Set the processor affinity mask if information
3017 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
3019 2007-12-13 Robert Dewar <dewar@adacore.com>
3021 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3022 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
3023 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
3024 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
3025 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
3026 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
3027 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
3028 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
3029 for subprogram pointers.
3031 * g-ctrl_c.adb: New file.
3033 * g-ctrl_c.ads (Install_Handler): New body.
3035 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
3036 instead of obsolete function Is_Always_Inlined.
3037 (Freeze_Entity): check for tagged type in imported C subprogram
3038 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
3039 (Freeze_Entity): check for convention Ada subprogram pointer in
3040 imported C subprogram.
3041 (Freeze_Fixed_Point_Type): In the case of a base type where the low
3042 bound would be chopped off and go from negative to zero, force
3043 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
3044 bound) so that the size computation for the base type will take
3045 negative values into account.
3047 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
3048 Bob Duff <duff@adacore.com>
3049 Tristan Gingold <gingold@adacore.com>
3051 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
3052 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
3053 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
3054 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
3055 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
3056 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
3057 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
3058 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
3059 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
3060 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
3061 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
3062 (Always_Compatible_Rep): New flag to control trampolines globally.
3063 (Dynamic_Trampolines_Used): New flag for implementing the
3064 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
3065 and not yet set correctly for some targets).
3067 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
3068 Simply indirectly call s-stchop when a task is created.
3071 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
3072 appears as an argument (entries A) in an ALI file.
3074 * fe.h (Stack_Check_Limits): Declare new target parameter.
3075 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
3077 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
3078 This variable is declared in C to be sure not subject to elaboration
3080 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
3083 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
3084 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
3086 * s-stchop.ads: Add comments.
3088 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
3089 limit method of stack checking.
3091 * s-stchop-limit.ads: New file.
3093 2007-12-13 Robert Dewar <dewar@adacore.com>
3095 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
3096 a-cihama.adb, g-awk.adb,
3097 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
3100 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
3102 * sem.adb: Update handling of assigned value/unreferenced warnings
3104 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
3106 * lib-xref.ads: Improve documentation for k xref type
3109 Update handling of assigned value/unreferenced warnings
3110 (Generate_Reference): Warning for reference to entity for which a
3111 pragma Unreferenced has been given should be unconditional.
3112 If the entity is a discriminal, mark the original
3113 discriminant as referenced.
3115 * sem_warn.ads, sem_warn.adb
3116 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
3117 no entities referenced in package
3118 (Check_One_Unit): Don't give message about no entities referenced in
3119 a package if a pragma Unreferenced has appeared.
3120 Handle new warning flag -gnatw.a/-gnatw.A
3121 Update handling of assigned value/unreferenced warnings
3123 * atree.h: Add flags up to Flag247
3124 (Flag231): New macro.
3126 2007-12-13 Jose Ruiz <ruiz@adacore.com>
3128 * adaint.h: (__gnat_plist_init): Not defined for RTX.
3130 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
3133 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
3134 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
3135 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
3136 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
3139 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
3141 * sysdep.c (winflush_function for RTX): Procedure that does nothing
3142 since we only have problems with Windows 95/98, which are not
3144 (__gnat_ttyname): Return the empty string on Nucleus, just as
3147 2007-12-13 Robert Dewar <dewar@adacore.com>
3149 * a-textio.adb, a-textio.ads:
3150 Extensive changes to private part for wide character encoding
3152 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
3153 (Look_Ahead): Fix mishandling of encoded sequences
3154 Move declaration of Wch_Con to private part (should not be visible)
3156 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
3157 UTF-8. Probably this is never used, but if it is, brackets is
3160 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
3161 setting wide character encoding for no main program case and when
3162 encoding is specified using -W?
3163 Initialize stack limit of environment task if stack limit method of
3164 stack checking is enabled.
3165 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
3166 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
3167 (Get_Main_Unit_Name): New function.
3168 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
3169 (Gen_Output_File): Set Bind_Main_Program to True for .NET
3171 * bindusg.adb: Add line for -Wx switch
3173 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
3175 Add new useful constant WC_Longest_Sequences
3177 * switch-b.adb: Clean up handling of -Wx switch
3178 For -gnatWx, set Wide_Character_Encoding_Method_Specified
3180 * switch-c.adb: -gnatg activates warning on assertion errors
3181 For -gnatWx, set Wide_Character_Encoding_Method_Specified
3183 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
3185 2007-12-13 Robert Dewar <dewar@adacore.com>
3186 Ed Schonberg <schonberg@adacore.com>
3188 * a-ngcoty.adb: New pragma Fast_Math
3190 * opt.adb: New pragma Fast_Math
3193 Add Implemented_By_Entry to the list of pragmas which do not require any
3195 (Favor_Top_Level): New pragma.
3196 New pragma Fast_Math
3198 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
3199 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3200 Expand_Allocator_Expression): Take into account VM_Target
3201 (Expand_Attribute, case 'Identity): Handle properly the case where
3202 the prefix is a task interface.
3203 New pragma Fast_Math
3205 * par.adb (Next_Token_Is): New function
3206 (P_Pragma): Add Skipping parameter
3207 (U_Left_Paren): New procedure
3208 (U_Right_Paren): New procedure
3209 New pragma Fast_Math
3211 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
3213 New pragma Fast_Math
3215 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
3216 Implemented_By_Entry.
3217 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
3218 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
3219 items, since it can apply to more than one overloadable entity. Set
3220 new flag Has_Pragma_Inline_Always for Inline_Always case.
3221 (Analyze_Pragma, case Complex_Representation): Improve error message.
3222 (Analyze_Pragma, case Assert): When assertions are disabled build the
3223 rewritten code with Sloc of expression rather than pragma, so new
3224 warning about failing is not deleted.
3225 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
3226 protected types and update error message to reflect that. Test whether
3227 the protected type is allowed for the pragma (an error is issued if the
3228 type has any entries, or components that do not have preelaborable
3230 New pragma Fast_Math
3231 (Analyze_Pragma, case No_Return): Handle generic instance
3233 * snames.h, snames.ads, snames.adb:
3234 Add new predefined name for interface primitive _Disp_Requeue.
3235 New pragma Fast_Math
3237 * a-tags.ads, a-tags.adb: New calling sequence for
3238 String_To_Wide_[Wide_]String
3239 (Secondary_Tag): New subprogram.
3241 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
3243 New calling sequence for String_To_Wide_[Wide_]String
3244 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
3245 the use of the secondary stack for image routines.
3247 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
3248 calling sequence for String_To_Wide_[Wide_]String
3250 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
3252 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
3253 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3255 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
3256 (P_Formal_Part): Use Skipping parameter in P_Pragma call
3257 to improve error recovery
3259 * par-util.adb (Next_Token_Is): New function
3260 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
3262 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
3263 semicolon if missing
3264 (P_Pragma): Implement new Skipping parameter
3265 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3266 Fix location of flag for unrecognized pragma message
3268 * par-tchk.adb (U_Left_Paren): New procedure
3269 (U_Right_Paren): New procedure
3271 2007-12-13 Geert Bosch <bosch@adacore.com>
3274 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
3275 the second or later Scaled_Divide would omit leading zeroes,
3276 resulting in too few digits produced and a Layout_Error as result.
3277 (Put): Initialize Pos.
3279 2007-12-13 Robert Dewar <dewar@adacore.com>
3281 atree.ads, atree.adb (Flag231..Flag247): New functions
3282 (Set_Flag231..Set_Flag247): New procedures
3283 (Basic_Set_Convention): Rename Set_Convention to be
3284 Basic_Set_Convention
3285 (Nkind_In): New functions
3286 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3288 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
3290 of obsolete function Is_Always_Inlined
3291 (Register_Predefined_DT_Entry): Initialize slots of the second
3292 secondary dispatch table.
3293 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3294 (Expand_N_Function_Call): Remove special provision for stack checking.
3296 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
3297 Include _Disp_Requeue in the list of predefined operations.
3298 (Find_Interface_ADT): Modified to fulfill the new specification.
3299 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3301 * par-ch4.adb, nlists.ads, nlists.adb:
3302 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3304 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
3305 Fix location of flag for unrecognized pragma message
3307 * sem_ch7.adb: Use Nkind_In
3309 2007-12-13 Vincent Celier <celier@adacore.com>
3312 Indicate what flags are used by the Project Manager, gprbuild and
3314 (Opt.Follow_Links_For_Dirs): New flag
3315 (Warn_On_Assertion_Failure): New flag
3316 (Wide_Character_Encoding_Method_Specified): New flag
3317 (Suppress_All_Inlining): New switch set by -fno-inline
3318 (Real_VMS_Target): New flag
3319 New pragma Fast_Math
3321 2007-12-13 Robert Dewar <dewar@adacore.com>
3323 * back_end.adb: Recognize -fno-inline
3325 2007-12-13 Robert Dewar <dewar@adacore.com>
3327 * checks.adb: Fix optimization problem with short-circuited form
3329 2007-12-13 Bob Duff <duff@adacore.com>
3331 * clean.adb (Usage): Add line for -aP
3332 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
3333 with a parameter "procedure Usage", instead of passing a pointer to a
3334 procedure. This is to eliminate trampolines (since the Usage procedure
3335 is often nested in a main procedure, and it would be inconvenient to
3338 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
3339 to be generic, with a parameter "procedure Callback (...)", instead of
3340 passing a pointer to a procedure. This is to eliminate trampolines
3341 (since the Callback procedure is usually nested).
3343 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
3344 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
3345 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
3347 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
3348 Use the generic Heap_Sort_G instead of Heap_Sort_A.
3350 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3352 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
3353 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
3354 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
3355 (Renamed_In_Spec): New flag
3356 (Has_Pragma_Inline_Always): New flag
3357 Add missing doc for pragma Obsolescent_Warning
3358 Add missing doc for 17 additional unused flags (230-247)
3359 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
3360 Alphabetize with clauses.
3361 Separate Is_Thunk and Has_Thunks flags
3362 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
3363 (Related_Interface): Renamed to Related_Type.
3364 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
3365 (Set_Is_Flag): Restrict the assertion.
3367 2007-12-13 Vincent Celier <celier@adacore.com>
3369 * errout.adb (Output_Source_Line): Do not keep a trailing space after
3370 the source line number if the source line is empty.
3372 2007-12-13 Geert Bosch <bosch@adacore.com>
3374 * eval_fat.adb (Decompose_Int): Handle argument of zero.
3375 (Compose): Remove special casing of zero.
3376 (Exponent): Likewise.
3377 (Fraction): Likewise.
3378 (Machine): Likewise.
3379 (Decompose): Update comment.
3381 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3383 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
3384 limited ancestor part, initialize controllers of enclosing record
3385 before expanding ancestor aggregate.
3386 (Gen_Assign): If a component of the aggregate is box-initialized, add
3387 code to call Initialize if the component is controlled, and explicit
3388 assignment of null if the component is an access type.
3390 Handle properly aggregates for limited types that appear in object
3391 declarations when the aggregate contains controlled values such as
3393 When expanding limited aggregates into individual components, do not
3394 call Adjust on controlled components that are limited.
3396 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3398 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
3400 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3402 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
3403 predefined primitive _Disp_Requeue.
3404 (Make_Predefined_Primitive_Specs): Create the spec for predefined
3405 primitive _Disp_Requeue.
3406 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
3407 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
3408 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
3409 an interface type. In case of limited interfaces we now declare all the
3410 predefined primitives associated with synchronized interfaces as
3412 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
3414 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
3415 tagged type is an interface type and there is no user-defined equality
3417 Add also bodies of predefined primitives associated with synchronized
3419 (Freeze_Record_Type): Do not build bodies of predefined primitives of
3420 interface types because they are now defined abstract.
3421 Add missing documentation.
3422 (Expand_Record_Controller): Update occurrence of Related_Interface
3424 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
3425 (Expand_N_Object_Declaration): Take into account VM_Target when handling
3426 class wide interface object declaration.
3427 (Expand_Previous_Access_Type): Do not create a duplicate master entity
3428 if the access type already has one.
3429 (Expand_N_Object_Declaration): Defend against attempt to validity check
3430 generic types. Noticed for -gnatVcf specified with previous errors.
3432 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3434 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3435 Expand_Allocator_Expression): Take into account VM_Target
3437 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
3438 secondary stack when VM_Target /= No_VM
3440 2007-12-13 Javier Miranda <miranda@adacore.com>
3441 Ed Schonberg <schonberg@adacore.com>
3443 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
3444 Is_Complation_Unit by Is_Library_Level_Entity in the code
3445 that decides if the static dispatch tables need to be built.
3446 (Wrap_Transient_Declaration): Do not generate a finalization call if
3447 this is a renaming declaration and the renamed object is a component
3448 of a controlled type.
3450 2007-12-13 Gary Dismukes <dismukes@adacore.com>
3452 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
3453 In the case where the renamed subprogram is a dereference, call
3454 Force_Evaluation on the prefix.
3456 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3457 Ed Schonberg <schonberg@adacore.com>
3459 * exp_ch9.adb (Expand_N_Asynchronous_Select,
3460 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
3461 comment reformatting.
3462 (Set_Privals): Inherit aliased flag from formal. From code reading.
3463 (Build_Simple_Entry_Call): Out parameters of an access type are passed
3464 by copy and initialized from the actual. This includes entry parameters.
3465 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
3466 and Ada 2005 models of requeue.
3467 (Null_Statements): Still connsider do-end block null if it contains
3468 Unreferenced and Warnings pragmas.
3469 (Expand_N_Accept_Statement): Do not optimize away null do end if
3470 dispatching policy is other than defaulted.
3471 (Expand_N_Timed_Entry_Call): When the triggering statement is a
3472 dispatching call, manually analyze the delay statement.
3473 (Find_Parameter_Type): Move subprogram to Sem_Util.
3475 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3476 Javier Miranda <miranda@adacore.com>
3478 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
3479 _Disp_Requeue occupies dispatch table slot number 15. Move
3480 _Disp_Timed_Select to slot 16.
3481 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
3482 generate the spec and body of _Disp_Reqeueue.
3483 (Make_DT): Build and initialize the second dispatch table.
3484 Handle initialization of RC_Offset when the parent
3485 is a private type with variable size components.
3486 (Make_Secondary_DT): Complete documentation. Add support to
3487 initialize the second dispatch table.
3488 (Make_Tags): Generate the tag of the second dispatch table.
3489 (Register_Primitive): Add support to register primitives in the
3490 second dispatch table.
3492 2007-12-13 Pascal Obry <obry@adacore.com>
3494 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
3495 Windows. This signal is used by gnatmake to kill child processes for
3498 2007-12-13 Javier Miranda <miranda@adacore.com>
3500 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
3501 support for generic dispatching constructor calls in which we need to
3502 locate the tag of a secondary dispatch table associated with an
3503 interface type to properly dispatch the call.
3504 (Expand_N_Attribute_Reference [case Address],
3505 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
3506 handling of VM targets.
3508 2007-12-13 Robert Dewar <dewar@adacore.com>
3509 Ed Schonberg <schonberg@adacore.com>
3511 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
3514 * ug_words: Add entries for -gnatw.a -gnatw.A
3516 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
3517 literal is a subtype with non-static constraints, use the base type of
3518 the context as the base of the string subtype, to prevent type
3520 (Resolve_Actuals): If the actual is an entity name, generate a
3521 reference before the actual is resolved and expanded, to prevent
3522 spurious warnings on formals of enclosing protected operations.
3523 (Analyze_Overloaded_Selected_Component): If type of prefix if
3524 class-wide, use visible components of base type.
3525 (Resolve_Selected_Component): Ditto.
3526 (Resolve_Short_Circuit): Detect case of pragma Assert argument
3527 evaluating to False, and issue warning message.
3529 * usage.adb: Add lines for -gnatw.a and -gnatw.A
3531 2007-12-13 Emmanuel Briot <briot@adacore.com>
3533 * g-calend.ads (No_Time): New constant, to represent an uninitialized
3536 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
3538 (Month_Name_To_Number): New subprogram
3540 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
3541 letter to upper-case.
3543 2007-12-13 Robert Dewar <dewar@adacore.com>
3544 Ed Schonberg <schonberg@adacore.com>
3546 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
3548 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
3549 context is a limited view, use non-limited view when available. If the
3550 non-limited view is an unconstrained array, this enforces consistency
3551 requirements in 3.10.2 (27).
3552 (Layout_Type): For an access type whose designated type is a limited
3553 view, examine its declaration to determine if it is an unconstrained
3554 array, and size the access type accordingly.
3555 (Layout_Type): Do not force 32-bits for convention c subprogram
3556 pointers in -gnatdm mode, only if real vms target.
3558 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
3559 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3560 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
3561 violations of the No_Implicit_Dynamic_Code restriction.
3562 (Resolve_Attribute, case 'Access): If designated type of context is a
3563 limited view, use non-limited view when available. If the non-limited
3564 view is an unconstrained array, this enforces consistency requirements
3566 (Layout_Type): For an access type whose designated type is a limited
3567 view, examine its declaration to determine if it is an unconstrained
3568 array, and size the access type accordingly.
3570 2007-12-13 Vincent Celier <celier@adacore.com>
3572 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
3573 object directory of main project does not exist.
3574 On VMS, correctly set then environment variable for the source
3577 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
3579 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
3580 set to True this procedure will create the value of type REG_EXPAND_SZ.
3581 It was only possible to create REG_SZ values before.
3583 2007-12-13 Robert Dewar <dewar@adacore.com>
3585 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
3586 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
3587 namet-sp.adb, namet-sp.ads: New files.
3589 * g-speche.adb: Use generic routine in g-spchge
3591 * s-wchcnv.ads, s-wchcnv.adb:
3592 Minor code cleanup (make formal type consistent with spec)
3594 * namet.adb: Update comments.
3596 * par-endh.adb (Evaluate_End_Entry): Use new
3597 Namet.Sp.Is_Bad_Spelling_Of function
3599 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
3601 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
3602 ancestor is an access type initialized with a box, set its type
3603 explicitly, for use in subsequent expansion.
3604 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
3607 2007-12-13 Robert Dewar <dewar@adacore.com>
3609 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
3612 2007-12-13 Robert Dewar <dewar@adacore.com>
3614 * inline.adb (Back_End_Cannot_Inline): Use new flag
3615 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3617 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
3618 Has_Pragma_Inline_Always instead.
3619 of obsolete function Is_Always_Inlined
3620 (Build_Body_To_Inline): Same change
3621 (Cannot_Inline): Same change
3622 Do not give warning on exception raise in No_Return function
3624 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
3625 component has two inconsistent component clauses in the same record
3626 representation clause, favor the message that complains about
3627 duplication rather than inconsistency.
3629 (Record_Representation_Clause): Do not warn on missing component
3630 clauses for inherited components of a type extension.
3631 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
3632 an overloadable item if it is a pragma that can apply to multiple
3633 overloadable entities (e.g. Inline) because a pragma cannot be on
3634 more than one chain at a time.
3635 (Validate_Unchecked_Conversion): Add code to warn on unchecked
3636 conversion where one of the operands is Ada.Calendar.Time.
3637 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
3638 For now, ignore Component_Size clause on VM targets, as done for
3641 2007-12-13 Emmanuel Briot <briot@adacore.com>
3642 Vincent Celier <celier@adacore.com>
3644 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
3646 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
3648 (Hash): Move instantiation of System.HTable.Hash from spec to body
3649 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
3650 systems, since we do not need to recompute the Name_Id for the canonical
3652 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3653 as a parameter. This parameter is in fact always "ada" in all calls, and
3654 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
3655 while loading a project with 40000 files
3657 * prj-attr.adb: Fix name of attribute Dependency_Driver
3658 Change the kind of indexing for attribute Root
3660 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
3661 variables already declared, in case constructions.
3663 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
3664 Current_Object_Path_File to No_Path.
3666 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
3667 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
3669 * prj-makr.adb: new parameter Current_Dir
3671 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
3672 Ada sources when language is not Ada.
3673 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3674 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
3675 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
3676 (Locate_Directory): Always resolve links when computing Canonical_Path
3677 (Look_For_Sources): Make sure that Name_Buffer contains the file name
3678 in Source_Files before checking for the presence of a directory
3680 Optimize calls to Name_Find when on case sensitive systems.
3681 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3683 (Prj.Nmsc.Check): new parameter Current_Dir
3684 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
3685 cannot be empty and the spec suffix cannot be the same as the body or
3687 (Get_Unit): When a file name can be of several unit kinds (spec, body or
3688 subunit), always consider the longest suffix.
3689 (Check_Configuration): Do not issue an error if there is no compiler
3690 for a language. Just issue a warning and ignore the sources for the
3692 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
3694 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
3695 (Unit_Exceptions): New hash table
3696 (Check_Naming_Schemes): Check if a file that could be a unit because of
3697 the naming scheme is not in fact a source because there is an exception
3699 (Look_For_Sources): Put the unit exceptions in hash table
3701 (Get_Unit_Exceptions): Give initial value No_Source to local variable
3702 Other_Part to avoid exception when code is compiled with validity
3704 (Get_Sources_From_File): Check that there is no directory information
3706 (Look_For_Sources): Check that there is no directory information in the
3707 list of file names in Source_Files.
3708 (Look_For_Sources): In multi-language mode, do not allow exception file
3709 names that are excluded.
3710 (Excluded_Sources_Htable): New hash table
3711 (Search_Directories.Check_File): New procedure to simplify
3713 (Search_Directories): Do not consider excluded sources
3714 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
3716 (Get_Exceptions): Set component Lang_Kind of Source_Data
3717 (Get_Unit_Exceptions): Ditto
3718 (Search_Directories): Ditto
3720 * prj-pars.adb: new parameter Current_Dir
3722 * prj-part.ads, prj-part.adb:
3723 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3724 (Opt.Follow_Links_For_Dirs): New flag
3725 (Project_Path_Name_Of): Cache information returned by this routine as
3726 Locate_Regular_File is a costly routine. The code to output a log
3727 information and the effective call to Locate_Regular_File is now
3728 factorized into a routine (code clean-up).
3729 (Parse, Parse_Single_Project): new parameter Current_Dir
3730 When main project file cannot be found, indicate in the error
3731 message the project path that was used to do the search.
3733 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
3734 (Prj.Proc.Process*): new parameter Current_Dir
3736 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
3738 2007-12-13 Bob Duff <duff@adacore.com>
3740 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
3741 procedure to be called from the back end to check the
3742 No_Implicit_Dynamic_Code restriction.
3744 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3746 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
3747 Fixes another case where RTE_Available_Call was ignored instead of being
3751 * rtsfind.ads: Add new entries.
3753 2007-12-13 Robert Dewar <dewar@adacore.com>
3755 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
3756 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
3758 * scn.adb: Implement BOM recognition
3760 2007-12-13 Thomas Quinot <quinot@adacore.com>
3761 Ed Schonberg <schonberg@adacore.com>
3763 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
3764 subprogram body that acts as its own spec may not have a non-private
3765 WITH clause on a private sibling.
3766 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
3767 child unit is a renaming, create an implicit with_clause on that
3768 parent, and not on the unit it renames, to prevent visibility errors
3769 in the current unit.
3771 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3773 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
3774 renaming declaration, use the Slocs of the formal parameters from the
3775 declaration of the formal subprogram when creating the formal parameter
3776 entities in the renaming declaration.
3777 (Analyze_Formal_Type_Declaration): Change the placement of the error
3778 message concerning illegal known discriminants. It is now posted on the
3779 type rather than on the first discriminant. This change ensures early
3781 (Freeze_Subprogram_Body): If the generic subprogram is nested within
3782 the package body that contains the instance, do not generate an
3783 out-of-place freeze node for the enclosing package.
3784 (Collect_Previous_Instantiations): Ignore internal instantiations
3785 generated for formal packages.
3786 (Validate_Derived_Type_Instance): Add a check that when a formal
3787 derived type is Known_To_Have_Preelab_Init then the actual type must
3788 have preelaborable initialization, and issue an error when this
3789 condition is violated.
3791 2007-12-13 Robert Dewar <dewar@adacore.com>
3793 * s-imenne.adb, s-imenne.ads: New files.
3795 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
3796 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
3797 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
3798 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
3799 s-imgwch.ads: New calling sequence for Image routines to avoid sec
3802 2007-12-13 Javier Miranda <miranda@adacore.com>
3803 Ed Schonberg <schonberg@adacore.com>
3805 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
3806 generation of spurious error if parent is an interface type; caused
3807 because predefined primitive bodies will be generated later by
3809 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
3811 (Derive_Subprograms): Handle derivations of predefined primitives
3812 after all the user-defined primitives to ensure that they are
3813 found in proper order in instantiations.
3814 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
3815 of Related_Interface to Related_Type.
3816 (Record_Type_Declaration): Minor reordering of calls to decorate the
3817 Tag component because the entity must have set its Ekind attribute
3818 before setting its Is_Tag attribute.
3819 (Analyze_Subtype_Declaration): In the case of subtypes with
3820 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
3822 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3823 Ed Schonberg <schonberg@adacore.com>
3825 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
3826 statement to the list of contexts where a selected component with a
3827 concurrent tagged type prefix should yield a primitive operation.
3828 (Find_Primitive_Operation): Handle case of class-wide types.
3829 (Analyze_Overloaded_Selected_Component): If type of prefix is
3830 class-wide, use visible components of base type.
3831 (Resolve_Selected_Component): Ditto.
3832 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
3833 formal of a generic subprogram. find candidate interpretations by
3834 scanning the list of generic formal declarations.:
3835 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
3836 type from a limited_with_clause, and the full view is available, use it
3837 for subsequent semantic checks.
3838 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
3839 (Find_Primitive_Operation): New function.
3840 (Analyze_Overloaded_Selected_Component): insert explicit dereference
3841 only once if several interpretations of the prefix yield an access type.
3842 (Try_Object_Operation): Code and comment cleanup.
3843 (Analyze_Selected_Component): Reorder local variables. Minot comment and
3844 code reformatting. When the type of the prefix is tagged concurrent, a
3845 correct interpretation might be available in the primitive and
3846 class-wide operations of the type.
3848 2007-12-13 Robert Dewar <dewar@adacore.com>
3849 Ed Schonberg <schonberg@adacore.com>
3851 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
3852 renaming entry as subprogram using rename-as-body if subprogram spec
3854 (Use_One_Type): The clause is legal on an access type whose designated
3855 type has a limited view.
3856 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3857 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3858 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
3859 operation denoted by a selected component.
3860 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
3861 it can be an expression, possibly overloaded, that returns a task or
3864 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3865 Gary Dismukes <dismukes@adacore.com>
3867 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
3868 requeue statement is dispatching. Do not emit an error when the name is
3869 not an entry and the context is a dispatching select. Add code to
3870 perform subtype conformance between the formals of the current entry
3871 and those of the target interface primitive.
3872 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
3873 Timed_Entry_Call): Analyze the triggering statement as the first step of
3874 the processing. If this is a dispatching select, postpone the analysis
3875 of all select statements until the Expander transforms the select. This
3876 approach avoids generating duplicate identifiers after the Expander has
3877 replicated some of the select statements. In case the Expander is
3878 disabled, perform regular analysis.
3879 (Check_Triggering_Statement): New routine.
3880 (Analyze_Requeue): Exclude any interpretations that are not entries when
3881 checking overloaded names in a requeue. Also test type conformance for
3882 matching interpretations rather than requiring subtype conformance at
3883 that point to conform with the RM's resolution rule for requeues.
3885 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3887 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
3888 inherited operation is a defaulted tag-indeterminate call, and there is
3889 a statically tagged actual, use the static tag as a controlling actual
3890 for the defaulted actual.
3892 2007-12-13 Geert Bosch <bosch@adacore.com>
3894 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
3895 context, so do not call Check_Non_Static_Context.
3897 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3899 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
3900 whether formal E is an entity which may have parameters.
3902 2007-12-13 Bob Duff <duff@adacore.com>
3903 Javier Miranda <miranda@adacore.com>
3904 Robert Dewar <dewar@adacore.com>
3906 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
3907 (Set_Convention): New procedure to set the Convention flag, and in
3908 addition make sure the Favor_Top_Level flag is kept in sync (all
3909 foreign-language conventions require Favor_Top_Level = True).
3910 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
3912 (Collect_Interfaces_Info): Minor update to handle the two secondary
3913 dispatch tables. Update occurrence of Related_Interface to Related_Type.
3914 (Generate_Parent_Ref): Add parameter to specify entity to check
3915 (Is_Preelaborable_Expression): Allow the name of a discriminant to
3916 initialize a component of a type with preelaborable initialization.
3917 This includes the case of a discriminal used in such a context.
3918 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
3919 latest Ada 2005 rules about renaming and 'Access of
3920 discriminant-dependent components.
3921 (Check_Nested_Access): Add handling when there are no enclosing
3922 subprograms (e.g. case of a package body).
3923 (Find_Parameter_Type): Factor routine from several other compiler files.
3924 Remove routine from Find_Overridden_Synchronized_Primitive.
3926 2007-12-13 Thomas Quinot <quinot@adacore.com>
3928 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
3929 an invalid access to an uninitialized slot in the
3930 Source_File_Index_Table.
3932 2007-12-13 Thomas Quinot <quinot@adacore.com>
3934 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
3936 2007-12-13 Bob Duff <duff@adacore.com>
3938 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
3939 access-to-subprogram types in this package.
3941 2007-12-13 Olivier Hainque <hainque@adacore.com>
3943 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
3944 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
3945 Stack_Overlay_Address and document that we are using an internal
3947 (Byte_Size, Unsigned_32_Size): Remove, now useless.
3948 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
3949 consistently throughout the various implementation pieces.
3951 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
3952 overlay we are using to fill the stack area with patterns.
3953 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
3954 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
3955 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
3957 2007-12-13 Robert Dewar <dewar@adacore.com>
3959 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
3961 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3964 (Create_Task): Take into account tasks created by foreign threads.
3965 Code clean up: use constants instead of hard coded values.
3967 2007-12-13 Robert Dewar <dewar@adacore.com>
3969 * styleg.adb (Check_Comment): More liberal rules for comment placement
3971 2007-12-13 Olivier Hainque <hainque@adacore.com>
3973 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
3974 of Procedure Value instead of Frame Pointer as the invocation
3975 identifier associated with the instruction pointer in each traceback
3978 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
3979 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
3980 Pointer as the invocation identifier passed to tbk$symbolize.
3982 * s-traent-vms.ads, s-traent-vms.adb
3983 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
3984 Procedure Value instead of Frame Pointer as the invocation identifier
3985 passed to tbk$symbolize.
3987 2007-12-13 Robert Dewar <dewar@adacore.com>
3989 * tbuild.ads, tbuild.adb:
3990 Fix location of flag for unrecognized pragma message
3992 2007-12-13 Robert Dewar <dewar@adacore.com>
3994 * treepr.ads, treepr.adb: (pl): implement use of positive value
3997 2007-12-13 Robert Dewar <dewar@adacore.com>
3999 * xeinfo.adb: Remove warnings
4000 * xnmake.adb: Remove warnings
4001 * xsinfo.adb: Remove warnings
4002 * xtreeprs.adb: Remove warnings
4003 * xsnames.adb: Remove warnings
4005 * a-ngcoar.adb: Fix typo.
4006 * s-interr.adb: Minor reformatting
4007 * env.c: Minor reformatting.
4008 * g-bytswa.adb: Minor reformatting.
4009 * g-rannum.ads: Minor documentation improvements
4010 * s-tasinf-mingw.adb: Minor header fix
4011 * a-clrefi.adb: Minor reformatting
4012 * g-sttsne.ads: Minor documentation improvement
4013 * g-sttsne-locking.ads: Minor documentation improvement
4014 * g-soliop-solaris.ads: Minor documentation improvement
4015 * g-soliop-mingw.ads: Minor documentation improvement
4016 * g-soliop.ads: Minor documentation improvement
4017 * exp_aggr.ads: Minor reformatting
4018 * debug.adb: Add documentation for the gprbuild debug flags
4019 * exp_ch2.adb: Use Nkind_In to simplify code throughout
4020 * exp_pakd.adb: Minor reformatting
4022 * g-altive.ads, g-alleve.adb: Remove assertions.
4023 Add comment about minor differences between targets regarding
4024 floating-point operations.
4026 * g-thread.adb: Remove pragma unreferenced.
4027 * lib.ads: Minor reformatting
4028 * par-ch9.adb: Minor reformatting of error messages
4029 * sem_case.adb: Minor reformatting
4030 * s-fileio.adb: Minor reformattinng
4031 * s-vmexta.ads: Minor typo
4033 Take into account 'Success' value as per new GNAT warning.
4035 2007-12-13 Vincent Celier <celier@adacore.com>
4037 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
4040 2007-12-13 Robert Dewar <dewar@adacore.com>
4041 Bob Duff <duff@adacore.com>
4043 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
4044 Document that suffixes may be terminations of each others
4045 Add doc for -gnatw.a and -gnatw.A
4046 Document gnatbind -Wx switch
4047 Document BOM recognition
4048 Document pragma Implemented_By_Entry.
4051 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
4052 Add doc for pragma Unreferenced suppressing no entities referenced msg
4053 Add documentation of GNAT.Directory_Operations.Iteration
4054 Add documentation of GNAT.Random_Numbers
4055 Add documentation for pragma Shared.
4056 Correct documentation for Bit_Order
4057 Add documentation for the Pool_Address attribute.
4058 Fix and improve documentation of pragma machine_attribute.
4059 New pragma Fast_Math
4060 Document BOM recognition
4062 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
4063 Add /Wide_Character_Encoding for binder
4064 Add qualifier for the new gnatpp option --no-separate-loop-then
4066 2007-12-13 Matthew Heaney <heaney@adacore.com>
4068 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
4069 which generic formal operations are called for each operation.
4071 2007-12-13 Olivier Hainque <hainque@adacore.com>
4073 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
4074 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
4076 2007-12-13 Emmanuel Briot <briot@adacore.com>
4078 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
4079 Reference_Dir unless we actually need it.
4081 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
4082 Tristan Gingold <gingold@adacore.com>
4084 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
4087 a-calend-vms.adb: Remove pragma warning off and add pragma
4090 2007-12-13 Robert Dewar <dewar@adacore.com>
4092 * impunit.adb: Add entries for missing units
4094 * Makefile.rtl: Add new run-time units.
4096 * Make-lang.in: Update dependencies.
4098 2007-12-13 Bob Duff <duff@adacore.com>
4100 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
4101 types, set Can_Use_Internal_Rep appropriately, based on
4102 Always_Compatible_Rep_On_Target.
4104 2007-12-13 Gary Dismukes <dismukes@adacore.com>
4105 Arnaud Charlet <charlet@adacore.com>
4107 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
4108 it to the front end and setting the aamp_target environment variable
4109 to the switch's argument to ensure that gnaampbind and gnaamplink will
4110 take the specified library into account.
4111 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
4112 target, since the CIL compiler supports an "object" file (.il files).
4114 2007-12-13 Vincent Celier <celier@adacore.com>
4116 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
4117 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
4119 2007-12-13 Geert Bosch <bosch@adacore.com>
4121 * s-parame-vxworks.adb:
4122 Update comments to reflect usage of this package by Nucleus.
4124 2007-12-13 Arnaud Charlet <charlet@adacore.com>
4126 * i-vxwork.ads: Kill new warning on Convention C, since changing the
4127 spec would break code.
4129 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
4131 * system-vxworks-alpha.ads: Removed.
4133 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
4135 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
4137 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
4140 * sem_ch3.adb (Designates_T): New function.
4141 (Mentions_T): Factor reusable part of the logic into Designates_T.
4142 Consider non-access parameters and access and non-access result.
4143 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
4144 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
4146 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
4148 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
4151 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
4152 the new implementation of target-specific calls.
4154 2007-12-07 Olivier Hainque <hainque@adacore.com>
4156 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
4157 the designated full view, only follow a second level Full_View link
4158 for Non_Limited_Views of from_limited_with references.
4160 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
4163 * sem_ch6.adb (Process_Formals): Prevent an access type formal
4164 to be initialized with an access to constant object.
4166 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
4167 when an access to constant is used to initialize an access
4171 * a-direct.adb (Compose): Containing_Directory can be an empty string.
4173 2007-12-07 Olivier Hainque <hainque@adacore.com>
4176 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
4177 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
4178 this is from an alignment clause on the GNAT entity.
4179 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
4180 to distinguish the case where we set it from the type's alignment.
4181 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
4182 whether this alignment was set from an explicit alignment clause.
4184 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
4186 * decl.c (make_packable_type): Revert last change.
4187 (gnat_to_gnu_field): Avoid setting size and position multiple times.
4188 * utils.c (finish_record_type): Retrieve the real name of the type.
4190 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
4192 * trans.c (lvalue_required_p): Take base node directly instead
4193 of its parent. Rename second parameter to 'gnu_type'.
4194 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
4195 <N_Slice>: Likewise.
4196 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
4197 Adjust calls to lvalue_required_p.
4199 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
4202 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
4203 parameters of an entry call.
4205 2007-12-03 Robert Dewar <dewar@adacore.com>
4206 Samuel Tardieu <sam@rfc1149.net>
4209 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
4210 of variables declared in a library-level package.
4212 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
4214 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
4215 of Empty_String'Unchecked_Access.
4217 * Makefile.in: Add support for sh4-linux.
4219 * system-linux-sh4.ads: New file.
4221 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
4224 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
4225 and its argument must not be free()ed.
4227 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
4229 * decl.c (make_packable_type): Retrieve the real name of the type.
4230 (maybe_pad_type): Simplify similar code.
4232 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
4235 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
4236 than an identifier is used after "case" in a variant_part.
4239 * par-ch4.adb (Is_Parameterless_Attribute): New map.
4240 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
4241 attribute name or not depending on the new map.
4243 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
4244 returning a string or a type will not be called with improper
4247 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
4249 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
4252 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
4253 Signal an error when attribute argument is a fixed-point value of
4257 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
4258 a derived ordinary fixed point type.
4260 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
4261 RM_Size when a Small clause is found.
4263 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
4266 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
4267 Pass 'false' for the new allocate_struct_function parameter.
4268 * utils.c (build_function_stub): Likewise.
4270 2007-11-25 Richard Guenther <rguenther@suse.de>
4272 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
4273 (gnat_poplevel): Likewise.
4275 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
4277 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
4278 strict alignment, no alignment clause and a known static size, cap
4279 the type alignment to the greatest power of 2 factor of the size.
4280 (gnat_to_gnu_field): If the field has a component clause, is aliased
4281 or of a type with strict alignment, require that its size be equal to
4283 (validate_size): Use the type size as the minimum size for a type with
4286 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
4288 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
4289 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4290 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
4291 Use 'Access instead of 'Unchecked_Access in second and third
4292 arguments of pthread_sigmask.
4294 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
4296 * decl.c (ceil_alignment): New function.
4297 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
4298 (make_packable_type): Likewise.
4300 2007-11-22 Olivier Hainque <hainque@adacore.com>
4302 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
4303 to fit in 80 columns.
4305 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
4307 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
4308 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
4310 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
4313 * misc.c (gnat_adjust_rli): Delete.
4314 (gnat_init): Do not initialize the translation code here.
4315 Do not call set_lang_adjust_rli.
4316 * trans.c (init_code_table): Make static.
4317 (gnat_init_stmt_group): Delete.
4318 (gigi): Initialize the translation code entirely here.
4319 Emit debug info for the common types here instead of...
4320 * utils.c (gnat_init_decl_processing): ...here.
4321 * gigi.h (init_code_table): Delete.
4322 (gnat_init_stmt_group): Likewise.
4324 2007-11-16 Olivier Hainque <hainque@adacore.com>
4326 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
4327 retrieving an allocator return value from a super-aligned address from
4329 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
4330 expect a super-aligned address for a fat or thin pointer.
4332 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
4334 * trans.c (call_to_gnu): Always set the source location on the call
4335 expression. If the function returns-by-target, also set it on the
4338 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
4340 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
4341 sections of non-supported Interix target.
4343 * s-osinte-interix.ads: Removed.
4345 * i-cstrin.ads (chars_ptr): Make it a C convention type.
4347 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
4349 * a-tasatt.adb: Add a comment at the beginning of the package
4350 explaining why in general 'Unchecked_Access must be used instead
4353 * sem_prag.adb (Process_Convention): Move the test for the
4354 entity on which the Convention pragma applies down to also
4355 forbid pragma Convention on enumeration literals reached
4358 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
4360 * a-tasatt.adb: Revert previous change for this file as it will
4361 generate an error when this package is instantiated from a
4364 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
4366 * a-tasatt.adb: Type Wrapper should be declared in comment instead
4367 of already declared type Node_Access.
4368 Use 'Access instead of 'Unchecked_Access when applicable. Local
4369 lifetime is the one of the package.
4370 (Set_Value): W is allocated on the heap.
4372 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
4374 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
4376 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
4379 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
4381 (elaboration code): Timer_Queue lifetime is the one of the
4384 * tracebak.c (i386 alternative): Remove useless comparaison
4385 which is always false; LOWEST_ADDRESS is 0 and is never greater
4386 than an unsigned integer.
4388 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
4389 embedded check for "Ada_Version >= Ada_05".
4391 2007-11-07 Olivier Hainque <hainque@adacore.com>
4393 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
4394 craft and expand comment.
4396 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
4398 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
4400 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
4402 * misc.c (gnat_handle_option): Replace call to abort with
4403 call to gcc_unreachable.
4404 (gnat_init): Likewise.
4405 (gnat_expand_expr): Likewise.
4406 (fp_prec_to_size): Likewise.
4407 (fp_size_to_prec): Likewise.
4409 2007-10-23 Richard Guenther <rguenther@suse.de>
4412 * tracebak.c: #undef abort after including system.h.
4414 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
4416 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
4417 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
4419 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
4421 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
4423 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
4424 Set the protection status of the guard page based on the value of On.
4426 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
4428 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
4429 (Exit_Task): Pass False to Hide_Yellow_Zone.
4431 2007-10-15 Robert Dewar <dewar@adacore.com>
4433 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4434 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
4435 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
4436 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
4437 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
4438 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
4439 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
4440 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
4441 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
4442 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
4443 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
4444 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
4445 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
4446 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
4447 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
4448 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
4450 Add Unreferenced and Warnings (Off) pragmas for cases of
4451 variables modified calls where they are IN OUT or OUT parameters and
4452 the resulting values are not subsequently referenced. In a few cases,
4453 we also remove redundant code found by the new warnings.
4455 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
4456 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
4457 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
4458 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
4459 warning controlled by -gnatw.o that warns on cases of out parameter
4460 values being ignored.
4462 2007-10-15 Geert Bosch <bosch@adacore.com>
4464 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
4466 * expect.c: Initial port to arm-mentor-nucleus.
4467 Use kill for __gnat_kill() on VMS.
4469 2007-10-15 Emmanuel Briot <briot@adacore.com>
4471 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
4473 (Xref_Record): Change type for Line, since in the case of a reference to
4474 a predefined entity (as happens for array index types), the line is set
4476 Add support for parsing multiple array index types info, or
4477 multiple inherited interfaces info. This information cannot be stored
4478 in Xref_Entity_Record, which only supports a single instance of Tref_*,
4479 and is therefore stored in the list of references instead. It has a
4480 special treatement later on in tools that use this information.
4482 2007-10-15 Tristan Gingold <gingold@adacore.com>
4484 * debug.adb: Document use of -gnatd.a and -gnatd.I
4486 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
4488 2007-10-15 Javier Miranda <miranda@adacore.com>
4490 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
4491 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
4492 care of access to class-wide interface types plus removal of bizarre
4493 conversion of tagged object to access type (reported by Gary
4494 Dismukes). After this patch there is no need to perform any
4495 additional management on these nodes in Expand_Interface_Actuals.
4497 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
4498 that handles use of 'Access and 'Unchecked_Access applied to
4499 actuals covering interface types. Such code is now
4500 centralized in Expand_N_Attribute_Reference.
4502 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4504 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
4505 of tagged types whose ultimate ancestor is a CPP type.
4506 (Freeze_Array_Type): For a packed array type, generate an initialization
4507 procedure if the type is public, to handle properly a client that
4508 specifies Normalize_Scalars.
4510 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4512 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
4513 inside a generic body, retrieve the full view of the entry family
4514 discrete subtype if available.
4516 2007-10-15 Thomas Quinot <quinot@adacore.com>
4518 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
4519 attempt to generate stubs for hidden primitive operations.
4521 2007-10-15 Vincent Celier <celier@adacore.com>
4523 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
4524 returning None, used when there is no platform specific body for
4527 2007-10-15 Bob Duff <duff@adacore.com>
4529 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
4530 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
4531 the generic Heap_Sort_G, in order to avoid trampolines.
4533 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
4534 Jose Ruiz <ruiz@adacore.com>
4536 * vx_stack_info.c: New file.
4538 * i-forbla-unimplemented.ads: New file.
4540 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
4541 for unsupported configurations; use it on VMS targets instead of the
4543 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
4544 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
4545 used by VxWorks targets to have access to task-specific data and be
4546 able to extract the stack boundaries for stack checking.
4547 Use system-vms-ia64.ads on ivms.
4549 * Make-lang.in: Update dependencies.
4551 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
4554 2007-10-15 Vincent Celier <celier@adacore.com>
4556 * snames.adb, snames.ads: Add new standard name runtime_library_dir
4558 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
4560 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
4562 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
4563 the source is unknown.
4565 * prj-ext.adb: Spelling error fix
4567 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
4568 95 reserved word in its name.
4569 (Process_Project_Level_Array_Attributes): Process new attribute
4570 Runtime_Library_Dir.
4572 * prj-part.adb (Parse_Single_Project): Do not check the name of the
4573 config project against the user project names.
4575 * prj-proc.adb (Expression): In multi-language mode, indexes that do
4576 not include a dot are always case insensitive.
4577 (Process_Declarative_Items): Ditto
4578 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
4581 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
4582 True, compare both indexes in lower case.
4584 2007-10-15 Robert Dewar <dewar@adacore.com>
4586 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
4588 2007-10-15 Gary Dismukes <dismukes@adacore.com>
4590 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
4591 association for an access component, add an association with null as
4592 the expression. Remove testing for array subtypes and the setting in
4593 that case of Ctyp to the array component type, which prevented proper
4594 inclusion of an association for null-initialized arrays. Collapse
4595 condition that tests for array subtypes into just a test of
4596 Is_Partially_Initialized_Type (which already covers arrays anyway).
4598 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4600 * sem_ch12.adb: Minor code reformatting.
4601 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
4602 find the parent package which may have been hidden by local
4605 2007-10-15 Gary Dismukes <dismukes@adacore.com>
4607 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
4608 flag of derived concurrent types, taking into account the flag setting
4609 on the parent subtype and any new set of discriminants.
4611 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4613 * sem_ch4.adb: Minor code and comment reformatting.
4614 (Analyze_Allocator): When the designated type of an unconstrained
4615 allocator is a record with unknown discriminants or an array with
4616 unknown range bounds, emit a detailed error message depending on the
4617 compilation mode and whether the designated type is limited.
4619 2007-10-15 Tristan Gingold <gingold@adacore.com>
4621 * system-vms-ia64.ads: New file.
4623 * system-vms_64.ads: Minor comment fix.
4625 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4627 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
4628 body generated for a function with a controlling result that is a null
4629 extension, discard the generated body in favor of the current explicit
4632 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4634 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
4635 examining its original form, to handle properly operator calls that
4636 have been rewritten.
4638 2007-10-15 Olivier Hainque <hainque@adacore.com>
4640 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
4641 instead of a procedure value in each traceback entry.
4643 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
4644 instead of procedure value to TBK$SYMBOLIZE.
4646 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
4648 (TB_Entry_For): Account for the PV/FP renaming.
4650 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
4652 (Null_TB_Entry): Account for change of component name.
4653 (PV_For): Rename as FP_For.
4655 2007-10-15 Tristan Gingold <gingold@adacore.com>
4657 * trans.c (gnat_to_gnu): Remove the padding structure more often.
4658 This optimize assignment to over-aligned record.
4660 2007-10-15 Emmanuel Briot <briot@adacore.com>
4662 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
4665 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
4666 type, for dispatching calls.
4668 2007-10-15 Vincent Celier <celier@adacore.com>
4669 Robert Dewar <dewar@adacore.com>
4671 * gnat_ugn.texi: Add documentation for switches --version and --help
4672 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
4673 gnatxref, gnatfind, gnatls, and gnatclean.
4675 Mention attribute Excluded_Source_Dirs
4676 Replace obsolescent attribute Locally_Removed_Files with attribute
4677 Excluded_Source_Files.
4678 Improve documentation of -u (gnatbind)
4679 Document how to do reliable stack checking for the environmental task
4682 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
4683 Document attribute Excluded_Source_Files and indicate that attribute
4684 Locally_Removed_Files is obsolescent.
4686 2007-10-15 Thomas Quinot <quinot@adacore.com>
4688 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
4691 Update documentation to note that OpenVMS 8.3 or later must be used
4692 to generate g-soccon-vms.ads.
4694 * atree.adb: Add ??? comment
4696 * exp_util.adb: Minor reformatting.
4697 Add ??? comment in Kill_Dead_Code.
4699 2007-10-15 Robert Dewar <dewar@adacore.com>
4701 * errout.ads: Comment clarification
4703 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
4704 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
4706 * lib.ads: Comment update
4708 * init.c: Minor reformatting.
4710 * sem_attr.adb: Minor formatting
4712 * osint-b.ads: Minor reformatting
4714 * sem_ch9.adb: Implement -gnatd.I switch
4716 * g-comlin.adb: (Start): Fix handling of empty command line.
4718 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
4719 even when -rules follows the -cargs section.
4721 2007-10-08 Ollie Wild <aaw@google.com>
4723 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
4725 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
4727 (gnat_eh_runtime_type): Removed.
4728 (gnat_return_tree): New function.
4730 2007-10-08 Ben Elliston <bje@au.ibm.com>
4734 2007-08-31 Ben Elliston <bje@au.ibm.com>
4736 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
4737 when compiling for powerpc64-*-linux.
4738 * system-linux-ppc64.ads: New file.
4740 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
4742 Mapped location support
4743 * back_end.adb (Call_Back_End): Pass information about source
4744 files instead of units to gigi.
4745 * gigi.h (struct File_Info_Type): New.
4746 (gigi): Rename and change type of number_units parameter, change
4747 type of file_info_ptr parameter.
4748 * trans.c (number_files): New global variable.
4749 (gigi): Rename and change type of number_units parameter, change
4750 type of file_info_ptr parameter.
4751 If mapped location support is enabled, create the isomorphic mapping
4752 between source files and line maps.
4753 (Sloc_to_locus): If mapped location support is enabled, translate
4754 source location into mapped location.
4755 (annotate_with_node): Rename into set_expr_location_from_node.
4756 Call set_expr_location instead of annotate_with_locus.
4757 (Pragma_to_gnu): Adjust for above change.
4758 (Loop_Statement_to_gnu): Likewise.
4759 (call_to_gnu): Likewise.
4760 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4761 (gnat_to_gnu): Likewise.
4762 (add_stmt_with_node): Likewise.
4763 (add_cleanup): Likewise.
4764 * utils.c (gnat_init_decl_processing): Do not set input_line.
4766 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4768 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
4769 (Applicable_Use): Emit a warning when a package tries to use itself.
4770 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
4771 is already in use or the package where it is declared is in use or is
4772 declared in the current package.
4773 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
4775 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
4776 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
4777 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
4779 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4781 * a-calend-vms.adb, a-calend.adb:
4782 Add a section on leap seconds control along with two entities used to
4783 enable and disable leap seconds support. The array Leap_Second_Times is
4784 now constant and contains hard time values pre-generated. Remove
4785 all elaboration code used to populate the table of leap seconds.
4788 Add entity Leap_Seconds_Support to the list of global run-time variables
4789 along with a comment on its usage and values.
4790 (Gen_Adainit_Ada): Add code to generate the declaration and import of
4791 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
4792 or one (enabled) depending on the presence of binder switch "-y".
4793 (Gen_Adainit_C): Add code to generate the declaration of external int
4794 __gl_leap_seconds_support. Set is value to zero (disabled) or one
4795 (enabled) depending on the presence of binder switch "-y".
4797 * init.c: Add __gl_leap_seconds_support to the list of global values
4798 computed by the binder.
4800 2007-09-26 Jerome Guitton <guitton@adacore.com>
4802 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4803 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
4804 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4805 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
4807 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
4809 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
4810 function which can be called by the debugger to interrupt the tasks of
4811 an Ada application asynchronously, as needed on VxWorks.
4812 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
4814 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
4815 renamed from Stop_All_Tasks. Update comments.
4816 (Stop_All_tasks): New function declaration.
4818 2007-09-26 Olivier Hainque <hainque@adacore.com>
4820 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
4821 #include <utime.h> and #define GCC_RESOURCE_H before
4822 #include <sys/wait.h>.
4823 Add more protections in __gnat_translate_vms.
4825 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
4826 #include <sys/wait.h>.
4828 2007-09-26 Thomas Quinot <quinot@adacore.com>
4829 Sergey Rybin <rybin@adacore.com>
4831 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
4833 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4836 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4838 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4841 * sem_dist.ads: Minor comment fix
4843 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4845 2007-09-26 Javier Miranda <miranda@adacore.com>
4846 Eric Botcazou <ebotcazou@adacore.com>
4849 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
4850 indirection added to the HT_Link component of the TSD. This is required
4851 to statically allocate the TSD.
4854 Minor reordering of the declarations in the private part. Required to
4855 add a level of indirection to the contents of the TSD component HT_Link.
4856 This is required to statically allocate the TSD.
4858 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
4859 Is_Statically_Allocated set from constant objects.
4860 Do not make exported constants created by the compiler volatile.
4861 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
4864 * trans.c (Identifier_to_gnu): For constants, unshare initializers
4865 before returning them.
4867 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
4868 public part of the package.
4869 (Make_DT): Move HT_Link component out of the TSD record. For this
4870 purpose Make_DT now declares a separate object that stores the
4871 HT_Link value, and initializes the TSD component with the address
4872 of this new object. The addition of this level of indirection is
4873 required to statically allocate the TSD because the TSD cannot
4874 have variable components.
4875 (Expand_Interface_Conversion): Improve the expanded code.
4876 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
4878 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
4879 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
4880 if we are building static dispatch tables then we must not generate
4881 extra code to register the primitive because the dispatch table will
4882 be built at the end of the library package; otherwise we notify that
4883 we cannot build the static dispatch table.
4885 2007-09-26 Robert Dewar <dewar@adacore.com>
4887 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
4890 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
4891 (Analyze_Record_Representation_Clause): Suppress junk warning for
4892 missing component clause.
4893 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
4894 tests for controlled type overlay to composites with controlled
4896 (Analyze_Record_Representation_Clause): Add reference for component name
4898 2007-09-26 Javier Miranda <miranda@adacore.com>
4899 Gary Dismukes <dismukes@adacore.com>
4901 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
4902 for thunks associated with interface types.
4904 * einfo.ads: Improve documentatation of Is_Internal
4905 (Is_Thunk): New attribute applicable to subprograms. True for thunks
4906 associated with interface types.
4907 Extensive comment fixes regarding flags that appear in all entities. The
4908 documentation is now consistent for all such flags (there were a number
4909 of errors in the documentation in this regard).
4911 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
4913 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
4914 of these procedures are passed a function call that already has
4915 build-in-place actuals (testing new flag
4916 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
4917 the case where processing continues.
4918 (Expand_Call): If the call is generated from a thunk body then we
4919 propagate the extra actuals associated with the accessibility
4920 level of the access type actuals.
4922 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
4923 of each extra formal of a protected operation to reference the
4924 corresponding extra formal of the subprogram denoted by the
4925 operation's Protected_Body_Subprogram.
4927 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
4928 N_Function_Call nodes.
4930 2007-09-26 Robert Dewar <dewar@adacore.com>
4932 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
4934 * debug.adb: Add d.s flag.
4936 2007-09-26 Gary Dismukes <dismukes@adacore.com>
4938 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
4939 debug variable so that it won't be initialized when pragma
4940 Initialize_Scalars is in effect.
4942 2007-09-26 Gary Dismukes <dismukes@adacore.com>
4944 * freeze.adb (Freeze_Entity): Remove check for preelaborable
4945 initialization of a full view. This is moved to
4946 Analyze_Package_Specification.
4948 * sem_ch7.adb (Analyze_Package_Specification): Add check for
4949 preelaborable initialization of a full view in entity loop.
4950 (Uninstall_Declarations): If entity is a use-visible compilation unit,
4951 its child units are use-visible only if they are visible child units.
4953 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
4954 whether an expression can be used within a type declaration that
4955 requires preelaborable init.
4956 (Check_Components): Replace inline code that does partial checking for
4957 preelaborable default expressions with call to
4958 Is_Preelaborable_Expression.
4959 (Has_Preelaborable_Initialization): In the case of a generic actual
4960 subtype, (that is, Is_Generic_Actual is True), return the result of
4961 applying Has_Preelaborable_Initialization to the generic actual's base
4964 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4966 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
4967 call to Jan_1_Day _Of_Week to optimize its performance.
4968 (Is_Leap): Move the routine to the scope of Week_In_Year.
4969 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
4970 weekday on which January 1 falls of Year - 1 and Year + 1. This function
4971 avoids calling Time_Of and Split, thus making it more efficent.
4972 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
4974 * g-calend.ads (Week_In_Year): Change comment to reflect new
4977 2007-09-26 Emmanuel Briot <briot@adacore.com>
4979 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
4980 Command_Line): New types
4981 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
4982 support for defining how switches can be grouped on a command line (as
4983 is the case for -gnatw... for GNAT), and how simple switches can be
4984 used as aliases for more complex switches (-gnatwa is same as
4986 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
4987 (Start, Current_*): New subprograms
4988 Added support for parsing an array of strings in addition to the real
4990 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
4991 be moved from the body to the private part of the spec.
4992 (*): All subprograms now have an extra parameter with default value to
4993 specify which parser should be used. For backward compatibility, it
4994 defaults to parsing the command line of the application. They were also
4995 modified to properly handle cases where each of the argument does not
4996 start at index 1 (which is always true for Ada.Command_Line, but not
4997 when processing any Argument_List).
4998 (Free): New subprogram
4999 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
5000 Argument): New subprograms
5001 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
5002 special characters like ':', '=',... are now handled in a single place,
5003 which makes the code more extensible eventually.
5004 (Getopt, Full_Switch): When the switch was returned as part of the
5005 special character '*', make sure it is prepended by the switch character
5006 ('-' in general), so that the application knows whether "foo" or "-foo"
5007 was specified on the command line.
5009 2007-09-26 Florian Villoing <villoing@adacore.com>
5011 * g-dirope.adb (Remove_Dir): In case we are removing directories
5012 recursively, make sure that if an exception is raised during the
5013 processing, the current working directory is reset to its initial
5014 value before propagating the exception.
5016 2007-09-26 Vincent Celier <celier@adacore.com>
5018 * gnatbind.adb: If there are several ALI files specified and there is
5019 a main program to bind, the first ALI is expected to contain the main
5020 subprogram and the names of the binder generated files will be derived
5021 from the first ALI file name.
5022 (Gnatbind): Fix insertion character in invocation of Error_Msg
5024 2007-09-26 Vincent Celier <celier@adacore.com>
5026 * gnatcmd.adb (Check_Files): Do not include sources that have been
5027 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
5029 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5031 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
5032 information about each of its index types, following the type
5033 reference for its component type.
5035 2007-09-26 Vincent Celier <celier@adacore.com>
5037 * make.adb: (Kill): New procedure (__gnat_kill imported)
5038 (Running_Compile, Outstanding_Compiles): Global variables that
5039 were previously local to procedure Compile_Sources.
5040 (Sigint_Intercepted): Send signal SIGINT to all outstanding
5041 compilation processes.
5043 (Gnatmake): If project files are used, create the mapping of all the
5044 sources, so that the correct paths will be found.
5046 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
5048 2007-09-26 Vincent Celier <celier@adacore.com>
5050 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
5052 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
5053 Replace components Compiler_Min_Options and Binder_Min_Options with
5054 Compiler_Required_Switches and Binder_Required_Switches in record
5056 Remove components Default_Language and Config in Project_Tree_Data,
5059 * prj-attr.adb: New attributes Required_Switches (<language>) in
5060 packages Compiler and Binder.
5062 * prj-nmsc.adb: Major rewrite of the processing of configuration
5063 attributes for gprbuild. No impact on GNAT tools.
5065 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
5066 process configuration attributes: this is done in Prj.Nmsc.Check.
5067 (Recursive_Process): Make a full copy of packages inherited from project
5068 being extended, instead of a shallow copy.
5069 (Process_Project_Tree_Phase_1): New procedure
5070 (Process_Project_Tree_Phase_1): New procedure
5071 (Process): Implementation now uses the two new procedures
5073 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
5074 from the project config, not the tree config that no longer exists.
5076 2007-09-26 Vincent Celier <celier@adacore.com>
5078 * Make-lang.in: Update dependencies..
5080 2007-09-26 Vincent Celier <celier@adacore.com>
5082 * osint.adb, osint.ads: Minor reformatting
5084 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
5086 2007-09-26 Gary Dismukes <dismukes@adacore.com>
5088 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
5089 message to cite use of <> in aggregate component associations rather
5090 than wrongly indicating use of limited aggregates.
5092 2007-09-26 Robert Dewar <dewar@adacore.com>
5094 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
5097 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5099 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
5100 ancestor of the derived type, the operations are inherited from the
5101 primary dispatch table of the parent.
5102 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
5103 when the context is an explicit type conversion.
5105 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5107 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
5108 rule for qualified expressions properly, to detect improper conversions
5109 and resolve some cases of overloading.
5111 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5113 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
5114 proper kind of reference to the primitive operation, for better source
5116 (Valid_Conversion): A tagged conversion is legal if both operands are
5119 2007-09-26 Robert Dewar <dewar@adacore.com>
5121 * sem_warn.adb (Check_References): Catch more cases of unreferenced
5124 2007-09-26 Vincent Celier <celier@adacore.com>
5126 * snames.adb, snames.ads: Change Include_Option to Include_Switches
5128 2007-09-26 Robert Dewar <dewar@adacore.com>
5130 * s-wchstw.adb: provide messages for run time unit exceptions
5132 * a-witeio.adb: Minor reformatting
5134 * exp_ch13.adb: Minor reformatting
5136 2007-09-26 Sergey Rybin <rybin@adacore.com>
5138 * vms_data.ads: Revise gnatmetric qualifiers.
5139 Add qualified for the new gnatbind option '-y'
5141 * gnat_ugn.texi: Revise the gnatmetric section.
5142 Add entry for new gnatbind option '-y'.
5144 * gnat_rm.texi: Minor spelling correction.
5145 Document restriction on overlaying controlled types
5147 2007-09-26 Vincent Celier <celier@adacore.com>
5149 * makegpr.adb (Link_Executables): Do not fail when the root project has
5150 no sources, but is an extending project.
5152 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
5154 * trans.c: Fix misplaced #define.
5156 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
5158 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
5159 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
5161 2007-09-21 Olivier Hainque <hainque@adacore.com>
5163 * utils.c (type_for_nonaliased_component_p): Return false for
5164 all AGGREGATE_TYPEs.
5166 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
5168 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
5169 object covered by 13.3(19) volatile.
5171 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
5175 * utils.c (unchecked_convert): Use a subtype as the intermediate type
5176 in the special VIEW_CONVERT_EXPR case.
5178 2007-09-12 Robert Dewar <dewar@adacore.com>
5180 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
5182 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
5183 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
5184 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
5185 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
5186 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
5187 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
5188 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
5189 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
5190 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
5191 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
5192 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
5193 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
5194 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
5195 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
5196 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
5197 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
5198 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
5199 pragma Compiler_Unit and adds it to relevant library units.
5201 2007-09-12 Ed Schonberg <schonberg@adacore.com>
5203 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
5204 a box need not correspond to any component.
5206 2007-09-12 Robert Dewar <dewar@adacore.com>
5208 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
5209 the tasking version of the Ada run time when foreign threads are
5210 present and there are no explicit Ada tasks or tasking constructs.
5212 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
5214 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
5216 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
5217 the usage of switch -y.
5219 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
5220 when switch -y is present.
5222 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
5223 leap seconds in Ada.Calendar and its children.
5225 2007-09-12 Jose Ruiz <ruiz@adacore.com>
5227 * a-extiti.ads (Timer): The discriminant is a "not null access
5228 constant" in the Reference Manual.
5229 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
5231 2007-09-12 Robert Dewar <dewar@adacore.com>
5233 * a-swuwha.adb: Remove junk RM header
5235 2007-09-12 Vincent Celier <celier@adacore.com>
5237 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
5240 * g-bytswa.ads: Minor reformatting
5242 2007-09-12 Thomas Quinot <quinot@adacore.com>
5244 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
5245 Add new constant Thread_Blocking_IO, always True by default, set False
5246 on a per-runtime basis.
5247 (Need_Netdb_Buffer): New constant.
5249 2007-09-12 Arnaud Charlet <charlet@adacore.com>
5251 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
5252 Added renames for corresponding functions in System.Partition_Interface.
5254 2007-09-12 Doug Rupp <rupp@adacore.com>
5256 * Makefile.in: Remove VMS specific System.CRTL packages which are no
5259 * s-crtl-vms64.ads: Removed.
5261 2007-09-12 Olivier Hainque <hainque@adacore.com>
5263 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
5264 with discriminant constraints, generalize the code for BIT_FIELDs
5265 to PACKED fields of constant size and propagate DECL_PACKED.
5267 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
5269 * decl.c (array_type_has_nonaliased_component): New predicate.
5270 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
5271 set the TYPE_NONALIASED_COMPONENT flag on the type.
5272 <E_Array_Subtype>: Likewise.
5273 * gigi.h (type_for_nonaliased_component_p): Declare.
5274 * utils.c (type_for_nonaliased_component_p): New predicate.
5275 (create_field_decl): Invoke the above predicate to set the
5276 DECL_NONADDRESSABLE_P flag on the field.
5278 2007-09-11 Javier Miranda <miranda@adacore.com>
5280 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
5281 in library level record type entities if we are generating statically
5282 allocated dispatch tables.
5284 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
5285 importing/exporting the _tag declaration by new code
5286 importing/exporting the dispatch table wrapper. This change allows us
5287 to statically allocate of the TSD.
5288 (Make_DT.Export_DT): New procedure.
5289 (Build_Static_DT): New function.
5290 (Has_DT): New function.
5292 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
5293 True_Constant and Current_Value. Required to statically
5294 allocate the dispatch tables.
5295 (Check_Allocator): Make function iterative instead of recursive.
5296 Also return inner allocator node, when present, so that we do not have
5297 to look for that node again in the caller.
5299 2007-09-11 Jan Hubicka <jh@suse.cz>
5301 * misc.c (gnat_expand_body): Kill.
5302 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
5304 2007-09-10 Robert Dewar <dewar@adacore.com>
5306 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
5307 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5308 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5309 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
5310 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
5311 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
5312 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
5313 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
5314 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
5315 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
5316 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
5317 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
5318 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
5319 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
5320 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
5321 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
5322 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
5323 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
5324 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
5325 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
5326 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
5327 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
5328 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
5329 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
5330 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
5331 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
5332 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
5333 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
5334 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
5335 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
5336 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
5337 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
5338 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
5339 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
5340 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
5341 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
5342 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
5343 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
5344 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
5345 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
5346 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
5347 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
5348 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
5349 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
5350 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
5351 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
5352 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
5353 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
5354 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
5355 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
5356 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
5357 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
5358 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
5359 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
5360 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
5361 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
5362 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
5363 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
5364 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5365 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
5366 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
5367 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
5368 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
5369 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
5370 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
5371 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
5372 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
5373 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
5374 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
5375 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
5376 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
5377 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
5378 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
5379 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
5380 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
5381 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
5382 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
5383 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
5384 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
5385 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
5386 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
5387 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
5388 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
5390 2007-09-10 Emmanuel Briot <briot@adacore.com>
5392 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
5395 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
5397 * adaint.c (__gnat_translate_vms): new function.
5399 2007-09-10 Gary Dismukes <dismukes@adacore.com>
5400 Thomas Quinot <quinot@adacore.com>
5402 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
5403 create an abstract subprogram in the case of 'Input. For 'Output we now
5404 create a real spec/body when the type is abstract, since it can
5405 potentially be called.
5406 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
5407 body for 'Output when the type is abstract (only the creation of the
5408 body for 'Input is excluded when the type is abstract).
5409 (Stream_Operation_OK): Add an additional condition in the return
5410 statement, so that False will be returned for TTS_Stream_Input if the
5411 associated tagged type is an abstract extension. Add comments for
5413 (Expand_N_Object_Declaration): For the case of a shared passive
5414 variable, insert init proc call only after the shared variable
5415 procedures have been processed, because the IP call needs to undergo
5416 shared passive variable reference expansion, which requires these
5417 procedures to be available (and elaborated).
5419 2007-09-10 Vincent Celier <celier@adacore.com>
5421 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
5422 parameter Runtime_Project.
5424 2007-09-10 Ed Schonberg <schonberg@adacore.com>
5426 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
5427 given a box association, the type of the component is discriminated,
5428 and the value of the discriminant is the discriminant of the enclosing
5429 type, retrieve its value from the aggregate itself, where it must have
5432 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
5433 to remove other spurious ambiguities on arithmetic operations involving
5434 literals and addresses, on systems where Address is a visible integer
5435 type, when the operator is called in functional notation.
5436 (Try_Primitive_Operation): Within an instance, a call in prefixed form
5437 is legal when the types match, even if the operation is currently
5440 2007-09-10 Ed Schonberg <schonberg@adacore.com>
5442 * sem_ch12.adb (Build_Local_Package): A formal package with no
5443 associations is legal if all formals have defaults. It is not
5444 equivalent to a formal declared with a box.
5446 2007-09-10 Sergey Rybin <rybin@adacore.com>
5448 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
5450 2007-09-10 Sergey Rybin <rybin@adacore.com>
5452 * gnat_ugn.texi: Add description of the new '-lratio' option
5453 Update 7.3.1 section about availability of the feature.
5455 2007-09-10 Thomas Quinot <quinot@adacore.com>
5457 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
5460 2007-09-10 Olivier Hainque <hainque@adacore.com>
5462 * Makefile.in: (mips-irix section): Activate build of libgmem.
5464 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
5466 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
5469 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
5471 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
5472 a debug renaming declaration specially.
5474 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
5476 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
5477 which a constant renaming is treated as a normal object declaration.
5478 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
5479 the N_Indexed_Component case.
5480 <N_Indexed_Component>: Fall through to above case.
5481 <N_Object_Renaming_Declaration>: Return true for all composite types.
5483 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
5485 * decl.c (make_packable_type): If the new type has been given BLKmode,
5486 try again to get an integral mode for it.
5488 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
5490 Re-apply accidentally reverted change:
5492 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
5494 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
5495 get_action_description_for): Replace _Unwind_Word with _uleb128_t
5496 and _Unwind_SWord with _sleb128_t.
5498 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
5500 * trans.c (convert_with_check): Update call to real_2expN.
5502 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5504 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
5505 * utils.c (end_subprog_body): Likewise.
5507 2007-09-03 Nick Clifton <nickc@redhat.com>
5509 * Make-lang.in: Change copyright header to refer to version 3 of
5510 the GNU General Public License and to point readers at the
5511 COPYING3 file and the FSF's license web page.
5512 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
5513 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
5514 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
5515 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
5518 2007-08-31 Vincent Celier <celier@adacore.com>
5522 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
5523 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
5524 (Check_Version_And_Help): New procedure in package Switch to process
5525 switches --version and --help.
5526 Use Check_Version_And_Help in GNAT tools
5529 (Compile_Sources): Make sure that sources that are "excluded" are not
5531 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
5532 project file is used.
5533 (Version_Switch): Remove, moved to Switch
5534 (Help_Switch): Remove, moved to Switch
5535 (Display_Version): Remove, moved to Switch
5537 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
5538 package Switch to process switches --version and --help.
5539 (Display_Version): New procedure
5541 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
5543 2007-08-31 Javier Miranda <miranda@adacore.com>
5545 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
5548 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5550 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
5551 (Mark_Non_Null): If the node for which we just generated an access check
5552 is a reference to an *in* parameter and the reference appears in the
5553 declarative part of a subprogram body, mark the node as known non null.
5555 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5557 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
5558 structure of E_Exception to reflect the new flag.
5559 (Is_Raised, Set_Is_Raised): New inlined routines.
5560 Update the usage of available flag to reflect the addition of Is_Raised.
5561 (Is_Raised, Set_Is_Raised): Bodies of new routines.
5562 (Write_Entity_Flags): Write the status of flag Is_Raised.
5563 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
5564 spurious ambiguities when integer literals appear in the context of an
5565 address type that is a visible integer type.
5567 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
5568 exceptions never being raised.
5569 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
5572 2007-08-31 Javier Miranda <miranda@adacore.com>
5574 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
5575 statement when compiling under restriction No_Exceptions_Proparation.
5577 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5579 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
5580 initialization aggregate for the type, generate itype references for
5581 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
5583 2007-08-31 Gary Dismukes <dismukes@adacore.com>
5585 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
5586 library-level package renaming, pass the declaration associated with
5587 the renaming's special debug variable to Qualify_Entity_Names to ensure
5588 that its encoded name is properly qualified.
5590 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
5591 occurring in the list of entities to qualify, and do not attempt to
5592 traverse an entity list in that case. Variables associated with
5593 ` library-level package renamings can now occur in the table.
5595 * exp_dbug.ads: Revise documentation of the encoding for renaming
5598 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5600 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
5601 access type points to an unconstrained array.
5603 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5605 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
5608 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
5609 simple redundant qualifications. The check is performed whenever the
5610 expression is a non-overloaded identifier.
5611 (Resolve_Type_Conversion): Enchance the redundant type conversion check
5612 to include loop parameters.
5613 (Valid_Conversion): Avoid generation of spurious error message.
5615 2007-08-31 Bob Duff <duff@adacore.com>
5617 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
5618 concatenations of string literals into a single literal, in order to
5619 avoid very deep recursion in the front end, which was causing stack
5622 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
5623 string, and the right operand is a string literal (the case of "" &
5624 "..."), optimize by avoiding copying the right operand -- just use the
5625 value of the right operand directly.
5627 * stringt.adb (Store_String_Chars): Optimize by growing the
5628 String_Chars table all at once, rather than appending characters one by
5630 (Write_String_Table_Entry): If the string to be printed is very long,
5631 just print the first few characters, followed by the length. Otherwise,
5632 doing "pn(n)" in the debugger can take an extremely long time.
5634 * sem_prag.adb (Process_Interface_Name): Replace loop doing
5635 Store_String_Char with Store_String_Chars.
5637 2007-08-31 Vincent Celier <celier@adacore.com>
5639 * prj-attr.adb: Add new attribute Excluded_Source_Files
5641 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
5642 Locally_Removed_Files.
5644 * snames.ads, snames.adb: New standard name Excluded_Source_Files
5646 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5648 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
5649 clauses of subunits, ignore limited_with_clauses that are illegal and
5650 have not been fully analyzed.
5652 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5654 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
5655 flag, for effiency. It is called when analyzing arithmetic operators
5656 and also for actuals in calls that are universal_integers. The flag is
5657 set for the predefined type address, and for any type or subtype
5660 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
5661 Universal_Integer, when the formal is a descendent of address and the
5662 call appears in user code.
5663 (Analyze_Selected_Component): if the prefix is a private extension, the
5664 tag component is visible.
5666 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
5669 2007-08-31 Robert Dewar <dewar@adacore.com>
5671 * s-fileio.adb (Open): Normalize file name to lower case in non-case
5672 sensitive file name systems to avoid unexpected mismatch in Vista.
5674 2007-08-31 Vincent Celier <celier@adacore.com>
5676 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
5678 2007-08-31 Vincent Celier <celier@adacore.com>
5680 * symbols-vms.adb (Initialize): Read symbol files with continuation
5682 (Finalize): If symbol is long, split the line
5684 2007-08-31 Vincent Celier <celier@adacore.com>
5686 * fmap.ads: Minor comment updates
5688 2007-08-31 GNAT Script <nobody@adacore.com>
5690 * Make-lang.in: Makefile automatically updated
5692 2007-08-31 Bob Duff <duff@adacore.com>
5694 * sinfo.ads: Minor comment fix.
5696 2007-08-31 Thomas Quinot <quinot@adacore.com>
5698 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
5699 with implementation.
5700 Documentation cleanup only.
5702 2007-08-31 Sergey Rybin <rybin@adacore.com>
5704 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
5705 gnatpp '--separate-stmt-name' option.
5706 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
5709 * gnat_ugn.texi: Add description for the new gnatpp
5710 '--separate-stmt-name' and '--use-on-new-line' options.
5712 2007-08-31 Ben Elliston <bje@au.ibm.com>
5714 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
5715 when compiling for powerpc64-*-linux.
5716 * system-linux-ppc64.ads: New file.
5718 2007-08-22 Krister Walfridsson <cato@df.lth.se>
5720 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
5723 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5725 * misc.c (gnat_type_max_size): Constify.
5727 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5729 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
5730 associated with Standard_Debug_Renaming_Type, to be used as the type of
5731 the special variables whose names provide debugger encodings for
5732 renaming declarations.
5734 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
5735 (Set_Debug_Renaming_Link): Change to set Node25.
5736 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
5737 (Write_Field25_Name): Add case for E_Variable to output
5738 "Debug_Renaming_Link".
5739 (Write_Field23_Name): Correct the output string for "Limited_View".
5741 * exp_dbug.adb: Add with and use of Tbuild.
5742 (Debug_Renaming_Declaration): Replace creation of an enumeration type
5743 and literal with creation of a variable of type
5744 Standard_Debug_Renaming_Type whose name encodes both the renamed object
5745 and the entity of the renaming declaration.
5746 (Qualify_Entity_Name): Add the delayed qualification of the entity name
5747 part of the name of a variable that has a Debug_Renaming_Link.
5749 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
5750 special type to be associated with variables that provide debugger
5751 encodings for renaming declarations.
5753 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5754 Ed Schonberg <schonberg@adacore.com>
5755 Javier Miranda <miranda@adacore.com>
5757 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
5758 ancestor part given by an aggregate to test for an unchecked conversion,
5759 since this can occur in some cases when the ancestor part is a function
5760 call, and we don't want to fall into the recursive call to this
5761 procedure in that case.
5763 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
5764 stream attributes on limited types to account for user-specified
5765 attributes as well as whether Input (resp. Output) becomes available
5766 due to Read (resp. Write) being available for the type. Change Boolean
5767 variable to the more accurate name
5768 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
5769 double-"not" predicate at beginning of return statement to more
5770 understandable form.
5772 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
5773 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
5774 in a block statement and use that as the first statement of the
5775 expanded return rather than incorrectly using the handled sequence as
5776 the first statement.
5778 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
5779 operation, generate an explicit freeze node for it rather than
5780 generating extra formals, to ensure that gigi has the proper order of
5781 elaboration for anonymous subtypes in the signature of the subprograms.
5782 (Build_In_Place_Formal): Move assertion to beginning of loop.
5783 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
5784 applied to a function call (occurs for some cases of 'Input).
5785 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
5786 applied to a function call (occurs for some cases of 'Input).
5788 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
5789 2005, generate an extended return statement enclosing the result object
5792 * freeze.adb (Freeze_Record_Type): Extend the current management of
5793 components that are access type with an allocator as default value: add
5794 missing support to the use of qualified expressions of the
5795 allocator (which also cause freezing of the designated type!)
5796 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
5797 dispatching operation, since extra formals may be needed by calls to
5798 build-in-place functions (such as stream 'Input).
5800 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
5801 formals for 'Constrained and accessibility level in the case of a
5802 predefined dispatching operation.
5804 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
5805 point, no need to find the parent node.
5807 2007-08-16 Javier Miranda <miranda@adacore.com>
5809 * exp_attr.adb (Attribute_Priority): Add missing support for entries
5812 2007-08-16 Javier Miranda <miranda@adacore.com>
5814 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
5815 is not really required and can introduce regression with the debugger.
5816 The original problem is fixed with the patch written for checks.adb.
5818 2007-08-16 Thomas Quinot <quinot@adacore.com>
5820 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
5821 Range_Check on Allocated_Table.
5823 2007-08-16 Vincent Celier <celier@adacore.com>
5825 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
5826 Including_Non_Switch set to False.
5827 (Gnatmake): For the compiler, call Test_If_Relative_Path with
5828 Including_Non_Switch set to False.
5830 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
5831 parameter Including_Non_Switch, defaulted to True. When
5832 Including_Non_Switch is False, options that are not switches and
5833 appear as relative path are not converted to absolute paths.
5835 2007-08-16 Nicolas Roche <roche@adacore.com>
5837 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
5840 * Make-lang.in: Update dependencies
5842 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
5844 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
5845 currently inspected is a selected component, retrieve the entity of
5847 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
5848 from the immediate ancestor of Main_Unit_Entity.
5849 (Install_Limited_Withed_Unit): Do not install the limited view of
5850 package P if P is reachable through an ancestor chain from package C
5851 and C also has a with clause for P in its body.
5852 (Has_Limited_With_Clause): New routine.
5853 (Has_With_Clause): New routine.
5855 2007-08-16 Ed Schonberg <schonberg@adacore.com>
5857 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
5858 generic for an enclosing instance is a global reference, even though
5859 its scope is the enclosing instance.
5861 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5862 Javier Miranda <miranda@adacore.com>
5864 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
5865 initialize a limited object.
5866 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
5868 Make sure Has_Complex_Representation is inherited by derived type.
5870 2007-08-16 Robert Dewar <dewar@adacore.com>
5872 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
5875 2007-08-16 Ed Schonberg <schonberg@adacore.com>
5877 * sem_disp.adb (Check_Dispatching_Operation): If the operation
5878 implements an operation inherited from a progenitor interface, verify
5879 that they are subtype-conformant.
5881 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
5882 Bob Duff <duff@adacore.com>
5883 Nicolas Setton <setton@adacore.com>
5885 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
5886 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
5887 the statement which is being resolved comes from a predefined library
5888 unit, all non-predefined library interpretations are skipped.
5889 (Resolve_Op_Concat): If string concatenation was folded in the parser,
5890 but the "&" is user defined, give an error, because the folding would
5893 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
5894 the parser has folded a long sequence of concatenations of string
5897 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
5898 and "JMP_BUF" variables as artificial.
5899 (N_String_Literal): Do not use alloca for very long string literals. Use
5900 xmalloc/free instead. Otherwise the stack might overflow.
5902 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
5905 2007-08-16 Vincent Celier <celier@adacore.com>
5907 * vms_conv.adb (Process_Argument): Ensure that project related options
5908 are not put in the -cargs section when using GNAT COMPILE.
5910 2007-08-16 Robert Dewar <dewar@adacore.com>
5912 * gnat_ugn.texi: Add note on preprocessing (output file not written)
5914 2007-08-16 Thomas Quinot <quinot@adacore.com>
5916 * a-tags.adb: Minor reformatting.
5918 2007-08-16 Bob Duff <duff@adacore.com>
5920 * sem_type.ads, sem_ch4.adb: Minor reformatting.
5922 2007-08-14 Thomas Quinot <quinot@adacore.com>
5924 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
5925 s-osinte-interix.ads, system-interix.ads: Removed.
5927 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
5929 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
5930 calls to Check_Within_Time_Bounds.
5931 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
5932 (Difference): Account for possible rounding of the resulting difference
5934 2007-08-14 Robert Dewar <dewar@adacore.com>
5936 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
5937 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
5938 s-osinte-solaris.adb, s-osinte-solaris.ads,
5939 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
5941 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
5942 switch -gnatyS. Enable -gnatyS in GNAT style check mode
5944 2007-08-14 Robert Dewar <dewar@adacore.com>
5945 Ed Schonberg <schonberg@adacore.com>
5947 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
5948 Suppress unmodified in-out parameter warning in some cases
5949 This patch is a also fairly significant change to the way suppressible
5952 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
5953 needed for access to concurrent record types generated by the expander.
5954 (Generate_Range_Check): When generating a temporary to capture the
5955 value of a conversion that requires a range check, set the type of the
5956 temporary before rewriting the node, so that the type is always
5957 properly placed for back-end use.
5958 (Apply_Float_Conversion_Check): Handle case where the conversion is
5960 (Get_Discriminal): Code reformatting. Climb the scope stack looking
5961 for a protected type in order to examine its discriminants.
5963 2007-08-14 Robert Dewar <dewar@adacore.com>
5964 Gary Dismukes <dismukes@adacore.com>
5965 Ed Schonberg <schonberg@adacore.com>
5966 Thomas Quinot <quinot@adacore.com>
5968 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
5969 a-stwisu.adb, a-strsup.adb: Fix warnings for range
5970 tests optimized out.
5972 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
5973 (Get_Allocator_Final_List): For the case of an anonymous access type
5974 that has a specified Associated_Final_Chain, do not go up to the
5976 (Expand_N_Type_Conversion): Test for the case of renamings of access
5977 parameters when deciding whether to apply a run-time accessibility
5979 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
5980 aggregate code before allocator, and ahead of declaration for
5981 temporary, to prevent access before elaboration when the allocator is
5982 an actual for an access parameter.
5983 (Expand_N_Type_Conversion): On an access type conversion involving an
5984 access parameter, do not apply an accessibility check when the
5985 operand's original node was an attribute other than 'Access. We now
5986 create access conversions for the expansion of 'Unchecked_Access and
5987 'Unrestricted_Access in certain cases and clearly accessibility should
5988 not be checked for those.
5990 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
5991 includes a type conversion of a packed component that has been expanded,
5992 recover the original expression for the object, and use this expression
5993 in the post-call assignment statement, so that the assignment is made
5994 to the object and not to a back-end temporary.
5995 (Freeze_Subprogram): In case of primitives of tagged types not defined
5996 at the library level force generation of code to register the primitive
5997 in the dispatch table. In addition some code reorganization has been
5998 done to leave the implementation clear.
5999 (Expand_Call): When expanding an inherited implicit conversion,
6000 preserve the type of the inherited function after the intrinsic
6001 operation has been expanded.
6003 * exp_ch2.ads, exp_ch2.adb
6004 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
6005 of an entry formal appearing in an assignment statement does not assign
6007 (Expand_Current_Value): Instead of calling a routine to determine
6008 whether the prefix of an attribute reference should be optimized or
6009 not, prevent the optimization of such prefixes all together.
6011 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
6012 component whose prefix is known to be of an access type is an implicit
6013 dereference and does not assign to the prefix.
6015 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6016 Robert Dewar <dewar@adacore.com>
6018 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
6019 itype is visited, make an entry into table to link associated node and
6021 Add comments and correct harmless error in Build_NCT_Hash_Tables
6022 (Array_Aggr_Subtype): Associate each itype created for an index type to
6023 the corresponding range construct, and not to the aggregate itself. to
6024 maintain a one-to-one correspondence between itype and its associated
6025 node, to prevent errors when complex expression is copied.
6026 Fix mishandling of multiple levels of parens
6028 * sem_aggr.adb: Create a limited view of an incomplete type, to make
6029 treatment of limited views uniform for all visible declarations in a
6030 limited_withed package.
6031 (New_Copy_Tree): If hash table is being used and itype is visited,
6032 make an entry into table to link associated node and new itype.
6033 (Resolve_Record_Aggregate): Do not add an others box association for a
6034 discriminated record component that has only discriminants, when there
6035 is a box association for the component itself.
6037 * par-ch4.adb: Fix mishandling of multiple levels of parens
6039 2007-08-14 Robert Dewar <dewar@adacore.com>
6041 * comperr.adb: Fix problem with suppressing warning messages from gigi
6043 * erroutc.ads, erroutc.adb, errout.ads,
6044 errout.adb (Write_Eol): Remove trailing spaces before writing the line
6045 (Write_Eol_Keep_Blanks): New procedure to write a line, including
6046 possible trailing spaces.
6047 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
6048 Fix problem with suppressing warning messages from back end
6049 Improve handling of deleted warnings
6052 Fix problem with suppressing warning messages from back end
6053 Handle setting of Static_Dispatch_Tables flag.
6056 Fix problem with suppressing warning messages from back end
6058 * exp_intr.adb: Improve handling of deleted warnings
6060 2007-08-14 Robert Dewar <dewar@adacore.com>
6062 * debug.adb: Improve -gnatdI to cover all cases of serialization
6063 Add documentation of dZ, d.t
6065 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
6067 (Sprint_Node_Actual): Generate new output associated with implicit
6068 importation and implicit exportation of object declarations.
6070 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6071 Robert Dewar <dewar@adacore.com>
6072 Javier Miranda <miranda@adacore.com>
6073 Gary Dismukes <dismukes@adacore.com>
6075 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
6076 to make treatment of limited views uniform for all visible declarations
6077 in a limited_withed package.
6078 Improve warnings for in out parameters
6079 (Set_Related_Interaface/Related_Interface): Allow the use of this
6080 attribute with constants.
6081 (Write_Field26_Name): Handle attribute Related_Interface in constants.
6082 Warn on duplicate pragma Preelaborable_Initialialization
6084 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
6085 generation of a freezing node to ensure proper management of null
6086 excluding access types in the backend.
6087 (Create_Extra_Formals): Test base type of the formal when checking for
6088 the need to add an extra accessibility-level formal. Pass the entity E
6089 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
6090 originally being done in a couple of cases), to ensure that the
6091 Extra_Formals list gets set on the entity E when the first entity is
6093 (Conforming_Types): Add missing calls to Base_Type to the code that
6094 handles anonymous access types. This is required to handle the
6095 general case because Process_Formals builds internal subtype entities
6096 to handle null-excluding access types.
6097 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6098 functions that need it, even when not marked Requires_Overriding.
6099 Improve warnings for in out parameters
6100 (Analyze_Function_Return): Warn for disallowed null return
6101 Warn on return from procedure with unset out parameter
6102 Ensure consistent use of # in error messages
6103 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
6104 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
6105 the implicit conversion of the expression done for anonymous access
6106 types. This is required to generate the code of the null excluding
6107 check (if required).
6109 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
6110 A formal parameter is never publicly referenceable outside of its body.
6111 (Check_References): For an unreferenced formal parameter in an accept
6112 statement, use the same warning circuitry as for subprogram formal
6114 (Warn_On_Unreferenced_Entity): New subprogram, taken from
6115 Output_Unreferenced_Messages, containing the part of that routine that
6116 is now reused for entry formals as described above.
6117 (Goto_Spec_Entity): New function
6118 (Check_References): Do not give IN OUT warning for dispatching operation
6119 Improve warnings for in out parameters
6120 (Test_Ref): Check that the entity is not undefinite before calling
6121 Scope_Within, in order to avoid infinite loops.
6122 Warn on return from procedure with unset out parameter
6123 Improved warnings for unused variables
6125 2007-08-14 Robert Dewar <dewar@adacore.com>
6126 Javier Miranda <miranda@adacore.com>
6127 Gary Dismukes <dismukes@adacore.com>
6129 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
6130 (Expand_N_Attribute_Reference): Further unify the handling of the
6131 three forms of access attributes, using common code now for all three
6132 cases. Add a test for the case of applying an access attribute to
6133 an explicit dereference when the context is an access-to-interface
6134 type. In that case we need to apply the conversion to the prefix
6135 of the explicit dereference rather than the prefix of the attribute.
6136 (Attribute_Version, UET_Address): Set entity as internal to ensure
6137 proper dg output of implicit importation.
6138 (Expand_Access_To_Type): Removed.
6139 (Expand_N_Attribute_Reference): Merge the code from the three cases
6140 of access attributes, since the processing is largely identical for
6141 these cases. The substantive fix here is to process the case of a
6142 type name prefix (current instance case) before handling the case
6143 of interface prefixes.
6145 2007-08-14 Thomas Quinot <quinot@adacore.com>
6146 Ed Schonberg <schonberg@adacore.com>
6147 Javier Miranda <miranda@adacore.com>
6148 Robert Dewar <dewar@adacore.com>
6150 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
6151 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
6152 type that is an anonymous access to controlled object, establish
6153 an associated finalization chain to avoid corrupting the global
6154 finalization list when a dynamically allocated object designated
6155 by such a component is deallocated.
6156 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6157 functions that need it, even when not marked Requires_Overriding.
6158 (Initialize_Tag): Replace call to has_discriminants by call to
6159 Is_Variable_Size_Record in the circuitry that handles the
6160 initialization of secondary tags.
6161 (Is_Variable_Size_Record): New implementation.
6162 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
6163 Suppress_Initialization pragma for a derived type.
6164 (Is_Variable_Size_Record): New subprogram.
6165 (Build_Offset_To_Top_Functions): New implementation that simplifies the
6166 initial version of this routine and also fixes problems causing
6167 incomplete initialization of the table of interfaces.
6168 (Build_Init_Procedure): Improve the generation of code to initialize the
6169 the tag components of secondary dispatch tables.
6170 (Init_Secondary_Tags): New implementation that simplifies the previous
6171 version of this routine.
6172 (Make_DT): Add parameter to indicate when type has been frozen by an
6173 object declaration, for diagnostic purposes.
6174 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
6175 diagnose attemps to freeze a subprogram when some untagged type of its
6176 profile is a private type whose full view has not been analyzed yet.
6177 (Freeze_Array_Type): Generate init proc for packed array if either
6178 Initialize or Normalize_Scalars is set.
6179 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
6180 constructing the new profile, copy the null_exclusion indicator for each
6181 parameter, to ensure full conformance of the new body with the spec.
6183 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
6184 Create wrappers for constructor functions that need it, even when not
6185 marked Requires_Overriding.
6186 (Covers): Handle properly designated types of anonymous access types,
6187 whose non-limited views are themselves incomplete types.
6188 (Add_Entry): Use an entity to store the abstract operation which hides
6190 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
6191 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
6192 initialization aggregate.
6193 (Function_Interp_May_Be_Hidden): Rename to
6194 Function_Interp_Has_Abstract_Op.
6195 (Has_Compatible_Type): Remove machinery that skips interpretations if
6196 they are labeled as potentially hidden by an abstract operator.
6197 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
6198 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
6199 (Write_Overloads): Output the abstract operator if present.
6200 (Add_Entry): Before inserting a new entry into the interpretation table
6201 for a node, determine whether the entry will be disabled by an abstract
6203 (Binary_Op_Interp_May_Be_Hidden): New routine.
6204 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
6206 (Function_Interp_May_Be_Hidden): New routine.
6207 (Has_Compatible_Type): Do not consider interpretations hidden by
6208 abstract operators when trying to determine whether two types are
6210 (Has_Hidden_Interp): New routine.
6211 (Set_May_Be_Hidden_Interp): New routine.
6212 (Write_Overloads): Write the status of flag May_Be_Hidden.
6214 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6215 Javier Miranda <miranda@adacore.com>
6217 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
6218 types declared in the declarative part of a nested package body or in
6219 the proper body of a stub.
6220 (Set_All_DT_Position): Add missing check to avoid wrong assignation
6221 of the same dispatch table slot to renamed primitives.
6222 (Make_Select_Specific_Data_Table): Handle private types.
6223 (Tagged_Kind): Handle private types.
6224 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
6225 output of implicit importation and exportation.
6226 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
6227 first formal of the thunk is always associated with the controlling
6228 type. In addition perform the following code cleanup: remove formal
6229 Thunk_Alias which is no longer required, cleanup evaluation of the
6230 the controlling type, and update the documentation.
6231 Replace occurrence of Default_Prim_Op_Count by
6232 Max_Predef_Prims. Addition of compile-time check to verify
6233 that the value of Max_Predef_Prims is correct.
6234 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
6235 (Make_DT): Add parameter to indicate when type has been frozen by an
6236 object declaration, for diagnostic purposes.
6237 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
6238 construction of statically allocated dispatch tables.
6239 (Make_DT): In case of library-level tagged types export the declaration
6240 of the primary tag. Remove generation of tags (now done by Make_Tags).
6241 Additional modifications to handle non-static generation of dispatch
6242 tables. Take care of building tables for asynchronous interface types
6243 (Make_Tags): New subprogram that generates the entities associated with
6244 the primary and secondary tags of Typ and fills the contents of Access_
6245 Disp_Table. In case of library-level tagged types imports the forward
6246 declaration of the primary tag that will be declared later by Make_DT.
6247 (Expand_Interface_Conversion): In case of access types to interfaces
6248 replace an itype declaration by an explicit type declaration to avoid
6249 problems associated with the scope of such itype in transient blocks.
6251 2007-08-14 Robert Dewar <dewar@adacore.com>
6252 Ed Schonberg <schonberg@adacore.com>
6253 Javier Miranda <miranda@adacore.com>
6255 * exp_util.ads, exp_util.adb:
6256 This patch replaces a number of occurrences of explicit tests for N_Null
6257 with calls to Known_Null. This improves tracking of null values, since
6258 Known_Null also catches null constants, and variables currently known to
6259 be null, so we get better tracking.
6260 (Ensure_Defined): create an itype reference only in the scope of the
6262 (Side_Effect_Free): A selected component of an access type that
6263 denotes a component with a rep clause must be treated as not
6264 side-effect free, because if it is part of a linked structure its
6265 value may be affected by a renaming.
6266 (Expand_Subtype_From_Expr): For limited objects initialized with build
6267 in place function calls, do nothing; otherwise we prematurely introduce
6268 an N_Reference node in the expression initializing the object, which
6269 breaks the circuitry that detects and adds the additional arguments to
6270 the called function. Bug found working in the new patch for statically
6271 allocated dispatch tables.
6272 (Is_Library_Level_Tagged_Type): New subprogram.
6273 (Remove_Side_Effects): If the expression of an elementary type is an
6274 operator treat as a function call.
6275 (Make_Literal_Range): If the index type of the array is not integer, use
6276 attributes properly to compute the constraint on the resulting aggregate
6279 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
6280 class-wide type whose base type is an incomplete private type, leave
6281 class-wide type unfrozen so that freeze nodes can be generated
6282 properly at a later point.
6283 (Freeze_Entity, array case): Handle case of pragma Pack and component
6284 size attributre clause for same array.
6286 2007-08-14 Vincent Celier <celier@adacore.com>
6288 * prj.ads, prj.adb: Update Project Manager to new attribute names for
6290 Allow all valid declarations in configuration project files
6291 (Reset): Initialize all tables and hash tables in the project tree data
6292 Major update of the Project Manager and of the project aware tools,
6293 including gprmake, so that the same sources in the GNAT repository
6294 can be used by gprbuild.
6295 (Slash_Id): Change type to be Path_Name_Type
6296 (Slash): Return a Path_Name_Type instead of a File_Name_Type
6298 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
6300 Update Project Manager to new attribute names for ghprbuild
6301 Allow all valid declarations in configuration project files
6302 Major update of the Project Manager and of the project aware tools,
6303 including gprmake, so that the same sources in the GNAT repository
6304 can be used by gprbuild.
6307 Major update of the Project Manager and of the project aware tools,
6308 including gprmake, so that the same sources in the GNAT repository
6309 can be used by gprbuild.
6311 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6312 insensitive flag for attributes with optional index.
6313 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6314 array attribute, put the index in lower case.
6315 Update Project Manager to new attribute names for ghprbuild
6316 Allow all valid declarations in configuration project files
6317 Major update of the Project Manager and of the project aware tools,
6318 including gprmake, so that the same sources in the GNAT repository
6319 can be used by gprbuild.
6321 * prj-env.ads, prj-env.adb:
6322 Major update of the Project Manager and of the project aware tools,
6323 including gprmake, so that the same sources in the GNAT repository
6324 can be used by gprbuild.
6325 (Get_Reference): Change type of parameter Path to Path_Name_Type
6327 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
6328 removing '-' from the path to start with the first character of the
6330 Major update of the Project Manager and of the project aware tools,
6331 including gprmake, so that the same sources in the GNAT repository
6332 can be used by gprbuild.
6333 Major update of the Project Manager and of the project aware tools,
6334 including gprmake, so that the same sources in the GNAT repository
6335 can be used by gprbuild.
6337 * prj-nmsc.ads, prj-nmsc.adb:
6338 Update Project Manager to new attribute names for ghprbuild
6339 Allow all valid declarations in configuration project files
6340 (Search_Directories): Detect subunits that are specified with an
6341 attribute Body in package Naming. Do not replace a source/unit in the
6342 same project when the order of the source dirs are known. Detect
6343 duplicate sources/units in the same project when the order of the
6344 source dirs are not known.
6345 (Check_Ada_Name): Allow all identifiers that are not reserved words
6347 Major update of the Project Manager and of the project aware tools,
6348 including gprmake, so that the same sources in the GNAT repository
6349 can be used by gprbuild.
6350 (Look_For_Sources): If the list of sources is empty, set the object
6351 directory of non extending project to nil.
6352 Change type of path name variables to be Path_Name_Type
6353 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
6354 otherwise creating missing directories will fail.
6356 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
6357 prj-part.ads, prj-part.adb:
6358 Major update of the Project Manager and of the project aware tools,
6359 including gprmake, so that the same sources in the GNAT repository
6360 can be used by gprbuild.
6362 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6363 insensitive flag for attributes with optional index.
6364 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6365 array attribute, put the index in lower case.
6366 (Parse_Variable_Reference): Allow the current project name to be used in
6367 the prefix of an attribute reference.
6369 * prj-util.ads, prj-util.adb
6370 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
6371 defaulted to False. When True, always check against indexes in lower
6374 * snames.ads, snames.h, snames.adb:
6375 Update Project Manager to new attribute names for gprbuild
6376 Allow all valid declarations in configuration project files
6378 2007-08-14 Robert Dewar <dewar@adacore.com>
6379 Ed Schonberg <schonberg@adacore.com>
6381 * opt.ads: Warning for non-local exception propagation now off by
6383 New switch -gnatI to disable representation clauses
6384 Implement new pragma Implicit_Packing
6387 Warning for non-local exception propagation now off by default
6388 Add warning for unchecked conversion of pointers wi different
6390 New switch -gnatI to disable representation clauses
6392 * usage.adb: new switch -gnatyS
6394 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
6395 note that aggregates of anonymous array types are not flagged.
6396 -gnatwc now includes membership tests optimized away
6397 -gnatw.x warnings are now off by default
6398 Added conditional compilation Appendix
6399 Add documentation of -gnatI
6400 Add documentation for new -gnatyS style check
6401 Update documentation about SAL and auto-init on Windows.
6404 Add documentation for pragma Check_Name and 'Enabled attribute
6405 Document that Eliminate on dispatching operation is ignored
6406 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
6407 Document pragma Main
6408 Document pragma Implicit_Packing
6410 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
6411 different conventions
6412 New switch -gnatI to disable representation clauses
6414 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
6415 recognized, report the invalid characters including "-gnat" instead of
6416 just the first character in the switch.
6417 New switch -gnatI to disable representation clauses
6418 Set Warn_On_Object_Renames_Function true for -gnatg
6420 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
6421 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
6422 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
6423 to switch -aP (add directory to project search dir).
6425 * par-prag.adb: Implement new pragma Implicit_Packing
6427 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
6428 type as having a non-standard representation, to force expansion on
6429 conversion to related types.
6430 (Analyze_Pragma): Warn on misspelled pragma
6431 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
6432 Ensure consistent use of # in error messages
6433 Implement pragma Implicit_Packing
6435 2007-08-14 Olivier Hainque <hainque@adacore.com>
6436 Eric Botcazou <ebotcazou@adacore.com>
6438 * targtyps.c (get_target_maximum_default_alignment): New function.
6440 that the compiler might choose by default for a type or object.
6441 (get_target_default_allocator_alignment): New function. Alignment known
6442 to be honored by the target default allocator.
6443 (get_target_maximum_allowed_alignment): New function. Maximum alignment
6444 we might accept for any type or object on the target.
6445 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
6447 * gigi.h (get_target_maximum_default_alignment): Declare new function.
6448 (get_target_default_allocator_alignment): Likewise.
6449 (get_target_maximum_allowed_alignment): Likewise.
6452 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
6453 result of a function call, first try to use a stabilized reference for
6454 a constant renaming too.
6455 (validate_alignment): Use target_maximum_allowed_alignment instead of
6456 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
6457 (gnat_to_gnu_entity): Use common nodes directly.
6458 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
6459 alignment and size for the object.
6460 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
6461 and N_Procedure_Call_Statement.
6462 (takes_address): Rename to lvalue_required_p, add third parameter
6463 'aliased' and adjust recursive calls.
6464 <N_Indexed_Component>: Update 'aliased' from the array type.
6465 <N_Selected_Component>: New case.
6466 <N_Object_Renaming_Declaration>: New Likewise.
6467 (Identifier_to_gnu): Adjust for above changes.
6468 (maybe_stabilize_reference) <CONST_DECL>: New case.
6470 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
6471 between type variants.
6472 (build_simple_component_ref): Likewise.
6473 (build_call_alloc_dealloc): Use target_default_allocator_alignment
6474 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
6475 aligning type circuitry for allocations from the default storage pool.
6476 (build_allocator): Likewise.
6477 (build_simple_component_ref): Manually fold the reference for a
6478 constructor if the record type contains a template.
6480 * utils.c (value_zerop): Delete.
6481 (gnat_init_decl_processing): Emit debug info for common types.
6482 (rest_of_record_type_compilation): If a union contains a field
6483 with a non-constant qualifier, treat it as variable-sized.
6484 (finish_record_type): Give the stub TYPE_DECL a name.
6485 (rest_of_record_type_compilation): Likewise.
6486 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
6487 types are equivalent array types.
6488 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
6489 even if the type is not passed by reference.
6490 (static_ctors, static_dtors): Delete.
6491 (end_subprog_body): Do not record constructors and destructors.
6492 (build_global_cdtor): Delete.
6493 (gnat_write_global_declarations): Do not call build_global_cdtor.
6495 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
6496 -fRTS=rtp is specified.
6497 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
6500 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
6501 of the personality function with SJLJ exceptions.
6503 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
6504 the name of the personality function with SJLJ exceptions.
6506 2007-08-14 Robert Dewar <dewar@adacore.com>
6507 Ed Schonberg <schonberg@adacore.com>
6509 * par.ads, par.adb: Improve handling of extra right parens.
6510 (Par): Remove flag From_Limited_With_Clause.
6512 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
6513 Improve handling of extra right parens.
6515 2007-08-14 Robert Dewar <dewar@adacore.com>
6517 * par-tchk.adb (TF_Semicolon): Improve error recovery
6519 2007-08-14 Robert Dewar <dewar@adacore.com>
6520 Ed Schonberg <schonberg@adacore.com>
6522 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
6523 enumeration type, mark all literals as referenced.
6524 (Eval_Attribute, case 'Image): If the argument is an enumeration
6525 literal and names are available, constant-fold but mark nevertheless as
6527 Clean up function names.
6528 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
6530 (Requires_Simple_Name_Prefix): Removed.
6532 2007-08-14 Robert Dewar <dewar@adacore.com>
6533 Ed Schonberg <schonberg@adacore.com>
6535 * sem_ch11.adb: Improved warnings for unused variables
6537 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
6538 is a synchronized interface, the derived type is limited.
6539 (Analyze_Object_Declaration): Mark the potential coextensions in the
6540 definition and expression of an object declaration node.
6541 (Build_Derived_Type): For the completion of a private type declaration
6542 with a derived type declaration, chain the parent type's representation
6543 items to the last representation item of the derived type (not the
6544 first one) if they are not present already.
6545 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
6546 object declaration of forward references to tags.
6547 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
6548 subprogram types can appear as access discriminants of synchronized
6550 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
6551 given in prefixed form as a selected component.
6552 (Process_Discriminants): If not all discriminants have defaults, place
6553 error message on a default that is present.
6554 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
6555 extend a synchronized tagged type.
6556 Improved warnings for unused variables
6557 (Is_Visible_Component): Fix a visibility hole on a component inherited
6558 by a private extension when parent is itself declared as a private
6559 extension, and the derivation is in a child unit.
6560 (Find_Hidden_Interface): Move spec from the package body.
6562 2007-08-14 Robert Dewar <dewar@adacore.com>
6563 Ed Schonberg <schonberg@adacore.com>
6565 * sem_ch5.adb: Improve warnings on redundant assignments
6567 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
6569 (Is_Synchronized_Tagged_Type): New subprogram that returns true
6570 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
6571 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
6572 is set to False. Improves handling of Known_[Not_]Null.
6573 (Wrong_Type): Special case address arithmetic attempt
6574 (Collect_Abstract_Interfaces): Add new formal to allow collecting
6575 abstract interfaces just using the partial view of private types.
6576 (Has_Abstract_Interfaces): Add new formal to allow checking types
6577 covering interfaces using the partial view of private types.
6578 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
6579 component still needs to be defined in this case, but is never
6580 initialized as VMs are using other dispatching mechanisms.
6581 (Abstract_Interface_List): For a protected type, use base type to get
6583 Improve warnings on redundant assignments
6584 (Is_Variable): Handle properly an implicit dereference of a prefixed
6586 (Build_Actual_Subtype): If this is an actual subtype for an
6587 unconstrained formal parameter, use the sloc of the body for the new
6588 declaration, to prevent anomalises in the debugger.
6590 2007-08-14 Robert Dewar <dewar@adacore.com>
6592 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
6593 dispatching operation
6595 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6596 Gary Dismukes <dismukes@adacore.com>
6599 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
6600 expanded aggregate code before allocator, and ahead of declaration for
6601 temporary, to prevent access before elaboration when the allocator is
6602 an actual for an access parameter.
6603 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
6604 the TSD and the table of interfaces.
6605 (Convert_To_Assignments): Augment the test for delaying aggregate
6606 expansion for limited return statements to include the case of extended
6607 returns, to prevent creation of an unwanted transient scope.
6608 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
6609 (Expand_Array_Aggregate): Handle aggregates associated with
6610 statically allocated dispatch tables.
6611 (Expand_Record_Aggregate): Handle aggregates associated with
6612 statically allocated dispatch tables.
6613 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
6614 of anonymous access type.
6616 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6618 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
6619 is a variable that renames a slice, use the variable itself in the
6620 expannsion when the renamed expression itself may be modified between
6621 the declaration of the renaming and the array assignment.
6623 2007-08-14 Jerome Guitton <guitton@adacore.com>
6625 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6626 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
6627 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
6628 New functions; dummy implementations.
6630 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
6631 functions, used to implement the multi-tasks mode routines on VxWorks.
6633 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
6635 binding to the VxWorks routines which have changed between VxWorks 5
6637 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
6638 which are not callable from a RTP.
6640 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
6641 implemented for the multi-tasks mode on VxWorks 5 and 6.
6643 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
6645 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
6648 2007-08-14 Vincent Celier <celier@adacore.com>
6650 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
6651 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
6652 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
6653 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
6654 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
6655 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
6656 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
6658 (Major_Id_Name): New function.
6659 mlib-tgt.ads/mlib.tgt.adb:
6660 (Library_Major_Minor_Id_Supported): New function, default returns True
6661 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
6662 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
6663 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
6664 Implementation of Library_Major_Minor_Id_Supported returns False
6666 (Clean_Library_Directory): If major/minor ids are supported, clean all
6668 Major update of the Project Manager and of the project aware tools,
6669 including gprmake, so that the same sources in the GNAT repository
6670 can be used by gprbuild.
6672 2007-08-14 Olivier Hainque <hainque@adacore.com>
6674 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
6675 (GCC_ZCX_Support): Switch to True.
6677 * s-intman-solaris.adb (Notify_Exception): Call
6678 Adjust_Context_For_Raise before raising, as expected for signal
6679 handlers in general.
6681 * s-intman-posix.adb (Notify_Exception): Remove declaration of
6682 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
6683 to other implementation bodies.
6685 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
6686 be visible by multiple implementation bodies.
6688 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
6689 only for conditions coming from hardware.
6690 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
6691 adjustments to signal context prior to exception raise from signal
6693 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
6695 Solaris section: (__gnat_adjust_context_for_raise): New function.
6696 Implementation of the machine context adjustments to perform prior to
6697 raise from a signal handler. Version for both sparc and x86.
6698 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
6699 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
6700 prior to raising as expected for any handler, before possible nested
6701 faults to make sure all the contexts in a chain have been adjusted by
6702 the time we propagate.
6704 2007-08-14 Pascal Obry <obry@adacore.com>
6706 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
6707 (SYSTEM_INFO): New record.
6708 (SetThreadIdealProcessor): New imported routine needed for supporting
6709 task_info pragma on Windows.
6711 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
6712 info can be applied to the current host.
6713 (Create_Task): Set the ideal processor if information is present.
6715 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
6716 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
6718 2007-08-14 Olivier Hainque <hainque@adacore.com>
6720 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
6721 stack size and initial stack pointer value for a given task.
6722 (Enter_Task): Get the stack attributes of the task we are entering and
6723 let the stack checking engine know about them.
6725 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
6726 Let the stack-checking engine know about the initial sp value and stack
6727 size associated with the current task.
6728 (Set_Stack_Info): If a stack base has been notified for the current
6729 task, honor it. Fallback to the previous less accurate method otherwise.
6731 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
6733 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6735 * sem_ch10.adb: Create a limited view of an incomplete type, to make
6736 treatment of limited views uniform for all visible declarations in a
6737 limited_withed package.
6738 Set flag indicating that a subprogram body for a child unit has a
6740 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
6741 separate declaration, remove the unit name from visibility after
6742 compilation, so that environment is clean for subsequent compilations.
6743 (Install_Limited_Context_Clauses): Do not install a
6744 limited_private_with_clause unless the current unit is a body or a
6746 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
6747 in the same fashion.
6748 (Install_Limited_Withed_Unit): Do not install a limited with clause if
6749 it applies to the declaration of the current package body.
6750 (Remove_Private_With_Clauses): If there is a regular with_clause for
6751 the unit, delete Private_With_Clause from context, to prevent improper
6752 hiding when processing subsequent nested packages and instantiations.
6754 2007-08-14 Jose Ruiz <ruiz@adacore.com>
6756 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
6757 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
6758 representing absolute path names.
6759 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
6761 * cstreams.c (__gnat_full_name for VxWorks): Use
6762 __gnat_is_absolute_path to detect whether we need to add the current
6763 directory to normalize the path.
6765 2007-08-14 Javier Miranda <miranda@adacore.com>
6768 a-tags.adb (Displace): Associate a message with the raised CE
6770 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
6771 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
6772 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
6774 (Default_Prim_Op_Count): Removed.
6775 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
6776 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
6777 Remove pragma Inline_Always.
6779 * rtsfind.ads (Default_Prim_Op_Count): Removed
6780 (Max_Predef_Prims): New entity
6781 (RE_Expanded_Name): Removed
6782 (RE_HT_Link): Removed
6783 (RE_Iface_Tag): Remmoved
6784 (RE_Ifaces_Table): Removed
6785 (RE_Interfaces_Array): Removed
6786 (RE_Interface_Data_Element): Removed
6787 (RE_Nb_Ifaces): Removed
6788 (RE_RC_Offset): Removed
6789 (RE_Static_Offset_To_Top): Removed
6791 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
6793 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
6794 Prim_Op_Count by Max_Predef_Prims.
6796 2007-08-14 Thomas Quinot <quinot@adacore.com>
6797 Vincent Celier <celier@adacore.com>
6799 * binde.adb (Elab_All_Links): Remove unnecessary call to
6800 Generic_Separately_Compiled (if a unit satisfies this predicate, there
6801 won't be an associated Afile).
6802 (Elab_All_Links): Fail if a referenced unit cannot be found
6805 Fix comments in bindgen regarding consistency checks done in Bcheck:
6806 the checks are made across units within a partition, not across several
6808 Fix generation of C binder file for VxWorks.
6810 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
6811 Generic_May_Lack_ALI, more descriptive of the current use of the
6812 predicate, and update documentation.
6814 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
6815 reorganization and documentation update for the case of predefined
6816 library generics (for which we do not reference an Afile).
6818 2007-08-14 Robert Dewar <dewar@adacore.com>
6820 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
6821 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
6822 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
6823 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
6824 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
6825 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
6826 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
6827 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
6828 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
6829 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
6830 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
6831 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
6832 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
6833 g-altcon.adb: Minor reformatting
6835 ada-tree.h: Delete empty line.
6837 ali.ads: Minor reformatting
6838 Clarification of comments.
6839 Minor spelling correction
6841 * exp_dbug.adb: Add Warnings Off to suppress new warning
6843 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6846 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
6849 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
6851 * a-textio.ads: Reorder the standard input/output/error declarations
6854 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
6856 * par-ch2.adb: Recognize RM specially in errout
6857 Change 'R'M to RM in all error messages
6859 * scng.adb: Recognize RM specially in errout
6861 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
6862 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
6864 * s-direio.adb: Add missing routine header box.
6866 * sem_attr.ads: Add ??? comments
6868 * sem_eval.adb: Recognize RM specially in errout
6869 Change 'R'M to RM in all error messages
6871 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
6873 * s-tasinf.ads: Fix minor comment typo.
6875 * a-cihama.adb: Minor comment addition
6877 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6880 * s-tasinf-tru64.ads: Fix minor comment typo.
6882 * itypes.ads: Comment update.
6884 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
6887 * argv.c: Added protection against null gnat_argv and gnat_envp.
6889 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
6890 warning message when Tolerate_Consistency_Errors is True.
6892 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
6893 Any_Id, as this subprogram is only applicable to *type* entities (it
6894 sets RM_Size). Instead initialize just Esize and Alignment.
6896 2007-08-14 Bob Duff <duff@adacore.com>
6898 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
6899 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
6900 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
6901 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
6902 a-coorse.ads (Next): Applied pragma Inline.
6903 Make all Containers packages Remote_Types (unless they are already
6905 (Previous): applied pragma Inline
6906 (Elements_Type): is now a record instead of an array
6908 2007-08-14 Thomas Quinot <quinot@adacore.com>
6910 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
6912 (Set_Item): When the new item is an element of the currently allocated
6913 table passed by reference, save a copy on the stack if we're going
6914 to reallocate. Also, in Table.Set_Item, make sure we test the proper
6915 variable to determine whether to call Set_Last.
6917 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
6918 symbols-vms.adb, symbols-processing-vms-alpha.adb,
6919 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
6920 some occurrences of the pattern
6922 T.Table (T.Last) := Value;
6923 with a cleaner call to
6926 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6927 Gary Dismukes <dismukes@adacore.com>
6928 Thomas Quinot <quinot@adacore.com>
6930 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
6931 derived type with interface progenitors use the analyzed formal as the
6932 parent of the actual, to create renamings for all the inherited
6933 operations in Derive_Subprograms.
6934 (Collect_Previous_Instances): new procedure within of
6935 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
6936 unit being loaded, to ensure that the generation of global symbols is
6937 consistent in different compilation modes.
6938 (Is_Tagged_Ancestor): New function testing the ancestor relation that
6939 takes progenitor types into account.
6940 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
6941 traversing over the primitives of the formal and actual types to locate
6942 any abstract subprograms of the actual type that correspond to a
6943 nonabstract subprogram of the formal type's ancestor type(s), and issue
6944 an error if such is found.
6945 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
6946 Instantiate_Package_Body, Instantiate_Subprogram_Body):
6947 Remove bogus guard around calls to Inherit_Context.
6948 (Reset_Entity): If the entity is the selector of a selected component
6949 that denotes a named number, propagate constant-folding to the generic
6950 template only if the named number is global to the generic unit.
6951 (Set_Instance_Env): Only reset the compilation switches when compiling
6952 a predefined or internal unit.
6954 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6956 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
6957 parameter to determine whether operation applies to the prefix.
6958 (Complete_Object_Operation): If actual has an access type and
6959 controlling formal is not an in_parameter, reject the actual if it is
6960 an access_to_constant type.
6961 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
6962 type, the candidate operations are found in the scope of declaration of
6963 the type, because the type has no primitive subprograms.
6964 (Analyze_Selected_Component): If prefix is class-wide, and root type is
6965 a private extension, only examine visible components before trying to
6966 analyze as a prefixed call.
6967 Change Entity_List to Type_To_Use, for better readability.
6968 (Has_Fixed_Op): Use base type when checking whether the type of an
6969 operator has a user-defined multiplication/division
6970 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
6971 user-defined operators are available for fixed-point types.
6973 2007-08-14 Thomas Quinot <quinot@adacore.com>
6974 Ed Schonberg <schonberg@adacore.com>
6976 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
6977 formal At_Any_Place indicating, when True, that we want to test for
6978 availability of the stream attribute at any place (as opposed to the
6979 current visibility context only).
6980 (Missing_Read_Write_Attributes): A stream attribute is missing for the
6981 purpose of enforcing E.2.2(8) only if it is not available at any place.
6982 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
6983 when checking the legality of an extension aggregate in a preelaborable
6984 package. Treat the literal null as a valid default expression in a
6985 component declaration for a type with preelaborable initialization.
6986 A limited interface is a legal progenitor for the designated type of a
6987 remote access to class-wide type.
6989 2007-08-14 Thomas Quinot <quinot@adacore.com>
6990 Ed Schonberg <schonberg@adacore.com>
6992 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
6993 reference): Use correct entity as denoted entity for the selector of
6995 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
6996 setting the Referenced_As_LHS flag for entities that are implicitly
6998 (Find_Type): If the type is an internally generated incomplete type,
6999 mark the full view as referenced, to prevent spurious warnings.
7000 (Find_Selected_Component, Has_Components): Handle properly non-limited
7001 views that are themselves incomplete types.
7002 Handle interfaces visible through limited-with clauses.
7003 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
7004 subprogram generic actual for which we have generated a renaming.
7005 Warn when the renaming introduces a homonym of
7006 the renamed entity, and the renamed entity is directly visible.
7008 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7009 Hristian Kirtchev <kirtchev@adacore.com>
7011 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
7012 appear in the subtree to the current allocator if it is not a static
7014 (Resolve_Allocator): Perform cleanup if resolution has determined that
7015 the allocator is not a coextension.
7016 (Resolve): Skip an interpretation hidden by an abstract operator only
7017 when the type of the interpretation matches that of the context.
7018 (Resolve): When looping through all possible interpretations of a node,
7019 do not consider those that are hidden by abstract operators.
7020 (Resolve_Actuals): When verifying that an access to class-wide object
7021 is an actual for a controlling formal, ignore anonymous access to
7022 subprograms whose return type is an access to class_wide type.
7023 (Resolve_Slice): If the prefix of the slice is a selected component
7024 whose type depends on discriminants, build its actual subtype before
7025 applying range checks on the bounds of the slice.
7026 (Valid_Conversion): In an instance or inlined body, compare root types,
7027 to prevent anomalies between private and public views.
7028 (Resolve): Improve error message for ambiguous fixed multiplication
7029 expressions that involve universal_fixed multiplying operations.
7031 2007-08-14 Javier Miranda <miranda@adacore.com>
7032 Hristian Kirtchev <kirtchev@adacore.com>
7034 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
7035 location to allow the correct generation of errors in case of
7036 restrictions applied to the expanded code.
7037 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
7038 function if the condition does not reference them.
7039 (Expand_Entry_Body_Declarations): Mark the index constant as having a
7042 2007-08-14 Thomas Quinot <quinot@adacore.com>
7043 Pablo Oliveira <oliveira@adacore.com>
7045 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
7046 typecode parameters for a union (in a variant record), remove
7047 extraneous layer of Any wrapping for member label.
7048 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
7049 elabration statements, register the package with the name server
7050 at the beginning, not at the end, of the elaboration statements so
7051 that they can create remote access to subprogram values that designate
7052 remote subprograms from the package.
7054 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7056 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
7057 values to compute the number of seconds since the Unix Epoc in order to
7058 account for Daylight Savings Time. Perform special processing for dates
7059 that are earlier than the Unix Epoc to obtain a negative number.
7061 2007-08-14 Emmanuel Briot <briot@adacore.com>
7063 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
7066 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
7068 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
7069 binder-generated file is not in Ada.
7070 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
7071 recorded in the ALI file.
7072 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
7074 2007-08-14 Vincent Celier <celier@adacore.com>
7076 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
7077 (Output_Source): Do nothing if parameter is No_Sdep_Id
7079 * make.adb (Gnatmake): Do not rebuild an archive simply because a
7080 shared library it imports has a later time stamp.
7081 (Check): Resolve the symbolic links in the path name of the object
7083 Check that the ALI file is in the correct object directory
7084 Check if a file name does not correspond to the mapping of units
7086 (Display_Version): New procedure
7087 (Initialize): Process switches --version and --help
7088 Use type Path_Name_Type for path name
7090 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
7092 * impunit.adb: Re-organize System.Random_Numbers and
7093 GNAT.Random_Numbers and add to builds.
7095 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
7097 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
7099 * a-assert.ads, a-assert.adb: New files.
7101 2007-08-14 Gary Dismukes <dismukes@adacore.com>
7103 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
7104 if AAMP_On_Target is True, then the size of the type encompasses two
7105 addresses (a static link and a subprogram address), except in the case
7106 of library-level access types.
7108 2007-08-14 Vincent Celier <celier@adacore.com>
7110 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
7112 (Write_Eol_Keep_Blanks): New procedure to write a line, including
7113 possible trailing spaces.
7114 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7116 2007-08-14 Javier Miranda <miranda@adacore.com>
7118 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
7119 null-excluding access types.
7121 2007-08-14 Javier Miranda <miranda@adacore.com>
7123 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
7124 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
7125 of private types add missing check on matching interfaces in the
7126 partial and full declarations.
7127 (Analyze_Protected_Type): Code cleanup.
7128 (Analyze_Task_Type): Code cleanup.
7130 2007-08-14 Javier Miranda <miranda@adacore.com>
7132 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
7133 generated interface thunk.
7135 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7137 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
7138 obsolescent warning on application of 'Class to an incomplete type.
7140 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
7141 prevent obsolescent warning on application of 'Class to an incomplete
7144 2007-08-14 Pascal Obry <obry@adacore.com>
7146 * s-fileio.adb (Is_Open): Add check for usability of the underlying
7149 2007-08-14 Cyrille Comar <comar@adacore.com>
7151 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
7152 since it is potentially used in cases implying double finalization of
7155 2007-08-14 Jose Ruiz <ruiz@adacore.com>
7157 * s-tasini.adb (Get_Stack_Info): Move this function to
7158 System.Soft_Links.Tasking because it is common to the full and the
7159 restricted run times.
7160 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
7161 in SSL.Tasking.Init_Tasking_Soft_Links.
7163 * s-solita.adb (Get_Stack_Info): Function moved from
7164 System.Tasking.Initialization because it is common to the full and the
7165 restricted run times.
7166 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
7168 2007-08-14 Arnaud Charlet <charlet@adacore.com>
7170 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
7171 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
7172 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
7175 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
7178 2007-08-14 Gary Dismukes <dismukes@adacore.com>
7180 * s-veboop.adb (SU): New named number initialized to
7181 System.Storage_Unit.
7182 (True_Val): The initialization expression is revised to use SU (=
7183 Storage_Unit) rather than assuming 8 for the component size of an
7184 unpacked Boolean array.
7186 2007-08-14 Tristan Gingold <gingold@adacore.com>
7188 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
7190 * tb-ivms.c: New file.
7192 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
7194 2007-08-14 Geert Bosch <bosch@adacore.com>
7196 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
7197 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
7198 Add required linker pragmas for automatically linking with the gnalasup
7199 linear algebra support library, and the systems math library.
7200 Rename cdot to cdotu and zdot to zdotu.
7201 Update header comment to describe purpose of package.
7203 2007-08-14 Thomas Quinot <quinot@adacore.com>
7205 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
7206 an explicitly specified Associated_Final_Chain, use that list.
7207 (Expand_N_Package_Body): Build dispatch tables of library level tagged
7209 (Expand_N_Package_Declaration): Build dispatch tables of library level
7210 tagged types. Minor code cleanup.
7212 2007-08-14 Vincent Celier <celier@adacore.com>
7214 * gnatchop.adb (Terminate_Program): Remove exception and use
7215 Types.Terminate_Program instead.
7217 * osint.ads, osint.adb (Current_Exit_Status): New global variable
7218 (Find_Program_Name): Added protection against empty name.
7219 (OS_Exit_Through_Exception): New procedure
7221 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
7222 (OS_Exit_Default): New procedure that contains the previous
7223 implementation of procedure OS_Exit.
7224 (Final_Value): Remove obsolete Interix stuff.
7226 2007-08-14 Thomas Quinot <quinot@adacore.com>
7228 * g-socket.ads: Reorganize example code so that it also works on
7231 2007-08-14 Tristan Gingold <gingold@adacore.com>
7233 * g-trasym.ads: AIX now supports symbolic backtraces.
7235 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7237 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
7238 units being loaded to detect circularities. A circularity may be
7239 present even if the current chain of pending units to load starts from
7240 a limited_with_clause.
7242 * lib-load.ads: Change profile of Load_Unit to use a with_clause
7243 rather than a boolean flag, in order to detect circularities in
7246 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
7247 than propagating the From_Limited_With flag, in order to handle
7248 properly circularities involving with_clauses.
7250 2007-08-14 Nicolas Setton <setton@adacore.com>
7252 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
7255 2007-08-14 Arnaud Charlet <charlet@adacore.com>
7257 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
7258 to build for libgnala.
7259 libgnat: Add rules to build libgnala.a
7260 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
7261 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
7262 Add s-osinte-vxworks-kernel.adb to the target pairs of the
7263 kernel run-time lib for VxWorks 6, which would provide a different
7264 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
7265 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
7266 running ZCX by default.
7267 Add g-sttsne-locking to LynxOS version.
7268 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
7269 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
7271 * system-darwin-x86.ads: New file.
7273 * Make-lang.in: Delete files before copying onto them, so if they are
7274 read-only, the copy won't fail.
7277 2007-08-14 Pascal Obry <obry@adacore.com>
7279 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
7282 2007-08-14 Vincent Celier <celier@adacore.com>
7284 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
7285 (Gcc): Initialize Gcc_Name at the first call
7287 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7289 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
7290 with_clauses of the enclosing unit when analyzing the package
7291 specification of a nested instance.
7293 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7295 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
7296 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
7297 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
7298 layout of N_Allocator.
7300 2007-08-14 Thomas Quinot <quinot@adacore.com>
7302 * rtsfind.adb (Check_RPC): Add PCS version check.
7304 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
7305 (Gnat_Free_Software): New function.
7307 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
7308 the PCS_Version value from s-parint, used to check that it is consistent
7309 with what exp_dist expects.
7311 * s-parint.ads (PCS_Version): New entity for checking consistency
7312 between exp_dist and PCS.
7314 * gen-soccon.c: (SO_REUSEPORT): New constant.
7316 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7318 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
7319 variable Sub_Second to Duration in order to accomodate a larger range
7320 of arithmetic operations.
7322 2007-08-14 Bob Duff <duff@adacore.com>
7324 * g-sttsne-locking.ads: Move comments from spec to body.
7325 * g-sttsne-locking.adb: Move comments from spec to body.
7326 * g-sttsne-vxworks.ads: Removed.
7327 * g-sttsne-vxworks.adb: Removed.
7329 2007-08-11 Ian Lance Taylor <iant@google.com>
7331 * misc.c (gnat_get_alias_set): Change return type to
7334 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7336 * decl.c, utils2.c: Fix whitespace in last change.
7338 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7340 * decl.c (compare_field_bitpos): Constify.
7341 * utils2.c (compare_elmt_bitpos): Likewise.
7343 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
7345 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
7346 anonymous access type.
7347 (pthread_sigmask): Now take an access sigset_t.
7349 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
7351 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
7353 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
7355 PR tree-optimization/25737
7356 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
7358 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
7360 * trans.c (Attribute_to_gnu): When subtracting an
7361 offset from a pointer, use POINTER_PLUS_EXPR with
7362 NEGATE_EXPR instead of MINUS_EXPR.
7363 (gnat_to_gnu): Likewise.
7364 * utils.c (convert): When converting between
7365 thin pointers, use POINTER_PLUS_EXPR and sizetype
7367 * utils2.c (known_alignment): POINTER_PLUS_EXPR
7368 have the same semantics as PLUS_EXPR for alignment.
7369 (build_binary_op): Add support for the semantics of
7370 POINTER_PLUS_EXPR's operands.
7371 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
7373 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
7375 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
7376 of get_signed_or_unsigned_type.
7377 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
7379 2007-06-11 Bob Duff <duff@adacore.com>
7380 Thomas Quinot <quinot@adacore.com>
7382 * g-stsifd-sockets.adb (Create): Work around strange behavior of
7383 'bind' on windows that causes 'connect' to fail intermittently, by
7384 retrying the 'bind'.
7385 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7387 2007-06-10 Duncan Sands <baldrick@free.fr>
7389 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
7390 than to void, for the fields when making a new fat pointer type.
7391 (gnat_substitute_in_type): Now substitute_in_type.
7392 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
7393 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
7394 * utils.c (update_pointer_to): Update fat pointers by updating the
7395 dummy node pointers used for the fields.
7397 2007-06-06 Thomas Quinot <quinot@adacore.com>
7398 Bob Duff <duff@adacore.com>
7400 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
7401 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7402 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
7403 constant Thread_Blocking_IO, always True by default, set False
7404 on a per-runtime basis.
7405 (Need_Netdb_Buffer): New constant.
7407 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
7408 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
7411 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
7412 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
7413 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
7414 child package Task_Safe_NetDB
7415 (Host_Error_Messages): Add stub body.
7416 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7418 * g-soccon-mingw.ads: Add Windows-specific constants.
7419 (Need_Netdb_Buffer): New constant.
7420 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
7421 wrapper and import inet_addr(3) from the standard sockets library
7423 (In_Addr): Add alignment clause.
7424 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7426 2007-06-06 Robert Dewar <dewar@adacore.com>
7428 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7429 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
7430 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
7431 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
7432 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
7433 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
7434 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
7435 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
7436 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
7437 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
7438 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
7439 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
7440 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
7441 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
7442 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7443 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
7444 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
7445 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
7446 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
7447 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
7448 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
7449 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
7450 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
7451 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
7452 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
7453 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
7454 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
7455 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
7456 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
7457 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
7458 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
7459 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
7460 Unchecked_* by Ada.Unchecked_*
7462 2007-06-06 Robert Dewar <dewar@adacore.com>
7464 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
7465 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
7466 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
7467 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
7468 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
7469 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
7471 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
7472 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
7473 s-tasloc.adb, s-tasloc.ads: New files.
7475 2007-06-06 Bob Duff <duff@adacore.com>
7478 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
7479 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
7480 (Send_Signal, Close): Raise Invalid_Process if the process id is
7482 (Pattern_Matcher_Access): Is now a general access type to be able to
7485 2007-06-06 Thomas Quinot <quinot@adacore.com>
7486 Arnaud Charlet <charlet@adacore.com>
7488 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
7489 (SIGEMT is now used instead of SIGTERM on AIX).
7491 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
7492 (Time_Slice_Supported): Set to True.
7493 Use SIGEMT instead of SIGTERM as SIGADAABORT.
7495 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7497 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
7498 (Time, Time)): Use To_Relative_Time rather than manual calculation to
7499 express the bounds of Duration as Time. Raise Time_Error when the
7500 result is greater or equal to the higher bound of Duration (on the
7502 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
7504 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
7506 ("-" (Time, Time)): Reorder code.
7507 (All_Leap_Seconds): Removed.
7508 (Arithmetic_Operations.Add): Remove sign related kludge.
7509 (Arithmetic_Operations.Difference): Control the leaps seconds processing
7510 with flag Leap_Support.
7511 (Arithmetic_Operations.Subtract): Remove sign related kludge.
7512 (Check_Within_Time_Bounds): New procedure.
7513 (Clock): Control the leap seconds processing with flag Leap_Support.
7514 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
7515 (Formatting_Operations.Split): Control the leap seconds processing with
7517 (Formatting_Operations.Time_Of): Control the leaps seconds processing
7518 with flag Leap_Support. Adjust the year, month and day (if applicable)
7519 when the value of day seconds designates a new day.
7520 (Split): Use parameter associations for better readability. Integrate
7522 (Time_Of): Use parameter associations for better readability. Integrate
7525 * a-calfor.adb (Split): Use parameter associations for better
7526 readability. Integrate flag Is_Ada_05.
7527 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
7528 better readability. Integrate flag Is_Ada_05.
7530 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7532 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
7533 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
7534 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
7535 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
7536 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
7537 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
7538 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
7539 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
7540 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
7541 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
7542 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
7543 time when entering this routine to detect a backward clock setting
7544 (manual setting or DST adjustment), to avoid waiting for a longer delay
7546 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
7547 Remove handling of deferred priority change, and replace by setting the
7548 task priority directly, as required by AI-188.
7550 (Max_Task_Image_Length): New constant.
7551 Replace Warnings (Off) by Unreferenced pragma, cleaner.
7552 (Dynamic_Priority_Support): Removed, no longer needed.
7553 (Poll_Base_Priority_Change): Ditto.
7554 (Set_Ceiling): Add this procedure to change the ceiling priority
7555 associated to a lock. This is a dummy implementation because dynamic
7556 priority ceilings are not supported by the underlying system.
7558 * a-dynpri.adb (Set_Priority): Take into account case where Target is
7559 accepting a RV with its priority boosted.
7560 Remove handling of deferred priority change, and replace by setting the
7561 task priority directly, as required by AI-188.
7563 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
7565 Remove handling of deferred priority change, and replace by setting the
7566 task priority directly, as required by AI-188.
7567 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
7570 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
7571 (Poll_Base_Priority_Change): Removed.
7572 Code clean up: use SSL.Current_Target_Exception.
7574 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
7575 to run as this is a potentially dispatching point.
7576 (Call_Synchronous): Use Local_Defer_Abort.
7577 (Callable): Relax assertion.
7578 (Selective_Wait): Relax assertion in case abort is not allowed.
7579 Remove handling of deferred priority change, and replace by setting the
7580 task priority directly, as required by AI-188.
7582 * s-tasuti.adb (Make_Passive): Adjust assertions.
7583 Remove handling of deferred priority change, and replace by setting the
7584 task priority directly, as required by AI-188.
7586 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7588 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7589 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7590 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
7591 system-vxworks-mips.ads, system-vxworks-alpha.ads,
7592 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
7593 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
7594 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
7595 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
7596 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
7597 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
7598 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
7599 This patch changes the largest non-binary modulus from 2**31-1 to
7601 (Compiler_System_Version): Removed, no longer used.
7602 Clean up system files by removing flags only used on a single target.
7603 Also remove obsolete flags, only used during bootstrap from system.ads
7604 (Address): Add a pragma Preelaborable_Initialization.
7606 * system-aix.ads: Ditto.
7607 (GCC_ZCX_Support): Set to true.
7608 Update priority range on AIX and map Ada priorities to target
7609 priorities appropriately for different scheduling policies.
7611 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
7613 2007-06-06 Vincent Celier <celier@adacore.com>
7615 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
7616 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
7618 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
7619 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
7620 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
7621 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7622 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
7623 MLib.Tgt, containing the default versions of the exported subprograms.
7624 For each platform, create a specific version of the body of new child
7625 package MLib.Tgt.Specific that contains only the body of subprograms
7626 that are different from the default.
7627 (Archive_Builder_Append_Options): New function.
7629 2007-06-06 Matthew Gingell <gingell@adacore.com>
7631 * s-osinte-aix.adb: Map Ada priorities to target priorities
7632 appropriately for different scheduling policies.
7634 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7636 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
7638 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
7639 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
7641 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
7643 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
7644 Noop on VMS, added for interface commonality.
7646 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7647 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7648 Olivier Hainque <hainque@adacore.com>
7650 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
7651 renamed expression of a full renaming at toplevel.
7652 (gnat_to_gnu_entity, case object): If not defining, do not look inside
7653 the values the constant is initialized to if it is an N_Allocator.
7654 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
7655 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
7656 (make_aligning_type): Accept an extra ROOM argument for storage to be
7657 made available before the aligned field, and an extra BASE_ALIGN
7658 argument for callers to pass the alignment guaranteed to be honored for
7659 the whole aligning object. Avoid call to finish_record_type, which only
7660 interferes with the sizes we want to set.
7661 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
7662 make_aligning_type for super-aligned objects on stack.
7663 (components_to_record): Pass the adjusted size of the type when creating
7664 fields in the qualified union for the variant part.
7665 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
7666 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
7668 (maybe_pad_type): Set TYPE_USER_ALIGN.
7669 (make_aligning_type): Likewise.
7670 ALIGN argument is unsigned int.
7671 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
7672 (gnat_to_gnu_param): Likewise, for parameters.
7673 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
7674 if it is constant and stems from a function call.
7675 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
7676 of the record is specified. Adjust accordingly.
7677 (adjust_packed): New static function.
7678 (gnat_to_gnu_field): Use it to adjust the packedness setting.
7679 (components_to_record): Likewise.
7680 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
7681 side-effects if the object is deemed constant.
7682 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
7683 type instead of merely finalizing it. Tidy.
7684 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
7685 <E_Access_Type>: Likewise.
7686 (defer_debug_incomplete_list): Rename to defer_finalize_list.
7687 (defer_debug_level): Delete.
7688 (gnat_to_gnu_entity) <debug_deferred>: Likewise
7689 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
7691 <E_Record_Type>: Do not explicitly defer finalizing the type.
7692 Adjust for write_record_type_debug_info renaming.
7693 <E_Subprogram_Type>: Likewise.
7694 Finalize deferred types right after deferred incomplete types are
7696 (rest_of_type_decl_compilation): New global function.
7697 (components_to_record): Rename defer_debug parameter to do_not_finalize.
7698 (components_to_record): Propagate the packedness to the fields of the
7699 qualified union type if there is a variant part.
7700 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
7701 instead of inline code to adjust the XUT field offsets.
7702 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
7703 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
7704 and write the debug info if the type derives from a discriminated one.
7705 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
7706 <E_Array_Subtype>: Likewise.
7707 <E_String_Literal_Subtype>: Likewise.
7708 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
7709 an alignment clause.
7710 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
7711 before giving warning.
7712 (prepend_one_attribute_to): New function, helper to prepend an attribute
7713 to an attribute list.
7714 (gnat_to_gnu_entity) <E_Procedure>: Use it.
7715 (prepend_attributes): Likewise.
7716 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
7717 <E_Array_Type>: Declare the padding type for the element type, if any.
7718 <E_Array_Subtype>: Likewise.
7719 (defer_limited_with): New variable.
7720 (Gigi_Equivalent_Type): New function.
7721 (gnat_to_gnu_entity): Use it at start and use result throughout.
7722 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
7723 Gigi_Equivalent_Type, support Limited_With, allow two levels of
7724 indirection, precompute if unconstrained array to simplify logic, and
7725 use defer_limited_with to defer elaboration of some types from limited
7727 (finalize_from_with_types): New function.
7729 2007-06-06 Gary Dismukes <dismukes@adacore.com>
7730 Eric Botcazou <ebotcazou@adacore.com>
7731 Tristan Gingold <gingold@adacore.com>
7732 Olivier Hainque <hainque@adacore.com>
7734 * trans.c (Identifier_to_gnu): Change test for deferred constant by
7735 adding guard that the entity is an E_Constant before testing presence
7736 of Full_view (and remove unnecessary test that entity is not a type).
7737 For a CONST_DECL used by reference, manually retrieve
7738 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
7739 (struct language_function): Move from utils.c to here.
7740 (struct parm_attr): New structure.
7741 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
7742 (f_parm_attr_cache): New macro.
7743 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
7744 expressions for the 'First, 'Last and 'Length attributes of the
7745 unconstrained array IN parameters.
7746 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
7747 Allocate the information structure for the function earlier, as well
7748 as the language-specific part.
7749 If the parameter attributes cache has been populated, evaluate the
7750 cached expressions on entry.
7751 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
7752 N_Procedure_Call_Statement and N_Indexed_Component.
7753 (Pragma_to_gnu): Translate inspection_point to an asm statement
7754 containaing a comment and a reference to the object (either its address
7755 for BLKmode or its value).
7756 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
7757 to go to DECL_INITIAL. Together with the size constraint relaxation
7758 in create_var_decl, enlarges the set of situations in which an
7759 identifier may be used as an initializer without implying elaboration
7761 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
7762 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
7764 (maybe_stabilize_reference): Remove lvalues_only parameter.
7765 (gnat_stabilize_reference): Adjust for above change.
7766 (gnat_to_gnu): Do not set location information on the result
7767 if it is a reference.
7768 (add_cleanup): Add gnat_node parameter and set the location of the
7770 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
7771 (Exception_Handler_to_gnu_zcx): Likewise.
7772 (gigi): Remove the cgraph node if the elaboration procedure is empty.
7773 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
7774 the former right after the latter.
7775 (start_stmt_group): Make global.
7776 (end_stmt_group): Likewise.
7777 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
7779 (gnu_program_error_label_stack): Likewise.
7780 (gigi): Initialize them.
7781 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
7782 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
7784 (push_exception_label_stack): New function.
7785 (takes_address): New function.
7787 * utils.c (struct language_function): Move to trans.c from here.
7788 (unchecked_convert): Do not wrap up integer constants in
7790 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
7791 the latter for aggregate types, unexpected by later passes, and relax an
7792 arbitrary size constraint on the former.
7793 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
7794 to compare the sizes.
7795 (convert_vms_descriptor): When converting to a fat pointer type, be
7796 prepared for a S descriptor at runtime in spite of a SB specification.
7797 (shift_unc_components_for_thin_pointers): New function.
7798 (write_record_type_debug_info): For variable-sized fields, cap the
7799 alignment of the pointer to the computed alignment.
7800 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
7801 If REP_LEVEL is 2, do not compute the sizes.
7802 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
7803 (build_unc_object_type): Likewise.
7804 (declare_debug_type): New function.
7806 * ada-tree.def: USE_STMT: removed (not emitted anymore).
7808 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
7809 no statement is expandable anymore.
7810 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
7811 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
7812 when the user requested it explicitely.
7813 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
7815 (get_alias_set): Return alias set 0 for a type if
7816 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
7818 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
7819 (DECL_FUNCTION_STUB): New accessor macro.
7820 (SET_DECL_FUNCTION_STUB): New setter macro.
7822 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
7824 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
7827 2007-06-06 Jose Ruiz <ruiz@adacore.com>
7829 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
7830 Rename to Abort_Task_Interrupt to be able to keep the same interface
7831 as the rest of the targets.
7833 * s-osinte-vxworks.ads s-osinte-vxworks.adb
7834 (To_VxWorks_Priority): Remove explicit "in" mode indicator
7836 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
7839 2007-06-06 Robert Dewar <dewar@adacore.com>
7841 * a-chahan.ads: Remove obsolescent pragmas
7843 * a-chlat1.ads: Minor reformatting
7845 2007-06-06 Robert Dewar <dewar@adacore.com>
7847 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
7850 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
7853 * errout.ads (Finalize): Changed interface
7854 (Output_Messages): New procedure
7855 (Compilation_Errors): New Interface
7857 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
7858 Finalize/Output_Messages interface for Errout
7859 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
7862 2007-06-06 Thomas Quinot <quinot@adacore.com>
7863 Olivier Hainque <hainque@adacore.com>
7864 Robert Dewar <dewar@adacore.com>
7866 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
7868 (Raise_Current_Excep): Call Debug_Raise_Exception just before
7869 propagation starts, to let debuggers know about the event in a reliable
7871 (Local_Raise): Moved to System.Exceptions
7872 More convenient to have this as a separate unit
7874 * s-except.adb, s-except.ads: New files.
7876 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
7877 Debug_Unhandled_Exception in System.Exceptions where it belongs
7878 together with a couple of other debug helpers.
7879 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
7880 the former Unhandled_Exception.
7882 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
7883 (Warn_No_Exception_Propagation): New procedure
7884 (Warn_If_No_Propagation): Rewritten for new warning generation
7885 (Expand_Exception_Handlers): New warning generation
7886 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
7887 (Add_Exception_Label): Use Special_Exception_Package_Used for test
7888 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
7889 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
7890 even if restriction is set (makes life easier in Check_Returns)
7891 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
7892 checking exception identities.
7893 (Expand_Local_Exception_Handlers): Do not optimize when all others case
7894 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
7895 block for handler (used by Check_Returns)
7896 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
7897 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
7898 remove all exception handlers when optimizing local raise statements.
7899 (Find_Local_Handler): Use Get_Renamed_Entity
7900 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
7901 marked analyzed after expanding exception handlers, do not generate
7902 redundant cleanup actions, because they have been constructed already.
7904 2007-06-06 Thomas Quinot <quinot@adacore.com>
7906 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
7907 presence of this categorization pragma is mandated by the language.
7908 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
7911 2007-06-06 Vincent Celier <celier@adacore.com>
7912 Robert Dewar <dewar@adacore.com>
7914 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
7915 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
7916 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
7917 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
7918 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
7919 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
7920 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
7921 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
7922 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
7923 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
7924 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
7926 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
7927 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
7928 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
7929 Use variables of types File_Name_Type and Unit_Name_Type in error
7931 (Get_Name): Add parameter Ignore_Special, and set it reading file name
7932 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
7934 Define flags Flag217-Flag230 with associated subprograms
7935 (Flag_Word5): New record type.
7936 (Flag_Word5_Ptr): New access type.
7937 (To_Flag_Word5): New unchecked conversion.
7938 (To_Flag_Word5_Ptr): Likewise.
7939 (Flag216): New function.
7940 (Set_Flag216): New procedure.
7942 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7944 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
7947 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
7949 2007-06-06 Javier Miranda <miranda@adacore.com>
7951 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
7953 (Object_Specific_Data_Array): This is now internal to the package.
7954 (Object_Specific_Data): This is now internal to the package.
7955 (Select_Specific_Data_Element): This is now internal to the package.
7956 (Select_Specific_Data_Array): This is now internal to the package.
7957 (Select_Specific_Data): This is now internal to the package.
7958 (Offset_To_Top_Function_Ptr): This is now public.
7959 (To_Offset_To_Top_Function_Ptr): Removed.
7960 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
7961 local to subprogram Offset_To_Top.
7962 (Predefined_DT): Removed.
7963 (Typeinfo_Ptr): Removed.
7964 (OSD): This function is now internal to this package.
7965 (SSD): This function is now internal to this package.
7966 (DT): New function that displaces the pointer to the table of primitives
7967 to get access to the enclosing wrapper record.
7968 (IW_Membership): Code cleanup.
7969 (Offset_To_Top): Code cleanup.
7970 (Predefined_DT): Removed.
7971 (Register_Interface_Tag): Removed.
7972 (Set_Interface_Table): Removed.
7973 (Set_Offset_Index): Removed.
7974 (Set_Offset_To_Top): Code cleanup.
7976 (Set_Signature): Removed.
7978 (Set_Tagged_Kind): Removed.
7979 (Typeinfo_Ptr): Removed.
7981 (Displace): Add missing check on null actual.
7983 * exp_disp.ads, exp_disp.adb
7984 (Select_Expansion_Utilities): Removed.
7985 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
7986 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
7987 the interface requires a new parameter.
7988 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
7989 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
7990 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
7991 Done to remove package Select_Expansion_Utilities.
7992 (Make_DT): New implementation for statically allocated dispatch tables.
7993 (Make_Secondary_DT): Moved to the scope of Make_DT.
7994 (Register_Primitive): Code cleanup plus incoporate the use of the new
7995 function DT_Address_Attribute.
7996 (Expand_Interface_Thunk): The profile of this subprogram has been
7997 changed to return the Thunk_Id and the corresponding code.
7998 (Fill_DT_Entry): Removed. Its functionality is now provided by
7999 subprogram Register_Primitive.
8000 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
8001 subprogram Register_Primitive.
8002 (Register_Primitive): New subprogram that incorporates the previous
8003 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
8004 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
8005 was only required to call Make_DT_Access_Action, which is now removed.
8006 (Ada_Actions): Removed
8007 (Action_Is_Proc): Removed
8008 (Action_Nb_Arg): Removed
8009 Replace all the calls to Make_DT_Access_Action by direct calls to
8010 Make_Procedure_Call_Statement or Make_Function_Call.
8011 (Set_DTC_Entity_Value): New subprogram.
8012 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
8013 (Expand_Interface_Thunk): Add missing support for primitives that are
8014 functions with a controlling result (case in which there is no need
8015 to generate the thunk).
8017 * exp_atag.ads, exp_atag.adb
8018 (Build_DT): New subprogram that displaces the pointer to reference the
8019 base of the wrapper record.
8020 (Build_Typeinfo_Offset): Removed.
8021 (RTE_Tag_Node): Removed.
8022 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
8023 (Build_Get_RC_Offset): Removed.
8024 (Build_Inherit_Predefined_Prims): Removed.
8025 (Build_Inherit_TSD: Removed.
8026 (Build_New_TSD): Removed.
8027 (Build_Set_External_Tag): Removed.
8028 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
8029 (Build_Set_Prim_Op_Address): Add documentation.
8030 (Build_Set_TSD): Removed.
8032 * rtsfind.ads, rtsfind.adb
8033 (Load_Fail): If load fails and we are not in configurable run-time
8034 mode, then raise Unrecoverable_Error.
8035 (Text_IO_Kludge): Generate an error message if a run-time library is
8036 not available in a given run-time (ie. zfp run-time).
8037 (RTE_Record_Component): Add code to check that the component we search
8038 for is not found in two records in the given run-time package.
8039 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
8040 (RE_DT_Predef_Prims_Offset): New entity
8041 (RE_Static_Offset_To_Top): New entity
8042 (RE_HT_Link): New entity.
8043 (System_Address_Image): Addition of this run-time package.
8044 (RE_Address_Image): New entity.
8045 (RE_Abstract_Interface): Removed.
8046 (RE_Default_Prim_Op_Count): Removed.
8047 (RE_DT_Entry_Size): Removed.
8048 (RE_DT_Min_Prologue_Size): Removed.
8049 (RE_DT_Prologue_Size): Removed.
8050 (RE_Ifaces_Table_Ptr): Removed.
8051 (RE_Interface_Data_Ptr): Removed.
8052 (RE_Type_Specific_Data): Removed.
8053 (RE_Primary_DT): Removed.
8054 (RE_Register_Interface_Tag): Removed.
8055 (RE_Set_Offset_Index): Removed.
8056 (RE_Set_OSD): Removed.
8057 (RE_Set_SSD): Removed.
8058 (RE_Set_Signature): Removed.
8059 (RE_Set_Tagged_Kind): Removed.
8060 (RE_Address_Array): New entity.
8061 (RE_DT): New entity.
8062 (RE_Iface_Tag): New entity.
8063 (RE_Interfaces_Table): New entity.
8064 (RE_No_Dispatch_Table): New entity.
8065 (RE_NDT_Prims_Ptr): New entity.
8066 (RE_NDT_TSD): New entity.
8067 (RE_Num_Prims): New entity.
8068 (RE_Offset_To_Top_Function_Ptr): New entity.
8069 (RE_OSD_Table): New entity.
8070 (RE_OSD_Num_Prims): New entity.
8071 (RE_Predef_Prims): New entity
8072 (RE_Predef_Prims_Table_Ptr): New entity.
8073 (RE_Primary_DT): New entity.
8074 (RE_Signature): New entity.
8075 (RE_SSD): New entity.
8076 (RE_TSD): New entity.
8077 (RE_Type_Specific_Data): New entity.
8078 (RE_Tag_Kind): New entity.
8080 2007-06-06 Thomas Quinot <quinot@adacore.com>
8082 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
8083 C imported variable.
8084 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
8087 2007-06-06 Robert Dewar <dewar@adacore.com>
8089 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
8092 2007-06-06 Vincent Celier <celier@adacore.com>
8094 * a-tifiio.adb (Put, internal): For negative numbers, check that there
8095 is room for at least one digit and the minus sign.
8096 (Put.Put_Character): Never put a character outside of the range of
8099 2007-06-06 Olivier Hainque <hainque@adacore.com>
8100 Eric Botcazou <ebotcazou@adacore.com>
8102 * utils2.c (build_allocator): Provide the extra arguments to
8103 make_aligning_type for super-aligned objects allocated from the default
8104 pool. Leave enough room for a pointer before the aligning field, and
8105 store the system's allocator return value there.
8106 (build_call_alloc_dealloc): When releasing a super-aligned object,
8107 retrieve the system's allocator return value from where build_allocator
8108 has stored it, just ahead of the adjusted address we are passed.
8109 (build_call_raise): Handle properly the generation of line numbers when
8110 the node is marked No_Location.
8111 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
8112 by using DECL_UID on ties.
8113 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
8115 (build_call_raise): Handle converting exception into goto; support new
8117 (build_component_ref): Add new arg to build_call_raise.
8119 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8121 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
8122 "." in the case of nnn.xxx when nnn terminates with an underscore.
8123 Parse the remaining "#" or ":" in the case of nnn#.xxx#
8125 2007-06-06 Robert Dewar <dewar@adacore.com>
8127 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
8129 2007-06-06 Arnaud Charlet <charlet@adacore.com>
8130 Vincent Celier <celier@adacore.com>
8131 Robert Dewar <dewar@adacore.com>
8133 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
8135 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
8136 ((destructor)) for adafinal, even when switch -a is used.
8137 Do not issue pragma Linker_Destructor for adafinal when switch -a is
8139 (Gen_Object_Files_Options): Add formatting of Linker Options, when
8140 Output_Linker_Option_List is set. Suppress this formatting when
8141 Zero_Formatting is set.
8142 Add case for CLI_Target.
8143 (System_Restrictions_Used): New flag, used to avoid generating with of
8144 System_Restrictions and initialization of the data unless there is
8145 some use of System.Restrictions in the partition.
8146 (Check_System_Restrictions_Used): New procedure
8148 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
8149 since we only with this unit in the binder file if it is used elsewhere
8152 2007-06-06 Vincent Celier <celier@adacore.com>
8154 * bindusg.adb: Add line for @<response file>
8155 Add lines for new switches -R and -Z
8157 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
8158 hierarchy in the list of files of the closure when -R is used
8159 (Gnatbind): Accept arguments starting with '@' to indicate response
8160 files and take the arguments from the response files.
8161 If List_Closure is set, display the referenced files
8163 2007-06-06 Javier Miranda <miranda@adacore.com>
8164 Robert Dewar <dewar@adacore.com>
8165 Ed Schonberg <schonberg@adacore.com>
8167 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
8168 which the address-clause is applied to in-mode actuals (allowed by
8170 (Apply_Discriminant_Check): Do not generate a check if the type is
8171 constrained by a current instance.
8172 (Activate_Division_Check): New procedure
8173 (Activate_Overflow_Check): New procedure
8174 (Activate_Range_Check): New procedure
8175 Call these new Activate procedures instead of setting flags directly
8176 (Apply_Array_Size_Check): Removed, no longer needed.
8177 Code clean up: remove obsolete code related to GCC 2.
8178 (Get_E_Length): Protect against bomb in case scope is standard
8179 (Selected_Range_Checks): If the node to be checked is a conversion to
8180 an unconstrained array type, and the expression is a slice, use the
8181 bounds of the slice to construct the required constraint checks.
8182 Improve NOT NULL error messages
8183 (Apply_Constraint_Check): If the context is a null-excluding access
8184 type, diagnose properly the literal null.
8186 2007-06-06 Pascal Obry <obry@adacore.com>
8188 * clean.adb (Clean_Archive): Use untouched casing for the archive name
8189 and the corresponding .deps file.
8190 (Clean_Interface_Copy_Directory): Use untouched casing for the library
8191 src directory. Minor code-clean-up. Use untouched casing for files
8192 read into the library src dir.
8193 (Clean_Library_Directory): Idem.
8194 (Parse_Cmd_Line): Accept new switch -aP
8196 2007-06-06 Javier Miranda <miranda@adacore.com>
8197 Ed Schonberg <schonberg@adacore.com>
8198 Robert Dewar <dewar@adacore.com>
8199 Eric Botcazou <ebotcazou@adacore.com>
8200 Arnaud Charlet <charlet@adacore.com>
8202 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
8203 applicable to types that have the With_Type flag set. Returns the
8204 non-limited view of the type, if available, otherwise the type itself.
8205 For class-wide types, there is no direct link in the tree, so we have
8206 to retrieve the class-wide type of the non-limited view of the Etype.
8207 New attributes Static_Initialization and Static_Elaboration_Desired.
8208 Remove the pragma Thread_Body, and the associated flag
8209 Is_Thread_Body in entities, and all related code.
8210 (Suppress_Value_Tracking_On_Call): New flag
8211 E_Exception has Esize and Alignment fields
8212 (Universal_Aliasing): New function.
8213 (Set_Universal_Aliasing): New procedure.
8214 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
8215 (Check_Nested_Access): New procedure.
8216 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
8217 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8218 (Related_Interface): New attribute. Present in dispatch table pointer
8219 components of records. Set to point to the entity of the corresponding
8221 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
8222 (Original_Access_Type): Remove, not needed.
8223 (Root_Type): Handle properly subtypes of class-wide-types.
8226 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
8227 class-wide types visible through limited-with clauses.
8228 (Try_Primitive_Operation): When examining all primitive operations of a
8229 tagged type, do not consider subprograms labeled as hidden unless they
8230 belong to a private generic type with a tagged parent.
8231 (Try_Object_Operation): Extensive rewriting, to handle properly various
8232 overloading cases, when several ancestors may have class-wide operations
8233 that are possible candidates, and when the overloaded functions return
8234 array types and have defaulted parameters so that the call may be
8235 interpreted as an indexing.
8236 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
8237 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
8238 successive actuals before analyzing the call itself.
8239 (Try_Primitive_Operation): A primitive operation is compatible with the
8240 prefix if the prefix has a synchronized type and the type of the formal
8241 is its corresponding record, as can be the case when the primitive
8242 operation is declared outside of the body of the type.
8243 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
8244 perform homonym traversal, looking for class-wide operation matches
8245 (formerly done in statements of Try_Class_Wide_Operation). Matches on
8246 access parameters are now restricted to anonymous access types.
8247 (Mark_Allocator): An allocator with a discriminant association parent is
8249 (Try_One_Prefix_Interpretation): If the type of the object is
8250 incomplete, as can be happen when it is a limited view obtained through
8251 a limited_with_clause, the selected component is not part of a prefixed
8253 (Complete_Object_Operation): Diagnose properly an object that is not
8254 aliased when the corresponding controlling formal is an access
8256 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
8257 ambiguous calls in prefixed notation, where two primitives differ only
8258 in that the controlling argument of one is an access parameter.
8260 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
8261 whether a function that returns an unconstrained type can be inlined.
8262 (Process_Formals): Diagnose properly the illegal use of an incomplete
8263 type in the profile of an access_to_subprogram declaration.
8264 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
8265 operations are attached to the corresponding record.
8266 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
8267 When processing a primitive of a concurrent type which implements an
8268 interface change the type of all controlling formals to that of the
8269 corresponding record type.
8270 (Check_Synchronized_Overriding): Relax the conditional logic when trying
8271 to determine the tagged type to which a primitive belongs.
8272 (Check_Conventions): Capture condition to ignore a primitive operation
8273 (which is shared between the loop in Check_Conventions and the one in
8274 Check_Convention) in a new local function Skip_Check.
8275 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
8276 confusion with Check_Conventions' own Prim_Op local variable.
8277 (Create_Extra_Formals): Test for a tagged result type rather than a
8278 controlling result when determining whether to add a BIP_Alloc_Form
8279 formal and a BIP_Final_List formal to the function.
8280 (Check_Conformance); For parameters that are anonymous access types,
8281 subtype conformance requires that the not null and the constant
8282 indicators must match
8283 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
8284 to retrieve the appropriate type when processing a concurrent type
8285 declared within a generic. Minor comment reformatting. Change invocation
8286 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
8288 (Analyze_Subprogram_Body): If the return type of a function is an
8289 anonymous access to the limited view of a class-wide type, and the
8290 non-limited view of the type is available, update the type of the
8291 function so that code can be generated.
8292 (Process_Formals): In case of access-subtype itype whose designated
8293 type is also an itype (situation that happens now with access to
8294 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
8295 attribute to avoid backend problems.
8296 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
8297 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
8298 anonymous types' designated types are same before testing
8299 Subtypes_Statically_Match.
8300 (Create_Extra_Formals): Test for a named access parameter that is a
8301 controlling formal as an additional condition for adding an
8302 accessibility level formal. This can occur in the subp type created for
8303 dispatching calls in Expand_Dispatching_Call, and allows calling
8304 Create_Extra_Formals from that procedure rather than special-casing the
8305 extra formals there.
8306 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
8307 when the function has a controlling result.
8308 (Check_Returns): Add much more knowledge of the optimization of local
8309 raise statements to gotos, to retain proper warnings in this case.
8310 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
8311 nodes when looking for last statement.
8313 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
8314 class-wide types visible through limited with clauses.
8315 (Add_One_Interp): If the operands are anonymous access types, the
8316 predefined operator on universal_access is immediately visibles
8317 (Find_Unique_Type): Handle anonymous access to subprogram types just as
8318 other anonymous access types.
8319 (Disambiguate): Take into account CIL convention.
8320 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
8322 2007-06-06 Robert Dewar <dewar@adacore.com>
8324 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
8325 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
8326 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
8327 Fix lower bound of tables.
8330 * nlists.adb: Ditto.
8331 (Prev_Node, Next_Node): Change index type to Int so that it properly
8332 covers the range First_Node_Id - 1 up.
8334 2007-06-06 Javier Miranda <miranda@adacore.com>
8335 Ed Schonberg <schonberg@adacore.com>
8336 Bob Duff <duff@adacore.com>
8337 Hristian Kirtchev <kirtchev@adacore.com>
8339 * exp_aggr.ads, exp_aggr.adb:
8340 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
8341 in extension aggregates.
8342 (Flatten): Other conditions being met, an aggregate is static if the
8343 low bound given by component associations is different from the low
8344 bound of the base index type.
8345 (Packed_Array_Aggregate_Handled): If the component type is itself a
8346 packed array or record, the front-end must expand into assignments.
8347 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
8348 Init_Pr, instead of Ancestor_Is_Expression.
8349 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
8350 coextension chain root, either generate a list controller or use the
8351 already existing one.
8352 (Static_Array_Aggregate): New procedure to construct a positional
8353 aggregate that can be handled by the backend, when all bounds and
8354 components are compile-time known constants.
8355 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
8356 types covering interface types into assignments.
8357 (Replace_Type): move to Build_Record_Aggr_Code.
8358 (Expand_Record_Aggr_Code): if the target of the aggregate is an
8359 interface type, convert to the definite type of the aggregate itself,
8360 so that needed components are visible.
8361 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
8362 components and the context is an extended return statement do not
8363 create a transient block for it, to prevent premature finalization
8364 before the return is executed.
8365 (Gen_Assign): Do not generate a call to deep adjust routine if the
8366 component type is itself an array of controlled (sub)-components
8367 initialized with an inner aggregate.
8368 (Component_Check): New name for Static_Check. This name is now more
8369 appropriate, and documentation is added which was missing.
8370 (Component_Check): Add test for bit aligned component value
8371 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
8372 Tagged_Comps, name is more appropriate given added function below.
8373 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
8375 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8376 Javier Miranda <miranda@adacore.com>
8377 Robert Dewar <dewar@adacore.com>
8379 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
8380 Terminated: Add unchecked type conversion from System.Address to
8381 System.Tasking.Task_Id when calling the predefined primitive
8383 Disable new Ada 05 accessibility check for JVM.NET targets, which
8384 cannot be implemented in a practical way.
8385 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
8386 the sources always references the tag of the actual object. Therefore,
8387 if 'Tag is applied in the sources to class-wide interface objects we
8388 generate code that displaces "this" to reference the base of the object.
8389 (Expand_N_Attribute_Reference, case Size): Return specified size if
8391 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
8392 has code that displaces the pointer of the object to manage interface
8393 types. However this code must not be executed when the prefix is a
8394 subprogram. This bug caused the wrong expansion of the internally
8395 generated assignment that fills the dispatch table when the primitive
8396 is a function returning a class-wide interface type.
8397 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
8398 Set_Attribute_Name for Name_Unaligned_Valid.
8400 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8401 Gary Dismukes <dismukes@adacore.com>
8403 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
8404 If the initialization is the equivalent aggregate of the initialization
8405 procedure of the type, do not remove it.
8406 (Expand_N_Attribute_Definition_Clause): Exclude access variables
8407 initialized to null from having their expression reset to empty and
8408 note this exception in the comment.
8410 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8411 Robert Dewar <dewar@adacore.com>
8412 Ed Schonberg <schonberg@adacore.com>
8413 Gary Dismukes <dismukes@adacore.com>
8415 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
8416 Add "with" and "use" clauses for Sem_Attr.
8417 (Expand_Current_Value): Do not replace occurences of attribute
8418 references where the prefix must be a simple name.
8420 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
8421 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
8422 Attribute_Requires_Simple_Name_Prefix.
8423 (Name_Modifies_Prefix): Body of new function.
8424 (Requires_Simple_Name_Prefix): Body of new function.
8425 (Resolve_Attribute, case Access): Improve error message for case of
8426 mismatched conventions.
8427 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
8429 (Analyze_Attribute, case 'Access): If the type of the prefix is a
8430 constrained subtype for a nominal unconstrained type, use its base type
8431 to check for conformance with the context.
8432 (Resolve_Attribute): Remove test of the access type being associated
8433 with a return statement from condition for performing accessibility
8434 checks on access attributes, since this case is now captured by
8435 Is_Local_Anonymous_Access.
8436 (Analyze_Access_Attribute): Set Address_Taken on entity
8437 (Analyze_Attribute, case Address): Set Address_Taken on entity
8438 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
8439 validating an access attribute whose prefix is a current instance.
8440 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
8441 applied to dispatching operations, if freezing is required then we set
8442 the attribute Has_Delayed_Freeze in the prefix's entity.
8443 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
8444 current scope if access of local subprogram taken
8445 (Analyze_Access_Attribute): Check legality of self-reference even if the
8446 expression comes from source, as when a single component association in
8447 an aggregate has a box association.
8448 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
8449 the prefix if it is a protected operation and the attribute is
8450 Unrestricted_Access.
8451 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
8452 reference to the base type of the context, to force a constraint check
8453 when the context is an access subtype with an explicit constraint.
8454 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
8455 node is rewritten as an interface conversion. leave unanalyzed after
8456 resolution, to ensure that type checking against the context will take
8459 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8460 Javier Miranda <miranda@adacore.com>
8461 Robert Dewar <dewar@adacore.com>
8463 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
8464 wrapper when the full view of the controlling type of an inherited
8465 function that dispatches on result implements interfaces.
8466 (Expand_N_Object_Declaration): In cases where the type of the
8467 declaration is anonymous access, create finalization list for it.
8468 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
8469 if the object has no explicit initialization, to match description of
8470 functionality of pragam Persistent_BSS.
8471 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
8472 new function to build static aggregates, to replace initialization call
8473 when static initialization is desired.
8474 (Freeze_Type): Generate a list controller for an access type whenever
8475 its designated type has controlled anonymous access discriminants.
8476 (Build_Equivalent_Aggregate): New procedure to compute a static
8477 aggregate to be used as default initialization for composite types,
8478 instead of a generating a call to the initialization procedure for the
8480 (Build_Initialization_Call): When available, replace a call to the
8481 initialization procedure with a copy of the equivalent static aggregate
8483 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
8484 declarations for objects of a class-wide interface type, rather than
8485 just identifiers, to prevent visibility problems.
8486 (Expand_N_Object_Declaration): When expanding the declaration for an
8487 object of a class-wide interface type, preserve the homonym chain of
8488 the original entity before exchanging it with that of the generated
8489 renaming declaration.
8490 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
8491 active, because there is no way to handle the exception.
8492 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
8493 to do a minimum decoration of the Access_Disp_Table list.
8494 (Expand_Record_Controller): Avoid the addition of the controller between
8495 the component containing the tag of a secondary dispatch table and its
8496 adjacent component that stores the offset to the base of the object.
8497 This latter component is only generated when the parent type has
8498 discriminants ---documented in Add_Interface_Tag_Components).
8499 (Apply_Array_Size_Check): Removed, no longer needed.
8500 (Expand_N_Full_Type_Declaration): If the type has anonymous access
8501 components, create a Master_Entity for it only if it contains tasks.
8502 (Build_Init_Procedure): Suppress the tag assignment compiling under
8504 (Freeze_Record_Type): Remove code associated with creation of dispatch
8506 (Init_Secondary_Tags): Update type of actuals when generating calls to
8507 Ada.Tags.Set_Offset_To_Top
8508 (Stream_Operation_OK): Disable use of streams compiling under no
8510 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
8511 if Has_Init_Expression set.
8512 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
8513 Register_Primitive, which provides the same functionality.
8514 (Requires_Init_Proc): Return false in case of interface types.
8515 (Add_Secondary_Tables): Use the new attribute Related_Interface to
8517 (Predefined_Primitive_Freeze): Do not assume that an internal entity
8518 is always associated with a predefined primitive because the internal
8519 entities associated with interface types are not predefined primitives.
8520 Therefore, the call to Is_Internal is replaced by a call to the
8521 function Is_Predefined_Dispatching_Operation.
8522 (Make_Eq_If): When generating the list of comparisons for the
8523 components of a given variant, omit the controller component that is
8524 present if the variant has controlled components.
8526 2007-06-06 Javier Miranda <miranda@adacore.com>
8527 Hristian Kirtchev <kirtchev@adacore.com>
8528 Bob Duff <duff@adacore.com>
8530 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
8531 handle the creation of finalization lists and calls for nested
8532 coextensions when the root of the chains is part of a return statement.
8533 (Inside_A_Return_Statement): New function inside Complete_Coextension_
8535 (Expand_Record_Equality): Skip components that are interface types.
8536 (Displace_Allocator_Pointer): Add missing support for interface subtypes
8537 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
8538 with Rewrite_Coextension. Change the condition for detecting coextension
8540 (Is_Local_Access_Discriminant): Removed.
8541 (Rewrite_Coextension): New routine which rewrites a static coextension
8542 as a temporary and uses its unrestricted access in the construction of
8544 (Complete_Coextension_Finalization): New routine. Generate finalization
8545 attachment calls to all delayed coextensions.
8546 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
8547 the allocator is not a coextension itself and has delayed coextensions.
8548 If the current allocator is controlled, but also a coextension, delay
8549 the generation of the finalization attachment call.
8550 Rename local variable "Node" to "Nod" in order to avoid confusion with
8552 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
8553 limited types that are not inherently limited. Such an allocator is
8554 illegal, but is generated by the expander for a return statement, to
8555 copy the result onto the secondary stack. This is the only case where a
8556 limited object can be copied. Generate code to displace the pointer
8557 to the object if the qualified expression is a class-wide interface
8558 object. Such displacement was missing and hence the copy of the object
8560 (Apply_Accessibility_Check): Handle allocated objects initialized in
8562 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
8563 and Expand_Allocator_Expression. Allocating class-wide interface objects
8564 this routine displaces the pointer to the allocated object to reference
8565 the component referencing the corresponding secondary dispatch table.
8566 Expand_Allocator_Expression): Add missing support to allocate class-wide
8567 interface objects initialized with a qualified expression.
8568 (Get_Allocator_Final_List): Test for an anonymous access type that is a
8569 function result type, and use the finalization list associated with the
8570 function scope in that case (such an anonymous type should not be
8571 treated like an access parameter's type).
8573 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8574 Gary Dismukes <dismukes@adacore.com>
8575 Javier Miranda <miranda@adacore.com>
8577 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
8578 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
8579 required exception handler.
8580 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
8581 properly the case of a function whose return type is a limited
8582 class-wide interface type. Modify the code of the accessibility
8583 check to handle class-wide interface objects. In this case we need to
8584 displace "this" to reference the primary dispatch table to get access
8585 to the TSD of the object (to evaluate its accessibility level).
8586 (Expand_N_Extended_Return_Statement): Test for a tagged result type
8587 rather than a controlling result as one of the conditions for
8588 generating tests of the implicit BIP_Alloc_Form formal. The
8589 initialization assignment is also handled according to whether the
8590 result is tagged instead of controlling.
8591 In the case where the init assignment is inserted in the "then" part of
8592 the allocation conditional, rewrite the target to be a dereference of
8593 the implicit BIP_Object_Access formal.
8594 If the returned value is unconstrained and created on the secondary
8595 stack, mark the enclosing block and function so that the secondary
8596 stack is not reclaimed on return.
8597 Treat returns from functions with controlling results similarly to
8598 returns from functions with unconstrained result subtypes.
8599 If the object returned is unconstrained, and an allocator must be
8600 created for it, analyze the allocator once the block for the extended
8601 return is installed, to ensure that finalizable components
8602 of the expression use the proper finalization list. Guard the call to
8603 Move_Final_List with a check that there is something to finalize.
8604 (Make_Tag_Ctrl_Assignment): Use "old" handling
8605 of controlled type assignment for virtual machines, since new code uses
8606 unsupported features (such as direct access to bytes in memory).
8608 2007-06-06 Gary Dismukes <dismukes@adacore.com>
8609 Ed Schonberg <schonberg@adacore.com>
8611 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
8612 accessibility actual, check for the case of an aliased object that has
8613 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
8614 we fall into processing for the attribute rather than the name of the
8616 (Expand_Inline_Call): If an actual is a literal, and the corresponding
8617 formal has its address taken in the body, create a temporary to capture
8618 value. If the return type is a limited interface, do not treat the
8619 return value as Controlled.
8620 (Is_In_Place_Function): If the return type is a limited interface,
8621 treat as returning in place. The actual returned object may not always
8622 be limited, but the caller has to assume that it is returned in place.
8623 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
8624 context of an allocator, use the correct finalization chain (that is,
8625 the chain belonging to the access type, rather than the chain belonging
8626 to the current scope).
8627 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
8628 result type rather than a controlling result as a precondition for
8629 adding an allocation form actual to a build-in-place call.
8630 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
8631 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
8632 primitive in the dispatch tables. This work is now done by Make_DT when
8634 (Register_Predefined_DT_Entry): Removed.
8635 (Add_Return): If end label is not present, use sloc of last statement
8636 for generated return statement in procedure, for better gdb behavior
8638 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
8639 object address nodes to ensure proper processing by routines like
8641 (Expand_Call): Fix generation of validity check for parameter
8642 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
8643 the allocation form parameter if the result subtype is constrained,
8644 except when the function has a controlling result.
8645 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
8646 rather than Is_Controlled and Has_Controlled_Component, since we want to
8647 include class-wide result types in this treatment. Also test for a
8648 controlling result, since that also requires passing a finalization
8650 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
8651 even when the result subtype is constrained, to handle calls involving
8652 controlling results.
8653 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
8654 is now called even when the result subtype is constrained, to handle
8655 calls involving controlling results.
8656 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
8657 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
8658 now performs the test).
8659 (Make_Build_In_Place_Call_In_Object_Declaration):
8660 Add_Alloc_Form_Actual_* is now called even when the result subtype is
8661 constrained, to handle calls involving controlling results.
8662 (Add_Return): Accomodate rewritten pattern from local raise to goto
8663 transformation, so that we still recognize an transfer statement
8664 and do the right thing here in that case.
8665 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
8666 and end of subprogram code.
8667 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
8668 support for primitives that are functions (without formals) with a
8670 (Inherited_From_Formal): If the actual subtype has not generic parent
8671 type, it is not an actual for a formal derived type, and there is no
8672 operation to inherit from the formal.
8674 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8675 Thomas Quinot <quinot@adacore.com>
8677 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
8678 inserted cleanup code appropriately for GDB use.
8679 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
8680 exception handler for Deep_Adjust or Deep_Finalize.
8681 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
8682 Raise_From_Controlled_Operation is available, use a call to that
8683 subprogram instead of a plain "raise Program_Error" node to raise
8684 Program_Error if an exception is propagated from an Adjust or Finalize
8686 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
8687 appears in the optional statement list of a triggering alternative, the
8688 scope actions can be inserted directly there, and not in the list that
8689 includes the asynchronous select itself.
8691 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8692 Robert Dewar <dewar@adacore.com>
8693 Hristian Kirtchev <kirtchev@adacore.com>
8695 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
8696 generated exception handler appropriately when debugging generated code.
8697 Deal properly with No_Exception_Propagation restriction mode.
8698 (Expand_N_Abort_Statement): Add an unchecked type conversion from
8699 System.Address to System.Tasking.Task_Id when processing the result of
8700 the predefined primitive _disp_get_task_id.
8701 (Expand_N_Asynchronous_Select): Clarify comment.
8702 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
8703 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
8704 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
8705 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
8706 privals and for generated call to Complete_Entry_Body, for better gdb
8708 (Copy_Result_Type): Utility to construct a parameter and result profile
8709 for protected functions whose return type is an anonymous access to
8711 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
8713 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
8714 point when the local-raise-to-goto transformation has taken place.
8716 2007-06-06 Javier Miranda <miranda@adacore.com>
8717 Nicolas Setton <setton@adacore.com>
8719 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
8720 functionality when the backend is generating code.
8721 Otherwise any serious error
8722 reported by the backend calling the frontend routine Error_Msg
8723 changes the Compilation_Mode to Check_Semantics, disables the
8724 functionality of this routine and causes the generation of
8725 spureous additional errors.
8727 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
8728 debugging information now generated by the compiler for fat-pointer
8730 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
8732 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
8734 2007-06-06 Thomas Quinot <quinot@adacore.com>
8736 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
8737 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8738 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8739 For a remote call to a function with a classwide return type, apply an
8740 E.4(18) check to the returned value.
8741 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
8742 stream attributes of the designated type of an RACW, as they are not
8743 dispatching primitive operations.
8745 2007-06-06 Geert Bosch <bosch@adacore.com>
8747 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
8749 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
8751 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
8752 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
8754 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
8756 2007-06-06 Javier Miranda <miranda@adacore.com>
8758 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
8759 attribute compiling package Ada.Tags under No_Run_Time_Mode.
8761 2007-06-06 Javier Miranda <miranda@adacore.com>
8763 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
8764 deallocation of class-wide interface objects.
8765 (Expand_Dispatching_Constructor_Call): Take into account that if the
8766 result of the dispatching constructor is an interface type, the
8767 function returns a class-wide interface type; otherwise the returned
8768 object would be actual. The frontend previously accepted returning
8769 interface types because Expand_Interface_Actuals silently performed
8770 the management of the returned type "as if" it were a class-wide
8772 (Expand_Dispatching_Constructor_Call): Replace call to
8773 Make_DT_Access_Action by direct call to Make_Function_Call.
8775 2007-06-06 Robert Dewar <dewar@adacore.com>
8776 Ed Schonberg <schonberg@adacore.com>
8778 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
8779 compute masking constant, since we now set Esize properly to the
8781 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
8782 to match the alignment.
8783 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
8784 packed arrays of 8 bits or less.
8786 * freeze.adb (Freeze_Entity): When freezing the formals of a
8787 subprogram, freeze the designated type of a parameter of an access type
8788 only if it is an access parameter.
8789 Increase size of C convention enumeration object
8790 (Freeze_Entity, array type case): Make sure Esize value is properly
8791 adjusted for the alignment if it is known.
8792 (Freeze_Entity, array type case): When checking bit packed arrays for
8793 the size being incorrect, check RM_Size, not Esize.
8794 (Freeze_Record_Type): Check for bad discriminated record convention
8795 (In_Exp_Body): Return true if the body is generated for a subprogram
8796 renaming, either an attribute renaming or a renaming as body.
8797 (Check_Itype): If the designated type of an anonymous access component
8798 is a non-protected subprogram type, indicate that it is frozen, to
8799 prevent out-of-scope freeze node at some subsequent call.
8800 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
8801 only if the subprogram is neither imported nor exported, as well as the
8802 NCA descriptor class if the subprogram is exported.
8804 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8805 Arnaud Charlet <charlet@adacore.com>
8806 Robert Dewar <dewar@adacore.com>
8807 Gary Dismukes <dismukes@adacore.com>
8809 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
8810 default initialization on an imported object, when there is no
8811 initialization call generated for it.
8812 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
8815 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
8816 Static_Elaboration_Desired.
8817 Remove pragma Thread_Body.
8818 Implement a new pragma No_Body
8819 Removes the Explicit_Overriding pragma
8820 Remove Optional_Overriding pragma
8821 (Prag): Deal with Universal_Aliasing.
8822 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
8823 Pragma_CIL_Constructor): New names.
8825 * sem_cat.adb (Validate_Object_Declaration): An initialization that
8826 uses the equivalent aggregate of a type must be treated as an implicit
8828 (Get_Categorization): Check a unit for pragma Preelaborate only if it
8829 has none of the other categories.
8830 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
8831 to apply Import to an object renaming declaration.
8833 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
8834 from a C++ class should be declared as limited and that it will be
8835 considererd limited.
8836 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
8837 should be declared as limited and that it will be considererd limited.
8838 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
8839 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
8840 (Analyze_Pragma): Deal with Universal_Aliasing.
8841 (Sig_Flags): Likewise.
8842 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
8843 (Overflow_Checks_Unsuppressed): New flag.
8844 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
8845 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
8846 case of JVM or .NET targets, and compiling user code.
8847 Add debugging convenience routine rv
8849 2007-06-06 Robert Dewar <dewar@adacore.com>
8851 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
8853 (Build_Elementary_Input_Call): For floating-point use right type in the
8854 absence of strange size or stream size clauses.
8855 (Build_Elementary_Write_Call): Same fix
8856 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
8857 set to value that does not match base type size.
8859 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8861 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
8862 object of a limited type can be initialized with a call to a function
8863 that returns in place. If the limited type has unknown discriminants,
8864 and the underlying type is a constrained composite type, build an actual
8865 subtype from the function call, as is done for private types.
8866 (Side_Effect_Free): An expression that is the renaming of an object or
8867 whose prefix is the renaming of a object, is not side-effect free
8868 because it may be assigned through the renaming and its value must be
8869 captured in a temporary.
8870 (Has_Controlled_Coextensions): New routine.
8871 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
8872 as is done for other limited types.
8873 (Non_Limited_Designated_Type): new predicate.
8874 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
8876 Remove all handling of with_type clauses.
8878 * par-ch10.adb: Remove all handling of with_type clauses.
8880 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
8881 checksum if the main source could not be parsed.
8882 (Loat_Unit): When processing a child unit, determine properly whether
8883 the parent unit is a renaming when the parent is itself a child unit.
8884 Remove handling of with_type clauses.
8886 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
8887 (Set_Is_Static_Coextension): New procedure.
8888 (Has_Local_Raise): New function
8889 (Set_Has_Local_Raise): New procedure
8890 (Renaming_Exception): New field
8891 (Has_Init_Expression): New flag
8892 (Delay_Finalize_Attach): Remove because flag is obsolete.
8893 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
8894 Remove all handling of with_type clauses.
8895 (Exception_Junk): Can now be set in N_Block_Statement
8897 2007-06-06 Vincent Celier <celier@adacore.com>
8898 Robert Dewar <dewar@adacore.com>
8900 * frontend.adb (Frontend): Return immediately if the main source could
8901 not be parsed, because of preprocessing errors.
8903 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
8904 (Gnat1drv): Exit with errors if the main source could not be parsed,
8905 because of preprocessing errors.
8906 (Check_Rep_Info): New procedure
8908 2007-06-06 Robert Dewar <dewar@adacore.com>
8910 * g-hesorg.ads, g-heasor.ads,
8911 g-busorg.ads, g-bubsor.ads: Update documentation
8912 GNAT.Heap/Bubble_Sort_G is now pure
8914 2007-06-06 Robert Dewar <dewar@adacore.com>
8916 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
8918 2007-06-06 Robert Dewar <dewar@adacore.com>
8919 Ed Schonberg <schonberg@adacore.com>
8921 * g-comlin.ads, g-comlin.adb:
8922 Add new warning for renaming of function return objects
8924 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
8925 (Tree_Read): Use size of object instead of type'object_size, since the
8926 latter is incorrect for packed array types.
8927 (Tree_Write): Same fix
8929 * opt.ads: Add new warning for renaming of function return objects
8930 (Generating_Code): New boolean variable used to indicate that the
8931 frontend as finished its work and has called the backend to process
8932 the tree and generate the object file.
8933 (GCC_Version): Is now private
8934 (Static_Dispatch_Tables): New constant declaration.
8935 (Overflow_Checks_Unsuppressed): New flag.
8936 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
8937 (List_Closure): New flag for gnatbind (-R)
8938 Zero_Formatting: New flag for gnatbind (-Z)
8939 (Special_Exception_Package_Used): New flag.
8940 (Warn_On_Unrepped_Components): New flag.
8942 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
8943 unit is a compilation unit, rather than relying on its scope, so that
8944 Standard can be renamed.
8945 (Analyze_Object_Renaming): Add new warning for renaming of function
8947 Also reject attempt to rename function return object in Ada 83 mode.
8948 (Attribute_Renaming): In case of tagged types, add the body of the
8949 generated function to the freezing actions of the type.
8950 (Find_Type): A protected type is visible right after the reserved word
8951 "is" is encountered in its type declaration. Set the entity and type
8952 rather than emitting an error message.
8953 (New_Scope): Properly propagate Discard_Names to inner scopes
8954 (Check_Nested_Access): New procedure.
8955 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
8956 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8958 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
8959 Add new warning for renaming of function return objects
8960 (Check_References): Suppress warnings for objects whose type or
8961 base type has Warnings suppressed.
8962 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
8963 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
8965 2007-06-06 Vincent Celier <celier@adacore.com>
8966 Emmanuel Briot <briot@adacore.com>
8967 Olivier Hainque <hainque@adacore.com>
8969 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
8970 absolute value of Header.Block_Size when displaying the freed physical
8972 (Allocate): Compute Storage_Address using Integer_Address, not
8973 Storage_Offset, because the range of Storage_Offset may not be large
8975 (Configure): New parameter Low_Level_Traces
8976 (Allocate, Deallocation, Free_Physically): Added low-level traces
8977 (Configure): new parameter Errors_To_Stdout.
8978 (Output_File): new subprogram
8979 (Deallocate, Dereference): Send error messages to the proper stream
8980 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
8981 documented. Previous code would send it to the current output file
8982 defined in GNAT.IO, which might not be stdout
8983 (Is_Valid): Adjust comment to mention that a positive reply means that
8984 Header_Of may be used to retrieve the allocation header associated with
8985 the subprogram Storage address argument. Return False early if this
8986 address argument is misaligned.
8988 2007-06-06 Vincent Celier <celier@adacore.com>
8990 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
8992 (ASIS_Main): New global variable
8993 (Get_Closure): New procedure
8994 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
8995 check, metric or pretty. Call Get_Closure in this case.
8996 (Check_Files): For GNAT LIST, check all sources of all projects when
8997 All_Projects is True.
8998 (GNATCmd): Accept -U for GNAT LIST
9000 2007-06-06 Vincent Celier <celier@adacore.com>
9002 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
9004 Correct error message when invocation of the linker fails
9005 Add explicit size clause for the C imported variables
9006 Object_List_File_Supported and Using_GNU_Linker to emphasize that
9007 we expect char size.
9008 Read target parameters earlier, since this is needed to set
9009 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
9012 2007-06-06 Vincent Celier <celier@adacore.com>
9015 Add 3 spaces before the default project directory when displaying
9016 the project search path.
9017 Add new command line switch '-l' to display license information.
9019 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
9021 * gmem.c: Add support for timestamps on memory operations.
9023 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
9024 operations (not used currently, just foundation for future
9025 enhancements). Add possibility to perform full dump of gmem.out file.
9026 (Print_Back_Traces): Declare accesses to root arrays constants since
9027 they aren't modified.
9028 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
9030 2007-06-06 Vincent Celier <celier@adacore.com>
9032 * gnatsym.adb: Update Copyright notice
9033 (Parse_Cmd_Line): Accept new switch -D
9034 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
9037 * prj.ads (Policy): New policy Direct
9038 (Yes_No_Unknown): New enumeration type
9039 (Project_Data): New component Libgnarl_Needed
9041 * prj-nmsc.adb (Check_For_Source): When recording a source file make
9042 use the untouched pathname casing.
9043 (Get_Directories): Ensure that the Display_Exec_Directory is using the
9044 proper casing on non case-sensitive platforms like Windows.
9045 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
9046 on all platforms, as it is not possible to know which one is allowed
9047 before processing the project files.
9048 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
9049 specified when symbol policy is Direct. Check that when there is a
9050 symbol file defined (either by default or with attribute
9051 Library_Symbol_File) it is not the same as the reference symbol file.
9052 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
9053 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
9055 (Record_Ada_Source): Record a source that has been locally removed in an
9058 * symbols.ads (Policy): New policy Direct
9060 * symbols-vms.adb (Initialize): Take new policy Direct in case
9063 2007-06-06 Vincent Celier <celier@adacore.com>
9065 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
9066 Correct obvious bug (return Dir; instead of return Directory;).
9067 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
9069 2007-06-06 Thomas Quinot <quinot@adacore.com>
9071 * g-pehage.adb (Produce): Open output files in Binary mode, so that
9072 they have UNIX line endings (LF only) even on Windows, and thus pass
9073 all GNAT style checks.
9075 2007-06-06 Emmanuel Briot <briot@adacore.com>
9077 * g-regpat.adb (Quote): Fix improper quoting of '.'
9079 2007-06-06 Thomas Quinot <quinot@adacore.com>
9081 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
9082 default, set False on a per-runtime basis.
9083 (Need_Netdb_Buffer): New constant.
9085 * g-socket.ads, g-socket.adb: Import new package
9086 GNAT.Sockets.Thin.Task_Safe_NetDB.
9087 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
9088 binding to obtain proper message.
9089 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
9090 Replace various occurrences of Arry (Arry'First)'Address with the
9091 equivalent Arry'Address (GNAT always follows implementation advice from
9093 (Get_Host_By_Address, Get_Host_By_Name,
9094 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
9095 instead, rely on platform-specific task safe netdb operations provided
9098 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
9099 parameter Process_Blocking_IO.
9100 (Host_Error_Messages): Add stub body.
9101 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9102 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
9103 Safe_Getservbyport): Move functions into new child package
9105 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
9106 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
9107 (In_Addr): Add alignment clause.
9109 2007-06-06 Robert Dewar <dewar@adacore.com>
9111 * g-trasym.ads, g-traceb.ads: Update list of supported targets
9112 Add note about symbolic traceback
9114 2007-06-06 Pascal Obry <obry@adacore.com>
9116 * hostparm.ads (Normalized_CWD): Use the host directory separator
9117 instead of the hardcoded forward slash which is not the proper
9118 character on Windows for example.
9121 2007-06-06 Vincent Celier <celier@adacore.com>
9122 Arnaud Charlet <charlet@adacore.com>
9124 * a-clrefi.adb, a-clrefi.ads: New files
9126 * impunit.adb: Add s-os_lib in the list of user visible units.
9127 (Non_Imp_File_Names_95): Add a-clrefi to this list
9128 Remove obsolete run-time entries.
9129 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
9130 "a-exetim" -- Ada.Execution_Time
9131 "a-extiti" -- Ada.Execution_Time.Timers
9133 * mlib-prj.ads, mlib-prj.adb
9134 (Build_Library): Use untouched object dir and library dir. At the
9135 same time makes sure that the checks are done using the canonical
9136 form. Removes hard-coded directory separator and use the proper host
9138 (Process_Project): Do not look in object directory to check if libgnarl
9139 is needed for a library, if there is no object directory.
9140 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
9142 (Build_Library): When invoking gnatbind, use a response file if the
9143 total size of the arguments is too large.
9145 * Makefile.rtl: (g-sttsne): New object file.
9146 Add entry for a-clrefi, s-utf_32, System.Exceptions
9148 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
9149 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
9150 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
9151 Change g-string to s-string, g-os_lib to s-os_lib
9152 Change all g-utf_32 references to s-utf_32
9154 2007-06-06 Tristan Gingold <gingold@adacore.com>
9155 Olivier Hainque <hainque@adacore.com>
9157 * init.c: Do not adjust IP of an imported VMS exception of ia64.
9158 LIB$STOP is called to raise an exception and the IP of the exception
9159 is the instruction right after the call.
9160 (__gnat_adjust_context_for_raise, AIX): Implement.
9161 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
9162 adjust_context_for_raise before Raise_From_Signal_Hanler.
9163 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
9164 siginfo is passed to the handler, necessary to let the zcx propagation
9165 engine unwind past it.
9167 2007-06-06 Olivier Hainque <hainque@adacore.com>
9169 * initialize.c (__gnat_initialize for vxworks): Update documentation
9170 on the ZCX support, using different sets of crtstuff objects than with
9173 2007-06-06 Robert Dewar <dewar@adacore.com>
9175 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
9177 (Layout_Type): Fix recomputation of size from alignment.
9179 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9180 Javier Miranda <miranda@adacore.com>
9182 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
9183 association in an instance.
9184 (Copy_Generic_Node): If the node is a string literal, no need to copy
9186 (Is_Generic_Formal): For a formal subprogram, the declaration is the
9187 grandparent of the entity.
9188 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
9189 to simplify handling of formal interfaces that derive from other formal
9191 (Instantiate_Subprogram_Body): The defining unit name of the body of
9192 the instance should be a defining identifier.
9193 (Install_Formal_Packages): make global to the package, for use in
9194 instantiations of child units.
9195 (Analyze_Package_Instantiation): Do not attempt to set information on an
9196 enclosing master of an entry when expansion is disabled.
9197 (Instantiate_Type): If the actual is a tagged synchronized type and the
9198 generic ancestor is an interface, create a generic actual for the
9199 corresponding record.
9200 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
9201 declaration, to ensure that the interface list is processed correctly.
9202 (Inline_Instance_Body): If enclosing scope is an instance body, remove
9203 its entities from visibiility as well.
9204 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
9205 given with a named association, analyze the expression only, not the
9206 discriminant association itself.
9207 (Reset_Entity): If the analysis of a selected component is transformed
9208 into an expanded name in the prefix of a call with parameters, do not
9209 transform the original node into an expanded name, to prevent visibility
9210 errors in the case of nested generics.
9211 (Check_Private_View): For an array type, check whether the index types
9212 may need exchanging.
9214 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9215 Vincent Celier <celier@adacore.com>
9217 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
9218 since both are separated.
9219 Add support for imported CIL packages.
9220 Add further special handling of "value_type" for CIL.
9221 Add special handling of pragma Import for CIL.
9223 * make.ads, make.adb: When switch -eS is used, direct all outputs to
9224 standard output instead of standard error, except errors.
9225 (Absolute_Path): Use untouched casing for the parent directory.
9226 (Add_Library_Search_Dir): Use the untouched directory name.
9227 (Add_Source_Search_Dir): Idem.
9228 (Change_To_Object_Directory): Update output to use proper casing.
9229 (Create_Binder_Mapping_File): Use the untouched filename to set
9231 (Gnatmake): Use untouched library and executable directory names.
9232 (Insert_Project_Sources): Use untouched filename for spec and body.
9233 (Is_In_Object_Directory): Use untouched object directory.
9234 (Mark_Directory): Idem.
9235 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
9236 contains the non-canonical filename in all cases.
9237 (Change_To_Object_Directory): In verbose mode, display the name of the
9238 object directory we're changing to.
9239 (Compile_Sources): Make sure, when a project file is used, to compile
9240 the body of the unit, when there is one, even when only the spec is
9241 recorded in an ALI file.
9242 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
9244 (Report_Compilation_Failed): New procedure
9245 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
9246 procedures moved from the spec to the body.
9247 (Extract_Failure): Removed, not used
9248 Replace explicit raises of exception Bind_Failed and Link_Failed with
9249 calls to Make_Failed with the proper message.
9250 Replace explicit raises of exception Compilation_Failed with calls to
9251 procedure Report_Compilation_Failed.
9252 (Initialize): Create mapping files unconditionally when using project
9255 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
9256 Pragma_CIL_Constructor): New names.
9258 * targparm.ads, targparm.adb
9259 (Compiler_System_Version): Removed, no longer used.
9260 (Get_Target_Parameters): Relax checks on system.ads validity. Add
9261 handling of two new system flags: JVM and CLI.
9263 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9264 Arnaud Charlet <charlet@adacore.com>
9266 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
9267 time, use the default s-interr body that provides interrupt support
9269 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
9270 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
9271 g-soccon.ads, and s-taprop.adb for the marte run time.
9272 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
9273 timers are supported on marte.
9274 (EH_MECHANISM for marte): Do not use ZCX.
9275 (THREADSLIB for marte): Use -lmarte.
9276 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
9277 Add mlib-tgt-specific.o to gnatmake objects
9278 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
9280 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
9281 6, either kernel or rtp, use a specialized version of s-osinte.ads.
9283 2007-06-06 Pascal Obry <obry@adacore.com>
9285 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
9287 2007-06-06 Vincent Celier <celier@adacore.com>
9289 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
9290 separator, use instead the proper host directory separator.
9291 (Copy_ALI_Files): Make sure that an already existing ALI file in the
9292 ALI copy dir is writable, before doing the copy.
9294 * mlib-utl.ads, mlib-utl.adb:
9295 (Gcc): If length of command line is too long, put the list of object
9296 files in a response file, if this is supported by the platform.
9297 (Ar): If invocation of the archive builder is allowed to be done in
9298 chunks and building it in one shot would go above an OS dependent
9299 limit on the number of characters on the command line, build the archive
9302 2007-06-06 Vincent Celier <celier@adacore.com>
9304 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
9305 of specified object file is not equal to base name of source.
9307 2007-06-06 Javier Miranda <miranda@adacore.com>
9308 Hristian Kirtchev <kirtchev@adacore.com>
9309 Ed Schonberg <schonberg@adacore.com>
9311 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
9312 the full type declaration.
9313 (Analyze_Component_Declaration): Add local variable E to capture the
9314 initialization expression of the declaration. Replace the occurences of
9315 Expression (N) with E.
9316 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
9317 limited interface object with a function call.
9318 (Array_Type_Declaration): If the declaration lacks subtype marks for
9319 indices, create a simple index list to prevent cascaded errors.
9320 (Is_Null_Extension): Ignore internal components created for secondary
9321 tags when checking whether a record extension is a null extension.
9322 (Check_Abstract_Interfaces): Add missing support for interface subtypes
9323 and generic formals.
9324 (Derived_Type_Declaration): Add missing support for interface subtypes
9325 and generic formals.
9326 (Analyze_Object_Declaration): If an initialization expression is
9327 present, traverse its subtree and mark all allocators as static
9329 (Add_Interface_Tag_Component): When looking for components that may be
9330 secondary tags, ignore pragmas that can appear within a record
9332 (Check_Abstract_Overriding): an inherited function that dispatches on
9333 result does not need to be overriden if the controlling type is a null
9335 (Mentions_T): Handle properly a 'class attribute in an anonymous access
9336 component declaration, when the prefix is an expanded name.
9337 (Inherit_Component): If the derivation is for a private extension,
9338 inherited components remain visible and their ekind should not be set
9340 (Find_Type_Of_Object): In the case of an access definition, always set
9341 Is_Local_Anonymous_Access. We were previously not marking the anonymous
9342 access type of a return object as a local anonymous type.
9343 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
9344 range with character literal bounds.
9345 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
9346 (Access_Subprogram_Declaration): Indicate that the type declaration
9347 depends on an incomplete type only if the incomplete type is declared
9349 (Analyze_Subtype_Declaration): Handle properly subtypes of
9350 synchronized types that are tagged, and that may appear as generic
9352 (Access_Subprogram_Declaration): An anonymous access to subprogram can
9353 appear as an access discriminant in a private type declaration.
9354 (Add_Interface_Tag_Components): Complete decoration of the component
9355 containing the tag of a secondary dispatch table and the component
9356 containing the offset to the base of the object (this latter component
9357 is only generated when the parent type has discriminants --as documented
9359 (Inherit_Components): Use the new decoration of the tag components to
9360 improve the condition that avoids inheriting the components associated
9361 with secondary tags of the parent.
9362 (Build_Discriminanted_Subtype): Indicate to the backend that the
9363 size of record types associated with dispatch tables is known at
9365 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
9366 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
9367 to include task, protected, and synchronized interfaces as limited
9369 (Process_Discriminants): Remove the setting of
9370 Is_Local_Anonymous_Access on the type of (anonymous) access
9371 discriminants of nonlimited types.
9372 (Analyze_Interface_Type_Declaration): Complete the decoration of the
9373 class-wide entity it is is already present. This situation occurs if
9374 the limited-view has been previously built.
9375 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
9377 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
9380 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9382 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
9383 of the type that specify the position of interface tags when the type
9384 inherits discriminated array components from the parent type.
9385 If a component is initialized with a box, check for the presence of a
9386 default expression in its declaration before using its default
9387 initialization procedure.
9388 (Resolve_Record_Aggregate): If a component is box-initialized, and the
9389 component type has a discriminants, create a partial aggregate for it
9390 by copying the discriminants of the component subtype.
9391 Reject attempt to initialize a discriminant with a box.
9392 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
9393 associated with dispatch tables is known at compile time.
9394 (Get_Value): If an association in a record aggregate has a box
9395 association, and the corresponding record component has a default
9396 expression, always copy the default expression, even when the
9397 association has a single choice, in order to create a proper
9398 association for the expanded aggregate.
9400 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9401 Robert Dewar <dewar@adacore.com>
9403 * par-ch12.adb (P_Generic_Associations): The source position of an
9404 Others association is that of the others keyword, not that of the token
9405 that follows the box.
9406 (P_Formal_Type_Definition): Handle formal access types that carry a
9409 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
9410 multiple identifier are present, save Scan_State before scanning the
9411 colon, to ensure that separate trees are constructed for each
9413 (P_Identifier_Declarations): For object declaration, set new flag
9414 Has_Init_Expression if initialization expression present.
9415 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
9416 Improve NOT NULL error messages
9418 2007-06-06 Robert Dewar <dewar@adacore.com>
9420 * par-ch4.adb: (P_Name): Recover from literal used as name
9422 2007-06-06 Vincent Celier <celier@adacore.com>
9424 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
9426 In the "not" case, recursive call with Complemented set to True.
9427 Do not allow "or" or "and" operators when Complemented is True.
9429 2007-06-06 Vincent Celier <celier@adacore.com>
9431 * prj.adb (Project_Empty): Gives default value for new component
9434 * prj-attr.ads: Minor reformatting
9436 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
9437 directory using the untouched casing.
9438 (For_All_Source_Dirs): Idem.
9440 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
9441 directories specified with switches -aP.
9442 (Add_Search_Project_Directory): New procedure
9443 (Initialize_Project_Path): Put the directories in table
9444 Search_Directories in the project search path.
9445 (Initialize_Project_Path): For VMS, transform into canonical form the
9448 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9450 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
9451 true if configurable run-time or No_Run_Time is set.
9452 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
9453 processing an unit which is not the one being compiled.
9455 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9457 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
9458 Replace UC by Ada.UC
9460 * s-bitops.adb: Get rid of System.Pure_Exceptions.
9461 Replace UC by Ada.UC
9463 2007-06-06 Robert Dewar <dewar@adacore.com>
9465 * scng.adb: (Check_End_Of_Line): Deal with very long lines
9467 2007-06-06 Robert Dewar <dewar@adacore.com>
9469 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
9470 Remove no longer used nodes.
9472 2007-06-06 Javier Miranda <miranda@adacore.com>
9473 Ed Schonberg <schonberg@adacore.com>
9474 Robert Dewar <dewar@adacore.com>
9476 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
9477 on obsolescent withed unit in case of limited-withed units.
9478 (Analyze_Compilation_Unit): Add guard to code that removed an
9479 instantiation from visibility, to prevent compiler aborts when
9480 instantiation is abandoned early on.
9481 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
9482 current unit being analyzed, and Distinguish local incomplete types
9483 from limited views of types declared elsewhere.
9484 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
9485 to state that the class-wide entity is shared by the limited-view
9487 (Analyze_With_Clause): Improve placement of flag for case of
9489 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
9490 manner similar to GNAT.Current_Exception. This is a violation of
9491 restriction (No_Exception_Propagation), and also inhibits the
9492 optimization of local raise to goto.
9493 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
9494 and if so set Most_Recent_Exception_Used flag in Opt, and also check
9495 for violation of restriction No_Exception_Propagation.
9497 2007-06-06 Javier Miranda <miranda@adacore.com>
9498 Hristian Kirtchev <kirtchev@adacore.com>
9499 Gary Dismukes <dismukes@adacore.com>
9501 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
9502 use of entity Exception_Occurrence if it is not available in the
9505 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
9506 concurrent types are declared within an Ada 2005 generic, build their
9507 corresponding record types since they are needed for overriding-related
9509 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
9510 protected type does not implement a task interface or a nonlimited
9512 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
9513 type does not implement a protected interface or a nonlimited interface.
9514 (Single_Task_Declaration, Single_Protected_Declaration): use original
9515 entity for variable declaration, to ensure that debugging information
9516 is correcty generated.
9517 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
9518 routines if the expander is not active.
9519 (Analyze_Task_Body): Mark all handlers to stop optimization of local
9520 raise, since special things happen for task exception handlers.
9522 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
9523 concurrent types declared within a generic.
9524 (Check_Dispatching_Operation): Do not emit warning about late interface
9525 operations in the context of an instance.
9526 (Check_Dispatching_Call): Remove restriction against calling a
9527 dispatching operation with a limited controlling result.
9528 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
9529 Register_Interface_DT_Entry by calls to Register_Primitive.
9530 (Check_Dispatching_Formals): Handle properly a function with a
9531 controlling access result.
9533 2007-06-06 Robert Dewar <dewar@adacore.com>
9534 Arnaud Charlet <charlet@adacore.com>
9536 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
9537 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
9538 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
9539 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
9540 message when using a VM, since this attribute is not supported.
9541 (Analyze_Record_Representation_Clause): Give unrepped component warnings
9543 * usage.adb: Add new warning for renaming of function return objects
9544 Indicate that -gnatwp and -gnatwP concern front-end inlining
9545 Add line for -gnatyg
9546 Add usage information for -gnatw.c/C
9548 2007-06-06 Robert Dewar <dewar@adacore.com>
9549 Ed Schonberg <schonberg@adacore.com>
9552 (Find_Var): Do not consider function call in test for infinite loop
9553 warning if warnings set off for function entity.
9554 (One_Bound): Do not create a temporary for a loop bound if it is a
9556 (Analyze_Assignment): Traverse the right hand side of an assignment and
9557 mark all allocators as static coextensions.
9558 (Analyze_Assignment): Exempt assignments involving a dispatching call
9559 to a function with a controlling access result from the check requiring
9560 the target to be class-wide.
9562 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9563 Ed Schonberg <schonberg@adacore.com>
9564 Robert Dewar <dewar@adacore.com>
9565 Javier Miranda <miranda@adacore.com>
9567 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
9568 chain of coextensions when an allocator serves as the root of such a
9570 (Propagate_Coextensions): Remove the test for the root being an
9572 (Resolve_Allocator): Add condition to ensure that all future decoration
9573 occurs on an allocator node. Add processing and cleanup for static
9575 (Valid_Conversion): If the operand type is the limited view of a
9576 class-wide type, use the non-limited view is available to determine
9577 legality of operation.
9578 (Ambiguous_Character): move to spec, for use elsewhere.
9579 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
9580 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
9582 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
9583 Do_Division_Check flag explicitly.
9584 (Resolve_Actuals): If the actual is of a synchronized type, and the
9585 formal is of the corresponding record type, this is a call to a
9586 primitive operation of the type, that is declared outside of the type;
9587 the actual must be unchecked-converted to the type of the actual
9588 (Resolve_Call): Kill all current values for any subprogram call if
9589 flag Suppress_Value_Tracking_On_Call is set.
9590 (Resolve_Type_Conversion): Generate error message the the operand
9591 or target of interface conversions come from a limited view.
9592 (Check_Infinite_Recursion): Ignore generated calls
9593 (Check_Allocator_Discrim_Accessibility): New procedure for checking
9594 that an expression that constrains an access discriminant in an
9595 allocator does not denote an object with a deeper level than the
9596 allocator's access type.
9597 (Resolve_Allocator): In the case of an allocator initialized by an
9598 aggregate of a discriminated type, check that associations for any
9599 access discriminants satisfy accessibility requirements by calling
9600 Check_Allocator_Discrim_Accessibility.
9601 (Resolve_Equality_Op): Handle comparisons of anonymous access to
9602 subprogram types in the same fashion as other anonymous access types.
9603 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
9604 message that is not a continuation message.
9605 (Resolve_Type_Conversion): Add missing support for conversion to
9607 (Resolve_Actuals): Introduce a transient scope around the call if an
9608 actual is a call to a function returning a limited type, because the
9609 resulting value must be finalized after the call.
9610 (Resolve_Actuals): If the call was given in prefix notations, check
9611 whether an implicit 'Access reference or implicit dereference must be
9612 added to make the actual conform to the controlling formal.
9614 2007-06-06 Robert Dewar <dewar@adacore.com>
9615 Javier Miranda <miranda@adacore.com>
9617 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
9618 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
9619 overriding of an inherited private subprogram now there is no need to
9620 inherit its dispatching slot and reduce the size of the dispatch table.
9621 Set_All_DT_Position now ensures that the same slot is now assigned to
9622 both entities. This is required to statically build the dispatch table.
9623 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
9624 of calling Set_All_DT_Position to re-evaluate the position of the
9625 entries in the dispatch table. Such reevaluation is not desired if
9626 the tagged type is already frozen.
9628 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9629 Gary Dismukes <dismukes@adacore.com>
9630 Robert Dewar <dewar@adacore.com>
9631 Javier Miranda <miranda@adacore.com>
9633 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
9634 reference acts as an lvalue when the attribute name modifies the prefix
9635 (Is_Coextension_Root): New routine.
9636 (Mark_Static_Coextensions): New routine.
9637 (Type_Access_Level): Revise code for checking the level of the
9638 anonymous access type of a return object.
9639 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
9640 (Matches_Prefixed_View_Profile): Remove the no longer necessary
9641 retrieval of the corresponding controlling record type.
9642 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
9643 concurrent types declared within a generic as well as class wide types.
9644 Emit a mode incompatibility error whenever a protected entry or routine
9645 override an interface routine whose first parameter is not of mode
9646 "out", "in out" or access to variable.
9647 (Overrides_Synchronized_Primitive): Rename to
9648 Find_Overridden_Synchronized_Primitive.
9649 (Collect_Interface_Components): New subprogram that collects all the
9650 components of a tagged record containing tags of secondary dispatch
9652 (Add_Global_Declaration): New procedure
9653 (Abstract_Interface_List): Handle properly the case of a subtype of a
9655 (Type_Access_Level): In the case of a type whose parent scope is a
9656 return statement, call Type_Access_Level recursively on the enclosing
9657 function's result type to determine the level of the return object's
9659 (Build_Elaboration_Entity): Build name of elaboration entity from the
9660 scope chain of the entity, rather than the unit name of the file name.
9661 (Check_Nested_Access): New procedure.
9662 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
9663 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9664 (Get_Renamed_Entity): Utility routine for performing common operation
9665 of chasing the Renamed_Entity field of an entity.
9667 2007-06-06 Robert Dewar <dewar@adacore.com>
9669 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
9671 (Check_A_Call): Add check for entry call which was causing blowup
9673 2007-06-06 Olivier Hainque <hainque@adacore.com>
9675 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
9676 special code on ia64-vms to handle major incompatibilities between the
9677 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
9678 this routine with a very different set of arguments and expectations on
9681 2007-06-06 Thomas Quinot <quinot@adacore.com>
9683 * socket.c (__gnat_close_signalling_fd): New function.
9684 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
9685 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
9686 New supporting functions for task safe Netdb operations.
9688 2007-06-06 Thomas Quinot <quinot@adacore.com>
9689 Olivier Hainque <hainque@adacore.com>
9691 * a-except-2005.ads, a-except-2005.adb
9692 (Raise_From_Controlled_Operation): New procedure in
9693 (private part of) Ada.Exceptions (standard runtime version). Used to
9694 provide informational exception message when Program_Error is raised as
9695 a result of an Adjust or Finalize operation propagating an exception.
9696 (Rmsg_28): Fix description for E.4(18) check.
9697 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9698 propagation starts, to let debuggers know about the event in a reliable
9700 Take the address of E and dereference to make sure it is homed on stack
9701 and prevent the stores from being deleted, necessary for proper
9702 debugger behavior on "break exception" hits.
9703 (Local_Raise): Moved to System.Exceptions
9705 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
9706 exception message from the current occurrence and raise Program_Error
9707 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
9709 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9710 Arnaud Charlet <charlet@adacore.com>
9712 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
9715 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
9716 priority associated to a lock.
9718 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
9719 assertion to take into account case of no abort restriction.
9720 (Initialize_Protection_Entries): Add initialization for the field
9721 New_Ceiling associated to the protected object.
9722 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
9725 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9726 since this function needs to be set consistently with Update_Exception.
9728 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9729 since this function needs to be set consistently with Update_Exception.
9731 * s-taskin.ads: Update comments on
9732 Interrupt_Server_Blocked_On_Event_Flag.
9733 (Unbind_Handler): Fix handling of server_task wakeup
9734 (Server_Task): Set self's state so that Unbind_Handler can take
9735 appropriate actions.
9736 (Common_ATCB): Now use a constant from System.Parameters to determine
9737 the max size of the Task_Image field.
9739 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
9740 Initialize_Analyzer function.
9741 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
9742 take into account case of no abort restriction.
9743 ([Vulnerable_]Complete_Master): Modify assertion.
9745 * s-tataat.adb (Finalize): Use the nestable versions of
9746 Defer/Undefer_Abort.
9748 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
9750 * s-tpobop.ads: Update comments.
9752 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
9753 of locking the object manually, to avoid inconsistencies between
9754 Lock/Unlock_Entry assertions.
9756 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
9758 application and System.Parameters.No_Abort is True.
9759 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
9760 (Unbind_Handler): Fix handling of server_task wakeup
9761 (Server_Task): Set self's state so that Unbind_Handler can take
9762 appropriate actions.
9764 2007-06-06 Thomas Quinot <quinot@adacore.com>
9766 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
9767 declarations instead of an explicit null body, for conciseness.
9769 2007-06-06 Robert Dewar <dewar@adacore.com>
9771 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
9772 illegal aggregate and the type is still Any_Composite.
9773 (Subtypes_Statically_Match): Fix problem of empty discriminant list
9775 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9777 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
9778 to prevent subsequent expansion.
9780 2007-06-06 Robert Dewar <dewar@adacore.com>
9782 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
9784 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9785 Robert Dewar <dewar@adacore.com>
9787 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
9789 (Write_Itype): Handle case of string literal subtype, which
9790 comes up in this context.
9791 (Update_Itype): when debugging expanded code, update sloc of itypes
9792 associated with defining_identifiers and ranges, for gdb use.
9793 (Sprint_Node_Actual): Add static keyword to object or exception
9794 declaration output if Is_Statically_Allocated is True.
9795 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
9796 or task body, so that the tree carries the proper Sloc information for
9798 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
9800 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9802 * s-secsta.adb (Chunk): Ensure this object has a static size known at
9803 compile time, to avoid dynamic memory allocation
9804 (Elaboration code): Only use dynamic memory allocation when needed.
9806 2007-06-06 Quentin Ochem <ochem@adacore.com>
9808 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
9810 (Stack_Analyzer): Added field "Overflow_Guard"
9811 (Task_Result): Added field "Overflow_Guard".
9812 (Index_Str): New constant.
9813 (Task_Name_Str): New constant.
9814 (Actual_Size_Str): New constant.
9815 (Pattern_Array_Element_Size): New constant.
9816 (Get_Usage_Range): New subprogram.
9817 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
9818 Now align the output.
9820 (Initialize): Added value for Overflow_Guard.
9821 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
9822 Update the value of the overflow guard according to the actual
9823 beginning of the pattern array.
9824 (Initialize_Analyzer): Added parameter Overflow_Guard.
9825 Take this parameter into accound when computing the max size.
9826 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
9827 (Report_Result): Removed extra useless procedure.
9828 Updated call to Output_Result.
9829 Moved full computation of the Task_Result here.
9831 2007-06-06 Thomas Quinot <quinot@adacore.com>
9833 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
9834 Thread_Blocking_IO, always True by default, set False on a per-runtime
9836 Add Windows-specific constants
9837 Add new constant Need_Netdb_Buffer.
9838 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9839 not, whether to use getXXXbyYYY_r.
9841 * gsocket.h: Add new constant Need_Netdb_Buffer.
9842 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9843 not, whether to use getXXXbyYYY_r.
9845 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9847 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
9848 than their first call.
9849 Add type Dummy_Communication_Block used in the generation of the pre-
9850 defined dispatching primitive _disp_asynchronous_select.
9851 (Storage_Element): Put Pragma Universal_Aliasing on it.
9853 2007-06-06 Vincent Celier <celier@adacore.com>
9855 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
9858 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
9859 letter if it is not followed by a '/' or a '\'.
9860 (Windows): New Boolean function
9862 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
9864 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
9866 (Containing_Directory): Raise Use_Error when the directory is a root
9868 (Extension): When returning the result, use a conversion to Result_Type,
9869 not a qualification.
9871 2007-06-06 Robert Dewar <dewar@adacore.com>
9873 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
9874 (Set_Style_Check_Options): Recognize new -gnatyg style switch
9876 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
9877 Warn_On_Non_Local_Exception to False, to turn off warnings for
9878 No_Exception_Propagation in ZFP runtime.
9879 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
9881 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
9883 2007-06-06 Vincent Celier <celier@adacore.com>
9885 * switch-b.adb (Scan_Binder_Switches): Add processing for new
9888 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
9889 (Scan_Make_Switches): Recognize new switch -aP
9891 2007-06-06 Matthew Gingell <gingell@adacore.com>
9892 Jose Ruiz <ruiz@adacore.com>
9894 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
9895 VxWorks task descriptor in the Ada run time, call a C subprogram
9896 (__gnat_get_stack_info) that extracts the required information.
9898 * sysdep.c: Back out temporary lynxos workaround.
9899 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
9900 time the stack information associated to the currently executing task.
9901 Only VxWorks systems require this function.
9903 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9905 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
9906 add the stack bias if the offset is computed from a frame address.
9907 (__gnat_backtrace): Adjust for above change.
9909 2007-06-06 Thomas Quinot <quinot@adacore.com>
9911 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
9912 PE_Non_Transportable_Actual.
9913 (By_Descriptor_Last): New constant.
9914 (By_Copy_Return): Likewise.
9916 2007-06-06 Vincent Celier <celier@adacore.com>
9918 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
9921 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
9922 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
9923 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
9924 Add missing comment for /OPTIMIZE=SPACE
9925 Add entry for OPTIMIZE=SPACE
9926 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
9927 Add documentation for new qualifiers corresponding to -gnatw.c/.C
9929 2007-06-06 Vincent Celier <celier@adacore.com>
9930 Robert Dewar <dewar@adacore.com>
9932 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
9935 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
9936 Document gnatbind switch -a
9937 (case Constructions): Document that variables declarations are allowed
9938 for previously declared variables.
9939 Fix external lib project example
9940 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
9941 Indicate that "#if not X or Y then" is not allowed in input files to
9943 Document gnatw.x and gnatw.X warning flags
9944 Mention -Winline switch to activate warnings when back-end inlining is
9946 Add gnatcheck rule descriptions
9947 Describe how to use the GNAT driver to call a tool on a closure.
9948 Describe how to run project-wide checks or metrics.
9949 Document gnatbind's -R option
9950 Updated to account for Ada 2005 support
9952 * gnat_rm.texi (Case Construction): Allow variable declarations for
9953 previously declared variables.
9954 (Representation Clauses and Pragmas): Lift restriction on alignment
9955 clauses for record types.
9956 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
9957 Document No_Exception_Propagation restriction
9958 Document No_Body pragma
9959 Updated to account for Ada 2005 support; corrected some typos
9960 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
9962 * gnat-style.texi: Make it clear that we never use mode IN for
9963 procedures or functions
9965 * ug_words: Add entries for -gnatw.x and -gnatw.X
9966 Add entries for -gnatw.c/.C
9968 2007-06-06 Pascal Obry <obry@adacore.com>
9969 Vincent Celier <celier@adacore.com>
9971 * makegpr.adb (Add_Archive_Path): Use untouched object and library
9972 dirs and library name.
9973 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
9975 (Build_Library): Idem.
9976 (Compile_Individual_Sources): Idem.
9977 (Compile_Link_With_Gnatmake): Idem.
9978 (Compile_Sources): Idem.
9979 (Get_Imported_Directories): Idem.
9980 (Link_Executables): Idem. Same change for the executable dir.
9981 (Check_Compilation_Needed): C_Source_Path new variable containing
9982 the canonical form of Source_Path to check against the source names
9983 in the dependency file.
9984 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
9985 verbose mode, display the name of the object directory we're changing
9987 (Saved_Switches): New name of table X_Switches
9988 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
9989 (Usage): New line for switch -aP
9990 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
9991 testing if a directory should be added to the search path.
9993 2007-06-06 Javier Miranda <miranda@adacore.com>
9995 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
9996 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
9997 declaration after freezing point of all its associated tagged types;
9998 otherwise such types are frozen too early.
10000 2007-06-06 Robert Dewar <dewar@adacore.com>
10002 * a-reatim.adb: Documentation addition
10004 * g-cgideb.adb: Minor code reorganization
10006 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
10007 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
10008 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
10010 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
10011 function. Change name New_Scope to Push_Scope
10012 (Get_Debug_Flag_K): Remove unused obsolete function.
10014 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
10017 * makeusg.adb: Update Copyright notice
10018 Add line for switch -aP
10020 * makeusg.adb: Fix wording of some usage messages
10022 * s-assert.adb (Raise_Assert_Failure): Add call to
10023 Debug_Raise_Assert_Failure.
10025 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
10026 (2, Standard'Alignment) for compatibility with AAMP (where alignment
10027 is restricted to 1).
10029 * s-wchjis.adb: Remove use of System.Pure_Exceptions
10031 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
10032 node location to No_Location when we're not debugging the expanded
10035 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
10037 * misc.c (enumerate_modes): Consider log2_b to always be one.
10039 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
10041 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
10043 2007-05-02 Pascal Obry <obry@adacore.com>
10045 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
10046 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
10047 encoding support of Stream_IO.
10048 (Write_Unit): Idem.
10050 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
10051 filename and corresponding encoding to match the OS requirement.
10052 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
10053 routine will fail on specific devices like CON: AUX: ...
10055 PR ada/29856: Add missing braces
10057 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
10060 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
10062 2007-04-21 Jan Hubicka <jh@suse.cz>
10064 * misc.c (gnat_expand_body): Don't call target for destructors,
10065 avoid redundant check on syntax errors.
10067 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
10069 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
10070 instead of checking GIMPLE_STMT_P in chain_next.
10072 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
10075 * system-linux-alpha.ads: Disable constant condition warning for the
10076 Default_Bit_Order variable.
10077 * system-linux-s390.ads: Likewise.
10078 * system-linux-s390x.ads: Likewise.
10079 * system-linux-sparc.ads: Likewise.
10081 2007-04-06 Javier Miranda <miranda@adacore.com>
10082 Matt Heaney <heaney@adacore.com>
10083 Robert Dewar <dewar@adacore.com>
10085 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10086 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
10087 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
10088 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
10089 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
10090 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
10091 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
10092 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
10093 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
10094 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
10095 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
10096 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
10097 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
10098 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
10099 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
10100 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
10101 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
10102 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
10103 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
10104 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
10105 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
10106 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
10107 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
10108 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
10109 s-taprop-tru64.adb, s-taprop-irix.adb,
10110 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
10111 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
10112 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
10113 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
10114 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
10115 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
10116 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
10117 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
10118 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
10119 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
10120 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
10121 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
10122 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
10123 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
10124 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
10125 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
10126 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
10127 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
10128 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
10129 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
10131 Update documentation.
10134 2007-04-06 Robert Dewar <dewar@adacore.com>
10136 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10137 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10138 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
10139 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10140 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
10141 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10142 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10143 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
10144 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10145 system-hpux-ia64.ads, targparm.adb,
10146 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
10148 * system.ads: Move Functions_Return_By_DSP to obsolete section,
10149 kept for bootstrap purposes only.
10151 2007-04-06 Arnaud Charlet <charlet@adacore.com>
10153 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10154 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
10155 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
10156 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
10158 2007-04-06 Robert Dewar <dewar@adacore.com>
10160 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
10161 (Local_Raise): New dummy procedure called when a raise is converted
10162 to a local goto. Used for debugger to detect that the exception
10165 * debug.adb: Document new d.g flag (expand local raise statements to
10166 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
10168 * exp_sel.adb: Use Make_Implicit_Exception_Handler
10170 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
10171 suppress warnings for unused handlers.
10172 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
10173 warnings for raise statements not handled locally.
10174 (Get_RT_Exception_Entity): New function
10175 (Get_Local_Call_Entity): New function
10176 (Find_Local_Handler): New function
10177 (Warn_If_No_Propagation): New procedure
10178 (Expand_At_End_Handler): Call Make_Implicit_Handler
10179 (Expand_Exception_Handlers): Major additions to deal with local handlers
10180 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
10181 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
10184 * exp_ch11.ads (Get_RT_Exception_Entity): New function
10185 (Get_Local_Call_Entity): New function
10187 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
10188 of restrictions that the binder will never suggest adding.
10190 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
10193 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
10194 be with'ed in the presence of pragma Restriction
10195 (No_Exception_Propagation).
10197 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
10199 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
10200 parameter, then the handler is not a suitable target for a local raise,
10201 and this is a violation of restriction No_Exception_Propagation.
10202 (Analyze_Handled_Statements): Analyze choice parameters in exception
10203 handlers before analyzing statement sequence (needed for proper
10204 detection of local raise statements).
10205 (Analyze_Raise_Statement): Reraise statement is a violation of the
10206 No_Exception_Propagation restriction.
10208 * s-rident.ads: Add new restriction No_Exception_Propagation
10210 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
10211 function, like Make_Exception_Handler but sets Local_Raise_Statements
10213 (Add_Unique_Serial_Number): Deal with case where this is called during
10214 processing of configuration pragmas.
10216 2007-04-06 Thomas Quinot <quinot@adacore.com>
10217 Pat Rogers <rogers@adacore.com>
10218 Pascal Obry <obry@adacore.com>
10220 * g-stsifd-sockets.adb: New file.
10222 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
10223 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
10224 g-socthi-vms.adb: Move signalling
10225 fd management to a nested package, so that they can conveniently be
10226 moved to a subunit that is shared across Windows, VMS, and VxWorks
10227 (Ada implementation) or completed with imported bodies from socket.c
10229 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
10231 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
10232 the signalling file descriptor.
10233 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
10234 signalling file descriptor.
10235 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
10236 instead of creating a pair of sockets for signalling here.
10238 * g-socthi.adb: Ditto.
10239 Set the runtime process to ignore SIGPIPEs on platforms that support
10240 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10242 * g-socthi-mingw.adb: Ditto.
10243 (WS_Version): Use Windows 2.2.
10244 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10246 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
10247 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10249 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
10250 added GNAT byte swapping facility
10251 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
10253 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
10255 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
10257 (__gnat_create_signalling_fds): New subprogram.
10258 Set the runtime process to ignore SIGPIPEs on platforms that support
10259 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10261 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
10262 Vincent Celier <celier@adacore.com>
10264 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
10265 New version of Ada.Calendar which supports the new upper bound of Ada
10266 time (2399-12-31 86_399.999999999).
10267 The following modifications have been made to the package:
10268 - New representation of time as count of nanoseconds since the start of
10269 Ada time (1901-1-1 0.0).
10270 - Target independent Split and Time_Of routines which service both
10271 Ada 95 and Ada 2005 code.
10272 - Target independent interface to the Ada 2005 children of Calendar.
10273 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
10274 - Handling of non-leap centenial years.
10275 - Updated clock function.
10276 - Updated arithmetic and comparison operators.
10278 * a-caldel.adb (To_Duration): Add call to target independent routine in
10279 Ada.Calendar to handle the conversion of time to duration.
10281 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
10283 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
10285 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
10286 targets do not have a natural time zone, GMT is used as a default.
10287 (__gnat_get_task_options): New.
10289 * a-direct.adb (Modification_Time): Add with and use clauses for
10290 Ada.Calendar and Ada.
10291 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
10292 since it is no longer needed.
10293 (Duration_To_Time): Removed.
10294 (OS_Time_To_Long_Integer): Removed.
10295 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
10296 Formatting Time_Of routines which automatically handle time zones,
10297 buffer periods and leap seconds.
10299 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
10300 target independent routines in Ada.Calendar.
10302 * a-calfor.ads, a-calfor.adb:
10303 Code cleanup and addition of validity checks in various routines.
10304 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
10307 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
10308 independent routine in Ada.Calendar.
10310 2007-04-06 Olivier Hainque <hainque@adacore.com>
10313 (convert_addresses): Adjust prototype and dummy definition to expect an
10314 extra file_name argument.
10316 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
10317 filling the now expected file_name argument with the appropriate
10319 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
10320 (tracebk): Array of void * instead of char *, corresponding to what
10321 convert_addresses expects.
10322 (exename): New static global, to hold the executable file name to be
10323 used in all convert_addresses invocations.
10324 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
10326 (__gnat_gmem_a2l_initialize): Resolve exename.
10327 (__gnat_convert_addresses): Use exename as the convert_addresses
10328 file_name argument.
10330 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
10331 "convert_addresses", now expecting a filename argument. Import the
10332 necessary entities to compute the filename to use and pass it to
10335 2007-04-06 Matt Gingell <gingell@adacore.com>
10337 * system-aix.ads: Back out previous change.
10338 (Functions_Return_By_DSP): Removed
10340 2007-04-06 Pascal Obry <obry@adacore.com>
10342 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
10343 or the monotonic used by Ada.Real_Time) to compute the sleep duration
10346 2007-04-06 Jose Ruiz <ruiz@adacore.com>
10348 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
10349 function. Its value changes in different VxWorks versions, and it is
10350 now handled by the function __gnat_get_task_options.
10352 * s-taprop-vxworks.adb (Create_Task): Call the function
10353 __gnat_get_task_options to get the required options for creating a task.
10355 2007-04-06 Pascal Obry <obry@adacore.com>
10356 Thomas Quinot <quinot@adacore.com>
10358 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
10359 dealing with filename.
10360 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
10361 filename from a standard string to a wide-string depending on the
10363 (__gnat_freopen): Idem.
10364 (__gnat_current_time): New function (wrapper for time(3) standard C
10367 * g-os_lib.ads (Current_Time): New function. Returns the current
10368 system time as an OS_Time value.
10370 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
10371 (Monotonic_Clock): Same.
10373 2007-04-06 Quentin Ochem <ochem@adacore.com>
10375 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
10377 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
10379 2007-04-06 Jose Ruiz <ruiz@adacore.com>
10381 * a-retide.adb: Add elaboration code to ensure that the tasking run
10382 time is initialized when using delay operations even when no task is
10385 2007-04-06 Javier Miranda <miranda@adacore.com>
10387 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
10388 component Num_Prim_Ops.
10389 (Set_Num_Prim_Ops): Removed.
10390 Remove all the assertions because all the routines of this
10391 package are inline always.
10392 (Get_Offset_Index): Add support to primary dispatch tables.
10393 Move the documentation about the dispatch table to a-tags.ads
10394 (Set_External_Tag): Removed
10395 (Inherit_TSD): Removed.
10396 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
10397 moved to a-tags.ads
10398 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
10399 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
10400 of the TSD field "Table" because this field has been renamed to
10402 (Inherit_CPP_DT): Removed.
10403 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
10404 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
10405 declarations have been moved to a-tags.ads
10406 (Check_Size): Removed.
10407 (Expanded_Name): Updated to get access to the new field of TSD
10408 containing the address of the expanded name.
10409 (Get_Access_Level/Set_Access_Level): Removed.
10410 (Get_Predefined_Prim_Op_Address): Removed.
10411 (Set_Predefined_Prim_Op_Address): Removed.
10412 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
10413 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
10414 (Set_Expanded_Name): Removed.
10415 (Inherit_DT): Removed.
10416 (Inherit_CPP_DT): Removed.
10417 (Set_RC_Offset): Removed.
10418 (Set_TSD): Removed.
10419 (Base_Address): New function that displaces "this" to point to the base
10420 of the object (that is, to point to the primary tag of the object).
10422 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10423 Javier Miranda <miranda@adacore.com>
10425 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
10426 anonymous access component, do not create a master_id if type already
10427 has one, as may happen if the type is a subcomponent of a packed array
10429 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
10430 Initialize_Tag): Remove code associated with the old CPP pragmas.
10431 CPP_Virtual and CPP_Vtable are no longer supported.
10432 (Build_Offset_To_Top_Internal): Add support for concurrent record types
10433 (Build_Offset_To_Top_Functions): Add support for concurrent record types
10434 (Freeze_Record_Type): Remove call to
10435 Init_Predefined_Interface_Primitives.
10436 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
10437 code required to initialize the tags of the secondary dispatch tables.
10438 This leaves the algoritm more clear.
10439 (Init_Secondary_Tags): Add support for concurrent record types
10440 (Make_Predefined_Primitive_Specs): Code cleanup.
10441 (Predefined_Primitive_Bodies): Code cleanup.
10442 (Build_Master_Renaming): New local subprogram.
10443 (Expand_N_Full_Type_Declaration): Build the master_id associated with
10444 anonymous access to task type components.
10445 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
10446 subtype indication are resolved during analysis, and must not be done
10448 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
10450 2007-04-06 Geert Bosch <bosch@adacore.com>
10451 Ed Schonberg <schonberg@adacore.com>
10452 Javier Miranda <miranda@adacore.com>
10453 Bob Duff <duff@adacore.com>
10455 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
10456 for conversion of a Float_Type'Truncation to integer.
10458 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
10459 check if a node is an attribute that can be handled directly by the
10461 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
10462 attributes that can be handled directly by the back end.
10463 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
10464 use new predicate Is_Access_Protected_Subprogram_Type.
10465 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
10466 and Unchecked_Union if it is generated as part of the default Output
10467 procedure for a type with default discriminants.
10468 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
10469 if we are compiling under restriction No_Dispatching_Calls.
10470 (Constrained): Use Underlying_Type, in case the type is private without
10471 discriminants, but the full type has discriminants.
10472 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
10473 call to Build_Get_Access_Level.
10474 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
10475 interface objects requires a call to the run-time subprogram that
10476 returns the base address of the object.
10477 (Valid_Conversion): Improve error message on illegal attempt to store
10478 an anonymous access to subprogram value into a record component.
10480 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
10482 (Simplify_Type_Conversion): New procedure that performs simplification
10483 of Int_Type (Float_Type'Truncation (X)).
10484 (Resolve_Type_Conversion): Call above procedure after resolving operand
10485 and before performing checks. This replaces the existing ineffective
10487 (Set_String_Literal_Subtype): When creating the internal static lower
10488 bound subtype for a string literal, use a newly created copy of the
10489 subtree representing the lower bound.
10490 (Resolve_Call): Exclude build-in-place function calls from transient
10491 scope treatment. Update comments to describe this exception.
10492 (Resolve_Equality_Op): In case of dispatching call check violation of
10493 restriction No_Dispatching_Calls.
10494 (Resolve_Call): If the call returns an array, the context imposes the
10495 component type of the array, and the function has one non-defaulted
10496 parameter, rewrite the call as the indexing of a call with a single
10497 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
10499 (Resolve_Actuals): If an actual is an allocator for an access parameter,
10500 the master of the created object is the innermost enclosing statement.
10501 (Remove_Conversions): For a binary operator, check if type of second
10502 formal is numeric, to check if an abstract interpretation is present
10503 in the case of exponentiation as well.
10505 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10506 Bob Duff <duff@adacore.com>
10508 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
10509 copying a parameter list in a call, set properly the First_Named_Formal
10510 and Next_Named_Formal fields in the new list and in the enclosing call.
10511 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
10512 names, to ease typing in the debugger. Improve comments.
10513 (Watch_Node): New variable, intended to be set in the debugger.
10514 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
10515 called when the watched node is created.
10516 (New_Node_Debugging_Output): Combined version of local procedures
10517 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
10518 with a parameter so that conditional breakpoints like "if Node = 12345"
10520 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
10521 Add Elist1 function
10523 2007-04-06 Thomas Quinot <quinot@adacore.com>
10524 Ed Schonberg <schonberg@adacore.com>
10525 Gary Dismukes <dismukes@adacore.com>
10527 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
10528 required for a conversion between two access-to-unconstrained-array
10530 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
10531 to discriminant constraints on discriminant objects. This rule must
10532 apply as well to discriminants of protected types in private components.
10533 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
10534 object of a null-excluding access type then don't require the
10535 the object declaration to have an expression and don't emit a
10538 2007-04-06 Arnaud Charlet <charlet@adacore.com>
10539 Eric Botcazou <botcazou@adacore.com>
10541 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
10544 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
10545 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
10548 * fe.h (Compiler_Abort): Add third parameter.
10550 * misc.c (internal_error_function): Build third argument from current
10551 input location and pass it to Compiler_Abort.
10553 2007-04-06 Gary Dismukes <dismukes@adacore.com>
10555 * cstand.adb (Create_Standard): When the target's storage unit size is
10556 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
10559 2007-04-06 Nicolas Roche <roche@adacore.com>
10561 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
10562 absolute path can have the following form: device:/a/b. In this case
10563 '/' should be inserted between the path and the filename.
10565 2007-04-06 Olivier Hainque <hainque@adacore.com>
10566 Eric Botcazou <botcazou@adacore.com>
10568 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
10569 VAR_DECL to a CONST_DECL we make for a public constant when we know the
10570 corresponding definition has created the so made visible variable.
10571 Handle anonymous access to protected subprogram.
10572 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
10573 object with an address clause volatile. Re-enable original fix.
10574 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
10576 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
10577 associated with either the Equivalent or Root type, instead of the
10579 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
10580 subtree for every field of a global record type.
10581 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
10582 discriminants, invoke again variable_size on its newly computed sizes.
10584 2007-04-06 Robert Dewar <dewar@adacore.com>
10585 Thomas Quinot <quinot@adacore.com>
10586 Ed Schonberg <schonberg@adacore.com>
10587 Bob Duff <duff@adacore.com>
10589 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
10590 (Next_Component_Or_Discriminant): New function and procedure
10591 (First_Index, First_Literal, Master_Id,
10592 Set_First_Index, Set_First_Literal, Set_Master_Id):
10593 Add missing Ekind assertions.
10594 (Is_Access_Protected_Subprogram_Type): New predicate.
10595 (Has_RACW): New entity flag, set on package entities to indicate that
10596 the package contains the declaration of a remote accecss-to-classwide
10598 (E_Return_Statement): This node type has the Finalization_Chain_Entity
10599 attribute, in case the result type has controlled parts.
10600 (Requires_Overriding): Add this new flag, because "requires
10601 overriding" is subtly different from "is abstract" (see AI-228).
10602 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
10603 Is_Abstract_Type. Make sure these are called only when appropriate.
10604 (Has_Pragma_Unreferenced_Objects): New flag
10606 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
10607 class-wide, the tag of the right-hand side must be an exact match, not
10608 an ancestor of that of the object on left-hand side.
10609 (Move_Activation_Chain): New procedure to create the call to
10610 System.Tasking.Stages.Move_Activation_Chain.
10611 (Expand_N_Extended_Return_Statement): Generate code to call
10612 System.Finalization_Implementation.Move_Final_List at the end of a
10613 return statement if the function's result type has controlled parts.
10614 Move asserts to Build_In_Place_Formal.
10615 (Move_Final_List): New function to create the call statement.
10616 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
10617 tagged type, replace generation of call to the run-time subprogram
10618 CW_Membership by call to Build_CW_Membership.
10619 (Expand_N_Return_Statement): Replace generation of call to the run-time
10620 subprogram Get_Access_Level by call to Build_Get_Access_Level.
10621 (Expand_N_Simple_Function_Return): Replace generation of call to the
10622 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10624 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
10625 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
10626 access to protected operations.
10627 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
10628 master and chain actual parameters to a build-in-place function call
10630 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
10632 (Make_Build_In_Place_Call_In_Allocator,
10633 Make_Build_In_Place_Call_In_Anonymous_Context,
10634 Make_Build_In_Place_Call_In_Assignment,
10635 Make_Build_In_Place_Call_In_Object_Declaration): Call
10636 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
10637 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
10638 stubbed procedure with a null body, replace the call with a null
10639 statement without using the full inlining machinery, for efficiency
10640 and to avoid invalid values in source file table entries.
10642 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
10643 renamings of calls to build-in-place functions.
10645 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
10646 provides the functionality of RTE_Available to record components.
10647 (RTU_Entity): The function Entity has been renamed to RTU_Entity
10648 to avoid undesired overloading.
10649 (Entity): New subprogram that returns the entity for the referened
10650 unit. If this unit has not been loaded, it returns Empty.
10651 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
10652 Remove no longer used entities.
10653 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
10654 (RE_Type_Specific_Data): New entity.
10655 (RE_Move_Any_Value): New entity.
10656 (RE_TA_A, RE_Get_Any_Type): New entities.
10657 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
10658 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
10659 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
10660 (Entity): New subprogram that returns the entity for the referened
10661 unit. If this unit has not been loaded, it returns Empty.
10662 (RTE): Addition of a new formal that extends the search to the scopes
10663 of the record types found in the chain of the package.
10665 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
10666 "abstract subprograms must be visible" message, whether or not the type
10667 is an interface; that is, remove the special case for interface types.
10668 (Analyze_Function_Return): Remove error message "return of task objects
10669 is not yet implemented" because this is now implemented.
10670 (Create_Extra_Formals): Add the extra master and activation chain
10671 formals in case the result type has tasks.
10672 Remove error message "return of limited controlled objects is not yet
10674 (Create_Extra_Formals): Add the extra caller's finalization list formal
10675 in case the result type has controlled parts.
10676 (Process_Formals): In case of access formal types there is no need
10677 to continue with the analysis of the formals if we already notified
10679 (Check_Overriding_Indicator): Add code to check overriding of predefined
10681 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
10682 flags for formals that do not require them,.
10683 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
10684 hidden entity is use visible or directly visible.
10685 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
10686 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
10687 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
10688 New_Overloaded_Entity): Split Is_Abstract flag into
10689 Is_Abstract_Subprogram and Is_Abstract_Type.
10691 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
10692 a return statement's finalization list to the caller's list, used for
10693 build-in-place functions with result type with controlled parts.
10694 Remove no longer used entities.
10696 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
10697 longer needed, because the full type is now limited, and therefore a
10698 pass-by-reference type.
10699 (Foreign_Task_Level): New constant.
10701 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
10702 move tasks from the activation chain belonging to a return statement to
10703 the one passed in by the caller, and update the master to the one
10704 passed in by the caller.
10705 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
10706 of unactivated tasks, so we don't kill the ones that are being returned
10707 by a build-in-place function.
10708 (Create_Task): Ignore AI-280 for foreign threads.
10710 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10711 Robert Dewar <dewar@adacore.com>
10712 Bob Duff <duff@adacore.com>
10713 Gary Dismukes <dismukes@adacore.com>
10715 * errout.adb (Unwind_Internal_Type): Use predicate
10716 Is_Access__Protected_Subprogram_Type.
10718 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
10719 (Freeze_Entity, packed array case): Do not override explicitly set
10720 alignment and size clauses.
10721 (Freeze_Entity): An entity declared in an outer scope can be frozen if
10722 the enclosing subprogram is a child unit body that acts as a spec.
10723 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
10724 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
10725 Remove all code for DSP option
10727 * layout.adb (Layout_Record_Type): Use First/
10728 Next_Component_Or_Discriminant
10729 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
10730 to handle properly the anonymous access case.
10732 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
10733 for all access attributes, because overload resolution should work the
10734 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
10735 causes the error message for the ambiguous "X'Access = Y'Access" and
10736 "X'Unrestricted_Access = Y'Access" and so forth to match.
10737 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
10738 now that anonymous access to protected operations have their own kind.
10739 (Resolve_Attribute): In case of dispatching call check the violation of
10740 restriction No_Dispatching_Calls.
10741 (Check_Array_Type): Check new -gnatyA array index style option
10743 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
10744 attempt to derive from a synchronized tagged type.
10745 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
10746 type, inherit the class-wide type already created, because it may
10747 already have been used in a self-referential anonymous access component.
10748 (Mentions_T): Recognize self-referential anonymous access components
10749 that use (a subtype of) the class-wide type of the enclosing type.
10750 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
10751 Derived_Type for Prev formal on call to
10752 Check_Anonymous_Access_Components rather than Empty.
10753 (Make_Incomplete_Type_Declaration): Add test for case where the type has
10754 a record extension in deciding whether to create a class-wide type,
10755 rather than just checking Tagged_Present.
10756 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
10757 to stand-alone object declarations as well as component declarations.
10758 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
10759 prevent accidental overwriting when enclosing package appears in
10760 a limited_with_clause.
10761 (Array_Type_Declaration): If the component type is an anonymous access,
10762 the associated_node for the itype is the type declaration itself.
10763 (Add_Interface_Tag_Components): Modified to support concurrent
10764 types with abstract interfaces.
10765 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
10766 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
10767 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
10768 to complete the decoration of synchronized interface types. Add also
10769 a call to Check_Abstract_Interfaces to verify the ARM rules.
10770 (Derive_Interface_Subprograms): Modified to support concurrent types
10771 with abstract interfaces.
10772 (Analyze_Subtype_Indication): Resolve the range with the given subtype
10773 mark, rather than delaying the full resolution depending on context.
10774 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
10775 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
10776 Array_Type_Declaration,Build_Derived_Record_Type,
10777 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
10778 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
10779 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
10780 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
10781 called only when appropriate.
10782 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
10784 (Analyze_Subtype_Declaration): For an access subtype declaration, create
10785 an itype reference for the anonymous designated subtype, to prevent
10786 scope anonmalies in gigi.
10787 (Build_Itype_Reference): New utility, to simplify construction of such
10790 2007-04-06 Vincent Celier <celier@adacore.com>
10792 * errutil.adb (Initialize): Initialize warnings table, if all warnings
10793 are suppressed, supply an initial dummy entry covering all possible
10796 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
10797 and start with only one, such as "-RTS=none".
10798 (Collect_Arguments): Do not check for sources outside of projects.
10799 Do not collect arguments if project is externally built.
10800 (Compile_Sources): Do nothing, not even check if the source is up to
10801 date, if its project is externally built.
10802 (Compile): When compiling a predefined source, add -gnatpg
10803 as the second switch, after -c.
10804 (Compile_Sources): Allow compilation of Annex J renames without -a
10805 (Is_In_Object_Directory): Check if the ALI file is in the object
10806 even if there is no project extension.
10807 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
10808 gnatbind if the ALI file effectively exists.
10809 (Initialize): Add the directory where gnatmake is invoked in front of
10810 the path if it is invoked from a bin directory, even without directory
10811 information, so that the correct GNAT tools will be used when spawned
10812 without directory information.
10814 * makeusg.adb: Change switch -S to -eS
10815 Add lines for new switches -we, -wn and -ws
10816 Add line for new switch -p
10818 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
10819 Treat_As_Error and there are warnings.
10821 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
10822 -gnatww Change gnatmake switch -S to -eS
10823 (Scan_Make_Switches): Code reorganisation. Process separately multi
10824 character switches and single character switches.
10825 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
10826 False when switch is not recognized by gnatmake.
10827 (Scan_Make_Switches): Set Setup_Projects True when -p or
10828 --create-missing-dirs is specified.
10830 * fname.adb (Is_Predefined_File_Name): Return True for annex J
10831 renamings Calendar, Machine_Code, Unchecked_Conversion and
10832 Unchecked_Deallocation only when Renamings_Included is True.
10834 * par.adb: Allow library units Calendar, Machine_Code,
10835 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
10836 when -gnatg is not specified.
10837 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
10838 there is no need to generate always a record_definition_node in case
10839 of synchronized interface types.
10840 (SIS_Entry_Active): Initialize global variable to False
10841 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
10842 indicate cases where AI-447 says "not null" is legal.
10844 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
10846 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
10847 files with with several lines starting with the object fileb name.
10848 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
10850 (Initialize): Add the directory where gprmake is invoked in front of the
10851 path, if it is invoked from a bin directory or with directory
10852 information, so that the correct GNAT tools will be used when invoked
10854 (Check_Compilation_Needed): Process correctly backslashes on Windows.
10856 * vms_data.ads: Update switches/qualifiers
10858 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10859 Thomas Quinot <quinot@adacore.com>
10862 If the array component is a discriminated record, the array aggregate
10863 is non-static even if the component is given by an aggregate with
10865 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
10866 (Convert_Aggr_In_Allocator): If the allocator is for an access
10867 discriminant and the type is controlled. do not place on a finalization
10868 list at this point. The proper list will be determined from the
10870 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
10871 initialize record controller if needed, before the components, to ensure
10872 that they are properly finalized.
10873 (Build_Record_Aggr_Code): For the case of an array component that has a
10874 corresponding array aggregate in the record aggregate, perform sliding
10877 2007-04-06 Javier Miranda <miranda@adacore.com>
10878 Gary Dismukes <dismukes@adacore.com>
10879 Ed Schonberg <schonberg@adacore.com>
10881 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
10882 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
10884 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
10885 accessibility on class-wide allocators if the allocator occurs at the
10886 same scope level as the allocator's type. The check is guaranteed to
10887 succeed in that case, even when the expression originates from a
10888 parameter of the containing subprogram.
10889 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
10890 under No_Dispatching_Calls restriction. During the semantic analysis
10891 we already notified such violation.
10892 (Tagged_Membership): Constant folding. There is no need to check
10893 the tag at run-time if the type of the right operand is non
10894 class-wide abstract.
10895 Replace call to Is_Ancestor by call to Is_Parent
10896 to support concurrent types with interface types.
10897 (Expand_N_Allocator): Add an assertion associated with the generation
10899 (Expand_N_Slice): Do not enable range check to nodes associated
10900 with the frontend expansion of the dispatch table.
10901 (Is_Local_Access_Discriminant): Subsidiary function to
10902 Expand_N_Allocator.
10903 (Tagged_Membership): Replace generation of call to the run-time
10904 subprogram CW_Membership by call to Build_CW_Membership.
10905 (Expand_Allocator_Expression): Replace generation of call to the
10906 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10908 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
10909 initialize most the TSD components by means of an aggregate.
10910 Modify the declaration of the object containing the TSD
10911 because we now expand code that has a higher level of abstraction.
10912 The TSD has a discriminant containing the Inheritance Depth Level,
10913 value that is used in the membership test but also to fix the size
10914 of the table of ancestors.
10915 (Expand_Interface_Conversion): Insert function body at the closest place
10916 to the conversion expression, to prevent access-before-elaboration
10917 errors in the backend.
10918 Code improved to reduce the size of the dispatch table if
10919 compiling under restriction No_Dispatching_Calls plus code cleanup.
10920 Code reorganization plus removal of calls to Set_Num_Prim_Ops
10921 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
10922 (Expand_Dispatching_Call): Minor code reorganization plus addition of
10923 code to return immediately if compiling under No_Dispatching_Calls
10925 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
10926 CPP_Virtual and CPP_Vtable are no longer supported.
10927 (Expand_Interface_Conversion): Add missing support for interface type
10929 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
10930 Is_Parent to support concurrent types with interfaces.
10931 (Init_Predefined_Interface_Primitives): Removed.
10932 (Make_Secondary_DT): Modified to support concurrent record types.
10933 (Set_All_DT_Position): Modified to support concurrent record types.
10934 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
10935 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
10936 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
10937 with CW_Membership.
10938 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
10939 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
10940 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
10941 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
10942 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
10943 (Expand_Dispatching_Call): Replace generation of call to the run-time
10944 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
10945 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
10947 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
10948 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
10949 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
10950 Build_Set_Prim_Op_Address.
10951 (Get_Remotely_Callable): Subprogram removed.
10952 (Init_Predefined_Interface_Primitives): Replace generation of call to
10953 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
10956 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
10957 First (Parameter_Associations ()) with the call to First_Actual that
10958 returns an actual parameter expression for both named and positional
10961 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
10962 check violation of restriction No_Dispatching_Calls.
10963 (Check_Controlling_Type): A formal of a tagged incomplete type is a
10964 controlling argument.
10966 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
10967 First/Next_Component_Or_Discriminant
10968 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
10969 (Find_Implemented_Interface): Removed. All the calls to this subprogram
10970 specify Any_Limited_Interface, and this functionality is already
10971 provided by the function Has_Abstract_Interfaces.
10972 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
10973 support concurrent types implementing interfaces.
10974 (Find_Implemented_Interface): Removed. All the calls to this subprogram
10975 specify kind Any_Limited_Interface, and this functionality is already
10976 provided by the function Has_Abstract_Interfaces.
10977 (Remove_Side_Effects): replace Controlled_Type by
10978 CW_Or_Controlled_Type whenever the issue is related to
10979 using or not the secondary stack.
10981 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
10982 P_Interface_Type_Definition to fulfill the new interface (the formal
10983 Is_Synchronized is no longer required).
10985 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
10986 Update dependencies.
10988 * exp_atag.ads, exp_atag.adb: New file
10990 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10991 Bob Duff <duff@adacore.com>
10992 Cyrille Comar <comar@adacore.com>
10994 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
10995 anonymous, use finalization list of enclosing dynamic scope.
10996 (Expand_N_Package_Declaration): For a library package declaration
10997 without a corresponding body, generate RACW subprogram bodies in the
10998 spec (just as we do for the task activation call).
10999 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
11000 Is_Abstract_Type. Make sure these are called only when appropriate.
11001 Remove all code for DSP option
11002 (CW_Or_Controlled_Type): new subprogram.
11004 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11005 Ed Schonberg <schonberg@adacore.com>
11006 Gary Dismukes <dismukes@adacore.com>
11008 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
11009 parameter. If it is set to true, return a result capped according to
11010 the global upper bound for the index of an entry family.
11011 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
11012 (Build_Find_Body_Index): Adjust for above change.
11013 (Entry_Index_Expression): Likewise.
11014 (Is_Potentially_Large_Family): New function extracted from...
11015 (Collect_Entry_Families): ...here. Call it to detect whether the family
11016 is potentially large.
11017 (Build_Entry_Count_Expression): If the family is potentially large, call
11018 Family_Size with 'Cap' set to true.
11019 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
11020 a protected version of an operation declared in the private part of
11021 a protected object, because they may be invoked through a callback.
11022 (Set_Privals): If the type of a private component is an anonymous access
11023 type, do not create a new itype for each protected body.
11024 If the body of a protected operation creates
11025 controlled types (including allocators for class-widetypes), the
11026 body of the corresponding protected subprogram must include a
11028 (Build_Activation_Chain_Entity): Build the chain entity for extended
11030 (Type_Conformant_Parameters): Use common predicate Conforming_Types
11031 to determine whether operation overrides an inherited primitive.
11032 (Build_Wrapper_Spec): Add code to examine the parents while looking
11033 for a possible overriding candidate.
11034 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
11035 hold an actual parameter value since its initialization is separated
11036 from the the declaration. Prevents errors on null-excluding access
11039 2007-04-06 Thomas Quinot <quinot@adacore.com>
11040 Pablo Oliveira <oliveira@adacore.com>
11042 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
11043 Do an Unchecked_Conversion to handle the passage from the Underlying
11044 Type to the Base Type when calling Build_To_Any_Call and
11045 Build_From_Any_Call.
11046 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
11047 E_Constant, depending upon Variable formal.
11048 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11049 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
11050 parameter that requires an extra constrained parameter, declare
11051 temporary for actual as a variable, not a constant.
11052 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
11053 the unit being compiled is the one that contains the stub type.
11054 Change primitive operation name for the RACW associated with a RAS
11055 from Call to _Call so it cannot clash with any legal identifier.
11056 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
11058 (Append_RACW_Bodies): New subprogram.
11059 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
11060 Add_Receiving_Stubs_To_Declarations functions.
11061 When expanding a package body, this list correspond to the
11062 statements in the HSS at the end of the pacakge.
11063 When expanding a package spec, this list correspond to the
11065 (Add_Receiving_Stubs_To_Declarations): Append the function
11066 registering the receiving stubs at the end of the 'Stmts' list.
11067 (RCI_Package_Locator): Pass the new Version generic formal when
11068 instantiating a RCI_Locator package.
11069 (Build_From_Any_Function): To compute the High bound for an
11070 unconstrained array actual, we add the Low bound with the length.
11071 Thus we must convert the low bound and the length to an appropriate
11072 type before doing the sum.
11073 (Build_Subprogram_Receiving_Stubs, PolyORB):
11074 * Retrieve the extra formals parameters at the
11075 end of the parameter stream.
11076 * Use Move_Any_Value to write back out parameters
11077 after executing the request as it is more efficient
11078 than Copy_Any_Value.
11079 * Build the any containing Extra Formals with the
11080 appropriate typecode.
11081 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
11082 empty Component_List.
11083 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
11084 the tree the declaration for an object that serves as actual parameter
11085 in server-side stubs.
11086 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11087 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11088 Use Build_Actual_Object_Declaration to prepare the actuals.
11089 (Add_Parameter_To_NVList): Set the parameter mode to In for
11090 Extra Constrained Parameters.
11091 (Build_General_Calling_Stubs): Set the parameter type to boolean for
11092 Extra Constrained parameters.
11093 (Build_To_Any_Function, Build_From_Any_Function,
11094 Built_TypeCode_Function): When Typ is implicit, call the correct
11095 function with the first not implicit parent type.
11096 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
11097 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
11098 typecode from the Etype. Therefore we retrieve the correct typecode
11099 with a call to Get_Any_Type.
11100 (Copy_Specification): Do controlling formal type substitution based on
11101 Is_Controlling_Formal flag, instead of caller-provided object type.
11102 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
11103 a RACW primitive operation, we might get a subprogram declaration for an
11104 ancestor of the RACW designated type (not for the designated type
11105 itself), in the case where this operation is inherited. In this case we
11106 have no easy means of determining the original tagged type for which
11107 the primitive was declared, so instead we now rely on
11108 Copy_Specification to use the Is_Controlling_Formal flag to determine
11109 which formals require type substitution.
11111 2007-04-06 Robert Dewar <dewar@adacore.com>
11112 Ed Schonberg <schonberg@adacore.com>
11114 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
11115 GNAT.Current_Exception are not allowed if pragma Restrictions
11116 (No_Exception_Propagation) is set and in any case make the associated
11117 handler unsuitable as a target for a local raise statement.
11118 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
11119 run-time subprogram CW_Membership by call to Build_CW_Membership.
11120 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
11121 by a function call, a temporary must be created before expanding the
11122 Constructor_Call itself, to prevent out-of-order elaboration in the
11123 back-end when stack checking is enabled..
11125 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11127 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
11128 result are the bounds of the left operand, not the right.
11130 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11133 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
11134 discriminant defaults.
11135 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
11136 (Make_Component_List_Attributes): Ditto.
11138 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11139 Bob Duff <duff@adacore.com>
11141 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
11142 an association with a box as providing a value even though the
11143 initialization procedure for the type is not available.
11144 (Resolve_Record_Aggregate): Check that a choice of an association with a
11145 box corresponds to a component of the type.
11146 (Resolve_Record_Aggregate): Split Is_Abstract flag into
11147 Is_Abstract_Subprogram and Is_Abstract_Type.
11149 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
11152 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
11153 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
11154 called only when appropriate.
11156 2007-04-06 Olivier Hainque <hainque@adacore.com>
11158 * g-alleve.ads (Low Level Vector type definitions): Map each to the
11159 associated vector view instead of all to the unsigned char view.
11161 * g-altcon.adb (Generic_Conversions): New internal generic package,
11162 offering facilities for all the Vector/View conversion routines
11163 implemented by this unit.
11164 (To_View/To_Vector - all versions): Reimplemented in a systematic
11165 manner, using the internal Generic_Conversions facilities.
11167 2007-04-06 Pascal Obry <obry@adacore.com>
11169 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
11171 (Create): Free the source string before storing the new one.
11173 2007-04-06 Vincent Celier <celier@adacore.com>
11175 * g-debpoo.adb (Validity): New package with a complete new
11176 implementation of subprograms Is_Valid and Set_Valid.
11177 (Is_Valid): Move to local package Validity
11178 (Set_Valid): Move to local package Validity
11180 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11181 Pablo Oliveira <oliveira@adacore.com>
11183 * g-expect.adb (Get_Command_Output): When expanding the output buffer
11184 we must ensure that there is enough place for the new data we are going
11187 2007-04-06 Thomas Quinot <quinot@adacore.com>
11189 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
11192 2007-04-06 Jose Ruiz <ruiz@adacore.com>
11193 Vincent Celier <celier@adacore.com>
11195 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
11196 (Stack_String): Add this String that contains the name of the Stack
11197 package in the project file.
11198 (Packages_To_Check_By_Stack): Add this list that contains the packages
11199 to be checked by gnatstack, which are the naming and the stack packages.
11200 (Check_Files): If no .ci files were specified for gnatstack we add all
11201 the .ci files belonging to the projects, including binder generated
11203 (Non_VMS_Usage): Document that gnatstack accept project file switches.
11204 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
11205 Add gnatstack to the list of commands that use project file related
11206 switches, and get the single attribute Switches from the stack package
11207 in a project file when calling gnatstack. Parse the -U flag for
11208 processing files belonging to all projects in the project tree.
11209 Remove all processing for command Setup
11211 * prj-attr.adb: Add new package Stack with single attribute Switches
11213 * vms_conv.ads (Command_Type): Add command Stack.
11214 Move to body declarations that are only used in the body: types Item_Id,
11215 Translation_Type, Item_Ptr, Item and its subtypes.
11217 * vms_conv.adb: (Initialize): Add data for new command Stack.
11218 Add declarations moved from the spec: types Item_Id, Translation_Type,
11219 Item_Ptr, Item and its subtypes.
11220 (Cargs_Buffer): New table
11221 (Cargs): New Boolean global variable
11222 (Process_Buffer): New procedure to create arguments
11223 (Place): Put character in table Buffer or Cargs_Buffer depending on the
11225 (Process_Argument): Set Cargs when processing qualifiers for GNAT
11227 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
11228 empty, for table Cargs_Buffer.
11229 (Initialize): Remove component Setup in Command_List
11231 2007-04-06 Vincent Celier <celier@adacore.com>
11233 * gprep.adb (Process_Files.Process_One_File): Use full file name when
11234 issuing pragma Source_Reference.
11236 2007-04-06 Emmanuel Briot <briot@adacore.com>
11238 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
11239 [[:xdigit:]] character class.
11240 Also raise an exception when an invalid character class is used.
11242 2007-04-06 Pascal Obry <obry@adacore.com>
11244 * i-cstrea.ads: (fopen): Add encoding parameter.
11246 Change reference from a-sysdep.c to sysdep.c in comment.
11247 Update copyright notice.
11248 This set of patch add support for the encoding form parameter.
11250 * mingw32.h (S2WSU): New macro to convert from a string to a
11251 wide-string using the UTF-8 encoding. The S2WS macro supports now only
11252 standard 8bits encoding.
11253 (WS2SU): As above but converting from wide-sring to string.
11254 This is needed as it is necessary to have access to both versions in the
11255 runtime for the form parameter encoding support.
11256 This set of patch add support for the encoding form parameter.
11257 (S2WS): Improve implementation to handle cases where the filename is not
11258 UTF-8 encoded. In this case we default to using the current code page
11259 for the conversion.
11261 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
11262 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
11263 the constants defined in adaint.h.
11264 (fopen): Add encoding parameter.
11267 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
11268 encoding. This is needed for the Reset routine (freopen low level-call).
11270 * s-fileio.adb (Open): Decode encoding form parameter and set the
11271 corresponding encoding value into AFCB structure.
11272 (Reset): Pass the encoding value to freopen.
11273 (Close): Move the call to Lock_Task to the beginning of the procedure.
11275 2007-04-06 Geert Bosch <bosch@adacore.com>
11276 Robert Dewar <dewar@adacore.com>
11278 * i-fortra.ads: Add Double_Complex type.
11280 * impunit.adb: (Is_Known_Unit): New function
11281 Add Gnat.Byte_Swapping
11283 Add new Ada 2005 units
11284 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
11285 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
11286 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
11287 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
11289 * impunit.ads (Is_Known_Unit): New function
11291 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
11292 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
11293 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
11294 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
11295 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
11296 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
11299 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
11301 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
11303 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11304 Arnaud Charlet <charlet@adacore.com>
11306 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
11307 __gnat_adjust_context_for_raise.
11308 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
11309 implementation of floating point operations as native x86 targets.
11310 So the FPU should be initialized in the same way using finit. Fix
11311 floating point operations accuracy issues.
11312 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
11313 member in struct sigaction, so as to avoid warning for incompatible
11316 2007-04-06 Serguei Rybin <rybin@adacore.com>
11318 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
11319 switches from previously loaded tree
11321 2007-04-06 Thomas Quinot <quinot@adacore.com>
11323 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
11324 cases where a given dependency has a body or not.
11325 (Write_With_File_Names): New subprogram, common code for the two cases
11328 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11329 Javier Miranda <miranda@adacore.com>
11331 * lib-xref.ads, lib-xref.adb:
11332 Modify the loop that collects type references, to include interface
11333 types that the type implements. List each of these interfaces when
11334 building the entry for the type.
11335 (Generate_Definition): Initialize component Def and Typ of new entry
11336 in table Xrefs, to avoid to have these components unitialized.
11337 (Output_References): Split Is_Abstract flag into
11338 Is_Abstract_Subprogram and Is_Abstract_Type.
11339 (Generate_Reference): Add barrier to do not generate the warning
11340 associated with Ada 2005 entities with entities generated by the
11343 2007-04-06 Robert Dewar <dewar@adacore.com>
11344 Arnaud Charlet <charlet@adacore.com>
11345 Vincent Celier <celier@adacore.com>
11347 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
11348 Update 'Exception Handling Control' chapter which was outdated.
11349 Minor fix to documentation of -gnatwq
11350 Remove section "Adapting the Run Time to a New C++ Compiler" because
11351 it is now obsolete.
11352 Add passage on need of -nostart-files in some non-ada-main cases.
11353 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
11354 Update documentation about Interfacing with C++
11355 Add documentation for new gnatmake switch -p
11356 Add missing protocol part in URLs.
11358 Document pragma Compile_Time_Error
11359 Add documentation for Object_Size indicating that stand alone
11360 objects can have a larger size in some cases.
11361 Add node for GNAT.Byte_Swapping, GNAT.SHA1
11362 Update reference to the Ravenscar profile.
11363 Document pragma Unreferenced_Objects
11365 * gnat-style.texi: Fix typo
11367 2007-04-06 Vincent Celier <celier@adacore.com>
11369 * mlib.adb (Building_Library): Only output "building a library..." in
11372 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
11373 files in verbose mode.
11375 * mlib-utl.adb (Ar): Only output the first object files when not in
11377 (Gcc): Do not display all the object files if not in verbose mode, only
11380 2007-04-06 Robert Dewar <dewar@adacore.com>
11382 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
11383 it no longer destroys the contents of Name_Buffer or Name_Len and
11384 non-standard and invalid names are handled better.
11385 (Get_Decoded_Name_String): Improve performance by using
11386 Name_Has_No_Encodings flag in the name table.
11387 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
11388 Used for debugging printouts.
11390 2007-04-06 Robert Dewar <dewar@adacore.com>
11391 Javier Miranda <miranda@adacore.com>
11392 Bob Duff <duff@adacore.com>
11394 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
11395 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11396 there is no need to generate always a record_definition_node in case
11397 of synchronized interface types.
11398 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
11399 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
11400 illegal in Ada 95, in cases where it is legal. Change the warnings to
11401 errors in other cases. Don't give the error unless the "not null"
11402 parses properly. Correct the source position at which the error occurs.
11403 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
11404 P_Null_Exclusion, to suppress "not null" warnings.
11405 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
11406 associated goto statements.
11408 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
11411 * scans.ads (Type_Token_Location): New flag
11413 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
11414 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
11415 P_Null_Exclusion, to suppress "not null" warnings.
11417 2007-04-06 Robert Dewar <dewar@adacore.com>
11418 Javier Miranda <miranda@adacore.com>
11419 Bob Duff <duff@adacore.com>
11420 Vincent Celier <celier@adacore.com>
11422 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
11423 (Extensions_Allowed): No longer sets Ada_Version
11424 Entry for pragma Unreferenced_Objects
11426 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
11427 system.tasking if pragma priority used in a procedure
11428 (Analyze_Pragma, case Warning): Handle dot warning switches
11429 (Process_Compile_Time_Warning_Or_Error): New procedure
11430 (Analyze_Pragma): Add processing for Compile_Time_Error
11431 Add support for extra arguments External_Name and Link_Name.
11432 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
11433 (Process_Import_Or_Interface): Add support for the use of pragma Import
11435 (Extensions_Allowed): No longer affects Ada_Version
11436 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
11437 Is_Abstract_Type. Make sure these are called only when appropriate.
11438 Add processing for pragma Unreferenced_Objects
11440 * snames.h, snames.ads, snames.adb: Add entry for pragma
11442 Add new standard name Minimum_Binder_Options for new gprmake
11443 Add new standard names for gprmake: Archive_Suffix,
11444 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
11445 Library_Support, Library_Version_Options,
11446 Shared_Library_Minimum_Options,
11447 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
11448 Change Name_Call to Name_uCall so that it cannot clash with a legal
11450 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
11451 Append C_Plus_Plus to convention identifiers as synonym for CPP
11452 Add new standard names Stack and Builder_Switches
11453 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
11454 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
11455 Run_Path_Option, Toolchain_Version.
11456 Entry for pragma Unreferenced_Objects
11458 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
11459 switches, without repetition of "eD". Make sure that last character of
11460 -gnatep= switch is not taken as -gnat switch character.
11461 Complete rewrite of circuit for handling saving compilation options
11462 Occasioned by need to support dot switchs for -gnatw, but cleans up
11464 -gnatX does not affect Ada_Version
11465 Include -gnatyA in -gnatg style switches
11467 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
11468 warnings on return objects.
11469 (Warn_On_Useless_Assignment): Exclude warnings on return objects
11470 (Set_Dot_Warning_Switch): New procedure
11471 (Check_References): Add missing case of test for
11472 Has_Pragma_Unreferenced_Objects
11473 (Output_Unreferenced_Messages): Implement effect of new pragma
11474 Unreferenced_Objects, remove special casing of limited controlled
11477 2007-04-06 Vincent Celier <celier@adacore.com>
11479 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
11480 the default project path, initially done during elaboration of the
11482 If the prefix returned by Sdefault is null, get the prefix from a call
11483 to Executable_Prefix_Path.
11484 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
11487 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
11488 canonical directory name to open the directory from which files are
11490 (Record_Other_Sources): Idem.
11491 (Locate_Directory): Add the possibility to create automatically missing
11492 directories when Setup_Projects is True.
11493 Call Locate_Directory so that the directory will be created when
11494 Setup_Projects is True, for object dir, library dir, library ALI dir,
11495 library source copy dir and exec dir.
11497 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
11500 2007-04-06 Robert Dewar <dewar@adacore.com>
11502 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
11503 Use First/Next_Component_Or_Discriminant
11504 (Analyze_Record_Representation_Clause):
11505 Use First/Next_Component_Or_Discriminant
11506 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
11507 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
11508 definition if type is unconstrained.
11509 (Adjust_Record_For_Reverse_Bit_Order): New procedure
11510 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
11511 Is_Abstract_Subprogram and Is_Abstract_Type.
11512 (Adjust_Record_For_Reverse_Bit_Order): New procedure
11514 * repinfo.adb (List_Record_Info): Use First/
11515 Next_Component_Or_Discriminant.
11517 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
11520 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
11521 Include -gnatyA in default switches
11523 * opt.ads: (Warn_On_Non_Local_Exception): New flag
11524 (Warn_On_Reverse_Bit_Order): New flag
11525 (Extensions_Allowed): Update the documentation.
11526 (Warn_On_Questionable_Missing_Parens): Now on by default
11528 * usage.adb: Add documentation of -gnatw.x/X switches
11529 Document new -gnatyA style switch
11530 -gnatq warnings are on by default
11532 2007-04-06 Ed Falis <falis@adacore.com>
11534 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
11535 full word is no longer compared twice.
11537 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11539 * sem_ch10.adb (Install_Limited_Context_Clauses.
11540 Expand_Limited_With_Clause): Use a new copy of selector name in the
11541 call to Make_With_Clause. This fixes the tree structure for ASIS
11542 purposes. Nothing is changed in the compiler behaviour.
11543 (Process_Body_Clauses): Handle properly use clauses whose prefix is
11544 a package renaming.
11545 (Install_Limited_With_Clauses): Do not install non-limited view when it
11546 is still incomplete.
11548 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11549 Gary Dismukes <dismukes@adacore.com>
11551 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
11552 when capturing size information, instead of base type, which for a
11553 formal array type will be the unconstrained type.
11554 (Analyze_Formal_Object_Declaration): Add check for illegal default
11555 expressions for a formal in object of a limited type.
11556 (Instantiate_Object): Ditto.
11557 (Check_Formal_Package_Instance): Skip entities that are formal objects,
11558 because they were defaulted in the formal package and no check applies
11560 (Check_Formal_Package_Instance): Extend conformance check to other
11561 discrete types beyond Integer.
11562 (Process_Default): Copy directly the unmatched formal. A generic copy
11563 has already been performed in Analyze_Formal_Package.
11564 (Analyze_Associations): If a formal subprogram has no match, check for
11565 partial parametrization before looking for a default, to prevent
11567 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
11568 not set the instantiation environment before analyzing the actuals.
11569 Fixes regression on 8515-003 with implementation of AI-133.
11570 Set_Instance_Env checks whether the generic unit is a predefined
11571 unit, in which case the instance must be analyzed with the latest Ada
11572 mode. This setting must take place after analysis of the actuals,
11573 because the actuals must be analyzed and frozen in the Ada mode extant
11574 outside of the current instantiation.
11575 (Save_Env, Restore_Env): Preserve and restore the configuration
11576 parameters so that predefined units can be compiled in the proper Ada
11578 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
11579 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
11580 and Is_Abstract_Type.
11581 (Analyze_Formal_Package): For better error recovery, Add exception
11582 handler to catch Instantion_Error, which can be raised in
11583 Analyze_Associations
11585 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11586 Bob Duff <duff@adacore.com>
11587 Gary Dismukes <dismukes@adacore.com>
11589 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
11590 prefix type is a discriminated subtype of the type of the formal.
11591 (Analyze_Allocator): Collect all coextensions regardless of the context.
11592 Whether they can be allocated statically is determined in exp_ch4.
11593 (Analyze_Selected_Component): If the prefix is a limited view and the
11594 non-limited view is available, use the non-limited one.
11595 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
11596 therefore illegal), suggest a qualified expression rather than a type
11597 conversion, because a type conversion would be illegal in this context.
11598 (Anayze_Allocator): Trace recursively all nested allocators so that all
11599 coextensions are on the corresponding list for the root. Do no mark
11600 coextensions if the root allocator is within a declaration for a stack-
11601 allocated object, because the access discriminants will be allocated on
11603 (Analyze_Call): Remove restriction on calls to limited functions for the
11604 cases of generic actuals for formal objects, defaults for formal objects
11605 and defaults for record components.
11606 (Analyze_Allocator): Before analysis, chain coextensions on the proper
11607 element list. Their expansion is delayed until the enclosing allocator
11608 is processed and its finalization list constructed.
11609 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
11610 for an operation with the given name among the primitive operations of
11611 the corresponding record type.
11612 (Analyze_Selected_Component): If the prefix is a task type that
11613 implements an interface, and there is no entry with the given name,
11614 check whether there is another primitive operation (e.g. a function)
11616 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
11617 properly the indexing of a function call written in prefix form, where
11618 the function returns an array type, and all parameters of the function
11619 except the first have defaults.
11620 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
11621 the original operands, rather than relocating them, for efficiency and
11622 to work properly when an operand is overloaded.
11623 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
11624 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
11625 (Analyze_Selected_Component): If the prefix is a private extension, only
11626 scan the visible components, not those of the full view.
11627 (Try_Primitive_Operation): If the operation is a procedure, collect all
11628 possible interpretations, as for a function, because in the presence of
11629 classwide parameters several primitive operations of the type can match
11630 the given arguments.
11632 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11633 Robert Dewar <dewar@adacore.com>
11635 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
11636 tag-indeterminate call to an abstract function, when the left-hand side
11638 (Analyze_Loop_Statement): Improve detection of infinite loops
11640 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11641 Thomas Quinot <quinot@adacore.com>
11643 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
11644 out of Analyze_Package_Declaration, because processing must be applied
11645 to package bodies as well, for deferred constants completed by pragmas.
11646 (Analyze_Package_Declaration): When the package declaration being
11647 analyzed does not require an explicit body, call Check_Completion.
11648 (May_Need_Implicit_Body): An implicit body is required when a package
11649 spec contains the declaration of a remote access-to-classwide type.
11650 (Analyze_Package_Body): If the package contains RACWs, append the
11651 pending subprogram bodies generated by exp_dist at the end of the body.
11652 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
11653 Is_Abstract_Subprogram and Is_Abstract_Type.
11654 (Preserve_Full_Attributes): The full entity list is not an attribute
11655 that must be preserved from full to partial view.
11657 * sem_dist.adb (Add_RAS_Dereference_TSS):
11658 Change primitive name to _Call so it cannot clash with any legal
11659 identifier, and be special-cased in Check_Completion.
11660 Mark the full view of the designated type for the RACW associated with
11661 a RAS as Comes_From_Source to get proper view switching when installing
11662 private declarations.
11663 Provite a placeholder nested package body along with the nested spec
11664 to have a place for Append_RACW_Bodies to generate the calling stubs
11665 and stream attributes.
11667 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11668 Robert Dewar <dewar@adacore.com>
11670 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
11671 that is a limited view, check the non-limited view if available.
11672 (Undefined): Refine error message for missing with of Text_IO
11673 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
11674 to distinguish real missing with cases.
11675 Fix format of all missing with messages
11676 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
11677 renaming as body when renamed entity is abstract.
11679 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11680 Javier Miranda <miranda@adacore.com>
11682 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
11683 predicate recursive, to handle complex expressions on literals whose
11684 spurious ambiguity comes from the abstract interpretation of some
11686 (Interface_Present_In_Ancestor): Add support to concurrent record
11688 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
11689 Is_Abstract_Subprogram and Is_Abstract_Type.
11691 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11692 Javier Miranda <miranda@adacore.com>
11694 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
11695 dereference of a local object R created as a reference to another
11696 object O, use the access level of O.
11697 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
11698 rather than local Same_Formal_Type, to check whether protected operation
11699 overrides an inherited one.
11700 (Same_Formal_Type): New predicate, used when matching signatures of
11701 overriding synchronized operations, to handle the case when a formal
11702 has a type that is a generic actual.
11703 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
11704 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
11705 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
11706 syntactic ambiguities involving indexing of function calls that return
11708 (Abstract_Interface_List): New subprogram that returns the list of
11709 abstract interfaces associated with a concurrent type or a
11710 concurrent record type.
11711 (Interface_Present_In_Parent): New subprogram used to check if a
11712 given type or some of its parents implement a given interface.
11713 (Collect_Abstract_Interfaces): Add support for concurrent types
11714 with interface types.
11715 (Has_Abstract_Interfaces): Add support for concurrent types with
11717 (Is_Parent): New subprogram that determines whether E1 is a parent
11718 of E2. For a concurrent type its parent is the first element of its
11719 list of interface types; for other types this function provides the
11720 same result than Is_Ancestor.
11721 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
11722 (Collect_Synchronized_Interfaces): Removed because the subprogram
11723 Collect_Abstract_Interfaces provides this functionality.
11724 (Collect_Abstract_Interfaces): Minor update to give support to
11725 concurrent types and thus avoid undesired code duplication.
11726 (Get_Subprogram_Entity): Handle entry calls.
11727 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
11729 (Enter_Name): Do not give -gnatwh hiding warning for record component
11730 entities, they never result in hiding.
11732 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11733 Robert Dewar <dewar@adacore.com>
11735 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
11736 to chain nested components that are allocators for access discriminants
11737 of the enclosing object.
11738 Add N_Push and N_Pop nodes
11739 New field Exception_Label added
11740 (Local_Raise_Statements): New field in N_Exception_Handler_Node
11741 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
11742 (Is_Coextension): New flag for allocators, to mark allocators that
11743 correspond to access discriminants of dynamically allocated objects.
11744 (N_Block_Statement): Document the fact that the corresponding entity
11745 can be an E_Return_Statement.
11746 (Is_Coextension): New flag for allocators.
11747 Remove all code for DSP option
11749 * sprint.ads, sprint.adb: Display basic information for class_wide
11750 subtypes. Add handling of N_Push and N_Pop nodes
11752 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11754 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
11755 before propagating exception.
11757 2007-04-06 Olivier Hainque <hainque@adacore.com>
11759 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
11760 an address always within the call instruction from a return address.
11762 2007-04-06 Olivier Hainque <hainque@adacore.com>
11763 Eric Botcazou <botcazou@adacore.com>
11765 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
11766 expression with a COMPOUND_EXPR including the call instead of emitting
11767 the call directly here.
11768 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
11769 high bound is constant and the slice is empty. Tidy.
11770 (tree_transform, case N_Op_Not): Handle properly the case where the
11771 operation applies to a private type whose full view is a modular type.
11772 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
11773 Address_Clause, use the associated Expression as the GNAT tree
11774 representing the choice value to ensure the corresponding GCC tree is
11775 of the proper kind.
11776 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
11777 instead of just the operands, as the base GCC stabilize_reference does.
11778 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
11779 requested; otherwise fail.
11780 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
11782 2007-04-06 Thomas Quinot <quinot@adacore.com>
11784 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
11785 implementation of UI_Div.
11786 (UI_Div): Reimplement as a call to UI_Div_Rem.
11787 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
11788 remainder, avoiding the cost of a multiplication and a subtraction.
11789 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
11790 provides both quotient and remainder in a single computation.
11791 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
11792 functions for uint.
11793 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
11794 is undefined if the given n is not inversible.
11796 2007-04-06 Olivier Hainque <hainque@adacore.com>
11798 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
11799 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
11802 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11803 Olivier Hainque <hainque@adacore.com>
11805 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
11806 when updating the contents of the old pointer to an unconstrained array.
11807 (end_subprog_body): Set error_gnat_node to Empty.
11808 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
11809 (unchecked_convert): For subtype to base type conversions, require that
11810 the source be a subtype if it is an integer type.
11811 (builtin_decls): New global, vector of available builtin functions.
11812 (gnat_pushdecl): Add global builtin function declaration nodes to the
11813 builtin_decls list.
11814 (gnat_install_builtins): Adjust comments.
11815 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
11816 calling gnat_pushdecl, so that it knows when it handed a builtin
11817 function declaration node.
11818 (builtin_decl_for): Search the builtin_decls list.
11820 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11822 * s-stchop-vxworks.adb:
11823 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
11825 2007-04-06 Robert Dewar <dewar@adacore.com>
11826 Arnaud Charlet <charlet@adacore.com>
11828 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
11830 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
11832 Add mention of -Sev (set initialize_scalars option from environment
11833 variable at run time) in gnatbind usage message.
11835 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
11837 * fname-uf.ads: Minor comment fix
11839 * osint.ads: Change pragma Elaborate to Elaborate_All
11841 * par-load.adb: Add documentation.
11843 * sem_cat.ads, sem_cat.adb: Minor code reorganization
11845 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
11847 * s-secsta.ads: Extra comments
11849 * s-soflin.ads: Minor comment fixes
11851 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
11853 * s-wchcon.ads: Minor comment addition
11855 * treepr.adb: Minor change in message
11856 (Print_Name,Print_Node): Make these debug printouts more robust: print
11857 "no such..." instead of crashing on bad input.
11859 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
11861 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
11862 instead of gnat_signed_or_unsigned_type.
11863 * utils.c (gnat_signed_or_unsigned_type): Remove.
11864 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
11865 * gigi.h (gnat_signed_or_unsigned_type): Remove
11867 2007-03-09 Roger Sayle <roger@eyesopen.com>
11869 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
11870 fold with the result of buildN.
11871 * decl.c (gnat_to_gnu_entity): Likewise.
11872 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
11873 * utils.c (finish_record_type, merge_sizes, max_size, convert):
11875 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
11876 nonbinary_modular_operation, build_binary_op, build_unary_op,
11877 build_cond_expr): Likewise.
11879 * utils.c (convert): Use fold_build1 when casting values to void.
11880 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
11881 fold_convert instead of convert when appropriate.
11883 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11885 * Make-lang.in: Add install-pdf target as copied from
11886 automake v1.10 rules.
11888 2007-02-28 Andreas Schwab <schwab@suse.de>
11890 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
11891 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
11892 (doc/gnat-style.info): Likewise.
11894 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
11896 * gnat-style.texi: Standardize title page.
11897 * gnat_rm.texi: Likewise.
11898 * gnat_ugn.texi: Likewise.
11900 2007-02-25 Mark Mitchell <mark@codesourcery.com>
11902 * decl.c (annotate_value): Adjust for refactoring of tree_map
11905 2007-02-24 Mark Mitchell <mark@codesourcery.com>
11907 * decl.c (annotate_value): Adjust for refactoring of tree_map
11910 2007-02-21 Ed Schonberg <schonberg@adacore.com>
11913 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
11914 untagged derived type, add hidden components to keep discriminant
11915 layout consistent, when a given discriminant of the derived type
11916 constraints several discriminants of the parent type.
11918 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
11919 Sandra Loosemore <sandra@codesourcery.com>
11921 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
11922 build the call expression.
11923 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
11924 * utils.c (max_size) <tcc_exceptional>: Delete.
11925 <tcc_vl_exp>: New case.
11926 <tcc_expression>: Delete CALL_EXPR subcase.
11927 (build_global_cdtor): Use build_call_nary instead of build3.
11928 * utils2.c (build_call_1_expr): Likewise.
11929 (build_call_2_expr): Likewise.
11930 (build_call_0_expr): Likewise.
11931 (build_call_alloc_dealloc): Likewise.
11933 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
11935 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
11936 get_action_description_for): Replace _Unwind_Word with _uleb128_t
11937 and _Unwind_SWord with _sleb128_t.
11939 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
11941 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
11942 * decl.c: Include gt-ada-decl.h.
11943 (annotate_value_cache): New.
11944 (annotate_value): Use it instead of TREE_COMPLEXITY.
11946 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
11948 * misc.c, utils2.c: Fix comment typos.
11950 2007-01-24 Roger Sayle <roger@eyesopen.com>
11952 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
11953 TREE_CONSTANT_OVERFLOW.
11954 (allocatable_size_p, annotate_value): Likewise.
11955 * trans.c (gnat_to_gnu): Likewise.
11956 * utils.c (unchecked_convert): Likewise.
11957 * utils2.c (build_simple_component_ref): Likewise.
11959 2007-01-23 Richard Guenther <rguenther@suse.de>
11962 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
11963 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
11964 (gnatboot3): Likewise.
11965 (GNATBIND): Do not define.
11966 * Makefile.in (GNATBIND): Do not define.
11968 2007-01-08 Richard Guenther <rguenther@suse.de>
11970 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
11971 * trans.c (gnat_to_gnu): Likewise.
11973 2006-12-07 Geoffrey Keating <geoffk@apple.com>
11975 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
11976 * adaint.c: Likewise.
11978 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
11980 Merge from gimple-tuples-branch:
11981 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
11983 * ada-tree.h (lang_tree_node): Handle gimple tuples.
11984 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
11985 GIMPLE_MODIFY_STMT.
11987 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
11989 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
11990 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
11993 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
11996 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
11997 if the initializer takes into account the padding.
11999 2006-11-11 Richard Guenther <rguenther@suse.de>
12001 * trans.c (maybe_stabilize_reference): Remove handling of
12002 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
12004 2006-11-05 Arnaud Charlet <charlet@adacore.com>
12007 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
12008 (To_Target_Priority): New function.
12010 2006-10-31 Robert Dewar <dewar@adacore.com>
12012 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
12013 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
12014 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
12015 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
12016 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
12017 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
12018 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
12019 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
12020 a-szbzha.adb: Minor reformatting. Fix header.
12022 * a-numaux-x86.adb: Add parentheses for use of unary minus
12023 * a-ngcefu.adb: Supply missing parentheses for unary minus
12024 * a-ngcoty.adb: Add parens for use of unary minus
12025 * a-ngelfu.adb: Add missing parens for unary minus
12026 * a-tifiio.adb: Add parentheses for uses of unary minus
12028 2006-10-31 Robert Dewar <dewar@adacore.com>
12029 Bob Duff <duff@adacore.com>
12030 Ed Schonberg <schonberg@adacore.com>
12032 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
12033 with multiplying operator.
12034 (Expected_Type_Is_Any_Real): New function to determine from the Parent
12035 pointer whether the context expects "any real type".
12036 (Resolve_Arithmetic_Op): Do not give an error on calls to the
12037 universal_fixed "*" and "/" operators when they are used in a context
12038 that expects any real type. Also set the type of the node to
12039 Universal_Real in this case, because downstream processing requires it
12040 (mainly static expression evaluation).
12041 Reword some continuation messages
12042 Add some \\ sequences to continuation messages
12043 (Resolve_Call): Refine infinite recursion case. The test has been
12044 sharpened to eliminate some false positives.
12045 Check for Current_Task usage now includes entry barrier, and is now a
12046 warning, not an error.
12047 (Resolve): If the call is ambiguous, indicate whether an interpretation
12048 is an inherited operation.
12049 (Check_Aggr): When resolving aggregates, skip associations with a box,
12050 which are priori correct, and will be replaced by an actual default
12051 expression in the course of expansion.
12052 (Resolve_Type_Conversion): Add missing support for conversion from
12053 a class-wide interface to a tagged type. Minor code cleanup.
12054 (Valid_Tagged_Converion): Add support for abstact interface type
12056 (Resolve_Selected_Component): Call Generate_Reference here rather than
12057 during analysis, and use May_Be_Lvalue to distinguish read/write.
12058 (Valid_Array_Conversion): New procedure, abstracted from
12059 Valid_Conversion, to incorporate accessibility checks for arrays of
12060 anonymous access types.
12061 (Valid_Conversion): For a conversion to a numeric type occurring in an
12062 instance or inlined body, no need to check that the operand type is
12063 numeric, since this has been checked during analysis of the template.
12064 Remove legacy test for scope name Unchecked_Conversion.
12066 * sem_res.ads: Minor reformatting
12068 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
12069 (PE_Current_Task_In_Entry_Body): New exception code
12070 (SE_Restriction_Violation): Removed, not used
12072 * a-except.ads: Update comments.
12074 * types.h, types.ads: Add definition for Validity_Check
12075 (PE_Current_Task_In_Entry_Body): New exception code
12076 (SE_Restriction_Violation): Removed, not used
12078 2006-10-31 Thomas Quinot <quinot@adacore.com>
12080 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
12083 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
12084 Jose Ruiz <ruiz@adacore.com>
12086 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
12087 part of Ada.Calendar: all subprogram raise Unimplemented.
12088 (Split_W_Offset): Temp function body, raising Unimplemented
12090 * a-calend.ads, a-calend-vms.ads:
12091 Add imported variable Invalid_TZ_Offset used to designate targets unable
12092 to support time zones.
12093 (Unimplemented): Temporary function raised by the body of new
12095 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
12096 unit provides handling of leap seconds and is used by the new Ada 2005
12097 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
12098 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
12099 version returns an extra value which is the offset to UTC.
12101 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
12102 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
12103 (Split_W_Offset): New function body.
12104 (Time_Of): When a date is close to UNIX epoch, compute the time for
12105 that date plus one day (that amount is later substracted after
12106 executing mktime) so there are no problems with time zone adjustments.
12108 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
12110 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
12111 a-catizo.ads, a-catizo.adb: New files.
12113 * impunit.adb: Add new Ada 2005 entries
12115 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
12116 Rename all occurences of "__gnat_localtime_r" to
12117 "__gnat_localtime_tzoff".
12118 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
12119 zone data and calculate the GMT offset.
12120 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
12121 Use the field "tm_gmtoff" to extract the GMT offset.
12122 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
12123 the external variable "timezone" to calculate the GMT offset.
12125 2006-10-31 Arnaud Charlet <charlet@adacore.com>
12126 Jose Ruiz <ruiz@adacore.com>
12128 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
12129 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
12130 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
12131 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
12132 System.Any_Priority to a POSIX priority on the target.
12134 * system-linux-ia64.ads:
12135 Extend range of Priority types on Linux to use the whole range made
12136 available by the system.
12138 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
12139 function maps from System.Any_Priority to a POSIX priority on the
12141 (PTHREAD_PRIO_PROTECT): Set real value.
12142 (PTHREAD_PRIO_INHERIT): Now a function.
12143 (SIGCPUFAIL): New signal.
12144 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
12145 are documented as reserved by the OS.
12147 * system-aix.ads: Use the full range of priorities provided by the
12150 * s-taprop-posix.adb: Call new function To_Target_Priority.
12151 (Set_Priority): Take into account Task_Dispatching_Policy and
12152 Priority_Specific_Dispatching pragmas when determining if Round Robin
12153 must be used for scheduling the task.
12155 * system-linux-x86_64.ads, system-linux-x86.ads,
12156 system-linux-ppc.ads: Extend range of Priority types on Linux to use
12157 the whole range made available by the system.
12159 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
12160 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
12161 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
12162 when deallocating the TCB in order to avoid potential references to
12164 (Set_Priority): Take into account Task_Dispatching_Policy and
12165 Priority_Specific_Dispatching pragmas when determining if Round Robin
12166 or FIFO within priorities must be used for scheduling the task.
12168 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
12169 the Thread field (to be used internally by the run-time system) and the
12170 kernel-level task id in the LWP field (to be used by the debugger).
12171 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
12172 instance, and propagate the current task options to the spawned task.
12173 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
12174 (Initialize): Set Round Robin dispatching when the corresponding pragma
12177 2006-10-31 Robert Dewar <dewar@adacore.com>
12179 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
12180 system-linux-hppa.ads, system-hpux-ia64.ads,
12181 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
12182 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12183 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
12184 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
12185 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12186 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12187 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
12188 Default_Bit_Order) to kill constant condition warnings for references
12191 2006-10-31 Vincent Celier <celier@adacore.com>
12192 Eric Botcazou <ebotcazou@adacore.com>
12194 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
12195 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
12196 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
12197 Ext_To, when building the library file name
12199 * mlib-tgt-vxworks.adb: ditto.
12200 (Get_Target_Suffix): Add support for x86 targets.
12202 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
12204 * mlib-tgt-darwin.adb:
12205 Use Append_To, instead of Ext_To, when building the library file name
12206 (Flat_Namespace): New global variable.
12207 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
12208 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
12209 (Link_Shared_Libgcc): Delete.
12210 (Build_Dynamic_Library): Adjust for above changes.
12212 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
12214 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
12216 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
12217 (Initialize): Add type conversions required by above change.
12219 2006-10-31 Jose Ruiz <ruiz@adacore.com>
12221 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
12222 (getpid): New body for this function that uses the underlying taskIdSelf
12223 function for VxWorks 5 and VxWorks 6 in kernel mode.
12224 (unsigned_int): New type, modular to allow logical bit operations.
12225 (taskOptionsGet): New imported function.
12227 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
12228 field to be compliant with the type used by the corresponding operating
12231 2006-10-31 Pascal Obry <obry@adacore.com>
12232 Eric Botcazou <ebotcazou@adacore.com>
12233 Vincent Celier <celier@adacore.com>
12235 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
12236 ASCII version of the registry API. This is needed as the GNAT runtime
12237 is now UNICODE by default.
12239 (get_gcc_version): Do not hardcode the return value.
12240 (__gnat_file_time_name): On Windows properly set the default returned
12241 value to -1 which corresponds to Invalid_Time.
12242 (__gnat_fopen): New routine. A simple wrapper on all plateforms
12243 except on Windows where it does conversion for unicode support.
12244 (__gnat_freopen): Idem.
12245 (__gnat_locate_exec_on_path): If environment variable PATH does not
12246 exist, return a NULL pointer
12248 * adaint.h: (__gnat_fopen): Declare.
12249 (__gnat_freopen): Likewise.
12251 * mingw32.h (_tfreopen): Define this macro here for older MingW
12253 Activate the unicode support on platforms using a MingW runtime
12254 version 3.9 or newer.
12256 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
12257 This is needed for proper unicode support on Windows.
12260 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
12261 Nicolas Setton <setton@adacore.com>
12262 Olivier Hainque <hainque@adacore.com>
12263 Gary Dismukes <dismukes@adacore.com>
12265 * gigi.h: (tree_code_for_record_type): Declare.
12266 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
12267 (get_global_renaming_pointers): Rename to
12268 invalidate_global_renaming_pointers.
12269 (static_ctors): Delete.
12270 (static_dtors): Likewise.
12271 (gnat_write_global_declarations): Declare.
12272 (create_var_decl): Adjust descriptive comment to indicate that the
12273 subprogram may return a CONST_DECL node.
12274 (create_true_var_decl): Declare new function, similar to
12275 create_var_decl but forcing the creation of a VAR_DECL node.
12276 (get_global_renaming_pointers): Declare.
12277 (add_global_renaming_pointer): Likewise.
12279 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
12281 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
12282 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
12284 (gnat_to_gnu_entity): Remove From_With_Type from computation for
12286 <E_Access_Type>: Use the Non_Limited_View as the full view of the
12287 designated type if the pointer comes from a limited_with clause. Make
12288 incomplete designated type if it is in the main unit and has a freeze
12290 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
12291 Underlying_Full_View similarly. Return earlier if the full view already
12292 has an associated tree.
12293 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
12294 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
12295 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
12296 reference type built for objects with an address clause.
12297 Use create_true_var_decl with const_flag set for
12298 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
12300 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
12301 for Character and Wide_Character types. This info is read by the
12302 dwarf-2 writer, and is needed to be able to use the command "ptype
12303 character" in the debugger.
12304 (gnat_to_gnu_entity): When generating a type representing
12305 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
12306 so that debug writers can distinguish it from ordinary integers.
12307 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
12308 addition to TREE_READONLY to assert the constantness of variables for
12309 elaboration purposes.
12310 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
12311 parameters to call new Einfo function First_Formal_With_Extras.
12312 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
12313 protected type with its corresponding discriminant, to obtain a usable
12315 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
12316 for a multiple elaboration of the "equivalent" type.
12317 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
12318 into record_global_renaming_pointer.
12319 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
12320 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
12321 <E_Array_Subtype>: Likewise.
12322 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
12323 incomplete subtypes and incomplete subtypes of incomplete types visible
12324 through a limited with clause.
12325 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
12326 the base index type for the maximum size of the array only if they are
12328 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
12329 expression into a SAVE_EXPR if stabilization failed.
12331 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
12332 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
12333 by lower level compilation passes.
12334 (gnat_genericize): New function, lowering a function body to GENERIC.
12335 Turn the type of RESULT_DECL into a real reference type if the decl
12336 has been marked DECL_BY_REFERENCE, and adjust references to the latter
12338 (gnat_genericize_r): New function. Tree walking callback for
12340 (convert_from_reference, is_byref_result): New functions. Helpers for
12342 (create_type_decl): Call gnat_pushdecl before calling
12343 rest_of_decl_compilation, to make sure that field TYPE_NAME of
12344 type_decl is properly set before calling the debug information writers.
12345 (write_record_type_debug_info): The heuristics which compute the
12346 alignment of a field in a variant record might not be accurate. Add a
12347 safety test to make sure no alignment is set to a smaller value than
12348 the alignment of the field type.
12349 (make_dummy_type): Use the Non_Limited_View as the underlying type if
12350 the type comes from a limited_with clause. Do not loop on the full view.
12351 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
12352 (dummy_node_table): New global variable, moved from decl.c.
12353 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
12354 (save_gnu_tree): Use above macros.
12355 (get_gnu_tree): Likewise.
12356 (present_gnu_tree): Likewise.
12357 (init_dummy_type): New function, moved from decl.c. Use above macros.
12358 (make_dummy_type): Likewise.
12359 (tree_code_for_record_type): New function extracted from make_dummy_type
12360 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
12361 (static_ctors): Change it to a vector, make static.
12362 (static_dtors): Likewise.
12363 (end_subprog_body): Adjust for above change.
12364 (build_global_cdtor): Moved from trans.c.
12365 (gnat_write_global_declarations): Emit global constructor and
12366 destructor, and call cgraph_optimize before emitting debug info for
12367 global declarations.
12368 (global_decls): New global variable.
12369 (gnat_pushdecl): Store the global declarations in global_decls, for
12371 (gnat_write_global_declarations): Emit debug information for global
12373 (create_var_decl_1): Former create_var_decl, with an extra argument to
12374 state whether the creation of a CONST_DECL is allowed.
12375 (create_var_decl): Behavior unchanged. Now a wrapper around
12376 create_var_decl_1 allowing CONST_DECL creation.
12377 (create_true_var_decl): New function, similar to create_var_decl but
12378 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
12379 (create_field_decl): Do not always mark the field as addressable
12380 if its type is an aggregate.
12381 (global_renaming_pointers): New static variable.
12382 (add_global_renaming_pointer): New function.
12383 (get_global_renaming_pointers): Likewise.
12385 * misc.c (gnat_dwarf_name): New function.
12386 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
12387 (gnat_post_options): Add comment about structural alias analysis.
12388 (gnat_parse_file): Do not call cgraph_optimize here.
12389 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
12391 * trans.c (process_freeze_entity): Don't abort if we already have a
12392 non dummy GCC tree for a Concurrent_Record_Type, as it might
12393 legitimately have been elaborated while processing the associated
12394 Concurrent_Type prior to this explicit freeze node.
12395 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
12396 exception handler volatile if it is of variable size.
12397 (process_type): Remove bypass for types coming from a limited_with
12399 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
12400 actual, convert the corresponding gnu_actual to the real destination
12401 type when necessary.
12402 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
12403 originally TREE_READONLY but whose elaboration cannot be performed
12405 Part of fix for F504-021.
12406 (tree_transform, subprogram cases): Change loops on formal parameters to
12407 call new Einfo function First_Formal_With_Extras.
12408 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
12409 stemming from type conversion for the lhs.
12410 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
12411 number of bits per unit for components of records.
12412 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
12413 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
12414 with At_End_Proc after the SJLJ EH cleanup.
12415 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
12417 (elaborate_all_entities): Do not retest type_annotate_only.
12418 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
12419 result type of an abstract subprogram, which may be an itype associated
12420 with an anonymous access result (related to AI-318-02).
12421 (build_global_cdtor): Move to utils.c.
12422 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
12423 this choice is not a null tree nor an integer constant.
12424 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
12425 on the body of elaboration routines instead of mark_unvisited.
12426 (add_stmt): Do not mark the tree.
12427 (add_decl_expr): Tweak comment.
12428 (mark_unvisited): Delete.
12429 (unshare_save_expr): New static function.
12430 (call_to_gnu): Issue an error when making a temporary around a
12431 procedure call because of non-addressable actual parameter if the
12432 type of the formal is by_reference.
12433 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
12434 after building the elaboration routine.
12436 2006-10-31 Bob Duff <duff@adacore.com>
12438 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
12439 as finalization-started, so we can raise Program_Error on 'new'.
12441 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
12442 collection has already started.
12444 * s-finimp.ads (Collection_Finalization_Started): Added new special
12445 flag value for indicating that a collection's finalization has started.
12447 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
12448 create a task whose master has already waited for dependent tasks.
12450 2006-10-31 Robert Dewar <dewar@adacore.com>
12452 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
12454 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
12455 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
12456 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
12457 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
12458 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
12459 a-except-2005.ads: Add pragma Preelaborable_Warning
12461 2006-10-31 Robert Dewar <dewar@adacore.com>
12462 Jose Ruiz <ruiz@adacore.com>
12464 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
12466 * ali.adb (Get_Name): Properly handle scanning of wide character names
12467 encoded with brackets notation.
12468 (Known_ALI_Lines): Add S lines to this list.
12469 (Scan_ALI): Acquire S (priority specific dispatching) lines.
12470 New flag Elaborate_All_Desirable in unit table
12472 * ali.ads (Priority_Specific_Dispatching): Add this range of
12473 identifiers to be used for Priority_Specific_Dispatching table entries.
12474 (ALIs_Record): Add First_Specific_Dispatching and
12475 Last_Specific_Dispatching that point to the first and last entries
12476 respectively in the priority specific dispatching table for this unit.
12477 (Specific_Dispatching): Add this table for storing each S (priority
12478 specific dispatching) line encountered in the input ALI file.
12479 New flag Elaborate_All_Desirable in unit table
12481 * bcheck.adb: (Check_Configuration_Consistency): Add call to
12482 Check_Consistent_Dispatching_Policy.
12483 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
12484 verifying that the use of Priority_Specific_Dispatching,
12485 Task_Dispatching_Policy, and Locking_Policy is consistent across the
12488 * bindgen.adb: (Public_Version_Warning): function removed.
12489 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
12490 required information from ALI files in order to initialize the table
12491 containing the specific dispatching policy.
12492 (Gen_Adainit_Ada): Generate the variables required for priority specific
12493 dispatching entries (__gl_priority_specific_dispatching and
12494 __gl_num_specific_dispatching).
12495 (Gen_Adainit_C): Generate the variables required for priority specific
12496 dispatching entries (__gl_priority_specific_dispatching and
12497 __gl_num_specific_dispatching).
12498 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
12500 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
12501 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
12503 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
12504 a call to gnat_set_globals.
12505 Generate a string containing settings from
12506 Priority_Specific_Dispatching pragma entries.
12507 (Gen_Object_Files_Options): Do not include the runtime libraries when
12508 pragma No_Run_Time is specified.
12510 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
12511 consistency with s-intman-posix.adb.
12512 (__gnat_error_handler, case FreeBSD): Account for the fact that the
12513 handler is installed with SA_SIGINFO.
12514 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
12515 FreeBSD ZCX support, copied from Linux version.
12516 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
12517 sigfillset, and sigemptyset so the routines defined by MaRTE.
12518 (__gl_priority_specific_dispatching): Add this variable that stores the
12519 string containing priority specific dispatching policies in the
12521 (__gl_num_specific_dispatching): Add this variable that indicates the
12522 highest priority for which a priority specific dispatching pragma
12524 (__gnat_get_specific_dispatching): Add this routine that returns the
12525 priority specific dispatching policy, as set by a
12526 Priority_Specific_Dispatching pragma appearing anywhere in the current
12527 partition. The input argument is the priority number, and the result
12528 is the upper case first character of the policy name.
12529 (__gnat_set_globals): Now a dummy function.
12530 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
12531 mechargs instead of sigargs, as the latter can be retrieved from the
12532 former and sigargs is not what we want on ia64.
12533 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
12535 (__gnat_adjust_context_for_raise, ia64-vms): New function.
12536 (tasking_error): Remove unused symbol.
12537 (_abort_signal): Move this symbol to the IRIX specific part since this
12538 is the only target that uses this definition.
12539 (Check_Abort_Status): Move this symbol to the IRIX specific part since
12540 this is the only target that uses this definition.
12541 (Lock_Task): Remove unused symbol.
12542 (Unlock_Task): Remove unused symbol.
12544 * lib-writ.adb (Write_ALI): Output new S lines for
12545 Priority_Specific_Dispatching pragmas.
12546 Implement new flag BD for elaborate body desirable
12548 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
12549 (Specific_Dispatching): Add this table for storing the entries
12550 corresponding to Priority_Specific_Dispatching pragmas.
12551 Document new BD flag for elaborate body desirable
12553 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
12556 2006-10-31 Javier Miranda <miranda@adacore.com>
12558 * a-tags.ads, a-tags.adb:
12559 (Predefined_DT): New function that improves readability of the code.
12560 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
12561 Inherit_DT): Use the new function Predefined_DT to improve code
12563 (Register_Interface_Tag): Update assertion.
12564 (Set_Interface_Table): Update assertion.
12565 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
12566 determining progenitor interfaces in Tags.
12567 (Inherit_CPP_DT): New subprogram.
12569 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
12570 analysis of the thunk code.
12571 (Expand_Interface_Conversion): Handle run-time conversion of
12572 access to class wide types.
12573 (Expand_Dispatching_Call): When generating the profile for the
12574 subprogram itype for a dispatching operation, properly terminate the
12575 formal parameters chaind list (set the Next_Entity of the last formal
12577 (Collect_All_Interfaces): Removed. This routine has been moved to
12578 sem_util and renamed as Collect_All_Abstract_Interfaces.
12579 (Set_All_DT_Position): Hidden entities associated with abstract
12580 interface primitives are not taken into account in the check for
12581 3.9.3(10); this check is done with the aliased entity.
12582 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
12583 interfacing with CPP by default.
12584 (Expand_Interface_Conversion): Add missing support for static conversion
12585 from an interface to a tagged type.
12586 (Collect_All_Interfaces): Add new out formal containing the list of
12587 abstract interface types to cleanup the subprogram Make_DT.
12588 (Make_DT): Update the code to generate the table of interfaces in case
12589 of abstract interface types.
12590 (Is_Predefined_Dispatching_Alias): New function that returns true if
12591 a primitive is not a predefined dispatching primitive but it is an
12592 alias of a predefined dispatching primitive.
12593 (Make_DT): If the ancestor of the type is a CPP_Class and we are
12594 compiling under full ABI compatibility mode we avoid the generation of
12595 calls to run-time services that fill the dispatch tables because under
12596 this mode we currently inherit the dispatch tables in the IP subprogram.
12597 (Write_DT): Emit an "is null" indication for a null procedure primitive.
12598 (Expand_Interface_Conversion): Use an address as the type of the formal
12599 of the internally built function that handles the case in which the
12600 target type is an access type.
12602 2006-10-31 Robert Dewar <dewar@adacore.com>
12604 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
12606 2006-10-31 Robert Dewar <dewar@adacore.com>
12608 * bindusg.ads, bindusg.adb:
12609 Change to package and rename procedure as Display, which
12610 now ensures that it only outputs usage information once.
12612 2006-10-31 Jose Ruiz <ruiz@adacore.com>
12614 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
12617 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
12620 2006-10-31 Robert Dewar <dewar@adacore.com>
12621 Ed Schonberg <schonberg@adacore.com>
12623 * treepr.adb: Use new subtype N_Membership_Test
12625 * checks.ads, checks.adb: Add definition for Validity_Check
12626 (Range_Or_Validity_Checks_Suppressed): New function
12627 (Ensure_Valid): Test Validity_Check suppressed
12628 (Insert_Valid_Check): Test Validity_Check suppressed
12629 (Insert_Valid_Check): Preserve Do_Range_Check flag
12630 (Validity_Check_Range): New procedure
12631 (Expr_Known_Valid): Result of membership test is always valid
12632 (Selected_Range_Checks): Range checks cannot be applied to discriminants
12633 by themselves. Disabling those checks must also be done for task types,
12634 where discriminants may be used for the bounds of entry families.
12635 (Apply_Address_Clause_Check): Remove side-effects if address expression
12636 is non-static and is not the name of a declared constant.
12637 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
12638 Code cleanup and new error messages.
12639 (Enable_Range_Check): Test for some cases of suppressed checks
12640 (Generate_Index_Checks): Suppress index checks if index checks are
12641 suppressed for array object or array type.
12642 (Apply_Selected_Length_Checks): Give warning for compile-time detected
12643 length check failure, even if checks are off.
12644 (Ensure_Valid): Do not generate a check on an indexed component whose
12645 prefix is a packed boolean array.
12646 * checks.adb: (Alignment_Checks_Suppressed): New function
12647 (Apply_Address_Clause_Check): New procedure, this is a completely
12648 rewritten replacement for Apply_Alignment_Check
12649 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
12650 we request a discriminal value only in case of discriminants.
12651 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
12652 assignments where the target subtype is unconstrained and the target
12653 object is a parameter or dereference (other aliased cases are known
12654 to be unconstrained).
12656 2006-10-31 Robert Dewar <dewar@adacore.com>
12658 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
12659 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
12660 vms_conv.adb: Fix bad table increment values (much too small)
12662 * table.adb (Realloc): Make sure we get at least some new elements
12663 Defends against silly small values for table increment
12665 2006-10-31 Robert Dewar <dewar@adacore.com>
12666 Ed Schonberg <schonberg@adacore.com>
12667 Bob Duff <duff@adacore.com>
12669 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
12670 entities. Move other fields around to make this possible
12671 (Is_Derived_Type): Add missing call to Is_Type.
12672 (Extra_Formals): New function for subprograms, entries, subprogram
12674 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
12675 (First_Formal_With_Extras): New function for subprogs, entries, subp
12677 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
12678 Add node information for E_Return_Statement.
12679 (Elaborate_Body_Desirable): New flag
12680 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
12681 to be Is_Inherently_Limited_Type, because return-by-reference has
12682 no meaning in Ada 2005.
12683 (E_Return_Statement): New entity kind.
12684 (Return_Applies_To): Field of E_Return_Statement.
12685 (Is_Return_Object): New flag in object entities.
12686 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
12687 (Must_Have_Preelab_Init): New flag
12688 (Known_To_Have_Preelab_Init): New flag
12689 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
12690 (Is_Visible_Formal): New flag on entities in formal packages.
12691 (Low_Bound_Known): New flag
12692 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
12694 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
12695 output when Id is an incomplete subtype.
12697 2006-10-31 Robert Dewar <dewar@adacore.com>
12699 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
12700 Avoid abbreviation Creat
12701 (Finalize): List all sources in extended mail source if -gnatl
12703 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
12704 (Finalize): Implement new -gnatl=xxx switch to output listing to file
12705 (Set_Specific_Warning_On): New procedure
12706 (Set_Specific_Warning_Off): New procedure
12707 Add implementation of new insertion \\
12708 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
12709 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
12711 (Error_Msg_Internal): Make sure that we set Last_Killed to
12712 True when a message from another package is suppressed.
12713 Implement insertion character ~ (insert string)
12714 (First_Node): Minor adjustments to get better placement.
12717 Implement new -gnatl=xxx switch to output listing to file
12720 Implement new -gnatl=xxx switch to output listing to file
12722 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
12723 (Commands_To_Stdout): New flag
12724 Implement new -gnatl=xxx switch to output listing to file
12725 New switch Dump_Source_Text
12726 (Warn_On_Deleted_Code): New warning flag for -gnatwt
12727 Define Error_Msg_Line_Length
12728 (Warn_On_Assumed_Low_Bound): New switch
12730 * osint.ads, osint.adb
12731 (Normalize_Directory_Name): Fix bug.
12732 Implement new -gnatl=xxx switch to output listing to file
12733 (Concat): Removed, replaced by real concatenation
12734 Make use of concatenation now allowed in compiler
12735 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
12736 we find the 'lib' or 'bin' directory even when the tool has been
12737 invoked with a relative path.
12738 (Executable_Name): New function taking string parameters.
12740 * osint-c.ads, osint-c.adb:
12741 Implement new -gnatl=xxx switch to output listing to file
12743 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
12746 Implement new -gnatl=xxx switch to output listing to file
12747 Recognize new -gnatL switch
12748 (no longer keep in old warning about old style usage)
12749 Use concatenation to simplify code
12750 Recognize -gnatjnn switch
12751 (Scan_Front_End_Switches): Clean up handling of -gnatW
12752 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
12754 2006-10-31 Robert Dewar <dewar@adacore.com>
12756 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
12757 (Set_Specific_Warning_Off): New procedure
12758 (Warning_Specifically_Suppressed): New function
12759 (Validate_Specific_Warnings): New procedure
12760 (Output_Msg_Text): Complete rewrite to support -gnatjnn
12762 * err_vars.ads: Implement insertion character ~ (insert string)
12764 2006-10-31 Bob Duff <duff@adacore.com>
12765 Ed Schonberg <schonberg@adacore.com>
12767 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
12768 the parent part is a build-in-place function call, generate assignments.
12769 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
12770 are build-in-place function calls.
12771 (Replace_Self_Reference): New subsidiary of
12772 Make_OK_Assignment_Statement, to replace an access attribute that is a
12773 self-reference into an access to the appropriate component of the
12774 target object. Generalizes previous mechanism to handle self-references
12775 nested at any level.
12776 (Is_Self_Referential_Init): Remove, not needed.
12777 (Is_Self_Referential_Init): New predicate to simplify handling of self
12778 referential components in record aggregates.
12779 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
12780 check for presence of entity before checking for self-reference.
12781 (Has_Default_Init_Comps): Return True if a component association is a
12782 self-reference to the enclosing type, which can only come from a
12783 default initialization.
12784 (Make_OK_Assignment_Statement): If the expression is of the form
12785 Typ'Acc, where Acc is an access attribute, the expression comes from a
12786 default initialized self-referential component.
12787 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
12788 that has been derived from several abstract interfaces we must also
12789 initialize the tags of the secondary dispatch tables.
12791 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12792 Thomas Quinot <quinot@adacore.com>
12793 Javier Miranda <miranda@adacore.com>
12794 Robert Dewar <dewar@adacore.com>
12797 (Expand_Access_To_Protected_Op): If the context indicates that an access
12798 to a local operation may be transfered outside of the object, create an
12799 access to the wrapper operation that must be used in an external call.
12800 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
12801 target, pass the Valid attribute applied to a floating-point prefix on
12802 to the back end without expansion.
12803 (Storage_Size): Use the new run-time function Storage_Size to retrieve
12804 the allocated storage when it is specified by a per-object expression.
12805 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
12806 Nothing to do here, the attribute has been rewritten during semantic
12808 (Expand_Attribute_Reference): Handle expansion of the new Priority
12810 (Find_Fat_Info): Handle case of universal real
12811 (Expand_Access_To_Protected_Op): Fix use of access to protected
12812 subprogram from inside the body of a protected entry.
12813 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
12814 'Access and 'Unrestricted_Access, to transform the attribute reference
12815 into a fat pointer.
12816 (Is_Constrained_Aliased_View): New predicate to help determine whether a
12817 subcomponent's enclosing variable is aliased with a constrained subtype.
12818 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
12819 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
12820 an aliased prefix must be known to be constrained in order to use True
12821 for the attribute value, and now it's possible for some aliased views
12822 to be unconstrained.
12824 2006-10-31 Robert Dewar <dewar@adacore.com>
12826 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
12827 (Expand_Entity_Reference): Correct error of not handling subprogram
12828 formals in current_value processing.
12830 2006-10-31 Javier Miranda <miranda@adacore.com>
12831 Robert Dewar <dewar@adacore.com>
12832 Ed Schonberg <schonberg@adacore.com>
12833 Gary Dismukes <dismukes@adacore.com>
12835 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
12836 register in the final list objects containing class-wide interfaces;
12837 otherwise we incorrectly register the tag of the interface in the final
12839 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
12840 generate the wrapper if the parent primitive is abstract. This is
12841 required to report the correct error message.
12842 (Expand_N_Subtype_Indication): Do validity checks on range
12843 (Clean_Task_Names): If an initialization procedure includes a call to
12844 initialize a task (sub)component, indicate that the procedure will use
12845 the secondary stack.
12846 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
12847 compatibility for interfacing with CPP by default.
12848 (Expand_N_Object_Declaration): Only build an Adjust call when the
12849 object's type is a nonlimited controlled type.
12850 * exp_ch3.adb: Add with and use of Exp_Ch6.
12851 (Expand_N_Object_Declaration): Check for object initialization that is a
12852 call to build-in-place function and apply Make_Build_In_Place_Call_In_
12853 Object_Declaration to the call.
12854 (Freeze_Type): When the designated type of an RACW was not frozen at the
12855 point where the RACW was declared, validate the primitive operations
12856 with respect to E.2.2(14) when it finally is frozen.
12857 (Build_Initialization_Call,Expand_Record_Controller): Rename
12858 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
12859 return-by-reference has no meaning in Ada 2005.
12860 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
12861 to register tag of the immediate ancestor interfaces in the
12862 run-time structure.
12863 (Init_Secondary_Tags): Moved to the specification to allow the
12864 initialization of extension aggregates with abstract interfaces.
12865 (Build_Master_Renaming): Make public, for use by function declarations
12866 whose return type is an anonymous access type.
12867 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
12868 Insert_List_Before_And_Analyze after the generation of the specs
12869 associated with null procedures.
12870 (Expand_Tagged_Root): Update documentation in its specification.
12871 (Init_Secondary_Tags): Update documentation.
12872 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
12873 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
12874 then generate code to inherit the contents of the dispatch table
12875 directly from the ancestor.
12876 (Expand_Record_Controller): Insert controller component after tags of
12877 implemented interfaces.
12878 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
12879 create null procedure overridings when null procedures are inherited
12881 (Make_Null_Procedure_Specs): New procedure to generate null procedure
12882 declarations for overriding null primitives inherited from interfaces.
12883 (Is_Null_Interface_Procedure): New function in
12884 Make_Null_Procedure_Specs.
12885 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
12886 immediate ancestor of a tagged type is an abstract interface type we
12887 must generate the specification of the predefined primitives associated
12888 with controlled types (because the dispatch table of the ancestor is
12889 null and hence these entries cannot be inherited). This is required to
12890 elaborate well the dispatch table.
12892 2006-10-31 Javier Miranda <miranda@adacore.com>
12893 Ed Schonberg <schonberg@adacore.com>
12894 Bob Duff <duff@adacore.com>
12895 Gary Dismukes <dismukes@adacore.com>
12896 Robert Dewar <dewar@adacore.com>
12898 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
12900 (Expand_N_In): Do validity checks on range
12901 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
12902 (Expand_N_Allocator): For "new T", if the object is constrained by
12903 discriminant defaults, allocate the right amount of memory, rather than
12904 the maximum for type T.
12905 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
12906 when the allocator is initialized by a build-in-place call, since the
12907 allocator is already rewritten as a reference to the function result,
12908 and this prevents an unwanted duplication of the function call.
12909 Add with and use of Exp_Ch6.
12910 (Expand_Allocator_Expresssion): Check for an allocator whose expression
12911 is a call to build-in-place function and apply
12912 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
12913 untagged designated types).
12914 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
12915 optimization if source or target is biased.
12916 (Expand_N_Allocator): Add comments for case of an allocator within a
12917 function that returns an anonymous access type designating tasks.
12918 (Expand_N_Allocator): apply discriminant checks for access
12919 discriminants of anonymous access types (AI-402, AI-416)
12921 2006-10-31 Bob Duff <duff@adacore.com>
12922 Robert Dewar <dewar@adacore.com>
12923 Gary Dismukes <dismukes@adacore.com>
12924 Ed Schonberg <schonberg@adacore.com>
12926 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
12928 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
12929 (Expand_N_Assignment_Statement): Call
12930 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
12931 build-in-place function call. Currently, this can happen only for
12932 assignments that come from aggregates.
12933 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
12934 in order to alleviate the upward compatibility introduced by AI-318.
12935 (Expand_N_Extended_Return_Statement): Add support for handling the
12936 return object as a build-in-place result.
12937 (Expand_Non_Function_Return): Implement simple return statements nested
12938 within an extended return.
12939 (Enable_New_Return_Processing): Turn on the new processing of return
12941 (Expand_Non_Function_Return): For a return within an extended return,
12942 don't raise Program_Error, because Sem_Ch6 now gives a warning.
12943 (Expand_N_Extended_Return_Statement): Implement AI-318
12944 (Expand_Simple_Function_Return): Ditto.
12945 (Expand_N_If_Statement): Handle new -gnatwt warning
12946 (Expand_N_Case_Statement): Handle new -gnatwt warning
12947 (Expand_N_Assignment): Handle assignment to the Priority attribute of
12948 a protected object.
12949 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
12950 validity checking of assignments to elementary record components.
12951 (Expand_N_Return_Statement): return Class Wide types on the secondary
12952 stack independantly of their controlled status since with HIE runtimes,
12953 class wide types are not potentially controlled anymore.
12955 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
12958 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
12959 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
12960 it expects a block, procedure, or task. The return statement will get
12961 turned into a block, and Expand_Cleanup_Actions will happen then.
12963 2006-10-31 Robert Dewar <dewar@adacore.com>
12964 Ed Schonberg <schonberg@adacore.com>
12965 Bob Duff <duff@adacore.com>
12966 Gary Dismukes <dismukes@adacore.com>
12968 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
12970 (Expand_Inlined_Call): Tagged types are by-reference types, and
12971 therefore should be replaced by a renaming declaration in the expanded
12972 body, as is done for limited types.
12973 (Expand_Call): If this is a call to a function with dispatching access
12974 result, propagate tag from context.
12975 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
12977 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
12978 build-in-place when the right-hand side of an assignment is a
12979 build-in-place function call.
12980 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
12981 of the explicit dereference of the allocator to the result subtype of
12982 the build-in-place function. This is needed to satisfy type checking
12983 in cases where the caller's return object is created by an allocator for
12984 a class-wide access type and the type named in the allocator is a
12986 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
12987 conversion of the reference to the declared object to the result subtype
12988 of the build-in-place function. This is needed to satisfy type checking
12989 in cases where the declared object has a class-wide type. Also, in the
12990 class-wide case, change the type of the object entity to the specific
12991 result subtype of the function, to avoid passing a class-wide object
12992 without explicit initialization to the back end.
12993 (Register_Interface_DT_Entry): Moved outside the body of
12994 Freeze_Subprogram because this routine is now public; it is called from
12995 Check_Dispatching_Overriding to handle late overriding of abstract
12996 interface primitives.
12997 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
12998 adding an implicit access actual on a call to a build-in-place function.
12999 (Expand_Actuals): Test for an actual parameter that is a call to a
13000 build-in-place function and apply
13001 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
13002 (Is_Build_In_Place_Function): New function to determine whether an
13003 entity is a function whose calls should be handled as build-in-place.
13004 (Is_Build_In_Place_Function_Call): New function to determine whether an
13005 expression is a function call that should handled as build-in-place.
13006 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
13007 calls to build-in-place functions as the initialization of an allocator.
13008 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
13009 handling calls to build-in-place functions in contexts that do not
13010 involve init of a separate object (for example, actuals of subprogram
13012 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
13013 handling calls to build-in-place functions as the initialization of an
13014 object declaration.
13015 (Detect_Infinite_Recursion): Add explicit parameter Process to
13016 instantiation of Traverse_Body to avoid unreferenced warning.
13017 (Check_Overriding_Inherited_Interfaces): Removed.
13018 (Register_Interface_DT_Entry): Code cleanup.
13019 (Register_Predefined_DT_Entry): Code cleanup.
13020 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
13021 inlined statements if within a transient scope.
13022 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
13023 formal parameters with occurrences of actuals in inlined body, establish
13024 visibility on the proper view of the actual's subtype for the body's
13026 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
13027 compatibility mode and we have an imported CPP subprogram because
13028 for now we assume that imported CPP primitives correspond with
13029 objects whose constructor is in the CPP side (and therefore we
13030 don't need to generate code to register them in the dispatch table).
13031 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
13032 aligned selected component.
13033 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
13034 the actual of an in-mode parameter is a type conversion.
13035 (Expand_Actuals): If the call does not come from source and the actual
13036 is potentially misaligned, let gigi handle it rather than rejecting the
13037 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
13038 Class Wide types as returning by reference independantly of their
13039 controlled status since with HIE runtimes class wide types are not
13040 potentially controlled anymore.
13042 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13044 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
13045 references that are private components of the protected object.
13046 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
13047 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
13048 instantiation to deal with warnings.
13049 (Initialize_Protection): If expression for priority is non-static, use
13050 System_Priority as its expected type, in case the expression has not
13053 2006-10-31 Robert Dewar <dewar@adacore.com>
13055 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
13056 initialization of Homonym_Len.
13057 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
13058 names from fully qualified name. Fixes problem of duplicate
13059 external names differing only in the presence of such a block name.
13061 2006-10-31 Thomas Quinot <quinot@adacore.com>
13062 Pablo Oliveira <oliveira@adacore.com>
13064 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
13065 subprogram Ids, even if they are not yet assigned.
13066 (Build_Subprogram_Id): It is now this function that will take care of
13067 calling Assign_Subprogram_Ids if necessary.
13068 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
13069 should be done only once they are assigned.
13070 (Build_From_Any_Function, case of tagged types): Add missing call to
13072 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
13073 type for an RACW type.
13074 (Add_RACW_Features): When processing an RACW declaration for which the
13075 designated type is already frozen, enforce E.2.2(14) rules immediately.
13076 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
13077 special reordering of controlling formals.
13079 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
13080 associated stub type for an RACW type.
13082 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13084 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
13085 fixed-point operations in an integer context, i.e. as operands of a
13086 conversion to an integer type, indicate that result must be rounded.
13088 2006-10-31 Robert Dewar <dewar@adacore.com>
13090 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
13091 cases, pass the encoding method, since it is now required by the run
13094 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
13095 assumption that Str'First = 1.
13096 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
13097 it on to the Value_Wide_Wide_Character call.
13098 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
13099 properly handles a string of the form quote-encoded_wide_char-quote.
13101 * s-wchcnv.adb: Minor reformatting
13103 2006-10-31 Javier Miranda <miranda@adacore.com>
13105 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
13106 run-time membership test to ensure that the constructed object
13107 implements the target abstract interface.
13109 2006-10-31 Robert Dewar <dewar@adacore.com>
13111 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
13112 Machine_Attribute pragma internally to implement the user pragma.
13113 Add processing for pragma Interface so that it is now completely
13114 equivalent to pragma Import.
13116 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
13117 so that it can be applied to all entities, including record components
13118 and enumeration literals.
13119 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
13120 priority ranges are correct, verify compatibility against task
13121 dispatching and locking policies, and if everything is correct an entry
13122 is added to the table containing priority specific dispatching entries
13123 for this compilation unit.
13124 (Delay_Config_Pragma_Analyze): Delay processing
13125 Priority_Specific_Dispatching pragmas because when processing the
13126 pragma we need to access run-time data, such as the range of
13127 System.Any_Priority.
13128 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
13129 Allow pragma Unreferenced as a context item
13130 Add pragma Preelaborable_Initialization
13131 (Analyze_Pragma, case Interface): Interface is extended so that it is
13132 now syntactically and semantically equivalent to Import.
13133 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
13134 insertion characters.
13135 Add handling for Pragma_Wide_Character_Encoding
13136 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
13137 never supercedes a real restriction, and that a real restriction
13138 always supercedes a warning.
13139 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
13142 2006-10-31 Bob Duff <duff@adacore.com>
13143 Ed Schonberg <schonberg@adacore.com>
13144 Robert Dewar <dewar@adacore.com>
13146 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
13147 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
13148 Is_Inherently_Limited_Type, because return-by-reference has no meaning
13150 (Find_Node_To_Be_Wrapped): Use new method of determining the result
13151 type of the function containing a return statement, because the
13152 Return_Type field was removed. We now use the Return_Applies_To field.
13154 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
13155 (Build_Task_Image_Decl): If procedure is not called from an
13156 initialization procedure, indicate that function that builds task name
13157 uses the sec. stack. Otherwise the enclosing initialization procedure
13158 will carry the indication.
13159 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
13160 N_Object_Declaration instead.
13161 (Kill_Dead_Code): New interface to implement -gnatwt warning for
13162 conditional dead code killed, and change implementation accordingly.
13163 (Insert_Actions): Add N_Return_Object_Declaration case.
13164 Correct comment to mention N_Extension_Aggregate node.
13165 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
13166 attempts to save information for global variables which cannot be
13168 (Get_Current_Value_Condition): Handle conditions the other way round
13169 (constant on left). Also handle right operand of AND and AND THEN
13170 (Set_Current_Value_Condition): Corresponding changes
13171 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
13172 (Get_Current_Value_Condition): Handle simple boolean operands
13173 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
13174 (Get_Current_Value_Condition): If the variable reference is within an
13175 if-statement, does not appear in the list of then_statments, and does
13176 not come from source, treat it as being at unknown location.
13177 (Get_Current_Value_Condition): Enhance to allow while statements to be
13178 processed as well as if statements.
13179 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
13181 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
13182 of loop. This is safe now that we fixed Kill_Current_Values.
13183 (OK_To_Do_Constant_Replacement): Check whether current scope is
13184 Standard, before examining outer scopes.
13186 2006-10-31 Vincent Celier <celier@adacore.com>
13188 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
13189 When True, apply VMS treatment to children of packages A, G, I and S.
13192 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
13194 2006-10-31 Robert Dewar <dewar@adacore.com>
13195 Ed Schonberg <schonberg@adacore.com>
13197 * freeze.adb: Add handling of Last_Assignment field
13198 (Warn_Overlay): Supply missing continuation marks in error msgs
13199 (Freeze_Entity): Add check for Preelaborable_Initialization
13201 * g-comlin.adb: Add Warnings (Off) to prevent new warning
13203 * g-expect.adb: Add Warnings (Off) to prevent new warning
13205 * lib-xref.adb: Add handling of Last_Assignment field
13206 (Generate_Reference): Centralize handling of pragma Obsolescent here
13207 (Generate_Reference): Accept an implicit reference generated for a
13208 default in an instance.
13209 (Generate_Reference): Accept a reference for a node that is not in the
13210 main unit, if it is the generic body corresponding to an subprogram
13213 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
13215 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
13217 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
13219 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
13220 use clauses, to avoid messages on packages used to qualify, and also
13221 to avoid messages from obsolescent units.
13222 (Warn_On_Useless_Assignments): Don't generate messages for imported
13223 and exported variables.
13224 (Warn_On_Useless_Assignments): New procedure
13225 (Output_Obsolescent_Entity_Warnings): New procedure
13226 (Check_Code_Statement): New procedure
13228 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
13229 Change name Is_Ada_2005 to Is_Ada_2005_Only
13230 (Last_Assignment): New field for useless assignment warning
13232 2006-10-31 Olivier Hainque <hainque@adacore.com>
13234 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
13235 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
13237 2006-10-31 Bob Duff <duff@adacore.com>
13238 Robert Dewar <dewar@adacore.com>
13239 Ed Schonberg <schonberg@adacore.com>
13241 * g-awk.adb (Default_Session, Current_Session): Compile this file in
13242 Ada 95 mode, because it violates the new rules for AI-318.
13244 * g-awk.ads: Use overloaded subprograms in every case where we used to
13245 have a default of Current_Session. This makes the code closer to be
13246 correct for both Ada 95 and 2005.
13248 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
13249 code, relying on the fact that the compiler generates a warning
13250 instead of an error in -gnatg mode.
13252 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
13253 E_Return_Statement entity kind.
13254 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
13256 * par.adb (P_Interface_Type_Definition): Addition of one formal to
13257 report an error if the reserved word abstract has been previously found.
13258 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
13260 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
13261 parenthesized range attribute usage
13262 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
13264 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
13265 in the syntax for extended_return_statement. This is not in the latest
13266 RM, but the ARG is expected to issue an AI allowing this.
13267 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
13268 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
13269 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
13270 P_Return_Statement): Parse the new syntax for extended_return_statement.
13272 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
13273 Output_End_Missing): Add error-recovery code for the new
13274 extended_return_statement syntax; that is, the new E_Return entry on
13277 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
13278 limited to nonlimited, because otherwise we violate the new Ada 2005
13279 rules about returning limited types in function Create_AST_Handler in
13282 * sem.adb (Analyze): Add cases for new node kinds
13283 N_Extended_Return_Statement and N_Return_Object_Declaration.
13285 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
13286 type is in the same category as type of context before applying check,
13287 to prevent anomalies in instantiations.
13288 (Resolve_Aggregate): Remove test for limited components in aggregates.
13289 It's unnecessary in Ada 95, because if it has limited components, then
13290 it must be limited. It's wrong in Ada 2005, because limited aggregates
13292 (Resolve_Record_Aggregate): Move check for limited types later, because
13293 OK_For_Limited_Init requires its argument to have been resolved.
13294 (Get_Value): When copying the component default expression for a
13295 defaulted association in an aggregate, use the sloc of the aggregate
13296 and not that of the original expression, to prevent spurious
13297 elaboration errors, when the expression includes function calls.
13298 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
13299 were missing. We also didn't handle qualified expressions. Now also
13300 allow function calls. Use new common routine OK_For_Limited_Init.
13301 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
13302 with space can upper case letter).
13304 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
13305 Has_Static_Discriminants flag
13306 (Record_Type_Declaration): Diagnose an attempt to declare an interface
13307 type with discriminants.
13308 (Process_Range_Expr_In_Decl): Do validity checks on range
13309 (Build_Discriminant_Constraints): Use updated form of
13310 Denotes_Discriminant.
13311 (Process_Subtype): If the subtype is a private subtype whose full view
13312 is a concurrent subtype, introduce an itype reference to prevent scope
13314 (Build_Derived_Record_Type, Collect_Interface_Primitives,
13315 Record_Type_Declaration): The functionality of the subprograms
13316 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
13317 is now performed by a single routine.
13318 (Build_Derived_Record_Type): If the type definition includes an explicit
13319 indication of limitedness, then the type must be marked as limited here
13320 to ensure that any access discriminants will not be treated as having
13321 a local anonymous access type.
13322 (Check_Abstract_Overriding): Issue a detailed error message when an
13323 abstract subprogram was not overridden due to incorrect mode of its
13325 (Analyze_Private_Extension_Declaration): Add support for the analysis of
13326 synchronized private extension declarations. Verify that the ancestor is
13327 a limited or synchronized interface or in the generic case, the ancestor
13328 is a tagged limited type or synchronized interface and all progenitors
13329 are either limited or synchronized interfaces.
13330 Derived_Type_Declaration): Check for presence of private extension when
13331 dealing with synchronized formal derived types.
13332 Process_Full_View): Enchance the check done on the usage of "limited" by
13333 testing whether the private view is synchronized.
13334 Verify that a synchronized private view is completed by a protected or
13336 (OK_For_Limited_Init_In_05): New function.
13337 (Analyze_Object_Declaration): Move check for limited types later,
13338 because OK_For_Limited_Init requires its argument to have been resolved.
13339 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13340 in order to alleviate the upward compatibility introduced by AI-318.
13341 (Constrain_Corresponding_Record): If the constraint is for a component
13342 subtype, mark the itype as frozen, to avoid out-of-scope references to
13343 discriminants in the back-end.
13344 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
13345 this subprogram against wrong sources.
13346 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
13347 discriminant of limited type completed with a protected type, when the
13348 discriminant is used to constrain a private component of the type, and
13349 expansion is disabled.
13350 (Find_Type_Of_Object): Do not treat a return subtype that is an
13351 anonymous subtype as a local_anonymous_type, because its accessibility
13352 level is the return type of the enclosing function.
13353 (Check_Initialization): In -gnatg mode, turn the error "cannot
13354 initialize entities of limited type" into a warning.
13355 (OK_For_Limited_Init): Return true for generated nodes, since it
13356 sometimes violates the legality rules.
13357 (Make_Incomplete_Declaration): If the type for which an incomplete
13358 declaration is created happens to be the currently visible entity,
13359 preserve the homonym chain when removing it from visibility.
13360 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
13361 inherited subprograms.
13362 (Access_Definition): If this is an access to function that is the return
13363 type of an access_to_function definition, context is a type declaration
13364 and the scope of the anonymous type is the current one.
13365 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
13366 incomplete subtype to the set of private dependents of the original
13368 (Constrain_Discriminated_Type): Emit an error message whenever an
13369 incomplete subtype is being constrained.
13370 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
13371 corresponding subtype of the full view of the original incomplete type.
13372 (Check_Incomplete): Properly detect invalid usage of incomplete types
13375 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13377 * g-catiio.ads, g-catiio.adb (Value): New function.
13378 Given an input String, try and parse a valid Time value.
13380 2006-10-31 Vincent Celier <celier@adacore.com>
13382 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
13383 Integer_Address arithmetic, as in Set_Valid.
13385 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13386 Robert Dewar <dewar@adacore.com>
13388 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
13389 handling executable extension manually and duplicating code.
13391 * make.adb: Implement new -S switch
13392 (Gnatmake): Use new function Osint.Executable_Name instead
13393 of handling executable extension manually.
13395 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
13396 is specified, the executable name ends with this suffix.
13397 Take advantage of Osint.Executable_Name instead of duplicating code.
13399 * switch-m.adb: Recognize new gnatmake -S switch
13401 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
13403 (Get_Target_Parameters): Set Executable_Extension_On_Target if
13406 * makeusg.adb: Add line for gnatmake -S switch
13408 2006-10-31 Vincent Celier <celier@adacore.com>
13410 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
13411 call it with -static-libgcc, as there are some platforms, such as
13412 Darwin, where one of these two switches is compulsory to link.
13414 2006-10-31 Vincent Celier <celier@adacore.com>
13416 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
13417 instead of ADA_PROJECT_PATH, for the project path.
13418 (Gnatls): When displaying the project path directories, use host dir
13421 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
13422 names in the project path, as absolute paths may correspond to
13423 multi-valued VMS logical names.
13425 2006-10-31 Vincent Celier <celier@adacore.com>
13427 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
13428 absolute path name.
13429 (Locate_Regular_File): Ditto
13430 (Change_Dir): Remove, no longer used
13431 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
13432 on Windows. Get it calling Get_Current_Dir.
13433 (OpenVMS): Remove imported boolean, no longer needed.
13434 (Normalize_Pathname)[VMS]: Do not resolve directory names.
13435 (Pid_To_Integer): New function to convert a Process_Id to Integer
13437 2006-10-31 Thomas Quinot <quinot@adacore.com>
13439 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
13440 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
13442 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
13445 2006-10-31 Robert Dewar <dewar@adacore.com>
13447 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
13448 initial letter o as a zero.
13450 2006-10-31 Robert Dewar <dewar@adacore.com>
13452 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
13454 2006-10-31 Robert Dewar <dewar@adacore.com>
13456 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
13458 (Layout_Variant_Record): Retrieve the discriminants from the entity
13459 rather than from the type definition, because in the case of a full
13460 type for a private type we need to take the discriminants from the
13462 (Layout_Component_List): When applying the Max operator to variants with
13463 a nonstatic size, check whether either operand is static and scale that
13464 operand from bits to storage units before applying Max.
13465 (Layout_Type): In VMS, if a C-convention access type has no explicit
13466 size clause (and does not inherit one in the case of a derived type),
13467 then the size is reset to 32 from 64.
13469 2006-10-31 Vincent Celier <celier@adacore.com>
13471 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
13472 its file has already been loaded, according to the unit being loaded,
13473 not to the current value of Multiple_Unit_Index.
13475 2006-10-31 Thomas Quinot <quinot@adacore.com>
13476 Eric Botcazou <ebotcazou@adacore.com>
13477 Arnaud Charlet <charlet@adacore.com>
13479 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
13480 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
13482 (a-except.o): Pass it to the compiler.
13483 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
13484 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
13485 a-calend-mingw.adb version.
13487 * Makefile.rtl: Added s-dsaser.
13488 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
13489 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
13490 Ada.Dispatching.Round_Robin.
13491 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
13493 * Make-lang.in: Remove all references to gt-ada-decl.h.
13494 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
13496 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
13497 Update dependencies.
13499 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
13501 2006-10-31 Vincent Celier <celier@adacore.com>
13503 * mlib-utl.adb (Initialized): Remove, no longer used
13504 (Initialize): Remove, no longer used
13505 (Ar): If Ar_Exec is null, get the location of the archive builder and,
13506 if there is one, the archive indexer. Fail if the archive builder cannot
13508 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
13511 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13513 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
13514 Process_Body_Clauses): If the context of a body includes a use clause
13515 for P.Q then a with_clause for P in the same body is not redundant,
13516 even if the spec also has a with_clause on P.
13517 Add missing continuation mark to error msg
13518 (Build_Limited_Views): A limited view of a type is tagged if its
13519 declaration includes a record extension.
13520 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
13521 node, even if the subunit has errors. This avoids malfunction by
13522 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
13523 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
13524 generation of obsolescent messages for with statements (cannot do
13525 this too early, or we cannot implement avoiding the messages in the
13526 case of obsolescent units withing obsolescent units).
13527 (Install_Siblings): If the with_clause is on a remote descendant of
13528 an ancestor of the current compilation unit, find whether there is
13529 a sibling child unit that is immediately visible.
13530 (Remove_Private_With_Clauses): New procedure, invoked after completing
13531 the analysis of the private part of a nested package, to remove from
13532 visibility the private with_clauses of the enclosing package
13534 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
13535 now centralized in Generate_Reference.
13536 (Install_Limited_Context_Clauses): Remove superfluous error
13537 message associated with unlimited view visible through use
13538 and renamings. In addition, at the point in which the error
13539 is reported, we add the backslash to the text of the error
13540 to ensure that it is reported as a single error message.
13541 Use new // insertion for some continuation messages
13542 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
13543 to create implicit with_clause for parent unit mentioned in original
13544 limited_with_clause.
13545 (Install_Limited_With_Unit): Set entity of parent identifiers if the
13546 unit is a child unit. For ASIS queries.
13547 (Analyze_Subunit): If the subunit appears within a child unit, make all
13548 ancestor child units directly visible again.
13550 2006-10-31 Robert Dewar <dewar@adacore.com>
13552 * par-ch10.adb (P_Context_Clause): Minor error message fix
13554 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13555 Javier Miranda <miranda@adacore.com>
13557 * par-ch12.adb: Grammar update and cleanup.
13558 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
13559 support for synchronized derived type definitions.
13560 Add the new actual Abstract_Present to every call to
13561 P_Interface_Type_Definition.
13562 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
13563 a formal object declaration with an access definition or a subtype mark
13564 with a null exclusion.
13565 (P_Generic_Association): Handle association with box, and others_choice
13566 with box, to support Ada 2005 partially parametrized formal packages.
13568 2006-10-31 Robert Dewar <dewar@adacore.com>
13569 Javier Miranda <miranda@adacore.com>
13571 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
13572 (P_Type_Declaration): Remove barrier against the reserved word "limited"
13573 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
13574 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
13575 private extensions.
13576 (P_Type_Declaration): Add the new actual Abstract_Present to every call
13577 to P_Interface_Type_Definition.
13578 (P_Interface_Type_Definition): Addition of one formal to report an error
13579 if the reserved word abstract has been previously found.
13580 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
13581 object renaming declaration with an access definition or subtype mark
13582 with a possible null exclusion.
13584 * par-ch9.adb: Minor error msg fix
13586 * par-load.adb: Add missing continuation mark to error msg
13588 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
13590 2006-10-31 Vincent Celier <celier@adacore.com>
13592 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
13593 unknown attribute in unknown package or in package that does not need
13595 (Parse_Package_Declaration): Do not issue warning for unknown package in
13598 2006-10-31 Vincent Celier <celier@adacore.com>
13600 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
13601 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
13604 2006-10-31 Vincent Celier <celier@adacore.com>
13606 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
13607 on VMS, change "__" to '.' before checking the name.
13608 (Record_Ada_Source): Always add the source file name in the list of
13609 of sources, even if it is not the first time, as it is for another
13611 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
13612 dot, instead of replacing only the first '_'.
13614 * prj-part.adb (Parse): Convert project file path to canonical form
13616 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
13617 extended, the project id of the project extending it is recorded in its
13618 data, even when it has already been processed as an imported project.
13620 2006-10-31 Robert Dewar <dewar@adacore.com>
13622 * repinfo.adb (List_Entities): Don't list entities from renaming
13625 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13626 Robert Dewar <dewar@adacore.com>
13628 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
13629 only a restriction warning is active for the given restriction. This is
13630 desirable because we do not want to modify code in the case where only
13632 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
13633 causes overriding of real restrictions.
13634 Take advantage of new No_Restrictions constant.
13636 * raise.h: (__gnat_set_globals): Change profile.
13638 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13640 * rtsfind.adb: Remove s-polint from comment as it exists no more.
13643 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
13644 Move all the entities in obsolete package System.PolyORB_Interface to
13645 System.Partition_Interface.
13646 (RE_Storage_Size): New function in System.Tasking.
13647 (RE_Get_Ceiling): New entity.
13648 (RE_Set_Ceiling): New entity.
13649 (RO_PE_Get_Ceiling): New entity.
13650 (RO_RE_Set_Ceiling): New entity.
13651 (Inherit_CPP_DT): New entity
13653 2006-10-31 Robert Dewar <dewar@adacore.com>
13655 * scng.adb (Scan, case of numeric literal): Better msg for identifier
13656 starting with a digit.
13658 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13659 Thomas Quinot <quinot@adacore.com>
13660 Javier Miranda <miranda@adacore.com>
13661 Gary Dismukes <dismukes@adacore.com>
13663 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
13664 properly an attempt to apply Unchecked_Access to a protected operation.
13665 (OK_Self_Reference): New subprogram to check the legality of an access
13666 attribute whose prefix is the type of an enclosing aggregate.
13667 Generalizes previous mechanism to handle attribute references nested
13668 arbitrarily deep within the aggregate.
13669 (Analyze_Access_Attribute): An access attribute whose prefix is a type
13670 can appear in an aggregate if this is a default-initialized aggregate
13671 for a self-referential type.
13672 (Resolve_Attribute, case Access): Ditto.
13673 Add support for new implementation defined attribute Stub_Type.
13674 (Eval_Attribute, case Attribute_Stub_Type): New case.
13675 (Analyze_Attribute, case Attribute_Stub_Type): New case.
13676 (Stream_Attribute_Available): Implement using new subprogram from
13677 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
13678 Has_Specified_Stream_Attribute flag.
13679 Disallow Storage_Size and Storage_Pool for access to subprogram
13680 (Resolve_Attribute, case 'Access et al): Take into account anonymous
13681 access types of return subtypes in extended return statements. Remove
13682 accessibility checks on anonymous access types when Unchecked_Access is
13684 (Analyze_Attribute): Add support for the use of 'Class to convert
13685 a class-wide interface to a tagged type.
13686 Add support for the attribute Priority.
13687 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
13688 whether the designated type is discriminated with a constrained partial
13689 view and require static matching in that case.
13690 Add local variable Des_Btyp. The Designated_Type
13691 of an access to incomplete subtype is either its non-limited view if
13692 coming from a limited with or its etype if regular incomplete subtype.
13694 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
13695 Fix predicate to identify and allow cases of (expander-generated)
13696 references to tag of designated object of a RACW.
13697 (Validate_Static_Object_Name): In Ada 2005, a formal object is
13698 non-static, and therefore cannot appear as a primary in a preelaborable
13700 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
13701 Has_Read_Write_Attributes.
13702 (Has_Read_Write_Attributes): Reimplement in termes of
13703 Has_Stream_Attribute_Definition.
13704 (Missing_Read_Write_Attributes): When checking component types in a
13705 record, unconditionally call Missing_Read_Write_Attributes recursively
13706 (remove guard checking for Is_Record_Type / Is_Access_Type).
13708 2006-10-31 Robert Dewar <dewar@adacore.com>
13710 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
13711 useless assignments here and conditionalize it on absence of exception
13713 (Analyze_Exception_Handlers): Small code reorganization of error
13714 detection code, for new handling of formal packages.
13716 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13717 Hristian Kirtchev <kirtchev@adacore.com>
13719 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
13720 that has been constant-folded, preserve information of original tree,
13722 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
13723 generated private extension declaration if the formal derived type is
13724 synchronized. Carry synchronized present over to the generated private
13726 (Validate_Derived_Type_Instance): Ensure that the actual of a
13727 synchronized formal derived type is a synchronized tagged type.
13728 (Instantiate_Formal_Package): When creating the instantiation used to
13729 validate the actual package of a formal declared without a box, check
13730 whether the formal itself depends on a prior actual.
13731 (Instantiate_Formal_Subprogram): Create new entities for the defining
13732 identifiers of the formals in the renaming declaration, for ASIS use.
13733 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
13734 a renaming declaration or a subtype declaration for an actual in an
13735 instance, capture location information of declaration in generic, for
13737 (Instantiate_Formal_Package): Add comments on needed additional tests.
13738 AI-317 (partial parametrization) is fully implemented.
13739 (Validate_Private_Type_Instance): Add check for actual which
13740 must have preelaborable initialization
13741 Use new // insertion for some continuation messages
13742 (Analyze_Formal_Object_Declaration): Change usage of Expression to
13743 Default_Expression. Add type retrieval when the declaration has an
13744 access definition. Update premature usage of incomplete type check.
13745 (Check_Access_Definition): New subsidiary routine. Check whether the
13746 current compilation version is Ada 05 and the supplied node has an
13748 (Instantiate object): Alphabetize local variables. Handle the creation
13749 of new renaming declarations with respect to the kind of definition
13750 used - either an access definition or a subtype mark. Guard against
13751 unnecessary error message in the context of anonymous access types after
13752 they have been resolved. Add check for required null exclusion in a
13753 formal object declaration.
13754 (Switch_View): A private subtype of a non-private type needs to be
13755 switched (the base type can have been switched without its private
13756 dependents because of the last branch of Check_Private_View.
13757 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
13759 (Instantiate_Type): Emit an error message whenever a class-wide type of
13760 a tagged incomplete type is used as a generic actual.
13761 (Find_Actual_Type): Extend routine to handle a component type in a child
13762 unit that is imported from a formal package in a parent.
13763 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
13764 agree on constrainedness, rather than checking against ultimate ancestor
13765 (Instantiate_Subprogram_Body): Create a cross-reference link to the
13766 generic body, for navigation purposes.
13768 2006-10-31 Robert Dewar <dewar@adacore.com>
13769 Thomas Quinot <quinot@adacore.com>
13771 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
13773 (New_Stream_Subprogram): When processing an attribute definition clause
13774 for a stream-oriented subprogram, record an entity node occurring at
13775 the point of clause to use for checking the visibility of the clause,
13776 as defined by 8.3(23) as amended by AI-195.
13777 (New_Stream_Subprogram): New procedure, factoring behaviour from both
13778 New_Stream_Function and New_Stream_Procedure.
13779 (New_Stream_Function, New_Stream_Procedure): Removed.
13780 (Analyze_Attribute_Definition_Clause, case Address): Check new
13781 Alignment_Check check
13783 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13784 Javier Miranda <miranda@adacore.com>
13785 Robert Dewar <dewar@adacore.com>
13787 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
13788 generate the same errors compiling under -gnatc.
13789 (Try_Object_Operation): If no candidate interpretation succeeds, but
13790 there is at least one primitive operation with the right name, report
13791 error in call rather than on a malformed selected component.
13792 (Analyze_Selected_Component): If the prefix is an incomplete type from
13793 a limited view, and the full view is available, use the full view to
13794 determine whether this is a prefixed call to a primitive operation.
13795 (Operator_Check): Verify that a candidate interpretation is a binary
13796 operation before checking the type of its second formal.
13797 (Analyze_Call): Add additional warnings for function call contexts not
13799 (Analyze_Allocator): Move the check for "initialization not allowed for
13800 limited types" after analyzing the expression. This is necessary,
13801 because OK_For_Limited_Init looks at the structure of the expression.
13802 Before analysis, we don't necessarily know what sort of expression it
13803 is. For example, we don't know whether F(X) is a function call or an
13804 indexed component; the former is legal in Ada 2005; the latter is not.
13805 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
13806 were missing. We also didn't handle qualified expressions. Now also
13807 allow function calls. Use new common routine OK_For_Limited_Init.
13808 (Analyze_Type_Conversion): Do not perform some legality checks in an
13809 instance, because the error message will be redundant or spurious.
13810 (Analyze_Overloaded_Selected_Component): Do not do style check when
13811 setting an entity, since we do not know it is the right entity yet.
13812 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
13813 (Analyze_Overloaded_Selected_Component): Same change
13814 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
13815 since regular incomplete subtypes are transformed into corresponding
13816 subtypes of their full views.
13817 (Complete_Object_Operation): Treat name of transformed subprogram call
13818 as coming from source, for browsing purposes.
13819 (Try_Primitive_Operation): If formal is an access parameter, compare
13820 with base type of object to determine whether it is a primitive
13822 (Operator_Check): If no interpretation of the operator matches, check
13823 whether a use clause on any candidate might make the operation legal.
13824 (Try_Class_Wide_Operation): Check whether the first parameter is an
13825 access type whose designated type is class-wide.
13827 2006-10-31 Robert Dewar <dewar@adacore.com>
13828 Ed Schonberg <schonberg@adacore.com>
13829 Gary Dismukes <dismukes@adacore.com>
13831 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
13832 warn on infinite loops.
13833 Add \\ to some continuation messages
13834 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
13835 (Process_Bounds): If the bounds are integer literals that result from
13836 constant-folding, and they carry a user-defined type, preserve that type
13837 rather than treating this as an integer range.
13838 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
13839 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
13840 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
13841 left hand side of assignment.
13842 (Analyze_Assignment): Add suport to manage assigments to the attribute
13843 priority of a protected object.
13844 (Check_Possible_Current_Value_Condition): Allow fully qualified names
13845 not just identifiers.
13846 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
13847 or AND THEN for possible tracking.
13848 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
13849 case of while loops so we can track values in the loop body.
13851 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13852 Hristian Kirtchev <kirtchev@adacore.com>
13853 Bob Duff <duff@adacore.com>
13855 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
13856 procedure cannot be a protected operation (it is a basic_declaration,
13857 not a subprogram_declaration).
13858 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
13859 Subp. Add logic for entry processing.
13860 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
13861 Determine whether an entry or subprogram of a protected or task type
13862 override an inherited primitive of an implemented interface.
13863 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
13864 Update the actual used in calls to Check_Overriding_Indicator.
13865 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
13866 generate the proper reference to the parent unit, for cross-reference.
13867 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
13869 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13870 (Add_Extra_Formal): Revise procedure to allow passing in associated
13871 entity, scope, and name suffix, and handle setting of the new
13872 Extra_Formals field.
13873 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
13874 pass new parameters. Add support for adding the new extra access formal
13875 for functions whose calls are treated as build-in-place.
13876 (Analyze_A_Return_Statement): Correct casing in error message.
13877 Move Pop_Scope to after Analyze_Function_Return, because an extended
13878 return statement really is a full-fledged scope. Otherwise, visibility
13879 doesn't work right. Correct use of "\" for continuation messages.
13880 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
13881 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
13882 the node doesn't get properly marked as analyzed.
13883 (Analyze_Subprogram_Body): If subprogram is a function that returns
13884 an anonymous access type that denotes a task, build a Master Entity
13886 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
13887 proper usage of null exclusion in a result definition.
13888 (Process_Formals): Code cleanup and new error message.
13889 (Process_Formals): Detect incorrect application of null exclusion to
13891 (Conforming_Types): Handle conformance between [sub]types and itypes
13892 generated for entities that have null exclusions applied to them.
13893 (Maybe_Primitive_Operation): Add an additional type retrieval when the
13894 base type is an access subtype. This case arrises with null exclusions.
13895 (New_Overloaded_Entity): Do not remove the overriden entity from the
13896 homonym chain if it corresponds with an abstract interface primitive.
13897 (Process_Formals): Replace membership test agains Incomplete_Kind with a
13898 call to the synthesized predicate Is_Incomplete_Type.
13899 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
13901 (Analyze_Subprogram_Declaration): Check that abstract interface
13902 primitives are abstract or null.
13903 (Analyze_Subprogram_Specification): Remove previous check for abstract
13904 interfaces because it was not complete.
13905 (Has_Interface_Formals): Removed.
13907 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13908 Javier Miranda <miranda@adacore.com>
13910 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
13911 of Analyze_Package_Body, to create Itype references for anonymous
13912 access types created in the package declaration, whose designated types
13913 may have only a limited view.
13914 (Analyze_Package_Specification): For the private part of a nested
13915 package, install private_with_clauses of enclosing compilation unit if
13916 we are in its visible part.
13917 (Declare_Inherited_Private_Subprograms): Complete barrier
13918 to ensure that the primitive operation has an alias to some parent
13919 primitive. This is now required because, after the changes done for the
13920 implementation of abstract interfaces, the contents of the list of
13921 primitives has entities whose alias attribute references entities of
13922 such list of primitives.
13923 (Analyze_Package_Specification): Simplify code that handles parent units
13924 of instances and formal packages.
13925 (Uninstall_Declarations): Check the convention consistency among
13926 primitive overriding operations of a tagged record type.
13928 2006-10-31 Robert Dewar <dewar@adacore.com>
13929 Hristian Kirtchev <kirtchev@adacore.com>
13930 Javier Miranda <miranda@adacore.com>
13931 Ed Schonberg <schonberg@adacore.com>
13933 * sem_ch8.adb: Minor error msg rewording
13934 (Undefined): When checking for misspellings, invert arguments (to get
13935 expected and found set right)
13936 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
13937 (Analyze_Generic_Renaming): Same fix
13938 (Use_One_Package): Do not take into account the internal entities of
13939 abstract interfaces during the analysis of entities that are marked
13940 as potentially use-visible.
13941 (Find_Type): Handle the case of an attribute reference for
13942 implementation defined attribute Stub_Type (simply let the analysis of
13943 the attribute reference rewrite it).
13944 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
13945 type that appears in a Use_Type clause.
13946 (Analyze_Object_Renaming): Add support for renaming of the Priority
13948 (Find_Type): In Ada 2005, a task type can be used within its own body,
13949 when it appears in an access definition.
13950 (Analyze_Object_Renaming): Remove warning on null_exclusion.
13951 (Analyze_Object_Renaming): Introduce checks for required null exclusion
13952 in a formal object declaration or in a subtype declaration.
13953 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
13954 (Check_Null_Exclusion): New local routine to
13955 Analyze_Subprogram_Renaming. Check whether the formals and return
13956 profile of a renamed subprogram have required null exclusions when
13957 their counterparts of the renaming already impose them.
13958 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
13959 Determine whether an entity is inside a generic scope.
13960 (In_Open_Scope): First pass of documentation update.
13961 (Find_Expanded_Name): Add support for shadow entities associated with
13962 limited withed packages. This is required to handle nested packages.
13963 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
13964 that makes a renaming of a limited withed package illegal.
13966 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13967 Ed Schonberg <schonberg@adacore.com>
13969 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
13970 Check_Overriding_Indicator.
13971 (Analyze_Task_Definition): Ditto.
13972 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
13973 (Check_Overriding_Indicator): To find overridden interface operation,
13974 examine only homonyms that have an explicit subprogram declaration, not
13975 inherited operations created by an unrelated type derivation.
13976 (Check_Overriding_Indicator): When checking for the presence of "null"
13977 in a procedure, ensure that the queried node is a procedure
13979 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
13980 type when the formal is an access to variable.
13981 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
13982 (Analyze_Task_Type): Same addition
13983 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
13984 provide navigation capabilities for entries.
13986 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13987 Ed Schonberg <schonberg@adacore.com>
13988 Javier Miranda <miranda@adacore.com>
13989 Gary Dismukes <dismukes@adacore.com>
13991 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
13992 inherited from an interface ancestor by another interface in the
13993 context of an instance as 'late'.
13994 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
13995 of a call to a function that dispatches on access result.
13996 (Check_Dispatching_Operation): In case of late overriding of a primitive
13997 that covers abstract interface subprograms we register it in all the
13998 secondary dispatch tables associated with abstract interfaces.
13999 (Check_Dispatching_Call): Add check that a dispatching call is not made
14000 to a function with a controlling result of a limited type. This is a
14001 current implementation restriction.
14002 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
14003 (Check_Dispatching_Operation): Do no emit a warning if the controlling
14004 argument is an interface type that is a generic formal.
14005 (Is_Interface_Subprogram): Removed.
14006 (Check_Dispatching_Operation): If the subprogram is not a dispatching
14007 operation, check the formals to handle the case in which it is
14008 associated with an abstract interface type.
14010 2006-10-31 Robert Dewar <dewar@adacore.com>
14011 Ed Schonberg <schonberg@adacore.com>
14013 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
14014 Add new calls to this procedure during traversal
14015 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
14016 another unit if expansion is disabled.
14018 2006-10-31 Robert Dewar <dewar@adacore.com>
14020 * sem_eval.adb (Compile_Time_Compare): Make use of information from
14021 Current_Value in the conditional case, to evaluate additional
14022 comparisons at compile time.
14024 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14025 Hristian Kirtchev <kirtchev@adacore.com>
14026 Javier Miranda <miranda@adacore.com>
14028 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
14029 subprogram type to provide better diagnostics in case of ambiguity.
14030 (Covers): Handle coverage of formal and actual anonymous access types in
14031 the context of generic instantiation.
14032 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
14033 abstract interface types; this is required to handle concurrent types
14034 with discriminants and abstract interface types.
14035 (Covers): Include type coverage of both regular incomplete subtypes and
14036 incomplete subtypes of incomplete type visibles through a limited with
14039 2006-10-31 Robert Dewar <dewar@adacore.com>
14040 Hristian Kirtchev <kirtchev@adacore.com>
14041 Ed Schonberg <schonberg@adacore.com>
14043 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
14044 messages for entities in packages which are not used.
14045 (Collect_Synchronized_Interfaces): New procedure.
14046 (Overrides_Synchronized_Primitive): New function.
14047 (Denotes_Discriminant): Extend predicate to apply to task types.
14048 Add missing continuation marks in error msgs
14049 (Unqualify): New function for removing zero or more levels of
14050 qualification from an expression. There are numerous places where this
14051 ought to be used, but we currently only deal properly with zero or one
14053 (In_Instance); The analysis of the actuals in the instantiation of a
14054 child unit is not within an instantiation, even though the parent
14055 instance is on the scope stack.
14056 (Safe_To_Capture_Value): Exclude the case of variables that are
14058 (Check_Obsolescent): Removed
14059 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
14060 is an aliased view, even when rewritten as a reference to the target
14061 object in an assignment.
14062 (Get_Subprogram_Entity): New function
14063 (Known_To_Be_Assigned): New function
14064 (Type_Access_Level): Compute properly the access level of a return
14065 subtype that is an anonymous access type.
14066 (Explain_Limited_Type): Correct use of "\" for continuation messages.
14067 (Is_Transfer): The new extended_return_statement causes a transfer of
14069 (Has_Preelaborable_Initialization): New function
14070 (Has_Null_Exclusion): New function. Given a node N, determine whether it
14071 has a null exclusion depending on its Nkind.
14072 Change Is_Lvalue to May_Be_Lvalue
14073 (May_Be_Lvalue): Extensive additional code to deal with subprogram
14074 arguments (IN parameters are not Lvalues, IN OUT parameters are).
14075 (Safe_To_Capture_Value): Extend functionality so it can be used for
14076 the current value condition case.
14077 (Has_Compatible_Alignment): New function
14078 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
14079 objects to handle the Ada 2005 case, where aliasedness no longer implies
14080 that the object is constrained. In particular, for dereferenced names,
14081 the designated object must be assumed to be unconstrained.
14082 (Kill_Current_Values): Properly deal with the case where we encounter
14083 a loop in the scope chain.
14084 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
14086 (Compile_Time_Constraint_Error): Improve error message in error case
14088 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
14089 associated with entities of abstract interface primitives.
14090 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
14092 2006-10-31 Robert Dewar <dewar@adacore.com>
14094 * s-osinte-tru64.adb:
14095 Mark Asm statements Volatile to prevent warnings (seems a
14096 reasonable change anyway)
14099 * s-mastop-irix.adb: Add Volatile to Asm statements
14100 Suppresses warning, and seems appropriate in any case
14102 * s-osinte-vms.adb: Add Volatile to Asm statement
14104 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
14106 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
14108 Add call to Check_Code_Statement
14110 2006-10-31 Robert Dewar <dewar@adacore.com>
14111 Ed Schonberg <schonberg@adacore.com>
14112 Bob Duff <duff@adacore.com>
14114 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
14115 Synchronized_Present): Add Formal_Derived_Type_Definition and
14116 Private_Extension_Declaration to the list of assertions.
14117 (Is_Entry_Barrier_Function): New flag
14118 (Has_Self_Reference): New flag on aggregates, to indicate that they
14119 contain a reference to the enclosing type, inserted through a default
14121 (Next_Rep_Item): Move from Node4 to Node5.
14122 (Entity): Add this field for N_Attribute_Definition_Clause.
14123 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
14124 (N_Return_Object_Declaration): Remove this node kind. We now use
14125 N_Object_Declaration instead.
14126 (Actual_Designated_Subtype): Move to a different place to make room in
14127 N_Extended_Return_Statement.
14128 (Procedure_To_Call): Move to a different place to make room in
14129 N_Extended_Return_Statement.
14130 (Return_Type): Removed this field to make room in return statements
14132 (Return_Statement_Entity): New field in return statements, in part to
14133 replace Return_Type, and in part to support the fact that return
14134 statements are now pushed on the scope stack during semantic analysis.
14135 (Return_Object_Declarations): New field to support extended return
14137 (N_Extended_Return_Statement): New node for extended_return_statement
14139 (N_Return_Object_Declaration): New node for part of
14140 extended_return_statement nonterminal. Needed because all the necessary
14141 fields won't fit in N_Extended_Return_Statement.
14142 Generic_associations now carry the Box_Present flag, to indicate a
14143 default for an actual in a partially parametrized formal package.
14145 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
14146 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
14147 and for the new predefined dispatching policies: EDF_Across_Priorities,
14148 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
14149 Introduce new name Stub_Type for implementation defined attribute.
14150 Add pragma Preelaborable_Initialization
14151 Add entry for Priority attribute.
14152 Add Pragma_Wide_Character_Encoding
14153 (Get_Convention_Name): Given a convention id, this function returns the
14154 corresponding name id from the names table.
14156 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14157 Robert Dewar <dewar@adacore.com>
14158 Bob Duff <duff@adacore.com>
14160 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
14161 print null exclusion twice in the case of an access definition,
14162 Implement new -gnatL switch
14163 Remove N_Return_Object_Declaration. We now use
14164 N_Object_Declaration instead. Implement the case for
14165 N_Extended_Return_Statement. Alphabetize the cases.
14166 Add cases for new nodes N_Extended_Return_Statement and
14167 N_Return_Object_Declaration. The code is not yet written.
14168 Update the output for N_Formal_Object_Declaration
14169 and N_Object_Renaming_Declaration.
14170 (Write_Itype): Account for the case of a modular integer subtype whose
14171 base type is private.
14173 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14175 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
14176 Remove elaboration code, now done in the binder.
14178 * s-rident.ads: Make this unit Preelaborate.
14179 (No_Restrictions): New constant used to clean up code and follow
14180 preelaborate constraints.
14183 Add System.Restrictions dependence, referenced directly from the
14184 binder generated file.
14186 2006-10-31 Gary Dismukes <dismukes@adacore.com>
14188 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
14189 True when AAMP extended floating-point is in use (48-bit). Change type
14190 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
14191 the two byte array types on AFloat. Change type of IV_Ilf overlay
14192 variable from Byte8 to ByteLF. Add appropriate initializations of
14193 floating-point overlays for AAMP cases.
14195 2006-10-31 Javier Miranda <miranda@adacore.com>
14197 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
14198 (Get_Ceiling): New subprogram that returns
14199 the ceiling priority of the protected object.
14200 (Set_Ceiling): New subprogram that sets the new ceiling priority of
14201 the protected object.
14203 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
14205 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
14207 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14209 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
14210 requeuing to the same protected object to give higher priority tasks
14211 the opportunity to execute.
14213 2006-10-31 Robert Dewar <dewar@adacore.com>
14215 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
14216 add more precise check for the character sequence that follows '[' to
14217 avoid possible confusion in case if '[' is the last character of a
14219 (Scan_Wide): Always allow brackets encoding
14221 2006-10-31 Olivier Hainque <hainque@adacore.com>
14223 * s-stchop.ads: make this unit preelaborate. This is desirable in
14224 general and made mandatory by the use of this unit by s-taprop which
14225 is itself preelaborate.
14227 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
14228 Td_Events component.
14230 2006-10-31 Vincent Celier <celier@adacore.com>
14232 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
14235 2006-10-31 Vincent Celier <celier@adacore.com>
14237 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
14239 2006-10-31 Vincent Celier <celier@adacore.com>
14241 * makegpr.adb (Check_Compilation_Needed): Take into account path names
14243 (Check_Compilation_Needed): When checking a C or C++ source, do not
14244 resolve symbolic links.
14245 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
14246 When not in verbose mode and Ellipse is True, display "..." for the
14247 first argument with Display set to False.
14248 (Build_Global_Archive): Always set Display True for the first object
14249 file. Call Display_Command with Ellipse set to True.
14251 2006-10-31 Matt Heaney <heaney@adacore.com>
14253 * a-crbtgo.ads: Commented each subprogram
14255 * a-crbtgo.adb: Added reference to book from which algorithms were
14258 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
14259 indicate which child.
14260 (Generic_Conditional_Insert): changed parameter name from "Success" to
14262 (Generic_Unconditional_Insert_With_Hint): improved algorithm
14264 * a-coorse.adb (Replace_Element): changed parameter name in call to
14265 conditional insert operation.
14267 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
14269 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
14272 * a-ciorse.adb (Replace_Element): changed parameter name in call to
14273 conditional insert operation.
14275 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
14278 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
14279 instead of mode inout.
14281 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
14283 (Generic_Read): preserve existing buckets array if possible
14284 (Generic_Write): don't send buckets array length anymore
14286 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
14287 instead of mode inout.
14289 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
14290 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14292 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
14293 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14294 (Replace_Element): local operation is now an instantiation
14296 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
14297 check current length.
14298 (Generic_Replace_Element): new operation
14300 2006-10-31 Doug Rupp <rupp@adacore.com>
14302 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
14303 Call TBK$SYMBOLIZE without omitting parameters.
14305 2006-10-31 Vincent Celier <celier@adacore.com>
14307 * symbols-processing-vms-ia64.adb,
14308 symbols-processing-vms-alpha.adb (Process): Do not include symbols
14309 that come from generic instantiations in bodies.
14311 2006-10-31 Pat Rogers <rogers@adacore.com>
14313 * a-rttiev.ads, a-rttiev.adb:
14314 This is a significant redesign primarily for the sake of automatic
14315 timer task termination but also to fix a design flaw.
14316 Therefore we are now using an RTS lock, instead of a protected
14317 object, to provide mutual exclusion to the queue of pending events
14318 and the type Timing_Event is no longer a protected type.
14320 2006-10-31 Robert Dewar <dewar@adacore.com>
14321 Cyrille Comar <comar@adacore.com>
14322 Ben Brosgol <brosgol@adacore.com>
14324 * debug.adb: Update flags documentation
14326 * gnat_ugn.texi: Add documentation for new -gnatwq switch
14327 Clean up documentation for several other warning switches
14328 Clarify how task stack size can be specified with various
14329 versions of Windows.
14330 Add note that -gnatVo includes ranges including loops
14331 Add documentation for -gnatL switch
14332 Add note on elaboration warning for initializing variables
14333 Add documentation for new -gnatwt warning switch
14334 Document new form of pragma Warnings (On|Off, string)
14335 Add comment on use of pragma Warnings to control warnings
14336 Add documentation for -gnatjnn switch
14337 Modify section on interfacing with C for VMS 64-bit.
14338 Add doc for -gnatVe/E
14339 Add documentation of new warning flags -gnatww/-gnatwW
14340 Add warnings about address clause overlays to list of warnings
14341 (Exception Handling Control): Document that the option --RTS must be
14342 used consistently for gcc and gnatbind.
14343 Clarify that inlining is not always possible
14344 Update documentation on pragma Unchecked_Union.
14347 Add documentation for new extended version of pragma Obsolescent
14348 Add documentation for implementation defined attribute 'Stub_Type.
14349 Add note on use of Volatile in asm statements
14350 Add documentation on use of pragma Unreferenced in context clause
14351 Document new form of pragma Warnings (On|Off, pattern)
14352 Document pragma Wide_Character_Encoding
14353 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
14354 enforced if code generation is active.
14355 Add section on pragma Suppress to document GNAT specific check
14357 Clarify difference between No_Dispatching_Calls & No_Dispatch.
14358 Add documentation for pragma Restrictions (No_Elaboration_Code)
14361 Add comments on layout of subprogram local variables in the
14362 presence of nested subprograms.
14364 * ug_words: Resync.
14366 * elists.ads: Minor reformatting
14367 Node returns Node_Or_Entity_Id (doc change only)
14369 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
14371 * g-arrspl.ads (Create): Update comments.
14373 * sem.ads: Add details on the handling of the scope stack.
14375 * usage.adb: Update documentation.
14377 * validsw.ads, validsw.adb:
14378 Add definition of Validity_Check_Components and implement -gnatVe/E
14380 * vms_data.ads: Add missing VMS qualifiers.
14382 * s-addope.ads: Add documentation on overflow and divide by zero
14384 2006-10-31 Robert Dewar <dewar@adacore.com>
14385 Thomas Quinot <quinot@adacore.com>
14386 Arnaud Charlet <charlet@adacore.com>
14388 * fmap.adb: Put routines in alpha order
14390 * g-boumai.ads: Remove redundant 'in' keywords
14392 * g-cgi.adb: Minor reformatting
14394 * g-cgi.ads: Remove redundant 'in' keywords
14396 * get_targ.adb: Put routines in alpha order
14398 * prj-attr.ads: Minor reformatting
14400 * s-atacco.ads: Minor reformatting
14402 * scn.adb: Put routines in alpha order
14404 * sinput-l.adb: Minor comment fix
14406 * sinput-p.adb: Minor comment fix
14408 * s-maccod.ads: Minor reformatting
14410 * s-memory.adb: Minor reformatting
14412 * s-htable.adb: Fix typo in comment.
14414 * s-secsta.adb: Minor comment update.
14416 * s-soflin.adb: Minor reformatting
14419 Add comment about odd qualification in Storage_Offset declaration
14422 Remove unnecessary 'in' keywords for formal parameters.
14424 * treeprs.adt: Minor reformatting
14426 * urealp.adb: Put routines in alpha order
14428 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
14431 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14433 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
14435 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
14436 workaround as on other platforms.
14438 * g-eacodu-vms.adb: Remove redundant 'in' keywords
14439 * g-expect-vms.adb: Remove redundant 'in' keywords
14441 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
14442 clear error message if the list-of-files file cannot be opened.
14444 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
14445 equality operator is always visible.
14447 * lang.opt: Woverlength-strings: New option.
14450 Update copyright, since nmake.ads and nmake.adb have changed.
14452 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
14453 (Binder_Output_Time_Stamps_Set): removed.
14454 (Old_Binder_Output_Time_Stamp): idem.
14455 (New_Binder_Output_Time_Stamp): idem.
14456 (Recording_Time_From_Last_Bind): idem.
14457 (Recording_Time_From_Last_Bind): Make constant.
14459 * output.ads, output.adb (Write_Str): Allow LF characters
14460 (Write_Spaces): New procedure
14462 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
14464 * inline.adb: Minor reformatting
14466 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14468 * s-mastop-vms.adb: Remove redundant 'in' keywords
14470 * s-osprim-vms.adb: Remove redundant 'in' keywords
14472 * s-trafor-default.adb: Remove redundant 'in' keywords
14474 * 9drpc.adb: Remove redundant 'in' keywords
14476 * s-osinte-mingw.ads: Minor reformatting
14478 * s-inmaop-posix.adb: Minor reformatting
14480 * a-direio.ads: Remove quotes from Compile_Time_Warning message
14482 * a-exexda.adb: Minor code reorganization
14484 * a-filico.adb: Minor reformatting
14486 * a-finali.adb: Minor reformatting
14488 * a-nudira.ads: Remove quote from Compile_Time_Warning message
14490 * a-numeri.ads: Minor reformatting
14492 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
14494 * exp_pakd.ads: Fix obsolete comment
14496 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
14497 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
14498 Probably not a bug, but certainly neater and more efficient.
14500 * a-tienio.adb: Minor reformatting
14502 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
14503 Avoid assuming low bound of string is 1.
14505 * gnatbind.adb: Change Bindusg to package and rename procedure as
14506 Display, which now ensures that it only outputs usage information once.
14507 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
14509 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
14512 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
14514 (Match): Add pragma Assert to ensure that Matches'First is zero
14516 * g-regpat.ads (Match): Document that Matches lower bound must be zero
14518 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
14519 documented preconditions (also kills warnings about bad indexes).
14521 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
14523 (Build_Import_Library): Ditto;
14525 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
14527 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
14529 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
14530 lower bound of choice table is 1.
14532 * sem_case.ads (Analyze_Choices): Document that lower bound of
14535 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
14538 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
14539 and add appropriate Assert pragma to suppress warnings.
14541 * atree.h, atree.ads, atree.adb
14542 Change Elist24 to Elist25
14543 Add definitions of Field28 and Node28
14544 (Traverse_Field): Use new syntactic parent table in sinfo.
14546 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14548 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14550 * exp_tss.adb: Put routines in alpha order
14552 * fe.h: Remove redundant declarations.
14554 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
14556 * utils.c (builtin_function): Rename to gnat_builtin_function.
14557 Move common code to add_builtin_function.
14558 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
14559 gnat_builtin_function.
14560 * gigi.h (builtin_function): Rename to gnat_builtin_function.
14561 Change the signature.
14563 2006-10-16 Brooks Moses <bmoses@stanford.edu>
14565 * Makefile.in: Add TEXI2PDF definition.
14566 * Make-lang.in: Add "ada.pdf" target.
14568 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
14570 * decl.c, utils.c: Fix comment typos.
14571 * utils.c: Fix a typo.
14573 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
14575 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
14576 on "pure" Ada subprograms if SJLJ exceptions are used.
14577 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
14578 on the declaration node of JMPBUF_SAVE.
14579 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
14580 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
14581 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
14583 2006-08-20 Laurent Guerby <laurent@guerby.net>
14586 g-socket.adb (Bind_Socket): Call Set_Address.
14588 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
14591 * decl.c (same_discriminant_p): New static function.
14592 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
14593 subtype and we have discriminants, fix up the COMPONENT_REFs
14594 for the discriminants to make them reference the corresponding
14595 fields of the parent subtype after it has been built.
14597 2006-09-15 Roger Sayle <roger@eyesopen.com>
14600 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
14601 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
14603 2006-09-13 Olivier Hainque <hainque@adacore.com>
14606 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
14607 of a SAVE_EXPR, just make the operand addressable/not-readonly and
14608 let the common gimplifier code make and propagate a temporary copy.
14609 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
14610 out/in-out actuals and defer setting the addressable/readonly bits
14613 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
14616 * decl.c (components_to_record): Defer emitting debug info for the
14617 record type associated with the variant until after we are sure to
14620 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
14623 * gigi.h (gnat_internal_attribute_table): Declare.
14624 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
14625 * utils.c (gnat_internal_attribute_table): New global variable.
14626 (builtin_function): Always call decl_attributes on the builtin.
14627 (handle_const_attribute): New static function.
14628 (handle_nothrow_attribute): Likewise.
14630 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
14632 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
14634 2006-06-23 Olivier Hainque <hainque@adacore.com>
14636 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
14637 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
14639 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
14640 Eric Botcazou <ebotcazou@adacore.com>
14643 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
14644 check-gnat into check-acats.
14646 2006-06-17 Karl Berry <karl@gnu.org>
14648 * gnat-style.texi (@dircategory): Use "Software development"
14649 instead of "Programming", following the Free Software Directory.
14651 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14654 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
14656 2006-06-06 Laurent Guerby <laurent@guerby.net>
14659 mlib-utl.adb: Use Program_Name.
14661 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
14663 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
14664 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
14665 trans.c, utils.c: Fix comment typos. Follow spelling
14667 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
14670 2006-05-19 Nicolas Setton <setton@adacore.com>
14672 * misc.c (gnat_dwarf_name): New function.
14673 (LANG_HOOKS_DWARF_NAME): Define to it.
14675 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
14677 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
14678 (ada/misc.o): Likewise.
14679 (ada/utils.o): Likewise.
14681 2006-04-08 Aurelien Jarno <aurel32@debian.org>
14683 * Makefile.in: Add Ada support for GNU/kFreeBSD.
14684 * s-osinte-kfreebsd-gnu.ads: New file.
14686 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
14688 * Make-lang.in: Rename docdir to gcc_docdir.
14690 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
14692 * gigi.h (get_ada_base_type): Delete.
14693 * utils2.c (get_ada_base_type): Likewise.
14694 * trans.c (convert_with_check): Operate in the real base type.
14696 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14698 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
14700 2006-03-02 Richard Sandiford <richard@codesourcery.com>
14702 * utils.c (create_var_decl): Use have_global_bss_p when deciding
14703 whether to make the decl common.
14705 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14707 * Make-lang.in (Ada): Remove.
14708 (.PHONY): Remove Ada
14710 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14712 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
14713 aggregate, check the interpretations of the other operand to find one
14714 that may be a boolean array.
14716 (Analyze_Selected_Component): Fix flow-of-control typo in case where
14717 the prefix is a private extension.
14719 2006-02-17 Eric Botcazou <botcazou@adacore.com>
14722 * utils2.c (find_common_type): If both input types are BLKmode and
14723 have the same constant size, keep using the first one.
14725 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
14727 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
14729 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
14731 2006-02-17 Jose Ruiz <ruiz@adacore.com>
14733 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
14734 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
14735 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
14736 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
14737 Abort_Defer/Undefer pairs to avoid the possibility of a task being
14738 aborted while owning a lock.
14740 2006-02-17 Javier Miranda <miranda@adacore.com>
14741 Robert Dewar <dewar@adacore.com>
14743 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
14744 through an access to class-wide interface we force the displacement of
14745 the pointer to the allocated object to reference the corresponding
14746 secondary dispatch table.
14747 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
14748 if Long_Shifts are supported on the target, even if 64 bit divides
14749 are not supported (configurable run time mode).
14750 (Expand_N_Type_Conversion): Do validity check if validity checks on
14751 operands are enabled.
14752 (Expand_N_Qualified_Expression): Do validity check if validity checks
14753 on operands are enabled.
14755 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14757 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
14758 must be materialized when the renamed expression is an explicit
14761 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14763 * freeze.adb (Statically_Discriminated_Components): Return false if
14764 the bounds of the type of the discriminant are not static expressions.
14766 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
14767 the bounds of the discriminant type are not static.
14769 2006-02-17 Robert Dewar <dewar@adacore.com>
14771 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
14772 then we close To if it is valid.
14774 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
14776 * init.c (facility_resignal_table): new array
14777 (__gnat_default_resignal_p): enhance default predicate to resignal if
14778 VMS condition has one of the predefined facility codes.
14780 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
14782 * Makefile.in: Use VMS64 specialized versions of several units in
14783 Interfaces.C hierarchy to be compatible with HP C default size choices.
14784 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
14786 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14788 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
14789 instantiation, the corresponding entity is the related_instance of the
14790 wrapper package created for the instance.
14792 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14794 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
14795 the current instance is nested within another instance in a child unit.
14797 2006-02-17 Javier Miranda <miranda@adacore.com>
14798 Ed Schonberg <schonberg@adacore.com>
14800 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
14801 type we cannot inherit the primitive operations; we inherit the
14802 Corresponding_Record_Type (which has the list of primitive operations).
14803 (Check_Anonymous_Access_Types): When creating anonymous access types for
14804 access components, use Rewrite in order to preserve the tree structure,
14806 (Analyze_Object_Declaration): For limited types with access
14807 discriminants with defaults initialized by an aggregate, obtain
14808 subtype from aggregate as for other mutable types.
14809 (Derived_Type_Declaration): If the derived type is a limited interface,
14810 set the corresponding flag (Is_Limited_Record is not sufficient).
14812 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14814 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
14815 to inline a function that returns an unconstrained type, the return
14816 expression must be the first variable declared in the body of the
14819 2006-02-17 Javier Miranda <miranda@adacore.com>
14821 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
14822 abstract interface type, the static analysis is not enough to know if
14823 the interface is implemented or not by the source tagged type. Hence
14824 we must pass the work to the expander to generate the required code to
14825 evaluate the conversion at run-time.
14826 (Resolve_Equality_Op): Do not apply previous
14827 transformation if expansion is disasbled, to prevent anomalies when
14828 locating global references in a generic unit.
14830 2006-02-17 Vincent Celier <celier@adacore.com>
14832 * snames.ads, snames.adb: New standard names for new project attributes:
14833 archive_builder, archive_indexer, compiler_pic_option,
14834 config_body_file_name, config_body_file_name_pattern,
14835 config_file_switches, config_file_unique, config_spec_file_name,
14836 config_spec_file_name_pattern, default_builder_switches,
14837 default_global_compiler_switches, default_language,
14838 dependency_file_kind, global_compiler_switches, include_path,
14839 include_path_file, language_kind, linker_executable_option,
14840 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
14841 roots, runtime_project.
14843 2006-02-17 Matthew Heaney <heaney@adacore.com>
14845 * a-convec.ads, a-convec.adb:
14846 (operator "&"): handle potential overflow for large index types
14847 (Insert): removed Contraint_Error when using large index types
14848 (Insert_Space): removed Constraint_Error for large index types
14849 (Length): moved constraint check from Length to Insert
14851 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
14852 as not null access.
14853 Explicit raise statements now include an exception message.
14854 (operator "&"): handle potential overflow for large index types
14855 (Insert): removed Contraint_Error when using large index types
14856 (Insert_Space): removed Constraint_Error for large index types
14857 (Length): moved constraint check from Length to Insert
14859 2006-02-17 Robert Dewar <dewar@adacore.com>
14861 * s-wchcnv.adb: Document handling of [ on output (we do not change
14862 this to ["5B"] and the new comments say why not.
14865 Add note for -gnatVo that this now includes the cases of type
14866 conversions and qualified expressions.
14867 Add comments on handling of brackets encoding for Text_IO
14869 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
14870 Thomas Quinot <quinot@adacore.com>
14871 Robert Dewar <dewar@adacore.com>
14872 Javier Miranda <miranda@adacore.com>
14874 * expander.adb: Fix typo in comment
14876 * exp_pakd.adb: Fix typo
14877 Minor comment reformatting.
14879 * g-dyntab.adb: Minor reformatting
14881 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
14882 aliased subprograms to look for the abstract interface subprogram.
14884 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
14886 * env.c (__gnat_setenv): Use size_t.
14887 (__gnat_unsetenv): Likewise.
14888 (__gnat_clearenv): Likewise.
14890 2006-02-16 Arnaud Charlet <charlet@adacore.com>
14892 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
14894 2006-02-13 Arnaud Charlet <charlet@adacore.com>
14896 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
14897 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
14898 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
14899 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
14900 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
14901 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
14902 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
14903 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
14904 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
14907 2006-02-13 Jose Ruiz <ruiz@adacore.com>
14909 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
14910 protection against race conditions is not needed.
14911 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
14913 (Set_Specific_Handler): Add mutual exclusive access to the specific
14915 (Specific_Handler): Add mutual exclusive access for retrieving the
14918 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
14921 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
14922 Fall_Back_Handler and Specific_Handler.
14924 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
14925 termination handlers.
14926 Set two different owerflow depending on the maximal stack size.
14928 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
14929 protection against race conditions is not needed when executing the
14930 task termination handler.
14932 2006-02-13 Robert Dewar <dewar@adacore.com>
14934 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
14935 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
14936 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14937 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
14938 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
14939 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
14940 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
14941 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
14942 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
14943 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
14944 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
14945 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
14946 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
14947 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
14948 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
14949 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
14950 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
14951 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
14952 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
14953 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
14954 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
14955 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
14956 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
14957 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
14958 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
14959 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
14960 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
14961 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
14962 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
14963 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
14964 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
14965 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
14966 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
14967 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
14970 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
14972 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
14973 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
14974 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
14975 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
14976 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
14977 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
14978 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
14979 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
14980 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
14982 2006-02-13 Arnaud Charlet <charlet@adacore.com>
14984 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
14985 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
14986 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
14987 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
14988 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
14989 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
14990 replaced by anonymous access type.
14991 (pthread_sigmask): Now take an access sigset_t
14993 * s-osinte-hpux.ads: Ditto.
14994 (pthread_mutex_t, pthread_cond_t): Update definitions to support
14995 properly 32 and 64 bit ABIs.
14997 2006-02-13 Pascal Obry <obry@adacore.com>
14999 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
15000 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
15001 s-taprop-linux.adb, s-taprop-solaris.adb,
15002 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
15003 adjustement is already done when calling this routine.
15005 2006-02-13 Pascal Obry <obry@adacore.com>
15007 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
15008 table to take advantage of the 16 priority levels available on Windows
15009 2000 and XP. On NT4 there are only 7 priority levels, this is properly
15010 supported by this new mapping.
15012 2006-02-13 Nicolas Setton <setton@adacore.com>
15014 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
15015 (get_encoding): New subprogram. Extracts the encodings from an encoded
15018 2006-02-13 Pascal Obry <obry@adacore.com>
15019 Nicolas Roche <roche@adacore.com>
15020 Arnaud Charlet <charlet@adacore.com>
15022 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
15024 (__gnat_try_lock): Add unicode support by using a specific section on
15026 (__gnat_get_current_dir): Idem.
15027 (__gnat_open_read): Idem.
15028 (__gnat_open_rw): Idem.
15029 (__gnat_open_create): Idem.
15030 (__gnat_create_output_file): Idem.
15031 (__gnat_open_append): Idem.
15032 (__gnat_open_new): Idem.
15033 (__gnat_file_time_name): Idem.
15034 (__gnat_set_file_time_name): Idem.
15035 (__gnat_stat): Idem.
15036 (win32_no_block_spawn): Idem.
15037 (__gnat_locate_exec_on_path): Idem.
15038 (__gnat_opendir): New routine.
15039 (__gnat_closedir): Idem.
15040 (__gnat_readdir): Add new parameter length (pointer to int). Update
15041 implementation to use it and add specific Win32 code for Unicode
15043 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
15044 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
15045 (convert_addresses): Do not define this dummy routine on VMS.
15047 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
15048 runtime Unicode support will be activated.
15049 (S2WS): String to Wide-String conversion. This version just copy a
15050 string in non Unicode version.
15051 (WS2S): Wide-String to String conversion. This version just copy a
15052 string in non Unicode version.
15054 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
15055 (Open): Now import __gnat_opendir from adaint.c.
15056 (Read): Change the implementation to support unicode characters. It is
15057 not possible to use strlen() on Windows as this version supports only
15058 standard ASCII characters. So the length of the directory entry is now
15059 returned from the imported __gnat_readdir routine.
15060 Update copyright notice.
15062 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
15063 (opendir): Moved to adaint.c.
15065 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
15066 (Get_Directory): Fix wrong indexing.
15067 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
15068 __gnat_getenv from env.c
15069 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
15072 * env.h, env.c: New file.
15074 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
15075 adaint.c by __gnat_getenv from env.c
15077 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
15078 adaint.c by __gnat_getenv from env.c
15080 * Make-lang.in: Add env.o in the list of C object needed by gnat1
15082 Update dependencies.
15084 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15085 Olivier Hainque <hainque@adacore.com>
15086 Eric Botcazou <ebotcazou@adacore.com>
15088 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
15090 * gigi.h (value_factor_p): Add prototype and description, now public.
15092 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
15093 promotion for field with rep clause if the associated size was proven
15095 Expand comments describing attempts to use a packable type.
15096 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
15097 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
15098 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
15099 necessary since these are not different types and pointers may
15100 actually designate any subtype in this hierarchy.
15101 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
15102 discriminants but put them into record only if not Unchecked_Union;
15103 pass flag to components_to_record showing Unchecked_Union.
15104 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
15105 components before variants; don't set TYPE_UNCHECKED_UNION_P.
15106 (components_to_record): New argument UNCHECKED_UNION.
15107 Remove special case code for Unchecked_Union and instead use main code
15108 with small changes.
15111 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
15112 variable with the expression being built, only its inner field.
15114 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
15115 emit_sequence_entry_statements.
15116 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
15117 (establish_gnat_vms_condition_handler): Move before
15118 Subprogram_Body_to_gnu.
15119 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
15120 for a subprogram if it has a foreign convention or is exported.
15121 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
15122 substituted for a CONST_DECL.
15123 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
15124 Etype to assoc_to_constructor.
15125 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
15126 discriminants of Unchecked_Union.
15127 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
15128 don't need cluttering preprocessor directives.
15129 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
15130 condition handler as current in the compiled function.
15131 (body_with_handlers_p): New function. Tell whether a given sequence of
15132 statements node is attached to a package or subprogram body and involves
15133 exception handlers possibly nested within inner block statements.
15134 (emit_sequence_entry_statements): New function, to emit special
15135 statements on entry of sequences when necessary. Establish GNAT
15136 condition handler in the proper cases for VMS.
15137 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
15138 emit_sequence_entry_statements.
15140 * utils2.c (find_common_type): If both input types are BLKmode and
15141 have a constant size, use the smaller one.
15142 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
15145 * utils.c (value_factor_p): Make public, to allow uses from other gigi
15147 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
15148 (convert, case UNION_TYPE): Remove special treatment for unchecked
15152 (update_pointer_to): Update variants of pointer types to unconstrained
15153 arrays by attaching the list of fields of the main variant.
15155 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15156 Robert Dewar <dewar@adacore.com>
15158 * a-exexpr.adb, a-exexpr-gcc.adb
15159 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
15160 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
15161 Remove code unused for exception propagation for the compiler itself
15162 from a-except.adb and update to still share separate packages.
15164 * a-except.ads, a-except.adb: Ditto.
15165 Add comments that this version is now used only by the compiler and
15166 other basic tools. The full version that includes the Ada 2005 stuff
15167 is in separate files a-except-2005.ads/adb. The reason is that we do
15168 not want to cause bootstrap problems with compilers not recognizing
15170 Add exception reason code PE_Implicit_Return
15171 Add new exception reason code (Null Exception_Id)
15173 * a-except-2005.adb, a-except-2005.ads: New files.
15175 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
15177 * s-wchcon.adb: New file.
15179 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
15180 (traceback.o deps): Likewise.
15181 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
15182 Activate build of GMEM instrumentation library on VMS targets.
15183 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
15184 Use a-except-2005.ads/adb for all run-time library builds unless
15185 specified otherwise.
15186 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
15187 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
15188 Use s-parame.adb on all native platforms.
15189 Use s-parame-vxworks.adb on all vxworks platforms.
15190 Add env.c env.h in LIBGNAT_SRCS
15191 Add env.o in LIBGNAT_OBJS
15192 (GNATMAKE_OBJS): Remove ctrl_c.o object.
15193 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
15194 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15195 supports VxWorks 6 RTPs.
15196 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
15197 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15199 * types.h, types.ads (Terminate_Program): New exception
15200 Add comment on modifying multiple versions of a-except.adb when the
15201 table of exception reasons is modified.
15202 Add exception reason code PE_Implicit_Return
15203 Add new exception reason code (Null Exception_Id)
15205 * clean.adb (Initialize): Get the target parameters before checking
15206 if target is OpenVMS. Move the OpenVMS specific code here from package
15207 body elaboration code.
15209 2006-02-13 Thomas Quinot <quinot@adacore.com>
15210 Vincent Celier <celier@adacore.com>
15211 Robert Dewar <dewar@adacore.com>
15213 * ali-util.adb (Get_File_Checksum): Update to account for change in
15214 profile of Initialize_Scanner.
15216 * gprep.adb (Gnatprep): Update to account for change in profile of
15217 Initialize_Scanner.
15218 (Process_One_File): Same.
15220 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
15221 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
15222 that behaviour using the new Unit information recorded in the source
15223 files table, rather than going through all units every time.
15224 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
15225 (Get_Source_Unit): Same.
15227 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
15228 change in profile of Initialize_Scanner.
15229 (Prepare_To_Preprocess): Same.
15231 * lib.ads: Fix typo in comment (templace -> template).
15233 * prj-part.adb (Parse_Single_Project): Update to account for change in
15234 profile of Initialize_Scanner.
15236 * scn.adb (Initialize_Scanner): Account for change in profile of
15237 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
15238 Also record the association of the given Source_File_Index to the
15239 corresponding Unit_Number_Type.
15241 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
15243 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
15244 Remove Unit formal for generic scanner: this formal
15245 is only relevant to Scn (the scanner instance used to parse Ada source
15246 files), not to other instances. Update comment accordingly.
15247 (Scan): Use new function Snames.Is_Keyword_Name.
15249 * sinfo-cn.adb: Fix typo in comment.
15251 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
15254 * sinput.ads (Source_File_Record): New component Unit, used to capture
15255 the unit identifier (if any) associated to a source file.
15257 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
15258 Unit in Source_File_Record.
15260 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
15261 in profile of Initialize_Scanner.
15263 * scans.adb (Initialize_Ada_Keywords): New procedure
15265 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
15266 Ada keywords in the Namet table, without the need to call
15267 Initialize_Scanner.
15269 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
15270 (Is_Keyword_Name): New function
15272 * snames.ads: Add subtype Configuration_Pragma_Names
15273 Add pragma Ada_2005 (synonym for Ada_05)
15274 (Is_Keyword_Name): New function
15276 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
15278 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15280 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
15283 * a-stwima.adb (To_Set): Add extra check when N = 0.
15285 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
15287 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15289 * s-parame-mingw.adb, s-parame-linux.adb,
15290 s-parame-solaris.adb: Removed, replaced by s-parame.adb
15292 * s-parame-vxworks.ads: Fix typo.
15294 * s-parame-vxworks.adb: New file.
15296 * s-parame.adb: Version now used by all native platforms.
15297 (Default_Stack_Size): Use 2 megs for default stack size and use
15298 __gl_default_stack_size when available.
15299 (Minimum_Stack_Size): Use 12K.
15301 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
15302 (Create_Task): Refine implementation taking advantage of the XP stack
15303 size support. On XP, we now create the thread using the flag
15304 STACK_SIZE_PARAM_IS_A_RESERVATION.
15306 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
15308 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
15309 XP and 0 on older Windows versions.
15311 * interfac-vms.ads: Removed, no longer used.
15313 2006-02-13 Matthew Heaney <heaney@adacore.com>
15315 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
15316 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
15317 a-cohase.adb: All explicit raise statements now include an exception
15320 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
15321 (Update_Element_Preserving_Key): renamed op to just Update_Element.
15322 Explicit raise statements now include an exception message
15324 * a-cihase.ads, a-cohase.ads: Removed comment.
15326 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
15327 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
15328 a-szbzha.adb, a-szfzha.ads: New files.
15330 2006-02-13 Matthew Heaney <heaney@adacore.com>
15332 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
15335 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
15337 * lang.opt: Wvariadic-macros: New option.
15338 Wold-style-definition: Likewise.
15339 Wmissing-format-attribute: Likewise.
15341 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
15342 -Wold-style-definition and -Wmissing-format-attribute.
15344 2006-02-13 Robert Dewar <dewar@adacore.com>
15346 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
15348 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
15350 2006-02-13 Nicolas Roche <roche@adacore.com>
15352 * a-envvar.adb, a-envvar.ads: New files.
15354 2006-02-13 Douglas Rupp <rupp@adacore.com>
15356 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
15358 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
15360 2006-02-13 Pat Rogers <rogers@adacore.com>
15362 * a-rttiev.adb, a-rttiev.ads: New files.
15364 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
15366 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
15367 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
15369 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
15371 2006-02-13 Robert Dewar <dewar@adacore.com>
15373 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
15374 sem_case.adb: Minor code reorganization (not Present should be No)
15376 2006-02-13 Geert Bosch <bosch@adacore.com>
15377 Gary Dismukes <dismukes@adacore.com>
15379 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
15380 0, since the lower bound of the actual string may be greater than one.
15383 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
15384 layout is requested.
15386 2006-02-13 Vincent Celier <celier@adacore.com>
15388 * back_end.adb (Scan_Compiler_Arguments): Check if
15389 Search_Directory_Present is True and, if it is, add the argument in
15390 the source search directory path.
15392 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
15393 Search_Directory_Present to True.
15395 2006-02-13 Joel Brobecker <brobecke@adacore.com>
15397 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
15398 volatile, to tell the compiler to preserve this variable at any level
15400 (Gen_Versions_Ada): Temporarily work around codegen bug.
15402 2006-02-13 Vincent Celier <celier@adacore.com>
15404 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
15405 gcc to link with option -shared-libgcc.
15406 (Gnatlink): Remove duplicate switches -shared-libgcc
15408 2006-02-13 Robert Dewar <dewar@adacore.com>
15410 * gnatvsn.ads (Current_Year): New constant, used to easily update
15411 copyright on all GNAT tools.
15413 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
15416 2006-02-13 Robert Dewar <dewar@adacore.com>
15418 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
15419 after hyphen (small aesthetic change useful for a range of numbers
15421 Suppress range checks for a couple of assignments which otherwise
15422 cause validity checks with validity checking turned on.
15424 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
15425 Improvement in error message for object.
15426 (Rep_Item_Too_Late): Remove '!' in warning message.
15428 2006-02-13 Robert Dewar <dewar@adacore.com>
15429 Eric Botcazou <ebotcazou@adacore.com>
15431 * err_vars.ads: Suppress range checks for a couple of assignments
15432 which otherwise cause validity checks with validity checking turned on.
15435 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
15436 Make message unconditional if it is a warning.
15437 (Error_Msg_NEL): Always output warning messages.
15438 Suppress range checks for a couple of assignments which otherwise
15439 cause validity checks with validity checking turned on.
15441 * errout.ads (Message Insertion Characters): Document that '!' is
15442 implied by '?' in error messages.
15444 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
15445 (Gnat1drv): Use a goto to end of main subprogram instead of
15446 Exit_Program (E_Success) so that finalization can occur normally.
15448 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
15450 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
15453 2006-02-13 Vincent Celier <celier@adacore.com>
15455 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
15456 Unchecked_Conversion functions.
15457 (Modification_Time): Use direct conversion of OS_Time to Calendar time
15458 when OpenVMS returns False.
15460 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
15461 a-dirval.adb (OpenVMS): New Boolean function
15463 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15464 Thomas Quinot <quinot@adacore.com>
15466 * checks.adb (Build_Discriminant_Checks): If the expression being
15467 checks is an aggregate retrieve the values of its discriminants to
15468 generate the check, rather than creating a temporary and a reference
15470 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
15471 (Install_Null_Excluding_Check): Ditto
15472 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
15473 not for the renamed object, so that the actual itype is attached in the
15476 2006-02-13 Robert Dewar <dewar@adacore.com>
15477 Vincent Celier <celier@adacore.com>
15479 * debug.adb: Eliminate numeric switches for binder/gnatmake
15481 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
15482 switches for the compiler.
15483 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
15484 (Scan_Make_Switches): When failing with an illegal switch, output an
15485 error message with the full switch.
15486 Eliminate numeric switches for binder/gnatmake
15488 * switch.ads, switch.adb (Bad_Switch): New procedure
15490 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
15491 Remove 0-9 as debug flag character possibilities
15492 -d is now controlling the primary stack size when its value is a
15493 positive. Also add checks against invalid values, and support for kb,
15494 mb. Ditto for -D switch.
15496 2006-02-13 Robert Dewar <dewar@adacore.com>
15497 Serguei Rybin <rybin@adacore.com>
15499 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
15500 save/restore routines.
15501 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15502 were not always properly handled previously.
15503 Since we are changing the tree format anyway, also get rid of the
15504 junk obsolete Immediate_Errors flag.
15505 (Tree_Read): Change the way of reading Tree_Version_String - now we
15506 read the version string from the tree even if its length is not the
15507 same as the length of the version string computed from Gnatvsn.
15508 (Search_Directory_Present): New Boolean flag for the compiler.
15509 Define Tree_Version_String as a dynamic string.
15510 (Default_Stack_Size): new variable, used to handle switch -d.
15513 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
15514 only for main unit.
15515 Add pragma Ada_2005 (synonym for Ada_05)
15516 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15517 were not always properly handled previously.
15519 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
15520 explicit Ada_95 to Ada_2005.
15522 2006-02-13 Javier Miranda <miranda@adacore.com>
15523 Robert Dewar <dewar@adacore.com>
15524 Ed Schonberg <schonberg@adacore.com>
15526 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
15527 against errors in the source program: a private types for which the
15528 corresponding full type declaration is missing and pragma CPP_Virtual
15530 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
15531 (Is_Known_Null): New flag
15532 (Has_Pragma_Pure): New flag
15533 (No_Return): Present in all entities, set only for procedures
15534 (Is_Limited_Type): A type whose ancestor is an interface is limited if
15535 explicitly declared limited.
15536 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
15537 entities. Only used for component marked Is_Tag. If present it stores
15538 the Offset_To_Top function used to provide this value in tagged types
15539 whose ancestor has discriminants.
15541 * exp_ch2.adb: Update status of new Is_Known_Null flag
15543 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
15545 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
15546 the categorization sense if Is_Pure was set by pragma Pure_Function.
15548 2006-02-13 Quentin Ochem <ochem@adacore.com>
15549 Olivier Hainque <hainque@adacore.com>
15551 * bindusg.adb: Updated documentation for -d and -D switches.
15553 * raise.h (__gnat_set_globals): added new parameter for
15554 Default_Stack_Size.
15556 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
15557 (__gnat_handle_vms_condition): Adjust context before raise.
15558 (__gnat_install_handler): Restore the global vector setup for GCC
15559 versions before 3.4, as the frame based circtuitry is not available
15561 (__gnat_set_globals): added a parameter default_stack_size
15562 (__gl_default_stack_size): new variable.
15564 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15566 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
15567 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
15568 does not exist in the Ada RM.
15569 (Compatible_Int_Bounds): Determine whether two integer range bounds
15570 are of equal length and have the same start and end values.
15571 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
15572 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
15573 aggregate when it is part of an object declaration.
15574 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
15575 constrains discriminants of its parent, add explicitly the discriminant
15576 constraints of the ancestor by retrieving them from the
15577 stored_constraint of the parent.
15579 2006-02-13 Robert Dewar <dewar@adacore.com>
15581 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
15582 attribute Mechanism_Code is applied to renamed subprogram, modify
15583 prefix to point to base subprogram.
15584 Max/Min attributes now violate Restriction No_Implicit_Conditionals
15586 * sinfo.ads: Document that Mechanism_Code cannot be applied to
15587 renamed subprograms so that the front-end must replace the prefix
15590 2006-02-13 Javier Miranda <miranda@adacore.com>
15591 Gary Dismukes <dismukes@adacore.com>
15593 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
15594 availability of RE_Interface_Tag.
15595 (Build_Initialization_Call): Fix wrong access to the discriminant value.
15596 (Freeze_Record_Type): Do not generate the tables associated with
15597 timed and conditional dispatching calls through synchronized
15598 interfaces if compiling under No_Dispatching_Calls restriction.
15599 When compiling for Ada 2005, for a nonabstract
15600 type with a null extension, call Make_Controlling_Function_Wrappers
15601 and insert the wrapper function declarations and bodies (the latter
15602 being appended as freeze actions).
15603 (Predefined_Primitive_Bodies): Do not generate the bodies of the
15604 predefined primitives associated with timed and conditional
15605 dispatching calls through synchronized interfaces if we are
15606 compiling under No_Dispatching_Calls.
15607 (Build_Init_Procedure): Use RTE_Available to check if a run-time
15608 service is available before generating a call.
15609 (Make_Controlling_Function_Wrappers): New procedure.
15610 (Expand_N_Full_Type_Declaration): Create a class-wide master for
15611 access-to-limited-interfaces because they can be used to reference
15612 tasks that implement such limited interface.
15613 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
15614 procedure spec and body of the Offset_To_Top function that is generated
15615 when the parent of a type with discriminants has secondary dispatch
15617 (Init_Secondary_Tags): Handle the case in which the parent of the type
15618 containing secondary dispatch tables has discriminants to generate the
15619 correct arguments to call Set_Offset_To_Top.
15620 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
15622 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
15623 Add Wide_[Wide_]Expanded_Name.
15624 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
15625 the same functionality of Get_Prim_Op_Address but applied to predefined
15626 primitive operations because the pointers to the predefined primitives
15627 are now saved in a separate table.
15628 (Parent_Size): Modified to get access to the separate table of primitive
15629 operations or the parent type.
15630 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
15631 functionality of Set_Prim_Op_Address but applied to predefined primitive
15633 (Set_Signature): New subprogram used to store the signature of a DT.
15634 (Displace): If the Offset_To_Top value is not static then call the
15635 function generated by the expander to get such value; otherwise use
15636 the value stored in the table of interfaces.
15637 (Offset_To_Top): The type of the actual has been changed to Address to
15638 give the correct support to tagged types with discriminants. In this
15639 case this value is stored just immediately after the tag field.
15640 (Set_Offset_To_Top): Two new formals have been added to indicate if the
15641 offset_to_top value is static and hence pass this value to the run-time
15642 to store it in the table of interfaces, or else if this value is dynamic
15643 and then pass to the run-time the address of a function that is
15644 generated by the expander to provide this value for each object of the
15647 * rtsfind.ads (Default_Prin_Op_Count): Removed.
15648 (Default_Prim_Op_Count): New entity
15649 (Get_Predefined_Prim_Op_Address): New entity
15650 (Set_Predefined_Prim_Op_Address): New entity
15651 (RE_Set_Signature): New entity
15653 2006-02-13 Thomas Quinot <quinot@adacore.com>
15654 Ed Schonberg <schonberg@adacore.com>
15656 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
15657 Make_Adjust_Call done for a newly-allocated object.
15659 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
15660 in a subprogram are wrapped in a cleanup block, indicate that the
15661 subprogram contains an inner block with an exception handler.
15662 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
15663 Adjust call is for a newly-allocated object. In that case we must not
15664 assume that the finalization list chain pointers are correct (since they
15665 come from a bit-for-bit copy of the original object's pointers) so if
15666 the attach level would otherwise be zero (no change), we set it to 4
15667 instead to cause the pointers to be reset to null.
15669 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
15670 reset chain pointers to null.
15672 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15674 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
15675 string, and the context requires a loop for the assignment (e.g.
15676 because the left-hand side is packed), generate a unique name for the
15677 temporary that holds the string, to prevent spurious name clashes.
15679 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15680 Javier Miranda <miranda@adacore.com>
15681 Robert Dewar <dewar@adacore.com>
15682 Gary Dismukes <dismukes@adacore.com>
15684 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
15685 return unconstrained arrays.
15687 (Expand_Call): An indirect call through an access parameter of a
15688 protected operation is not a protected call.
15689 Add circuit to raise CE in Ada 2005 mode following call
15690 to Raise_Exception.
15691 (Register_DT_Entry): Do nothing if
15692 the run-time does not give support to abstract interfaces.
15693 (Freeze_Subprogram): In case of dispatching operations, do not generate
15694 code to register the operation in the dispatch table if the source
15695 is compiled with No_Dispatching_Calls.
15696 (Register_Predefined_DT_Entry): Generate code that calls the new
15697 run-time subprogram Set_Predefined_Prim_Op_Address instead of
15698 Set_Prim_Op_Address.
15700 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
15701 on array assignments if the right-hand side is a function call that has
15702 been inlined. Check is performed on the assignment in the block.
15703 (Process_Bounds): If bounds and range are overloaded, apply preference
15704 rule for root operations to disambiguate, and diagnose true ambiguity.
15705 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
15706 a tag-indeterminate right-hand side even when Expander_Active is True.
15707 Needed to ensure that dispatching calls to T'Input are allowed and
15708 get the tag of the target class-wide object.
15710 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
15711 an inherited primitive operation that already overrides several
15712 abstract interface primitives. For transitivity, the new entity must
15713 also override all the abstract interface primitives covered by the
15714 inherited overriden primitive.
15715 Emit warning if new entity differs from homograph in same scope only in
15716 that one has an access parameter and the other one has a parameter of
15717 a general access type with the same designated type, at the same
15718 position in the signature.
15719 (Make_Inequality_Operator): Use source locations of parameters and
15720 subtype marks from corresponding equality operator when creating the
15721 tree structure for the implicit declaration of "/=". This does not
15722 change anything in behaviour except that the decoration of the
15723 components of the subtree created for "/=" allows ASIS to get the
15724 string images of the corresponding identifiers.
15725 (Analyze_Return_Statement): Remove '!' in warning message.
15726 (Check_Statement_Sequence): Likewise.
15727 (Analyze_Subprogram_Body): For an access parameter whose designated type
15728 is an incomplete type imported through a limited_with clause, use the
15729 type of the corresponding formal in the body.
15730 (Check_Returns): Implicit return in No_Return procedure now raises
15731 Program_Error with a compile time warning, instead of beging illegal.
15732 (Has_Single_Return): Function returning unconstrained type cannot be
15733 inlined if expression in unique return statement is not an identifier.
15734 (Build_Body_To_Inline): It is possible to inline a function call that
15735 returns an unconstrained type if all return statements in the function
15736 return the same local variable. Subsidiary procedure Has_Single_Return
15737 verifies that the body conforms to this restriction.
15739 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
15740 same type, and one of them is of an anonymous access type, convert
15741 the other operand to it, so that this is a valid binary operation for
15743 (Resolve_Type_Conversion): Handle subtypes of protected types and
15744 task types when accessing to the corresponding record type.
15745 (Resolve_Allocator): Add '\' in 2-line warning message.
15746 Remove '!' in warning message.
15747 (Resolve_Call): Add '\' in 2-line warning message.
15748 (Valid_Conversion): Likewise.
15749 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
15750 resulting type may be an access type with an implicit dereference.
15751 Obtain the proper component from the designated type.
15752 (Make_Call_Into_Operator): Handle properly a call to predefined equality
15753 given by an expanded name with prefix Standard, when the operands are
15754 of an anonymous access type.
15755 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
15756 Explicit_Dereference and Resolve_Selected_Component, to verify that the
15757 prefix of the expression is not of an incomplete type. Allows full
15758 diagnoses of all semantic errors.
15759 (Resolve_Actuals): If the actual is an allocator whose directly
15760 designated type is a class-wide interface we build an anonymous
15761 access type to use it as the type of the allocator. Later, when
15762 the subprogram call is expanded, if the interface has a secondary
15763 dispatch table the expander will add a type conversion to force
15764 the displacement of the pointer.
15765 (Resolve_Call): If a function that returns an unconstrained type is
15766 marked Inlined_Always and inlined, the call will be inlined and does
15767 not require the creation of a transient scope.
15768 (Check_Direct_Boolean_Op): Removed
15769 (Resolve_Comparison_Op): Remove call to above
15770 (Resolve_Equality_Op): Remove call to above
15771 (Resolve_Logical_Op): Inline above, since this is only call.
15772 (Valid_Conversion): Handle properly conversions between arrays of
15773 convertible anonymous access types.
15776 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
15777 the literal in an unchecked conversion, because GCC 4.x needs a static
15778 value for a string bound.
15780 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15781 Hristian Kirtchev <kirtchev@adacore.com>
15783 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
15784 components of the corresponding record, take into account component
15785 definitions that are access definitions.
15786 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
15787 procedure is not considered a dispatching call and will be expanded
15790 2006-02-13 Javier Miranda <miranda@adacore.com>
15792 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
15793 controlling argument of the dispatching call is an abstract interface
15794 class-wide type then we use it directly.
15795 Check No_Dispatching_Calls restriction.
15796 (Default_Prim_Op_Position): Remove the code that looks for the last
15797 entity in the list of aliased subprograms. This code was wrong in
15799 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
15800 when the source is compiled with the No_Dispatching_Calls restriction.
15801 (Init_Predefined_Interface_Primitives): No need to inherit primitives
15802 if we are compiling with restriction No_Dispatching_Calls.
15803 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
15804 subprograms if we are compiling under No_Dispatching_Calls restriction.
15805 (Make_DT): Generate a dispatch table with a single dummy entry if
15806 we are compiling with the No_Dispatching_Calls restriction. In
15807 addition, in this case we don't generate code that calls to the
15808 following run-time subprograms: Set_Type_Kind, Inherit_DT.
15809 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
15810 of this subprogram if compiling with the No_Dispatching_Calls
15812 (Expand_Type_Conversion): Instead of using the actual parameter,
15813 the argument passed as parameter to the conversion function was
15814 erroneously referenced by the expander.
15815 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
15816 Set_Predefined_Primitive_Op_Address and Set_Signature.
15817 (Expand_Dispatching_Call): Generate call to
15818 Get_Predefined_Prim_Op_Address for predefined primitives.
15819 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
15820 predefined primitives.
15821 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
15822 primitives we reserve one dummy entry to ensure that the tag does not
15823 point to some memory that is associated with some other object. In
15824 addition, remove all the old code that generated the assignments
15825 associated with the signature of the dispatch table and replace them
15826 by a call to the new subprogram Set_Signature.
15827 (Set_All_DT_Position): Change the algorithm because now we have a
15828 separate dispatch table associated with predefined primitive operations.
15829 (Expand_Interface_Conversion): In case of non-static offset_to_top
15830 add explicit dereference to get access to the object after the call
15831 to displace the pointer to the object.
15832 (Expand_Interface_Thunk): Modify the generation of the actual used
15833 in the calls to the run-time function Offset_To_Top to fulfil its
15835 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
15837 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15839 * exp_dist.adb (Copy_Specification): For access parameters, copy
15840 Null_Exclusion flag, which will have been set for stream subprograms
15843 2006-02-13 Pascal Obry <obry@adacore.com>
15845 * expect.c (__gnat_expect_portable_execvp): New implementation. The
15846 previous implementation was using the C runtime spawnve routine but
15847 the corresponding wait was using directly the Win32 API. This was
15848 causing some times a lock when waiting for an event using
15849 WaitForSingleObject in __gnat_waitpid. This new implementation uses
15850 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
15851 API fixes this problem.
15853 2006-02-13 Robert Dewar <dewar@adacore.com>
15855 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
15858 2006-02-13 Thomas Quinot <quinot@adacore.com>
15860 * exp_pakd.ads: Fix typos in comments.
15862 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
15863 array reference that is an explicit dereference, mark the converted
15864 (packed) array reference as analyzed to prevent a forthcoming
15865 reanalysis from resetting its type to the original (non-packed) array
15868 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15869 Javier Miranda <miranda@adacore.com>
15870 Eric Botcazou <ebotcazou@adacore.com>
15872 * exp_util.ads, exp_util.adb (Find_Prim_Op,
15873 Is_Predefined_Primitive_Operation): When
15874 searching for the predefined equality operator, verify that operands
15875 have the same type.
15876 (Is_Predefined_Dispatching_Operation): Remove the code that looks
15877 for the last entity in the list of aliased subprograms. This code
15878 was wrong in case of renamings.
15879 (Set_Renamed_Subprogram): New procedure
15880 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
15881 Exp_Type constant computed when entering this subprogram.
15882 (Known_Null): New function
15883 (OK_To_Do_Constant_Replacement): New function
15884 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
15885 (Side_Effect_Free): An attribute reference 'Input is not free of
15886 side effect, unlike other attributes that are functions. (from code
15888 (Remove_Side_Effects): Expressions that involve packed arrays or records
15889 are copied at the point of reference, and therefore must be marked as
15890 renamings of objects.
15891 (Is_Predefined_Dispatching_Operation): Return false if the operation is
15892 not a dispatching operation.
15895 (Remove_Side_Effects): Lift enclosing type conversion nodes for
15896 elementary types in all cases.
15898 2006-02-13 Javier Miranda <miranda@adacore.com>
15900 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
15901 task types when accessing to the corresponding record type.
15902 Remove '!' in warning message.
15904 2006-02-13 Olivier Hainque <hainque@adacore.com>
15906 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
15907 to avoid useless and space inefficient overalignments on targets where
15908 Max_Alignment is larger than 16.
15910 2006-02-13 Pascal Obry <obry@adacore.com>
15912 * g-catiio.adb (Sec_Number): New type used to compute the number of
15913 seconds since 1-1-1970.
15914 (Image) [Natural]: The parameter was an Integer, as we can't deal with
15915 negative numbers (years, months...) it is better to have a Natural here.
15917 (Image) [Number]: Change parameter from Long_Integer to Number.
15918 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
15919 overflow for dates past year 2038.
15921 2006-02-13 Matthew Heaney <heaney@adacore.com>
15923 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
15926 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15928 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
15930 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
15931 finalization can occur normally.
15933 2006-02-13 Vincent Celier <celier@adacore.com>
15935 * gnatcmd.adb (Rules_Switches): New table
15936 (Add_To_Rules_Switches): New procedure
15937 (GNATCmd): For command CHECK, put all options following "-rules" in the
15938 Rules_Switches table. Append these -rules switches after the -cargs
15941 2006-02-13 Robert Dewar <dewar@adacore.com>
15943 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
15944 These two cases were generating incorrect output, and if this unit
15945 was built with checks on, generated a discriminant mismatch constraint
15948 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15949 Robert Dewar <dewar@adacore.com>
15951 * lib-xref.adb (Get_Type_Reference): For a private type whose full
15952 view is an array type, indicate the component type as well, for
15953 navigation purposes.
15954 (Generate_Reference): Don't consider array ref on LHS to be a case
15955 of violating pragma Unreferenced.
15956 Do not give Ada 2005 warning except on real reference.
15958 2006-02-13 Vincent Celier <celier@adacore.com>
15960 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
15961 main source, add switch -mdebug-main=_ada_ so that the executable can
15962 be debugged by the standard VMS debugger.
15963 (Gnatmake): Set No_Main_Subprogram to True when there is no main
15964 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
15965 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
15966 of the last source, as the binding and linking phases are never
15968 Set all executable obsolete when rebuilding a library.
15970 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
15973 2006-02-13 Javier Miranda <miranda@adacore.com>
15976 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
15977 code to improve the error message reported when the program has
15978 declarations of abstract interface types and it is not compiled with
15979 the -gnat05 switch.
15980 (P_Access_Definition): Reorganize the code to improve the error
15981 message reported when the new Ada 2005 syntax for anonymous
15982 access types is used and the program is not compiled with the
15985 2006-02-13 Robert Dewar <dewar@adacore.com>
15987 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
15988 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
15991 2006-02-13 Javier Miranda <miranda@adacore.com>
15993 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
15994 against source containing syntax errors.
15996 2006-02-13 Vincent Celier <celier@adacore.com>
15998 * prj.adb (Reset): Initialize the first element of table Namings with
15999 the standard naming data.
16001 2006-02-13 Vincent Celier <celier@adacore.com>
16003 * prj.ads (Error_Warning): New enumeration type
16005 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
16006 unknown, use the location of the project to report the error.
16007 (When_No_Sources): New global variable
16008 (Report_No_Ada_Sources): New procedure
16009 (Check): New parameter When_No_Sources. Set value of global variable
16011 (Find_Sources): Call Report_No_Ada_Sources when appropriate
16012 (Get_Sources_From_File): Ditto
16013 (Warn_If_Not_Sources): Better warning messages indicating the unit name
16016 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
16017 Call Prj.Proc.Process with parameter When_No_Sources.
16019 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
16020 Call Recursive_Check with parameter When_No_Sources.
16021 (Recursive_Check): New parameter When_No_Sources. Call itself and
16022 Prj.Nmsc.Check with parameter When_No_Sources.
16023 (Process): New parameter When_No_Sources. Call Check with parameter
16025 (Copy_Package_Declarations): New procedure to copy renamed parameters
16026 and setting the location of the declared attributes to the location
16027 of the renamed package.
16028 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
16031 2006-02-13 Vincent Celier <celier@adacore.com>
16033 * prj-makr.adb (Make): Preserve the comments from the original project
16035 When removing nodes (attributes Source_Dirs, Source_Files,
16036 Source_List_File and package Naming), save the comments and attach the
16037 saved comments to the newly created nodes.
16038 Do not add a with clause for the naming package if one already exists.
16040 2006-02-13 Javier Miranda <miranda@adacore.com>
16041 Gary Dismukes <dismukes@adacore.com>
16042 Robert Dewar <dewar@adacore.com>
16044 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
16046 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
16047 aliased entities to look for the overriden abstract interface
16049 (Is_Interface_Subprogram): Complete documentation.
16050 (Check_Dispatching_Operation): Do not generate code to register the
16051 operation in the dispatch table if the source is compiled with
16052 restriction No_Dispatching_Calls.
16053 (Override_Dispatching_Operation): Check for illegal attempt to override
16054 No_Return procedure with procedure that is not No_Return
16055 (Check_Dispatching_Call): Suppress the check for an abstract operation
16056 when the original node of an actual is a tag-indeterminate attribute
16057 call, since the attribute, which must be 'Input, can never be abstract.
16058 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
16059 call to the Input attribute (even when rewritten).
16060 (Propagate_Tag): Augment comment to indicate the possibility of a call
16061 to an Input attribute.
16063 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
16064 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
16066 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
16067 No_Wide_Characters is no longer partition-wide
16068 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
16071 2006-02-13 Douglas Rupp <rupp@adacore.com>
16073 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
16075 2006-02-13 Javier Miranda <miranda@adacore.com>
16077 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
16078 handles default-initialized components to keep separate the management
16079 of this feature but also avoid the unrequired resolution and
16080 expansion of components that do not have partially initialized
16082 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
16083 (Check_Bounds): Likewise.
16084 (Check_Length): Likewise.
16086 2006-02-13 Javier Miranda <miranda@adacore.com>
16087 Ed Schonberg <schonberg@adacore.com>
16089 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
16090 abstract interface type call analyze_and_resolve to expand the type
16091 conversion into the corresponding displacement of the
16092 reference to the base of the object.
16093 (Eval_Attribute, case Width): For systems where IEEE extended precision
16094 is supported, the maximum exponent occupies 4 decimal digits.
16095 (Accessibility_Message): Add '\' in 2-line warning message.
16096 (Resolve_Attribute): Likewise.
16097 (case Attribute_Access): Significantly revise checks
16098 for illegal access-to-subprogram Access attributes to properly enforce
16099 the rules of 3.10.2(32/2).
16100 Diagnose use of current instance with an illegal attribute.
16102 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
16104 (Enclosing_Generic_Unit): New function to return a node's innermost
16105 enclosing generic declaration node.
16106 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
16107 (Type_Access_Level): The accessibility level of anonymous acccess types
16108 associated with discriminants is that of the current instance of the
16109 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
16110 (Compile_Time_Constraint_Error): Handle case of conditional expression.
16111 (Kill_Current_Values_For_Entity): New function
16112 (Enter_Name): Change formal type to Entity_Id
16114 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
16115 Ed Schonberg <schonberg@adacore.com>
16116 Gary Dismukes <dismukes@adacore.com>
16118 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
16119 Analyze_Compilation_Unit.
16120 Detect and warn on redundant with clauses detected in a package spec
16121 and/or body when -gnatwr is used.
16122 (Analyze_Context): Analyze config pragmas before other items
16123 (Install_Context_Items): Don't analyze config pragmas here
16124 (Install_Limited_Withed_Unit): Set limited entity of package in
16125 with_clause so that cross-reference information or warning messages on
16126 unused packages can be properly generated
16127 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
16128 has Error_Posted set. Prevent infinite loops in illegal programs.
16129 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
16130 to the point of the error test requiring the current unit to be private.
16131 This ensures that private with clauses are not exempted from the basic
16132 checking for being a descendant of the same library unit parent as a
16133 withed private descendant unit.
16134 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
16135 handle private with clauses properly, as well as to account for cases
16136 where the withed unit is a public descendant of a private ancestor
16137 (in which case the current unit must be a descendant of the private
16138 ancestor's parent). The spec comments were updated accordingly. Also,
16139 the old error message in this subprogram was replaced with error
16140 messages that mirror the errors tested and reported by
16141 Check_Private_Child_Unit.
16142 Parameter and variable names improved for readability.
16143 (Install_Limited_Context_Clauses): Remove test for a withed unit being
16144 private as the precondition for calling
16145 Check_Private_Limited_Withed_Unit since that subprogram has been
16146 revised to test public units as well as private units.
16148 2006-02-13 Thomas Quinot <quinot@adacore.com>
16149 Robert Dewar <dewar@adacore.com>
16150 Ed Schonberg <schonberg@adacore.com>
16151 Javier Miranda <miranda@adacore.com>
16153 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
16154 that Scope_Stack.First = 1.
16155 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16156 were not always properly handled previously.
16157 (Formal_Entity): Complete rewrite, to handle properly some complex case
16158 with multiple levels of parametrization by formal packages.
16159 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
16160 to the corresponding derived type declaration for proper semantics.
16162 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
16163 (Check_Component): Enforce restriction on components of
16164 unchecked_unions: a component in a variant cannot contain tasks or
16166 (Unchecked_Union): Allow nested variants and multiple discriminants, to
16168 Add pragma Ada_2005 (synonym for Ada_05)
16169 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16170 were not always properly handled previously.
16171 Document that pragma Propagate_Exceptions has no effect
16172 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
16173 (Set_Convention_From_Pragma): Check that if a convention is
16174 specified for a dispatching operation, then it must be
16175 consistent with the existing convention for the operation.
16176 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
16177 longer required to specify an vtable-ptr component in the record. For
16178 compatibility reasons we leave the support for the previous definition.
16179 (Analyze_Pragma, case No_Return): Allow multiple arguments
16181 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
16182 non-overrideen inherited operation with a controlling result as
16183 illegal only its implicit declaration comes from the derived type
16184 declaration of its result's type.
16185 (Check_Possible_Deferred_Completion): Relocate the object definition
16186 node of the subtype indication of a deferred constant completion rather
16187 than directly analyzing it. The analysis of the generated subtype will
16188 correctly decorate the GNAT tree.
16189 (Record_Type_Declaration): Check whether this is a declaration for a
16190 limited derived record before analyzing components.
16191 (Analyze_Component_Declaration): Diagnose record types not explicitly
16192 declared limited when a component has a limited type.
16193 (Build_Derived_Record_Type): Code reorganization to check if some of
16194 the inherited subprograms of a tagged type cover interface primitives.
16195 This check was missing in case of a full-type associated with a private
16197 (Constant_Redeclaration): Check that the subtypes of the partial and the
16198 full view of a constrained deferred constant statically match.
16199 (Mentions_T): A reference to the current type in an anonymous access
16200 component declaration must be an entity name.
16201 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
16202 class_wide type to refer to full type, not to the incomplete one.
16203 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
16204 available. Required to give support to the certified run-time.
16205 (Analyze_Component_Declaration): In case of anonymous access components
16206 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
16207 (Process_Discriminants): For an access discriminant, use the
16208 discriminant specification as the associated_node_for_itype, to
16209 simplify accessibility checks.
16211 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16212 Javier Miranda <miranda@adacore.com>
16214 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
16215 abstract interpretations on an operator, remove interpretations that
16216 yield Address or a type derived from it, if one of the operands is an
16218 (Try_Object_Operation.Try_Primitive_Operation,
16219 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
16220 location when creating the new reference to a primitive or class-wide
16221 operation as a part of rewriting a subprogram call.
16222 (Try_Primitive_Operations): If context requires a function, collect all
16223 interpretations after the first match, because there may be primitive
16224 operations of the same type with the same profile and different return
16225 types. From code reading.
16226 (Try_Primitive_Operation): Use the node kind to choose the proper
16227 operation when a function and a procedure have the same parameter
16229 (Complete_Object_Operation): If formal is an access parameter and prefix
16230 is an object, rewrite as an Access reference, to match signature of
16231 primitive operation.
16232 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
16233 by an expanded name with prefix Standard, when the operands are of an
16234 anonymous access type.
16235 (Remove_Abstract_Operations): If the operation is abstract because it is
16236 inherited by a user-defined type derived from Address, remove it as
16237 well from the set of candidate interpretations of an overloaded node.
16238 (Analyze_Membership_Op): Membership test not applicable to cpp-class
16241 2006-02-13 Bob Duff <duff@adacore.com>
16243 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
16244 redundant use clauses.
16245 In particular, if the scope of two use clauses overlaps, but one is not
16246 entirely included in the other, we should not warn. This can happen
16247 with nested packages.
16248 (Analyze_Subprogram_Renaming): Protect the compiler against previously
16249 reported errors. The bug was reported when the compiler was built
16250 with assertions enabled.
16251 (Find_Type): If the node is a 'Class reference and the prefix is a
16252 synchronized type without a corresponding record, return the type
16255 2006-02-13 Javier Miranda <miranda@adacore.com>
16257 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
16258 if this is the full-declaration associated with a private declaration
16259 that implement interfaces, then the private type declaration must be
16261 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
16262 as aliased. The use of the 'access attribute is not available for such
16263 object (for this purpose the object should be explicitly marked as
16264 aliased, but being an anonymous type this is not possible).
16266 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16267 Robert Dewar <dewar@adacore.com>
16269 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
16270 compilation unit is an elaboration scope.
16271 (Add_Task_Proc): Add '\' in 2-line warning message.
16272 (Activate_All_Desirable): Deal with case of unit with'ed by parent
16274 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16275 Javier Miranda <miranda@adacore.com>
16277 * sem_type.adb (Write_Overloads): Improve display of candidate
16279 (Add_One_Interp): Do not add to the list of interpretations aliased
16280 entities corresponding with an abstract interface type that is an
16281 immediate ancestor of a tagged type; otherwise we have a dummy
16282 conflict between this entity and the aliased entity.
16283 (Disambiguate): The predefined equality on universal_access is not
16284 usable if there is a user-defined equality with the proper signature,
16285 declared in the same declarative part as the designated type.
16286 (Find_Unique_Type): The universal_access equality operator defined under
16287 AI-230 does not cover pool specific access types.
16288 (Covers): If one of the types is a generic actual subtype, check whether
16289 it matches the partial view of the other type.
16291 2006-02-13 Thomas Quinot <quinot@adacore.com>
16293 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
16294 line. This is necessary to allow In_Extended_Main_Unit to provide
16295 correct results for itypes while writing out expanded source.
16296 (Close_File): No need to update the source_index_table here since it's
16297 now done for each line.
16299 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16300 Robert Dewar <dewar@adacore.com>
16302 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
16303 preserve the source unit where the itype is declared, and prevent a
16305 (Note_Implicit_Run_Time_Call): New procedure
16306 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
16309 * sprint.ads: Document use of $ for implicit run time routine call
16311 2006-02-13 Quentin Ochem <ochem@adacore.com>
16313 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
16316 2006-02-13 Bob Duff <duff@adacore.com>
16318 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
16319 Scan_Unsigned, so we do not scan leading blanks and sign twice.
16320 Integer'Value("- 5") and Integer'Value("-+5") now correctly
16321 raise Constraint_Error.
16323 * s-vallli.adb (Scan_Long_Long_Integer): Call
16324 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
16325 do not scan leading blanks and sign twice.
16326 Integer'Value("- 5") and Integer'Value("-+5") now correctly
16327 raise Constraint_Error.
16329 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
16330 Scan_Long_Long_Unsigned): Split out most of the processing from
16331 Scan_Long_Long_Unsigned out into
16332 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
16333 This prevents scanning leading blanks and sign twice.
16334 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
16337 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
16338 out most of the processing from Scan_Unsigned out into
16339 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
16340 This prevents scanning leading blanks and sign twice.
16342 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
16343 use with Modular'Value attribute.
16344 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
16347 2006-02-13 Robert Dewar <dewar@adacore.com>
16349 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
16351 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
16353 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
16354 (PPC VxWorks): Likewise.
16355 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
16356 (forced_callee): Make non-inlinable and non-pure.
16357 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
16359 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16360 Ben Brosgol <brosgol@adacore.com>
16361 Robert Dewar <dewar@adacore.com>
16363 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
16365 Document that gnatbind -M option is for cross environments only.
16366 Added description of using gnatmem to trace gnat rtl allocs and deallocs
16367 Add note on use of $ to label implicit run time calls
16368 Add documentation for -gnatyI (check mode IN)
16369 Updated chapter on compatibility with HP Ada
16370 VMS-oriented edits.
16371 Ran spell and corrected errors
16372 Add documentation for gnatbind -d and rework documentation of -D
16374 Add subprogram/data elimination section.
16375 Minor editing of annex A.
16376 Add section for gnatcheck.
16377 Add documentation for restriction No_Dispatching_Calls
16378 Add documentation for pragma Ada_2005
16379 Remove mention of obsolete pragma Propagate_Exceptions
16380 Document that pragma Unreferenced can appear after DO in ACCEPT
16381 Clarify Pure_Function for library level units
16382 Mention Max/Min in connection with No_Implicit_Conditionals
16383 No_Wide_Characters restriction is no longer partition-wide
16384 Add a nice example for Universal_Literal_String attribute
16385 Document that pragma No_Return can take multiple arguments
16387 * ug_words: Added entry for gnatcheck
16389 * g-ctrl_c.ads (Install_Handler): Enhance comments
16391 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
16393 * g-trasym.ads: Add documentation on how to do off line symbolic
16394 traceback computation.
16396 * s-fatgen.adb: Add comments for Unaligned_Valid
16398 * stand.ads: Fix typo in comment
16400 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16402 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
16404 2006-02-06 Roger Sayle <roger@eyesopen.com>
16406 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
16408 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16411 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
16412 implementation that calls __main.
16414 2006-01-25 Peter O'Gorman <peter@pogma.com>
16417 * Makefile.in (GCC_LINK): Remove quotes.
16418 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
16421 (powerpc-darwin): Pass -shared-libgcc when building shared library.
16423 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16426 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
16428 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16430 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
16432 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16434 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
16437 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16439 * Make-lang.in: Update dependencies
16441 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16443 * Make-lang.in: Add rule for ada/exp_sel.o
16445 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16447 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
16449 2005-12-09 Arnaud Charlet <charlet@adacore.com>
16451 * gnatvsn.ads (Library_Version): Bump to version 4.2
16452 (ASIS_Version_Number): Bumped.
16454 2005-12-09 Doug Rupp <rupp@adacore.com>
16456 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
16457 Ada bind file prefix on VMS from b$ to b__.
16458 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
16461 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
16462 Targparm.OpenVMS_On_Target.
16463 (Object_Suffix): Initialize with target object suffix.
16464 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
16466 * butil.adb: Change some Hostparm.OpenVMS checks to
16467 Targparm.OpenVMS_On_Target.
16469 * clean.adb: Change some Hostparm.OpenVMS checks to
16470 Targparm.OpenVMS_On_Target.
16471 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
16472 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
16473 Ada bind file prefix on VMS from b$ to b__.
16475 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
16476 --GCC so that Get_Target_Parameters can find system.ads.
16477 (Gnatlink): Call Get_Target_Parameters in mainline.
16478 Initialize standard packages for Targparm.
16479 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16480 (Process_Args): Also Check for object files with target object
16482 (Make_Binder_File_Names): Create with target object extension.
16483 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
16486 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
16487 Targparm.OpenVMS_On_Target.
16488 ({declaration},Build_Library,Check_Library): Change Ada bind file
16489 prefix on VMS from b$ to b__.
16491 * osint-b.adb: Change some Hostparm.OpenVMS checks to
16492 Targparm.OpenVMS_On_Target.
16493 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
16496 * targext.c: New file.
16498 * Makefile.in: add support for vxworks653 builds
16499 (../../vxaddr2line): gnatlink with targext.o.
16500 (TOOLS_LIBS): Move targext.o to precede libgnat.
16501 (init.o, initialize.o): Minor clean up in dependencies.
16502 (GNATLINK_OBJS): Add targparm.o, snames.o
16503 Add rules fo building targext.o and linking it explicitly with all
16505 Also add targext.o to gnatlib.
16507 * Make-lang.in: Add rules for building targext.o and linking it in
16508 with gnat1 and gnatbind.
16509 Add entry for exp_sel.o.
16511 * osint.adb Change some Hostparm.OpenVMS checks to
16512 Targparm.OpenVMS_On_Target.
16513 (Object_File_Name): Use target object suffix.
16515 * osint.ads (Object_Suffix): Remove, no longer used.
16516 (Target_Object_Suffix): Initialize with target object suffix.
16518 * rident.ads: Add special exception to license.
16520 * targparm.adb (Get_Target_Parameters): Set the value of
16521 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
16523 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
16525 * targparm.ads: Add special exception to license.
16527 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
16529 (Copy_File): Make sure from file is closed if error on to file
16530 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
16532 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
16533 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
16535 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
16536 target object suffix.
16538 2005-12-09 Jose Ruiz <ruiz@adacore.com>
16539 Quentin Ochem <ochem@adacore.com>
16540 Florian Villoing <villoing@adacore.com>
16542 * a-taster.ads, a-taster.adb: New files.
16544 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
16545 link to the version that does nothing. This way the task termination
16546 routine is not executed twice for the environment task when finishing
16547 because of an unhandled exception.
16549 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
16550 handler because of an unhandled exception.
16552 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
16553 System.Tasking.Utilities instead of that in System.Tasking.Stages.
16555 * s-finimp.adb (initialization code): Modify the soft link for the
16556 finalization of the global list instead of Adafinal.
16558 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
16559 non-tasking version of the soft link for task termination. We do
16560 nothing since if we are using the non-tasking version it
16561 means that the task termination functionality is not used.
16562 (Null_Finalize_Global_List): Add this null version for the procedure
16563 in charge of finalizing the global list for controlled objects.
16564 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
16565 instead for handling run-time termination in a more flexible way.
16566 (Adafinal_NT): This new procedure will take care of finalizing the
16567 global list for controlled objects if needed, but no tasking
16570 * s-tarest.adb (Task_Lock): Do not try to lock again the
16571 Global_Task_Lock if we already own it. Otherwise, we get blocked in
16572 some run-time operations.
16573 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
16574 until all nested locks have been released.
16575 (Task_Wrapper): Call the fall-back task termination handler. It
16576 applies to all tasks but the environment task.
16577 (Finalize_Global_Tasks): Add the call for the task termination
16578 procedure for the environment task.
16579 (Task_Wrapper): suppress warnings around declaration of
16580 Secondary_Stack_Address.
16582 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
16583 moved to the Common_ATCB record.
16584 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
16585 Common_ATCB record.
16586 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
16587 Common_ATCB record.
16589 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
16590 Fall_Back_Handler, and Specific_Handler.
16592 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
16593 defined in Ada.Task_Termination, to avoid circular dependencies.
16594 (Termination_Handler): Redefine this type here, alredy defined in
16595 Ada.Task_Termination, for avoiding circular dependencies.
16596 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
16597 for storing task termination handlers. In addition,
16598 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
16599 Common_ATCB because it is used by both the regular and the restricted
16601 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
16602 Common_ATCB because it is used by both the regular and the restricted
16604 (Common_ATCB): Added a dynamic task analyzer field.
16606 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
16607 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
16608 (Task_Wrapper): Call the task termination handler. It applies to all
16609 tasks but the environment task.
16610 (Finalize_Global_Tasks): Call the task termination procedure for the
16611 environment task. The call to Finalize_Global_List is now performed
16612 using the soft links mechanism.
16613 (Task_Wrapper): added dynamic stack analysis.
16615 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
16616 potentially blocking operations has been moved from
16617 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
16618 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
16619 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
16620 this run-time check.
16622 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
16623 of task termination procedure.
16624 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
16625 link for the task termination procedure.
16627 * bindusg.adb: (Bindusg): Added documentation for -u option.
16629 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
16630 (Get_Main_C): Add handling of dynamic stack analysis.
16631 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
16633 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
16634 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
16635 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
16637 * opt.ads: Added flags used by dynamic stack measurement.
16638 (Max_Line_Length): Remove (not used anymore)
16640 * s-io.ads, s-io.adb (Standard_Error): new subprogram
16641 (Standart_Output): new subprogram
16642 (Set_Output): new subprogram
16643 (Put): now uses the value of Current_Out to know if the output has to be
16644 send to stderr or stdout.
16646 * s-stausa.ads: Complete implementation.
16648 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
16650 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
16651 list of Ada 05 files.
16652 (GNAT Library Units): Add AltiVec files.
16654 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
16655 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
16656 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
16658 2005-12-09 Nicolas Setton <setton@adacore.com>
16660 * adaint.c (__gnat_locate_regular_file): Return immediately if
16661 file_name is empty.
16663 2005-12-09 Javier Miranda <miranda@adacore.com>
16664 Hristian Kirtchev <kirtchev@adacore.com>
16666 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
16667 to the specification because the frontend generates code that uses this
16669 (Set_Interface_Table): Add missing assertion.
16670 Update documentation describing the run-time structure.
16671 (Displace): New subprogram that displaces the pointer to the object
16672 to reference one of its secondary dispatch tables.
16673 (IW_Membership): Modified to use the new table of interfaces.
16674 (Inherit_TSD): Modified to use the new table of interfaces.
16675 (Register_Interface_Tag): Use the additional formal to fill the
16676 contents of the new table of interfaces.
16677 (Set_Interface_Table): New subprogram that stores in the TSD the
16678 pointer to the table of interfaces.
16679 (Set_Offset_To_Top): Use the additional formal to save copy of
16680 the offset value in the table of interfaces.
16681 Update structure of GNAT Primary and Secondary dispatch table diagram.
16682 Add comment section on GNAT dispatch table prologue.
16683 (Offset_To_Signature): Update the constant value of the Signature field.
16684 (Dispatch_Table): Update comment on hidden fields in the prologue.
16685 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
16686 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
16687 the type of formal parameter T to Tag, introduce additional assertions.
16688 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
16690 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
16692 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
16693 in all the calls to Expand_Interface_Thunk. Instead of referencing the
16694 record component containing the tag of the secondary dispatch table we
16695 have to use the Offset_To_Top run-time function to get this information;
16696 otherwise if the pointer to the base of the object has been displace
16697 we get a wrong value if we use the 'position attribute.
16699 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
16700 all the calls to Expand_Interface_Thunk.
16701 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
16702 interfaces; hence the call to Set_Interface_Table was clearly wrong.
16703 (Collect_All_Interfaces): Modify the internal subprogram Collect to
16704 ensure that the interfaces implemented by the ancestors are placed
16705 at the header of the generated list.
16706 (Expand_Interface_Conversion): Handle the case in which the displacement
16707 associated with the interface conversion is not statically known. In
16708 this case we generate a call to the new run-time subprogram Displace.
16709 (Make_DT): Generate and fill the new table of interfaces.
16710 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
16711 Get_Tagged_Kind and Set_Tagged_Kind.
16712 (Tagged_Kind): New function that determines the tagged kind of a type
16713 with respect to limitedness and concurrency and returns a reference to
16715 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
16716 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
16717 primary dispatch table for a type.
16718 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
16719 secondary dispatch table respectively of a tagged type.
16721 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
16722 (Expand_Interface_Conversion): New subprogram to indicate if the
16723 displacement of the type conversion is statically known.
16724 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
16726 * rtsfind.ads (RE_Offset_To_Top): New entity
16727 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
16728 accessible to users.
16729 (Re_Displace): New entity
16730 (RE_Interface_Data): New entity
16731 (RE_Set_Interface_Data): New_Entity
16732 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
16733 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
16734 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
16735 RE_TK_Tagged, RE_TK_Task.
16737 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
16738 Init_Secondary_Tags_Internal to allow its use with interface types and
16739 also to generate the code for the new additional actual required
16740 by Set_Offset_To_Top.
16741 (Build_Init_Statements): In case of components associated with abstract
16742 interface types there is no need to generate a call to its IP.
16743 (Freeze_Record_Type): Generate Select Specific Data tables only for
16745 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
16746 the bodies and specifications of the predefined primitive operations
16747 dealing with dispatching selects and abort, 'Callable, 'Terminated only
16748 for concurrent types.
16750 * exp_sel.ads, exp_sel.adb: New files.
16752 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
16753 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
16754 properly protected objects and attach handler in the case of the
16755 restricted profile.
16756 Move embeded package Select_Expansion_Utilities into a separate external
16758 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
16759 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
16760 (Build_K, Build_S_Assignment): New subprograms, part of the select
16761 expansion utilities.
16762 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
16763 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
16764 where the trigger is a dispatching procedure of a limited tagged type.
16766 2005-12-09 Olivier Hainque <hainque@adacore.com>
16768 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
16769 pointer initialization values. Make a SAVE_EXPR instead. Add comments
16770 about the use and expansion of SAVE_EXPRs in the various possible
16771 renaming handling cases.
16772 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
16773 abusing DECL_FCONTEXT.
16775 2005-12-09 Matthew Heaney <heaney@adacore.com>
16777 * a-convec.adb (Merge): Added assertions to check whether vector params
16780 * a-coinve.adb (Merge): Added assertions to check whether vector params
16783 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
16785 (Cursor'Read): raises PE
16787 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
16788 to its default value.
16790 * a-cihama.adb: Manually check whether cursor's key and elem are
16793 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
16794 (Merge): Assert that target and source lists are in order
16795 (Swap): Declare non-const temporaries, to pass to Splice
16797 * a-cdlili.ads: (Splice): Changed param name and param mode
16799 * a-cdlili.adb: (Splice): Changed param name and param mode
16800 (Merge): Assert that target and source lists are in order
16801 (Swap): Declare non-const temporaries, to pass to Splice
16803 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
16804 (Write): declare Stream param as not null
16806 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
16807 an exception message.
16809 2005-12-09 Thomas Quinot <quinot@adacore.com>
16810 Robert Dewar <dewar@adacore.com>
16812 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
16813 which is the absolute maximum length we can support.
16815 * frontend.adb: For the processing of configuration pragma files,
16816 remove references to Opt.Max_Line_Length, which is not checked anymore.
16818 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
16821 * scn.adb, scng.adb:
16822 Always check line length against the absolute supported maximum,
16823 Hostparm.Max_Line_Length.
16825 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
16826 value for the maximum line length is Max_Line_Length (not
16827 Column_Number'Last).
16828 Minor error msg update
16829 (Set_Style_Check_Options): New interface returning error msg
16830 Minor code reorganization (processing for 'M' was out of alpha order)
16832 * switch-c.adb: New interface for Set_Style_Check_Options
16834 * stylesw.ads (Set_Style_Check_Options): New interface returning error
16837 2005-12-09 Javier Miranda <miranda@adacore.com>
16839 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
16840 with IP subprogram were only supported if there were limited types.
16842 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
16843 records with IP subprogram were only supported if there were limited
16846 2005-12-09 Olivier Hainque <hainque@adacore.com>
16847 Eric Botcazou <ebotcazou@adacore.com>
16849 * trans.c (tree_transform, emit_check): Adjust calls to
16850 build_call_raise, passing the now expected GNAT_NODE argument.
16852 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
16853 source line information than what the current global locus indicates
16856 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
16857 field has overflowed.
16858 (build_call_raise): Add a GNAT_NODE argument to convey better source
16859 line information than what the current global locus indicates when
16861 (build_component_ref): Adjust call to build_call_raise.
16863 2005-12-09 Pascal Obry <obry@adacore.com>
16865 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
16866 the iterator is quitting iteration on parent directory.
16868 2005-12-09 Javier Miranda <miranda@adacore.com>
16870 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
16871 and the assignment to a class-wide object, before the assignment we
16872 generate a run-time check to ensure that the tag of the Target is
16873 covered by the tag of the source.
16875 2005-12-09 Robert Dewar <dewar@adacore.com>
16877 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
16878 parameter in call to Image_Wide_Character.
16880 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
16881 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
16882 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
16883 annoying FFFE/FFFF inconsistency.
16885 2005-12-09 Robert Dewar <dewar@adacore.com>
16886 Javier Miranda <miranda@adacore.com>
16887 Ed Schonberg <schonberg@adacore.com>
16889 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
16890 of type conversion.
16891 (Find_Interface): New subprogram that given a tagged type and one of its
16892 component associated with the secondary table of an abstract interface
16893 type, return the entity associated with such abstract interface type.
16894 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
16895 base type to create anonymous subtype, because entity may be a locally
16896 declared subtype or generic actual.
16897 (Find_Interface): New subprogram that given a tagged type and one of its
16898 component associated with the secondary table of an abstract interface
16899 type, return the entity associated with such abstract interface type.
16901 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
16902 conversion cannot be handled at compile time. In this case we pass this
16903 information to the expander to generate the appropriate code.
16905 2005-12-09 Robert Dewar <dewar@adacore.com>
16906 Ed Schonberg <schonberg@adacore.com>
16907 Gary Dismukes <dismukes@adacore.com>
16908 Javier Miranda <miranda@adacore.com>
16909 Hristian Kirtchev <kirtchev@adacore.com>
16911 * einfo.adb (Itype_Printed): New flag
16912 (Is_Limited_Type): Derived types do not inherit limitedness from
16913 interface progenitors.
16914 (Is_Return_By_Reference_Type): Predicate does not apply to limited
16917 * einfo.ads (Itype_Printed): New flag
16918 Move Is_Wrapper_Package to proper section
16919 Add missing Inline for Is_Volatile
16921 * output.ads, output.adb (Write_Erase_Char): New procedure
16922 (Save/Restore_Output_Buffer): New procedures
16923 (Save/Restore_Output_Buffer): New procedures
16925 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
16926 Add missing support for anonymous access type
16927 (Write_Id): Insert calls to Write_Itype
16928 (Write_Itype): New procedure to output itypes
16930 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
16931 use of "limited" in declaration.
16933 * sinfo.ads, sinfo.adb:
16934 Formal derived types can carry an explicit "limited" indication.
16936 * sem_ch3.adb: Add with and use of Targparm.
16937 (Create_Component): If Frontend_Layout_On_Target is True and the
16938 copied component does not have a known static Esize, then reset
16939 the size and positional fields of the new component.
16940 (Analyze_Component_Declaration): A limited component is
16941 legal within a protected type that implements an interface.
16942 (Collect_Interfaces): Do not add to the list the interfaces that
16943 are implemented by the ancestors.
16944 (Derived_Type_Declaration): If the parent of the full-view is an
16945 interface perform a transformation of the tree to ensure that it has
16946 the same parent than the partial-view. This simplifies the job of the
16947 expander in order to generate the correct object layout, and it is
16948 needed because the list of interfaces of the full-view can be given in
16950 (Process_Full_View): The parent of the full-view does not need to be
16951 a descendant of the parent of the partial view if both parents are
16953 (Analyze_Private_Extension_Declaration): If declaration has an explicit
16954 "limited" the parent must be a limited type.
16955 (Build_Derived_Record_Type): A derived type that is explicitly limited
16956 must have limited ancestor and progenitors.
16957 (Build_Derived_Type): Ditto.
16958 (Process_Full_View): Verify that explicit uses of "limited" in partial
16959 and full declarations are consistent.
16960 (Find_Ancestor_Interface): Remove function.
16961 (Collect_Implemented_Interfaces): New procedure used to gather all
16962 implemented interfaces by a type.
16963 (Contain_Interface): New function used to check whether an interface is
16965 (Find_Hidden_Interface): New function used to determine whether two
16966 lists of interfaces constitute a set equality. If not, the first
16967 differing interface is returned.
16968 (Process_Full_View): Improve the check for the "no hidden interface"
16969 rule as defined by AI-396.
16971 2005-12-09 Robert Dewar <dewar@adacore.com>
16973 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
16974 types, not on record subtypes.
16975 (Freeze_Entity): Code cleanup. Add barrier to the loop
16976 that generates the references for primitive operations. This allows to
16977 remove an unnecessary exception handler.
16978 Code reformatting and comment clean ups.
16980 2005-12-09 Vincent Celier <celier@adacore.com>
16982 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
16983 If GNAT CHECK is called with a project file, but with no
16984 source on the command line, call gnatcheck with all the compilable
16985 sources of the project.
16986 Take into account the new command Check, for gnatcheck. Treat as for
16987 other ASIS tools: take into account project, specific package Check and
16989 For ASIS tools, add the switches in package Compiler for
16990 the invocation of the compiler.
16992 * prj-attr.adb: Add package Check and its attributes
16994 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
16996 * vms_conv.adb (Initialize): Change Params of command Check to
16998 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16999 Add data for new command Check
17001 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
17003 Add qualifiers for Check command options
17004 (Command_Type): New command Check
17006 2005-12-09 Thomas Quinot <quinot@adacore.com>
17008 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
17009 command line switch overruns the output buffer.
17011 2005-12-09 Robert Dewar <dewar@adacore.com>
17013 * sem_prag.adb: Processing for new pragma Complete_Representation
17014 (Analyze_Pragma, case Debug): Implement two argument form.
17016 * par-prag.adb: Entry for new pragma Complete_Representation
17017 (Prag, case Debug): Recognize two argument form of pragma Debug
17018 New interface for Set_Style_Check_Options.
17020 * sem_ch13.adb: Implement new pragma Complete_Representation.
17022 * snames.adb, snames.ads, snames.h: Entry for new pragma
17023 Complete_Representation.
17025 2005-12-09 Gary Dismukes <dismukes@adacore.com>
17027 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
17028 available user-specified stream attributes on limited parameters to
17029 also test the type directly rather than only its underlying type (for
17030 Ada 95) and, in the case of Ada 2005, to check that the user-specified
17031 attributes are visible at the point of the subprogram declaration.
17032 For Ada 2005, the error message is modified to indicate that the
17033 type's stream attributes must be visible (again, only for -gnat05).
17035 2005-12-09 Ed Schonberg <schonberg@adacore.com>
17037 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
17038 anonymous access types.
17040 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
17041 matching of anonymous access types and anonymous access to subprogram
17042 types. 'R'M 4.9.1 (2/2).
17044 2005-12-09 Ed Schonberg <schonberg@adacore.com>
17046 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
17047 rule prematurely when operands are universal, remaining ambiguities
17048 will be removed during resolution.
17051 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
17052 that are Ada 2005 functions.
17053 (Has_Abstract_Interpretation): Subsidiary to
17054 Remove_Conversions, to remove ambiguities caused by abstract operations
17055 on numeric types when operands are universal.
17057 2005-12-09 Robert Dewar <dewar@adacore.com>
17059 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
17060 for case where spec is categorized.
17062 2005-12-09 Javier Miranda <miranda@adacore.com>
17064 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
17065 types use the corresponding record type. This was not needed before
17066 the implementation of Ada 2005 synchronized types because
17067 concurrent types were never tagged types in Ada 95.
17069 2005-12-09 Ed Schonberg <schonberg@adacore.com>
17071 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
17072 first subtype of the type of the expression to verify that it is a
17075 2005-12-09 Robert Dewar <dewar@adacore.com>
17077 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
17080 2005-12-09 Quentin Ochem <ochem@adacore.com>
17081 Robert Dewar <dewar@adacore.com>
17082 Ed Falis <falis@adacore.com>
17083 Florian Villoing <villoing@adacore.com>
17084 Thomas Quinot <quinot@adacore.com>
17085 Arnaud Charlet <charlet@adacore.com>
17087 * gnat_ugn.texi: Created section "Stack Related Tools"
17088 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
17089 "Stack Related Tools"
17090 Added subsection "Static Stack Usage Analysis"
17091 Added subsection "Dynamic Stack Usage Analysis"
17092 Include documentation of itypes in sprint listing (-gnatG)
17093 Documented gnatbind -D switch (default sec stack size for fixed sec
17095 Added Interrupt_State and Persistent_BSS to list of configuration
17097 Add missing doc for maximum value of nnn in -gnatyMnnn
17099 * gnat_rm.texi: Document the AltiVec binding.
17100 Add documentation for pragma Complete_Representation
17101 Shortened an overly long line (> 79 chars)
17102 Clarify documentation of unchecked conversion in implementation
17104 Document two argument form of pragma Debug
17106 * types.ads (Column_Number): Update documentation.
17108 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
17109 library level Finalize_Storage_Only objects (these are not attached to
17110 any finalization list).
17112 * system-mingw.ads: (Underlying_Priorities): Update comment.
17114 2005-12-09 Robert Dewar <dewar@adacore.com>
17116 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
17117 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
17118 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
17119 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
17120 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
17121 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
17122 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
17123 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
17126 2005-12-09 Robert Dewar <dewar@adacore.com>
17128 * s-vaflop-vms-alpha.adb: (Ne_F): New function
17129 (Ne_G): New function
17131 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
17132 for tag assignment.
17133 (Rewrite_Comparison): Handle case where operation is not a comparison
17134 and ignore, and also handle type conversion case.
17136 2005-12-09 Thomas Quinot <quinot@adacore.com>
17138 * exp_aggr.ads: Fix typo in comment.
17139 ???-mark Convert_Aggr_In_Assignment as needing documentation.
17141 2005-12-09 Gary Dismukes <dismukes@adacore.com>
17143 * layout.adb: Replace various uses of byte by storage unit throughout.
17144 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
17145 static size, convert to storage units before returning, to conform to
17148 2005-12-09 Matthew Gingell <gingell@adacore.com>
17150 * g-exctra.ads: Fix typo in comment.
17152 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17154 * utils.c: Minor reformatting.
17156 2005-12-09 Robert Dewar <dewar@adacore.com>
17159 Further comment fixes to make the status of the default file clear
17161 * s-bitops.adb: Clarify comment for Bits_Array
17163 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
17165 * Make-lang.in (ada.install-normal): Remove.
17167 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
17169 * Make-lang.in: Remove all dependencies on s-gtype.
17171 2005-12-05 Richard Guenther <rguenther@suse.de>
17173 * utils.c (convert): Use fold_convert where appropriate.
17175 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
17177 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
17180 2005-12-02 Richard Guenther <rguenther@suse.de>
17182 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
17184 2005-12-01 Roger Sayle <roger@eyesopen.com>
17186 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
17189 2005-11-23 Laurent Guerby <laurent@guerby.net>
17191 * mlib-prj.adb (Build_Library): Initialize Delete.
17193 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
17195 * socket.c: Add extern int h_errno for rtems since networking header
17196 files are not available at this point in a tool bootstrap. Newlib
17197 only has basic C library header files.
17199 2005-11-19 Richard Guenther <rguenther@suse.de>
17200 Roger Sayle <roger@eyesopen.com>
17203 * misc.c (internal_error_function): Don't use vsprintf to format
17204 the error message text, instead use pp_format_text and the new
17205 pretty printer APIs. This allows handling of %qs, %w, etc.
17207 2005-11-18 Laurent Guerby <laurent@guerby.net>
17210 * Makefile.in: Use s-auxdec-empty for RTEMS.
17212 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17215 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
17216 a temporary if taking the address of something that is neither
17217 reference, declaration, or constant, since the gimplifier
17218 can't handle that case.
17220 2005-11-17 Laurent Guerby <laurent@guerby.net>
17223 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
17225 2005-11-16 Richard Guenther <rguenther@suse.de>
17227 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
17229 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
17232 * raise-gcc.c: Add missing stdarg.h include.
17234 2005-11-16 Richard Guenther <rguenther@suse.de>
17236 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
17237 (ada/misc.o): Likewise.
17239 2005-11-14 Thomas Quinot <quinot@adacore.com>
17241 * g-soccon.ads: Minor reformatting. Update comments.
17243 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
17244 gain visibility on the declaration of struct timeval.
17246 * g-soccon-freebsd.ads,
17247 g-soccon-darwin.ads,
17248 g-soccon-tru64.ads,
17252 g-soccon-solaris.ads,
17254 g-soccon-mingw.ads,
17255 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
17257 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
17258 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
17259 g-soccon-linux-x86.ads: New files.
17261 * g-socthi-mingw.adb:
17262 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
17264 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
17265 (time_t, suseconds_t): New types constructed to match the tv_sec
17266 and tv_usec fields of C struct timeval.
17267 (Timeval): Construct structure in terms of the new types.
17268 (Host_Errno): New function (imported from socket.c), returns last hosts
17271 * g-socthi-vxworks.adb: Add error handling circuitry.
17273 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
17274 components of struct timeval.
17275 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
17276 (Check_Selector): In error conditions, clear internal socket sets to
17277 avoid a memory leak.
17278 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
17279 Send_Timeout, Receive_Timeout.
17281 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
17282 the tv_sec and tv_usec fields of C struct timeval.
17283 (Timeval): Construct structure in terms of the new types.
17284 (Host_Errno): New function (imported from socket.c), returns last hosts
17287 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
17288 hosts database last error code.
17290 * gen-soccon.c: Complete value expansion should not be performed on
17291 TARGET, as it has the form of a math expression, and some components
17292 may be platform-defined macros.
17293 For VxWorks, generate the OK and ERROR values.
17294 New constants giving the sizes of the components of C struct timeval.
17296 2005-11-14 Robert Dewar <dewar@adacore.com>
17297 Ed Schonberg <schonberg@adacore.com>
17300 * types.ads: Include All_Checks in Suppress_Array
17302 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
17303 not(a=b), since we no longer do this rewriting, and hence it is not
17305 (Elaboration_Checks_Suppressed): Add special casing to
17306 deal with different cases of static and dynamic elaboration checks (all
17307 checks does not count in the first case, but does in the second).
17308 (Expr_Known_Valid): Do not assume that the result of any arbitrary
17309 function call is valid, since this is not the case.
17310 (Ensure_Valid): Do not apply validity check to a real literal
17311 in a universal or fixed context
17313 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
17314 elementary types using the operator in standard. It is cleaner not to
17315 modify the programmers intent, especially in the case of floating-point.
17316 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
17317 it did not matter because we always rewrote a/=b to not(a=b).
17318 (Expand_Allocator_Expression): For an allocator expression whose nominal
17319 subtype is an unconstrained packed type, convert the expression to its
17320 actual constrained subtype.
17321 Implement warning for <= or >= where < or > not possible
17322 Fix to Vax_Float tests (too early in many routines, causing premature
17323 Vax_Float expansions.
17325 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
17326 to be used with packages and generic packages as well as with
17328 (Suppress): Set All_Checks, but not Elaboration_Check, for case
17329 of pragma Suppress (All_Checks)
17330 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
17331 a string literal for precise control over warnings.
17332 Avoid raise of pragma in case of unrecognized pragma and just return
17335 * sem_prag.ads: Minor reformatting
17337 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
17338 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17339 Switch. Do not handle any exception.
17340 Include -gnatwx as part of -gnatg (warn on redundant parens)
17341 Allow optional = after -gnatm
17342 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
17343 longer sets Elaboration_Checks.
17344 Code to set warning mode moved to Sem_Warn
17345 so that it can be shared by pragma processing.
17347 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
17350 * s-taprop-solaris.adb:
17351 Change some <= to =, to avoid new warning
17353 * a-exexda.adb, prj-proc.adb:
17354 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
17355 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
17357 2005-11-14 Robert Dewar <dewar@adacore.com>
17359 * exp_vfpt.adb: Handle /= case
17360 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
17361 so that we do not get duplicate scaling for fixed point conversions.
17363 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
17365 2005-11-14 Matthew Gingell <gingell@adacore.com>
17367 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
17368 Increase default priority on Lynx from 15 to 17, and meet the Ada
17369 requirement that Default_Priority be ((Priority'First +
17370 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
17372 2005-11-14 Vincent Celier <celier@adacore.com>
17374 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17375 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
17376 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
17377 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
17378 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
17379 mlib-tgt-lynxos.adb (DLL_Prefix): New function
17381 2005-11-14 Doug Rupp <rupp@adacore.com>
17383 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
17386 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17388 * s-traces-default.adb, s-trafor-default.ads,
17389 s-tratas-default.adb: Fix compilation errors.
17391 2005-11-14 Jose Ruiz <ruiz@adacore.com>
17393 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
17394 raising the exception so the memory used is freed.
17396 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17398 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
17399 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
17400 (convert_address): Update comments and list of platforms using this.
17402 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
17405 2005-11-14 Pascal Obry <obry@adacore.com>
17406 Vincent Celier <celier@adacore.com>
17408 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
17411 * memroot.adb: Remove redundant with/use clause on
17412 System.Storage_Elements.
17414 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17416 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
17417 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
17418 related code to a-exexpr.adb
17419 (Save_Occurrence_And_Private): Move GCC EH related code to
17421 (Raise_Current_Excep): Add new variable Id with pragma
17422 volatile, to ensure that the variable lives on stack.
17424 * a-exexpr-gcc.adb, raise-gcc.c: New file.
17426 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
17428 Move GCC EH related code to a-exexpr-gcc.adb
17430 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
17432 Split the Linux version of g-soccon into separate variants for 32 and 64
17434 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
17435 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
17436 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
17437 of host variable $(RANLIB_FLAGS).
17438 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
17439 Code clean up: remove unused/obsolete targets.
17440 (EH_MECHANISM): New variable introduced to differenciate between the
17441 two EH mechanisms statically.
17442 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
17443 (LIBGNAT_OBJS): Add raise-gcc.o
17444 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
17445 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17446 supports VxWorks 6 RTPs.
17447 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
17448 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17450 * raise.c: Move all GCC EH-related routines to raise-gcc.c
17452 2005-11-14 Jose Ruiz <ruiz@adacore.com>
17454 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
17455 deferral level, when abort is not allowed, to a later stage (the
17457 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
17458 it will not get changed by the generated code. It was previously done
17461 2005-11-14 Thomas Quinot <quinot@adacore.com>
17462 Olivier Hainque <hainque@adacore.com>
17463 Eric Botcazou <ebotcazou@adacore.com>
17466 Factor common code to build a storage type for an unconstrained object
17467 from a fat or thin pointer type and a constrained object type.
17468 (annotate_value): Handle BIT_AND_EXPR.
17469 (annotate_rep): Don't restrict the back annotation of inherited
17470 components to the type_annotate_only case.
17471 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
17472 we are not defining the type.
17473 <E_Record_Type>: Likewise.
17474 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
17475 to get advantage of the new maybe_stabilize_reference interface, to
17476 ensure that what we reference is indeed stabilized instead of relying
17477 on assumptions on what the stabilizer does.
17478 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
17479 type imported through a limited_with clause, use its non-limited view.
17480 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
17482 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
17483 of #if sections + explicit comparisons of convention identifiers.
17484 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
17485 before early-returning for certain types when code generation is
17487 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
17488 nullification of gnu_expr we do for objects with address clause and
17489 that we are not defining.
17490 (elaborate_expression_1): Do not create constants when creating
17491 variables needed by the debug info: the dwarf2 writer considers that
17492 CONST_DECLs is used only to represent enumeration constants, and emits
17494 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
17495 object with an address clause into an indirect reference, drop the
17496 initializing expression.
17498 (STACK_CHECK_BUILTIN): Delete.
17499 (STACK_CHECK_PROBE_INTERVAL): Likewise.
17500 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
17501 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
17502 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
17503 corresponding to the renamed object as ignored for debugging purposes.
17505 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
17506 related): For a prefix that is a dereference of a fat or thin pointer,
17507 if there is an actual subtype provided by the front-end, use that
17508 subtype to build an actual type with bounds template.
17509 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
17510 is provided by the front-end, use that subtype to compute the size of
17511 the deallocated object.
17512 (gnat_to_gnu): When adding a statement into an elaboration procedure,
17513 check for a potential violation of a No_Elaboration_Code restriction.
17514 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17515 with extra arguments to control whether to recurse through non-values
17516 and to let the caller know if the stabilization has succeeded.
17517 (gnat_stabilize_reference): Now a simple wrapper around
17518 maybe_stabilize, for common uses without restriction on lvalues and
17519 without need to check for the success indication.
17520 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
17521 pass false instead of 0 as the FORCE argument which is a bool.
17522 (Identifier_to_gnu): Remove checks ensuring that an renamed object
17523 attached to a renaming pointer has been properly stabilized, as no such
17524 object is attached otherwise.
17525 (call_to_gnu): Invoke create_var_decl to create the temporary when the
17526 function uses the "target pointer" return mechanism.
17527 Reinstate conversion of the actual to the type of the formal
17528 parameter before any other specific treatment based on the passing
17529 mechanism. This turns out to be necessary in order for PLACEHOLDER
17530 substitution to work properly when the latter type is unconstrained.
17532 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
17534 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17535 with extra arguments to control whether to recurse through non-values
17536 and to let the caller know if the stabilization has succeeded.
17538 * utils2.c (gnat_build_constructor): Only sort the fields for possible
17539 static output of record constructor if all the components are constant.
17540 (gnat_build_constructor): For a record type, sort the list of field
17541 initializers in increasing bit position order.
17542 Factor common code to build a storage type for an unconstrained object
17543 from a fat or thin pointer type and a constrained object type.
17544 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
17545 types variants, and process special cases of VIEW_CONVERT expressions
17546 as their NOP_EXPR counterpart to ensure we get to the
17547 CORRESPONDING_VARs associated with CONST_DECls.
17548 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
17549 on the right-hand side.
17551 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
17553 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
17554 are converting back to its original type.
17555 (convert) <JM input>: Fallthrough regular conversion code instead of
17556 extracting the object if converting to a type variant.
17557 (create_var_decl): When a variable has an initializer requiring code
17558 generation and we are at the top level, check for a potential violation
17559 of a No_Elaboration_Code restriction.
17560 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
17561 SIZE and SIZE_UNIT which we need for later back-annotations.
17562 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
17563 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
17564 is an unchecked union.
17565 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
17566 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
17567 main variant, just replace the VIEW_CONVERT_EXPR.
17568 <UNION_TYPE>: Revert 2005-03-02 change.
17570 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
17572 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
17574 2005-11-14 Matthew Heaney <heaney@adacore.com>
17576 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
17577 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
17578 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
17579 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
17580 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
17581 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
17582 Compiles against the spec for ordered maps described in sections
17583 A.18.6 of the most recent (August 2005) AI-302 draft.
17585 2005-11-14 Olivier Hainque <hainque@adacore.com>
17587 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
17588 to ensure bias adjustments take place when need be and to prevent
17589 occurrences of intermediate overflows.
17591 2005-11-14 Matthew Gingell <gingell@adacore.com>
17592 Olivier Hainque <hainque@adacore.com>
17594 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
17597 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
17598 tracebacks on ia64 HP-UX and provide explanatory comment.
17599 Enable backtraces on ia64 GNU/Linux.
17600 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
17601 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
17603 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
17604 Javier Miranda <miranda@adacore.com>
17606 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
17607 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
17608 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
17609 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
17611 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
17612 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
17615 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
17616 subprogram that generates the external name associated with a
17617 secondary dispatch table.
17618 (Get_Secondary_DT_External_Name): New subprogram that generates the
17619 external name associated with a secondary dispatch table.
17621 2005-11-14 Emmanuel Briot <briot@adacore.com>
17623 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
17624 line in the ALI file to include both an instantiation reference, and a
17627 2005-11-14 Vincent Celier <celier@adacore.com>
17629 * clean.adb (Check_Project): Look for Ada code in extending project,
17630 even if Ada is not specified as a language.
17631 Use new function DLL_Prefix for DLL_Name
17632 (Clean_Interface_Copy_Directory): New procedure
17633 (Clean_Library_Directory): New procedure
17634 (Clean_Directory): Remove procedure, no longer used
17635 (Clean_Project): Do not delete any file in an externally built project
17637 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
17638 directory of an extending project, even when there are no Ada source
17640 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
17641 (Set_Ada_Paths.Add.Recursive_Add): Ditto
17643 * mlib-prj.adb (Check_Library): For all library projects, get the
17644 library file timestamp.
17645 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
17646 (Build_Library): Use new function DLL_Prefix for the DLL_Name
17647 (Clean): Remove procedure, no longer used
17648 (Ultimate_Extension_Of): New function
17649 (Build_Library): When cleaning the library directory, only remove an
17650 existing library file and any ALI file of a source of the project.
17651 When cleaning the interface copy directory, remove any source that
17652 could be a source of the project.
17654 * prj.ads, prj.adb (Project_Empty): Add values of new components
17655 Library_TS and All_Imported_Projects.
17656 (Project_Empty): Add values for new components of Project_Data:
17657 Library_ALI_Dir and Display_Library_ALI_Dir
17659 * prj-attr.adb: New project level attribute name Library_ALI_Dir
17661 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
17662 attribute Library_ALI_Dir.
17663 (Check_Library_Attributes): The library directory cannot be the same as
17664 any source directory of the project tree.
17665 (Check_Stand_Alone_Library): The interface copy directory cannot be
17666 the same as any source directory of the project tree.
17668 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
17669 all temporary files.
17671 2005-11-14 Robert Dewar <dewar@adacore.com>
17672 Ed Schonberg <schonberg@adacore.com>
17674 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17675 (Check_Elab_Call): A call within a protected body is never an
17676 elaboration call, and does not require checking.
17677 (Same_Elaboration_Scope): Take into account protected types for both
17679 (Activate_Elaborate_All_Desirable): New procedure
17681 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
17684 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
17685 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
17687 * lib-writ.ads, lib-writ.adb:
17688 Implement new AD/ED for Elaborate_All/Elaborate desirable
17689 Use new Elaborate_All_Desirable flag in N_With_Clause node
17691 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
17692 N_Free_Statement nodes.
17693 Define new class N_Subprogram_Instantiation
17694 Add Elaborate_Desirable flag to N_With_Clause node
17695 Add N_Delay_Statement (covering two kinds of delay)
17697 * debug.adb: Introduce d.f flag for compiler
17698 Add -da switch for binder
17700 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17701 Cyrille Comar <comar@adacore.com>
17703 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
17704 for task component, in the case of a limited aggregate. The enclosed
17705 object declaration will create it earlier. Otherwise, in the case of a
17706 nested aggregate, the object may appear in the wrong scope.
17707 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
17708 (Gen_Assign): If the component being assigned is an array type and the
17709 expression is itself an aggregate, wrap the assignment in a block to
17710 force finalization actions on the temporary created for each row of the
17712 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
17713 structures are initialized after all discriminants are set so that
17714 they can be accessed even when their offset is dynamic.
17716 2005-11-14 Robert Dewar <dewar@adacore.com>
17717 Hristian Kirtchev <kirtchev@adacore.com>
17719 * sem_attr.adb: Implement Machine_Rounding attribute
17720 (Analyze_Access_Attribute): The access attribute may appear within an
17721 aggregate that has been expanded into a loop.
17722 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
17723 'Terminated whenever the prefix is of a task interface class-wide type.
17724 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
17725 the prefix is of a task interface class-wide type.
17727 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
17730 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
17731 Remove pragma Inline for [Unaligned_]Valid.
17732 Add comments that Valid routines do not work for Vax_Float
17734 * exp_attr.adb: Implement Machine_Rounding attribute
17736 * snames.h: Add entry for Machine_Rounding attribute
17738 2005-11-14 Javier Miranda <miranda@adacore.com>
17739 Robert Dewar <dewar@adacore.com>
17740 Hristian Kirtchev <kirtchev@adacore.com>
17742 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
17743 and related): For a prefix that is an explicit dereference of an
17744 access to unconstrained packed array type, annotate the dereference
17745 with an actual subtype so GIGI can make a correct size computation.
17746 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
17747 'Unrestricted_Access, if the designated type is an interface we
17748 add a type conversion to force the displacement of the pointer
17749 to the secondary dispatch table.
17750 Use Universal_Real instead of Long_Long_Float when we need a high
17751 precision float type for the generated code (prevents gratuitous
17752 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
17753 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
17754 'Terminated for task interface class-wide objects. Generate a call to
17755 the predefined dispatching routine used to retrieve the _task_id from
17756 a task corresponding record.
17757 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
17759 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17760 (Check_Dispatching_Operation): Protect the frontend againts
17761 previously detected errors.
17763 * Makefile.rtl: Add new instantiations of system.fat_gen
17765 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
17766 Change name of instantiated package for better consistency
17767 with newly added system.fat_gen instantiations.
17769 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
17770 s-fvagfl.ads: New files.
17772 2005-11-14 Cyrille Comar <comar@adacore.com>
17773 Thomas Quinot <quinot@adacore.com>
17775 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
17776 assignment of a value of a tagged type that has been rewritten to a
17777 block statement, it is known by construction that no checks are
17778 necessary for the statements within the block: analyze it with checks
17780 (Expand_N_If_Statement): When killing a dead then-branch in an
17781 if-statement that has elsif_parts, recompute the Current_Value node
17782 for any entity whose value is known from the condition of the first
17784 (Expand_N_Return_Statement): When returning a mutable record, convert
17785 the return value into its actual subtype in order to help the backend
17786 to return the actual size instead of the maximum. This is another
17787 aftermath of not returning mutable records on the sec-stack anymore.
17789 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
17790 handling of error msg for suspicious reverse range iteration.
17791 (Check_Possible_Current_Value_Condition): Move declaration from body to
17792 spec, to allow this subprogram to be called from exp_ch5.
17794 2005-11-14 Thomas Quinot <quinot@adacore.com>
17796 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
17797 generate a set of nested array aggregates instead of a single flat
17798 aggregate for multi-dimensional arrays.
17800 2005-11-14 Pascal Obry <obry@adacore.com>
17802 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
17803 by spawnve is a process handle, no need to convert. Add a parameter
17804 close to control wether the process handle must be closed.
17805 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
17806 a process handle, not need to convert.
17807 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
17809 * g-expect.adb: (Kill): Document the new close parameter.
17810 (Close): Do not release the process handle in the kill there as
17811 waitpid() is using it.
17812 (Send_Signal): Release the process handle.
17814 2005-11-14 Robert Dewar <dewar@adacore.com>
17816 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
17817 need a high precision float type for the generated code (prevents
17818 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17821 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
17822 need a high precision float type for the generated code (prevents
17823 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17825 (Expand_Width_Attribute): In configurable run-time, the attribute is not
17826 allowed on non-static enumeration subtypes. Force a load error to emit
17827 the correct diagnostic.
17829 2005-11-14 Thomas Quinot <quinot@adacore.com>
17830 Robert Dewar <dewar@adacore.com>
17831 Ed Schonberg <schonberg@adacore.com>
17833 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
17834 subtype to compute the size of the designated object at run-time,
17835 create such a subtype and store it in the Actual_Designated_Subtype
17836 attribute of the N_Free_Statement.
17837 Generate itype for classwide designated object in both cases of
17838 user-specified storage pool: specific and class-wide, not only in the
17840 Raise CE when trying to set a not null access type object to null.
17841 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
17842 an explicit loop, because freeze nodes make its position variable.
17844 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
17847 2005-11-14 Javier Miranda <miranda@adacore.com>
17849 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
17850 Build_Stream_Procedure): Add the null-excluding attribute to the first
17852 This has no semantic meaning under Ada95 mode but it is a
17853 requirement under Ada05 mode.
17855 * par-ch3.adb (P_Access_Definition): Addition of warning message if
17856 the null exclusion is used under Ada95 mode
17857 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
17858 (P_Access_Definition): Remove assertion that forbids the use of
17859 the null-exclusion feature in Ada95.
17861 2005-11-14 Robert Dewar <dewar@adacore.com>
17863 * impunit.adb: Exclude container helper units not intended for use by
17866 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17868 * freeze.adb (Freeze_Entity): For an access formal that is an access
17869 to subprogram, freeze the anonymous subprogram type at the same time,
17870 to prevent later freezing in the wrong scope, such as the enclosing
17872 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
17873 subprogram whenever available.
17875 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17878 * gnatvsn.ads (Library_Version): Bump to 4.1
17880 2005-11-14 Robert Dewar <dewar@adacore.com>
17882 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
17883 Storage_Offset to avoid wrap around causing invalid results.
17885 2005-11-14 Pascal Obry <obry@adacore.com>
17887 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
17889 (Scan_Bind_Arg): Fail with an error message if -M option is used
17890 on a native compiler.
17892 2005-11-14 Robert Dewar <dewar@adacore.com>
17893 Vincent Celier <celier@adacore.com>
17895 * gprep.adb: Implement -C switch to scan comments
17897 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
17899 * scans.ads: Comment updates (including new use of Tok_Comment in
17902 * opt.ads: Add documentation for flags that are used by gprmake,
17903 currently and in the next version of gprmake.
17904 (Verbosity_Level): New variable
17905 Add Replace_In_Comments switch
17907 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
17909 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
17911 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17913 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
17914 message, friendlier.
17916 2005-11-14 Robert Dewar <dewar@adacore.com>
17918 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
17920 2005-11-14 Doug Rupp <rupp@adacore.com>
17922 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
17924 2005-11-14 Robert Dewar <dewar@adacore.com>
17926 * interfac.ads: Change declarations of IEEE float types so that we no
17927 longer need a separate version of this package for VMS.
17929 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17931 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
17932 internal entity created for the declaration of a child subprogram body
17933 with no spec as coming from source, to generate proper cross-reference
17936 2005-11-14 Vincent Celier <celier@adacore.com>
17938 * make.adb (Compile_Sources): Change verbose message to minimum
17939 verbosity level High for "is in an Ada library", "is a read-only
17940 library" and "is an internal library",
17941 (Create_Binder_Mapping_File): Path name of ALI file for library project
17942 must include the library directory, not the object directory.
17943 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
17944 for new switches -vl, -vm and -vh.
17945 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
17946 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
17947 (Compile_Sources): Do not attempt to compile if an ALI file is missing
17948 in a project that is externally built.
17949 (Compute_All_Imported_Projects): New procedure
17950 (Gnatmake): Check if importing libraries should be regenerated because
17951 at least an imported library is more recent.
17952 (Initialize): For each project compute the list of the projects it
17953 imports directly or indirectly.
17954 (Add_Library_Search_Dir): New procedure, used in place of
17955 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
17956 put in the search paths.
17957 (Add_Source_Search_Dir): New procedure, used in place of
17958 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
17959 put in the search paths.
17960 (Mark_Directory): Resolve the absolute path the directory before marking
17963 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
17964 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17965 Switch. Do not handle any exception.
17966 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
17967 so that the switch is recognized as valid.
17968 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
17970 2005-11-14 GNAT Script <nobody@adacore.com>
17972 * Make-lang.in: Makefile automatically updated
17974 2005-11-14 Pascal Obry <obry@adacore.com>
17976 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
17978 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
17979 In both cases the last argument was dropped.
17981 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
17983 * namet.h: (Column_Numbe): New type.
17984 (Get_Column_Number): Define to sinput__get_column_number.
17985 (Instantiation): Define to sinput__instantiation.
17986 (Get_Column_Number): Declare.
17987 (Instantiation): Likewise.
17989 2005-11-14 Robert Dewar <dewar@adacore.com>
17991 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
17992 syntax, which could cause compiler hangs.
17994 2005-11-14 Vincent Celier <celier@adacore.com>
17996 * prj-ext.adb: Take into account new environment variable
17997 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
17999 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
18000 normalize its path name, making it absolute and resolving symbolic
18001 links, and replace the original if resolved path is different.
18003 2005-11-14 Vincent Celier <celier@adacore.com>
18005 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
18006 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
18008 2005-11-14 Emmanuel Briot <briot@adacore.com>
18010 * prj-pp.adb (Print): Do not output the with statement if the
18011 associated name is empty, which happens for virtual extending projects.
18012 (Print): Preserve the "extends all" attribute when printing the project.
18014 * prj-tree.ads (String_Value_Of): Add comment about returned value for
18015 a virtual extending project.
18017 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18019 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
18020 rhs of an assignment even if the type is unconstrained, when the
18021 context is non-expanding.
18022 In an inlined body, if the context type is private,
18023 resolve with its full view, which must be a composite type.
18025 2005-11-14 Robert Dewar <dewar@adacore.com>
18026 Ed Schonberg <schonberg@adacore.com>
18028 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
18029 Do not give obsolescent warning on with of subprogram (since we
18031 (Analyze_With_Clause): Add test for obsolescent package
18032 (Install_Context_Clauses): If the unit is the body of a child unit, do
18033 not install twice the private declarations of the parents, to prevent
18034 circular lists of Use_Clauses in a parent.
18035 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
18036 compiling body of child unit.
18037 Use new class N_Subprogram_Instantiation
18038 (Expand_With_Clause): If this is a private with_clause for a child unit,
18039 appearing in the context of a package declaration, then the implicit
18040 with_clauses generated for parent units are private as well.
18041 (License_Check): Do not generate message if with'ed unit is internal
18043 2005-11-14 Gary Dismukes <dismukes@adacore.com>
18044 Ed Schonberg <schonberg@adacore.com>
18045 Thomas Quinot <quinot@adacore.com>
18047 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
18048 names are internal, because they will not have a corresponding partner
18049 in the actual package.
18050 (Analyze_Formal_Package): Move the setting of the formal package spec's
18051 Generic_Parent field so that it occurs prior to analyzing the package,
18052 to allow proper operation of Install_Parent_Private_Declarations.
18053 (Analyze_Package_Instantiation): Set the instantiated package entity's
18054 Package_Instantiation field.
18055 (Get_Package_Instantiation_Node): Move declaration to package spec.
18056 Retrieve the N_Package_Instantiation node when the Package_Instantiation
18058 (Check_Generic_Child_Unit): Within an inlined call, the only possible
18059 instantiation is Unchecked_Conversion, for which no parents are needed.
18060 (Inline_Instance_Body): Deinstall and record the use_clauses for all
18061 parent scopes of a scope being removed prior to inlining an instance
18063 (Analyze_Package_Instantiation): Do not perform front-end inlining when
18064 the current context is itself an instance within a non-instance child
18065 unit, to prevent scope stack errors.
18066 (Save_References): If the node is an aggregate that is an actual in a
18067 call, rewrite as a qualified expression to preserve some type
18068 information, to resolve possible ambiguities in the instance.
18069 (Instance_Parent_Unit): New global variable to record the ultimate
18070 parent unit associated with a generic child unit instance (associated
18071 with the existing Parent_Unit_Visible flag).
18072 (type Instance_Env): New component Instance_Parent_Unit for stacking
18073 parents recorded in the global Instance_Parent_Unit.
18074 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
18076 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
18077 it's not a top-level unit, and only do this if Instance_Parent_Unit is
18078 not already set. Replace test of Is_Child_Unit with test of parent's
18079 scope against package Standard. Add comments and a ??? comment.
18080 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
18081 on a child instance parent to test that the parent equals
18082 Instance_Parent rather than simply checking that the unit is not a
18084 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
18085 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
18086 a formal interface are ancestors of the corresponding actual.
18087 (Validate_Formal_Interface_Type): Additional legality checks.
18088 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
18089 interface types with ancestors.
18090 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
18091 to diagnose attempts to use generic within its own declaration.
18093 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18094 Javier Miranda <miranda@adacore.com>
18096 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
18098 (Build_Private_Derived_Type): The entity of the created full view of the
18099 derived type does not come from source. If after installing the private
18100 declarations of the parent scope the parent is still private, use its
18101 full view to construct the full declaration of the derived type.
18102 (Build_Derived_Record_Type): Relax the condition that controls the
18103 execution of the check that verifies that the partial view and
18104 the full view agree in the set of implemented interfaces. In
18105 addition, this test now only takes into account the progenitors.
18106 (Derive_Interface_Subprograms): No need to derive subprograms
18107 of ancestors that are interfaces.
18108 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
18110 Change name Is_Package to Is_Package_Or_Generic_Package
18111 (Complete_Subprograms_Derivation): Handle the case in which the full
18112 view is a transitive derivation of the ancestor of the partial view.
18113 (Process_Full_View): Rename local subprogram Find_Interface_In_
18114 Descendant to Find_Ancestor_Interface to leave the code more clear.
18115 Remove wrong code that avoids the generation of an error message
18116 when the immediate ancestor of the partial view is an interface.
18117 In addition some minor reorganization of the code has been done to
18118 leave it more clear.
18119 (Analyze_Type_Declaration): If type has previous incomplete tagged
18120 partial view, inherit properly its primitive operations.
18121 (Collect_Interfaces): Make public, for analysis of formal
18123 (Analyze_Interface_Declaration): New procedure for use for regular and
18124 formal interface declarations.
18125 (Build_Derived_Record_Type): Add support for private types to the code
18126 that checks if a tagged type implements abstract interfaces.
18127 (Check_Aliased_Component_Type): The test applies in the spec of an
18129 (Access_Type_Declaration): Clean up declaration of malformed type
18130 declared as an access to its own classwide type, to prevent cascaded
18132 (Collect_Interfaces): For private extensions and for derived task types
18133 and derived protected types, the parent may be an interface that must
18134 be included in the interface list.
18135 (Access_Definition): If the designated type is an interface that may
18136 contain tasks, create Master_Id for it before analyzing the expression
18137 of the declaration, which may be an allocator.
18138 (Record_Type_Declaration): Set properly the interface kind, for use
18139 in allocators, the creation of master id's for task interfaces, etc.
18141 2005-11-14 Javier Miranda <miranda@adacore.com>
18142 Ed Schonberg <schonberg@adacore.com>
18144 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
18145 omitted in case of stream attribute subprograms.
18146 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
18147 appear immediately after a subprogram body, when there is no previous
18148 subprogram declaration.
18149 Change name Is_Package to Is_Package_Or_Generic_Package
18150 (Process_Formals): A non null qualifier on a non null named access
18151 type is not an error, and is a warning only if Redundant_Constructs
18154 2005-11-14 Gary Dismukes <dismukes@adacore.com>
18155 Ed Schonberg <schonberg@adacore.com>
18157 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
18158 nested within Analyze_Package_Specification to install the private
18159 declarations and use clauses within each of the parent units of a
18160 package instance of a generic child package.
18161 (Analyze_Package_Specification): When entering a private part of a
18162 package associated with a generic instance or formal package, the
18163 private declarations of the parent must be installed (by calling new
18164 procedure Install_Parent_Private_Declarations).
18165 Change name Is_Package to Is_Package_Or_Generic_Package
18166 (Preserve_Full_Attributes): For a synchronized type, the corresponding
18167 record is absent in a generic context, which does not indicate a
18170 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18172 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
18173 not try to rewrite a renamed stream attribute, because the operations
18174 on the type may not have been generated.
18175 Handle properly a renaming_as_body generated for a stream operation
18176 whose default is abstract because the object type itself is abstract.
18177 (Find_Type): If the type is incomplete and appears as the prefix of a
18178 'Class reference, it is tagged, and its list of primitive operations
18179 must be initialized properly.
18180 (Chain_Use_Clauses): When chaining the use clauses that appear in the
18181 private declaration of a parent unit, prior to compiling the private
18182 part of a child unit, find on the scope stack the proper parent entity
18183 on which to link the use clause.
18184 (Note_Redundant_Use): Emit a warning when a redundant use clause is
18186 (Analyze_Object_Renaming): An attribute reference is not a legal object
18187 if it is not a function call.
18189 2005-11-14 Robert Dewar <dewar@adacore.com>
18190 Ed Schonberg <schonberg@adacore.com>
18192 * sem_eval.adb: Implement d.f flag
18193 (Subtype_Statically_Match): A generic actual type has unknown
18194 discriminants when the corresponding actual has a similar partial view.
18195 If the routine is called to validate the signature of an inherited
18196 operation in a child instance, the generic actual matches the full view,
18198 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
18199 Ed Schonberg <schonberg@adacore.com>
18200 Robert Dewar <dewar@adacore.com>
18201 Thomas Quinot <quinot@adacore.com>
18203 * sem_res.adb (Resolve_Call): Provide a better error message whenever
18204 a procedure call is used as a select statement trigger and is not an
18205 entry renaming or a primitive of a limited interface.
18206 (Valid_Conversion): If the operand has a single interpretation do not
18207 remove address operations.
18208 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
18209 statement to inhibit warning.
18210 (Resolve_Unary_Op): Do not produce a warning when
18211 processing an expression of the form -(A mod B)
18212 Use Universal_Real instead of Long_Long_Float when we need a high
18213 precision float type for the generated code (prevents gratuitous
18214 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
18215 (Resolve_Concatenation_Arg): Improve error message when argument is an
18216 ambiguous call to a function that returns an array.
18217 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
18218 there is an implicit operator in the given scope if we are within an
18219 instance: legality check has been performed on the generic.
18220 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
18221 after resolving operand, to avoid false warnings on overloaded calls.
18223 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18224 Javier Miranda <miranda@adacore.com>
18227 * sem_type.adb (Covers): In an inlined body, a composite type matches
18228 a private type whose full view is a composite type.
18229 (Interface_Present_In_Ancestor): Protect the frontend against
18230 previously detected errors to ensure that its compilation
18231 with assertions enabled gives the same output that its
18232 compilation without assertions.
18233 (Interface_Present_In_Ancestor): Add support for private types.
18234 Change name In_Actual to In_Generic_Actual (clean up)
18235 (Disambiguate): New predicate In_Actual, to recognize expressions that
18236 appear in the renaming declaration generated for generic actuals, and
18237 which must be resolved in the outer context.
18239 2005-11-14 Robert Dewar <dewar@adacore.com>
18240 Thomas Quinot <quinot@adacore.com>
18241 Hristian Kirtchev <kirtchev@adacore.com>
18242 Ed Schonberg <schonberg@adacore.com>
18244 * sem_util.ads, sem_util.adb: Change name Is_Package to
18245 Is_Package_Or_Generic_Package.
18246 (Check_Obsolescent): New procedure.
18247 (Set_Is_Public): Remove obsolete junk test.
18248 (Set_Public_Status): Do not set Is_Public on an object whose declaration
18249 occurs within a handled_sequence_of_statemets.
18250 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
18251 for a parameterless procedure.
18252 (Enter_Name): Recognize renaming declarations created for private
18253 component of a protected type within protected operations, so that
18254 the source name of the component can be used in the debugger.
18256 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18257 Robert Dewar <dewar@adacore.com>
18259 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
18260 of a generic subprogram are not visible outside the body.
18261 (Set_Warning_Switch): New procedure (code to set warning mode moved
18262 here from Switch.C so that it can be shared by pragma processing.
18263 (Check_References): Special case warning for non-modified non-imported
18265 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
18266 form with a string literal argument
18268 2005-11-14 Javier Miranda <miranda@adacore.com>
18270 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
18272 (Write): Addition of "not null" to the anonymous access.
18273 (Read): Addition of "not null" to the anonymous access.
18274 (Write): Addition of "not null" to the anonymous access.
18276 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
18277 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
18278 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
18279 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
18280 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
18281 "not null" to the anonymous access.
18283 2005-11-14 Robert Dewar <dewar@adacore.com>
18285 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
18288 2005-11-14 Vincent Celier <celier@adacore.com>
18290 * switch.adb (Bad_Switch): New procedure
18291 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
18292 message when in error.
18294 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
18295 Too_Many_Output_Files): Remove declarations, no longer used.
18296 (Scan_Nat): New parameter Switch
18298 (Bad_Switch): New procedure
18300 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
18301 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
18302 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
18303 to Osint.Fail. Do not handle any exception.
18305 2005-11-14 Vincent Celier <celier@adacore.com>
18307 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
18308 designates a non existent directory.
18310 2005-11-14 Robert Dewar <dewar@adacore.com>
18312 * xgnatugn.adb: Replace invalid membership test by 'Valid
18314 2005-11-14 Vincent Celier <celier@adacore.com>
18316 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
18317 there is no object directory.
18319 2005-11-14 Robert Dewar <dewar@adacore.com>
18321 * usage.adb: Minor adjustment to output format, use nn instead of nnn
18322 (so that -gnateInnn does not run into next column)
18324 2005-11-14 Ed Falis <falis@adacore.com>
18326 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
18329 2005-11-14 Cyrille Comar <comar@adacore.com>
18331 * s-chepoo.ads: Add comments on Dereference.
18332 Remove unnecessary inherited abstract primitives.
18335 2005-11-14 Robert Dewar <dewar@adacore.com>
18337 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
18338 node parameter, not needed, since it is available as Declaration_Node.
18340 2005-11-14 Geert Bosch <bosch@adacore.com>
18342 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
18343 grammatically correct.
18345 2005-11-14 Vincent Celier <celier@adacore.com>
18347 * s-fileio.ads: Correct spelling error in comment
18349 2005-11-14 Cyrille Comar <comar@adacore.com>
18350 Robert Dewar <dewar@adacore.com>
18351 Vincent Celier <celier@adacore.com>
18352 Ben Brosgol <brosgol@adacore.com>
18353 Jose Ruiz <ruiz@adacore.com>
18354 Pascal Obry <obry@adacore.com>
18357 Document that -fstack-check is needed for strict compliance with the
18358 Ada 95 Reference Manual.
18359 Correct reference to VAX systems to meet HP guidelines
18360 Add documentation for new gnatmake switches -vl, -vm and -vh
18361 Replace DEC Ada by HP Ada
18362 Replace DIGITAL by HP
18363 Remove empty section on tools in compatibility section
18364 Clarify the Windows convention semantics.
18365 Document the Win32 calling convention.
18366 The Stdcall, Win32 and DLL convention are synonyms.
18367 Add a note in -gnatR description about zero size record components
18368 Note on new >= and <= warnings for -gnatwc
18369 Document that equal sign after -gnatm is optional.
18370 Note that strip is working fine on DLL built with a Library
18371 Project. The restriction apply only to DLL built with gnatdll.
18372 Update section about the way to debug a DLL.
18373 Update information about the DLL convention.
18374 Document -C switch for gnatprep
18375 Document new attribute Library_ALI_Dir
18376 Update elaboration doc to include implicit Elaborate pragmas now
18377 generated for subprogram instantiations.
18378 Document limitation on executable names that include spaces for --GCC,
18379 --GNATBIND, and --GNATLINK switches.
18380 Document that -w causes -gnatws to be added at start of gcc switches
18382 * gnat_rm.texi: Document that -mieee is needed for generating infinite
18383 and NaN values in case of overflow on machines that are not fully
18384 compliant with the IEEE floating-point standard.
18385 Create a section describing the set of compiler options needed for
18386 strict compliance with the Ada 95 Reference Manual.
18387 Add documentation for pragma Obsolescent applied to a package
18388 Clarify potential issues of mixed language programs related to the
18389 I/O buffering enabling in the elaboration of the GNAT runtime.
18390 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
18391 This documentation only patch adds extra documentsion for pragma
18392 Restrictions (No_Elaboration_Code), explaining why it is not possible
18393 to document this restriction in terms of allowed source constructs.
18394 Document string literal form of pragma Warnings
18395 Document new attribute Library_ALI_Dir
18396 Add documentation on stable attributes in project files that was missing
18398 * gnat-style.texi: Indicate that paragraphs within a single comment
18399 should be separated by empty comment lines
18401 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
18404 * bindusg.adb: Minor cleanup, put -m before -M for consistency
18406 2005-11-14 Robert Dewar <dewar@adacore.com>
18408 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
18409 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
18410 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
18411 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
18412 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
18413 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
18414 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18415 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
18416 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
18417 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18418 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
18419 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
18420 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
18421 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
18422 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
18423 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
18424 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
18425 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
18426 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
18427 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
18428 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18429 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
18430 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
18431 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
18432 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
18433 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
18434 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
18435 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
18436 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
18437 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
18438 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
18439 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
18440 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
18441 system-interix.ads, system-solaris-sparc.ads,
18442 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
18443 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
18444 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
18445 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
18446 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
18447 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
18448 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
18449 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18450 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18451 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
18452 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
18453 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
18454 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
18455 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
18456 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
18457 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18458 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
18459 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
18460 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
18461 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
18462 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
18463 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
18464 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
18465 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
18466 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
18467 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18468 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18469 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
18470 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
18471 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
18472 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
18473 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
18474 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18475 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
18476 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
18477 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
18478 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18479 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
18480 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
18481 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
18482 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
18483 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
18484 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
18485 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
18486 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
18487 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
18488 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
18489 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
18490 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
18491 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
18492 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
18493 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
18494 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
18495 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
18496 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
18497 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
18498 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
18499 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
18500 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
18501 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
18502 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
18503 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
18504 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18505 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
18506 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
18507 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
18508 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
18509 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
18510 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
18511 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
18512 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18513 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
18514 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
18515 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
18516 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
18517 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18518 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
18519 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
18520 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
18521 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18522 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
18523 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
18524 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
18525 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18526 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
18527 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
18528 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
18529 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18530 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
18531 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
18532 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
18533 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18534 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
18535 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
18536 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
18537 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
18538 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
18539 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
18540 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
18541 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
18542 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
18543 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
18544 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
18545 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
18546 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
18547 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
18548 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
18549 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
18550 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
18551 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18552 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
18553 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
18554 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
18555 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
18556 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
18557 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
18558 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
18559 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
18560 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
18561 a-numaux-darwin.ads, a-numaux-darwin.adb,
18562 a-swuwha.ads, a-stunha.ads: Minor reformatting
18564 2005-11-14 Robert Dewar <dewar@adacore.com>
18567 * osint-m.adb: Add pragma Elaborate_All for Osint
18569 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
18572 * trans.c (call_to_gnu): Restore statement lost in translation.
18574 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
18576 * init.c: Use the Linux-specific section for the IA-64/Linux target.
18577 (__gnat_adjust_context_for_raise): Add conditional code so that the
18578 IA-64 is also supported.
18580 2005-11-03 James E Wilson <wilson@specifix.com>
18583 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
18584 TREE_OVERFLOW check.
18586 2005-09-21 Olivier Hainque <hainque@adacore.com>
18589 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
18590 as we create them to store a size in bits.
18592 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
18600 * utils2.c (build_return_expr): New helper function.
18601 * gigi.h (build_return_expr): Declare it.
18602 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
18603 of manually building the RETURN_EXPR tree.
18604 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
18605 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
18606 build_binary_op for the "target pointer" case. Use build_return_expr
18607 instead of manually building the RETURN_EXPR tree.
18609 2005-09-16 Laurent Guerby <laurent@guerby.net>
18612 * s-tpinop.ads: Make this unit Preelaborate.
18614 2005-09-16 Andreas Jaeger <aj@suse.de>
18616 * socket.c: Add string.h for memcpy.
18618 2005-09-05 Arnaud Charlet <charlet@adacore.com>
18620 * dec-io.ads, dec-io.adb: Removed, no longer used.
18622 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18624 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
18626 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18627 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
18628 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
18629 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
18630 dependent units are Preelaborate.
18631 (Initialize): Call Interrupt_Managemeent.Initialize and
18632 OS_Primitives.Initialize to ensure proper initialization of this unit.
18633 Remove use of System.Soft_Links
18634 Make this unit Preelaborate.
18636 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18637 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
18638 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
18639 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
18640 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
18641 s-tratas.ads, s-tasinf.ads: Minor reformatting.
18642 Add pragma Preelaborate, since these packages are suitable for this
18646 * s-traent-vms.ads, s-intman-dummy.adb,
18647 s-taprop-dummy.adb: Make this unit Preelaborate.
18649 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
18650 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
18651 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
18652 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
18653 s-intman-solaris.adb, s-intman-irix-athread.adb,
18654 s-intman-irix.adb: Mark this unit Preelaborate.
18655 (Initialize): New procedure.
18658 * s-taspri-linux.ads: Removed.
18660 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
18661 as done by other implementations (e.g. posix).
18663 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
18664 responsible for deferring abort.
18665 Mark this unit Preelaborate.
18667 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
18668 proper initialization of the tasking run-time.
18670 * s-tasdeb.ads: Mark this unit Preelaborate.
18671 (Known_Tasks): Add explicit default value to avoid elaboration code.
18673 * s-inmaop-vms.adb (Elaboration code): Add call to
18674 Interrupt_Management.Initialize since the elaboration code depends on
18675 proper initialization of this package.
18677 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
18678 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
18679 s-osprim-posix.adb: Make this unit Preelaborate.
18681 * a-calend.adb: Add call to OS_Primitives.Initialize
18683 * a-elchha.adb: Update use of Except.Id.Full_Name.
18684 Minor reformatting.
18685 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
18687 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
18688 Move with clauses outside Warnings Off now that dependent units are
18690 Use raise xxx with "..."; Ada 2005 form.
18692 * a-taside.ads, a-taside.adb:
18693 Remove some dependencies, to make it easier to make this unit truly
18695 Rewrite some code to be conformant with Preelaborate rules.
18697 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
18698 marked Preelaborate in the future.
18700 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
18701 these units Preelaborate.
18703 * s-exctab.adb: Update use of Except.Id.Full_Name.
18705 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
18706 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
18707 Set_Exc_Stack_Addr): Removed, no longer used.
18708 Remove reference to *Machine_State_Addr*, no longer needed.
18710 * s-stalib.ads: Mark this unit as Preelaborate[_05].
18711 (Exception_Data): Full_Name is now a System.Address so that this unit
18712 can be made Preelaborate.
18713 Clean up/simplify code thanks to Full_Name being a System.Address.
18714 Remove obsolete pragma Suppress (All_Checks), no longer needed.
18716 * s-taskin.ads, s-taskin.adb:
18717 Move with clauses outside Warnings Off now that dependent units are
18719 Make this unit Preelaborate.
18720 (Initialize): New proceduure, replace elaboration code and makes the
18721 set up of the tasking run-time cleaner.
18722 (Detect_Blocking): Now a function instead of a deferred boolean, to
18723 obey Preelaborate rules.
18725 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
18726 soft links, no longer used.
18728 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
18729 packages are suitable for this categorization.
18731 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
18732 since we compile run-time sources in Ada 2005 mode.
18733 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
18734 avoid having s-taprop*.adb depend on s-soflin and to avoid code
18736 Remove reference to *Machine_State_Addr*, no longer needed.
18738 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18740 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
18741 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18742 Remove reference to System.Exceptions.
18744 * s-mastop-x86.adb: Removed, no longer used.
18746 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
18748 * a-excach.adb: Minor reformatting.
18750 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
18751 instead fix new warnings that were hidden by this change.
18752 (AAA, ZZZ): Removed, replaced by...
18753 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
18754 are used instead of constants, to help make Ada.Exception truly
18756 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
18757 Raise_Storage_Error): File is now a System.Address, to simplify code.
18758 (Elab code): Removed, no longer used.
18759 (Null_Occurrence): Remove Warnings Off and make this construct
18761 Remove code related to front-end zero cost exception handling, since
18762 it is no longer used.
18763 Remove -gnatL/-gnatZ switches.
18765 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
18766 Update use of Except.Msg.
18768 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
18769 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
18770 to front-end zero cost exception handling, since it is no longer used.
18771 Remove -gnatL/-gnatZ switches.
18773 * lib-writ.ads: Minor reformatting
18776 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
18778 * Make-lang.in: Remove references to s-except.ads
18780 * s-except.ads: Removed, no longer used.
18782 * s-mastop.ads, s-mastop.adb:
18783 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18784 Remove reference to System.Exceptions.
18786 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
18787 switch-b.adb: Remove code related to front-end zero cost exception
18788 handling, since it is no longer used.
18789 Remove -gnatL/-gnatZ switches.
18791 2005-09-01 Robert Dewar <dewar@adacore.com>
18792 Gary Dismukes <dismukes@adacore.com>
18793 Javier Miranda <miranda@adacore.com>
18795 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
18796 type by valid test and generate warning.
18797 (Tagged_Membership): Generate call to the run-time
18798 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
18799 Change formal name Subtype_Mark to Result_Definition in several calls to
18800 Make_Function_Specification.
18801 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
18802 check for proper accessibility of the operand of a class-wide allocator.
18803 The check can be left out if checks are suppressed or if the expression
18804 has a specific tagged type whose level is known to be safe.
18806 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
18807 generates the run-time check associated with null-excluding entities.
18808 (Expand_N_Return_Statement): Add tests to determine if the accessibility
18809 check on the level of the return expression of a class-wide function
18810 can be elided. The check usually isn't needed if the expression has a
18811 specific type (unless it's a conversion or a formal parameter). Also
18812 add a test for whether accessibility checks are suppressed. Augment
18813 the comments to describe the conditions for performing the check.
18815 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
18816 Javier Miranda <miranda@adacore.com>
18817 Gary Dismukes <dismukes@adacore.com>
18818 Ed Schonberg <schonberg@adacore.com>
18820 * a-tags.adb (IW_Membership): Give support to
18821 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
18822 subprogram has been extended to look for the tag in the ancestors tag
18824 Update the structure of the GNAT Dispatch Table to reflect the
18825 additional two tables used in dispatching selects.
18826 Introduce appropriate array types and record components in
18827 Type_Specific_Data to reflect the two tables.
18828 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
18829 the TSD of a tag, indexed by position.
18830 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
18831 operation kind in the TSD of a tag, indexed by position.
18833 * a-tags.ads: Introduce an enumeration type to capture different
18834 primitive operation kinds. Define a constant reflecting the number of
18835 predefined primitive operations.
18836 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
18837 of an entry wrapper.
18838 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
18839 callable entity of a primitive operation.
18841 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
18842 primitive operations used in dispatching selects for limited
18843 interfaces, limited tagged, task and protected types what implement a
18845 (Freeze_Type): Generate the bodies of the primitive operations used in
18846 dispatching selects for limited tagged, task and protected types that
18847 implement a limited interface. Generate statements to populate the two
18848 auxiliary tables used for dispatching in select statements.
18849 (Freeze_Record_Type): Add call to initialize the dispatch table entries
18850 associated with predefined interface primitive operations.
18851 (Build_Dcheck_Function): Change Set_Subtype_Mark to
18852 Set_Result_Definition.
18853 (Build_Variant_Record_Equality): Change Subtype_Mark to
18855 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
18856 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
18857 (Build_Assignment): Simplify the code that adds the run-time-check.
18858 (Expand_N_Object_Declaration): Code cleanup.
18860 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
18861 entries when there is a protected type that implements a limited
18864 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
18865 common routines used in expansion of dispatching selects.
18866 (Add_Private_Declarations): Select the appropriate protection type when
18867 there is a protected type that implements a limited interface.
18868 (Build_Parameter_Block): Generate a wrapped parameter block.
18869 (Build_Protected_Subprogram_Body): Select the appropriate type for
18870 locking entries when there is a protected type that implements a
18872 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
18873 classified as entry wrappers.
18874 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
18875 asynchronous selects.
18876 (Expand_N_Conditional_Entry_Call): Add support for expansion of
18877 dispatching conditional selects.
18878 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
18879 protection when there is a protected type that implements limited
18881 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
18883 (Extract_Dispatching_Call): Extract the entity of the name of a
18884 dispatching call, the object parameter, actual parameters and
18885 corresponding formals.
18886 (Make_Initialize_Protection): Correct logic of protection initialization
18887 when there is a protected type that implements a limited interface.
18888 (Parameter_Block_Pack): Populate a wrapped parameter block with the
18889 values of actual parameters.
18890 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
18891 block and assign them to the original actual parameters.
18893 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
18894 (Build_Protected_Sub_Specification): Change the type and name of the
18895 last formal to account for the increased variety of protection modes.
18897 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
18898 entities. Used to save the value of the Is_Hidden attribute when the
18899 limited-view is installed.
18900 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
18901 the attribute of procedures classified as entry wrappers.
18902 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
18903 entity of a primitive wrapper.
18904 (Write_Entity_Flags): Output the name and value of the
18905 Is_Primitive_Wrapper attribute.
18906 (Write_Field27_Name): Output the name and entity of the field Wrapped_
18908 (Underlying_Type): If we have an incomplete entity that comes from
18909 the limited view then we return the Underlying_Type of its non-limited
18910 view if it is already available.
18911 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
18912 including operators.
18913 (Write_Field26_Name): Add entry for Overridden_Operation
18914 (Overridden_Operation): New attribute of functions and procedures.
18916 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
18917 predefined position in the dispatch table for the primitive operations
18918 used in dispatching selects.
18919 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
18920 predefined primitive operations and replace it with
18921 Default_Prim_Op_Count.
18922 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
18923 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
18924 the names of the generated primitive operations used in dispatching
18926 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
18927 case of abstract interface types. They will be inherit by the objects
18928 implementing the interface.
18929 (Make_DT): There is no need to inherit the dispatch table of the
18930 ancestor interface for the elaboration of abstract interface types.
18931 The dispatch table will be inherited by the object implementing the
18933 (Copy_Secondary_DTs): Add documentation.
18934 (Validate_Position): Improve this static check in case of
18935 aliased subprograms because aliased subprograms must have
18937 (Init_Predefined_Interface_Primitives): New subprogram that initializes
18938 the entries associated with predefined primitives of all the secondary
18940 (Build_Anonymous_Access_Type): Removed.
18941 (Expand_Interface_Actuals): With the previous cleanup there is no need
18942 to build an anonymous access type. This allows further cleanup in the
18943 code generated by the expander.
18944 (Expand_Interface_Conversion): If the actual is an access type then
18945 build an internal function to handle the displacement. If the actual
18946 is null this function returns null because no displacement is
18947 required; otherwise performs a type conversion that will be
18948 expanded in the code that returns the value of the displaced actual.
18949 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
18950 conversions that have no effect in the generated code because no
18951 displacement is required. Code cleanup; use local variables to
18952 avoid repeated calls to the subprogram directly_designated_type().
18954 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
18955 Classify the primitive operations used in dispatching selects as
18957 (Implements_Limited_Interface): Determine whether some type either
18958 directly implements a limited interface or extends a type that
18959 implements a limited interface.
18960 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
18961 (Expand_Subtype_From_Expr): Do not build actual subtype if the
18962 expression is limited.
18963 (Find_Interface_Tag): Add code to handle class-wide types and
18964 entities from the limited-view.
18966 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
18967 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
18968 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
18969 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
18972 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
18973 of procedure name or prefix that appears as a trigger in a triggering
18976 * uintp.ads: Introduce constants Uint_11 and Uint_13.
18978 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18980 * s-tataat.adb, a-tasatt.adb:
18981 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
18983 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
18984 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
18985 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
18988 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18989 Jose Ruiz <ruiz@adacore.com>
18991 * s-taprop-vxworks.adb:
18992 Move with clauses outside Warnings Off now that dependent units are
18994 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
18995 initialization of this unit.
18996 (Specific): Add new procedures Initialize and Delete so that this
18997 package can be used for VxWorks 5.x and 6.x
18998 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
18999 differences between VxWorks 5.x and 6.x
19000 Minor reformatting.
19001 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
19003 Use only Preelaborate-compatible constructs.
19005 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
19006 Primitives.Operations.
19007 (Delete, Initialize): New procedures.
19009 * s-osinte-vxworks.adb: Body used to handle differences between
19010 VxWorks 5.x and 6.x
19011 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
19013 * s-osinte-vxworks.ads: Minor reformatting.
19014 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
19015 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
19017 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
19018 between Vxworks 5 and 6.
19019 (taskLock, taskUnlock): Removeed, no longer used.
19021 * adaint.c: The wait.h header is not located in the sys directory on
19022 VxWorks when using RTPs.
19023 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
19025 (__gnat_dup): dup is available on Vxworks when using RTPs.
19026 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
19028 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
19030 * expect.c: The wait.h header is not located in the sys directory on
19031 VxWorks when using RTPs.
19033 2005-09-01 Thomas Quinot <quinot@adacore.com>
19035 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
19037 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
19039 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
19040 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19041 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
19042 g-soccon-freebsd.ads: Add new constants:
19044 SO_RCVTIMEO/SO_SNDTIMEO
19048 Move all target-specific file inclusions and macro definitions to
19049 gsocket.h, in order to ensure that any C code in socket.c will see a
19050 set of constants that is consistent with the contents of g-soccon.ads.
19052 * gsocket.h: Code imported from gen-soccon.c:
19053 Move all target-specific file inclusions and macro definitions to
19054 gsocket.h, in order to ensure that any C code in socket.c will see a set
19055 of constants that is consistent with the contents of g-soccon.ads.
19056 This change also makes gen-soccon self-contained (removing dependencies
19057 upon GCC internal headers).
19059 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
19061 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
19063 * socket.c: Minor reformatting.
19065 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19066 Thomas Quinot <quinot@adacore.com>
19068 * fname-sf.adb, mlib-tgt.ads,
19069 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
19070 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
19071 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
19072 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
19073 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
19074 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
19075 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
19076 makegpr.adb: Remove redundant use_clauses.
19078 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19080 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
19081 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
19082 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
19083 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
19084 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
19085 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
19086 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
19087 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
19088 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19089 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
19090 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
19091 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
19092 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
19093 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
19094 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
19095 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
19096 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19097 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
19098 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
19099 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
19100 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
19101 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
19102 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
19103 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
19104 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
19105 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
19106 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
19107 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
19108 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
19109 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
19110 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
19111 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
19112 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
19113 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
19114 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
19115 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
19116 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
19117 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
19118 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
19119 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
19120 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
19121 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
19122 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
19123 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
19124 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
19125 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
19126 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
19127 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
19128 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
19129 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
19130 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
19131 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
19132 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
19133 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
19134 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
19135 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
19136 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
19137 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
19138 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
19139 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
19140 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
19141 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
19142 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
19143 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
19144 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
19145 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
19146 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
19147 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
19148 and always use the no parameter form for consistency.
19150 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
19152 2005-09-01 Robert Dewar <dewar@adacore.com>
19154 * binde.adb: Minor reformatting
19155 (Find_Elab_Order): Output warning if -p used with static elab order
19157 2005-09-01 Robert Dewar <dewar@adacore.com>
19159 * checks.adb (Check_Needed): New procedure, deals with removing checks
19160 based on analysis of short-circuited forms. Also generates warnings for
19161 improper use of non-short-circuited forms.
19164 2005-09-01 Robert Dewar <dewar@adacore.com>
19166 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
19169 2005-09-01 Robert Dewar <dewar@adacore.com>
19171 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
19173 Implement new insertion char < (conditional warning)
19174 * errutil.adb, erroutc.adb: Implement new insertion char <
19175 (conditional warning).
19176 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
19177 (Error_Msg_Warn): New variable for < insertion char.
19178 * prj-nmsc.adb: Implement new errout insertion char < (conditional
19180 (Check_For_Source): Change value of Source_Id only after the current
19181 source has been dealt with.
19183 2005-09-01 Robert Dewar <dewar@adacore.com>
19184 Doug Rupp <rupp@adacore.com>
19186 * exp_attr.adb: Handle vax fpt for 'Valid attribute
19187 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
19188 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
19189 (Valid_D, Valid_F, Valid_G): New functions
19191 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19192 Hristian Kirtchev <kirtchev@adacore.com>
19193 Javier Miranda <miranda@adacore.com>
19195 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
19196 from object notation, the original node is unanalyzed and carries no
19197 semantic information, so that accessiblity checks must be performed on
19198 the type of the actual itself.
19199 (Expand_N_Subprogram_Declaration): Change last actual parameter for
19200 compatibility with Build_Protected_Sub_Specification.
19201 (Check_Overriding_Inherited_Interfaces): Add suport to handle
19202 overloaded primitives.
19203 (Register_Interface_DT_Entry): Use the new name of the formal
19204 the the calls to Expand_Interface_Thunk
19206 * exp_dbug.ads: Augment comments on encoding of protected types to
19207 include the generation of dispatching subprograms when the type
19208 implements at least one interface.
19210 * lib.ads: Extend information in Load_Stack to include whether a given
19211 load comes from a Limited_With_Clause.
19213 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
19214 whether a potential circularity is harmless, because it includes units
19215 loaded through a limited_with clause. Extends previous treatment which
19216 did not handle properly arbitrary combinations of limited and
19217 non-limited clauses.
19219 2005-09-01 Nicolas Setton <setton@adacore.com>
19221 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
19222 to be encoded as typ___XBLU_lowerbound__upperbound instead of
19223 typ___XB_lowerbound__upperbound.
19225 2005-09-01 Thomas Quinot <quinot@adacore.com>
19227 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
19228 dummy access formal for RACW/RAS TypeCode TSS.
19229 (Build_TypeCode_Call): Do not generate dummy null access actual for
19230 calls to the TypeCode TSS.
19232 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19234 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
19235 fully qualified name, to distinguish instances with the same local name.
19237 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
19240 2005-09-01 Robert Dewar <dewar@adacore.com>
19242 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
19245 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
19247 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
19248 (Free): New deallocation procedure for filter elements
19249 (Close): Deallocate any existing filter for the concerned connection
19251 2005-09-01 Laurent Pautet <pautet@adacore.com>
19253 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
19254 position set is provided, we compute one in order to reduce the maximum
19255 length of the keys. This computation first selects a character
19256 position between 1 and the minimum length of the keys in order to
19257 avoid reducing one of the keys to an empty string.
19258 (Initialize, Compute): When the ratio V to K is too low, the algorithm
19259 does not converge. The initialization procedure now comes with a
19260 maximum number of iterations such that when exceeded, an exception is
19261 raised in Compute. The user can initialize this ratio to another value
19263 Reformating and updated headers.
19265 2005-09-01 Javier Miranda <miranda@adacore.com>
19267 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
19268 that given an entity T creates and returns an Itype that duplicates the
19269 contents of T. The returned Itype has the null-exclusion
19270 attribute set to True, and its Etype attribute references T
19271 to keep the association between the two entities.
19272 Update copyright notice
19274 * sem_aggr.adb (Check_Can_Never_Be_Null,
19275 Aggregate_Constraint_Checks, Resolve_Aggregate,
19276 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
19278 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
19280 2005-09-01 Gary Dismukes <dismukes@adacore.com>
19281 Robert Dewar <dewar@adacore.com>
19282 Hristian Kirtchev <kirtchev@adacore.com>
19284 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
19287 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
19289 Call Set_Result_Definition instead of Set_Subtype_Mark.
19290 (P_Subprogram_Specification): Add parsing of anonymous access result
19291 plus null exclusions. Call Set_Result_Definition instead of
19294 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19295 (P_Access_Type_Definition): Add parsing for an anonymous access result
19296 subtype, plus parsing for null exclusions. Call Set_Result_Definition
19297 instead of Set_Subtype_Mark.
19299 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19300 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
19301 (Result_Definition): New function for N_Function_Specifications.
19302 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
19303 N_Function_Specification.
19304 (Set_Null_Exclusion_Present): Allow this flag for
19305 N_Function_Specification.
19306 (Set_Result_Definition): New procedure for N_Function_Specifications.
19307 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
19308 and N_Function_Specification.
19310 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
19311 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
19312 Add support for LIMITED NEW for Ada 2005 AI-419
19313 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
19314 syntax for anonymous access results.
19315 Replace Subtype_Mark field by Result_Definition in
19316 N_Function_Specification and N_Access_Definition specs.
19317 Add Null_Exclusion_Present to spec of N_Function_Specification.
19318 (Result_Definition): New function for N_Function_Specification and
19319 N_Access_Function_Definition.
19320 (Set_Result_Definition): New procedure for N_Function_Specification and
19321 N_Access_Function_Definition.
19323 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
19324 Result_Definition for cases of N_Access_Function_Definition and
19325 N_Function_Specification.
19326 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
19328 2005-09-01 Vincent Celier <celier@adacore.com>
19330 * lib-writ.adb: Update Copyright notice
19331 (Write_With_Lines): On platforms where file names are case-insensitive,
19332 record the file names in lower case.
19333 (Write_ALI): For D lines, on platforms where file names are
19334 case-insensitive, record the file names in lower case.
19336 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19337 Emmanuel Briot <briot@adacore.com>
19339 * lib-xref.adb (Output_Overridden_Op): Display information on
19340 overridden operation.
19342 * lib-xref.ads: Add documentation on overridden operations.
19344 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
19347 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
19348 overriding entity information.
19350 2005-09-01 Vincent Celier <celier@adacore.com>
19352 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
19353 including those that are inherited.
19355 2005-09-01 Robert Dewar <dewar@adacore.com>
19357 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
19359 * par-prag.adb: Implement new pragma Debug_Policy
19361 * sem_prag.adb Implement new pragma Debug_Policy
19362 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
19363 Component_Size attribute specification. Give warning for ignored pragma
19366 * snames.h, snames.ads, snames.adb: Introduce entries in
19367 Preset_Names for Name_Disp_Asynchronous_Select,
19368 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
19369 Name_Disp_Timed_Select.
19370 New pragma Debug_Policy
19372 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
19374 Switch -gnata also sets Debug_Pragmas_Enabled
19376 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
19377 handle an explicit -gnata when compiling predefined files.
19379 2005-09-01 Vincent Celier <celier@adacore.com>
19381 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
19382 directories of projects that have no Ada sources.
19384 2005-09-01 Robert Dewar <dewar@adacore.com>
19386 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
19387 (makes a difference for wide characters)
19389 * widechar.adb, widechar.ads:
19390 Add Wide_Char_Byte_Count feature to count chars vs bytes
19392 2005-09-01 Thomas Quinot <quinot@adacore.com>
19393 Ed Schonberg <schonberg@adacore.com>
19394 Robert Dewar <dewar@adacore.com>
19396 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
19397 'Address attribute reference with an overloaded prefix, use the
19398 location of the prefix (not the location of the attribute reference) as
19399 the error location.
19400 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
19401 a function renaming thereof, is a valid prefix for 'Size (where it is
19402 intepreted as a function call).
19403 (Statically_Denotes_Entity): New predicate to determine whether the
19404 prefix of an array attribute can be considered static.
19407 (Eval_Attr): Fix failure to evaluate Component_Size for
19408 unconstrained arrays (resulted in wrong value in packed case, since
19409 back end cannot handle this case)
19411 2005-09-01 Robert Dewar <dewar@adacore.com>
19413 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
19414 error msgs for most common cases.
19415 Use new errout insertion char < (conditional warning)
19417 2005-09-01 Javier Miranda <miranda@adacore.com>
19418 Ed Schonberg <schonberg@adacore.com>
19420 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
19421 become local to the whole package.
19422 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
19423 the package was already analyzed the new algorithm "replaces" the
19424 real entities by the shadow ones. This is required to ensure that
19425 the order of these entities in the homonym chains does not change;
19426 otherwise we can have undefined references at linking time because
19427 in case of conflicts the external name of the entities will have
19428 a suffix that depends on the order of the entities in the chain.
19429 (Remove_Limited_With_Clause): Complementary code that completes the
19430 new algorithm and replaces the shadow entities by the real ones.
19431 (Install_Limited_Withed_Unit): When unchaining entities before the
19432 installation of the shadow entities, only regular entities of the
19433 public part must be taken into account. This is required to
19434 keep this routine in synch with the work done by Remove_Limited_
19436 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
19437 even if unit is analyzed, because the analysis of the unit is
19438 idempotent in any case, and the limited view of the unit may have to
19439 be installed for proper visibility.
19440 (Expand_Limited_With_Clause): Even if the unit in the implicit
19441 with_clause has been analyzed already, a limited view of the package
19442 must be built for the current context, if it does not exist yet.
19444 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19445 Javier Miranda <miranda@adacore.com>
19446 Gary Dismukes <dismukes@adacore.com>
19448 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
19449 defining entity for the instance body, make a new defining identifier
19450 rather than copying the entity of the spec, to prevent accidental
19451 sharing of the entity list.
19452 (Check_Private_View): When exchanging views of private types, build the
19453 list of exchanged views as a stack, to ensure that on exit the exchanges
19454 are undone in the proper order.
19455 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
19456 Restore the compilation environment in case of instantiation_error.
19457 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
19458 for an anonymous access result.
19459 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
19460 (Formal_Entity): Handle properly the case of a formal package that
19461 denotes a generic package renaming.
19463 2005-09-01 Thomas Quinot <quinot@adacore.com>
19465 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
19466 clause if the array aggregate is surrounded by parentheses.
19468 2005-09-01 Cyrille Comar <comar@adacore.com>
19469 Gary Dismukes <dismukes@adacore.com>
19470 Ed Schonberg <schonberg@adacore.com>
19471 Javier Miranda <miranda@adacore.com>
19473 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
19475 to check if a type is Constrained in cases related to code generation
19476 (rather than semantic checking) since otherwise we do not generate
19477 similar code for mutable private types depending if their
19478 discriminants are visible or not.
19479 (Check_Abstract_Overriding): Do not complain about failure to override
19480 the primitive operations used in dispatching selects since they will
19481 always be overriden at the freeze point of the type.
19482 (Access_Definition): Separate out handling for resetting the scope
19483 of an anonymous access function result type. Retrieve the scope
19484 of the associated function rather than using Current_Scope, which
19485 does not have a consistent value (depends on whether we're in the
19486 middle of analyzing formal parameters). Add ??? comment about
19487 finding a cleaner way to handle the special cases of scope setting.
19488 (Process_Incomplete_Dependents): A protected operation is never a
19489 dispatching operation (only its wrapper may be).
19490 (Build_Derived_Record_Type): In case of tagged private types that
19491 implement interfaces add derivation of predefined primitive
19493 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
19494 by two parameters that are used in case of derivation from abstract
19495 interface types: No_Predefined_Prims is used to avoid the derivation
19496 of predefined primitives from the interface, and Predefined
19497 Prims_Only is used to complete the derivation predefined primitives
19498 in case of private tagged types implementing interfaces.
19499 Fix typo in comments
19500 (Find_Interface_In_Descendant): Protect the frontend against
19501 wrong code with large circularity chains.
19502 (Is_Private_Overriding): Add support for entities overriding interface
19503 subprograms. The test failed because Entities associated with overriden
19504 interface subprograms are always marked as hidden (and used to build
19505 the secondary dispatch table); in this case the overriden entity is
19506 available through the field abstract_interface_alias (cf. override_
19507 dispatching_operation)
19508 (Access_Definition): Set the scope of the type to Current_Scope for the
19509 case of a function with an anonymous access result type.
19510 (Access_Subprogram_Declaration): Handle creation of the type entity for
19511 an access-to-function type with an anonymous access result.
19512 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
19513 in handling for N_Access_Function_Definition.
19514 (Analyze_Subtype_Declaration): Modify the text of error message.
19515 (Derived_Type_Declaration): Modify the text of error message.
19516 (Process_Subtype): Modify the text of error message plus cleanup
19517 of one redundant error message.
19518 (Analyze_Component_Declaration): Code cleanup.
19519 (Analyze_Object_Declaration): Code cleanup.
19520 (Analyze_Subtype_Declaration): Propagate the null-exclusion
19521 attribute in case of access types. Code cleanup.
19522 (Array_Type_Declaration): Code cleanup.
19523 (Process_Discriminants): Create the new null-excluding itype
19524 if required. Code cleanup.
19525 (Process_Subtype): Create the new null-excluding itype if
19526 required. Code cleanup.
19527 (Build_Derived_Record_Type): Code cleanup to avoid calling
19528 twice the subprogram derive_subprograms in case of private
19529 types that implement interfaces. In this particular case the
19530 subprogram Complete_Subprograms_Derivation already does the
19531 job associated with the second call.
19533 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
19534 conversion to the full view when generating an operation for a
19535 discriminant whose type may currently be private.
19537 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19538 Javier Miranda <miranda@adacore.com>
19540 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
19541 V (Obj.F), the rewriting does not involve the indexed component, but
19542 only the selected component itself.
19543 Do not apply the transformation if the analyzed node is an actual of a
19544 call to another subprogram.
19545 (Complete_Object_Operation): Retain the entity of the
19546 dispatching operation in the selector of the rewritten node. The
19547 entity will be used in the expansion of dispatching selects.
19548 (Analyze_One_Call): Improve location of the error message associated
19550 (Analyze_Selected_Component): No need to resolve prefix when it is a
19551 function call, resolution is done when parent node is resolved, as
19553 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
19554 when attempting to resolve a call transformed from its object notation.
19555 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
19556 of the argument list for each interpretation of the operation.
19557 (Try_Object_Operation): The designated type of an access parameter may
19558 be an incomplete type obtained through a limited_with clause, in which
19559 case the primitive operations of the type are retrieved from its full
19561 (Analyze_Call): If this is an indirect call, and the return type of the
19562 access_to_subprogram is incomplete, use its full view if available.
19564 2005-09-01 Javier Miranda <miranda@adacore.com>
19565 Gary Dismukes <dismukes@adacore.com>
19567 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
19568 access types the null-exclusion and access-to-constant attributes must
19570 (Analyze_Return_Statement): When the result type is an anonymous access
19571 type, apply a conversion of the return expression to the access type
19572 to ensure that appropriate accessibility checks are performed.
19573 (Analyze_Return_Type): For the case of an anonymous access result type,
19574 generate the Itype and set Is_Local_Anonymous_Access on the type.
19575 Add ??? placeholder for check to disallow returning a limited object
19576 in Ada 2005 unless it's an aggregate or a result of a function call.
19577 Change calls from Subtype_Mark to Result_Definition.
19578 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
19579 Result_Definition in call to Make_Function_Specification.
19580 (Build_Body_To_Inline): Change Set_Subtype_Mark to
19581 Set_Result_Definition.
19582 (Make_Inequality_Operator): Change formal Subtype_Mark to
19583 Result_Definition in call to Make_Function_Specification.
19584 (Process_Formals): Create the new null-excluding itype if required.
19585 (New_Overloaded_Entity): For an entity overriding an interface primitive
19586 check if the entity also covers other abstract subprograms in the same
19587 scope. This is required to handle the general case, that is, overriding
19588 other interface primitives and overriding abstract subprograms inherited
19589 from some abstract ancestor type.
19590 (New_Overloaded_Entity): For an overriding entity that comes from
19591 source, note the operation that it overrides.
19592 (Check_Conformance, Type_Conformant): Addition of one new formal
19593 to skip controlling formals in the analysis. This is used to
19594 handle overloading of abstract interfaces.
19595 (Base_Types_Match): Add missing case for types imported from
19596 limited-with clauses
19597 (New_Overloaded_Entity): Add barrier to protect the use of
19598 the "alias" attribute.
19600 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19602 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
19603 verify that the procedure and the entry are mode conformant.
19604 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
19605 as a different operator, which is often a cut-and-paste error.
19607 2005-09-01 Javier Miranda <miranda@adacore.com>
19608 Ed Schonberg <schonberg@adacore.com>
19610 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
19611 used in controlling parameters exclude null because it is necessary to
19612 read the tag to dispatch, and null has no tag.
19613 (Override_Dispatching_Operation): If the previous operation is inherited
19614 from an interface, it becomes hidden and does not participate in later
19617 2005-09-01 Javier Miranda <miranda@adacore.com>
19618 Ed Schonberg <schonberg@adacore.com>
19619 Gary Dismukes <dismukes@adacore.com>
19621 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
19622 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
19623 the expander will generate the corresponding run-time check to evaluate
19625 (Resolve_Call): Check for legal type of procedure name or prefix that
19626 appears as a trigger in a triggering alternative.
19627 (Valid_Conversion): If expression is ambiguous and the context involves
19628 an extension of System, remove System.Address interpretations.
19629 (Resolve_Qualified_Expression): Reject the case of a specific-type
19630 qualification applied to a class-wide argument. Enhance comment
19631 to explain checking of Original_Node.
19632 (Resolve_Type_Conversion): The location of the error message was not
19633 general enough to handle the general case and hence it has been removed.
19634 In addition, this patch improves the text of the message.
19635 (Resolve_Type_Conversion): Add missing support for access to interface
19637 (Resolve_Type_Conversion): If the target is a class-wide interface type,
19638 do not expand if the expression is the actual in a call, because proper
19639 expansion will take place when the call itself is expanded.
19640 (Resolve_Allocator): If the context is an unchecked conversion, the
19641 allocator inherits its storage pool, if any, from the target type of
19644 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19645 Javier Miranda <miranda@adacore.com>
19647 * sem_type.adb (Add_One_Interp): If a candidate operation is an
19648 inherited interface operation that has an implementation, use the
19649 implementation to avoid spurious ambiguities.
19650 (Interface_Present_In_Ancestor): In case of concurrent types we can't
19651 use the Corresponding_Record_Typ attribute to look for the interface
19652 because it is set by the expander (and hence it is not always
19653 available). For this reason we traverse the list of interfaces
19654 (available in the parent of the concurrent type).
19655 (Interface_Present_In_Ancestor): Handle entities from the limited view
19657 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19659 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
19660 from the list of required components.
19661 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
19662 primitive procedure of a limited interface with a controlling first
19664 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
19666 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
19667 capture if it is generated in the second operand of a short-circuit
19669 Do not capture values for variables with address clauses.
19670 (Is_Object_Reference): Treat a function call as an object reference only
19671 if its type is not Standard_Void_Type.
19673 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19675 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
19676 to a variable that is statically known to be constant.
19678 2005-09-01 Geert Bosch <bosch@adacore.com>
19679 Robert Dewar <dewar@adacore.com>
19681 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
19682 (VAXGF_Safe_First): Idem.
19684 2005-09-01 Robert Dewar <dewar@adacore.com>
19685 Arnaud Charlet <charlet@adacore.com>
19687 * g-dirope.ads: Minor reformatting
19688 Document that bounds of result of Base_Name match the input index
19690 Add documentation on environment variable syntax for Expand_Path
19692 * gnat_ugn.texi: Update documentation to include mention of -m switches
19693 Document new treatment of wide characters in max line length
19695 Remove -gnatL/-gnatZ switches, no longer used.
19696 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
19699 * gnat_rm.texi: Add doc for two argument form of pragma
19700 Float_Representation.
19701 Add documentation for pragma No_Strict_Aliasing
19702 Add note that explicit component clause overrides pragma Pack.
19703 Add documentation of pragma Debug_Policy
19705 2005-09-01 Matthew Heaney <heaney@adacore.com>
19707 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
19708 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
19709 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
19710 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
19711 draft (Draft 13, August 2005) of Ada Amendment 1.
19713 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19715 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
19716 Note that the platform-specific version of g-soccon.ads for VMS is now
19717 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
19718 really is a package spec).
19719 Replace s-taspri-linux.ads by s-taspri-posix.ads
19720 Remove references to s-mastop-x86.adb
19722 * system-vxworks-xscale.ads: Removed, no longer used.
19723 * s-vxwork-xscale.ads: Removed, no longer used.
19725 2005-09-01 Robert Dewar <dewar@adacore.com>
19727 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
19728 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
19729 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
19730 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
19731 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
19732 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
19733 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19734 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
19735 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
19736 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
19737 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
19738 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
19739 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
19740 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
19741 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
19742 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
19743 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
19744 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
19745 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
19746 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
19747 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
19749 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19753 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
19755 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19756 Doug Rupp <rupp@adacore.com>
19758 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
19760 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
19761 this code in the GNAT run-time.
19763 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
19766 * init.c (__gnat_error_handler [many]): Mark "msg" as const
19767 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
19769 (__gnat_inside_elab_final_code): Moved here from
19770 Standard_Library and only defined for the compiler.
19771 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
19772 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
19773 using RTPs because directly vectored Interrupt routines are not
19774 supported on this configuration.
19775 (getpid): Do not redefine this function on VxWorks when using RTPs
19776 because this primitive is well supported by the RTP libraries.
19777 (copy_msg): Correct the code that checks for buffer overflow.
19778 Discovered during code reading.
19780 2005-08-29 Olivier Hainque <hainque@adacore.com>
19782 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
19783 a library level mutable variable with an initializer, tell
19784 build_allocator to ignore the initializer's size. It may not be large
19785 enough for all the values that might be assigned to the variable later
19788 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19789 Eric Botcazou <ebotcazou@adacore.com>
19791 * trans.c: Protect < in error msg with quote
19792 Replace GCC_ZCX by Back_End_Exceptions.
19793 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
19794 has been sufficiently aligned in the record.
19796 2005-08-15 James E. Wilson <wilson@specifix.com>
19798 * system-linux-alpha.ads: Change ia64 to alpha.
19800 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
19802 * decl.c, utils.c: Fix comment typos.
19804 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
19806 * decl.c, init.c, initialize.c: Fix comment typos.
19808 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
19810 Make CONSTRUCTOR use VEC to store initializers.
19811 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
19813 * trans.c (extract_values): Likewise.
19814 * utils.c (convert, remove_conversions): Likewise.
19815 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
19816 gnat_build_constructor): Likewise.
19818 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
19820 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
19822 (compare_field_bitpos): Likewise.
19824 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
19826 * utils.c (create_var_decl): Only set DECL_COMMON on
19827 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
19828 VAR_OR_FUNCTION_DECL_P.
19830 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
19832 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
19835 2005-07-07 Pascal Obry <obry@adacore.com>
19837 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
19838 returned type on Windows.
19840 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
19843 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
19844 exception in this case.
19845 Simplify the code as "Image (Image'Range)" = "Image".
19847 2005-07-07 Vincent Celier <celier@adacore.com>
19849 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
19850 the destructor/constructor attributes for <lib>final/<lib>init.
19852 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
19854 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
19856 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
19857 type if the parameter is not passed by copy but reference by default.
19859 2005-07-07 Javier Miranda <miranda@adacore.com>
19861 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
19862 Reimplementation of the support for abstract interface types in order
19863 to leave the code more clear and easy to maintain.
19865 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
19866 abstract interface types in order to leave the code clearer and easier
19869 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
19870 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
19871 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
19872 appropriate entry of the secondary dispatch table.
19873 (Make_DT): Add code to inherit the secondary dispatch tables of
19876 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
19877 implementing both functionalities by means of a common routine, each
19878 routine has its own code.
19880 2005-07-07 Javier Miranda <miranda@adacore.com>
19882 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
19884 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
19887 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19890 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
19891 use of tag incomplete types.
19893 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
19894 give support to tagged incomplete types.
19896 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
19897 expression is a discriminant reference and its type is private, as can
19898 happen within a stream operation for a mutable record, use the full
19899 view of the type to resolve the case alternatives.
19900 (Analyze_Assignment): Check wrong dereference of incomplete types.
19902 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
19905 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
19908 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
19909 N_Incomplete_Type_Declaration nodes.
19911 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
19912 Tag_Present to give support to tagged incomplete types:
19914 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19917 2005-07-07 Olivier Hainque <hainque@adacore.com>
19920 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
19921 definitions for the Unwind wrappers in the compiler case.
19923 2005-07-07 Ed Schonberg <schonberg@adacore.com>
19924 Javier Miranda <miranda@adacore.com>
19926 * par-load.adb (Load): If a child unit is loaded through a limited_with
19927 clause, each parent must be loaded as a limited unit as well.
19929 * sem_ch10.adb (Previous_Withed_Unit): Better name for
19930 Check_Withed_Unit. Return true if there is a previous with_clause for
19931 this unit, whether limited or not.
19932 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
19934 (Is_Visible_Through_Renamings): New local subprogram of install_limited
19935 _withed_unit that checks if some package installed through normal with
19936 clauses has a renaming declaration of package whose limited-view is
19937 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
19938 of the current Draft document for Ada 2005.
19939 (Analyze_Context): Complete the list of compilation units that
19940 are allowed to contain limited-with clauses. It also contains
19941 checks that were previously done by Install_Limited_Context_Clauses.
19942 This makes the code more clear and easy to maintain.
19943 (Expand_Limited_With_Clause) It is now a local subprogram of
19944 Install_Limited_Context_Clauses, and contains the code that adds
19945 the implicit limited-with clauses for parents of child units.
19946 This functionality was prevously done by Analyze_Context.
19948 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
19951 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
19952 been erroneously named in a limited-with clause of its own context.
19953 In this case the error has been previously notified by Analyze_Context.
19955 2005-07-07 Ed Schonberg <schonberg@adacore.com>
19957 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
19958 generic package that contains local declarations with the same name.
19959 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
19961 2005-07-07 Bernard Banner <banner@adacore.com>
19963 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
19964 ia64 platform only on platforms that you the GCC unwind library
19965 rather than the system unwind library.
19967 2005-07-07 Thomas Quinot <quinot@adacore.com>
19969 * expect.c: Minor reformatting
19971 2005-07-07 Sergey Rybin <rybin@adacore.com>
19973 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
19976 * gnat_ugn.texi: Add description for new gnatpp option
19979 2005-07-04 Thomas Quinot <quinot@adacore.com>
19981 * g-expect-vms.adb, g-expect.ads, g-expect.adb
19982 (Get_Command_Output): New subprogram to launch a process and get its
19983 standard output as a string.
19985 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
19986 Olivier Hainque <hainque@adacore.com>
19988 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
19989 fetch a code-range descriptor associated with the machine state. On
19990 failure set the machine state's PC to 0; on success, pass the
19991 descriptor to exc_virtual_unwind.
19993 * init.c (Tru64 section): New function __gnat_set_code_loc.
19995 2005-07-04 Vincent Celier <celier@adacore.com>
19997 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19998 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19999 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
20000 Remove all auto-initialization code, as this is now done through the
20001 constructor mechanism.
20003 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
20004 __gnat_sals_init_using_constructors): New functions.
20006 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
20007 Linker_Constructor and Linker_Destructor when switch -a is used.
20009 * bindusg.adb: Add line for new switch -a
20011 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
20012 (Gnatbind): When switch -a is used, check if it is allowed
20014 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
20016 2005-07-04 Joel Brobecker <brobecker@adacore.com>
20018 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
20019 This prevents us from hitting a limitation during the debug info
20020 generation when using stabs.
20021 (Prims_Ptr): Likewise.
20023 2005-07-04 Gary Dismukes <dismukes@adacore.com>
20024 Ed Schonberg <schonberg@adacore.com>
20025 Javier Miranda <miranda@adacore.com>
20027 * checks.adb (Null_Exclusion_Static_Checks): In the case of
20028 N_Object_Declaration, only perform the checks if the Object_Definition
20029 is not an Access_Definition.
20031 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
20032 where the parent of an the access definition is an N_Object_Declaration
20033 when determining the Associated_Node_For_Itype and scope of an
20034 anonymous access-to-subprogram type.
20036 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
20037 Corresponding_Spec on the body created for a null procedure. Add ???
20038 comment. Remove New_Copy_Tree call on body argument to
20039 Set_Body_To_Inline.
20041 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
20042 discriminants, use the type of the actual as well, because the
20043 discriminants may be read by the called subprogram.
20045 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
20046 access type we do not need to handle non-limited views.
20047 (Build_Derived_Record_Type): Additional check to check that in case of
20048 private types, interfaces are only allowed in private extensions.
20050 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
20052 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
20053 <Pragma_Linker_Destructor>: Likewise.
20055 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
20056 Pragma_Linker_Destructor.
20058 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
20059 ATTR_LINK_DESTRUCTOR.
20060 (static_ctors, static_dtors): New variables.
20062 * misc.c (gnat_expand_body): Output current function as constructor
20063 and destructor if requested.
20065 * par-prag.adb: Add processing for pragma Linker_Constructor and
20068 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
20069 extracted from Check_Interrupt_Or_Attach_Handler.
20070 (Check_Interrupt_Or_Attach_Handler): Invoke it.
20071 Implement pragma Linker_Constructor and Linker_Destructor with the
20072 help of Find_Unique_Parameterless_Procedure.
20073 Replace Name_Alias with Name_Target for pragma Linker_Alias.
20075 * snames.h, snames.ads, snames.adb:
20076 Add Name_Linker_Constructor and Name_Linker_Destructor.
20077 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
20078 * snames.adb: Remove Name_Alias.
20080 * trans.c: Include cgraph.h.
20081 (build_global_cdtor): New function.
20082 (Compilation_Unit_to_gnu): Build global constructor and destructor if
20084 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
20086 (addressable_p) <COMPONENT_REF>: Unconditionally test
20087 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
20089 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
20090 variable if it is external.
20092 (static_ctors, static_dtors): New global variables.
20093 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
20094 <ATTR_LINK_DESTRUCTOR>: Likewise.
20095 (end_subprog_body): Chain function as constructor and destructor
20098 * exp_util.adb (Force_Evaluation): Unconditionally invoke
20099 Remove_Side_Effects with Variable_Ref set to true.
20100 (Remove_Side_Effects): Handle scalar types first. Use a renaming
20101 for non-scalar types even if Variable_Ref is true and for class-wide
20104 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20106 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
20107 to prevent spurious warnings.
20109 2005-07-04 Thomas Quinot <quinot@adacore.com>
20111 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
20112 Itypes. Itypes are really unexpected there.
20113 (Build_TypeCode_Function): Generalise special processing for Itypes to
20114 handle the case of numeric implicit base types as well as enumerated
20117 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20119 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
20120 controlled, indicate the expected type of the dereference that is
20121 created for the call to Deep_Finalize, to prevent spurious errors when
20122 the designated type is private and completed with a derivation from
20123 another private type.
20125 2005-07-04 Vincent Celier <celier@adacore.com>
20127 * make.adb (Change_To_Object_Directory): When unable to change the
20128 current dir to the object directory, output the full path of the
20131 2005-07-04 Matthew Gingell <gingell@adacore.com>
20133 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
20135 * indepsw-linux.adb: Replace by...
20137 * indepsw-gnu.adb: ...this new file
20139 2005-07-04 Vincent Celier <celier@adacore.com>
20141 * mlib-prj.adb (Auto_Initialize): New constant String
20142 (SALs_Use_Constructors): New Boolean function
20143 (Build_Library): Call gnatbind with Auto_Initialize switch when
20144 SALs_Use_Constructors returns True.
20146 * mlib-tgt.ads: Minor reformatting
20148 * mlib-utl.ads: Minor reformatting
20150 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
20152 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20154 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
20155 single protected declarations can have an interface list.
20156 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
20157 with seriously malformed entry declarations, and lead to compilation
20158 abandoned messages.
20160 2005-07-04 Javier Miranda <miranda@adacore.com>
20162 * par-load.adb: Load the context items in two rounds.
20164 2005-07-04 Robert Dewar <dewar@adacore.com>
20166 * scng.adb: Do not consider Mod used as an attribute to be a keyword
20168 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20169 Javier Miranda <miranda@adacore.com>
20171 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
20172 type extension needs a limited view.
20173 Remove previous restriction on private types available through the
20174 limited-view (only tagged private types were previously allowed).
20175 (Install_Withed_Unit): In the code that implements the
20176 legality rule given in AI-377, exclude a child unit with the name
20177 Standard, because it is a homonym of the Standard environment package.
20179 2005-07-04 Thomas Quinot <quinot@adacore.com>
20181 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
20182 overloaded function call, carry interpretations from the original tree
20185 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20187 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
20188 types check whether some designated type is a limited view, and use
20189 the non-limited view if available.
20191 2005-07-04 Gary Dismukes <dismukes@adacore.com>
20193 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
20194 constraint of full view of a private view T1 if present, when T2 is a
20195 discriminated full view.
20197 2005-07-04 Thomas Quinot <quinot@adacore.com>
20199 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
20200 actual that is a view conversion of a bit packed array reference.
20202 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20204 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
20205 present before checking whether an interface type covers a synchronized
20208 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20210 * sem_util.adb (Is_Object_Reference): An indexed or selected component
20211 whose prefix is an implicit dereference is an object reference. Removes
20212 spurious errors when compiling with -gnatc.
20214 2005-07-04 Robert Dewar <dewar@adacore.com>
20217 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
20219 2005-07-04 Matthew Gingell <gingell@adacore.com>
20221 * tracebak.c: Enable tracebacks on ia64 platforms
20223 2005-07-04 Vincent Celier <celier@adacore.com>
20225 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
20226 the GNAT BIND command, as gnatbind accepts multiples ALI files with
20227 the -L or -n switches.
20229 2005-07-04 Vincent Celier <celier@adacore.com>
20231 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
20232 correctly computed and the main project data is not modified while
20234 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
20235 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
20236 c++linker as this does not work on some platforms.
20238 2005-07-04 Matthew Heaney <heaney@adacore.com>
20240 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
20242 * a-coinve.adb: Perform constraint checks explicitly.
20244 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20245 Thomas Quinot <quinot@adacore.com>
20247 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
20248 new target gen-soccon.
20250 2005-07-04 Robert Dewar <dewar@adacore.com>
20252 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
20254 2005-07-04 Thomas Quinot <quinot@adacore.com>
20256 * g-socket.ads (Check_Selector): Minor rewording of comment.
20258 2005-07-04 Vincent Celier <celier@adacore.com>
20260 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
20262 2005-07-04 Thomas Quinot <quinot@adacore.com>
20264 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
20266 2005-07-04 Sergey Rybin <rybin@adacore.com>
20268 * gnat_ugn.texi: Add description of --eol gnatpp option
20270 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
20271 Thomas Quinot <quinot@adacore.com>
20273 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
20274 if the user wants all calls of a subprogram to be flagged,
20275 independently of whether they are made from within the same unit or
20277 Mention restriction for pragma Linker_Alias on some platforms.
20278 Document pragma Linker_Constructor and Linker_Destructor.
20279 Rewrite documentation of Weak_External, Linker_Section and
20280 Linker_Alias pragmas.
20282 2005-07-04 Arnaud Charlet <charlet@adacore.com>
20284 * s-stausa.ads, s-stausa.adb: New files.
20286 2005-06-30 Kelley Cook
20288 * all files: Update FSF address in copyright headers.
20289 * gen-soccon.co (main): Output new FSF address in generated files.
20291 2005-06-28 Paul Brook <paul@codesourcery.com>
20293 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
20295 2005-06-14 Olivier Hainque <hainque@adacore.com>
20296 Eric Botcazou <ebotcazou@adacore.com>
20298 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
20299 exc_unwind, now that we are generating proper .debug_frame output for
20302 * tracebak.c: Remove the mips-irix section, as we are now using the
20303 s-mastop based unwinder again.
20304 Under SPARC/Solaris, take into account the stack bias to compute the
20305 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
20308 2005-06-14 Doug Rupp <rupp@adacore.com>
20310 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
20312 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
20314 2005-06-14 Pascal Obry <obry@adacore.com>
20316 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
20317 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
20318 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
20321 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
20322 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
20323 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
20324 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20325 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
20326 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
20327 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
20328 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
20329 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
20330 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
20331 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
20332 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
20333 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
20334 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
20335 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
20336 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
20337 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
20338 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
20339 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
20340 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
20341 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
20342 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
20343 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
20344 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
20345 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
20346 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
20347 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
20348 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
20349 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
20350 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
20351 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20352 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
20353 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
20354 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
20355 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
20356 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
20357 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20358 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
20359 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
20360 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20361 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
20362 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
20363 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
20364 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
20365 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
20366 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
20367 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20368 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
20369 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
20370 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
20371 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20372 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
20373 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
20374 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
20375 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
20376 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20377 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
20378 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
20379 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20380 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
20381 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
20382 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20383 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
20384 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
20385 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
20386 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
20387 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
20388 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
20389 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
20390 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20391 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
20392 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
20393 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
20394 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20395 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
20396 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
20397 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
20398 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
20399 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
20400 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20401 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
20402 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
20403 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
20404 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20405 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
20406 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
20407 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
20408 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20409 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
20410 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
20411 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
20412 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20413 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
20414 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
20415 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
20416 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20417 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
20418 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
20419 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
20420 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20421 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
20422 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
20423 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
20424 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20425 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
20426 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
20427 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
20428 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
20429 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20430 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
20431 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20432 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
20433 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20434 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
20435 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
20436 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
20437 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
20438 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20439 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
20440 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
20441 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
20442 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
20443 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
20444 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
20445 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
20446 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
20447 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
20448 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
20449 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
20450 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
20451 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
20452 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
20453 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
20455 2005-06-14 Jose Ruiz <ruiz@adacore.com>
20456 Arnaud Charlet <charlet@adacore.com>
20458 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
20459 longer protected objects. They have been replaced by lower-level
20460 suspension objects made up by a mutex and a condition variable (or
20461 their equivalent given a particular OS) plus some internal data to
20462 reflect the state of the suspension object.
20463 (Initialize, Finalize): Add this initialization procedure for
20464 Suspension_Object, which is a controlled type.
20465 (Finalize): Add the finalization procedure for Suspension_Object,
20466 which is a controlled type.
20468 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
20469 Ada.Synchronous_Task_Control because there is no longer a need for a
20470 VxWorks specific version of this package. Target dependencies
20471 has been moved to System.Task_Primitives.Operations.
20473 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
20475 (InitializeCriticalSection, EnterCriticalSection,
20476 LeaveCriticalSection, DeleteCriticalSection): Replace the type
20477 pCriticalSection by an anonymous access type so that we avoid problems
20478 of accessibility to local objects.
20480 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
20481 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20482 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
20483 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
20484 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
20485 set the environment task mask here.
20486 (Current_State): Add this function that returns the state of the
20488 (Set_False): Add this procedure that sets the state of the suspension
20490 (Set_True): Add this procedure that sets the state of the suspension
20491 object to True, releasing the task that was suspended, if any.
20492 (Suspend_Until_True): Add this procedure that blocks the calling task
20493 until the state of the object is True. Program_Error is raised if
20494 another task is already waiting on that suspension object.
20495 (Initialize): Add this procedure for initializing the suspension
20496 object. It initializes the mutex and the condition variable which are
20497 used for synchronization and queuing, and it sets the internal state
20499 (Finalize): Add this procedure for finalizing the suspension object,
20500 destroying the mutex and the condition variable.
20502 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20503 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
20504 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
20505 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
20506 which provides a low-level abstraction (using operating system
20507 primitives) for Ada.Synchronous_Task_Control.
20508 This object is made up by a mutex (for ensuring mutual exclusion), a
20509 condition variable (for queuing threads until the condition is
20510 signaled), a Boolean (State) indicating whether the object is open,
20511 and a Boolean (Waiting) reflecting whether there is a task already
20512 suspended on this object.
20514 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
20515 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
20516 s-intman-vms.ads, s-intman-mingw.adb,
20517 (Initialize_Interrupts): Removed, no longer used.
20519 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
20520 (Setup_Interrupt_Mask): New procedure.
20522 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
20524 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
20526 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
20527 this is no longer done in the body of s-taprop
20528 (Server_Task): Explicitely test for Pending_Action in case
20529 System.Parameters.No_Abort is True.
20531 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
20532 is no longer done in the body of s-taprop
20534 2005-06-14 Robert Dewar <dewar@adacore.com>
20536 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20537 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20538 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20539 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20540 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20541 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
20542 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
20543 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20544 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
20545 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
20546 system-linux-hppa.ads, system-vms_64.ads,
20547 system-vxworks-alpha.ads: Minor comment update for
20548 AI-362 (unit is Pure).
20550 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
20551 Add pragma Pure_05 for AI-362
20552 Make remaining conversion functions obsolescent in Ada 95
20554 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20555 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
20556 Add entries for a-wichun and a-zchuni
20557 Add a-widcha a-zchara for AI-395
20558 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
20560 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20561 Add entries for a-wichun.o and a-zchuni.o
20562 Entries for a-widcha.o and a-zchara.o
20563 Add entry for a-chacon.o
20565 * a-ztenau.adb: Add with of Ada.Characters.Conversions
20567 * a-chacon.ads, a-chacon.adb: New files.
20569 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
20570 categorization violations.
20572 * a-strmap.ads: Add pragma Pure_05 for AI-362
20573 * a-strmap.ads: Add note on implicit categorization for AI-362
20575 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
20577 * par-prag.adb: Dummy entry for pragma Persistent_BSS
20578 Set Ada_Version_Explicit, for implementation of AI-362
20579 Add processing for pragma Pure_05 and Preelaborate_05
20580 Add entry for Assertion_Policy pragma
20582 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
20583 when needed for proper processing of categorization stuff
20586 For several cases, make errors in preealborate units warnings,
20587 instead of errors, if GNAT_Mode is set. For AI-362.
20589 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
20590 preelaborate unit is now warning if in GNAT mode
20592 * s-stoele.ads: Document AI-362 for pragma preelaborate
20594 2005-06-14 Doug Rupp <rupp@adacore.com>
20596 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
20597 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
20598 Default_Exception_Msg_Max_Length: new parameter.
20600 * a-except.ads: (Exception_Msg_Max_Length): Set to
20601 System.Parameters.Default_Exception_Msg_Max_Length
20602 Add pragma Preelaborate_05 for AI-362
20603 Add warnings off to allow categorization violations for AI-362
20605 2005-06-14 Vincent Celier <celier@adacore.com>
20607 * gnatsym.adb: Adapt to modification of package Symbols: procedure
20608 Process is now in package Processing.
20610 * symbols.ads, symbols.adb:
20611 (Processing): New package, containing procedure Process
20613 * symbols-vms-alpha.adb:
20614 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
20616 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
20617 symbols-processing-vms-ia64.adb: New files.
20619 2005-06-14 Pascal Obry <obry@adacore.com>
20621 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
20622 implementation. This new version generates the proper DllMain routine
20623 to initialize the SAL. The DllMain is generated in Ada and compiled
20624 before being added as option to the library build command.
20626 2005-06-14 Doug Rupp <rupp@adacore.com>
20627 Pascal Obry <obry@adacore.com>
20629 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
20630 call to decc$translate_vms.
20631 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
20632 need to remove those quotes before catenating the filename.
20633 (__gnat_locate_exec_on_path): improvements to the Win32 section:
20634 * avoid allocating the memory twice for better efficiency;
20635 * allocate 32K buffer for environment expansion as suggested by MSDN;
20636 * prepend ".;" to the path so that current directory is searched too.
20638 2005-06-14 Robert Dewar <dewar@adacore.com>
20640 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
20641 instead of raising CE (AI-241)
20642 Add warnings off to allow categorization violations for AI-362
20644 2005-06-14 Robert Dewar <dewar@adacore.com>
20646 * ali-util.adb, gnatbind.adb: Remove references to
20647 Force_RM_Elaboration_Order.
20649 * switch-b.adb: Remove recognition of -f switch
20651 2005-06-14 Pascal Obry <obry@adacore.com>
20653 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
20654 implementation which is slightly more efficient.
20656 2005-06-14 Gary Dismukes <dismukes@adacore.com>
20657 Javier Miranda <miranda@adacore.com>
20658 Ed Schonberg <schonberg@adacore.com>
20659 Hristian Kirtchev <kirtchev@adacore.com>
20661 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
20662 allocator's designated type is a class-wide type, and compiling for
20663 Ada 2005, emit a run-time check that the accessibility level of the
20664 type given in the allocator's expression is not deeper than the level
20665 of the allocator's access type.
20667 (Tagged_Membership): Modified to gives support to abstract interface
20670 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
20672 (Descendant_Tag): New predefined function
20673 (Is_Descendant_At_Same_Level): New predefined function
20674 (Get_Access_Level): New private function
20675 (Set_Access_Level): New private procedure
20676 (IW_Membership): New function. Given the tag of an object and the tag
20677 associated with an interface, evaluate if the object implements the
20679 (Register_Interface_Tag): New procedure used to initialize the table of
20680 interfaces used by the IW_Membership function.
20681 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
20682 of the dispatch table.
20683 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
20684 table of interfaces of the parent.
20685 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
20686 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
20687 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
20688 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
20689 Ada 2005 semantics for the new predefined function.
20691 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
20692 call to Descendant_Tag rather than Internal_Tag.
20693 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
20694 the accessibility level of the attribute's Item parameter is not deeper
20695 than the level of the attribute's prefix type. Tag_Error is raised if
20696 the check fails. The check is only emitted for Ada_05.
20697 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
20698 requested stream attribute, use it.
20699 (Expand_N_Attribute_Reference): If the designated type is an interface
20700 then rewrite the referenced object as a conversion to force the
20701 displacement of the pointer to the secondary dispatch table.
20702 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
20703 is a dereference of an object with a constrained partial view.
20705 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
20706 type is a class-wide type, emit a run-time check that the accessibility
20707 level of the returned object is not deeper than the level of the
20708 function's master (only when compiling for Ada 2005).
20710 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
20711 Action_Nb_Arg): Add entries for new Get_Access_Level and
20712 Set_Access_Level routines in these tables.
20713 (Make_DT): Generate a call to set the accessibility level of the
20714 tagged type in its TSD.
20715 (Make_DT): Code cleanup. The functionality of generating all the
20716 secondary dispatch tables has been moved to freeze_record_type.
20717 (Make_Abstract_Interface_DT): Minor code cleanup.
20718 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
20719 this subprogram implements a new algorithm that provides the
20720 same functionality and it is more clear in case of primitives
20721 associated with abstract interfaces.
20722 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
20723 clean up, the functionality of this subprogram is now provided
20724 by Set_All_DT_Position.
20725 (Write_DT): New subprogram: a debugging procedure designed to be called
20726 within gdb to display the dispatch tables associated with a tagged
20728 (Collect_All_Interfaces): New subprogram that collects the whole list
20729 of interfaces that are directly or indirectly implemented by a tagged
20731 (Default_Prim_Op_Position): New subprogram that returns the fixed
20732 position in the dispatch table of the default primitive operations.
20733 (Expand_Interface_Actuals): New subprogram to generate code that
20734 displaces all the actuals corresponding to class-wide interfaces to
20735 reference the interface tag of the actual object.
20736 (Expand_Interface_Conversion): New subprogram. Reference the base of
20737 the object to give access to the interface tag associated with the
20738 secondary dispatch table.
20739 (Expand_Interface_Thunk): New subprogram that generates the code of the
20740 thunk. This is required for compatibility with the C+ ABI.
20741 (Make_Abstract_Interface_DT): New subprogram that generate the
20742 declarations for the secondary dispatch tables associated with an
20743 abstract interface.
20744 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
20745 attribute for each primitive operation covering interface subprograms
20746 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
20747 These subprograms were upgraded to give support to abstract interfaces
20749 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
20750 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
20751 RE_Set_Access_Level.
20752 (RE_Unit_Table): Add entries for new Ada.Tags operations.
20753 Add support to call the followig new run-time subprograms:
20754 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
20756 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
20757 match its full declaration when both have an access definition with
20758 statically matching designated subtypes.
20759 (Analyze_Component_Declaration): Delete commented out code that was
20760 incorrectly setting the scope of an anonymous access component's type.
20761 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
20762 an access discriminant when the containing type is nonlimited.
20763 (Make_Incomplete_Type_Declaration): Create an incomplete type
20764 declaration for a record type that includes self-referential access
20766 (Check_Anonymous_Access_Types): Before full analysis of a record type
20767 declaration, create anonymous access types for each self-referential
20769 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
20770 an access component in this context is a Local_Anonymous_Access, for
20771 proper accessibility checks.
20772 (Access_Definition): Set properly the scope of the anonymous access type
20773 created for a stand-alone access object.
20774 (Find_Type_Of_Object): An object declaration may be given with an access
20776 (Complete_Subprograms_Derivation): New subprogram used to complete
20777 type derivation of private tagged types implementing interfaces.
20778 In this case some interface primitives may have been overriden
20779 with the partial-view and, instead of re-calculating them, they
20780 are included in the list of primitive operations of the full-view.
20781 (Build_Derived_Record_Type): Modified to give support to private
20782 types implemening interfaces.
20783 (Access_Definition): Reject ALL on anonymous access types.
20784 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
20785 type derivation to occur at a deeper accessibility level than the
20787 For the case of derivation within a generic body however, disallow the
20788 derivation if the derived type has an ancestor that is a formal type
20789 declared in the formal part of an enclosing generic.
20790 (Analyze_Object_Declaration): For protected objects, remove the check
20791 that they cannot contain interrupt handlers if not declared at library
20793 (Add_Interface_Tag_Components): New subprogram to add the tag components
20794 corresponding to all the abstract interface types implemented by a
20795 record type or a derived record type.
20796 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20797 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20798 Process_Full_View, Record_Type_Declaration): Modified to give
20799 support to abstract interface types
20800 (Collect_Interfaces): New subprogram that collects the list of
20801 interfaces that are not already implemented by the ancestors
20802 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
20803 when partial view has no discriminants and full view has defaults.
20804 (Constrain_Access): Reject a constraint on a general access type
20805 if the discriminants of the designated type have defaults.
20806 (Access_Subprogram_Declaration): Associate the Itype node with the inner
20807 full-type declaration or subprogram spec. This is required to handle
20808 nested anonymous declarations.
20809 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20810 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20811 Process_Full_View, Record_Type_Declaration): Modified to give
20812 support to abstract interface types
20813 (Derive_Subprograms): Addition of a new formal to indicate if
20814 we are in the case of an abstact-interface derivation
20815 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
20816 to the specification because it is requied to analyze all the
20817 identifiers found in a list of interfaces
20819 * debug.adb: Complete documentation of flag "-gnatdZ"
20821 * exp_ch3.adb: Implement config version of persistent_bss pragma
20822 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
20823 testing for TSS presence to properly enforce visibility rules.
20824 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
20825 Make_Abstract_Interfaces_DT to generate the secondary tables
20826 associated with abstract interfaces.
20827 (Build_Init_Procedure): Modified to initialize all the tags
20829 (Component_Needs_Simple_Initialization): Similar to other tags,
20830 interface tags do not need initialization.
20831 (Freeze_Record_Type): Modified to give support to abstract interface
20833 (Expand_N_Object_Declaration): Do not generate an initialization for
20834 a scalar temporary marked as internal.
20836 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
20837 in-out parameter that is a component in an initialization procedure,
20838 whose constraint might depend on discriminants, and that may be
20839 misaligned because of packing or representation clauses.
20840 (Is_Legal_Copy): New predicate to determine whether a possibly
20841 misaligned in-out actual can actually be passed by copy/return. This
20842 is an error in case the type is by_reference, and a warning if this is
20843 the consequence of a DEC import pragma on the subprogram.
20844 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
20846 (Expand_Inlined_Call): Mark temporary generated for the return value as
20847 internal, so that no useless scalar normalization is generated for it.
20848 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
20849 null procedure can always be inlined.
20850 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
20851 procedure, generate an explicit empty body for it.
20853 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
20854 Given a type implementing an interface, returns the corresponding
20855 access_disp_table value.
20856 (Find_Interface_Tag): New subprogram. Given a type implementing an
20857 interface, returns the record component containing the tag of the
20859 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
20860 previous ones that return the corresponding tag and access_disp_table
20862 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
20863 is a predefined primitive operation.
20864 (Expand_Subtype_From_Expr): If the expression is a selected component
20865 within an initialization procedure, compute its actual subtype, because
20866 the component may depend on the discriminants of the enclosing record.
20868 * i-cpp.ads, i-cpp.adb:
20869 This package has been left available for compatibility with previous
20870 versions of the frontend. As part of the new layout this is now a
20871 dummy package that uses declarations available at a-tags.ads
20873 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
20874 "constant access" and "aliased [constant] access" when not compiling
20876 Suppress Ada 2005 keyword warning if -gnatwY used
20877 (P_Identifier_Declarations): Add support for object declarations with
20878 access definitions.
20879 (Private_Extension_Declaration): Complete the documentation
20880 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
20881 attribute in case of private extension declaration
20882 (P_Type_Declaration): Mark as "abstract" the type declarations
20883 corresponding with protected, synchronized and task interfaces
20884 (P_Declarative_Items): "not" and "overriding" are overriding indicators
20885 for a subprogram or instance declaration.
20887 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
20888 instantiation that is a dispatching operation has controlling access
20889 parameters that are null excluding.
20890 Save and restore Ada_Version_Explicit, for implementation of AI-362
20891 (Validate_Derived_Type_Instance): Add check for abstract interface
20893 (Analyze_Formal_Package): Establish Instantiation source for the copy of
20894 the generic that is created to represent the formal package.
20895 (Analyze_Package_Instantiation): Instantiate body immediately if the
20896 package is a predefined unit that contains inlined subprograms, and
20897 we are compiling for a Configurable_Run_Time.
20898 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
20899 If the program has a null default, generate an empty body for it.
20901 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
20902 error message condition, null procedures are correctly detected now.
20903 (New_Overloaded_Entity): Bypass trivial overriding indicator check
20904 for subprograms in the context of protected types. Instead, the
20905 indicator is examined in Sem_Ch9 while analysing the subprogram
20907 (Check_Overriding_Indicator): Check consistency of overriding indicator
20908 on subprogram stubs as well.
20909 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
20911 (Analize_Subprogram_Specification): When analyzing a subprogram in which
20912 the type of the first formal is a concurrent type, replace this type
20913 by the corresponding record type.
20914 (Analyze_Subprogram_Body): Undo the previous work.
20915 (Analyze_Procedure_Call): If the call has the form Object.Op, the
20916 analysis of the prefix ends up analyzing the call itself, after which
20918 (Has_Interface_Formals): New subprogram subsidiary to analyze
20919 subprogram_specification that returns true if some non
20920 class-wide interface subprogram is found
20921 (New_Overloaded_Entity): Modified to give support to abstract
20923 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
20924 access to subprograms must be recursive.
20925 (Is_Unchecked_Conversion): Improve the test that recognizes
20926 instantiations of Unchecked_Conversion, and allows them in bodies that
20927 are to be inlined by the front-end. When the body comes from an
20928 instantiation, a reference to Unchecked_Conversion will be an
20929 Expanded_Name, even though the body has not been analyzed yet.
20930 Replace Is_Overriding and Not_Overriding in subprogram_indication with
20931 Must_Override and Must_Not_Override, to better express intent of AI.
20932 (Analyze_Subprogram_Body): If an overriding indicator is given, check
20933 that it is consistent with the overrinding status of the subprogram
20935 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
20937 If the subprogram is a null procedure, indicate that it does not need
20940 * sem_disp.adb (Check_Controlling_Type): Give support to entities
20941 available through limited-with clauses.
20942 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
20943 allowed as the last primitive of a tagged type if it has no previous
20945 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
20946 to give support to abstract interface types
20948 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
20949 in the case where the target type is an anonymous access type of an
20950 object or component (that is, when Is_Local_Anonymous_Access is true).
20951 Prevent the special checks for conversions of access discriminants in
20952 the case where the discriminant belongs to a nonlimited type, since
20953 such discriminants have their accessibility level defined in the same
20954 way as a normal component of an anonymous access type.
20955 (Resolve_Allocator): When an allocator's designated type is a class-wide
20956 type, check that the accessibility level of type given in the
20957 allocator's expression or subtype indication is not statically deeper
20958 than the level of the allocator's access type.
20959 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
20960 name in a discriminant constraint of a record component.
20961 (Resolve_Explicit_Dereference): Do not check whether the type is
20962 incomplete when the dereference is a use of an access discriminant in
20963 an initialization procedure.
20964 (Resolve_Type_Conversion): Handle conversions to abstract interface
20966 (Valid_Tagged_Conversion): The conversion of a tagged type to an
20967 abstract interface type is always valid.
20968 (Valid_Conversion): Modified to give support to abstract interface types
20969 (Resolve_Actuals): Enable full error reporting on view conversions
20970 between unrelated by_reference array types.
20971 The rule for view conversions of arrays with aliased components is
20972 weakened in Ada 2005.
20973 Call to obsolescent subprogram is now considered to be a violation of
20974 pragma Restrictions (No_Obsolescent_Features).
20975 (Check_Direct_Boolean_Operator): If the boolean operation has been
20976 constant-folded, there is nothing to check.
20977 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
20978 check on possible violation of restriction No_Direct_Boolean_Operators
20979 until after expansion of operands, to prevent spurious errors when
20980 operation is constant-folded.
20982 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
20983 Has_Compatible_Type): Modified to give support to abstract interface
20985 (Interface_Present_In_Ancestor): New function to theck if some ancestor
20986 of a given type implements a given interface
20988 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
20989 prefix is a parameterless function that returns an access_to_procedure.
20990 (Transform_Object_Operation): Handle properly function calls of the
20991 form Obj.Op (X), which prior to analysis appear as indexed components.
20992 (Analyze_One_Call): Complete the error notification to help new Ada
20994 (Analyze_Allocator): For an allocator without an initial value, where
20995 the designated type has a constrained partial view, a discriminant
20996 constraint is illegal.
20998 2005-06-14 Robert Dewar <dewar@adacore.com>
21000 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
21001 do with treatment of Set_Col when positioned at end of line character.
21003 2005-06-14 Robert Dewar <dewar@adacore.com>
21005 * atree.adb: (Elist*): Protect against uninitialized field
21007 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21009 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
21010 for an attribute reference that returns an access type.
21011 (Apply_Discriminant_Check): No need for check if (designated) type has
21012 constrained partial view.
21014 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
21015 both bound checks, rather than a conjunction.
21016 (Insert_Valid_Check): If the expression is an actual that is an indexed
21017 component of a bit-packed array, force expansion of the packed element
21018 reference, because it is specifically inhibited elsewhere.
21020 2005-06-14 Vincent Celier <celier@adacore.com>
21022 * clean.adb (Clean_Project): Correctly delete executable specified as
21023 absolute path names.
21025 * make.adb (Gnatmake): Allow relative executable path names with
21026 directory information even when project files are used.
21027 (Change_To_Object_Directory): Fail gracefully when unable to change
21028 current working directory to object directory of a project.
21029 (Gnatmake): Remove exception handler that could no longer be exercized
21030 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
21031 may be deallocated by Normalize_Arguments.
21032 (Collect_Arguments): Eliminate empty arguments
21034 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
21035 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
21036 (Check_Project): Return False when Project is No_Project. Return True
21037 when All_Projects is True.
21038 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
21039 All_Projects to True.
21042 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21043 Javier Miranda <miranda@adacore.com>
21044 Thomas Quinot <quinot@adacore.com>
21045 Robert Dewar <dewar@adacore.com>
21046 Hristian Kirtchev <kirtchev@adacore.com>
21047 Gary Dismukes <dismukes@adacore.com>
21049 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
21050 anonymous access types, to indicate that the accessibility level of
21051 the type is determined by that of the enclosing declaration.
21052 (Has_Persistent_BSS): New flag
21053 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
21054 of this attribute with functions.
21055 (Is_Primitive_Wrapper): Remove the barrier.
21056 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
21057 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
21059 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
21060 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
21062 (Is_Pure_Unit_Access_Type): New flag
21063 (Abstract_Interfaces): Complete the assertion to cover all usages.
21064 (Set_Is_Interface): Complete the assertion to cover all usages.
21065 (Is_Primitive_Wrapper): New attribute.
21066 (Is_Obsolescent): Now applies to all entities (though it is only set
21067 for subprograms currently)
21068 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
21069 which solves various problems concerning access subtypes.
21070 (Has_Persistent_BSS): New flag
21071 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
21072 Remove these subprograms because this attribute is currently
21075 Has_Specified_Stream_Input (Flag190)
21076 Has_Specified_Stream_Output (Flag191)
21077 Has_Specified_Stream_Read (Flag192)
21078 Has_Specified_Stream_Write (Flag193)
21079 Present in all type and subtype entities. Set for a given view if the
21080 corresponding stream-oriented attribute has been defined by an
21081 attribute definition clause. When such a clause occurs, a TSS is set
21082 on the underlying full view; the flags are used to track visibility of
21083 the attribute definition clause for partial or incomplete views.
21084 (Is_Pure_Unit_Access_Type): New flag
21085 Clarify use of Is_Internal.
21086 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
21087 internally generated to wrap the invocation of tasks and protected
21088 types that implement interfaces.
21089 (Implementation_Base_Type): Documentation correction
21090 (Is_Obsolescent): Now applies to all entities (though it is only set
21091 for subprograms currently)
21092 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
21093 which solves various problems concerning access subtypes.
21095 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
21096 for examined parameters. Identify unequal parameter list lengths as
21097 non-conformant parameters.
21098 (Overriding_Possible): Do not check for "All" qualifier in declaration
21099 of controlling access parameter, following prescription of AI-404.
21100 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
21101 that build the procedure body that wraps an entry invocation
21102 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
21103 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
21104 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
21105 give support to abstract interface types
21107 * freeze.adb (Freeze_Entity): Issue error message if
21108 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
21109 type has no storage pool (Ada 2005) AI-366.
21110 Also modified to give support to abstract interface types
21111 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
21112 Inline_Always pragma.
21114 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
21115 now begin an entry declaration.
21116 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
21117 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
21118 a subprogram declaration preceded by an overriding indicator.
21119 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
21120 declarations or subprogram declarations preceded by reserved words
21121 "not" or "overriding".
21122 (P_Entry_Declaration): Update comment. Parse and check overriding
21123 indicator, set semantic flags of entry declarations.
21124 (P_Task): New error message in case of private applied
21125 to a task type declaration.
21126 (P_Protected): New error message in case of private applied
21127 to a task type declaration.
21129 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
21130 in which the full view of a type implementing an interface is a
21132 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
21133 Declare_Inherited_Private_Subprograms): If an explicit operation
21134 overrides an operation that is inherited in the private part, mark the
21135 explicit one as overriding, to enable overriding indicator checks.
21136 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
21137 full view to partial view, to simplify handling in back-end.
21139 * sprint.adb: Print interface lists where needed: derived types,
21140 protected types, task types.
21141 output "is null" for null procedures. Part of implementation of
21143 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
21144 relaxation of rules for access types in pure, shared passive partitions.
21146 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
21147 first read discriminants into temporary objects, performing checks on
21148 the read values, then possibly performing discriminant checks on the
21149 actual (if it is constrained), and only finally reading the components
21150 into a constrained temporary object.
21151 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
21152 case of reading discriminants of a mutable record type to recognize
21153 the new form of the code generated by
21154 Build_Mutable_Record_Read_Procedure.
21156 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
21157 of a simple call to Make_TSS_Name.
21158 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
21159 buffer, in order for Is_TSS to work correctly on local TSS names.
21161 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
21162 Is_Local_Anonymous_Access to check legaliy of attributes in the
21163 context of access components and stand-alone access objects.
21164 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
21165 treated as available for a limited private type if there is an
21166 attribute_definition_clause that applies to its full view, but not in
21167 other cases where the attribute is available for the full view
21168 (specifically, the sole fact that the full view is non-limited does not
21169 make the attribute available for the partial view).
21170 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
21171 non-overloaded intrinsic subprogram.
21172 (Check_Stream_Attribute): Reject an attribute reference for an
21173 unavailable stream attribute even if the prefix is not a limited type
21174 (case of a 'Input attribute reference for an abstract, non-classwide
21176 (Stream_Attribute_Available): New function to determine whether a stream
21177 attribute is available at a place.
21178 (Check_Attribute): Use Stream_Attribute_Available instead of just
21179 testing for TSS presence on the implementation base type.
21180 (Analyze_Attribute): Modified to give support to task interfaces.
21181 (Analyze_Access_Attribute): Add error check for use of an Access (or
21182 Unrestricted_Access) attribute with a subprogram marked as
21184 (Analyze_Attribute, case Attribute_Address): Add error check for use of
21185 an Address attribute with a subprogram marked as Inline_Always.
21186 Update Eval_Attribute to handle new value of Width from AI-395
21188 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
21189 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
21190 Factor common code across the stream-oriented attribute circcuits into
21191 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
21192 processing is functionally identical to the previous duplicated one,
21193 except that an expression that denotes an abstract subprogram will now
21194 be rejected, as mandated by AI-195 item 5.
21196 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
21197 Is_Local_Anonymous_Access to apply accessibility checks to access
21198 components and stand-alone access objects.
21199 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
21201 (Is_Potentially_Persistent_Type): New function
21202 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
21203 a heap-object whose type has a constrained partial view, the object is
21204 unconstrained and the component may depend on a discriminant, making its
21207 * sinfo.ads, sinfo.adb
21208 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
21209 (Must_Override): Flag applicable to N_Entry_Declaration.
21210 Indicate that interface_list can appear in single task and single
21211 protected declarations.
21212 Replace Is_Overriding and Not_Overriding with Must_Override and
21213 Must_Not_Override, to better express intent of AI.
21214 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
21215 of an overriding indicator in a subprogram or instance.
21216 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
21217 Add the overriding indicator [[not] overriding] construct to the
21218 following grammar productions:
21220 GENERIC_INSTANTIATION
21221 SUBPROGRAM_SPECIFICATION
21223 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
21224 can start with an overriding indicator.
21226 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
21227 flags accordingly on subrogram specifications or instances.
21230 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
21231 overriding_indicator, if present, is consistent with status of spec.
21232 Improve error message for null-excluding checks on controlling access
21234 (Check_In_Previous_With_Clause): Protect the frontend against
21235 previously reported critical errors in the context clauses.
21236 Save and restore Ada_Version_Explicit, for implementation of AI-362
21237 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
21238 operation verify that controlling formals of the renamed entity that
21239 are access parameters are explicitly non-null.
21240 (Find_Expanded_Name): Improve error message when prefix is an illegal
21241 reference to a private child unit.
21243 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
21244 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
21245 Rewrite to correspond to new wide character names in AI-395
21247 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
21248 default procedures.
21250 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21251 Robert Dewar <dewar@adacore.com>
21253 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
21254 code, not on the bodies of predefined operations, to cut down on
21257 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21259 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
21260 be expanded in place. The size computation does not require a
21261 subtraction, which would raise an exception on a compiler built with
21262 assertions when the upper bound is Integer'first.
21263 (Flatten): For an array of composite components, take into account the
21264 size of the components to determine whether it is safe to expand the
21265 array into a purely positional representation.
21267 2005-06-14 Thomas Quinot <quinot@adacore.com>
21269 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
21270 denoting a formal parameter into account.
21272 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21274 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
21275 the entry_call alternative of a conditional entry call, wrap the
21276 conditional entry call itself.
21278 2005-06-14 Nicolas Setton <setton@adacore.com>
21279 Ed Schonberg <schonberg@adacore.com>
21281 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
21282 the "simple_choice" member in a variant record, in accordance with the
21283 description in the package spec: the information output for a constant
21284 should be "S number", not "SS number".
21285 (Get_Encoded_Name): Return at once if not generating code. Avoids name
21286 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
21288 2005-06-14 Thomas Quinot <quinot@adacore.com>
21290 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
21291 RACW without any primitives, do not generate the if statement for
21292 dispatching by name in the PolyORB/DSA case, as it would be malformed
21293 (it would have an Elsif_Parts list that is not No_List, but with a
21296 2005-06-14 Robert Dewar <dewar@adacore.com>
21298 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
21300 2005-06-14 Jose Ruiz <ruiz@adacore.com>
21302 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
21303 can determine whether pragma Suppress_Exception_Locations is in effect.
21305 * utils2.c (build_call_raise): Do not pass the file name to the
21306 exception handler if pragma Suppress_Exception_Locations is in effect.
21307 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
21309 2005-06-14 Emmanuel Briot <briot@adacore.com>
21311 * g-debpoo.adb (Deallocate, Dereference): Improve output.
21313 2005-06-14 Nicolas Roche <roche@adacore.com>
21315 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
21317 (Next_Level): Fix minor bug in handling of ../dir case
21318 (Read): Add dir separator to Directory name so that "" is understood as
21321 2005-06-14 Pascal Obry <obry@adacore.com>
21323 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
21324 releasing the items.
21326 2005-06-14 Vincent Celier <celier@adacore.com>
21327 Cyrille Comar <comar@adacore.com>
21329 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
21330 with output file descriptor and with output file name.
21331 (Dup, Dup2): Now global procedures as they are used by two subprograms
21332 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
21334 2005-06-14 Thomas Quinot <quinot@adacore.com>
21337 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
21339 (Create_Selector): Bind listening socket used to create the signalling
21340 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
21341 Set listen backlog to 1 to ensure that we detect socket theft by a
21342 failure of our own connect(2) call.
21343 (Check_Selector): Improve documentation of the selector mechanism.
21344 (Broadcast_Inet_Addr): New constant.
21346 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21348 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
21349 type which turns out to be an incomplete and incorrect fix.
21350 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
21351 of the type is declared in a record (for determination of insertion
21353 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
21354 a private type and ensure that the primary entity is used for the type
21355 of the newly created function's V formal by taking the Etype of the
21358 2005-06-14 Javier Miranda <miranda@adacore.com>
21359 Jose Ruiz <ruiz@adacore.com>
21360 Robert Dewar <dewar@adacore.com>
21361 Ed Schonberg <schonberg@adacore.com>
21363 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
21364 that indicates if we are parsing a compilation unit found in a
21365 limited-with clause.
21366 It is use to avoid the circularity check.
21368 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
21369 we are parsing a compilation unit found in a limited-with clause. This
21370 is use to avoid the circularity check.
21372 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
21373 unit as a consequence of parsing a limited-with clause. This is used
21374 to avoid the circularity check.
21376 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
21377 (Analyze_Context): Limited-with clauses are now allowed
21378 in more compilation units.
21379 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
21380 againts previously reported critical errors in context clauses
21381 (Install_Limited_Withed_Unit): Code cleanup plus static detection
21382 of two further errors: renamed subprograms and renamed packages
21383 are not allowed in limited with clauses.
21384 (Install_Siblings): Do not install private_with_clauses on the package
21385 declaration for a non-private child unit.
21386 (Re_Install_Parents): When a parent of the subunit is reinstalled,
21387 reset visibility of child units properly.
21388 (Install_Withed_Unit): When a child unit appears in a with_clause of its
21389 parent, it is immediately visible.
21391 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21392 Emmanuel Briot <briot@adacore.com>
21394 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
21395 declared within an inlined body as referenced, to prevent spurious
21397 (Output_One_Ref): If an entity renames an array component, indicate in
21398 the ALI file that this aliases (renames) the array. Capture as well
21399 function renamings that rename predefined operations.
21400 Add information about generic parent for package and subprogram
21402 (Get_Type_Reference): For a subtype that is the renaming of an actual in
21403 an instantiation, use the first_subtype to ensure that we don't generate
21404 cross-reference information for internal types.
21405 For objects and parameters of a generic private type, retain the '*'
21406 indicator to distinguish such an entity from its type.
21408 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
21409 to store information about instantiated entities.
21411 * ali.adb (Scan_ALI): Add support for parsing the reference to the
21414 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
21415 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
21418 2005-06-10 Doug Rupp <rupp@adacore.com>
21419 Arnaud Charlet <charlet@adacore.com>
21420 Olivier Hainque <hainque@adacore.com>
21421 Jose Ruiz <ruiz@adacore.com>
21423 * Make-lang.in: Add initialize.o when needed.
21424 Remove obsolete references to RT_FLAGS.
21425 Add missing dependencies for sdefault.o
21427 * initialize.c: New file.
21429 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
21430 [VMS] cond_signal_table: Fix problem in declaration.
21431 [VMS] __gnat_error_handler: rewrite.
21432 Move all __gnat_initialize() routines to initialize.c
21433 Specialize the former "hpux" section to "hppa hpux", as this is what the
21434 section really is here for and we now have other hpux ports that need
21435 different contents.
21436 (__gnat_adjust_context_for_raise) i386-linux: First version of this
21437 function for this target. Adjust PC by one in the machine context. This
21438 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
21439 it is more reliable to do that in the signal handler itself.
21440 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
21441 flags, so that the handler is passed the context structure to adjust
21442 prior to the raise.
21443 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
21444 SA_SIGINFO sigaction should look like. Call
21445 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
21446 Machine_State_Operations stuff.
21447 Add conditional code so that the x86_64 is also supported.
21449 2005-06-14 Pascal Obry <obry@adacore.com>
21451 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
21454 2005-06-14 Robert Dewar <dewar@adacore.com>
21456 * opt.ads, opt.adb: New flags for persistent_bss mode
21457 Add Ada_Version_Explicit, for implementation of AI-362
21458 Add Assertions_Enabled_Config and associated handling
21459 Needed since setting can be changed with Assertion_Policy pragma
21460 Add new flag Warn_On_Ada_2005_Compatibility
21462 * switch-c.adb: Recognize -gnatwy/Y
21463 Set Ada_Version_Explicit, for implementation of AI-362
21464 The -gnatg switch now includes -gnatyu
21466 * usage.adb: Add -gnatwy/Y
21467 Remove wrong asterisk on -gnatwX line
21468 Add line for -gnatyu switch
21470 2005-06-14 Vincent Celier <celier@adacore.com>
21472 * osint.adb (Add_Default_Search_Dirs): Put source and object
21473 directories of project files before directories coming from
21474 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
21476 2005-06-14 Robert Dewar <dewar@adacore.com>
21479 * par-ch2.adb (Scan_Pragma_Argument): New procedure
21480 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
21482 2005-06-14 Vincent Celier <celier@adacore.com>
21484 * prep.adb (Preprocess): Ignore error when scanning the first token of
21487 2005-06-14 Vincent Celier <celier@adacore.com>
21489 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
21490 (Check_Stand_Alone_Library): If the specified reference symbol file does
21491 not exist, only issue a warning when the symbol policy is not
21492 Controlled. And, when symbol policy is Compliant, set the symbol
21493 policy to Autonomous.
21495 2005-06-14 Vincent Celier <celier@adacore.com>
21497 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
21498 when the project file in a with clause is not the last one, that is the
21499 project file name is followed by a comma.
21500 * prj-pp.adb: (First_With_In_List): New Boolean global variable
21501 (Print): Issue list of project files separated by commas in with clauses
21502 according to the values returned by Is_Not_Last_In_List.
21503 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
21504 (Set_Is_Not_Last_In_List): New procedure
21506 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
21508 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
21510 2005-06-14 Robert Dewar <dewar@adacore.com>
21512 * scng.adb: Add call to new Check_EOF routine
21513 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
21514 Add some comments regarding wide character handling
21516 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
21518 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
21520 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
21521 characters are now considered graphic characters and hence yield false
21524 * nmake.adt: Modify header so that xnmake does not generate output
21525 files with multiple blank lines.
21527 * treeprs.adt: Remove a blank line so that output from xtreeprs does
21528 not have an extra blank line
21530 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21532 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
21533 expression when the component type is an anonymous access type to
21534 ensure that appropriate accessibility checks are done.
21536 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
21537 expression of an assignment when the target object is of an anonymous
21538 access type. This ensures that required accessibility checks are done.
21539 (One_Bound): Move the check for type Universal_Integer to
21541 (Process_Bounds): Check whether the type of the preanalyzed range is
21542 Universal_Integer, and in that case set Typ to Integer_Type prior
21543 to setting the type of the original range and the calls to One_Bound.
21545 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21547 * sem_case.adb (Expand_Others_Choice): Improve warning.
21549 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21551 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
21552 constraint of full view if present, when other type is discriminated.
21553 (Eval_Relational_Op): Recognize tests of pointer values against Null,
21554 when the pointer is known to be non-null, and emit appropriate warning.
21556 2005-06-14 Robert Dewar <dewar@adacore.com>
21557 Ed Schonberg <schonberg@adacore.com>
21560 * sem_prag.adb: Implement pragma Persistent_BSS
21561 Remove obsolete pragma Persistent_Data, Persistent_Object
21562 Set Ada_Version_Explicit, for implementation of AI-362
21563 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
21564 Add processing for pragma Pure_05 and Preelaborate_05
21565 Add processing for Assertion_Policy pragma
21566 Add pragma identifiers for Assert
21567 (Analyze_Pragma, case Assert): Check number of arguments
21568 (Process_Inline): Additional guard against an illegal program, where the
21569 argument of the pragma is undefined, and warnings on redundant
21570 constructs are enabled.
21571 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
21572 Ada_05 to this pragma, specifying that the pragma is only active in
21574 (Check_Arg_Order): New procedure
21575 Add appropriate calls to this procedure throughout
21576 Also throughout, check entity name before doing any other checks
21578 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
21579 Remove obsolete pragma Persistent_Data, Persistent_Object
21580 Add entries for pragma Pure_05 and Preelaborate_05
21581 Add entries for Assertion_Policy pragma and associated names
21582 Add some names for pragma argument processing
21584 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
21586 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21588 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
21589 appears within a negation (either from source or as a rewriting of
21590 inequality) adjust text of warning accordingly.
21592 2005-06-14 Thomas Quinot <quinot@adacore.com>
21594 * s-strxdr.adb: Follow AI95-00132
21596 2005-06-14 Arnaud Charlet <charlet@adacore.com>
21598 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
21600 2005-06-14 Arnaud Charlet <charlet@adacore.com>
21601 Jose Ruiz <ruiz@adacore.com>
21603 * s-tposen.adb, s-tpobop.adb
21604 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
21606 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
21607 there is no violation of the Max_Entry_Queue_Length restriction (if it
21608 has been set); Program_Error is raised otherwise.
21609 (Requeue_Call): Before requeuing the task on the target entry queue we
21610 check that there is no violation of the Max_Entry_Queue_Length
21611 restriction (if it has been set); Program_Error is raised otherwise.
21613 2005-06-14 Robert Dewar <dewar@adacore.com>
21615 * styleg.adb: Fix several remaining problems in -gnatyu switch
21616 Blank line count not reset at start
21617 Scanning outside source buffer in some cases
21618 Confusing message for blanks at end of file
21619 Non-empty blank lines not recognized
21621 * nmake.adt: Modify header so that xnmake does not generate output
21622 files with multiple blank lines.
21624 * treeprs.adt: Remove a blank line so that output from xtreeprs does
21625 not have an extra blank line
21627 2005-06-14 Sergey Rybin <rybin@adacore.com>
21629 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
21631 2005-06-14 Doug Rupp <rupp@adacore.com>
21632 Vincent Celier <celier@adacore.com>
21634 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
21637 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21638 Remove "Library" command.
21639 Change keyword for style check -gnatyd from NOCRLF to
21641 Remove useless second style check keyword NONE
21642 Remove help documentation for inexistent style check keyword
21644 Add help documentation for style check keywords DOS_LINE_ENDINGS,
21645 UNNECESSARY_BLANK_LINES and XTRA_PARENS
21646 Add UNNECESSARY_BLANK_LINES for -gnatyu
21647 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
21649 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21651 2005-06-14 Vincent Celier <celier@adacore.com>
21653 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
21654 gprmake was invoked with -d.
21655 (Compile_Sources): If -d was used, output the "completed ..." message
21656 for each compilation.
21657 (Scan_Arg): Recognize new switch -d
21658 When -c and at least one main is specified, set
21659 Unique_Compile to True to guarantee that no other sources will be
21662 2005-06-14 Matthew Heaney <heaney@adacore.com>
21664 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
21665 * a-swuwha.ads, a-swuwha.adb: New files
21667 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
21668 * a-szuzha.ads, a-szuzha.adb: New files.
21670 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21671 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
21672 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
21673 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
21674 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
21675 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
21676 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
21677 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
21678 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
21679 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
21682 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
21683 Olivier Hainque <hainque@adacore.com>
21684 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21685 Pascal Obry <obry@adacore.com>
21687 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
21689 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
21690 making a temporary around a procedure call because of non-addressable
21692 (process_freeze_entity): If entity is a private type, capture size
21693 information that may have been computed for the full view.
21694 (tree_transform, case N_Allocator): If have initializing expression,
21695 check type for Has_Constrained_Partial_View and pass that to
21697 (tree_transform, case N_Return_Statement): Pass extra arg to
21700 * decl.c (annotate_value): Remove early return if -gnatR is not
21702 (gnat_to_gnu_field): Don't make a packable type for a component clause
21703 if the position is byte aligned, the field is aliased, and the clause
21704 size isn't a multiple of the packable alignment. It serves no useful
21705 purpose packing-wise and would be rejected later on.
21706 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
21709 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
21710 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
21712 (create_concat_name): Idem.
21714 2005-06-10 Robert Dewar <dewar@adacore.com>
21715 Eric Botcazou <ebotcazou@adacore.com>
21716 Ben Brosgol <brosgol@adacore.com>
21717 Cyrille Comar <comar@adacore.com>
21718 Sergey Rybin <rybin@adacore.com>
21719 Pascal Obry <obry@adacore.com>
21721 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
21722 Document second argument (Ada_05) of pragma Obsolescent
21723 Add note that call to subprogram marked with pragma Obsolescent
21724 is now considered to be a violation of program Restrictions
21725 (No_Obsolescent_Features).
21726 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
21727 that only machine-dependent attributes are supported.
21730 Commented out menu lines and empty section for gnatclean examples
21732 Fix some over long lines
21733 Clarify and enhance documentation of ADA_PROJECT_PATH.
21734 Rework section 2.11.2(3) about linking with a non-GNU compiler.
21735 Mention new switch -fcallgraph-info.
21736 Mention new switch -fstack-usage.
21737 For gnatpp, replace '-notab' with '-N' and add this option to Index
21738 Corrected VMS example.
21739 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
21741 Add documentation for -gnatyu switch (unnecessary blank lines)
21742 Document new switch -U for GNAT PRETTY and GNAT METRIC
21743 Add note about Stdcall being handled as C convention on non Windows OS.
21744 Remove some junk typo in description of gnatbind -S switch
21745 Remove reference to Extensions_Allowed pragma
21746 Document the new order of the directories to be searched (source and
21747 object directories of project files before directories in ADA_*_PATH
21748 environment variables.
21750 * g-trasym.ads: Document that IRIX is supported
21752 2005-06-10 Arnaud Charlet <charlet@adacore.com>
21754 * Makefile.in: Add initialize.o when needed.
21755 Adapt to new VMS package body Symbols and subunits
21756 No specialized version of a-sytaco is needed for VxWorks.
21758 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
21759 * a-zchara.ads, a-widcha.ads: New files.
21761 * system-hpux-ia64.ads: New file.
21763 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
21764 is imported from the VxWorks kernel.
21766 2005-06-14 Robert Dewar <dewar@adacore.com>
21768 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
21769 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
21770 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
21771 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
21772 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
21773 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
21774 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
21775 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
21776 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
21777 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
21778 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
21779 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
21781 2005-06-14 Thomas Quinot <quinot@adacore.com>
21783 * xeinfo.adb: Fix typo in comment
21785 2005-06-14 Javier Miranda <miranda@adacore.com>
21787 * repinfo.ads: Fix typo in comment
21789 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21791 * s-finimp.adb (Parent_Tag): Delete this imported function (function
21792 Parent_Tag is now in the visible part of Ada.Tags).
21793 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
21794 using imported function.
21796 2005-06-14 Bernard Banner <banner@adacore.com>
21798 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
21799 also apply for handling support for VxSim 653.
21801 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
21803 * xsnames.adb: Add automatic generation of snames.h.
21805 2005-06-14 Thomas Quinot <quinot@adacore.com>
21807 * gen-soccon.c: Add IP_MULTICAST_IF constant
21808 Minor reformatting and adjustments to prevent warnings.
21810 2005-06-14 Pascal Obry <obry@adacore.com>
21812 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
21814 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
21816 * trans.c (gnat_gimplify_expr): Call
21817 recompute_tree_invarant_for_addr_expr when we change
21818 the operand of the ADDR_EXPR.
21820 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21822 * misc.c: Don't include errors.h.
21824 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21826 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
21828 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
21830 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
21832 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
21834 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
21837 * Makefile.in: Make TGT_LIB behave correctly.
21839 2005-04-23 DJ Delorie <dj@redhat.com>
21841 * misc.c: Adjust warning() callers.
21843 2005-04-16 Laurent Guerby <laurent@guerby.net>
21846 * a-nudira.adb (Value): Check for valid string.
21847 * a-nuflra.adb (Value): Likewise.
21849 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
21851 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
21853 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
21855 * adaint.c, init.c, tracebak.c: Fix comment typos.
21856 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
21858 2005-04-07 Laurent Guerby <laurent@guerby.net>
21859 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21861 * Makefile.in: Add make ifeq define for hppa linux tasking support.
21862 * system-hpux.ads: Define Signed_Zeros to be True.
21863 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
21865 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
21867 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
21868 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
21871 2005-03-30 Tom Tromey <tromey@redhat.com>
21873 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
21875 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
21877 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
21879 2005-03-29 Robert Dewar <dewar@adacore.com>
21881 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
21882 fixed-point expression has value that is not a multiple of the Small
21885 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
21887 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
21890 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
21892 2005-03-29 Vincent Celier <celier@adacore.com>
21894 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
21895 (Build_Dynamic_Library.Version_String): Return the empty string when
21896 Lib_Version is empty or when the symbol policy is not Autonomous.
21898 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
21899 a symbol is not in the reference symbol file, increase the Major ID
21900 and set the Minor ID to 0.
21901 Use gsmatch=lequal instead of gsmatch=equal
21903 2005-03-29 Doug Rupp <rupp@adacore.com>
21905 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
21906 name and translate.
21908 2005-03-29 Javier Miranda <miranda@adacore.com>
21910 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
21911 (Inherit_DT): The first formal has been redefined as a Tag.
21912 This allows us the removal of the subprogram Get_TSD.
21913 (TSD): Replace the call to Get_TSD by the actual code.
21915 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
21916 (Make_DT): Upgrade the call to Inherit_TSD according to the
21917 new interface: the first formal is now a Tag.
21919 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
21920 redefined as a Tag.
21921 This change allows us to remove the subprogram Get_TSD.
21922 (CPP_Get_TSD): Subprogram removed.
21923 (TSD): Replace the call to CPP_Get_TSD by the actual code.
21925 * rtsfind.ads: Remove support to call the run-time
21928 2005-03-29 Robert Dewar <dewar@adacore.com>
21930 * errutil.adb, errout.adb:
21931 Minor comment updates on Line_Terminator references
21933 * par-ch10.adb: Add ??? comment about line terminator
21935 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
21936 (check dos line terminator).
21937 (Check_Line_Max_Length): New procedure, split off from the existing
21938 Check_Line_Terminator routine. Separating this out allows -gnatyf to
21939 be properly recognized.
21941 * styleg.adb: Add ??? comment for line terminator reference
21943 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
21944 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
21946 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
21947 (check dos line terminator).
21948 (Check_Line_Max_Length): New procedure, split off from the existing
21949 Check_Line_Terminator routine. Separating this out allows -gnatyf to
21950 be properly recognized.
21952 * stylesw.ads, stylesw.adb:
21953 Add handling for new -gnatyd switch (check dos line terminator)
21955 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
21956 Recognize -gnatwb/-gnatwB switches
21957 Include Warn_On_Bad_Fixed_Value for -gnatg
21960 Add line for new -gnatyd switch (check dos line terminator)
21962 * usage.adb: Add lines for -gnatwb/-gnatwB
21964 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
21966 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
21968 * gnat_ugn.texi: Fix overlong lines
21969 Document new -gnatyd switch
21970 Document new -gnatwb/-gnatwB switches
21972 2005-03-29 Ed Schonberg <schonberg@adacore.com>
21974 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
21975 order to retrieve the component list of the type, before examining
21976 individual components.
21978 * sem_type.adb (Covers): Types are compatible if one is the base type
21979 of the other, even though their base types might differ when private
21980 views are involved.
21982 2005-03-29 Thomas Quinot <quinot@adacore.com>
21984 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
21985 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
21986 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
21987 analyzed if expansion is disabled (which could otherwise cause spurious
21988 error messages if expansion has been disabled due to previous
21989 (unrelated) errors).
21991 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
21992 is disabled, the entity denoted by the argument is the access type
21993 itself, not an underlying record type, so there is no need to go back
21994 to the Corresponding_Remote_Type.
21996 2005-03-29 Gary Dismukes <dismukes@adacore.com>
21997 Robert Dewar <dewar@adacore.com>
21999 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
22000 expand a call to an instance of
22001 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
22002 Constructor actual of the instance. A class-wide membership
22003 check is also generated, to ensure that the tag passed to the instance
22004 denotes a type in the class.
22005 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
22006 of Name_Generic_Dispatching_Constructor.
22008 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
22009 05 unit for AI-260-02).
22011 * a-tgdico.ads: New file.
22013 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
22014 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
22016 * snames.ads, snames.adb (Preset_Names): Add entry for
22017 Generic_Dispatching_Constructor.
22020 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
22021 character type cases.
22022 (Analyze_Subprogram_Renaming): Add special handling for
22023 the case of renaming of stream attributes when the renaming denotes a
22024 generic formal subprogram association for an abstract formal subprogram.
22025 Check that the attribute is a primitive stream attribute (and not
22026 a class-wide stream attribute) and then rewrite the attribute name
22027 as the name of the appropriate compiler-generated stream primitive.
22029 2005-03-29 Robert Dewar <dewar@adacore.com>
22031 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
22033 (Is_Possibly_Unaligned_Object): Correct typo that
22034 resulted in inaccurate result for unaligned scalars within records.
22036 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22038 * freeze.adb (Freeze_Record_Type): If the type of the component is an
22039 itype whose parent is controlled and not yet frozen, do not create a
22040 freeze node for the itype if expansion is disabled.
22042 2005-03-29 Vincent Celier <celier@adacore.com>
22044 * make.adb (Gnatmake): Don't fail if the main project file is declared
22045 as having no Ada sources. Do not display message "no sources to
22046 compile" in quiet output.
22048 2005-03-29 Doug Rupp <rupp@adacore.com>
22050 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
22053 2005-03-29 Robert Dewar <dewar@adacore.com>
22055 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
22058 2005-03-29 Robert Dewar <dewar@adacore.com>
22060 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
22061 missing TYPE Improve the error message generated when compiling a
22062 limited interface in Ada83 or Ada95 mode.
22064 2005-03-29 Robert Dewar <dewar@adacore.com>
22066 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
22067 rather than proceed ahead using a junk attribute name.
22069 2005-03-29 Vincent Celier <celier@adacore.com>
22071 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
22073 * prj-part.adb (Parse_Single_Project): Set the location of a project
22074 on its defining identifier, rather than on the reserved word "project".
22076 * prj-proc.adb (Expression): Adapt to the fact that default of external
22077 references may be string expressions, not always literal strings.
22078 (Recursive_Process): Set Display_Name equal to Name
22079 when Location is No_Location, that is when there is no actual file.
22080 Get the Display_Name of the project from the source, when it is not a
22082 (Process): Use the Display_Name in error messages
22084 * prj-strt.adb (External_Reference): Allow default to be string
22085 expressions, not only literal strings.
22087 2005-03-29 Vincent Celier <celier@adacore.com>
22089 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
22090 file and the reference symbol file to be the same file.
22092 2005-03-29 Thomas Quinot <quinot@adacore.com>
22094 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
22095 forbid conversion of a local access-to-subprogram type to a remote one.
22097 * sem_util.adb (Wrong_Type): For a record type that is the expanded
22098 equivalent type for a remote access-to-subprogram type, go back to the
22099 original RAS entity when displaying an error message, so the casing is
22100 the original source casing.
22102 2005-03-29 Robert Dewar <dewar@adacore.com>
22104 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
22107 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22109 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
22110 subtype if code is being pre-analyzed, to prevent un-expanded
22111 references to protected formals, among others.
22112 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
22113 interpretation that can be a call, include the result of the call as a
22114 possible interpretation of the dereference.
22116 * sem_ch5.adb (Process_Bounds): Determine type of range by
22117 pre-analyzing a copy of the original range, and then analyze the range
22118 with the expected type.
22120 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
22121 with an overloaded prefix where not all interpretations yield an
22122 access to subprogram, do not rewrite node as a call.
22123 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
22124 the node as a call once the context identifies the interpretation of
22125 the prefix whose call yields the context type.
22126 (Valid_Conversion): For the case of a conversion between
22127 local access-to-subprogram types, check subtype conformance using
22128 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
22129 detailed error message.
22131 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22133 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
22134 indicator, indicate that the formal can never be null.
22135 (Process_Formals): If a formal has a non_null indicator, insert the
22136 resulting subtype immediately before the enclosing subprogram decl,
22137 and not at the beginning of the corresponding declarative part, to
22138 prevent access before elaboration (Ada2005).
22140 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22143 * utils.c (finish_record_type): Use variable_size when setting sizes.
22145 2005-03-29 Robert Dewar <dewar@adacore.com>
22147 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
22148 guarantee Unix style line terminators for the output files, even when
22149 running on windows.
22151 2005-03-29 Robert Dewar <dewar@adacore.com>
22153 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
22154 buffer if an exception is raised.
22156 2005-03-29 Ed Falis <falis@adacore.com>
22158 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
22161 2005-03-29 Robert Dewar <dewar@adacore.com>
22163 * sem_util.ads: Minor reformatting
22164 * gnat_rm.texi: Minor editing.
22166 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
22168 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
22169 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
22171 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
22173 * adaint.c (__gnat_portable_spawn): Adjust cast.
22175 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
22177 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
22179 2005-03-17 Pascal Obry <obry@adacore.com>
22181 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
22184 * expect.c (__gnat_waitpid): Moved here from adaint.c.
22185 Reimplement under Win32 using Win32 API.
22187 (__gnat_kill) [Win32]: Properly close the process handle before leaving
22190 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
22192 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
22193 (DECL_RENAMED_OBJECT): New accessor macro.
22194 (SET_DECL_RENAMED_OBJECT): New setter macro.
22196 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
22197 object in all cases. Attach the renamed object to the VAR_DECL.
22198 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
22199 field is not prescribed.
22201 * misc.c (gnat_handle_option): Handle -gnatO separately.
22202 (gnat_print_decl) <VAR_DECL>: New case.
22203 Print the DECL_RENAMED_OBJECT node.
22205 * lang.opt: Declare separate -gnatO option.
22207 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
22208 pointer, replace it with the renamed object.
22209 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
22210 pointer type if the source is not a fat pointer type whose underlying
22211 array has the same non-zero alias set as that of the destination array.
22213 2005-03-17 Javier Miranda <miranda@adacore.com>
22215 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
22216 (Get_Inheritance_Depth): Removed.
22217 (Set_Inheritance_Depth): Removed.
22219 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
22220 subprogram Get_Expanded_Name because it is not referenced by the
22223 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
22224 (CPP_Get_Inheritance_Depth): Removed.
22225 (CPP_Set_Inheritance_Depth): Removed.
22227 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
22229 2005-03-17 Robert Dewar <dewar@adacore.com>
22231 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
22232 3, since we now expect GCC 3 to do all the work.
22234 2005-03-17 Javier Miranda <miranda@adacore.com>
22236 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
22237 of one barrier to avoid wrong usage of this attribute.
22239 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
22240 First_Private_Entity.
22242 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
22243 the subprogram against wrong usage.
22244 Adapt the code to traverse the entities in the
22245 scope of a record_type because in addition to its usage regarding
22246 packages, this subprogram is also called by Expand_N_Freeze_Entity
22247 to install the visible declarations of the enclosing scope of a
22248 record_type_with_private to establish the proper visibility before
22249 freezing the entity and related subprograms.
22251 2005-03-17 Ed Schonberg <schonberg@adacore.com>
22253 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
22256 2005-03-17 Thomas Quinot <quinot@adacore.com>
22258 * exp_ch3.adb (Check_Attr): New subprogram.
22259 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
22260 into a new Check_Attr subprogram, in order to provide a more
22261 explanatory error message (including the name of the missing attribute).
22262 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
22263 subprogram determines whether a default implementation exists for a
22264 given stream attribute.
22265 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
22266 Determine whether to generate a default implementation for each stream
22267 attribute separately, as this depends on the specific attribute.
22269 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
22270 limited extension where a stream attribute is missing for a limited
22271 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
22272 generate a bogus reference to the missing attribute to prevent
22273 cascaded errors. Instead, generate a null statement.
22275 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
22276 available for a limited type if it has been specified for an ancestor
22279 2005-03-17 Ed Schonberg <schonberg@adacore.com>
22281 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
22282 entity is an operator.
22284 2005-03-17 Thomas Quinot <quinot@adacore.com>
22286 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22287 spec, to make this predicate available to other units.
22289 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
22292 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
22293 when no distribution runtime library is available.
22295 * sem_res.adb, sem_dist.adb: Disable expansion of remote
22296 access-to-subprogram types when no distribution runtime library is
22298 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
22299 predicate available to other units.
22301 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22302 spec, to make this predicate available to other units.
22304 2005-03-17 Vincent Celier <celier@adacore.com>
22306 * make.adb (Insert_Project_Sources): Make sure the Q is always
22309 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
22310 the default for the tree, not the global default naming.
22312 * prj-proc.adb (Recursive_Process): No need to put the default naming
22313 in the project data, it's already there.
22315 2005-03-17 Doug Rupp <rupp@adacore.com>
22317 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
22319 * 5xcrtl.ads: Renamed to...
22320 * s-crtl-vms64.ads: ...this new file
22322 2005-03-17 Robert Dewar <dewar@adacore.com>
22325 * namet.adb (Copy_One_Character): Set proper wide character encoding
22326 for upper half character if we have upper half encoding.
22328 2005-03-17 Robert Dewar <dewar@adacore.com>
22330 * par.adb (Par): Improved msg for attempt to recompile predefined unit
22332 2005-03-17 Thomas Quinot <quinot@adacore.com>
22334 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
22335 tagged limited type, the TSS is a newly built renaming declaration:
22336 insert it using Set_TSS, not Copy_TSS.
22338 2005-03-17 Javier Miranda <miranda@adacore.com>
22340 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
22341 Try_Object_Operation): Analyze the object that is accessible
22342 through the prefix of the subprogram call before we apply
22343 the transformation of the object-operation notation.
22345 2005-03-17 Jose Ruiz <ruiz@adacore.com>
22347 * s-taprob.adb (Initialize_Protection): Initialize the protected
22348 object's owner to Null_Task.
22349 (Lock): If pragma Detect_Blocking is in effect and the caller of this
22350 procedure is already the protected object's owner then Program_Error
22351 is raised. In addition the protected object's owner is updated.
22352 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
22353 of this procedure is already the protected object's owner then
22354 Program_Error is raised.
22355 In addition the protected object's owner is updated.
22356 (Unlock): Remove the ownership of the protected object.
22358 * s-taprob.ads (Protection): Add the field Owner, used to store the
22359 protected object's owner.
22360 This component is needed for detecting one type of potentially blocking
22361 operations (external calls on a protected subprogram with the same
22362 target object as that of the protected action). Document the rest of
22365 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
22366 Initialize the protected object's owner to Null_Task.
22367 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
22368 caller of this procedure is already the protected object's owner then
22369 Program_Error is raised.
22370 Do not raise Program_Error when this procedure is called from a
22372 (Unlock_Entries): Remove the ownership of the protected object.
22373 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
22374 of this procedure is already the protected object's owner then
22375 Program_Error is raised.
22376 Do not raise Program_Error when this procedure is called from
22377 a protected action.
22379 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
22380 used to store the protected object's owner.
22382 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
22383 effect and this procedure (a potentially blocking operation) is called
22384 from whithin a protected action, Program_Error is raised.
22385 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
22386 and this procedure (a potentially blocking operation) is called from
22387 whithin a protected action, Program_Error is raised.
22389 2005-03-17 Vincent Celier <celier@adacore.com>
22390 Nicolas Setton <setton@adacore.com>
22392 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
22393 switch, not supported by the linker on Darwin. Add '_' before
22394 <library>init, as this character is added unconditionally by the
22396 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
22397 correct one ".dylib". This fixes detection of the archive files when
22398 building library projects.
22400 2005-03-17 Vincent Celier <celier@adacore.com>
22402 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
22403 -gnat83, -gnat95 and -gnat05.
22405 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
22407 * gnat_ugn.texi: Document gnatmem restriction
22409 2005-03-17 Thomas Quinot <quinot@adacore.com>
22411 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
22414 2005-03-17 Robert Dewar <dewar@adacore.com>
22416 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
22417 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
22418 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
22420 * casing.adb: Comment improvements
22422 2005-03-17 Pascal Obry <obry@adacore.com>
22424 * g-expect.adb: Minor reformatting.
22426 2005-03-15 Zack Weinberg <zack@codesourcery.com>
22428 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
22429 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
22432 2005-03-15 Vincent Celier <celier@adacore.com>
22434 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
22435 Add new parameter In_Tree to specify the project tree: needed
22436 by the project manager. Adapt to changes in project manager
22437 using new parameter In_Tree.
22439 2005-03-15 Jakub Jelinek <jakub@redhat.com>
22441 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
22442 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
22443 ada/bldtools to avoid make -jN failures.
22445 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22447 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
22448 to NULL_TREE on entry.
22450 2005-03-15 Robert Dewar <dewar@adacore.com>
22452 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22453 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22454 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22455 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22456 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22457 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
22458 system-interix.ads, system-solaris-sparc.ads,
22459 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22460 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
22461 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22462 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
22463 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
22464 Compiler_System_Version to be False.
22466 * opt.ads: Add new flag Opt.Address_Is_Private
22468 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
22469 Add new parameter Compiler_System_Version to avoid checking for
22470 completeness of parameters when compiler is compiling itself.
22471 Allows old versions of GNAT to be compiled with new compiler.
22473 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22475 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
22476 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
22478 (Stack_Base_Available): New flag.
22479 (Get_Page_Size): New overloaded functions imported from C.
22480 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
22481 PROT_ON, PROT_OFF): New constants.
22482 (mprotect): New function imported from C.
22483 (pthread_teb_t): New record type.
22485 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
22486 (Create_Task): Account for the Yellow Zone and the guard page.
22488 2005-03-15 Vincent Celier <celier@adacore.com>
22490 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22491 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22492 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
22493 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
22494 Library_File_Name_For): Add new parameter In_Tree
22495 to specify the project tree: needed by the project manager.
22496 Adapt to changes in project manager using new parameter In_Tree.
22497 Remove local imports, use functions in System.CRTL.
22499 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
22500 to use the project manager.
22502 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
22503 In_Tree to designate the project tree. Adapt to changes in the project
22504 manager, using In_Tree.
22506 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
22507 Copy_Interface_Sources): Add new parameter In_Tree to specify the
22508 project tree: needed by the project manager.
22509 (Build_Library): Check that Arg'Length >= 6 before checking if it
22510 contains "--RTS=...".
22512 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
22513 Library_File_Name_For): Add new parameter In_Tree to specify the
22514 project tree: needed by the project manager.
22516 * prj.ads, prj.adb: Major modifications to allow several project trees
22517 in memory at the same time.
22518 Change tables to dynamic tables and hash tables to dynamic hash
22519 tables. Move tables and hash tables from Prj.Com (in the visible part)
22520 and Prj.Env (in the private part). Move some constants from the visible
22521 part to the private part. Make other constants deferred.
22522 (Project_Empty): Make it a variable, not a function
22523 (Empty_Project): Add parameter Tree. Returns the data with the default
22524 naming data of the project tree Tree.
22525 (Initialize): After updating Std_Naming_Data, copy its value to the
22526 component Naming of Project Empty.
22527 (Register_Default_Naming_Scheme): Use and update the default naming
22528 component of the project tree, instead of the global variable
22530 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
22531 Tree is not defaulted, return the default naming data of the Tree.
22532 (Initial_Buffer_Size): Constant moved from private part
22533 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
22534 variables initialized in procedure Initialize.
22535 (Add_To_Buffer): Add two in out parameters to replace global variables
22536 Buffer and Buffer_Last.
22537 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
22539 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
22541 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22542 for the project tree.
22543 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
22544 constant at the beginning of the package spec, so that they cane be used
22545 in subprograms before their full declarations.
22546 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
22547 (Empty_Project): Add parameter of type Project_Node_Ref
22548 (Private_Project_Tree_Data): Add component Default_Naming of type
22550 (Buffer, Buffer_Last): remove global variables
22551 (Add_To_Buffer): Add two in out parameters to replace global variables
22552 Buffer and Buffer_Last.
22553 (Current_Packages_To_Check): Remove global variable
22554 (Empty_Name): Move to private part
22555 (No-Symbols): Make it a constant
22556 (Private_Project_Tree_Data): New type for the private part of the
22558 (Project_Tree_Data): New type for the data of a project tree
22559 (Project_Tree_Ref): New type to designate a project tree
22560 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22561 for the project tree.
22563 * prj-attr.ads: Add with Table; needed, as package Prj no longer
22564 imports package Table.
22566 * prj-com.adb: Remove empty, no longer needed body
22568 * prj-com.ads: Move most of the content of this package to package Prj.
22570 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
22571 designate the project node tree and Packages_To_Check to replace
22572 global variable Current_Packages_To_Check.
22573 Add new parameters In_Tree and Packages_To_Check to local subprograms,
22574 when needed. Adapt to changes in project manager with project node tree
22577 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
22578 project tree to most subprograms. Move tables and hash tables to
22579 private part of package Prj.
22580 Adapt to changes in project manager using project tree In_Tree.
22582 * prj-makr.adb (Tree): New constant to designate the project node tree
22583 Adapt to change in project manager using project node tree Tree
22585 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
22586 display the Library_Src_Dir and the Library_Dir.
22587 Add new parameter In_Tree to designate the project node tree to most
22588 subprograms. Adapt to changes in the project manager, using project tree
22590 (Check_Naming_Scheme): Do not alter the casing on platforms where
22591 the casing of file names is not significant.
22592 (Check): Add new parameter In_Tree to designate the
22594 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
22595 designate the project tree.
22596 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
22598 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
22599 to replace those that were in the private part of package Prj.
22600 Add new parameter In__Tree to designate the project node tree to most
22601 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22602 (Post_Parse_Context_Clause): When specifying the project node of a with
22603 clause, indicate that it is a limited with only if there is "limited"
22604 in the with clause, not necessarily when In_Limited is True.
22605 (Parse): Add new parameter In_Tree to designate the project node tree
22607 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
22608 designate the project node tree. Adapt to change in Prj.Tree with
22609 project node tree In_Tree.
22611 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
22612 tree In_Tree in the call to function Empty_Process to give its initial
22613 value to the project data Processed_Data.
22614 Add new parameters In_Tree to designate the project tree and
22615 From_Project_Node_Tree to designate the project node tree to several
22616 subprograms. Adapt to change in project manager with project tree
22617 In_Tree and project node tree From_Project_Node_Tree.
22619 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
22620 to replace those that were in the private part of package Prj.
22621 Add new parameter In_Tree to designate the project node tree to most
22622 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22624 * prj-tree.ads, prj-tree.adb: Add new parameter of type
22625 Project_Node_Tree_Ref to most subprograms.
22626 Use this new parameter to store project nodes in the designated project
22628 (Project_Node_Tree_Ref): New type to designate a project node tree
22629 (Tree_Private_Part): Change table to dynamic table and hash tables to
22630 dynamic hash tables.
22632 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
22633 the project tree to most subprograms. Adapt to changes in project
22634 manager using project tree In_Tree.
22636 * makegpr.adb (Project_Tree): New constant needed to use project
22639 2005-03-15 Olivier Hainque <hainque@adacore.com>
22641 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
22642 for sigactions with SA_SIGINFO set. Call
22643 __gnat_adjust_context_for_raise before raising, to perform the
22644 potentially required adjustments to the machine context for the GCC
22647 * raise.h (__gnat_adjust_context_for_raise): New prototype.
22649 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
22650 Adjust PC by one in the provided machine context.
22651 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
22652 so that the handler is passed the context structure to adjust prior to
22654 (__gnat_error_handler) HPUX: Adjust the signature to match what an
22655 SA_SIGINFO sigaction should look like. Call
22656 __gnat_adjust_context_for_raise before actually raising.
22657 (__gnat_adjust_context_for_raise): Default noop to help PC
22658 adjustments before raise from signal handlers.
22659 (__gnat_error_handler): Indirectly call a predicate function to
22660 determine if a condition should be resignaled or not.
22661 (__gnat_set_resignal_predicate): User interface to modify the predicate.
22662 (__gnat_default_resignal_p): Default GNAT predicate.
22664 2005-03-15 Doug Rupp <rupp@adacore.com>
22666 * adaint.c: Prefix #include of VMS system header files with vms/
22667 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
22668 Do not define a dummy function "convert_addresses" under Darwin,
22671 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
22674 2005-03-15 Nicolas Setton <setton@adacore.com>
22676 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
22679 2005-03-15 Robert Dewar <dewar@adacore.com>
22681 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
22684 * a-retide.ads: Minor comment changes
22686 2005-03-15 Robert Dewar <dewar@adacore.com>
22688 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
22689 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
22690 Realloc_For_Chunk to private part of package.
22691 New subprograms for AI-301
22693 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
22694 Get_Line procedure.
22695 Avoid unnecessary use of Get/Set_Wide_String
22697 2005-03-15 Robert Dewar <dewar@adacore.com>
22700 * a-stunau.ads, a-stunau.adb:
22701 Change interface to allow efficient (and correct) implementation
22702 The previous changes to allow extra space in unbounded strings had
22703 left this interface a bit broken.
22705 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
22707 * g-spipat.ads, g-spipat.adb: New interface for Get_String
22708 Minor reformatting (function specs)
22710 * g-spitbo.adb: New interface for Get_String
22712 * g-spitbo.ads: Minor reformatting
22714 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
22716 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
22718 2005-03-15 Javier Miranda <miranda@adacore.com>
22719 Robert Dewar <dewar@adacore.com>
22720 Thomas Quinot <quinot@adacore.com>
22721 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22723 * atree.ads, atree.adb: Add support for Elist24 field
22725 * atree.h: Fix wrong definition of Field27
22726 Add support for Elist16 field
22727 Add support for Elist24 field
22729 * einfo.ads, einfo.adb (Abstract_Interfaces,
22730 Set_Abstract_Interfaces): New subprograms.
22731 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
22733 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
22734 entities rather than a single node.
22735 (Is_Interface, Set_Is_Interface): New subprogram
22736 (First_Tag_Component): New syntesized attribute
22737 (Next_Tag_Component): New synthesized attribute
22738 (Write_Entity_Flags): Upgraded to write Is_Interface
22739 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
22740 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
22741 (Task_Body_Procedure): New subprogram to read this attribute.
22742 (Set_Task_Body_Procedure): New subprogram to set this attribute.
22743 (Has_Controlled_Component): Now applies to all entities.
22744 This is only a documentation change, since it always worked to apply
22745 this to other than composite types (yielding false), but now this is
22747 Update documentation on Must_Be_Byte_Aligned for new spec
22749 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
22750 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
22751 uses of the Access_Disp_Table attribute to reference the first dispatch
22752 table associated with a tagged type. As
22753 part of the implementation of abstract interface types,
22754 Access_Disp_Table has been redefined to contain a list of dispatch
22755 tables (rather than a single dispatch table).
22756 Similarly, upgrade all the references to Tag_Component by the
22757 new attribute First_Tag_Component.
22758 (Find_Inherited_TSS): Moved to exp_tss.
22759 Clean up test in Expand_N_Object_Declaration for cases
22760 where we need to do a separate assignment of the initial value.
22761 (Expand_N_Object_Declaration): If the expression in the
22762 declaration of a tagged type is an aggregate, no need to generate an
22763 additional tag assignment.
22764 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
22766 Bit packed array ops are only called if operands are known to be
22768 (Component_Equality): When returning an N_Raise_Program_Error statement,
22769 ensure that its Etype is set to Empty to avoid confusing GIGI (which
22770 expects that only expressions have a bona fide type).
22771 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
22772 determine the amount of data to be copied.
22774 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
22775 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
22776 INTERFACE_TYPE_DEFINITION ::=
22777 [limited | task | protected | synchronized] interface
22778 [AND interface_list]
22780 * par-ch3.adb (P_Type_Declaration): Modified to give support to
22782 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
22784 (P_Interface_Type_Definition): New subprogram that parses the new
22785 syntax rule of Ada 2005 interfaces
22786 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
22787 messages by the correct RENAMES (quotes removed).
22789 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
22790 attribute First_Tag_Component.
22792 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
22793 (Interface_List, Set_Interface_List): New subprograms.
22794 (Interface_Present, Set_Interface_Present): New subprograms.
22795 (Limited_Present, Set_Limited_Present): Available also in derived
22796 type definition nodes.
22797 (Protected_Present, Set_Protected_Present): Available also in
22798 record type definition and
22799 derived type definition nodes.
22800 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
22801 (Task_Present, Set_Task_Present): New subprogram.
22802 (Task_Body_Procedure): Removed.
22803 (Set_Task_Body_Procedure): Removed.
22804 These subprogram have been removed because the attribute
22805 Task_Body_Procedure has been moved to the corresponding task type
22806 or task subtype entity to leave a field free to store the list
22807 of interfaces implemented by a task (for AI-345)
22808 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
22809 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
22810 expression flag Do_Range_Check
22811 (Exception_Junk): Change to Flag7 to accomodate above change
22812 (Box_Present, Default_Name, Specification, Set_Box_Present,
22813 Set_Default_Name, Set_Specification): Expand the expression
22814 "X in N_Formal_Subprogram_Declaration" into the corresponding
22815 two comparisons. Required to use the csinfo tool.
22817 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
22818 "with string" given.
22820 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
22823 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
22826 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
22827 attribute Task_Body_Procedure rather than the old semantic field that
22828 was available in the task_type_declaration node.
22830 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
22831 interface type definitions.
22832 (P_Formal_Derived_Type_Definition): Modified to handle the list of
22835 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
22836 task type declaration.
22837 (P_Protected): Modified to handle the list of interfaces in a
22838 protected type declaration.
22840 2005-03-15 Doug Rupp <rupp@adacore.com>
22841 Vincent Celier <celier@adacore.com>
22843 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
22844 (Gen_Output_File_C): Likewise.
22845 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
22847 2005-03-15 Thomas Quinot <quinot@adacore.com>
22849 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
22850 is an N_Raise_Constraint_Error node, create a new copy of it without
22851 going through a call to Duplicate_Subexpr.
22853 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22854 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22855 Nicolas Setton <setton@adacore.com>
22856 Ed Schonberg <schonberg@adacore.com>
22862 * decl.c (gnat_to_gnu_field): Reject aliased components with a
22863 representation clause that prescribes a size not equal to the rounded
22864 size of their types.
22865 (gnat_to_gnu_entity, case E_Component): Always look at
22866 Original_Record_Component if Present and not the entity.
22867 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
22868 of tagged extension types by not making field for components that are
22870 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
22871 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
22872 expression to the type of the object when the object is constant.
22873 Reverse defer_debug_incomplete_list before traversing it, so that trees
22874 are processed in the order at which they were added to the list. This
22875 order is important when using the stabs debug format.
22876 If we are deferring the output of debug information, also defer this
22877 output for a function return type.
22878 When adding fields to a record, prevent emitting debug information
22879 for incomplete records, emit the information only when the record is
22881 (components_to_record): New parameter defer_debug.
22882 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
22883 (gnat_to_gnu_field_decl): New function.
22884 (substitution_list, annotate_rep): Call it.
22885 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
22886 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
22887 No longer update discriminants to not be a COMPONENT_REF.
22888 (copy_alias_set): Strip padding from input type; also handle
22889 unconstrained arrays properly.
22891 * gigi.h (write_record_type_debug_info): New function.
22892 Convert to use ANSI-style prototypes. Remove unused
22893 declarations for emit_stack_check, elab_all_gnat and
22894 set_second_error_entity.
22895 (gnat_to_gnu_field_decl): New decl.
22897 * utils.c (write_record_type_debug_info): New function.
22898 (finish_record_type): Delegate generation of debug information to
22899 write_record_type_debug_info.
22900 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
22901 (update_pointer_to): Fix pasto.
22902 (convert) <UNION_TYPE>: Accept slight type variations when
22903 converting to an unchecked union type.
22905 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
22906 replace the N_Freeze_Entity with a null statement.
22908 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
22909 within a constrained subcomponent of an enclosing record, place the
22910 freeze nodes in the scope stack entry for the enclosing record.
22911 (Undelay_Type): New Subprogram.
22912 (Set_Small_Size): Pass T, the type to modify; all callers changed.
22913 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
22914 within records; allow them to have freeze nodes if their base types
22917 * exp_util.adb (Remove_Side_Effects): Properly test for
22918 Expansion_Delayed and handle case when it's inside an
22919 N_Qualified_Expression.
22921 * sem_ch3.adb (Derived_Type_Declaration): New predicate
22922 Comes_From_Generic, to recognize accurately that the parent type in a
22923 derived type declaration can be traced back to a formal type, because
22924 it is one or is derived from one, or because its completion is derived
22926 (Constrain_Component_Type): If component comes from source and has no
22927 explicit constraint, no need to constrain in in a subtype of the
22929 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
22930 Minor change to propagate Is_Ada_2005 flag
22932 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
22933 Expansion_Delayed is False.
22934 (assoc_to_constructor): Ignore fields that have a
22935 Corresponding_Discriminant.
22936 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
22937 function returns "by target", dereference the target pointer using the
22938 type of the actual return value.
22939 <all>: Be prepared for a null gnu_result.
22940 (processed_inline_subprograms): Check flag_really_no_inline
22941 instead of flag_no_inline.
22942 (set_second_error_entity): Remove unused function.
22943 (gnat_to_gnu, case N_Selected_Component): Call
22944 gnat_to_gnu_field_decl.
22945 (assoc_to_constructor): Likewise.
22947 2005-03-15 Robert Dewar <dewar@adacore.com>
22948 Ed Schonberg <schonberg@adacore.com>
22949 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22951 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
22952 Must_Be_Byte_Aligned for cases where we do not need to use a
22953 System.Pack_nn unit.
22955 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
22957 Needed now that we do some processing for IN parameters as well. This
22958 may well fix some unrelated errors.
22959 (Expand_Call): Handle case of unaligned objects (in particular those
22960 that come from packed arrays).
22961 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
22962 renamed entity is an inherited operation, re-expand the call using the
22963 original operation, which is the one to call.
22964 Detect attempt to inline parameterless recursive subprogram.
22965 (Represented_As_Scalar): Fix to work properly with private types
22966 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
22967 accurate estimate. Yields True in far fewer cases than before,
22968 improving the quality of code that depends on this test.
22970 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
22971 over both visible and private declarations to remove them from tree,
22972 and mark subprograms declared in package as eliminated, to prevent
22973 spurious use in subsequent compilation of generic units in the context.
22975 * exp_util.ads: Minor cleanup in variable names
22977 * sem_eval.ads, sem_eval.adb: Minor reformatting
22978 (Compile_Time_Known_Bounds): New function
22980 2005-03-15 Ed Schonberg <schonberg@adacore.com>
22982 * exp_ch7.adb (Convert_View): Use base types of underlying types when
22983 determining whether an unchecked conversion is needed for the argument
22984 of an initialization call.
22986 2005-03-15 Ed Schonberg <schonberg@adacore.com>
22988 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
22989 that appears in the instantiation rather than the internal subtype
22990 generated in the wrapper package, to avoid anomalies in gigi when the
22991 target is derived from a private type whose full view is an access type.
22993 2005-03-15 Robert Dewar <dewar@adacore.com>
22995 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
22997 Add documentation to replace the use of this flag
22998 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
23001 2005-03-15 Thomas Quinot <quinot@adacore.com>
23003 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
23004 here from exp_attr so it can be shared between exp_attr and exp_dist.
23005 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
23006 all TSS names, not a subset thereof, and the previous name introduced
23007 an unnecessarily confusion that a distinction might exist between
23008 "OK" TSS names and some "not OK" TSS names.
23010 2005-03-15 Doug Rupp <rupp@adacore.com>
23012 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
23015 2005-03-15 Pascal Obry <obry@adacore.com>
23016 Eric Botcazou <ebotcazou@adacore.com>
23020 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
23021 when IN_RTS. This is to work around a bootstrap path problem.
23023 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
23024 table and pass it to __gnat_install_SEH_handler().
23025 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
23027 * lang.opt: Fix specification of -fRTS=.
23029 2005-03-15 Doug Rupp <rupp@adacore.com>
23030 Bernard Banner <banner@adacore.com>
23031 Vincent Celier <celier@adacore.com>
23032 Arnaud Charlet <charlet@adacore.com>
23035 This change works fine when gnatlib is built from the gcc directory,
23036 but does not work when using the libada Makefile, since GCC_FOR_TARGET
23037 is not passed to ada/Makefile.in, so more work is needed by a
23038 Makefile/configure expert.
23040 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
23041 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
23042 Setup gnatlink switch -M for x86_64 linux, as it is already setup
23044 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
23045 Run ranlib on libgccprefix.a
23046 Define PREFIX_OBJS for Darwin, to build libgccprefix.
23047 (ADA_INCLUDE_SRCS): Split Ada packages.
23049 2005-03-15 Robert Dewar <dewar@adacore.com>
23051 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
23053 * impunit.adb: Add GNAT.UTF_32
23055 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
23057 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
23058 now uses GNAT.UTF_32).
23060 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
23061 capabilities for categorizing characters using Unicode categories
23063 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23065 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
23066 instantiation that has been rewritten as a package body, retrieve spec
23067 to generate proper name for implicit_with_clause.
23068 (Install_Parents): Recognize a parent that is an instantiation but has
23069 been rewritten as a package declaration during analysis.
23071 2005-03-15 Javier Miranda <miranda@adacore.com>
23072 Ed Schonberg <schonberg@adacore.com>
23074 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
23075 parameter reported some error we immediately return. This improves the
23076 behaviour of the frontend in case of errors.
23077 (Install_Parent, Remove_Parent): Introduce new flag
23078 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
23079 ancestor of a generic child unit, when the child is being instantiated.
23080 (Inline_Instance_Body): If we are compiling the private
23081 part or the body of a child unit, restore the proper visibility of the
23082 parents after compiling the instance body.
23084 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23085 Javier Miranda <miranda@adacore.com>
23088 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
23089 of a private type, in which case it is underlying_type that denotes
23090 the proper task. Also modified to use the new entity attribute
23091 that is directly available in the task type and task subtype entities
23092 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
23093 arrays when other dimensions than the first are constrained by
23094 discriminants of an enclosing record.
23095 (Insert_Explicit_Dereference): If the prefix is an indexed component or
23096 a combination of indexed and selected components, find ultimate entity
23097 and generate the appropriate reference for it, to suppress spurious
23099 (Note_Possible_Modification): If an entity name has no entity, return.
23100 (Is_Variable): A function call never denotes a variable.
23101 (Requires_Transient_Scope): For record types, recurse only on
23102 components, not on internal subtypes that may have been generated for
23103 constrained components.
23105 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23107 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
23108 Eliminated as candidates for resolution. Both efficient, and avoids
23109 anomalies with operators declared in deleted code.
23110 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
23111 expansion is disabled (as when compiling a generic) to prevent spurious
23112 warnings on prefixes of selected components.
23114 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23116 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
23117 attached to a list before checking whether it appears in the private
23118 declarations of the current package.
23119 (Make_Inequality_Operator): Insert declaration in proper declarative
23120 list rather than just setting the Parent field, so that
23121 Is_Private_Declaration can handle it properly.
23123 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23125 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
23126 a renaming a body, check that the renamed subprogram in not intrinsic.
23127 (Find_Direct_Name): If several use_visible entities hide
23128 each other, and the context is a predefined file compiled through
23129 rtsfind, keep only the entity that comes from a predefined file.
23131 2005-03-15 Geert Bosch <bosch@adacore.com>
23133 * s-fatgen.adb (Valid): Extend special exceptions to account for long
23134 long float padding to also cover AMD64 and IA64.
23136 2005-03-15 Gary Dismukes <dismukes@adacore.com>
23138 * s-imgwch.adb: Add with and use of Interfaces.
23139 (Img_Wide_Character): Change type of Val to Unsigned_16.
23140 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
23142 2005-03-15 Matthew Gingell <gingell@adacore.com>
23144 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
23146 2005-03-15 Robert Dewar <dewar@adacore.com>
23148 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
23150 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
23152 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
23154 2005-03-15 Robert Dewar <dewar@adacore.com>
23156 * s-bitops.adb, s-bitops.ads,
23157 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
23158 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
23159 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
23160 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
23161 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
23162 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
23163 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
23164 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
23167 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
23169 * utils2.c (build_binary_op): Fix typo.
23171 2005-03-15 Doug Rupp <rupp@adacore.com>
23173 * s-crtl.ads (popen,pclose): New imports.
23175 2005-03-15 Cyrille Comar <comar@adacore.com>
23177 * comperr.adb (Compiler_Abort): remove references to obsolete
23178 procedures in the bug boxes for various GNAT builds.
23180 2005-03-15 Vincent Celier <celier@adacore.com>
23182 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
23184 2005-03-15 Geert Bosch <bosch@adacore.com>
23185 Arnaud Charlet <charlet@adacore.com>
23186 Robert Dewar <dewar@adacore.com>
23187 Cyrille Comar <comar@adacore.com>
23188 Sergey Rybin <rybin@adacore.com>
23190 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
23191 too specific and long-winded to be appropriate for the GNAT User's
23193 Warn about use of GCC switches not documented in the GNAT User's Guide,
23194 as these may cause generated code to not conform to Ada semantics.
23195 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
23196 Add documentation for -gnat95 and -gnat05 switches
23197 Remove paragraph documenting obsolete way to refer to third party
23199 Add a few references to Ada_05 that were missing.
23200 Update documentation on -gnatZ/-gnatL.
23201 Document limitation when using -m64 under Solaris.
23202 Change the "Name Casing" subsection of the pretty-printer section
23203 according to the changes in the dictionary processing.
23205 * gnat_rm.texi: Document the Ada_05 pragma.
23206 Section on record representation clauses describes the new more
23207 relaxed rules about placement of large packed bit array components.
23208 Add documentation of GNAT.UTF_32
23210 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
23212 * misc.c (gnat_post_options): Turn off structural
23215 2005-03-08 Laurent Guerby <laurent@guerby.net>
23217 * system-linux-sparc.ads: Fix typo in previous commit.
23219 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
23220 Laurent Guerby <laurent@guerby.net>
23223 * system-linux-sparc.ads: New.
23224 * Makefile.in: Add sparc linux entry.
23226 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
23228 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
23229 parameters as unused.
23231 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
23232 Partial merge from libada-gnattools-branch:
23234 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
23235 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
23236 into code in gnattools/Makefile.in. Remove direct dependencies on
23237 stamp-tools by tools clauses.
23238 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
23239 * config-lang.in: Add gnattools to $lang_dirs.
23241 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
23244 * utils.c (gnat_type_for_mode): Return null instead of ICE because
23245 we asked for an unknown mode.
23247 2005-02-12 Richard Henderson <rth@redhat.com>
23249 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
23250 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
23252 2005-02-10 Andreas Jaeger <aj@suse.de>
23254 * init.c (__gnat_initialize): Mark parameter as unused.
23256 2005-02-09 Doug Rupp <rupp@adacore.com>
23258 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
23259 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
23261 2005-02-09 Doug Rupp <rupp@adacore.com>
23263 * gnatchop.adb (dup, dup2),
23264 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
23266 * gnatlbr.adb (mkdir),
23267 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
23269 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
23271 2005-02-09 Doug Rupp <rupp@adacore.com>
23273 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
23275 2005-02-09 Robert Dewar <dewar@adacore.com>
23276 Thomas Quinot <quinot@adacore.com>
23277 Javier Miranda <miranda@adacore.com>
23278 Pascal Obry <obry@adacore.com>
23279 Ed Schonberg <schonberg@adacore.com>
23280 Doug Rupp <rupp@adacore.com>
23281 Gary Dismukes <dismukes@adacore.com>
23282 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23284 * g-zstspl.ads: New file.
23286 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
23288 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
23290 Add definition of Wide_Wide_Space for AI-285
23292 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
23293 interface (to support Ada 95 and Ada 2005 units).
23294 Add Unbounded_IO files
23295 Add entries for Wide_Wide packages for AI-285
23296 Add list of containers packages to Ada 2005 unit list
23298 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
23299 support new Unbounded_IO package cleanly.
23301 * g-utf_32.ads, g-utf_32.adb: New files.
23303 * Makefile.rtl: Add entry for g-utf_32
23304 Add new files for Unbounded_IO
23305 Adjust make file for new AI-285 wide wide packages
23306 Add AI-302 containers to the run time.
23308 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
23309 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
23310 subprograms for AI-301.
23312 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
23314 * a-stunau.ads: Minor comment correction
23316 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
23318 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
23319 (Check_RPC): Update to match changes in expanded code.
23320 Clean up unused entity.
23322 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
23323 was not taken into account.
23324 This includes proper initialization with Normalize_Scalars.
23325 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
23326 normalize scalars cases (particularly the latter) to do a better job
23327 of finding invalid representations.
23329 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
23331 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
23334 * exp_dist.adb: Add support for wide wide character type
23335 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
23336 private part, generate stub bodies at the end of the private part,
23337 not the visible part.
23338 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
23340 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
23341 generic wrapper to execute final processing after completing the
23342 expansion of the RPC receiver for an RACW.
23344 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
23345 packages and attributes.
23346 (Preset_Names): Addition of the new reserved words of Ada 2005,
23347 that is interface, overriding and synchronized.
23348 (Get_Pragma_Id): Give support to the use of the new reserved word
23349 "interface" as a pragma name.
23350 (Is_Pragma_Name): Give support to the use of the new reserved word
23351 "interface" as a pragma name.
23352 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
23353 attribute implementation.
23355 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
23356 checks to entities that are output parameters of Asm operations.
23357 Handle the Stream_Size attribute.
23358 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
23360 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
23362 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
23363 for second parameter being 0.0.
23364 Add support for wide wide character type.
23365 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
23367 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
23368 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
23369 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
23370 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
23371 for wide wide character cases.
23373 * cstand.adb: Create entities for Wide_Wide_Character and
23376 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
23377 accordance with AI-258.
23378 Add new declarations for 16/32 bit C character types (Part of AI285)
23380 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
23381 (Obsolescent_Warning): New field
23382 (Rep_Clause): New local subprogram used to share code. Returns the rep
23383 clause for which the name is given in parameter.
23384 (Has_Stream_Size_Clause): New routine.
23385 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
23386 (Address_Clause): Implementation is now using Rep_Clause.
23387 (Alignment_Clause): Idem.
23388 (Size_Clause): Idem.
23390 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
23391 entity in non-Ada 2005 mode and generate warning.
23393 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
23394 (Prag): Code cleanup. Remove old gnat pragma "overriding"
23396 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
23397 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
23398 on the named unit if the pragma is not in the current compilation unit,
23399 so that elaboration calls in the current unit can set up an elaboration
23400 dependency on the named unit, as needed.
23401 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
23402 subprogram as well as for subprograms declared within a package.
23403 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
23406 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
23407 to z) to avoid some instances of duplication for Wide_Wide packages.
23409 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
23412 * scn.adb: Char_Literal_Value field is now a Uint
23414 * scng.adb: Significant rewrite to handle new Ada 2005 features
23415 allowing wide and wide wide characters in program text, e.g. for
23416 identifiers, as described in AI-285.
23417 (Set_Reserved): New procedure, makes setting up keywords cleaner.
23418 (Initialize_Scanner): Register the new reserved words of Ada 2005.
23419 (Scan): Give support to the new reserved words.
23421 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
23422 warning notifying that interface, overriding, and synchronized are
23423 new reserved words.
23424 (P_Pragma): Allow the use of the new reserved word "interface" as
23427 * gnatls.adb, gnatbind.adb,
23428 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
23429 identifiers named "interface" to "SAL_Interface".
23431 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
23432 (Structured Exception handling).
23433 (Gen_Main_C): Idem.
23436 (Gen_Main_Ada): Set the default exit code if specified.
23437 (Gen_Main_C): Likewise.
23439 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
23440 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
23442 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
23445 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
23446 has a collision with the new Ada 2005 "interface" reserved word.
23448 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
23449 generate a warning notifying that interface, overriding, and
23450 synchronized are new reserved words.
23452 * scans.ads (Token_Type): Addition of the tokens corresponding to the
23453 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
23454 and Tok_Synchronized.
23456 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
23457 "dispatching" rather than "primitive" operations, since dispatching
23458 calls are now allowed to abstract formal subprograms (which are not
23460 Char_Literal_Value field is now a Uint
23461 (Resolve_Slice): If the prefix is an access to an unconstrained array,
23462 compute the actual subtype of the designated object to impose the proper
23464 (Resolve_Selected_Component): Do not insert an access check if the
23465 prefix is an access type: such a node is expanded into an explicit
23466 dereference, on which the access check is performed anyway. Removes
23467 expensive duplicate checks.
23468 (Resolve_Call): Use new flag Is_Obsolescent and field
23469 Obsolescent_Warning so that pragma Obsolescent works on library
23471 Add support for wide wide character type
23472 (Resolve_Allocator): Replace the error message on wrong null-exclusion
23473 value by a warning message.
23474 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
23475 as fixed-point, and one of the operands is non-static and universal, it
23476 can only be an illegal exponentiation operation, in which case there is
23477 no real value to retrieve.
23479 * exp_strm.adb: Add support for wide wide character type
23480 (Build_Elementary_Input_Call): Compute the size of the stream element by
23481 querying the rep chain to find the Stream_Attribute attribute value.
23482 (Build_Elementary_Write_Call): Ditto.
23484 * sem_aggr.adb: Char_Literal_Value field is now a Uint
23485 Add support for wide wide character type
23486 Replace the error messages on wrong null-exclusion value by warnings
23487 as described in Ada 2005.
23488 (Resolve_Extension_Aggregate): Document the fact that the error
23489 message on class-wide expressions in extensions aggregates.
23491 * sem_case.adb: Add support for wide wide character type
23493 * sem_ch13.adb: Add support for wide wide character type
23494 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
23496 * sem_ch3.adb: Add support for wide wide character type
23497 (Process_Subtype): If constraint is illegal for the type, set Ekind of
23498 now-useless Itype, to prevent cascaded errors on a compiler built
23501 * sem_ch8.adb: Add with and use of Sem_Disp.
23502 (Analyze_Subprogram_Renaming): Replace unclean uses of
23503 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
23504 of Corresponding_Spec to Empty).
23505 (Attribute_Renaming): Replace use of Corresponding_Spec with
23506 Corresponding_ Formal_Spec and simplify condition.
23507 (Use_One_Package): Check that scope of homonym of identifier is defined,
23508 before checking whether it is a wrapper package.
23509 Add support for wide wide character type
23511 * sem_eval.adb: Add support for wide wide character type.
23512 (Eval_Arithmetic_Op): Check for compile time known signed integer
23513 overflow in the non-static case.
23514 (Subtypes_Statically_Match): A formal scalar type and its base type do
23515 not statically match.
23517 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
23518 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
23520 (Unit_Declaration_Node): Ditto.
23521 (Is_Variable_Prefix): For the case of an indexed component whose prefix
23522 has a packed array type, the prefix has been rewritten into a type
23523 conversion. Determine variable-ness from the converted expression.
23524 Handle wide wide character cases.
23526 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
23528 * stringt.ads, stringt.adb: Handle full UTF-32 range.
23529 Remove ["0A"] from comment, since it can look like a line terminator.
23530 Currently we don't permit this, but this is under discussion by the
23531 ARG, and it is easy enough to use a different example.
23533 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
23534 handling UTF-32 encoding for wide wide character.
23535 Implement new brackets coding ["hhhhhhhh"]
23536 Add UTF-8 encodings for full UTF-32 range
23538 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
23540 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
23541 bit range Add full UTF-32 support.
23542 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
23543 notify that constraint error will be raised at run-time
23544 because a null value is assigned to a null-excluding object.
23545 Remove some obsolete declarations and make Char_Code
23548 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
23549 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
23550 Rcheck subprograms.
23552 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
23553 wrong null-exclusion value by a warning message.
23554 (Enable_Range_Check): Do range check if the prefix is an
23555 explicit dereference whose designated object is an unconstrained array.
23556 Current algorithm for removing duplicate checks is over-eager in this
23559 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
23560 null-exclusion value by a warning message
23562 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
23563 completely. Add support for Uint2 field
23565 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
23566 exp_prag.adb: Char_Literal_Value field is now a Uint.
23568 * exp_util.adb (Insert_Actions): Replace
23569 N_Formal_Subprogram_Declaration by
23570 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
23571 Char_Literal_Value field is now a Uint.
23573 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
23574 defined for subprogram renaming declarations. When set, the field
23575 indicates the defining entity of a corresponding formal subprogram
23576 when the renaming corresponds to a formal subprogram association in an
23578 (Set_Corresponding_Formal_Spec): New procedure to return
23579 Corresponding_Formal_Spec field.
23580 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
23581 (which is now a subtype).
23582 Char_Literal_Value field is now a Uint
23584 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
23585 pointer to the base of the dispatch table.
23586 Minor changes to comments.
23587 (Controlling_Type): New function for determining the tagged type
23588 associated with a tagged primitive subprogram.
23589 (Expand_Dispatching_Call): Add support for a controlling actual that is
23590 directly a value of type Ada.Tag rather than a tagged object.
23592 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
23593 describing the new layout.
23594 (Dispatch_Table): The expander computes the actual array size, allocates
23595 the Dispatch_Table record accordingly, and generates code that displaces
23596 the base of the record after the Typeinfo_Ptr component. The access to
23597 these components is done by means of local functions.
23598 (Offset_To_Top): New function.
23599 (Typeinfo_Ptr): New function.
23600 (Get_TSD): Modified to access the new position of the TSD.
23601 (Set_TSD): Modified to save the TSD in its new position.
23603 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
23604 case of formal abstract subprograms. Add check and message for -gnat05.
23607 * sem_ch12.adb: Add with and use for Sem_Disp.
23608 (Analyze_Associations): Minor change from "=" to "in" for use of
23609 N_Formal_Subtype_Declaration (which is now a subtype).
23610 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
23611 N_Formal_Subtype_Declaration (which is now a subtype).
23612 (Analyze_Formal_Subprogram): Add handling for
23613 N_Formal_Abstract_Subprogram, marking the formal as abstract and
23614 dispatching, setting the controlling status of the formal parameters
23615 and result, and issuing an error if there is no controlling type for
23616 the formal subprogram.
23617 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
23618 which is an unclean use of that field, we set the new field
23619 Corresponding_Formal_Spec to make the formal subprogram available to
23620 processing in Analyze_Subprogram_Declaration.
23621 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
23622 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
23623 Constrained, so that it is is does not statically match its anonymous
23626 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
23627 abstract formal subprograms in error check for functions returning
23628 abstract types. Set scope of new designator for
23629 a parameterless subprogram, so that it is available when checking the
23630 body for nested subprograms, before full analysis of said body.
23631 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
23632 subprogram only if inner one comes from source.
23633 (Analyze_Function_Call): If the call is given in object notation, the
23634 analysis of the name rewrites the node and analyzes it with the proper
23635 argument list. After analyzing the name, if the call has been rewritten
23636 and the result type is set, no further analysis is needed.
23637 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
23638 mark in function specification, in a context where the formals are
23639 visible and hide outer homographs.
23641 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
23642 as the tagged type for the cases of abstract formal subprograms and
23643 renamings of those. Clean up spec comments.
23644 (Check_Dispatching_Context): Add error message to indicate "abstract
23645 procedure", covering the case of a call to a formal abstract procedure
23646 that has statically tagged operands.
23647 (Check_Dispatching_Call): Check for the case of an actual given by
23648 a tag-indeterminate function call whose type is an ancestor of the
23649 containing call's associated tagged type. This situation can occur
23650 for inherited primitives with function defaults. In this case we
23651 use the tagged type's tag directly as the controlling argument for
23653 (Expand_Call): Name change on call to Expand_Dispatch_Call.
23655 * sprint.adb (Sprint_Node_Actual): Split
23656 N_Formal_Subprogram_Declaration into two alternatives for the new
23657 cases N_Formal_Abstract_Subprogram_Declaration and
23658 N_Formal_Concrete_Subprogram_Declaration.
23659 Char_Literal_Value field is now a Uint.
23661 * trans.c: Get rid of junk Uint2 reference.
23662 Char_Literal_Value field is now a Uint.
23663 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
23664 (gigi): Correct third arg to gimplify_body.
23666 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
23667 (TYPE_LANG_FLAG_0): Check for record or union.
23669 * treepr.adb: Char_Literal_Value field is now a Uint
23671 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
23674 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
23675 Add full UTF-32 support
23676 Char_Code is now 32 bits
23678 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
23679 wide character UTF_32 line terminators.
23680 Initialize Main_Source_File to avoid error when no main
23683 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
23684 (Main_Source_File) when no main source has been loaded, to avoid
23687 2005-02-09 Robert Dewar <dewar@adacore.com>
23689 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
23690 Fix name of Set routine
23692 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
23695 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
23696 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
23699 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
23700 forms of Get_Line subprograms for AI-301.
23702 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23703 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
23704 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
23705 a-stwima.ads: Minor reformatting.
23707 2005-02-09 Doug Rupp <rupp@adacore.com>
23708 Thomas Quinot <quinot@adacore.com>
23710 * adaint.c, adaint.h
23711 [VMS] (to_ptr32): New function.
23712 (MAYBE_TO_PTR32): New macro.
23713 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
23715 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
23716 [VMS] (#define fork()): Remove since unneccessary.
23717 (__gnat_set_close_on_exec): New routine to support
23718 GNAT.OS_Lib.Set_Close_On_Exec.
23720 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
23721 the parent side as close-on-exec so that they are not inherited by the
23724 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
23725 set or clear the FD_CLOEXEC flag on a file descriptor.
23727 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
23728 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23732 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
23733 on the field if Pragma Component_Alignment (Storage_Unit).
23734 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
23735 side-effects as if it were a constant; also make SAVE_EXPR to protect
23737 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
23739 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
23740 (components_to_record): Test it.
23741 Fix improper usage of REFERENCE_CLASS_P.
23743 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
23746 * utils2.c: Minor reformatting.
23748 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
23749 handle other cases like RECORD_TYPE.
23751 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
23753 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23755 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
23756 component of an array of arrays in an assignment context, and the
23757 aggregate has component associations that require sliding on
23758 assignment, force reanalysis of the aggregate to generate a temporary
23759 before the assignment.
23760 (Must_Slide): Make global to the package, for use in Gen_Assign.
23762 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23764 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
23765 unchecked union with no inferable discriminants, return a
23766 Raise_Program_Error node, rather than inserting it at the point the
23768 (Expand_Record_Equality, Component_Equality): Handle properly the case
23769 where some subcomponent is an unchecked union whose generated equality
23770 code raises program error.
23772 2005-02-09 Doug Rupp <rupp@adacore.com>
23774 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
23775 [VMS] (#define exit hack): Remove.
23777 2005-02-09 Pascal Obry <obry@adacore.com>
23778 Arnaud Charlet <charlet@adacore.com>
23780 * init.c (__gnat_initialize): Add a new parameter eh which contains the
23781 address of the exception registration. The Win32 version of this
23782 routine calls __gnat_install_SEH_handler() to initialize the SEH
23783 (Structured Exception Handling) handler.
23784 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
23785 SEH (Structured Exception Handling) now.
23786 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
23787 (__gnat_initialize for ppc-vxworks): Adjust comments and the
23788 preprocessor condition protecting the call to the extra eh setup
23789 subprogram, which is only available for the ppc target.
23790 (__gnat_clear_exception_count): replaced reference to
23791 variable taskIdCurrent by call to taskIdSelf(), cleaner.
23793 * seh_init.c: New file.
23795 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
23796 (GNATBIND_OBJS): Idem.
23798 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
23799 routine takes a new parameter (a pointer to the exception registration
23800 for the SEH (Structured Exception Handling) support.
23802 * raise.h: (__gnat_install_SEH_handler): New prototype.
23803 Update copyright notice.
23805 * s-tassta.adb (Task_Wrapper): Declare the exception registration
23806 record and initialize it by calling __gnat_install_SEH_handler.
23808 2005-02-09 Vincent Celier <celier@adacore.com>
23810 * make.adb (Gnatmake): Do not fail when the main project has no object
23813 2005-02-09 Doug Rupp <rupp@adacore.com>
23815 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
23816 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
23817 [VMS]: Add translations for g-enblsp.adb.
23819 * s-asthan-vms.adb: Removed.
23820 * s-asthan-vms-alpha.adb: Added.
23822 2005-02-09 Pascal Obry <obry@adacore.com>
23824 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
23825 (LIBGNAT_OBJS): Add seh_init.o.
23827 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23830 * Makefile.in: Link all gnat tools with -static-libgcc, since
23831 -shared-libgcc is now used by default on some systems (e.g. linux with
23833 Remove references to Makefile.prolog/generic, no longer used.
23835 2005-02-09 Vincent Celier <celier@adacore.com>
23837 * prj-makr.adb (Process_Directory): Put file name in canonical case
23838 before matching against the patterns.
23839 If gnatname has been invoked as <prefix>-gnatname
23840 then invoke the compiler as <prefix>-gcc, not just "gcc".
23842 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23844 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
23845 with expansion disabled. The actual subtype is needed among other
23846 places when the selected component appears in the context of a loop
23847 bound, and denotes a packed array.
23848 (Operator_Check): Always use the first subtype in the
23849 error message, to avoid the appearance of internal base types.
23850 (Transform_Object_Operation): Copy each actual in full
23851 to the parameter associations of the constructed call, rather than
23852 using the shallow copy mechanism of New_Copy_List. This ensures that
23853 the chaining of named associations is done properly.
23854 (Complete_Object_Operation): Rewrite node, rather than
23855 replacing it, so that we can trace back to the original selected
23858 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
23859 and calls that use object notation, if the called function is not
23860 declared in a withed unit, place the elaboration constraint on the
23861 unit in the context that makes the function accessible.
23862 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
23863 imposes an elaboration constraint between two packages.
23865 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23867 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
23868 views of a private type after handling its private dependents, to
23869 maintain proper stack discipline between entry and exit from the
23872 2005-02-09 Cyrille Comar <comar@adacore.com>
23874 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
23875 Minor reformatting.
23877 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23879 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
23880 fields for foreign threads.
23882 2005-02-09 Doug Rupp <rupp@adacore.com>
23884 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
23885 recursion warnings when compiled with -gnatdm.
23887 2005-02-09 Robert Dewar <dewar@adacore.com>
23889 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
23890 Slight fix to documentation of -gnaty with no parameters
23892 * xr_tabls.ads: Add ??? comment for missing overall comment
23894 * xsinfo.adb: Make default file name be sinfo.h, since this is what
23895 we now use by default.
23897 * xsnames.adb: Adjust end of file test to look for five space followed
23898 by '#' instead of six spaces. The format of xsnames.adb was modified
23899 in the last update.
23901 * a-numeri.ads: Add reference to AI-388 for greek letter pi
23904 * clean.adb: Minor reformatting.
23906 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
23907 gnatname.adb: Minor reformatting
23908 Add 2005 to copyright output when utility is run
23910 * csets.adb: Eliminate obsolete comment
23912 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
23915 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
23917 2005-02-09 Sergey Rybin <rybin@adacore.com>
23919 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
23920 the difference between compact and incompact layout and add the record
23921 representation clause to the example illustrating different layouts.
23922 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
23923 component clauses").
23925 2005-02-09 Florian Villoing <villoing@adacore.com>
23927 * gnat_ugn.texi: Fix typos.
23928 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
23930 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
23931 in the generated documentation.
23933 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23935 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
23937 Update linker wrapper when linking with non GNU C++.
23939 2005-02-09 Pascal Obry <obry@adacore.com>
23942 Document the procedure to debug the DllMain routine on Windows.
23943 Add note about -funwind-tables and mixed Ada and C/C++ programming in
23945 Document new BIND qualifer /RETURN_CODES=VMS.
23947 2005-02-09 Ben Brosgol <brosgol@adacore.com>
23949 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
23950 Edited gnatmetric chapter
23952 2005-02-09 Robert Dewar <dewar@adacore.com>
23955 Changes to document new wide wide character support
23957 Update documentation on Normalize_Scalars and Initialize_Scalars
23959 2005-02-09 Pascal Obry <obry@adacore.com>
23961 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
23963 2005-02-09 Jose Ruiz <ruiz@adacore.com>
23965 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
23966 from the VxWorks kernel) that is needed for getting the active
23967 priority of the different tasks.
23969 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
23970 Use a pragma Elaborate_Body in the spec file instead.
23971 Noticed by code reading.
23973 2005-02-09 Thomas Quinot <quinot@adacore.com>
23975 * exp_util.ads: Minor correction in comment.
23977 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23979 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
23980 since this procedure is now too complex to be worth inlining.
23982 2005-02-09 Richard Henderson <rth@redhat.com>
23984 * utils.c (gnat_define_builtin): Remove.
23985 (gnat_install_builtins): Use build_common_builtin_nodes.
23987 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23989 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23990 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
23991 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
23992 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
23993 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
23994 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
23995 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
23996 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
23997 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
23998 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
23999 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
24000 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
24001 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
24002 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
24003 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
24004 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
24005 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
24006 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
24007 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
24008 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
24009 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
24010 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
24011 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
24012 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
24013 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
24014 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
24015 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
24016 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
24017 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
24018 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
24019 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
24020 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
24021 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
24022 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
24025 2005-01-27 Laurent Guerby <laurent@guerby.net>
24027 * Makefile.in: Fix a-intnam.ads from previous commit,
24028 add 2005 to copyright.
24029 * a-intman-rtems.ads: Renamed to...
24030 * a-intnam-rtems.ads:
24032 2005-01-27 Laurent Guerby <laurent@guerby.net>
24034 * Makefile.in: Rename GNAT RTEMS specific files.
24035 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
24036 5rosinte.ads, 5rparame.adb: Replaced by files below.
24037 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
24038 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
24040 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
24041 Laurent Guerby <laurent@guerby.net>
24044 * 5rosinte.ads: Add No_Key constant.
24045 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
24046 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
24048 2005-01-26 Laurent Guerby <laurent@guerby.net>
24051 * i-cobol.adb (Valid_Numeric): Handle zero length case.
24053 2005-01-20 Richard Henderson <rth@redhat.com>
24055 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
24056 a-intnam-linux.ads and system-linux-alpha.ads.
24057 * a-intnam-linux-alpha.ads: Remove file.
24058 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
24059 * system-linux-alpha.ads: New file.
24061 2005-01-18 Jakub Jelinek <jakub@redhat.com>
24064 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
24065 set to the new string.
24067 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
24069 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
24072 2005-01-18 Richard Henderson <rth@redhat.com>
24074 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
24075 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
24077 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
24079 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
24081 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
24082 (GCC_ZCX_Support): Likewise.
24084 2005-01-11 Bastian Blank <waldi@debian.org>
24086 * system-linux-s390.ads: Define Preallocated_Stacks.
24087 * system-linux-s390x.ads: Likewise.
24089 2005-01-04 Arnaud Charlet <charlet@adacore.com>
24091 * gnat_ugn.texi: Fix texi errors with null variables.
24093 2005-01-03 Thomas Quinot <quinot@adacore.com>
24095 * gen-soccon.c: New utility program to generate g-soccon.ads
24098 * socket.c, gsocket.h: Split inclusion of system header files into a
24099 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
24101 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
24102 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24103 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
24104 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
24105 should not be edited by hand anymore, but should be regenerated using
24108 2005-01-03 Robert Dewar <dewar@adacore.com>
24109 Ed Schonberg <schonberg@adacore.com>
24110 Vincent Celier <celier@adacore.com>
24112 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
24113 on/off, since this is an obsolescent feature, for which we now generate
24116 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
24117 warning mode is set and obsolescent usage of this attribute occurs.
24118 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
24119 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
24120 predates, and partly motivates, the adoption of the AI.
24121 Implement new Ada 2005 attribute Mod
24123 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
24126 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
24128 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
24129 pragma restrictions.
24130 New entry for Ada 2005 attribute Mod.
24133 Add recognition of new pragma Restrictions No_Dependence
24134 Recognize restriction No_Obsolescent_Features at parse time
24136 * bcheck.adb: Add circuitry for checking for consistency of
24137 No_Dependence restrictions.
24139 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
24142 * restrict.ads, restrict.adb: Add subprograms to deal with
24143 No_Dependence restrictions.
24145 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
24148 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
24149 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
24151 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
24152 dummy parameter to scng instantiation.
24153 Needed for new restriction No_Obsolescent_Features
24155 * scn.adb: (Obsolescent_Check): New procedure
24156 Needed for new restriction No_Obsolescent_Features
24158 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
24159 specified by AI-285, needed for implementation of AI-388 (adding greek
24160 pi to Ada.Numerics).
24161 Add new generic formal to scng, needed for new restriction
24162 No_Obsolescent_Features.
24164 * s-rident.ads: Add new restriction No_Obsolescent_Features.
24166 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
24167 restrictions lines.
24168 (Scan_ALI): When finding an unexpected character on an R line, raise
24169 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
24170 Ignore_Errors is True, default restrictions are set and scanning of the
24171 ALI file continues with the next line. Also, when Bad_R_Line is raised
24172 and Ignore_Errors is True, skip to the end of le line.
24174 * sem_ch10.adb: Check that explicit with's do not violate
24175 No_Dependence restrictions.
24176 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
24177 illegal context clauses containing child units of instance.
24179 * sem_prag.adb: Processing and checking for new No_Dependence
24181 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
24182 analyze and check the External argument.
24184 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
24186 2005-01-03 Robert Dewar <dewar@adacore.com>
24188 * atree.adb: Add a fifth component to entities
24189 This allows us to add 32 flags and four new fields
24191 * atree.ads: Add a fifth component to entities
24192 This allows us to add 32 flags and four new fields
24194 * einfo.ads, einfo.adb: Document new fields and new flags now available
24195 Add routines for printing new fields
24197 * treepr.adb: Call routines to print out additional fields if present
24199 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24201 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
24202 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
24204 * Makefile.in: Add support to build shared Ada libraries on solaris x86
24205 Remove gpr2make, replaced by gprmake.
24206 Remove references to gnatmem and libaddr2line.
24207 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
24208 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
24209 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
24210 a-numaux-darwin.ads and a-numaux-darwin.adb
24211 Enable mlib-tgt-lynxos.adb on lynxos.
24213 * Make-lang.in: Remove rules for gpr2make.
24214 When generating sdefault.adb, do not call Relocate_Path
24215 on S3 for function Target_Name, as it is not a path.
24216 Remove references to gnatmem and libaddr2line.
24218 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
24221 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
24223 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
24224 address is incompatible with its base type alignment constraints when
24225 this can be decided statically.
24227 2005-01-03 Olivier Hainque <hainque@adacore.com>
24229 * decl.c (compatible_signatures_p): New function. The intended purpose
24230 is to check if two function signatures for a call-site and a callee are
24231 compatible enough for the call to be valid. The underlying purpose is
24232 to check if a call to a mapped builtin is using the right interface.
24233 The current code actually does not check antyhing - this a placeholder
24234 for future refinements.
24235 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
24236 builtin calls for convention Intrinsic.
24238 * gigi.h (builtin_decl_for): Declare (new function).
24240 * utils.c (gnat_install_builtins): Install the target specific builtins.
24241 (builtin_decl_for): New function, provide a dummy body for now.
24243 2005-01-03 Geert Bosch <bosch@adacore.com>
24245 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
24246 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
24247 (Pred): Implement in terms of Succ.
24249 * trans.c (convert_with_check): Reimplement conversion of float to
24252 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24253 Vincent Celier <celier@adacore.com>
24255 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
24256 bounds can be negative, and must be declared Int, not Nat.
24258 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
24259 array is checked after using the index in the array.
24261 * makegpr.adb (Add_Switches): Check if there is a package for the
24262 processor. If there is no package, do not look for switches.
24264 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24266 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
24267 generation of predefined stream operations (specs and bodies) should
24268 proceed. Under various restrictions these subprograms must not be
24271 2005-01-03 Thomas Quinot <quinot@adacore.com>
24274 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
24275 amount of PCS-specific code in RACW stubs generation.
24276 (Copy_Specification): Set Etype on copied formal parameter entities, as
24277 this information is needed for PolyORB stubs generation.
24278 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
24279 variable Dynamic_Async.
24280 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
24281 (Build_RPC_Receiver_Specification): Make generic again, as recent
24282 changes have allowed RPC receivers to have the same profile for both
24283 variants of the PCS.
24284 Reorganise RPC receiver generation to reduce differences between the
24285 structure of GARLIC and PolyORB RPC receivers.
24286 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
24288 Simplify elaboration code for RCI packages.
24290 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
24291 generation to reduce differences between the structure of GARLIC and
24292 PolyORB RPC receivers.
24294 * s-stratt.adb: Fix typo in comment.
24296 2005-01-03 Thomas Quinot <quinot@adacore.com>
24298 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
24299 copied from Make_Init_Call).
24301 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
24302 reads and assignments on a temporary variable declared with appropriate
24305 2005-01-03 Robert Dewar <dewar@adacore.com>
24307 * i-c.adb (To_C): Raise CE if string is null and Append_Null
24309 2005-01-03 Robert Dewar <dewar@adacore.com>
24311 * i-cstrin.adb (Update): Do not append a null in form called with a
24312 String. This avoids unintended behavior.
24314 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24317 * init.c: Fix warnings on Free BSD section.
24319 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24322 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
24325 2005-01-03 Vincent Celier <celier@adacore.com>
24327 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
24328 libraries when Unique_Compile is True (-u switch).
24331 2005-01-03 Robert Dewar <dewar@adacore.com>
24333 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
24334 upper case letter or underscore after W, as allowed by spec.
24336 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24338 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
24339 darwin port by using proper type definitions from header files.
24340 Use SIGTERM instead of SIGABRT for SIGADAABORT.
24342 2005-01-03 Robert Dewar <dewar@adacore.com>
24344 * par.adb: Enhance error message handling for configuration file
24347 2005-01-03 Robert Dewar <dewar@adacore.com>
24349 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
24350 removed during the previous update (test properly for case of dividing
24351 largest negative number by -1, which generates overflow).
24353 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24354 Sergey Rybin <rybin@adacore.com>
24356 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
24357 to use as the defining identifier for a formal package.
24358 (Remove_Parent): If the instance takes place within (an instance of)
24359 a sibling, preserve private declarations of common parent.
24361 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24363 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
24364 to determine whether one of the operands is a fixed-point type for
24365 which a user-defined multiplication or division operation might be
24368 * sem_res.adb (Valid_Conversion): The legality rules for conversions
24369 of access types are symmetric in Ada 2005: either designated type can
24372 2005-01-03 Vincent Celier <celier@adacore.com>
24374 * s-fileio.adb (Temp_File_Record): Change length of string component
24375 Name from L_tmpnam + 1 to max_path_len + 1.
24377 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24379 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
24380 Self_Id.Deferral_Level = 0.
24381 (Do_Pending_Action): Move this function to the spec.
24383 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
24384 Do_Pending_Action explicitely when needed, in case we're using
24385 No_Abort restrictions.
24387 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
24388 deferral level since it will not get changed by the generated code.
24389 Keeping a default value of 1 would prevent some operations (e.g.
24390 select or delay) to proceed successfully.
24392 2005-01-03 Ben Brosgol <brosgol@adacore.com>
24393 Robert Dewar <dewar@adacore.com>
24394 Cyrille Comar <comar@adacore.com>
24396 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
24397 porting guide chapter (vms version).
24398 Revised doc title (removed "for native platforms") and subtitle.
24399 Add discussion on warning flag for obsolescent features. First we
24400 note that it applies to obsolete GNAT features, which was previously
24401 omitted. Second we contrast the behavior with that of the new
24402 Ada 2005 AI-368 restriction No_Obsolescent_Features.
24403 Preliminary rewriting of GNAT & libraries chapter in order to take
24404 into account default project locations & new project manager
24407 2005-01-03 Robert Dewar <dewar@adacore.com>
24409 * cstand.adb (Create_Operators): Clean up format and documentation of
24410 unary and binary operator result tables. No change in code, just
24411 reformatting and addition of comments.
24413 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
24414 sem_ch2.adb: Minor reformatting
24416 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
24417 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
24418 comments for Tree_Read and Tree_Write.
24420 2005-01-03 Pascal Obry <obry@adacore.com>
24422 * exp_attr.ads: Minor reformatting.
24424 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
24426 * comperr.adb (Compiler_Abort): Add specialized message for GAP
24429 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24431 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
24432 whether the ancestor type is private, as may be the case with nested
24435 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
24438 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
24440 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
24442 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
24443 * utils2.c (build_unary_op): Likewise.
24445 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24447 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
24449 2004-12-19 Richard Henderson <rth@redhat.com>
24451 * trans.c (gigi): Update gimplify_body call.
24453 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
24455 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
24457 2004-12-07 Ed Falis <falis@adacore.com>
24459 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
24460 current task being suspended.
24462 * init.c (__gnat_clear_exception): added to reset VxWorks exception
24464 (__gnat_map_signal): removed test for current task being suspended.
24466 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24468 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
24469 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
24470 targets (such as AAMP).
24472 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24474 * atree.adb (Visit_Itype): Create a new name for the generated itype,
24475 because the back-end may otherwise treat it as a redefinition of the
24478 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
24480 * back_end.adb (Scan_Back_End_Switches): Accept --param.
24482 * lang-specs.h: Accept --param.
24484 2004-12-07 Vincent Celier <celier@adacore.com>
24486 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
24487 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
24488 Current_Body_Suffix => Ada_Body_Suffix).
24489 Take into account Externally_Built attribute.
24491 * clean.adb (In_Extension_Chain): Always return False when one of the
24492 parameter is No_Project.
24493 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
24494 Ada_Language_Index).
24495 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
24496 Process_Languages for procedure Parse).
24498 * gnatcmd.adb (Carg_Switches): New table.
24499 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
24500 Adapt to name changes in package Prj (Current_Spec_Suffix =>
24501 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
24503 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
24504 Header_Num and function Hash are now declared in package Prj,
24507 * prj.adb (Suffix_Of): New function.
24508 (Set (Suffix)): New procedure.
24509 (Hash): One function moved from Prj.Com
24510 (Is_Present, Language_Processing_Data_Of): New functions
24511 (Set): Two new procedures
24512 (Add_Language_Name, Display_Language_Name): New procedures
24514 * prj.ads: (Suffix_Of): New function
24515 (Set (Suffix)): New procedure
24516 Add several types and tables for multi-language support.
24517 (Header_Num): Type moved from Prj.Com
24518 (Hash): Two functions moved from Prj.Com
24519 (Is_Present, Language_Processing_Data_Of): New functions
24520 (Set): Two new procedures
24521 (Add_Language_Name, Display_Language_Name): New procedures
24522 (Naming): Component name changes:
24523 Current_Spec_Suffix => Ada_Spec_Suffix,
24524 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
24525 Impl_Suffixes, Supp_Suffixes.
24526 (Project_Data): New components: Externally_Built, Supp_Languages,
24527 First_Language_Processing, Supp_Language_Processing, Default_Linker,
24528 Default_Linker_Path.
24530 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
24531 new package Language_Processing with its attributes (Compiler_Driver,
24532 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
24533 Binder_Driver, Default_Linker).
24535 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
24536 (Header_Num): Type moved to package Prj
24538 * prj-env.adb: Adapt to name changes in package Prj
24539 (Current_Spec_Suffix => Ada_Spec_Suffix,
24540 Current_Body_Suffix => Ada_Body_Suffix).
24542 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
24543 default to the project path, except the "-" is one of the directories
24544 in env var ADA_PROJECT_PATH.
24545 (Current_Project_Path): Global variable, replacing Project_Path
24546 that was in the body of Prj.Part.
24547 (Project_Path): New function
24548 (Set_Project_Path): New procedure
24549 Initialize Current_Project_Path during elaboration of the package
24550 Remove dependency on Prj.Com, no longer needed
24552 * prj-ext.ads (Project_Path): New function
24553 (Set_Project_Path): New procedure
24555 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
24556 suffix is defined for language <lang>.
24557 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
24558 accessing directly the components of Naming.
24559 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
24560 Reorganise of this package.
24561 Break procedure Check in several procedures.
24563 * prj-nmsc.ads: Replace all procedures (Ada_Check,
24564 Other_Languages_Check and Language_Independent_Check) with a single
24567 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
24568 Process_Languages, no longer needed.
24570 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
24571 Current_Project_Path.
24572 Remove elaboration code, moved to the body of Prj.Ext
24573 Use new function Prj.Ext.Project_Path instead of old variable
24575 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
24576 When comparing with project paths on the stack, first put the resolved
24577 path in canonical case.
24578 (Parse_Single_Project): Set the path name of the project file in the
24579 tree to the normalized path.
24581 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
24582 parameter Process_Languages, no longer needed.
24583 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
24584 Other_Languages_Check.
24586 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
24587 to store the resolved canonical path of the project file.
24588 Remove dependency to Prj.Com, no longer needed
24590 * prj-util.adb: Adapt to name changes in package Prj
24591 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
24594 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
24595 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
24596 Externally_Built, Include_Option, Language_Processing.
24598 * makegpr.adb: Numerous changes due to changes in packages
24601 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
24602 default to the project path, except whe "-" is one of the directories
24603 in env var ADA_PROJECT_PATH.
24604 (Gnatls): In verbose mode, add the new section "Project Search Path:"
24606 2004-12-07 Robert Dewar <dewar@adacore.com>
24608 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
24610 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
24613 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
24614 flag. No longer needed now that we handle this in gnat1drv.adb.
24616 * repinfo.ads: Minor reformatting
24618 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24619 Olivier Hainque <hainque@adacore.com>
24620 Eric Botcazou <ebotcazou@adacore.com>
24622 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
24623 TYPE_SIZE_UNIT of result type if SIZE is not specified.
24624 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
24625 of a bitfield, which we know is useless and causes trouble because of
24626 alignment implications.
24628 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
24630 (process_attributes): Clear DECL_COMMON again when a section attribute
24632 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
24633 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
24634 (create_field_decl): Special case ADDRESSABLE negative to mean
24635 "no bitfield creation", to be used by make_aligning_type. Don't
24636 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
24637 fields claimed addressable still have to be bitfields. Use
24638 value_factor_p instead of a raw binop construction to check for the
24639 position's alignment.
24641 2004-12-07 Geert Bosch <bosch@adacore.com>
24643 * eval_fat.adb: Revert previous change.
24645 2004-12-07 Thomas Quinot <quinot@adacore.com>
24646 Ed Schonberg <schonberg@adacore.com>
24648 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
24649 with an implicit dereference as its prefix, use
24650 Insert_Explicit_Dereference instead of merely rewriting the prefix into
24651 an explicit dereference. This ensures that a reference to the original
24652 prefix is generated, if appropriate.
24654 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
24655 dereference is rewritten to an explicit one, generate a reference to
24656 the entity denoted by its prefix using the original prefix node, so
24657 the dereference can be properly recorded as a read of the denoted
24658 access value, if appropriate.
24660 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
24661 emitting 'assigned but never read' warning on a variable on the basis
24662 that it has an access type.
24663 (Check_References): Emit unreferenced warning when the scope is a
24666 2004-12-07 Robert Dewar <dewar@adacore.com>
24667 Ed Schonberg <schonberg@adacore.com>
24669 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
24672 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
24673 leaving call unchanged.
24674 This deals with the case where the pragma Import specified
24675 an external name, to be handled by the back end.
24677 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
24678 subprogram which is Imported with convention Intrinsic if an
24679 External_Name argument is specified.
24680 (Process_Import_Or_Interface): Properly diagnose link name argument.
24681 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
24682 with Sem_Ch6.Cannot_Inline.
24683 (Process_Inline): Provide separate warning for inapplicable inline
24685 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
24686 treatment is uniform on different targets.
24688 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24690 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
24691 construct is rewritten, preserve end label to permit source navigation.
24693 2004-12-07 Thomas Quinot <quinot@adacore.com>
24695 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
24696 Specific_Build_Stub_Target): New subprograms.
24697 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
24698 the PCS implementation used, using the above PCS-customized subprograms.
24699 Minor reformatting.
24700 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
24701 for generation of DSA code targeted to the PolyORB PCS.
24702 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
24703 implementation of the partition communication subsystem in ancillary
24705 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
24706 PolyORB_Support.Build_Stub_Type): New subrograms containing the
24707 PCS-specific part of Add_Stub_Type.
24708 (Insert_Partition_Check): Use runtime library function to perform
24711 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
24712 (RE_Same_Partition): New entity, from s-parint.
24714 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
24716 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24718 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
24719 Output the copyright message on a separate line from the version
24722 2004-12-07 Joel Brobecker <brobecker@adacore.com>
24724 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
24725 compile-time warning.
24727 2004-12-07 Robert Dewar <dewar@adacore.com>
24729 * g-regpat.adb: (Match): Change a misuse of or to or else
24731 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24734 (Generate_Reference): Handle properly a reference to an entry formal,
24735 when an accept statement has a pragma Unreferenced for it.
24737 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
24738 and the Has_Pragma_Unreferenced flag for each formal before analyzing
24739 the body, to ensure that warnings are properly emitted for each accept
24740 statement of a given task entry.
24742 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
24744 * Makefile.in: Add support for foreign threads on VMS.
24746 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24748 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
24750 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
24752 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
24754 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
24756 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
24758 2004-12-07 Robert Dewar <dewar@adacore.com>
24760 * nlists.adb (Prepend_Debug): Remove parameters and nest within
24762 (Remove_Next_Debug): Same fix
24764 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
24765 maintain back pointers now, though we did not used to, and comments
24767 (Prepend): Remove pragma Inline.
24768 (Remove_Next): Same cleanup
24770 2004-12-07 Thomas Quinot <quinot@adacore.com>
24772 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
24773 used to record an implicit dereference as a read operation on its
24774 prefix when operating under -gnatc. Necessary to avoid spurious
24775 'variable assigned but never read' warnings in that mode.
24776 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
24777 is a non-overloaded implicit dereference, call the above subprogram to
24778 ensure proper recording of references.
24780 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24782 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
24783 to be resolved later as part of Analyze_Iteration_Scheme's call to
24786 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24788 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
24789 prefix is not a scalar type, place error message on prefix, not on
24792 2004-12-07 Bernard Banner <banner@adacore.com>
24794 * vxaddr2line.adb: Add support for x86 vxworks
24796 2004-12-07 Thomas Quinot <quinot@adacore.com>
24798 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
24799 documentation of the behaviour of these functions when passed an IP
24800 address that has no record in the system hosts database and no reverse
24803 * cstand.adb, a-tags.ads: Fix typos in comment.
24805 2004-12-07 Robert Dewar <dewar@adacore.com>
24807 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
24808 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
24809 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
24810 s-poosiz.ads: Minor reformatting
24812 * make.adb: Minor reformatting
24813 Add some ??? comments asking for more comments
24815 * s-poosiz.adb: Minor reformatting
24816 Add comments on alignment requirement
24818 * sinfo.ads: Remove obsolete comment and fix typo.
24820 2004-12-07 Vincent Celier <celier@adacore.com>
24821 Sergey Rybin <rybin@adacore.com>
24823 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
24824 Files" with the new tool and package names.
24825 Reformatting to suppress most of the warnings for line too long
24826 Document the new section "Project Search Path:" in the output of
24828 Add gnatmetric section
24830 2004-12-07 Vincent Celier <celier@adacore.com>
24832 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
24833 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
24834 and -eit to -ept. Added qualifier
24835 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
24837 2004-11-27 Andreas Schwab <schwab@suse.de>
24839 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
24841 2004-11-25 Arnaud Charlet <charlet@adacore.com>
24843 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
24844 internal implementation unit GNAT.Sockets.Thin,
24845 as their usage for sockets is non-portable (using the read and write
24846 functions from the system runtime library is fine on UNIX but won't
24847 work under Windows).
24849 * mingw32.h: Update copyright notice.
24851 2004-11-25 Arnaud Charlet <charlet@adacore.com>
24853 * ada-tree.h: Minor reformatting of previous change to avoid lines
24854 longer than 79 characters.
24856 2004-11-25 Olivier Hainque <hainque@adacore.com>
24858 * tb-gcc.c: GCC infrastructure based implementation of
24861 2004-11-24 Steven Bosscher <stevenb@suse.de>
24863 * misc.c (gnat_post_options): Don't clear
24864 flag_inline_functions.
24866 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
24869 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
24872 2004-11-21 Andreas Jaeger <aj@suse.de>
24874 * stylesw.adb: Change Style_Check_Subprogram_Order to
24875 Style_Check_Order_Subprograms.
24877 2004-11-18 Arnaud Charlet <charlet@adacore.com>
24879 * adaint.h, adaint.c
24880 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
24882 Add also a cast to kill another warning.
24883 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
24884 parameter with the priority class of the parent process instead of
24885 always using the NORMAL_PRIORITY_CLASS.
24886 (__gnat_dup): New function.
24887 (__gnat_dup2): New function.
24888 (__gnat_is_symbolic_link): Enable the effective body of this
24889 function when __APPLE__ is defined.
24891 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
24894 2004-11-18 Olivier Hainque <hainque@adacore.com>
24896 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
24897 address of which may be used to represent "others" and "all others"
24898 choices in exception tables, instead of the current harcoded
24899 (void *)0 and (void *)1.
24900 (Setup_Exception): Do nothing in the GNAT SJLJ case.
24902 * gigi.h (others_decl, all_others_decl): New decls representing the
24903 new Others_Value and All_Others_Value objects.
24904 (struct attrib): Rename "arg" component as "args", since GCC expects a
24905 list of arguments in there.
24907 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
24908 corresponding objects exported by a-exexpr, instead of hardcoded dummy
24911 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
24912 others_decl and all_others_decl instead of hardcoded dummy addresses
24913 to represent "others" and "all others" choices, which is cleaner and
24914 more flexible with respect to the possible eh pointer encoding policies.
24916 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
24917 (process_attributes): Account for the naming change of the "args"
24918 attribute list entry component.
24920 * decl.c (build_attr_list): Rename into prepend_attributes to allow
24921 cumulating attributes for different entities into a single list.
24922 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
24923 attributes for the current entity and propagate first subtype
24924 attributes to other subtypes.
24925 <E_Procedure>: Attribute arguments are attr->args and not
24926 attr->arg any more.
24927 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
24928 argument provided, as this is what GCC expects. Use NULL_TREE instead
24931 2004-11-18 Robert Dewar <dewar@adacore.com>
24933 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
24934 Minor reformatting througout (including new function specs)
24935 Add ??? comments asking for clarification.
24937 2004-11-18 Thomas Quinot <quinot@adacore.com>
24939 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
24940 incomplete duplicate implementation of this subprogram from butil.
24942 2004-11-18 Thomas Quinot <quinot@adacore.com>
24944 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
24945 procedures factors the common processing for building an RPC receiver
24946 for an RCI package or an RACW type.
24947 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
24948 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
24949 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
24951 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
24953 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
24955 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
24956 distribution subprogram identifiers that are either subprogram numbers
24958 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
24959 string distribution identifiers assigned to a given subprogram.
24960 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
24961 (Add_RAS_Dereference_TSS): Add comments.
24962 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
24963 is not referenced yet because it will be used by the PolyORB DSA
24965 (Insert_Partition_Check): Remove fossile code.
24966 (First_RCI_Subprogram_Id): Document this constant.
24967 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
24969 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
24970 replaced with calls to Get_Library_Unit_Name_String. Previously there
24971 were several instances of the same code in different locations in the
24972 compiler; this checkin completes the replacement of all of these
24973 instances with calls to a common subprogram.
24974 Minor reformatting.
24976 * sem_dist.adb: Remove comment noting that RPC receiver generation
24977 should be disabled for RACWs that implement RASs.
24978 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
24980 * sem_util.ads, sem_util.adb (Has_Stream): New function
24981 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
24982 qualified name of a library unit into the name buffer.
24983 (Note_Possible_Modification): Generate a reference only
24984 if the context comes from source.
24986 * snames.ads (PCS_Names): New subtype corresponding to names of
24987 supported implementations of the Partition Communication Subsystem
24988 (PCS) (i.e. the runtime library support modules for the distributed
24991 2004-11-18 Robert Dewar <dewar@adacore.com>
24992 Ed Schonberg <schonberg@adacore.com>
24994 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
24995 (Has_Rep_Pragma): New function
24996 (Has_Attribute_Definition_Clause): New function
24997 (Record_Rep_Pragma): Moved here from sem_ch13.adb
24998 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
25000 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
25002 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
25003 (Expand_Pragma_Psect_Object): New procedure
25004 These procedures contain the revised and cleaned up processing for
25005 these two pragmas. This processing was formerly in Sem_Prag, but
25006 is more appropriately moved here. The cleanup involves making sure
25007 that the pragmas are properly attached to the tree, and that no
25008 nodes are improperly shared.
25010 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
25011 pragmas to Exp_Prag, which is more appropriate.
25012 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
25013 check for duplicates Remove use of Is_Psected flag, no longer needed.
25014 Use new Make_String_Literal function with string.
25016 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
25017 that are functions return universal values, that have to be converted
25018 to the context type.
25019 Use new Make_String_Literal function with string.
25020 (Get_Stream_Convert_Pragma): New function, replaces the use of
25021 Get_Rep_Pragma, which had to be kludged to work in this case.
25023 * freeze.adb: Use new Has_Rep_Pragma function
25025 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
25026 function with string.
25027 Use new Has_Rep_Pragma function.
25029 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
25032 2004-11-18 Robert Dewar <dewar@adacore.com>
25034 * errout.ads, errout.adb: (First_Sloc): New function
25036 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
25037 check (-gnatyx) instead of being included as a redundant construct
25040 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
25041 Style_Check_Order_Subprograms.
25043 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
25044 stylesw.adb: Add Style_Check_Xtra_Parens
25046 * usage.adb: Add line for -gnatyx (check extra parens)
25048 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
25050 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25051 Robert Dewar <dewar@adacore.com>
25053 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
25054 discriminant of a constrained subtype, analyze the copy of the
25055 corresponding constraint, because in some cases it may be only
25056 partially analyzed.
25057 Removes long-lived ??? comments.
25059 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
25060 handled controlled or secondary-stack expressions within the
25061 iteration_scheme of a loop.
25063 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
25064 bounds that may contain functions calls, to prevent memory leaks when
25065 the bound contains a call to a function that uses the secondary stack.
25066 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
25067 generate temporaries for loop bounds that might contain function calls
25068 that require secondary stack and/or finalization actions.
25070 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
25071 selected component and the selector is overloadable (not just a
25072 function) treat as function call, Analyze_Call will disambiguate if
25074 (Analyze_Selected_Component): Do not generate an actual subtype for the
25075 selected component if expansion is disabled. The actual subtype is only
25076 needed for constraint checks.
25077 (Analyze_Allocator): If restriction No_Streams is set, then do
25078 not permit objects to be declared of a stream type, or of a
25079 composite type containing a stream.
25081 * restrict.ads: Remove the a-stream entry from Unit_Array, since
25082 No_Streams no longer prohibits with'ing this package.
25084 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
25085 discriminants, but the parent base has unknown discriminants, there is
25086 no discriminant constraint to inherit. Such a discrepancy can arise
25087 when the actual for a formal type with unknown discriminants is a
25088 similar private type whose full view has discriminants.
25089 (Analyze_Object_Declaration): If restriction No_Streams is set, then
25090 do not permit objects to be declared of a stream type, or of a
25091 composite type containing a stream.
25093 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25095 * exp_dbug.ads: Update documentation to reflect simpler encoding for
25096 protected operations.
25098 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
25099 generated name, it complicates decoding in gdb and hinders debugging
25100 of protected operations.
25101 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
25102 flag for the protected entry barrier function.
25103 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
25104 flag for the protected entry function.
25106 2004-11-18 Nicolas Setton <setton@adacore.com>
25108 * expect.c: Define __unix__ when __APPLE__ is defined.
25110 * Makefile.in: Inform the value of the variable GMEM_LIB in the
25111 Darwin-specific section.
25113 * lang-specs.h: Change the placement of the %1 marker.
25114 Works around the fact that gcc adds -fPIC by default under Darwin.
25116 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25118 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
25119 type of the object with the packed array type, set the Analyzed flag
25120 on the object if it is an entity or simple indexed component, to avoid
25121 spurious type errors.
25123 2004-11-18 Gary Dismukes <dismukes@adacore.com>
25125 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
25126 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
25127 separate line from the version message.
25129 2004-11-18 Ed Falis <falis@adacore.com>
25131 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
25133 (init_float): Eliminate initialization of floating point status for
25134 AE653. The instructions have no effect for vThreads.
25136 2004-11-18 Vincent Celier <celier@adacore.com>
25138 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
25139 gnatbind is invoked with -shared.
25141 2004-11-18 Jose Ruiz <ruiz@adacore.com>
25143 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
25144 for Detect_Blocking which is redundant with the check done within the
25145 procedure Protected_Single_Entry_Call.
25146 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
25147 Detect_Blocking which is redundant with the check done within the
25148 procedure Protected_Single_Entry_Call.
25150 2004-11-18 Vincent Celier <celier@adacore.com>
25152 * makegpr.adb (Compile): Put the compiling switches (in package
25153 Compiler and on the command line) immediately after "-c", instead of
25154 at the end of the command line invocation of the compiler, when
25155 compiling a non-Ada file.
25156 (Build_Global_Archive): When there is no need to rebuild the archive,
25157 set Global_Archive_Exists, so that the archive is passed to the linker
25160 2004-11-18 Robert Dewar <dewar@adacore.com>
25161 Sergey Rybin <rybin@adacore.com>
25164 Remove extra paren check from list of checks for redundant constructs
25165 Add documentation of new -gnatyx style check (check extra parens)
25166 Remove paragraph about gnatelim debug options.
25168 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
25169 objects rather than forbidding dependencies on the package Ada.Streams.
25171 * sinfo.ads: Add ??? note that we should document pragmas passed to
25174 * g-expect.ads: Fix a few typos in the comments.
25176 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
25178 * misc.c (gnat_handle_option): Use %< and %> for quoting in
25181 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25183 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
25185 2004-11-07 Andreas Schwab <schwab@suse.de>
25187 * Makefile.in (install-gnatlib): Remove spurious hyphen.
25189 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
25192 * Makefile.in (darwin): Set soext to .dylib.
25194 2004-10-26 Vincent Celier <celier@gnat.com>
25195 Thomas Quinot <quinot@act-europe.fr>
25197 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
25198 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
25199 there is no use of GNAT.Sockets.Constants.
25200 Remove remaining pragma Import for C_Write
25201 Remove C_Read and C_Write from internal implementation unit
25202 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
25203 the read and write functions from the system runtime library is fine
25204 on UNIX but won't work under Windows).
25206 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
25207 (Check_Selector): Use C_Recv instead of C_Read.
25208 Selectors are the GNAT.Sockets abstraction to perform a select()
25209 call on a set of descriptors. To allow abortion of an ongoing
25210 select operation, some data is written to a dedicated socket that
25211 is always monitored.
25212 Under Windows, the write and read library functions cannot operate
25213 on sockets, so we need to use send and recv instead, which is portable
25214 across all supported platforms.
25216 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
25217 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
25218 (using the read and write functions from the system runtime library is
25219 fine on UNIX but won't work under Windows).
25221 2004-10-26 Nicolas Setton <setton@act-europe.fr>
25223 * mlib-tgt-darwin.adb: New file.
25225 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25226 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25227 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25228 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
25231 * Makefile.in: Add support for building shared libraries under Darwin.
25232 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
25233 the low level EH init subprogram to be called from __gnat_initialize.
25235 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
25236 indicates which options to pass to the archive indexer.
25238 * mlib-utl.adb: Add support for calling ranlib with additional
25239 options. This is needed for instance under Mac OS X.
25240 (Ranlib_Options): New global variable, used to store the potential
25241 options to pass to ranlib.
25242 (Ar): Use Ranlib_Options when spawning ranlib.
25243 (Initialize): Set the value of ranlib option.
25245 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
25247 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
25248 instead of 8K, to reflect the real potential needs for stack-checking
25251 2004-10-26 Pascal Obry <obry@gnat.com>
25253 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
25255 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
25256 Windows only the initial thread stack size can be set so it is good to
25257 start we a low stack size.
25258 The OS will adjust the size as needed.
25260 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
25261 Nicolas Setton <setton@act-europe.fr>
25263 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
25264 "__unix__" instead of "unix".
25265 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
25266 sections were just mistakenly ignored. The former is
25267 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
25268 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
25269 of hpux. This prevents an unwanted definition of the symbol
25270 convert_addresses in adaint.o.
25272 2004-10-26 Gary Dismukes <dismukes@gnat.com>
25274 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
25275 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
25277 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25279 * a-filico.ads, a-filico.adb: fix incorrect header.
25281 2004-10-26 Javier Miranda <miranda@gnat.com>
25283 * a-ststio.ads: Fix typo in identifier
25285 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25287 * sem_ch4.adb: Minor reformatting.
25289 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25291 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
25292 enabled, check the result of unary and binary operations when the
25293 expression is the right-hand side of an assignment.
25295 2004-10-26 Vincent Celier <celier@gnat.com>
25297 * clean.adb (Delete): Do not output warnings when in quiet output and
25298 not in verbose mode.
25299 (Force_Deletions): New Boolean flag, defaulted to False
25300 (Delete): Only delete a file if it is writable, and when
25301 Force_Deletions is True.
25302 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
25303 (Usage): Line for new switch -f
25304 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
25307 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
25309 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
25310 JM type only if its size matches that of the wrapper. When a size is
25311 prescribed and the field is not aliased, remove the wrapper of a JM
25312 type only if the size is not greater than that of the packed array.
25313 (gnat_to_gnu_entity): Change the extension of packed array wrappers
25316 2004-10-26 Geert Bosch <bosch@gnat.com>
25318 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
25319 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
25320 (Pred): Implement in terms of Succ.
25322 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25324 * exp_aggr.adb (Safe_Component): An aggregate component that is an
25325 unchecked conversion is safe for in-place use if the expression of the
25326 conversion is safe.
25327 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
25328 be expandable in place even if the aggregate does not come from source.
25329 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
25330 designated object of an allocator in place, rather than building it
25331 first on the stack. The previous scheme forces a full copy of the array,
25332 and may be altogether unsusable if the size of the array is too large
25333 for stack allocation.
25335 2004-10-26 Robert Dewar <dewar@gnat.com>
25337 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
25338 compares if the component is atomic.
25340 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
25341 array assignment if the component type is atomic.
25343 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25344 Eric Botcazou <ebotcazou@act-europe.fr>
25346 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
25347 is aliased and is a by_reference type, do not pass by copy.
25348 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
25349 detect whether the call is in the right side of an assignment or
25350 the expression of an object declaration. Recurse on component
25351 association within aggregates.
25352 Call it in the condition that determines whether the temporary is
25353 necessary for correct stack-checking.
25355 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25357 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
25358 RACW_Type, used in the PolyORB version.
25359 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
25360 version and the GARLIC version.
25362 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
25363 Rename RCI_Info to RCI_Locator for better consistency between the
25364 GARLIC and PolyORB versions of the distributed systems annex.
25365 (DSA_Implementation_Name): This enumeration lists the possible
25366 implementations of the Partition Communication Subsystem for the
25367 Distributed Systems Annex (DSA). The three available implementations
25368 are the dummy stub implementation (No_DSA), and two versions based on
25369 two different distribution runtime libraries: GARLIC and PolyORB. Both
25370 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
25372 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
25375 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
25376 between the GARLIC and PolyORB versions of the distributed systems
25378 Remove RE_Unbounded_Reclaim_Pool since it is unused.
25380 2004-10-26 Gary Dismukes <dismukes@gnat.com>
25382 * gnat1drv.adb: Suppress calling the back end when
25383 Frontend_Layout_On_Target is true.
25385 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25387 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
25388 Set_Read_Only): New subprograms.
25389 These new routines allow the user to set or unset the Owner execute
25390 and Owner write permission flags on a file.
25392 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
25393 GNAT.OS_Lib.Set_Executable instead of rolling our own.
25395 2004-10-26 Matthew Gingell <gingell@gnat.com>
25397 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
25399 2004-10-26 Pascal Obry <obry@gnat.com>
25401 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
25402 memory before the faulting page we properly test the process read
25403 access for this address using appropriate Win32 routine.
25404 (HPUX sections): guard with "__hpux__" instead of "hpux".
25406 2004-10-26 Robert Dewar <dewar@gnat.com>
25408 * lib-xref.adb (Generate_Reference): Don't complain about reference to
25409 entry parameter if pragma Unreferenced set, since we do not properly
25410 handle the case of multiple parameters.
25412 2004-10-26 Vincent Celier <celier@gnat.com>
25414 * prj-env.adb: (Contains_ALI_Files): New Boolean function
25415 (Ada_Objects_Path.Add): For a library project, add to the object path
25416 the library directory only if there is no object directory or if the
25417 library directory contains ALI files.
25418 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25420 2004-10-26 Vincent Celier <celier@gnat.com>
25422 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
25423 extension of library projects.
25425 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
25426 path defaults to ".:<prefix>/lib/gnat".
25427 (Parse): For an extending all project, allow direct import of a project
25428 that is virtually extended.
25430 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
25431 the specified name is directly imported, return its ID. Otherwise, if
25432 an extension of this project is imported, return the ID of the
25435 2004-10-26 Robert Dewar <dewar@gnat.com>
25437 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
25438 (Sub3): New procedure, used by Scaled_Divide
25439 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
25440 correct more than one instance of failure to propagate carries
25442 (Double_Divide): Handle overflow case of largest negative number
25443 divided by minus one.
25445 * s-arit64.ads (Double_Divide): Document that overflow can occur in
25446 the case of a quotient value out of range.
25449 2004-10-26 Robert Dewar <dewar@gnat.com>
25451 * s-bitops.adb (Bit_Eq): Remove redundant check.
25453 * s-bitops.ads: Minor comment updates
25454 Change some occurrences of Address to System.Address
25456 * s-carsi8.ads: Fix minor cut-and-paste error in comments
25458 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25460 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
25461 accessibility check to prefix that is a protected operation.
25463 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25465 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
25466 empty, post message on stub.
25468 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25469 Javier Miranda <miranda@gnat.com>
25471 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
25472 current instance appears within a unit that is directly in the context
25474 Used to determine whether the body of the instance should be analyzed
25475 immediately after its spec, to make its subprogram bodies available
25476 for front-end inlining.
25477 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
25478 constraint is not allowed on the component type (AARM 12.5.3(3))
25480 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25482 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
25483 'Storage_Pool): enhance, document & limit detection of non-sharable
25486 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
25488 * s-pooglo.ads: Add more documentation now that this pool is properly
25491 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25493 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
25494 or protected type with discriminants, do not constrain the
25495 corresponding record type if the subtype declaration has no
25496 discriminant constraints. This can be the case in source code, or in
25497 the subtype declaration created to rename an actual type within an
25500 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25502 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
25503 different kind of stub (possibly wrong name for file), do not check
25505 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
25506 includes call to some function that returns an unconstrained type, do
25509 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25511 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
25512 appear in the code for the main unit. Dependencies among units in the
25513 context of the main unit are established when those other units are
25514 compiled. Otherwise spurious elaboration constraints can generate
25515 incorrect elaboration circularities.
25517 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25518 Ed Schonberg <schonberg@gnat.com>
25520 * sem_util.adb (Is_Aliased_View): Defend against the case where this
25521 subprogram is called with a parameter that is not an object name. This
25522 situation arises for some cases of illegal code, which is diagnosed
25523 later, and in this case it is wrong to call Is_Aliased, as that might
25524 cause a compiler crash.
25525 (Explain_Limited_Type): Refine previous fix to include
25526 inherited components of derived types, to provide complete information.
25528 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
25529 is the prival for a protected object.
25530 It is necessary to mark this entity as a variable, in addition to
25531 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
25532 modified to avoid checking the Aliased flag on entities that are not
25533 objects. (Checking that flag for non-objects is erroneous and could
25534 lead to a compiler crash).
25536 2004-10-26 Robert Dewar <dewar@gnat.com>
25538 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
25539 X_Frac = 0.5, then we know that the number X must be positive.
25540 (Succ): Remove the same redundant test, and also fix the primary test
25541 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
25543 (Decompose): Add fuller comments to spec
25545 2004-10-26 Pascal Obry <obry@gnat.com>
25547 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
25548 validity (process must have read access). Set to 0 in all other cases.
25549 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
25550 violation on Win32.
25551 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
25552 segmentation violation.
25554 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
25556 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
25557 whose type is a constructed subtype of an aliased object with an
25558 unconstrained nominal subtype, convert the actual to the constructed
25559 subtype before taking its address.
25561 2004-10-26 Vincent Celier <celier@gnat.com>
25563 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
25564 (Is_Path_Name_Case_Sensitive): New function
25566 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
25567 (Base_Name, Simple_Name, Current_Directory, Compose,
25568 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
25571 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25572 Vasiliy Fofanov <fofanov@act-europe.fr>
25573 Vincent Celier <celier@gnat.com>
25575 * gnat_ugn.texi: Generalize "finding memory problems" section into a
25576 "memory management issues" section and document some of the useful
25577 memory pools provided as part of the GNAT library.
25578 Remove "virtual" from declaration of A::method2 in
25579 the simple example of Ada/C++ mixed system.
25580 Library Projects may be virtually extended: their virtual extensions
25581 are not Library Projects.
25582 Added section on extending project hierarchies.
25584 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25586 * adaint.c (__gnat_get_libraries_from_registry): Cast value
25588 (__gnat_portable_spawn): Remove const.
25590 * mingw32.h (MAXPATHLEN): Check for previous definition.
25592 2004-10-17 Matthias Klose <doko@debian.org>
25594 * gnatvsn.ads: Set gnat library version to 4.0.
25596 2004-10-05 Vincent Celier <celier@gnat.com>
25598 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
25600 2004-10-04 Laurent Guerby <laurent@guerby.net>
25603 * Makefile.in: Define and use RANLIB_FLAGS.
25605 2004-10-04 Pascal Obry <obry@gnat.com>
25607 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
25608 other x86 platforms).
25610 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
25612 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
25613 in general and triggers stack alignment adjustment for thread entry
25614 points on targets where this is necessary.
25616 2004-10-04 Bernard Banner <banner@gnat.com>
25619 * Makefile.in: Add section for powerpc linux
25620 Add variant i-vxwork-x86.ads
25622 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
25624 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
25626 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
25627 table registration calls when need be. Ensures no reference to the crt
25628 ctors symbol are issued in the SJLJ case, which avoids possible
25629 undefined symbol errors in the case of modules to be statically linked
25632 2004-10-04 Javier Miranda <miranda@gnat.com>
25634 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
25635 in-line the code corresponding to subprogram Analyze_Actuals. In
25636 addition, analyze the actuals only in case of subprogram call.
25638 2004-10-04 Ed Falis <falis@gnat.com>
25640 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
25642 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
25644 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
25645 in the documentation.
25647 2004-10-04 Robert Dewar <dewar@gnat.com>
25649 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
25651 (Analyze_Block_Statement): Add circuitry to detect following dead code
25652 (Check_Unreachable_Code): Handle case of block exit
25654 2004-10-04 Robert Dewar <dewar@gnat.com>
25656 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
25657 (XMatchD): Avoid warning for Logic_Error call
25659 2004-10-04 Robert Dewar <dewar@gnat.com>
25661 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
25662 consider expressions buried within a procedure actual to be an actual.
25663 This caused some blowups with uses of packed slices within a procedure
25666 2004-10-04 Robert Dewar <dewar@gnat.com>
25668 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
25669 longer need to be initialized to zero.
25670 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
25671 initialized to zero.
25673 * checks.adb (Expr_Known_Valid): Packed arrays are now always
25674 considered valid, even if the representation is modular. That's correct
25675 now that we no longer initialize packed modular arrays to zero.
25677 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
25678 suffixes. These are now documented as the only cases in which the
25679 debugger ignores outer records.
25680 Previously, the spec allowed arbitrary suffixes for this purpose.
25681 Change name of LJM to JM for packed array pad records
25682 Create separate section on packed array handling, and add a whole new
25683 set of comments to this section describing the situation with packed
25684 modular types and justification requirements depending on endianness.
25686 2004-10-04 Robert Dewar <dewar@gnat.com>
25688 * a-except.adb: Add a comment for last change
25690 * einfo.ads: Minor spelling correction in comment
25692 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
25694 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
25697 * sem_util.ads: Minor comment update
25699 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25701 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
25702 Inline_Always when in Configurable_Run_Time mode.
25704 * sem_prag.adb (Process_Convention): If entity is an inherited
25705 subprogram, apply convention to parent subprogram if in same scope.
25706 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
25707 when in Configurable_Run_Time mode.
25709 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25711 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
25712 class_wide type after component list has been inherited.
25714 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25716 * sem_ch12.adb (Check_Generic_Actuals): New predicate
25717 Denotes_Previous_Actual, to handle properly the case of a private
25718 actual that is also the component type of a subsequent array actual.
25719 The visibility status of the first actual is not affected when the
25720 second is installed.
25721 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
25722 make fully recursive the treatment of formals of packages declared
25724 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
25725 the above on exit from an instantiation.
25726 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
25727 current instantiation which is now complete.
25728 (Analyze_Package_Instantiation): No instantiated body is needed if the
25729 main unit is generic. Efficient, and avoid anomalies when a instance
25730 appears in a package accessed through rtsfind.
25732 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25734 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
25735 do not generate a declaration for a temporary if the call is part of a
25736 library-level instantiation.
25738 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25740 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
25741 searching for a limited component to flag.
25743 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
25744 expansion of Input, to account for the fact that the implicit call
25745 generated by the attribute reference must freeze the user-defined
25746 stream subprogram. This is only relevant to 'Input, because it can
25747 appear in an object declaration, prior to the body of the subprogram.
25749 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
25750 expansion can proceed and further errors uncovered.
25751 (Minor clean up): Fix cases of using | instead of \ for continuation
25754 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25756 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
25758 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
25759 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
25760 Use gcc_assert and gcc_unreachable.
25762 * decl.c (gnat_to_gnu_entity, case object): Check and process a
25763 specified alignment before validating size.
25764 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
25765 stripped-down declaration for the type of the inner field when making
25768 * utils.c (finish_record_type): Do not compute the size in units
25769 incrementally. Instead compute it once for the rep clause case.
25770 Use gcc_assert and gcc_unreachable.
25772 2004-10-04 Vincent Celier <celier@gnat.com>
25774 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
25776 (Is_Valid_Path_Name): Take '/' as a directory separator.
25778 2004-10-04 Vincent Celier <celier@gnat.com>
25780 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
25781 (Extended_Project) only if Extended_Project is defined, to avoid
25783 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
25785 (Parse_Single_Project): Ditto.
25787 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
25788 Add_To_Project_Path for virtual projects.
25790 2004-10-04 Vincent Celier <celier@gnat.com>
25792 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25793 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25794 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25795 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
25796 parameter Options_2.
25798 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
25799 Build_Dynamic_Library with an empty Options_2.
25801 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
25804 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
25805 directory separator, if any.
25806 (Gprmake): Do not allow mains on the command line for library projects.
25807 Do not attempt to link when the project is a library project.
25808 (Library_Opts): New table to store Library_Options.
25809 (Build_Library): If Library_Options is specified, pass these options
25810 when building a shared library.
25812 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
25814 * s-tposen.adb (Service_Entry): The object must be always unlocked at
25815 the end of this procedure now that the unlock operation was inserted
25818 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
25820 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
25821 corresponding to the Preallocated_Stacks flags in System.
25822 (Get_Target_Parameters): Including the processing for
25823 Preallocated_Stacks.
25825 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
25826 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
25827 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
25828 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
25829 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
25830 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
25831 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
25832 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
25833 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
25834 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
25835 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
25836 used to signal whether the compiler creates the required stacks and
25837 descriptors for the different tasks (when True) or it is done by the
25838 underlying operating system at run time (when False).
25839 It is initially set to False in all targets.
25841 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
25842 if it is supported by the target.
25843 (Make_Task_Create_Call): Pass the stack address if it has been
25844 previously created. Otherwise pass a Null_Address.
25846 * snames.adb: Add _stack.
25848 * snames.ads: Add Name_uStack. Required to allow the expander to
25849 statically allocated task stacks.
25851 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
25852 Stack_Address argument.
25853 Check that its value is equal to Null_Address because this target does
25854 not support the static stack allocation.
25856 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
25858 * usage.adb: Change "pragma inline" to "pragma Inline" in information
25861 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
25863 * exp_dist.adb: Split declaration of asynchronous flag out of
25864 Add_RACW_Read_Attribute.
25865 Minor reformatting for better alignment with PolyORB version.
25866 Store the entity for the asynchronous flag of an RACW, rather than the
25867 expression, in the asynchronous flags table. This will allow this flag
25868 to be used in other subprograms beside Add_RACW_Read_Attribute.
25870 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
25872 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
25873 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25874 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
25875 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
25876 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
25877 sockets constant MSG_NOSIGNAL (Linux-specific).
25878 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
25879 all Send operations.
25880 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
25881 from trigerring SIGPIPE.
25882 Rename components to avoid clash with Ada 2005 possible reserved
25884 (Check_Selector): When the select system call returns with an error
25885 condition, propagate Socket_Error to the caller.
25887 2004-10-01 Jan Hubicka <jh@suse.cz>
25889 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
25891 2004-09-23 Robert Dewar <dewar@gnat.com>
25894 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
25895 instead do this at freeze time (we won't do it if there is an address
25897 Change "pragma inline" to "pragma Inline" in information and error
25899 Minor reformatting.
25901 * freeze.adb (Check_Address_Clause): Remove previous change, not the
25902 right way of doing things after all.
25903 (Freeze_Entity): For object, set Is_Public for imported entities
25904 unless there is an address clause present.
25906 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
25908 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
25909 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
25910 ensures proper handling of types with rep clauses, which might have
25911 their TYPE_SIZE set already.
25913 2004-09-21 Robert Dewar <dewar@gnat.com>
25915 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
25916 packed array types in both little- and big-endian cases. This change
25917 ensures that we no longer count on the unused bits being initialized
25918 for such types (and in particular ensures that equality testing will
25919 only read the relevant bits).
25920 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
25921 These changes mean that we no longer need to initialize small packed
25923 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
25924 optimization to an LJM field as to its parent field.
25926 * ada-tree.h, trans.c, utils.c, utils2.c:
25927 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
25929 2004-09-20 Jan Hubicka <jh@suse.cz>
25931 * utils.c (gnat_finalize): Remove.
25932 (end_subprog_body): Directly call cgraph_finalize_function;
25933 do not lower the nested functions.
25935 2004-09-20 Robert Dewar <dewar@gnat.com>
25938 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
25939 if an address clause is present, since that means that the Import
25942 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
25944 * 5tsystem.ads: Removed, no longer used.
25946 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
25947 Zack Weinberg <zack@codesourcery.com>
25949 * ada-tree.def: Use tree_code_class enumeration constants
25950 instead of code letters.
25951 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
25952 Update for new tree-class enumeration constants.
25954 2004-09-17 Vincent Celier <celier@gnat.com>
25956 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
25957 capabilities of the general project manager.
25959 2004-09-09 Vincent Celier <celier@gnat.com>
25961 * a-direct.ads: Add pragma Ada_05
25962 (Directory_Entry_Type): Give default value to component Kind to avoid
25963 not initialized warnings.
25965 * a-direct.adb (Current_Directory): Remove directory separator at the
25967 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
25968 an existing directory.
25969 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
25970 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
25971 Convert the result to File_Size.
25973 * prj.ads: (Project_Error): New exception
25975 * prj-attr.adb: Except in procedure Initialize, Fail comes from
25976 Prj.Com, not from Osint.
25977 (Attrs, Package_Attributes): Tables moved to private part of spec
25978 (Add_Attribute, Add_Unknown_Package): Moved to new child package
25980 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
25981 Prj.Project_Error after call to Fail.
25982 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
25983 Fail. Check that package name is not already in use.
25985 * prj-attr.ads: Comment updates to indicate that all subprograms may be
25986 used by tools, not only by the project manager, and to indicate that
25987 exception Prj.Prj_Error may be raised in case of problem.
25988 (Add_Unknown_Package, Add_Attribute): Moved to new child package
25990 (Attrs, Package_Attributes): Table instantiations moved from the body to
25991 the private part to be accessible from Prj.Attr.PM body.
25993 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
25994 from new package Prj.Attr.PM.
25995 (Parse_Attribute_Declaration): Call Add_Attribute from new package
25998 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
26000 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
26001 instead of Elaboration_Checks).
26003 * a-calend.adb: Minor reformatting
26005 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26007 * gigi.h (maybe_pad_type): New declaration.
26008 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
26010 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
26012 * cuintp.c: Convert to use buildN.
26014 * decl.c (maybe_pad_type): No longer static.
26015 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
26017 Convert to use buildN.
26019 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
26020 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
26021 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
26023 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
26024 (gnat_gimplify_expr, case ADDR_EXPR): New case.
26025 Convert to use buildN.
26027 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
26028 TREE_READONLY for const.
26029 Convert to use buildN.
26031 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
26032 (create_var_decl): Refine when TREE_STATIC is set.
26033 Convert to use buildN.
26035 2004-09-09 Gary Dismukes <dismukes@gnat.com>
26037 * gnat_ugn.texi: Delete text relating to checking of ali and object
26040 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
26043 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
26045 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
26046 pragmas recognized by GNAT.
26048 * gnat_rm.texi: Document pragma Detect_Blocking.
26050 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
26051 raise Program_Error if called from a protected operation.
26053 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
26054 the protected action nesting level.
26055 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
26056 protected action nesting level.
26057 (Unlock): When pragma Detect_Blocking is active decrease the protected
26058 action nesting level.
26060 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
26061 Protected_Action_Nesting.
26063 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
26064 Common_ATCB record. It contains the dynamic level of protected action
26065 nesting for each task. It is needed for checking whether potentially
26066 blocking operations are called from protected operations.
26067 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
26068 Detect_Blocking is active or not in the partition.
26070 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
26071 raise Program_Error if called from a protected operation.
26072 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
26073 Program_Error if called from a protected operation.
26074 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
26075 Program_Error if called from a protected operation.
26077 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
26078 raise Program_Error if called from a protected operation.
26080 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
26081 raise Program_Error if called from a protected operation, and increase
26082 the protected action nesting level.
26083 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
26084 Program_Error if called from a protected operation, and increase the
26085 protected action nesting level.
26086 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
26087 protected action nesting level.
26089 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
26090 raise Program_Error if called from a protected operation, and increase
26091 the protected action nesting level.
26092 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
26093 Program_Error if called from a protected operation, and increase the
26094 protected action nesting level.
26095 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
26096 raise Program_Error if called from a protected operation.
26097 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
26098 active, raise Program_Error if called from a protected operation.
26099 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
26100 protected action nesting level.
26102 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
26103 insertion of the statement raising Program_Error. The run time
26104 contains the required machinery for handling that.
26106 * sem_util.ads: Change comment associated to procedure
26107 Check_Potentially_Blocking_Operation.
26108 This procedure does not insert a call for raising the exception because
26109 that is currently done by the run time.
26111 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
26113 * init.c: Add the global variable __gl_detect_blocking that indicates
26114 whether pragma Detect_Blocking is active (1) or not (0). Needed for
26115 making the pragma available at run time.
26116 (__gnat_set_globals): Pass and update the detect_blocking parameter.
26118 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
26119 pragma Detect_Blocking is active.
26121 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
26123 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
26124 DB is found in the ali file. Any unit compiled with pragma
26125 Detect_Blocking active forces its effect in the whole partition.
26127 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
26128 Detect_Blocking is active and delay is called from a protected
26131 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
26132 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
26133 Detect_Blocking is active (0 otherwise).
26134 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
26135 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
26138 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
26140 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
26141 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
26144 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
26145 (Register_Receiving_Stub): Add Subp_Info formal parameter.
26146 Update API in placeholder implemetation of s-parint to reflect changes
26147 in distribution runtime library.
26149 * sem_ch3.adb (Expand_Derived_Record): Rename to
26150 Expand_Record_Extension.
26152 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
26153 primitive operations of potentially distributed object types that have
26154 non-controlling anonymous access formals.
26156 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
26158 New implementation of expansion for remote access-to-subprogram types,
26159 based on the RACW infrastructure.
26160 This version of sem_dist is compatible with PolyORB/DSA as well as
26163 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
26164 Asynchrronous that applies to a remote access-to-subprogram type, mark
26165 the underlying RACW type as asynchronous.
26167 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
26168 __gnat_using_gnu_linker to 1.
26170 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
26171 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
26172 GNAT.Perfect_Hash_Generators, and remove the empty
26173 GNAT.Perfect_Hash package.
26175 * atree.adb: Minor reformatting
26177 * exp_ch3.adb (Expand_Derived_Record): Rename to
26178 Expand_Record_Extension.
26179 (Build_Record_Init_Proc.Build_Assignment): The default expression in
26180 a component declaration must remain attached at that point in the
26181 tree so New_Copy_Tree copies it if the enclosing record type is derived.
26182 It is therefore necessary to take a copy of the expression when building
26183 the corresponding assignment statement in the init proc.
26184 As a side effect, in the case of a derived record type, we now see the
26185 original expression, without any rewriting that could have occurred
26186 during expansion of the ancestor type's init proc, and we do not need
26187 to go back to Original_Node.
26189 * exp_ch3.ads (Expand_Derived_Record): Rename to
26190 Expand_Record_Extension.
26192 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
26193 Returns the RACW type used to implement a remote access-to-subprogram
26195 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
26196 New subprograms. Used to create a proxy tagged object for a remote
26197 subprogram. The proxy object is used as the designated object
26198 for RAS values on the same partition (unless All_Calls_Remote applies).
26199 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
26200 System.Partition_Interface.Get_Unique_Remote_Pointer.
26201 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
26202 Renamed from Add_RAS_*_Attribute.
26203 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
26205 New implementation of expansion for remote access-to-subprogram types,
26206 based on the RACW infrastructure.
26208 * exp_dist.ads (Copy_Specification): Update comment to note that this
26209 function can copy the specification from either a subprogram
26210 specification or an access-to-subprogram type definition.
26212 2004-09-09 Ed Schonberg <schonberg@gnat.com>
26214 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
26215 in an instance, between an explicit subprogram an one inherited from a
26216 type derived from an actual.
26218 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
26219 add a polling call if the subprogram is to be inlined by the back-end,
26220 to avoid repeated calls with multiple inlinings.
26222 * checks.adb (Apply_Alignment_Check): If the expression in the address
26223 clause is a call whose name is not a static entity (e.g. a dispatching
26224 call), treat as dynamic.
26226 2004-09-09 Robert Dewar <dewar@gnat.com>
26228 * g-trasym.ads: Minor reformatting
26230 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
26231 packed arrays, since unused bits are expected to be zero for a
26234 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
26236 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
26239 2004-09-09 Pascal Obry <obry@gnat.com>
26241 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
26242 enable map file generation. Add the right option to generate the map
26243 file if Map_File is set to True.
26245 * gnatdll.adb (Gen_Map_File): New variable.
26246 (Syntax): Add info about new -m (Map_File) option.
26247 (Parse_Command_Line): Add support for -m option.
26248 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
26249 Minor reformatting.
26251 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
26253 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
26254 new gnatdist implementation.
26255 Define a subpackage isolating the output routines specific to this
26258 2004-09-09 Joel Brobecker <brobecker@gnat.com>
26260 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
26262 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
26264 2004-09-09 Cyrille Comar <comar@act-europe.fr>
26266 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
26269 * opt.ads: Add Ada_Version_Runtime constant used to decide which
26270 version of the language is used to compile the run time.
26272 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
26274 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
26275 of variable length temporaries for function return now that the
26276 back-end and gigi support it.
26278 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26280 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
26282 * trans.c (struct stmt_group): Delete field GLOBAL.
26283 (gnat_init_stmt_group): Do not initialize it.
26284 (call_to_gnu): Use save_expr, not protect_multiple_eval.
26285 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
26286 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
26287 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
26288 (start_stmt_group): Likewise.
26289 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
26291 * utils2.c (ggc.h): Include.
26292 (build_call_raise): Call build_int_cst, not build_int_2.
26294 * utils.c (gnat_init_decl_processing): Fix arg to
26295 build_common_tree_nodes.
26296 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
26297 (gnat_define_builtin): Set built_in_decls.
26298 (init_gigi_decls): Call build_int_cst, not build_int_2.
26300 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
26301 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
26302 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
26303 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
26304 SET_TYPE_MODULE): Use them.
26305 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
26306 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
26307 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
26308 SET_TYPE_ADA_SIZE): Likewise.
26309 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
26310 (DECL_CONST_CORRESPONDING_VAR,
26311 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
26312 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
26313 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
26314 (TYPE_RM_SIZE_NUM): New macro.
26315 (TYPE_RM_SIZE): Modified to use above.
26317 * cuintp.c: (build_cst_from_int): New function.
26318 (UI_To_gnu): Use it.
26320 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
26321 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
26322 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
26323 MIN_EXPR for the size, copy it into new.
26325 2004-09-01 Robert Dewar <dewar@gnat.com>
26327 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
26328 packed indexed component where array is an IN OUT formal. This
26329 generated garbage code previously.
26331 * gnat_ugn.texi: Document -fverbose-asm
26333 * gnat-style.texi: Minor updates (note that boolean constants and
26334 variables are joined with AND/OR rather than short circuit forms).
26336 2004-09-01 Ed Schonberg <schonberg@gnat.com>
26338 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
26339 it is an upward conversion of an untagged type with no representation
26342 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
26344 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
26345 System.Partition_Interface.
26347 * checks.adb (Apply_Access_Checks): Do not generate checks when
26348 expander is not active (but check for unset reference to prefix of
26351 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
26352 pragma Debug as an if statement with a constant condition, for
26353 consistent treatment of entity references contained within the
26354 enclosed procedure call.
26356 2004-09-01 Vincent Celier <celier@gnat.com>
26358 * bindgen.adb: (Set_EA_Last): New procedure
26359 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
26361 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
26362 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
26363 linked without errors.
26364 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
26366 (Gen_Exception_Table_C): Correct same bugs
26368 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
26370 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
26371 on Windows, make sure that the drive letter is in upper case.
26373 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
26374 Windows, when the drive letter is added and Case_Sensitive is True, the
26375 drive letter is forced to upper case.
26377 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
26378 to Options_2 for the call to MLib.Utl.Gcc.
26380 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
26381 directory separator when defining BASE_DIR.
26383 2004-09-01 Pascal Obry <obry@gnat.com>
26385 * gprcmd.adb (Extend): Do not output trailing directory separator. This
26386 is not needed and it confuses Windows GNU/make which does not report
26387 directory terminated by a slash as a directory.
26388 (gprcmd): Idem for "pwd" internal command.
26390 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
26391 target names rewrite to fix regressions with recent version of
26392 GNU/make. Starting with GNU/make 3.80 the pipe character was not
26393 handled properly anymore.
26395 2004-09-01 Andreas Schwab <schwab@suse.de>
26397 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
26398 * raise.c [!IN_RTS]: Undef abort.
26400 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
26402 * utils2.c (build_allocator): Use ssize_int.
26404 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
26406 2004-08-27 Andreas Schwab <schwab@suse.de>
26408 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
26410 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
26411 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26413 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
26415 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
26417 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
26418 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26419 * utils.c (init_gigi_decls): Likewise.
26420 * utils2.c (build_call_raise, build_allocator): Likewise.
26422 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
26424 * utils.c (gnat_init_decl_processing): Adjust
26425 build_common_tree_nodes call.
26427 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
26429 * utils2.c (build_allocator): Use build_int_cst for negative
26432 2004-08-18 Richard Henderson <rth@redhat.com>
26434 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
26436 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
26438 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
26440 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
26441 (gnat_to_gnu): Likewise.
26443 2004-08-16 Pascal Obry <obry@gnat.com>
26445 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
26446 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
26447 option and not mdll anymore. Update comment.
26449 2004-08-16 Pascal Obry <obry@gnat.com>
26451 * bld.adb (Put_Include_Project): Properly handle directory separators
26454 2004-08-16 Ed Schonberg <schonberg@gnat.com>
26456 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
26457 decreasing the number of allocated junk nodes while searching for the
26458 appropriate subprogram.
26460 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
26462 * cuintp.c (UI_To_gnu): Use build_int_cst..
26463 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26464 * utils.c (init_gigi_decls): Likewise.
26465 * utils2.c (build_call_raise): Likewise.
26467 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
26469 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
26470 for a global aliased object with a variable size and an unconstrained
26471 nominal subtype, pretend there is no initializer if the one we have is
26472 incomplete, and avoid referencing an inexistant component in there. The
26473 part we have will be rebuilt anyway and the reference may confuse
26474 further operations.
26476 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
26478 * einfo.ads: Minor reformatting
26480 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
26481 restrictions in the ALI if we only want to warn about violations.
26483 2004-08-13 Vincent Celier <celier@gnat.com>
26485 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
26486 when creating a new Unit_Record in table Units.
26488 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
26489 that are violated, if any.
26491 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
26492 add directory separator if path already ends with a directory separator.
26494 2004-08-13 Ed Schonberg <schonberg@gnat.com>
26496 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
26497 unit, this is an attempt to inline a construct that is not available in
26498 the current restricted mode, so abort rather than trying to continue.
26500 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
26501 discriminants that rename those of the parent, recover names of
26502 original discriminants for the constraint on the full view of the
26504 (Complete_Private_Subtype): Do not create a subtype declaration if the
26505 subtype is an itype.
26507 * gnat_rm.texi: Added section on implementation of discriminated
26508 records with default values for discriminants.
26510 2004-08-13 Ed Schonberg <schonberg@gnat.com>
26513 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
26514 the second operand is overloaded.
26516 2004-08-10 Richard Henderson <rth@redhat.com>
26518 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
26519 add __builtin_alloca.
26521 2004-08-10 Richard Henderson <rth@redhat.com>
26523 * config-lang.in (boot_language): Yes.
26525 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
26527 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
26528 from complaining on potential uninitialized reference.
26529 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
26530 new specification and test explicitly for non-zero return value.
26532 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
26533 returning C.int, to avoid using a derived boolean type.
26535 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
26536 Duplicate_Subexpr_No_Checks in preference to direct use of
26537 Remove_Side_Effects and New_Copy_Tree.
26538 Clear Comes_From_Source on prefix of 'Size attribute reference.
26540 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
26541 g-socthi-vxworks.adb: Change calls to
26542 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
26543 and test explicitly for non-zero return value.
26545 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
26546 (Is_Socket_In_Set): Declare imported function as returning C.int, to
26547 avoid using a derived boolean type.
26549 2004-08-09 Albert Lee <lee@gnat.com>
26551 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
26553 2004-08-09 Pascal Obry <obry@gnat.com>
26555 * gnat_ugn.texi: Document new way to build DLLs on Windows using
26556 GCC's -shared option.
26558 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
26559 Options_2 parameter (options put after object files).
26561 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
26563 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
26564 ignore overflows on low and high bounds of an index to also account for
26565 differences in signedness between sizetype and gnu_index_subtype.
26566 These are as legitimate as the ones caused by a lower TYPE_PRECISION
26569 2004-08-09 Robert Dewar <dewar@gnat.com>
26571 * s-solita.ads, s-solita.adb: Minor reformatting
26573 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
26574 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
26575 obsolescent section
26576 Add note that No_Implicit_Conditionals does not suppress
26577 run time constraint checks.
26579 * vms_conv.ads: Minor reformatting
26581 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
26582 and necessary for following change).
26583 (Mark): Return new format Mark_Id containing sec stack address
26584 (Release): Use sec stack address from Mark_Id avoiding Self call
26586 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
26587 pointer (cleanup and necessary for following change).
26588 Define Mark_Id as record containing address of secondary stack, that way
26589 Release does not need to find the stack again, decreasing the number of
26590 calls to Self and improving efficiency.
26592 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
26594 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
26595 case variable into the individual case branches when possible.
26597 * sem_ch11.adb: Minor reformatting
26599 * prj.ads: Correct spelling of suffixs
26601 * prj-nmsc.adb: Minor reformatting
26602 Correct spelling suffixs throughout (also in identifiers)
26604 * freeze.adb: Minor spelling correction
26606 * exp_ch2.adb: Cleanups to handling of Current_Value
26607 (no functional effect).
26609 * bld.adb: Correct spelling of suffixs
26611 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
26613 2004-08-09 Ed Schonberg <schonberg@gnat.com>
26616 * sem_ch7.adb (Install_Private_Declarations): In the body of the
26617 package or of a child, private entities are both immediately_visible
26620 2004-08-09 Ed Schonberg <schonberg@gnat.com>
26622 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
26623 there are no range checks on the value of the literal.
26625 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
26626 wrapped is the triggering alternative of an asynchronous select, action
26627 statements mustbe inserted before the select itself.
26629 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
26630 case where the prefix is a protected function call.
26631 (Resolve_Attribute, case 'Access): The attribute reference on a
26632 subprogram is legal in a generic body if the subprogram is declared
26635 2004-08-09 Vincent Celier <celier@gnat.com>
26637 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
26638 languages, otherwise building the library may fail with unresolved
26640 (Compile_Sources): Do not build libraries if -c switch is used
26642 * gnatlink.adb (Process_Args): New switches -M and -Mmap
26643 (Write_Usage): If map file creation is supported, output new switches
26645 (Gnatlink): When -M is specified, add the necessary switch(es) to the
26646 gcc call, when supported.
26648 * Makefile.in: Added indepsw.o to the object list for gnatlink
26649 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
26651 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
26652 indepsw.adb, indepsw.ads: New files.
26654 2004-08-09 Bernard Banner <banner@gnat.com>
26656 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
26658 * Makefile.in: add section for vxworks x86
26660 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
26662 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
26663 per-object constrained components where the discriminant is of an
26665 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
26666 the parent initialization procedure for derived Unchecked_Unions.
26667 Instead, derived Unchecked_Unions build their own initialization
26669 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
26670 Check the body of the subprogram for details.
26671 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
26672 functions for derived Unchecked_Union types by introducing a condition.
26673 Allow the creation of TSS equality functions for Unchecked_Unions.
26674 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
26675 Add formal parameter Discr to function signature. Discr is used to
26676 control the generated case statement for Unchecked_Union types.
26677 (Make_Eq_If): Rename formal parameter Node to E in function signature.
26679 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
26681 Check the body of the subprogram for details.
26682 (Expand_Composite_Equality): Augment composite type equality to include
26683 correct handling of Unchecked_Union components.
26684 (Expand_N_In): Add condition to detect illegal membership tests when the
26685 subtype mark is a constrained Unchecked_Union and the expression lacks
26686 inferable discriminants, and build a Raise_Program_Error node.
26687 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
26688 to detect types that contain components of unconstrained Unchecked_Union
26689 subtype. Add condition to detect equality between types that have an
26690 unconstrained Unchecked_Union component, and build a Raise_Program_Error
26691 node. Add condition to detect equality between Unchecked_Union types
26692 that lack inferable discriminants, and build a Raise_Program_Error node.
26693 Otherwise build a TSS equality function call.
26694 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
26695 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
26696 with the operand lacking inferable discriminants, and build a Raise_
26697 Program_Error node.
26698 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
26699 composite equality.
26700 (Has_Inferable_Discriminants): Implement new predicate for objects and
26701 expressions of Unchecked_Union type. Check the body of subprogram for
26703 (Has_Unconstrained_UU_Components): Add function
26704 Component_Is_Unconstrained_UU. It is used to detect whether a single
26705 component is of an unconstrained Unchecked_Union subtype. Add function
26706 Variant_Is_Unconstrained_UU. It is used to detect whether a single
26707 component inside a variant is of an unconstrained Unchecked_Union type.
26709 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
26710 inferred discriminant values. Add condition to generate a case
26711 statement with an inferred discriminant as the switch.
26712 (Make_Component_List_Assign): Introduce a Boolean flag that determines
26713 the behaviour of the subprogram in the presence of an Unchecked_Union.
26714 Add condition to trigger the usage of the inferred discriminant value
26715 as the generated case statement switch.
26716 (Make_Field_Assign): Introduce a Boolean flag that determines the
26717 behaviour of the subprogram in the presence of an Unchecked_Union. Add
26718 condition to trigger the usage of the inferred discriminant value as
26719 the right-hand side of the generated assignment.
26721 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
26722 parameter generation when dealing with Unchecked_Unions.
26724 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
26725 checks for Unchecked_Unions.
26727 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
26729 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
26730 Raise_Program_Error nodes for the execution of Read and Write
26731 attributes of Unchecked_Union types and the execution of Input and
26732 Output attributes of Unchecked_Union types that lack default
26733 discriminant values.
26735 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
26736 Unchecked_Union. Add procedure Check_Component. It is used to inspect
26737 per-object constrained components of Unchecked_Unions for being
26738 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
26739 check individual components withing a variant.
26741 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
26742 comparison of Unchecked_Unions.
26743 (Resolve_Equality_OP): Remove guard that prevents equality between
26746 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
26747 of component subtypes for Unchecked_Union components.
26748 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
26749 since it is the actual subtype.
26751 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
26752 pass of Unchecked_Union subtypes as generic actuals to formal types
26753 that lack known_discriminant_parts or that are derived Unchecked_Union
26754 types, and do nothing. In any other case, produce an error message.
26756 * sem_ch3.adb (Analyze_Component_Declaration): Add function
26757 Contains_POC. It determines whether a constraint uses the discriminant
26758 of an enclosing record type.
26759 Add condition to detect per-object constrained component and set the
26761 (Derived_Type_Declaration): Remove guard that prevents derivation from
26762 Unchecked_Union types.
26763 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
26766 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
26767 references to Unchecked_Union discriminants.
26769 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
26770 formal generation when dealing with Unchecked_Unions.
26771 (Set_Actual_Subtypes): Add condition to prevent generation of actual
26772 subtypes for Unchecked_Unions.
26774 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
26775 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
26776 completions of discriminated partial views by Unchecked_Unions and
26777 produce an error message.
26779 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26781 * trans.c (struct stmt_group): New field, GLOBAL.
26782 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
26783 (struct elab_info): New struct.
26784 (elab_info_list, gnu_elab_proc_stack): New variables.
26785 (Compilation_Unit_to_gnu): New procedure.
26786 (gigi): Call it and also handle elaboration procs we've saved.
26787 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
26788 global field from parent.
26789 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
26790 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
26791 (start_stmt_group): Initialize global field from parent.
26792 (add_decl_expr): Set to global for current statement group.
26793 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
26796 * utils.c (global_bindings_p): True when no current_function_decl; no
26797 longer check current_binding_level.
26799 2004-08-09 Ben Brosgol <brosgol@gnat.com>
26801 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
26804 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
26806 2004-08-06 Andreas Schwab <schwab@suse.de>
26808 * utils.c (gnat_define_builtin): Remove second parameter of
26810 (begin_subprog_body): Likewise.
26812 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
26814 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
26815 optimization, not supported by the tree-ssa back-end.
26817 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
26819 * s-mastop-irix.adb: Update comments.
26821 * a-except.adb (Exception_Information): Raise Constraint_Error if
26822 exception Id is Null_Id.
26823 This is required behavior, which is more reliably and clearly checked
26824 at the top level interface level.
26826 2004-07-26 Javier Miranda <miranda@gnat.com>
26828 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
26829 call if a component has no default_expression and the box is used.
26831 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
26832 default_expression and you use box, it behaves as if you had declared a
26833 stand-alone object.
26834 (Resolve_Record_Aggregate): If a component has no default_expression and
26835 you use box, it behaves as if you had declared a stand-alone object.
26837 * sem_ch10.adb (Install_Siblings): Do not make visible the private
26838 entities of private-with siblings.
26840 2004-07-26 Ed Schonberg <schonberg@gnat.com>
26842 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
26843 for a component of an itype, set the parent pointer for analysis,
26844 there is no list in which to insert it.
26846 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
26847 bona-fide renamings, not for inherited operations.
26849 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
26850 actual for a formal that is an access parameter, create local
26851 finalization list even if the expression is not an aggregate.
26853 2004-07-26 Ed Schonberg <schonberg@gnat.com>
26856 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
26857 Diagnose properly illegal subprogram renamings that are library units.
26859 2004-07-26 Ed Schonberg <schonberg@gnat.com>
26862 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
26863 conversion rewritten as an unchecked conversion, check that original
26864 expression is a variable.
26866 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
26867 unchecked_conversion, create new node rather than rewriting in place,
26868 to preserve original construct.
26870 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26872 * gigi.h (gnat_expand_body): Deleted.
26874 * Make-lang.in: (trans.o): Depends on function.h.
26876 * misc.c: (gnat_expand_body): Moved to here.
26878 * trans.c (gnat_expand_body_1): Deleted.
26879 (gnat_expand_body): Moved from here.
26880 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
26881 (add_stmt): Check for marked visited with global_bindings_p.
26882 (gnat_gimplify_expr, case COMPONENT_REF): New case.
26883 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
26885 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
26886 VIEW_CONVERT_EXPR if not operation type.
26888 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
26891 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
26892 changes: reformatting of negation operators, removing unneeded
26893 inequality comparison with zero, converting equality comparisons with
26894 zero to negations, changing int/0/1 to bool/false/true, replace calls
26895 to gigi_abort with abort, and various other similar changes.
26897 2004-07-26 Vincent Celier <celier@gnat.com>
26899 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
26902 * make.adb (Gnatmake): Fail when a library is not present and there is
26903 no object directory.
26905 * mlib-prj.adb (Check_Library): No need to check if the library needs
26906 to be rebuilt if there is no object directory, hence no object files
26907 to build the library.
26909 * opt.ads (Setup_Projects): New Boolean flag.
26911 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
26913 Create directory when Kind /= "" and in "gnat setup". Report error if
26914 directory cannot be created.
26915 (Ada_Check): Create library interface copy dir if it does not exist
26916 and we are in "gnat setup".
26917 (Find_Sources): No error if in "gnat setup" and no Ada sources were
26919 (Language_Independent_Check): Create object directory, exec directory
26920 and/or library directory if they do not exist and we are in
26923 * vms_conv.ads: (Command_Type): New command Setup.
26925 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
26927 * vms_data.ads: Add qualifiers/switches for new built-in command
26930 2004-07-25 Richard Henderson <rth@redhat.com>
26932 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
26933 DECL_IGNORED_P on RESULT_DECL.
26935 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
26937 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
26938 allocation and potentially overflowing update with
26939 Tailored_Exception_Information. Use the sec-stack free procedural
26940 interface to output Exception_Information instead.
26942 * a-except.adb (To_Stderr): New subprogram for character, and string
26943 version moved from a-exextr to be visible from other separate units.
26944 (Tailored_Exception_Information): Remove the procedural version,
26945 previously used by the default Last_Chance_Handler and not any more.
26946 Adjust various comments.
26948 * a-exexda.adb: Generalize the exception information procedural
26949 interface, to minimize the use of secondary stack and the need for
26950 local buffers when the info is to be output to stderr:
26951 (Address_Image): Removed.
26952 (Append_Info_Character): New subprogram, checking for overflows and
26953 outputing to stderr if buffer to fill is of length 0.
26954 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
26955 (Append_Info_Address, Append_Info_Exception_Name,
26956 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
26957 Append_Info_Basic_Exception_Traceback,
26958 Append_Info_Exception_Information): New subprograms.
26959 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
26960 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
26961 Exception_Info_Maxlength, Exception_Name_Length,
26962 Exception_Message_Length): New subprograms.
26963 (Exception_Information): Use Append_Info_Exception_Information.
26964 (Tailored_Exception_Information): Use
26965 Append_Info_Basic_Exception_Information.
26966 Export services for the default Last_Chance_Handler.
26968 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
26969 other separate units.
26971 2004-07-20 Vincent Celier <celier@gnat.com>
26973 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
26975 2004-07-20 Ed Schonberg <schonberg@gnat.com>
26977 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
26978 emit itype references for the designated types of component types that
26979 are declared outside of the full record declaration, and that may
26980 denote a partial view of that record type.
26982 2004-07-20 Ed Schonberg <schonberg@gnat.com>
26985 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
26986 which is the designated type in an access component declaration, to the
26987 list of incomplete dependents of the parent type, to avoid elaboration
26988 issues with out-of-scope subtypes.
26989 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
26990 full view of the parent.
26992 2004-07-20 Ed Schonberg <schonberg@gnat.com>
26995 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
26996 entities that are hidden, such as references to generic actuals
26997 outside an instance.
26999 2004-07-20 Javier Miranda <miranda@gnat.com>
27001 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
27002 support to the new notation.
27003 (Analyze_Selected_Component): Add call to Try_Object_Operation.
27005 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
27007 * s-taprob.adb: Adding the elaboration code required for initializing
27008 the tasking soft links that are common to the full and the restricted
27011 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
27012 restricted run time has been moved to the package
27013 System.Soft_Links.Tasking.
27015 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
27016 restricted run time has been moved to the package
27017 System.Soft_Links.Tasking.
27019 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
27021 * s-solita.ads, s-solita.adb: New files.
27023 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27025 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
27026 Case_Statement_to_gnu): Split off from gnat_to_gnu.
27027 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
27028 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
27029 Exception_Handler_to_gnu_zcx): Likewise.
27031 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
27033 * gigi.h (builtin_function): Declare.
27035 2004-07-15 Robert Dewar <dewar@gnat.com>
27037 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
27040 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
27041 access values as an example of a warning.
27043 * gnat_rm.texi: Document new attribute Has_Access_Values
27045 * gnat-style.texi: Document that box comments belong on nested
27048 * sem_util.ads (Has_Access_Values): Improved documentation
27050 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
27052 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
27053 (Process_Interface_Name): Call to this new procedure
27054 (Set_Extended_Import_Export_External_Name): Call to this new procedure
27056 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
27058 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
27060 * einfo.ads: Minor comment typo fixed
27062 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
27064 * snames.adb: Add _atcb.
27066 * snames.ads: Add Name_uATCB.
27068 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
27069 (in the expanded code) when using the restricted run time.
27071 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
27072 a in parameter in order to allow ATCBs to be preallocated (in the
27075 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
27076 order to allow ATCBs to be preallocated. In case of error, the ATCB is
27077 deallocated in System.Tasking.Stages.
27079 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
27080 order to allow ATCBs to be preallocated.
27082 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
27083 here. It was previously done in Initialize_ATCB.
27085 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
27087 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
27088 Restricted run time.
27090 * exp_ch3.adb: When using the Restricted run time, pass the
27091 preallocated Ada_Task_Control_Block when creating a task.
27093 2004-07-15 Ed Schonberg <schonberg@gnat.com>
27095 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
27096 function call that is itself an actual in an enclosing call, diagnose
27097 problem here rather than assuming that resolution will catch it.
27099 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
27100 the local copy of a generic unit for a formal package, and the generic
27101 is a child unit, install private part of ancestors before compiling
27102 private part of spec.
27104 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
27105 use scope entities rather than tree structures, to handle properly
27106 parent units that are instances rewritten as bodies for inlining
27109 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
27110 Remove_Parents): Handle properly a parent unit that is an
27111 instantiation, when the unit has been rewritten as a body for inlining
27114 * par.adb (Goto_List): Global variable to collect goto statements in a
27115 given unit, for use in detecting natural loops.
27117 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
27118 use in detecting natural loops.
27120 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
27121 backwards goto's, and rewrite as a infinite loop, to improve locality
27124 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
27125 subcomponent that includes an indexed reference, to prevent the
27126 generation of copies that would miscompile the desired assignment
27128 (Build_Task_Image_Decls): Add a numeric suffix to
27129 generated name for string variable, to avoid spurious conflicts with
27130 the name of the type of a single protected object.
27132 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
27133 loop with an explicit exit statement, to avoid generating an
27134 out-of-range value with 'Succ leading to spurious constraint_errors
27135 when compiling with -gnatVo.
27137 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
27139 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
27140 might not be analyzed yet, even if its Etype is already set (case of an
27141 unchecked conversion built using Unchecked_Convert_To, for example).
27142 If the prefix has already been analyzed, this will be a nop anyway.
27144 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
27145 controller type, or an assignment of a record type with controlled
27146 components, copy only user data, and leave the finalization chain
27147 pointers untouched.
27149 2004-07-15 Vincent Celier <celier@gnat.com>
27151 * make.adb (Collect_Arguments): Improve error message when attempting
27152 to compile a source not part of any project, when -x is not used.
27154 * prj.ads: (Defined_Variable_Kind): New subtype
27156 * prj-attr.adb (Register_New_Package): Two new procedures to register
27157 a package with or without its attributes.
27158 (Register_New_Attribute): Mew procedure to register a new attribute in a
27160 New attribute oriented subprograms: Attribute_Node_Id_Of,
27161 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27162 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27164 New package oriented subprograms: Package_Node_Id_Of,
27165 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27167 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
27169 (Package_Node_Id): Now a private, self initialized type
27170 (Register_New_Package): New procedure to register a package with its
27172 New attribute oriented subprograms: Attribute_Node_Id_Of,
27173 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27174 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27176 New package oriented subprograms: Package_Node_Id_Of,
27177 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27179 * prj-dect.adb (Parse_Attribute_Declaration,
27180 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
27182 * prj-makr.adb (Make): Parse existing project file before creating
27183 other files. Fail if there was an error during parsing.
27185 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
27186 new spec of Prj.Attr.
27188 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
27189 to new spec of Prj.Attr.
27191 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27193 * utils2.c: Fix typo in comment.
27195 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27197 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
27198 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
27200 2004-07-14 Andreas Schwab <schwab@suse.de>
27202 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
27204 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27206 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
27208 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
27211 * misc.c (gnat_types_compatible_p): New function.
27212 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
27213 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
27215 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
27216 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
27217 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
27218 (mark_visited): Don't mark dummy type.
27219 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
27220 parameter, we must remove any LJM building from GNU_NAME.
27221 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
27222 (pos_to_constructor): Use int_const_binop.
27223 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
27226 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
27227 (gnat_pushlevel): Set TREE_USE on BLOCK node.
27228 (gnat_install_builtins): Add __builtin_memset.
27230 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
27232 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
27233 for a renaming, stabilize the initialization expression if we are at a
27234 local level. At the local level, uses of the renaming may be performed
27235 by a direct dereference of the initializing expression, and we don't
27236 want possible variables there to be evaluated for every use.
27238 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
27239 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
27240 them on the way. Account for the fact that we may introduce side
27241 effects in the process.
27243 2004-07-13 Richard Henderson <rth@redhat.com>
27245 * misc.c (default_pass_by_ref): Use pass_by_reference.
27247 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
27249 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
27250 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
27252 2004-07-08 Richard Henderson <rth@redhat.com>
27254 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
27257 2004-07-06 Vincent Celier <celier@gnat.com>
27259 * vms_conv.ads: Minor reformatting.
27260 Alphabetical order for enumerated values of type Command_Type, to have
27261 the command in alphabetical order for the usage.
27263 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
27264 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
27266 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
27268 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
27269 (Add_Archive_Path): Only add the global archive if there is one.
27270 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
27271 or not any object file to put in the global archive, and don't build
27272 a global archive if there is none.
27273 (X_Switches): New table
27274 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
27275 in the X_Switches table, if any.
27276 (Initialize): Make sure the X_Switches table is empty
27277 (Scan_Arg): Record -X switches in table X_Switches
27279 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
27281 * make.adb: Minor comment fix
27283 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
27284 invoked with directory information, add the directory in front of the
27287 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
27288 invoked with directory information, add the directory in front of the
27291 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
27292 when Keep_Temporary_Files is False.
27293 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
27294 directory information, add the directory in front of the path.
27295 When not on VMS, handle new switch -dn before the command to set
27296 Keep_Temporary_Files to True.
27297 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
27300 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
27301 invoked with directory information, add the directory in front of the
27304 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
27306 * snames.ads, snames.adb (Name_Stub): New name for the distributed
27309 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
27310 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
27312 * g-socket.adb (To_Timeval): Fix incorrect conversion of
27313 Selector_Duration to Timeval for the case of 0.0.
27315 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
27316 documentation from Evolve_And_Then.
27318 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
27320 * s-taprop-tru64.adb, s-taprop-os2.adb,
27321 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
27323 2004-07-06 Robert Dewar <dewar@gnat.com>
27325 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
27326 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
27327 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
27328 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
27329 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
27330 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
27331 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
27332 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
27333 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
27334 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
27335 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
27336 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
27337 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
27338 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
27339 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
27340 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
27341 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
27342 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
27343 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
27344 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
27345 vms_data.ads: Minor reformatting,
27346 Fix bad box comment format.
27348 * gnat_rm.texi: Fix minor grammatical error
27350 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
27352 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
27353 more cases of discriminated records to be recognized as not needing a
27355 (Has_Access_Values): New function.
27357 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
27359 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
27360 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
27361 with LRM terminology).
27362 Change terminology in comments primitive type => elementary type.
27364 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27367 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
27368 parameters do not impose any requirements on the presence of a body.
27370 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27373 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
27374 compilation unit and is in an open scope at the point of instantiation,
27375 assume that a body may be present later.
27377 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27379 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
27380 Improve error message when specified size is not supported.
27382 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
27383 is never a primitive operation.
27385 2004-07-05 Andreas Schwab <schwab@suse.de>
27387 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
27388 RECORD_OR_UNION_CHECK.
27389 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
27391 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
27393 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
27394 dependency on xgnatugn, instead build it via a submake.
27395 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
27397 2004-07-04 Richard Henderson <rth@redhat.com>
27399 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
27401 2004-07-01 Richard Henderson <rth@redhat.com>
27403 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
27404 * utils.c (max_size): Likewise.
27406 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27408 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
27409 and rest_of_type_compilation; add arg to create_*_decl.
27410 (annotate_decl_with_node): Deleted.
27411 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
27412 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
27413 (get_current_block_context, gnat_pushdecl): New declarations.
27414 (gnat_init_stmt_group): Likewise.
27415 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
27416 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
27417 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
27418 (gnat_init): Call gnat_init_stmt_group.
27419 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
27420 (gnu_pending_elaboration_list): Deleted.
27421 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
27422 (gigi): Rearrange initialization calls and move some to last above.
27423 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
27424 Delete calls to add_decl_expr; add arg to create_*_decl.
27425 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
27426 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
27427 begin_subprog_body and call it.
27428 Don't push and pop ggc context.
27429 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
27430 (add_stmt): Remove handling of DECL_EXPR from here.
27431 If not in function, mark visited.
27432 (add_decl_expr): Put global at top level.
27433 Check for cases of DECL_INITIAL we have to handle here.
27434 (process_type): Add extra arg to create_type_decl.
27435 (build_unit_elab): Rework to just gimplify.
27436 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
27437 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
27438 (get_pending_elaborations, pending_elaborations_p): Likewise.
27439 (push_pending_elaborations, pop_pending_elaborations): Likewise.
27440 (get_elaboration_location, insert_elaboration_list): Likewise.
27441 (gnat_binding_level): Renamed from ada_binding_level.
27442 (init_gnat_to_gnu): Don't clear pending_elaborations.
27443 (global_bindings_p): Treat as global if no current_binding_level.
27444 (set_current_block_context): New function.
27445 (gnat_pushdecl): Renamed from pushdecl; major rework.
27446 All callers changed.
27447 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
27448 (finish_record_type): Call call pushdecl for stub decl.
27449 (function_nesting_depth): Deleted.
27450 (begin_subprog_body): Delete obsolete code.
27451 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
27453 2004-06-28 Robert Dewar <dewar@gnat.com>
27455 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27456 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
27457 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
27458 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27459 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
27461 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
27462 deal with problem of inefficient slices on machines with strict
27463 alignment, when the slice is a component of a composite.
27465 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
27466 machines, we need the check there as well.
27468 2004-06-28 Ed Schonberg <schonberg@gnat.com>
27470 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
27471 determine safe copying direction for overlapping slice assignments
27472 when component is controlled.
27474 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
27475 formal derived type in the actual for a formal package are visible in
27476 the enclosing instance.
27478 2004-06-28 Ed Schonberg <schonberg@gnat.com>
27481 * sem_util.adb (Trace_Components): Diagnose properly an illegal
27482 circularity involving a private type whose completion includes a
27483 self-referential component.
27484 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
27485 renaming or an instantiation from an implicit derived operation.
27487 2004-06-28 Pascal Obry <obry@gnat.com>
27489 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
27491 (Library_File_Name_For): Idem.
27493 2004-06-28 Matthew Gingell <gingell@gnat.com>
27495 * g-traceb.ads: Add explanatory note on the format of addresses
27496 expected by addr2line.
27498 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
27500 * Makefile.in: Force debugging information on s-tasdeb.adb,
27501 a-except.adb and s-assert.adb needed by the debugger.
27503 2004-06-28 Vincent Celier <celier@gnat.com>
27505 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
27509 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
27511 * prj.adb: Minor reformatting
27512 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
27514 * prj.ads: Comment updates
27516 (Project_Data): Change Flag1 to Need_To_Build_Lib.
27517 Remove Flag2: not used.
27519 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
27522 * gnat_ugn.texi: Put a "null;" declaration in one project file example
27524 * gnat_rm.texi: Document Empty declarations "null;".
27526 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
27527 front of the linker options.
27528 (Link_Foreign): Put the global archives and the libraries in front of
27529 the linker options.
27531 2004-06-28 Javier Miranda <miranda@gnat.com>
27533 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
27534 (RTU_Loaded): Code cleanup
27535 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
27536 withed predefined units.
27538 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
27539 explicitly withed predefined units.
27540 Fix typo in comment
27542 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
27543 explicitly withed predefined units.
27545 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27547 * ada-tree.def (DECL_STMT): Deleted.
27548 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
27549 (DECL_STMT_VAR): Deleted.
27550 * decl.c: add_decl_stmt now add_decl_expr.
27551 * gigi.h: Likewise.
27552 * trans.c: Likewise.
27553 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27554 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
27555 (add_stmt): Only handle padded type here.
27556 (add_stmt_with_node): Allow gnat_node to not be present.
27557 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
27558 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
27559 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
27560 make a SAVE_EXPR for the entire fat pointer.
27561 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
27562 (create_index_type): Make a DECL_EXPR.
27563 (end_subprog_body): Don't call allocate_struct_function here but
27566 2004-06-25 Pascal Obry <obry@gnat.com>
27568 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
27569 Relocatable from Build_Dynamic_Library call.
27571 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
27572 Relocatable are now synonym.
27574 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
27576 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
27577 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
27580 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
27581 Lib_Address and Relocatable.
27582 (Default_DLL_Address): Removed.
27584 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27585 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27586 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
27587 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
27588 (Default_DLL_Address): Removed.
27590 * mlib-tgt-mingw.adb: Ditto.
27591 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
27593 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
27594 the initial thread stack size.
27596 * a-strmap.ads: Move package L to private part as it is not used in
27597 the spec. Found while reading code.
27599 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
27601 * tracebak.c: Introduce support for a GCC infrastructure based
27602 implementation of __gnat_backtrace.
27604 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
27605 any more. Use accessors instead. This eases maintenance and relaxes
27606 some alignment constraints.
27607 (_GNAT_Exception structure): Remove the Ada specific fields
27608 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
27610 (is_handled_by, __gnat_eh_personality): Replace component references to
27611 exception structure by use of the new accessors.
27613 * init.c (__gnat_initialize): Adjust comments to match the just
27614 reverted meaning of the -static link-time option.
27616 * adaint.c (convert_addresses): Arrange not to define a stub for
27617 mips-irix any more, as we now want to rely on a real version from a
27618 recent libaddr2line.
27620 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
27621 the personality routine can use them and not have to rely on a C
27622 counterpart of the record anymore. This simplifies maintenance and
27623 relaxes the constraint of having Standard'Maximum_Alignment match
27625 Update comments, and add a section on the common header alignment issue.
27627 2004-06-25 Geert Bosch <bosch@gnat.com>
27629 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
27630 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
27632 2004-06-25 Robert Dewar <dewar@gnat.com>
27634 * gnat_rm.texi: Fix section on component clauses to indicate that the
27635 restriction on byte boundary placement still applies for bit packed
27637 Add comment on stack usage from Initialize_Scalars
27639 * gnat_ugn.texi: Add documentation for -gnatyLnnn
27641 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
27642 limiting nesting level.
27644 * usage.adb: Add line for -gnatyLnnn switch
27646 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
27647 sem_ch13.adb, exp_aggr.adb: Minor reformatting
27649 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
27650 type as well as on the subtype. This corrects a problem in freeze in
27651 setting alignments of atomic types.
27653 * sem_eval.ads: Minor comment typo fixed
27655 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
27656 level. Minor reformatting.
27658 * fname.adb (Is_Predefined_File_Name): Require a letter after the
27659 minus sign. This means that file names like a--b.adb will not be
27660 considered predefined.
27662 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
27663 record Test new flag and give diagnostic for bad component clause.
27664 (Freeze_Entity): Set alignment of array from component alignment in
27665 cases where this is safe to do.
27667 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
27670 * cstand.adb: (Create_Standard): Set alignment of String to 1
27672 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
27674 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
27675 code in the common constrained array cases.
27677 * a-storio.adb: Change implementation to avoid possible alignment
27678 problems on machines requiring strict alignment (data should be moved
27679 as type Buffer, not type Elmt).
27681 * checks.adb (Apply_Array_Size_Check): Improve these checks by
27682 killing the overflow checks which we really do not need (64-bits is
27685 2004-06-25 Vincent Celier <celier@gnat.com>
27687 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
27688 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
27689 inconditionally for the main project.
27690 (Recursive_Add_Archives.Add_Archive_Path): New procedure
27691 (Link_Executables.Check_Time_Stamps): New procedure
27692 (Link_Executables.Link_Foreign): New procedure
27693 Changes made to reduce nesting level of this package
27694 (Check): New procedure
27695 (Add_Switches): When not in quiet output, check that a switch is not
27696 the concatenation of several valid switches. If it is, issue a warning.
27697 (Build_Global_Archive): If the global archive is rebuilt, linking need
27699 (Compile_Sources): Rebuilding a library archive does not imply
27700 rebuilding the global archive.
27701 (Build_Global_Archive): New procedure
27702 (Build_Library): New name for Build_Archive, now only for library
27704 (Check_Archive_Builder): New procedure
27705 (Create_Global_Archive_Dependency_File): New procedure
27706 (Gprmake): Call Build_Global_Archive before linking
27707 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
27709 (Scan_Arg): Display the Copyright notice when -v is used
27711 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
27714 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
27716 Add new GNAT LIST qualifier /FILES=
27717 Added qualifier /DIRECTORY= to GNAT METRIC
27718 Added qualifier /FILES= to GNAT METRIC
27719 Added qualifier /FILES to GNAT PRETTY
27721 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
27722 to take into account both versions of the switch.
27724 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
27725 always be the last switch to the gcc driver. Disable switch storing so
27726 that switches automatically added by the gcc driver are not put in the
27729 * prj.adb (Project_Empty): Take into account changes in components of
27732 * prj.ads (Languages_Processed): New enumaration value All_Languages.
27734 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
27735 used. Split Boolean component Ada_Sources_Present in two Boolean
27736 components Ada_Sources_Present and Other_Sources_Present.
27739 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
27740 instead of Sources_Present.
27741 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27743 * prj-nmsc.adb: Minor reformatting
27744 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
27745 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
27746 Check_Ada_Naming_Scheme.
27747 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
27750 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
27752 Make sure that all cycles where there is at least one "limited with"
27754 (Parse_Single_Project): New Boolean parameter In_Limited
27756 * prj-proc.adb (Recursive_Check): When Process_Languages is
27757 All_Languages, call first Prj.Nmsc.Ada_Check, then
27758 Prj.Nmsc.Other_Languages_Check.
27760 * prj-proc.adb (Process): Use Ada_Sources_Present or
27761 Other_Sources_Present (instead of Sources_Present) depending on
27764 * lang-specs.h: Keep -g and -m switches in the same order, and as the
27767 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
27768 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
27770 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
27773 * lib.ads (Disable_Switch_Storing): New procedure.
27775 * make.adb: Modifications to reduce nesting level of this package.
27776 (Check_Standard_Library): New procedure
27777 (Gnatmake.Check_Mains): New procedure
27778 (Gnatmake.Create_Binder_Mapping_File): New procedure
27779 (Compile_Sources.Compile): Add switch -gnatez as the last option
27780 (Display): Never display -gnatez
27782 * Makefile.generic:
27783 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
27785 * gnatcmd.adb (Check_Project): New function
27786 (Process_Link): New procedure to reduce nesting depth
27787 (Check_Files): New procedure to reduce the nesting depth.
27788 For GNAT METRIC, include the inherited sources in extending projects.
27789 (GNATCmd): When GNAT LS is invoked with a project file and no files,
27790 add the list of files from the sources of the project file. If this list
27791 is too long, put it in a temp text files and use switch -files=
27792 (Delete_Temp_Config_Files): Delete the temp text file that contains
27793 a list of source for gnatpp or gnatmetric, if one has been created.
27794 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
27795 in the project file is too large, create a temporary text file that
27796 list them and pass it to the tool with "-files=<temp text file>".
27797 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
27799 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
27800 generated file is in not in Ada.
27802 * gnatls.adb: Remove all parameters And_Save that are no longer used.
27803 (Scan_Ls_Arg): Add processing for -files=
27804 (Usage): Add line for -files=
27806 * g-os_lib.adb (On_Windows): New global constant Boolean flag
27807 (Normalize_Pathname): When on Windows and the path starts with a
27808 directory separator, make sure that the resulting path will start with
27811 * clean.adb (Clean_Archive): New procedure
27812 (Clean_Project): When there is non-Ada code, delete the global archive,
27813 the archive dependency files, the object files and their dependency
27814 files, if they exist.
27815 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
27817 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
27819 * sinfo.ads: Fix typo in comment.
27821 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
27822 the TSS for remote access-to-subprogram types, since these TSS are
27823 always present once the type has been analyzed.
27824 (RAS_E_Dereference): Same.
27826 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
27827 reference raises Bad_Attribute, mark the reference as analyzed so the
27828 node (and any children resulting from rewrites that could have occurred
27829 during the analysis that ultimately failed) is not analyzed again.
27831 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
27833 * exp_dist.adb: Minor comment fix.
27835 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
27836 type is an anonymous access type, no unchecked deallocation of the
27837 allocated object can occur. If the object is controlled, attach it with
27838 a count of 1. This allows attachment to the Global_Final_List, if
27839 no other relevant list is available.
27840 (Get_Allocator_Final_List): For an anonymous access type that is
27841 the type of a discriminant or record component, the corresponding
27842 finalisation list is the one of the scope of the type.
27844 2004-06-25 Ed Schonberg <schonberg@gnat.com>
27846 * sem_ch3.adb (Replace_Type): When computing the signature of an
27847 inherited subprogram, use the first subtype if the derived type
27848 declaration has no constraint.
27850 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
27851 before applying previous optimization. Minor code cleanup.
27853 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
27854 placed at the beginning of an unpacked record without explicit
27855 alignment, a slice of it will be aligned and does not need a copy when
27858 2004-06-25 Ed Schonberg <schonberg@gnat.com>
27862 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
27863 reference is written with expressions mimicking parameters.
27865 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
27868 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
27869 STEP 2a. The constraints of a full type declaration of a derived record
27870 type are checked for conformance with those declared in the
27871 corresponding private extension declaration. The message
27872 "not conformant with previous declaration" is emitted if an error is
27875 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
27877 * g-traceb.ads: Document the need for -E binder switch in the spec.
27879 * g-trasym.ads: Document the need for -E binder switch in the spec.
27881 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
27883 * sem_prag.adb: Add handling of pragma Detect_Blocking.
27885 * snames.h, snames.ads, snames.adb: Add entry for pragma
27888 * s-rident.ads: Change reference to pragma Detect_Blocking.
27890 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
27893 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
27894 to indicate whether pragma Detect_Blocking is active.
27896 * par-prag.adb: Add entry for pragma Detect_Blocking.
27898 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
27899 of not handling WITH.
27900 Note that this replaces the previous update which was incorrect.
27902 2004-06-25 Javier Miranda <miranda@gnat.com>
27904 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
27905 use-clauses to have a clean environment.
27907 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
27908 the installation of the use-clauses to stablish a clean environment in
27909 case of compilation of a separate unit; otherwise the call to
27910 use_one_package is protected by the barrier Applicable_Use.
27912 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
27913 the installation of the use-clauses to stablish a clean environment in
27914 case of compilation of a separate unit.
27915 (End_Use_Clauses): Minor comment cleanup.
27917 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
27919 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
27921 2004-06-23 Richard Henderson <rth@redhat.com>
27923 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
27925 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27927 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
27928 now bool instead of int.
27929 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
27930 * trans.c (gnu_switch_label_stack): New function.
27931 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
27932 elaboration of renamed entity returns.
27933 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
27934 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
27935 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
27936 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
27937 DECL_SIZE_UNIT and simplify variable-sized case.
27938 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27939 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
27940 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
27941 (build_unit_elab): Disable for now.
27942 * utils.c (mark_visited): New function.
27943 (pushdecl): Walk tree to call it for global decl.
27944 (update_pointer_to): Update all variants of pointer and ref types.
27945 Add arg to COMPONENT_REF.
27946 (convert): Likewise.
27947 Move check for converting between variants lower down.
27948 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
27949 (build_allocator): Don't force type of MODIFY_EXPR.
27950 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
27951 put_var_into_stack.
27953 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27955 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
27956 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
27957 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
27959 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
27960 all callers changed.
27961 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
27962 the way that EXIT_STMT finds the loop label.
27963 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
27964 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
27965 (add_stmt): Use annotate_with_locus insted of setting directly.
27966 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
27967 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
27968 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
27969 (build_vms_descriptor): Add extra args to ARRAY_REF.
27970 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
27971 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
27973 (build_binary_op): Don't make explicit CONVERT_EXPR.
27974 Add extra rgs to ARRAY_REF.
27976 2004-06-14 Pascal Obry <obry@gnat.com>
27978 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
27979 Windows. Fix minor typo.
27981 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
27982 which is now supported on Windows. With this implementation using the
27983 Library Project feature is no different on Windows than on UNIX.
27985 2004-06-14 Vincent Celier <celier@gnat.com>
27987 * makegpr.adb (Compile_Sources): Nothing to do when there are no
27990 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
27992 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
27993 found, show the project name and the path of the previously parsed
27996 2004-06-14 Ed Schonberg <schonberg@gnat.com>
27998 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
27999 array, avoid copying the actual before the call.
28001 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
28003 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
28004 Instead, allocate memory on worst-case alignment assumptions, and then
28005 return an aligned address within the allocated zone.
28007 2004-06-14 Robert Dewar <dewar@gnat.com>
28009 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
28010 elab entities in predefined units in No_Run_Time_Mode.
28011 (Gen_Adainit_C): Same fix
28012 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
28013 units in No_Run_Time_Mode
28014 (Gen_Elab_Calls_C): Same fix
28016 * symbols-vms-alpha.adb: Minor reformatting
28018 * g-debpoo.ads: Minor reformatting
28020 * lib.adb (In_Same_Extended_Unit): Version working on node id's
28022 * lib.ads (In_Same_Extended_Unit): Version working on node id's
28024 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
28027 * make.adb: Minor reformatting
28029 * par-ch12.adb: Minor reformatting
28031 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
28033 * prj-strt.adb: Minor reformatting
28035 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
28038 * sem_attr.adb: Minor reformatting
28040 * sem_ch7.adb: Minor reformatting
28042 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
28043 for type in the same unit as the object declaration.
28045 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
28046 static string expressions and not just string literals.
28048 (Set_Warning): Reset restriction warning flag for restriction pragma
28049 Implement pragma Profile_Warnings
28050 Implement pragma Profile (Restricted)
28051 Give obolescent messages for old restrictions and pragmas
28053 * snames.h, snames.ads, snames.adb: Add new entry for pragma
28056 * s-rident.ads: Add declarations for restrictions required by profile
28057 Restricted and profile Ravenscar.
28059 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
28061 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
28062 configuration pragmas.
28064 2004-06-11 Vincent Celier <celier@gnat.com>
28066 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
28067 gnatsym, when symbol policy is Restricted.
28069 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
28070 gnatsym, when symbol policy is Restricted.
28072 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
28073 read the symbol file.
28074 (Finalize): Fail in symbol policy Restricted if a symbol in the original
28075 symbol file is not in the object files. Do not create a new symbol file
28076 when symbol policy is Restricted.
28078 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
28081 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
28083 (Usage): Line for new switch -R
28085 * make.adb (Initialize): When the platform is not VMS, add the
28086 directory where gnatmake is invoked in the front of the path, if
28087 gnatmake is invoked with directory information. Change the Scan_Args
28088 while loop to a for loop.
28089 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
28090 if Depth is equal or greater than the proposed depth, there is nothing
28092 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
28095 * prj.ads: Add new symbol policy Restricted.
28097 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
28098 with the new parameters Check_All_Labels and Case_Location.
28100 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
28101 (Library_Symbol_File needs to be defined).
28103 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
28104 and Case_Location If Check_All_Labels is True, check that all values of
28105 the string type are used, and output warning(s) if they are not.
28107 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
28110 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
28112 * gnat_ugn.texi: Update documentation about the library directory in
28115 * makegpr.adb (Display_Command): In verbose mode, also display the
28116 value of the CPATH env var, when the compiler is gcc.
28117 (Initialize): Change the Scan_Args while loop to a for loop
28118 (Compile_Individual_Sources): Change directory to object directory
28119 before compilations.
28121 * symbols.ads: New symbol policy Restricted.
28123 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
28125 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
28126 is now taken care of internally in the Exception_Propagation package
28127 and does not require clients assistance any more.
28129 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
28130 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
28131 functions. Helpers to maintain a predicate required in the handling of
28132 occurrence transfer between tasks.
28133 This is now handled internally and does not require clients assistance
28134 for the setup/propagate separation anymore.
28135 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
28136 allocation strategy, handle the Setup_And_Not_Propagated predicate and
28139 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
28140 raise_after_setup, now that everything is handled internally within the
28141 setup/propagation engine.
28143 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
28145 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
28146 Add additional conditions for the case of an actual being a simple
28147 name or literal. Improve inlining by preventing the generation
28148 of temporaries with a short lifetime (one use).
28150 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
28153 * einfo.ads: Minor comment updates for Has_Completion and
28154 E_Constant list of flags.
28156 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
28157 and constant redeclarations now set the Has_Completion flag of their
28158 defining identifiers.
28160 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
28161 Inspect_Deferred_Constant_Completion.
28162 Used to detect private deferred constants that have not been completed
28163 either by a constant redeclaration or pragma Import. Emits error message
28164 "constant declaration requires initialization expression".
28166 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
28167 completes a deferred constant.
28169 2004-06-11 Geert Bosch <bosch@gnat.com>
28171 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
28173 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
28174 calculating exponent for scaling denormal numbers.
28175 (Leading_Part): Properly raise Constraint_Error for zero or negative
28177 (Remainder): Properly raise Constraint_Error for zero divisor.
28179 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
28181 * sem_util.adb: Minor reformatting.
28183 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
28184 dereference when accessing the entry parameter record.
28185 (Check_Array_Type): Always check for possible implicit dereference.
28186 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28187 Abort if a pointer is still present (denoting that an implicit
28188 dereference was left in the tree by the front-end).
28190 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
28191 dereference when accessing the entry parameter record.
28192 (Check_Array_Type): Always check for possible implicit dereference.
28193 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28194 Abort if a pointer is still present (denoting that an implicit
28195 dereference was left in the tree by the front-end).
28197 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
28199 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
28200 message, like the compiler itself does. Easier to parse the output.
28202 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
28204 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
28205 be base names, and not includes directories.
28207 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
28209 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
28210 so that dependencies are properly taken into account by make.
28212 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
28215 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
28216 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
28218 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
28220 * Makefile.in (install-gnatlib): install target-specific run-time files.
28222 * Make-lang.in: Remove obsolete targets.
28224 2004-06-11 Ed Schonberg <schonberg@gnat.com>
28226 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
28227 specification, to catch misuses of program unit names.
28229 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
28230 superfluous conversions in an instance.
28232 2004-06-11 Ed Schonberg <schonberg@gnat.com>
28235 * sem_ch12.adb (Save_References): If operator node has been folded to
28236 enumeration literal, associated_node must be discarded.
28238 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
28240 * s-stchop-vxworks.adb: Add required pragma Convention to
28241 Task_Descriptor because it is updated by a C function.
28243 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
28246 * Makefile.in: Remove target specific SO_OPT on IRIX
28248 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28250 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
28251 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
28252 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
28253 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
28254 (STMT_STMT, USE_STMT): New statement codes.
28255 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
28256 * ada-tree.h: Reflect above changes.
28257 (struct tree_loop_id): Deleted.
28258 (union lang_tree_node, struct lang_decl, struct lang_type):
28259 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
28260 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
28261 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
28262 (IS_ADA_STMT): New macro.
28263 * decl.c (annotate_decl_with_node): New function.
28264 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
28265 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
28266 Call add_stmt_with_node to do needed assignments.
28267 Add call to update setjmp buffer directly, not via EXPR_STMT.
28268 (maybe_variable): Argment GNAT_NODE deleted.
28269 * gigi.h (maybe_variable): Likewise.
28270 (make_transform, add_stmt_with_node, set_block_for_group): New.
28271 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
28272 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
28273 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
28274 (set_lineno, set_lineno_from_sloc): Likewise.
28275 (record_code_position, insert_code_for): Likewise.
28276 (gnat_poplevel): Now returns void.
28277 (end_subprog_body): Now takes argument.
28278 * misc.c (cgraph.h, tree-inline.h): New includes.
28279 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
28280 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
28281 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
28282 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
28283 (gnat_parse_file): Don't set immediate_size_expand.
28284 Call cgraph functions.
28285 (gnat_expand_expr): Remove most cases.
28286 (record_code_position, insert_code_for): Remove from here.
28287 * trans.c (toplev.h, tree-gimple.h): Now included.
28288 (discard_file_names): Deleted.
28289 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
28290 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
28291 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
28292 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
28293 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
28294 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
28295 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
28296 (set_block_for_group, add_stmt_list): Likewise.
28297 (start_stmt_group): Renamed from start_block_stmt.
28298 (end_stmt_group): Likewise, from end_block_stmt.
28299 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
28300 (gigi): Don't set discard_file_names or call set_lineno.
28301 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
28302 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
28303 Numerous changes throughout to reflect new names and complete
28304 function-at-a-time implementation.
28305 (gnat_expand_stmt): Delete or comment out all cases.
28306 (process_inlined_subprograms): Use add_stmt.
28307 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
28308 call set_lineno; also remove unneeded block handling.
28309 (process_type): Remove unneeded block handling.
28310 (build_unit_elab): Remove calls to deleted functions.
28311 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
28312 (tree-dump.h): Likewise.
28313 (struct ada_binding_level): Add field jmpbuf_decl.
28314 (gnat_define_builtin, gnat_install_builtins): New.
28315 (gnat_gimplify_function, gnat_finalize): Likewise.
28316 (gnat_poplevel): No longer return BLOCK, set it instead.
28317 Remove code dealing with nested functions.
28318 (gnat_init_decl_processing): Also set size_type_node.
28319 Call gnat_install_builtins.
28320 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
28321 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
28322 Remove special-case for "main".
28323 (end_subprog_body): Add arg and rework for tree-ssa.
28324 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
28325 Add case for BOOLEAN_TYPE.
28326 * utils2.c (rtl.h): Now include.
28327 (build_call_raise): Test Debug_Flag_NN directly.
28328 (build_call_alloc_dealloc): Don't use local stack allocation for now.
28329 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
28330 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
28332 2004-06-07 Robert Dewar <dewar@gnat.com>
28334 * a-direct.ads, einfo.ads: Minor comment updates
28336 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
28337 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28338 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
28339 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
28340 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
28342 * s-interr-sigaction.adb: Remove unreferenced variable
28343 (Attached_Interrupts). Minor reformatting.
28344 Avoid use of variable I (replace by J).
28346 * par-ch10.adb: Fix text of one error message
28348 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
28349 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
28350 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
28351 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
28352 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
28353 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
28354 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
28355 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
28356 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
28357 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
28358 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
28361 2004-06-07 Doug Rupp <rupp@gnat.com>
28363 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
28365 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
28367 * mlib-tgt-vms-ia64.adb: New file.
28369 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
28370 Add mlib-tgt-vms-ia64.adb
28371 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
28372 Move to alpha specific ifeq section.
28373 Add VMS specific versions of symbols.adb
28374 Renaming of 5q vms files.
28376 * 5qsystem.ads renamed to system-vms_64.ads.
28378 2004-06-07 Vincent Celier <celier@gnat.com>
28380 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
28381 explain that when a time of day corresponding to the non existing hour
28382 on the day switching to DST is specified, Split may return a different
28385 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
28388 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
28389 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
28391 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
28393 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
28394 the linking options.
28395 (Build_Library.Check_Libs): On VMS, if there is a dependency on
28396 g-trasym.ads, set Gtrasymobj_Needed to True.
28398 * prj-attr.adb: Add new package Metrics for gnatmetric
28400 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
28401 canonical case to take into account files with upper case characters on
28403 (Ada_Check): Load the reference symbol file name in the name buffer to
28404 check it, not the symbol file name.
28406 * snames.ads, snames.adb: Add standard name Metrics (name of project
28407 file package for gnatmetric).
28409 * vms_conv.ads: Add Metric to Comment_Type
28411 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
28413 * vms_data.ads: Add qualifiers for GNAT METRIC
28415 * makegpr.adb (Link_Executables): Take into account the switches
28416 specified in package Linker of the main project.
28418 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
28420 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
28421 the index of the last element is Units.Last, not Units.Table'Last
28422 (which is usually not a valid index within the actually allocated
28423 storage for the table).
28425 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
28426 determines whether to generate a call to a checked storage pool
28427 Dereference action.
28428 Generate such a call only for a dereference that either comes from
28429 source, or is the result of rewriting a dereference that comes from
28432 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
28434 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
28436 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
28438 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
28439 file level, elaborate the stride for inner dimensions in alignment
28442 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
28445 2004-06-07 Javier Miranda <miranda@gnat.com>
28447 * exp_ch6.adb: Correct wrong modification in previous patch
28449 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
28451 * g-trasym.ads: Corrected comment to properly reflect level of support
28454 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
28456 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
28457 includes case of a variable referenced on the left hand side of an
28458 assignment, therefore remove redundant code. Variables and prefixes of
28459 indexed or selected components are now marked as referenced on left
28460 hand side. Warnings are now properly emitted when variables or prefixes
28461 are assigned but not read.
28463 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
28464 left hand side referenced variables. Private access types do not
28465 produce the warning "variable ... is assigned but never read".
28466 Add also additional checks to left hand side referenced variables.
28467 Aliased, renamed objects and access types do not produce the warning
28468 "variable ... is assigned but never read" since other entities may read
28469 the memory location.
28471 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
28473 * Makefile.in: In the powerpc/vxworks-specific section, restore
28474 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
28477 2004-06-07 Ed Schonberg <schonberg@gnat.com>
28479 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
28480 predefined operators.
28481 Removes spurious type errors from g-trasym-vms.adb.
28483 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
28484 distinct from the operator appearing in the source, call appropriate
28485 routine to insert conversions when needed, and complete resolution of
28487 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
28488 interpretations for rewritten right operand.
28489 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
28490 the other operand is overloaded and the context is a type conversion.
28492 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28494 * ada-tree.def (BLOCK_STMT): Now has two operands.
28497 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
28499 * gigi.h: (gnat_poplevel): Now returns a tree.
28501 * trans.c (end_block_stmt): Add arg; all callers changed.
28502 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
28503 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
28504 (add_stmt): Set TREE_TYPE.
28505 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
28506 (gnat_expand_stmt, case BREAK_STMT): New case.
28508 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
28510 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
28512 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
28513 procedure Set_Stack_Size that is not needed.
28515 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
28517 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
28518 used for gnatpp input file and for the files upon which it depends
28520 2004-06-07 Ben Brosgol <brosgol@gnat.com>
28522 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28524 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
28526 * gnatvsn.ads: Bump version numbers appropriately.
28527 Add new build type.
28529 2004-06-07 Pascal Obry <obry@gnat.com>
28531 * gnat_ugn.texi: Improve comments about imported names and link names
28532 on Windows. Add a note about the requirement to use -k gnatdll's option
28533 when working with a DLL which has stripped stdcall symbols (no @nn
28536 2004-05-27 Vincent Celier <celier@gnat.com>
28538 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
28539 COMMENTS_LAYOUT=UNTOUCHED
28541 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
28542 symbols-vms-alpha.adb
28544 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
28546 * sem.ads: Clarify documentation on checks suppression.
28548 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
28550 2004-05-27 Ed Schonberg <schonberg@gnat.com>
28552 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
28553 the case of multiple derivations.
28554 (Is_Object_Reference): For a selected component, verify that the prefix
28555 is itself an object and not a value.
28557 * sem_ch12.adb (Same_Instantiated_Constant): New name for
28558 Same_Instantiated_Entity.
28559 (Same_Instantiated_Variable): Subsidiary to
28560 Check_Formal_Package_Instance, to recognize actuals for in-out generic
28561 formals that are obtained from a previous formal package.
28562 (Instantiate_Subprogram_Body): Emit proper error when
28563 generating code and the proper body of a stub is missing.
28565 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
28566 has a universal interpretation, do the disambiguation here.
28568 * exp_ch4.adb (Expand_N_Type_Conversion,
28569 Expand_N_Unchecked_Type_Conversion): Special handling when target type
28570 is Address, to avoid typing anomalies when Address is a visible integer
28573 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
28574 to determine whether a subprogram should not be marked Pure, even when
28575 declared in a pure package.
28577 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
28579 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
28581 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
28582 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
28583 Update the documentation about the Ravenscar profile, following the
28584 definition found in AI-249.
28586 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
28587 setting the Profile (Ravenscar). This must be done in addition to
28588 setting the required restrictions.
28590 * rtsfind.ads: Add the set of operations defined in package
28593 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
28596 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
28598 lang-specs.h: Always require -c or -S and always redirect to /dev/null
28599 if -gnatc or -gnats is passed.
28601 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
28603 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
28604 a significant reference. Warnings are now properly emitted when a
28605 discriminated type is not referenced.
28607 * lib-xref.adb (Generate_Reference): A deferred constant completion,
28608 record representation clause or record type discriminant does not
28609 produce a reference to its corresponding entity. Warnings are now
28610 properly emitted when deferred constants and record types are not
28613 2004-05-27 Geert Bosch <bosch@gnat.com>
28615 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
28616 Fixes ACATS Annex G tests.
28618 2004-05-27 Robert Dewar <dewar@gnat.com>
28620 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
28623 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
28625 * s-interr.adb (Server_Task): Take into account case of early return
28626 from sigwait under e.g. linux.
28628 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
28630 * gnat_ugn.texi: Add description for the new gnatpp options:
28631 -rnb - replace the original source without creating its backup copy
28632 -c0 - do not format comments
28634 2004-05-24 Geert Bosch <bosch@gnat.com>
28636 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
28637 with 192 bits of precision, sufficient to reduce a double-extended
28638 arguments X with a maximum relative error of T'Machine_Epsilon, for X
28639 in -2.0**32 .. 2.0**32.
28640 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
28641 reduction by the processor, which only uses a 68-bit approximation of
28643 (Tan): Always reduce arguments and compute function either using
28644 the processor's fptan instruction, or by dividing sin and cos as needed.
28646 2004-05-24 Doug Rupp <rupp@gnat.com>
28648 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
28649 gcc error on 32/64 bit VMS.
28651 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
28653 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
28654 since this is what we get for stack overflows although not documented
28656 Document the issues which may require adjustments to our signal
28659 2004-05-24 Ed Schonberg <schonberg@gnat.com>
28661 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
28662 enclosing dynamic scope if the instantiation is within a generic unit.
28664 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
28666 * exp_dbug.ads: Fix typo.
28668 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
28669 Rename it to its proper name: system-linux-ia64.ads
28670 (stamp-gnatlib1): Remove extra target specific run time files when
28671 setting up the rts directory.
28673 2004-05-24 Javier Miranda <miranda@gnat.com>
28675 * einfo.ads, einfo.adb (Limited_Views): Removed.
28676 (Limited_View): New attribute that replaces the previous one. It is
28677 now a bona fide package with the limited-view list through the
28678 first_entity and first_private attributes.
28680 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
28681 limited-private-with clause.
28682 (Install_Limited_Withed_Unit): Install the private declarations of a
28683 limited-private-withed package. Update the installation of the shadow
28684 entities according to the new structure (see Build_Limited_Views)
28685 (Build_Limited_Views): Replace the previous implementation of the
28686 limited view by a package entity that references the first shadow
28687 entity plus the first shadow private entity (required for limited-
28688 private-with clause)
28689 (New_Internal_Shadow_Entity): Code cleanup.
28690 (Remove_Limited_With_Clause): Update the implementation to undo the
28691 new work carried out by Build_Limited_Views.
28692 (Build_Chain): Complete documentation.
28693 Replace Ada0Y by Ada 0Y in comments
28696 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
28697 types the level of accessibility depends on the enclosing type
28700 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
28701 entities. Complete documentation of previous change.
28703 2004-05-24 Robert Dewar <dewar@gnat.com>
28705 * namet.adb: Minor reformatting
28706 Avoid use of name I (replace by J)
28707 Minor code restructuring
28709 * sem_ch6.adb: Minor reformatting
28711 * lib-writ.adb: Do not set restriction as active if this is a
28712 Restriction_Warning case.
28714 * sem_prag.adb: Reset restriction warning flag if real pragma
28715 restriction encountered.
28717 * s-htable.adb: Minor reformatting
28718 Change rotate count to 3 in Hash (improves hash for small strings)
28720 * 5qsystem.ads: Add comments for type Address (no literals allowed).
28722 * gnat_ugn.texi: Add new section of documentation "Code Generation
28723 Control", which describes the use of -m switches.
28725 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
28727 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
28728 through the DECL_INITIAL for renamed variables.
28730 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
28732 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
28734 2004-05-19 Joel Brobecker <brobecker@gnat.com>
28736 * exp_dbug.ads: Correct comments concerning handling of overloading,
28737 since we no longer use $ anymore.
28739 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
28741 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
28742 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
28743 with illegal subunits.
28745 2004-05-19 Ed Schonberg <schonberg@gnat.com>
28747 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
28748 body with front-end inlining enabled, check whether an inline pragma
28749 appears immediately after the body and applies to it.
28751 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
28752 enabled and the pragma appears after the body of the subprogram.
28754 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28756 Part of function-at-a-time conversion
28758 * misc.c (adjust_decl_rtl): Deleted.
28759 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
28762 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
28763 (add_decl_stmt, add_stmt, block_has_vars): New functions.
28764 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
28766 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
28767 when making a decl.
28768 (gnat_to_gnu_entity): Likewise.
28769 Use add_stmt to update setjmp buffer.
28770 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
28772 No longer call adjust_decl_rtl.
28773 (DECL_INIT_BY_ASSIGN_P): New macro.
28774 (DECL_STMT_VAR): Likewise.
28776 * trans.c (gigi): Call start_block_stmt to make the outermost
28778 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
28779 Call start_block_stmt and end_block_stmt temporarily.
28780 Use gnat_expand_stmt instead of expand_expr_stmt.
28781 (add_decl_stmt): New function.
28782 (tree_transform): Call it.
28783 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
28784 (end_block_stmt): Set type and NULL_STMT.
28785 (gnat_expand_stmt): Make recursize call instead of calling
28787 (gnat_expand_stmt, case DECL_STMT): New case.
28788 (set_lineno_from_sloc): Do nothing if global.
28789 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
28790 (start_block_stmt, add_stmt, end_block_stmt): New functions.
28791 (build_block_stmt): Call them.
28792 (gnat_to_code): Don't expand NULL_STMT.
28793 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
28795 (tree_transform): Likewise.
28796 (tree_transform, case N_Null_Statement): Return NULL_STMT.
28797 (gnat_expand_stmt, case NULL_STMT): New case.
28798 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
28801 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
28804 * utils.c (create_var_decl): Do not call expand_decl or
28806 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
28807 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
28809 (struct e_stack): Add chain_next to GTY.
28810 (struct binding_level): Deleted.
28811 (struct ada_binding_level): New struct.
28812 (free_block_chain): New.
28813 (global_binding_level, clear_binding_level): Deleted.
28814 (global_bindings_p): Rework to see if no chain.
28815 (kept_level_p, set_block): Deleted.
28816 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
28817 new data structure and work directly on BLOCK node.
28818 (gnat_poplevel): Similarly.
28819 (get_decls): Look at BLOCK_VARS.
28820 (insert_block): Work directly on BLOCK node.
28821 (block_has_var): New function.
28822 (pushdecl): Rework for new binding structures.
28823 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
28825 (build_subprog_body): Likewise.
28826 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
28828 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
28830 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
28831 (DECL_STMT_VAR): Likewise.
28833 2004-05-17 Robert Dewar <dewar@gnat.com>
28835 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
28838 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
28839 of restriction synonyums by using
28840 Restrict.Process_Restriction_Synonyms.
28842 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
28844 * s-restri.ads (Tasking_Allowed): Correct missing comment
28846 * s-rident.ads: Add entries for restriction synonyms
28848 * ali.adb: Fix some problems with badly formatted ALI files that can
28849 result in infinite loops.
28851 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
28852 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
28853 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28854 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
28855 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
28856 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
28857 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
28858 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
28859 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
28860 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
28861 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
28862 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
28863 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
28864 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
28865 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
28866 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
28867 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
28868 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28869 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
28870 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
28871 to Task_Id (minor cleanup).
28873 2004-05-17 Vincent Celier <celier@gnat.com>
28875 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
28876 directory separator.
28878 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
28879 project being extended, if Languages is not declared in extending
28882 2004-05-17 Javier Miranda <miranda@gnat.com>
28884 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
28885 limited view of a visible sibling.
28887 2004-05-14 Robert Dewar <dewar@gnat.com>
28889 * gnat_ugn.texi: Minor change to -gnatS documentation
28891 * sprint.adb: Remove some instances of Assert (False) and for this
28892 purpose replace them by output of a ??? string.
28894 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
28897 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
28898 flag processing. This was suppressing required dependencies in
28899 No_Run_Time mode and is not needed since the binder does not generate
28900 references for things in libgnat anyway.
28902 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
28905 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
28907 * gnat_ugn.texi: Document AIX-specific issue with initialization of
28910 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
28911 action for the case of an actual parameter in an init proc call.
28913 2004-05-14 Ed Schonberg <schonberg@gnat.com>
28915 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
28916 subtype, check visible entities in base type.
28918 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
28919 actions if the object is a renaming.
28921 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
28922 Check_Formal_Package_Instance, to determine more precisely when the
28923 formal and the actual denote the same entity.
28925 2004-05-14 Javier Miranda <miranda@gnat.com>
28927 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
28929 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
28930 corresponding to a private_with must be removed from visibility; it
28931 will be made visible later, just before we analyze the private part of
28933 (Check_Private_Child_Unit): Allow private_with clauses in public
28935 (Install_Siblings): Make visible the private entities of private-withed
28937 (Install_Withed_Unit): Do not install the private withed unit if we
28938 are compiling a package declaration and the Private_With_OK flag was
28939 not set by the caller. These declarations will be installed later,
28940 just before we analyze the private part of the package.
28942 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
28943 during the evaluation of the expression that initializes the object,
28944 decorate it with the expected type to avoid cascade errors.
28947 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
28948 subprogram we have to install the private_with clauses after its
28949 specification has been analyzed (as documented in AI-262.TXT).
28951 * sem_ch8.adb (Has_Private_With): New function. Determines if the
28952 current compilation unit has a private with on a given entity.
28953 (Find_Direct_Name): Detect the Beaujolais problem described in
28956 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
28957 provides the functionality of the function Is_Ancestor that was
28958 previously available in sem_ch10. It has been renamed to avoid
28961 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
28963 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28965 * utils.c (build_vms_descriptor): Use SImode pointers.
28967 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
28969 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
28971 2004-05-14 GNAT Script <nobody@gnat.com>
28973 * Make-lang.in: Makefile automatically updated
28975 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
28977 Renaming of target specific files for clarity
28979 * Makefile.in: Rename GNAT target specific files.
28981 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
28982 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
28983 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
28984 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
28985 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
28986 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
28987 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
28988 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
28989 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
28990 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
28991 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
28992 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
28993 51osinte.adb, 51osinte.ads, 51system.ads,
28994 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28995 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
28996 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
28997 56tpopsp.adb, 57system.ads, 58system.ads,
28998 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
28999 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29000 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
29001 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
29002 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
29003 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29004 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
29005 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
29006 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
29007 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
29008 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
29009 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
29010 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
29011 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
29012 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
29013 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29014 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29015 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29016 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
29017 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
29018 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
29019 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
29020 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
29021 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29022 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
29023 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
29024 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29025 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
29026 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29027 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
29028 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
29029 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
29030 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
29031 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
29032 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
29033 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
29034 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
29035 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
29036 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
29037 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
29039 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
29040 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
29041 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
29042 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
29043 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
29044 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
29045 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
29046 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
29047 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
29048 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
29049 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
29050 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
29051 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
29052 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
29053 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
29054 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
29055 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
29056 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
29057 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
29058 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
29059 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
29060 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
29061 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
29062 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
29063 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
29064 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
29065 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
29066 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
29067 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
29068 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
29069 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
29070 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
29071 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
29072 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
29073 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
29074 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
29075 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
29076 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
29077 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
29078 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
29079 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
29080 s-osinte-vms.ads, s-osinte-vxworks.adb,
29081 s-osinte-vxworks.ads, s-osprim-mingw.adb,
29082 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
29083 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
29084 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
29085 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
29086 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
29087 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
29088 s-stchop-vxworks.adb, s-taprop-dummy.adb,
29089 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
29090 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
29091 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
29092 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
29093 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
29094 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
29095 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
29096 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
29097 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
29098 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
29099 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
29100 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
29101 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
29102 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
29103 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
29104 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
29105 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
29106 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
29107 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
29108 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
29109 system-irix-o32.ads, system-linux-x86_64.ads,
29110 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29111 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
29112 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
29113 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
29114 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
29115 system-vxworks-mips.ads, system-vxworks-ppc.ads,
29116 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
29119 2004-05-13 Zack Weinberg <zack@codesourcery.com>
29121 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
29123 2004-05-13 Diego Novillo <dnovillo@redhat.com>
29125 Merge from tree-ssa-20020619-branch.
29127 * config-lang.in (boot_language, build_by_default): Set
29129 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
29130 (max_size): Add static chain op for call_expr.
29132 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
29135 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
29137 2004-05-11 Roger Sayle <roger@eyesopen.com>
29139 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
29142 2004-05-10 Doug Rupp <rupp@gnat.com>
29144 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
29147 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
29149 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
29151 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
29152 Fixes undefined symbols in IA64 gnatlib.
29154 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
29156 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
29157 Short_Address). This will be moved to system.auxdec.
29159 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
29161 * sem_util.adb: Replace test for presence of a node that is always
29162 present with a call to Discard_Node.
29164 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
29165 Analyze on the library unit node after generation of distribution stub
29166 constructs. The call was a no-op because Unit_Node has already been
29167 Analyzed, and the tree fragments for the distribution stubs are
29168 analyzed as they are inserted in Exp_Dist.
29169 Update comment regarding to distribution stubs to reflect that we
29170 do not generate stub in separate files anymore.
29172 * einfo.ads: Clarify the fact that a tagged private type has the
29173 E_Record_Type_With_Private Ekind.
29175 * erroutc.adb: Minor reformatting
29177 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
29178 values if line length is increased using -gnatyM (noticed during code
29181 * eval_fat.adb: Minor reformatting
29182 Put spaces around exponentiation operator
29184 2004-05-10 Ed Schonberg <schonberg@gnat.com>
29187 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
29188 has been rewritten as an explicit dereference, retrieve type of
29189 original node to check for possibly unconstrained record type.
29191 2004-05-10 Ed Schonberg <schonberg@gnat.com>
29193 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
29194 overriding, use the operation of the parent unconditionally.
29196 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
29197 operation when either operand is a literal, to avoid further
29200 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
29201 overridden by a previous explicit declaration, mark the previous entity
29204 * sem_disp.adb (Check_Dispatching_Operation): New predicate
29205 Is_Visibly_Controlled, to determine whether a declaration of a
29206 primitive control operation for a derived type overrides an inherited
29207 one. Add warning if the explicit declaration does not override.
29209 2004-05-10 Vincent Celier <celier@gnat.com>
29211 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
29212 some cases when the sources are no longer present.
29214 * make.adb (Collect_Arguments): Fail if an external source, not part
29215 of any project need to be compiled, when switch -x has not been
29218 * makeusg.adb: Document new switch -x
29220 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
29221 defaulted to False.
29223 * switch-m.adb (Scan_Make_Switches): New switch -x
29225 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
29226 gnatmake switch -x.
29228 * gnat_ugn.texi: Document new gnatmake switch -x
29230 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
29232 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
29234 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
29235 (process_attributes): Likewise.
29237 2004-05-10 Joel Brobecker <brobecker@gnat.com>
29239 * s-inmaop.ads: Fix spelling mistake in one of the comments.
29241 2004-05-10 Robert Dewar <dewar@gnat.com>
29243 * gnat_ugn.texi: Document that for config pragma files, the maximum
29244 line length is always 32767.
29246 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
29247 literals is now allowed.
29249 * gnat-style.texi: Remove statement about splitting long lines before
29250 an operator rather than after, since we do not follow this rule at all.
29251 Clarify rule (really lack of rule) for spaces around exponentiation
29253 * sem_elim.adb: Allow concatenation of string literals as well as a
29254 single string literal for pragma arguments.
29256 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
29258 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
29259 written for append case.
29261 * frontend.adb: Changes to avoid checking max line length in config
29264 * g-os_lib.ads: Minor reformatting
29266 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
29267 wrong in any case. Instead use standard value. Noticed during code
29270 * opt.ads (Max_Line_Length): New field, used to implement removal of
29271 limitation on length of lines when scanning config pragma files.
29273 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
29274 makeutl.ads, makeutl.adb: Minor reformatting
29276 * scn.adb: Do not check line length while scanning config pragma files
29277 Do not check line length while scanning out license information
29279 * scng.adb: Changes to avoid line length checks while parsing config
29282 2004-05-10 GNAT Script <nobody@gnat.com>
29284 * Make-lang.in: Makefile automatically updated
29286 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
29288 * osint.adb (Find_Program_Name): Fix handling of VMS version
29291 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
29293 * g-os_lib.ads (Invalid_Time): New constant
29295 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
29296 return OS_Time instead of time_t to match what is imported by Ada.
29297 Now return -1 if the file doesn't exist, instead of a random value
29299 2004-05-05 Robert Dewar <dewar@gnat.com>
29301 * usage.adb: Add line for -gnatR?s switch
29303 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
29305 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
29306 and for Match (Data_First, Data_last)
29308 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
29309 written when we are dealing with multi-unit files.
29311 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
29313 * Makefile.in: Remove unused targets and variables.
29315 2004-05-05 Vincent Celier <celier@gnat.com>
29317 * switch-m.adb: New gnatmake switch -eI
29319 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
29320 of new gnatmake switch -eInnn.
29322 * makegpr.adb: Take into account new parameters Index and Src_Index in
29325 * clean.adb: Implement support for multi-unit sources, including new
29328 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
29331 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
29332 (Extract_From_Q): New out parameter Index
29333 (Mark, Is_Marked): Subprograms moved to Makeutl
29334 (Switches_Of): New parameter Source_Index
29335 (Add_Switch): New parameter Index
29336 (Check): New parameter Source_Index
29337 (Collect_Arguments): New parameter Source_Index
29338 (Collect_Arguments_And_Compile): New parameter Source_Index
29339 (Compile): New parameter Source_Index
29340 Put subprograms in alphabetical order
29341 Add support for multi-source sources, including in project files.
29343 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
29344 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
29347 * makeusg.adb: New gnatmake switch -eInnn
29349 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
29352 * opt.ads (Main_Index): New variable, defaulted to 0.
29354 * osint.ads, osinte.adb (Add_File): New parameter Index
29355 (Current_Source_Index): New function
29357 * prj.adb: Take into account new components Index and Src_Index
29359 * prj.ads (String_Element): New component Index
29360 (Variable_Value): New component Index
29361 (Array_Element): New component Src_Index
29363 * prj-attr.adb: Indicate that optional index may be specified for
29364 attributes Main, Executable, Spec, Body and some of Switches.
29366 * prj-attr.ads (Attribute_Kind): New values for optional indexes
29367 (Attribute_Record): New component Optional_Index
29369 * prj-com.ads (File_Name_Data): New component Index
29371 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
29373 * prj-env.adb (Put): Output optional index
29375 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
29376 attributes Spec and Body.
29378 * prj-nmsc.adb: Process optional indexes
29380 * prj-pp.adb: Ouput "at" for optional indexes
29382 * prj-proc.adb: Take into account optional indexes
29384 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
29385 Optional_Index. For string literal,
29386 process optional index when Optional_Index is True.
29387 (Parse_Expresion): New Boolean parameter Optional_Index
29389 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
29390 (Set_Source_Index_Of): New procedure
29392 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
29395 * prj-util.ads (Executable_Of): New parameter Index
29396 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
29397 New parameter Src_Index, defaulted to 0.
29399 2004-05-05 Ed Schonberg <schonberg@gnat.com>
29402 * sem_ch3.adb (Access_Definition): If this is an access parameter
29403 whose designated type is imported through a limited_with clause, do
29404 not add the enclosing subprogram to the list of private dependents of
29407 2004-05-05 Ed Schonberg <schonberg@gnat.com>
29410 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
29411 a limited_with clause, and the other is its non-limited view.
29413 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
29415 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
29417 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
29418 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
29419 Stand.Boolean_Literals to produce references to entities
29420 Standard_False and Standard_True from compile-time computed boolean
29423 * stand.ads (Boolean_Literals): New variable, provides the entity
29424 values for False and True, for use by the expander.
29426 2004-05-05 Doug Rupp <rupp@gnat.com>
29428 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
29429 5vinmaop.adb: Unchecked convert Short_Address vice Address
29431 * adaint.c, raise.c: Caste CRTL function return value
29432 to avoid gcc error on 32/64 bit IVMS.
29434 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
29437 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
29439 * 5qsystem.ads (Address): Declare as Long_Integer
29440 (Short_Address): Declare as 32 bit subtype of Address
29441 Declare abstract address operations to avoid gratuitous ambiguities.
29443 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
29445 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
29446 instead of the old Boolean_Entry_Barriers.
29447 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
29449 2004-05-05 GNAT Script <nobody@gnat.com>
29451 * Make-lang.in: Makefile automatically updated
29453 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
29455 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
29457 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
29460 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
29461 alone. Replacing object references by literals is inappropriate in a
29462 so low level context.
29464 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
29466 * a-exexpr.adb: Add comments
29468 2004-05-03 Joel Brobecker <brobecker@gnat.com>
29470 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
29471 declare the Ancestor_Tags array in Type_Specific_Data with a small size
29472 without risking a bounds check error when accessing one of its
29474 (Type_Specific_Data): Define Ancestor_Tags as a small array.
29475 This prevents us from hitting a limitation during the debug info
29476 generation when using stabs.
29478 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
29480 This prevents us from hitting a limitation during the debug info
29481 generation when using stabs.
29483 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
29485 lang-specs.h: Remove -gnatz* from specs.
29487 2004-05-03 Vincent Celier <celier@gnat.com>
29489 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
29491 * Make-lang.in, Makefile.in: Add gprmake
29493 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
29495 * sem_aggr.adb: Fix typo in comment.
29497 2004-05-03 Robert Dewar <dewar@gnat.com>
29499 * make.adb: Minor reformatting
29501 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
29503 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
29504 so that it works when address is not a private type.
29506 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
29507 properly with rewritten unchecked conversions. This prevents
29508 order-of-elaboration issues that can otherwise arise.
29509 (Minimum_Size): Don't check size of access types under VMS
29511 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
29512 interpretations of integer literals as type System.Address.
29514 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
29515 (Is_Descendent_Of): New function
29517 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
29519 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29520 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
29521 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
29523 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
29524 of the old Max_Entry_Queue_Depth.
29526 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29527 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
29528 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
29530 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
29531 New entry for proper handling of Max_Entry_Queue_Depth.
29532 New entry for proper handling of No_Dynamic_Interrupts.
29534 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
29535 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29536 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
29537 the GNAT specific restriction Max_Entry_Queue_Depth.
29538 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
29539 the GNAT specific restriction No_Dynamic_Interrupts.
29541 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
29542 instead of the old Boolean_Entry_Barriers.
29543 Use the new restriction No_Dynamic_Attachment instead of the old
29544 No_Dynamic_Interrupts.
29546 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
29547 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29549 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
29550 of the old Max_Entry_Queue_Depth.
29552 2004-05-03 GNAT Script <nobody@gnat.com>
29554 * Make-lang.in: Makefile automatically updated
29556 2004-04-29 Ed Schonberg <schonberg@gnat.com>
29558 * checks.adb (Enable_Range_Check): If the prefix of an index component
29559 is an access to an unconstrained array, perform check unconditionally.
29561 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29563 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
29566 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
29568 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
29569 alternate stack setting. There was no support for the tasking cases
29570 and the changes eventually caused a number of side-effect failures in
29571 the non-tasking case too.
29573 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
29575 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
29578 2004-04-29 Vincent Celier <celier@gnat.com>
29580 * make.adb (Gnatmake): Increase max size of argument array for
29581 gnatbind for the potential addition of -F.
29582 If there are Stand-Alone Library projects, invoke gnatbind with -F to
29583 be sure that elaboration flags will be checked.
29585 * switch-c.adb: Correct call to Scan_Pos for -gnateI
29587 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
29589 * sem_warn.adb (Check_References): Move '<access-variable> may be
29590 null' warning out of under Warn_On_No_Value_Assigned.
29592 2004-04-29 Ed Falis <falis@gnat.com>
29594 * gnat_ugn.texi: Fixed texi error
29596 2004-04-29 Robert Dewar <dewar@gnat.com>
29598 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
29599 abstract operations if they come from predefined files.
29601 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
29604 * s-addope.adb: Correct obvious error in mod function
29606 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
29608 * Makefile.in: Add target pairs for powerpc darwin*
29611 * a-intnam-darwin.ads, s-osinte-darwin.adb,
29612 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
29614 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
29616 * Makefile.in: Add target macro definitions for s390*-linux*.
29617 * system-linux-s390.ads: New file.
29618 * system-linux-s390x.ads: New file.
29620 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
29622 * gnat_ugn.texi: Correct argument to @setfilename.
29624 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
29626 * a-exexpr.adb (Unwind_Word): New data type.
29627 (Unwind_Exception): Use it as type of Private1 and Private2.
29629 * raise.c (db_action_for): Fix debug printf.
29631 2004-04-27 Ed Schonberg <schonberg@gnat.com>
29633 * a-wtmoio.ads: Formal type must be a modular type, not a signed
29636 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29638 * decl.c (gnat_to_gnu_entity, case object): Call
29639 __builtin_update_setjmp_buf.
29641 * gigi.h (update_setjmp_buf): Deleted.
29642 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
29644 * misc.c: (update_setjmp_buf): Deleted.
29646 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
29647 around block of RTL.
29649 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
29651 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
29653 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
29654 subprogram for which no pragma All_Calls_Remote applies, store the
29655 address of the real subprogram in the underlying record type, so local
29656 dereferences do not go through the PCS.
29658 2004-04-26 Robert Dewar <dewar@gnat.com>
29660 * i-c.ads: Add some type qualifications to avoid ambiguities when
29661 compiling with s-auxdec.ads and a non-private address type.
29663 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
29665 * Makefile.rtl: Fix error in previous check-in:
29666 Add s-addope.o to non tasking object list (rather than tasking object
29669 2004-04-26 Javier Miranda <miranda@gnat.com>
29671 * sem_aggr.adb: Fix typo in comments
29672 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
29673 Required to check the null-exclusion attribute.
29675 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
29676 case of anonymous access types in record and array components. For a
29677 component definition the level is the same of the enclosing composite
29680 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
29681 that are anonymous access types the level of accessibility depends on
29682 the enclosing type declaration. In order to have this information, set
29683 the scope of the anonymous access type to the enclosing record type
29685 (Array_Type_Declaration): In case of components that are anonymous
29686 access types the level of accessibility depends on the enclosing type
29687 declaration. In order to have this information, set the scope of the
29688 anonymous access type to the enclosing array type declaration.
29690 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
29693 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
29694 renaming of anonymous access-to-constant types allowed if and only if
29695 the renamed object is access-to-constant.
29697 * sem_util.adb (Type_Access_Level): In case of anonymous access types
29698 that are component_definition or discriminants of a nonlimited type,
29699 the level is the same as that of the enclosing component type.
29701 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
29703 * sem_elim.adb: Some minor code reorganization from code reading. Fix
29704 misprint in the function name (File_Name_Match).
29706 2004-04-23 Laurent Guerby <laurent@guerby.net>
29708 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
29711 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29713 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
29715 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
29717 * adaint.c (__gnat_try_lock): No longer requires that the parent
29718 directory be writable, the directory itself is enough.
29719 (gnat_is_absolute_path): Change profile, so that the call from
29720 GNAT.OS_Lib can be made more efficient.
29722 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
29723 from GNAT.OS_Lib can be made more efficient.
29725 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
29726 one copy of the file name. Found by code reading.
29728 2004-04-23 Vincent Celier <celier@gnat.com>
29730 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
29731 Correct documentation on gnatmake switches transmitted to the compiler
29733 * ali.ads: Minor comment fix
29735 2004-04-23 Javier Miranda <miranda@gnat.com>
29737 * sem_ch6.adb: (Confirming Types): Code cleanup
29739 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
29740 subprogram types: E_Anonymous_Access_Subprogram_Type and
29741 E_Anonymous_Access_Protected_Subprogram_Type.
29743 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
29745 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29746 whether a pragma All_Calls_Remote applies to the subprogram on which
29748 No functional change is introduced by this revision; the new parameter
29749 will be used to allow calls to local RCI subprograms to be optimized
29750 to not use the PCS in the case where no pragma All_Calls_Remote applies,
29751 as is already done in the PolyORB implementation of the DSA.
29753 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29754 whether a pragma All_Calls_Remote applies to the subprogram on which
29756 No functional change is introduced by this revision; the new parameter
29757 will be used to allow calls to local RCI subprograms to be optimized
29758 to not use the PCS in the case where no pragma All_Calls_Remote applies,
29759 as is already done in the PolyORB implementation of the DSA.
29761 2004-04-23 Robert Dewar <dewar@gnat.com>
29763 * Makefile.rtl: Add entry for s-addope.o in run time library list
29764 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
29765 * s-addope.ads, s-addope.adb: New files.
29767 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
29768 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
29769 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
29770 System.Address to be non-private and signed.
29772 * sem_elim.adb: Minor reformatting (fairly extensive)
29773 Some minor code reorganization from code reading
29774 Add a couple of ??? comments
29776 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29778 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
29779 (tree_transform, case N_If_Statement): Remove non-determinism.
29781 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
29783 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
29785 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
29786 Eliminate' section.
29788 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
29789 no longer used as a parameter name for Eliminate pragma).
29791 2004-04-22 Laurent Guerby <laurent@guerby.net>
29793 PR optimization/14984
29794 PR optimization/14985
29795 * trans.c (gigi): Fix non determinism leading to bootstrap
29796 comparison failures.
29798 2004-04-21 Pascal Obry <obry@gnat.com>
29800 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
29801 passed to spawnvp() to properly handle program pathname with spaces on
29804 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
29806 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
29807 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
29808 unlocked in case of exceptions.
29810 2004-04-21 Joel Brobecker <brobecker@gnat.com>
29812 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
29813 This function does not exist anymore.
29815 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
29817 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
29819 * link.c: Move variables to the __gnat name space.
29821 * Makefile.in: list link.o explicitly when needed.
29823 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
29825 2004-04-21 Javier Miranda <miranda@gnat.com>
29827 * einfo.adb (Original_Access_Type): New subprogram
29828 (Set_Original_Access_Type): New subprogram
29829 (Write_Field21_Name): Write the name of the new field
29831 * einfo.ads (Original_Access_Type): New field present in access to
29833 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
29834 E_Anonymous_Access_Protected_Subprogram_Type.
29836 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
29839 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
29840 to anonymous access to subprogram types.
29842 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
29843 to subprogram types.
29845 * sem_ch3.adb (Access_Definition): Complete decoration of entities
29846 corresponding to anonymous access to subprogram types.
29847 (Analyze_Component_Declaration): Add new actual to the call to
29848 subprogram replace_anonymous_access_to_protected_subprogram.
29849 (Array_Type_Declaration): Add new actual to the call to subprogram
29850 replace_anonymous_access_to_protected_subprogram.
29851 (Process_Discriminants): Add new actual to the call to subprogram
29852 replace_anonymous_access_to_protected_subprogram.
29853 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
29855 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
29858 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
29859 access to subprogram types.
29861 * sem_util.adb (Has_Declarations): Addition of package_specification
29864 2004-04-21 Ed Schonberg <schonberg@gnat.com>
29866 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
29867 inlined flags to renamed entity only if in current unit.
29869 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
29871 * s-parint.ads: Add DSA implementation marker.
29873 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
29874 value of System.Partition_Interface.DSA_Implementation to determine
29875 what version of the distributed systems annex is available (no
29876 implementation, GLADE, or PolyORB).
29878 2004-04-21 Joel Brobecker <brobecker@gnat.com>
29880 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
29882 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29884 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
29885 with new type if alias sets differ.
29886 Fixes ACATS c41103b.
29888 2004-04-21 Vincent Celier <celier@gnat.com>
29890 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
29891 Add array Lang_Args for the language specific compiling argument
29894 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
29896 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
29898 * gnat_rm.texi: Update the descripton of the Eliminate pragma
29899 according to the recent changes in the format of the parameters of the
29900 pragma (replacing Homonym_Number with Source_Location).
29902 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
29904 * 5isystem.ads: Removed, unused.
29906 * gnat_rm.texi: Redo 1.13 change.
29908 2004-04-19 Robert Dewar <dewar@gnat.com>
29910 * s-stoele.ads: Clean up definition of Storage_Offset (the new
29911 definition is cleaner, avoids the kludge of explicit Standard operator
29912 references, and also is consistent with a visible System.Address with
29913 no visible operations.
29915 * s-geveop.adb: Add declarations to avoid assumption of visible
29916 operations on type System.Address (since these might not be available
29917 if Address is a non-private type for which the operations
29918 are made abstract).
29920 * sem_eval.adb: Minor reformatting
29922 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
29923 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
29924 reformatting (new function spec format).
29926 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
29927 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
29928 s-caun64.adb: Add declarations to avoid assumption of visible
29929 operations on type System.Address (since these might not be available
29930 if Address is a non-private type for which the operations are made
29933 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
29935 * exp_intr.adb: Minor comment update
29937 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
29939 * 5omastop.adb: Add declarations to avoid assumption of visible
29940 operations on type System.Address (since these might not be available
29941 if Address is a non-private type for which the operations
29942 are made abstract).
29944 2004-04-19 Vincent Celier <celier@gnat.com>
29946 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
29948 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
29951 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
29953 Call Check with Process_Languages.
29954 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
29955 with Process_Languages.
29956 (Recursive_Check): New Boolean parameter Process_Languages. Call
29957 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
29960 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
29962 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
29963 parameter Ada_Main, defaulted to True.
29964 Check for Ada specific characteristics only when Ada_Main is True.
29966 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
29968 * prj.adb: (Project_Empty): Add new Project_Data components.
29970 * prj.ads: New types and tables for non Ada languages.
29971 (Project_Data): New components Languages, Impl_Suffixes,
29972 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
29973 Include_Path, Include_Data_Set.
29975 * prj-env.ads, prj-env.adb: Minor reformatting
29977 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
29978 Put subprograms in alphabetical order
29980 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
29981 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
29984 * mlib-prj.adb: Back out modification in last version, as they are
29986 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
29988 * make.adb: (Mains): Moved to package Makeutl
29989 (Linker_Opts): Moved to package Makeutl
29990 (Is_External_Assignment): Moved to package Makeutl
29991 (Test_If_Relative_Path): Moved to package Makeutl
29992 (Gnatmake): Move sorting of linker options to function
29993 Makeutl.Linker_Options_Switches.
29995 * makeutl.ads, makeutl.adb: New files.
29997 * Makefile.in: Add makeutl.o to the object files for gnatmake
29999 * makeusg.adb: Add line for new switch -eL.
30001 * gnatls.adb (Image): New function.
30002 (Output_Unit): If in verbose mode, output the list of restrictions
30003 specified by pragmas Restrictions.
30005 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
30008 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
30009 needed, to put it in the range 1970 (included) - 2026 (excluded).
30010 (Time_Of): Do not shift Unix_Min_Year (1970).
30011 Shift the date by multiple of 56 years, if needed, to put it in the
30012 range 1970 (included) - 2026 (excluded).
30014 * adaint.h, adaint.c (__gnat_set_executable): New function.
30016 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30018 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
30019 and pop GC context.
30020 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
30021 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
30022 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
30023 (tree_transform, case N_Code_Statement): Likewise.
30024 (gnat_expand_stmt, case LABEL_STMT): Don't look at
30025 LABEL_STMT_FIRST_IN_EH.
30026 (gnat_expand_stmt, case ASM_STMT): New case.
30028 * utils2.c (build_unary_op): Properly set TREE_READONLY of
30029 UNCONSTRAINED_ARRAY_REF.
30031 * utils.c (poplevel): Temporarily push/pop GC context around inline
30032 function expansion.
30034 * decl.c (maybe_variable): Properly set TREE_READONLY of
30035 UNCONSTRAINED_ARRAY_REF.
30036 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
30038 * ada-tree.def: (ASM_STMT): New.
30040 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
30041 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
30042 ASM_STMT_INPUT): New.
30043 (ASM_STMT_CLOBBER): Likewise.
30045 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
30047 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
30048 general rcheck mechanism to raise Program_Error for E.4(18), instead
30049 of a custom raiser in System.Partition_Interface.
30050 Part of general cleanup work before PolyORB integration.
30052 * snames.ads, snames.adb: Add new runtime library entities and names
30055 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30057 (Build_Subprogram_Id): New subprogram provided by exp_dist
30058 Code reorganisation in preparation for PolyORB integration.
30060 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30062 (Build_Subprogram_Id): New subprogram provided by exp_dist
30064 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
30065 actual parameter types for call to dereference of an
30066 access-to-subprogram type.
30068 * rtsfind.ads: Add new runtime library entities and names for PolyORB
30071 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
30072 instead, which has the same behaviour here since we never pass it a
30075 * link.c (run_path_option, Solaris case): Use -Wl, as for other
30078 * Makefile.in: adjust object file lists for gnatlink and gnatmake
30079 to account for new dependency upon Interfaces.C.Strings + link.o
30080 For x86 FreeBSD, use 86numaux.
30082 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
30083 from Mlib.Tgt to Mlib.
30085 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
30086 target-independent.
30088 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
30089 target-specific versions of this subprogram, now implemented as a
30090 target-independent function in Mlib.
30092 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
30093 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
30094 (Linker_Library_Path_Option): Remove target-specific versions of this
30095 subprogram, now implemented as a target-independent function in Mlib.
30097 * atree.adb: (Allocate_Initialize_Node): New subprogram.
30098 Factors out node table slots allocation.
30099 (Fix_Parents): New subprogram.
30100 Encapsulate the pattern of fixing up parent pointers for syntactic
30101 children of a rewritten node.
30102 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
30103 (Rewrite): Use New_Copy when creating saved copy of original node.
30104 (Replace): Use Copy_Node to copy nodes.
30106 2004-04-19 Javier Miranda <miranda@gnat.com>
30108 * sprint.adb (Sprint_Node_Actual): Give support to the new
30109 Access_To_Subprogram node available in Access_Definition nodes. In
30110 addition, give support to the AI-231 node fields: null-exclusion,
30111 all-present, constant-present.
30113 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
30115 * sinfo.ads, sinfo.adb:
30116 New field Access_To_Subprogram_Definition in Access_Definition nodes
30118 * sem_ch6.adb (Process_Formals): Move here the code that creates and
30119 decorates internal subtype declaration corresponding to the
30120 null-excluding formal. This code was previously in Set_Actual_Subtypes.
30121 In addition, carry out some code cleanup on this code. In case of
30122 access to protected subprogram call
30123 Replace_Anonymous_Access_To_Protected_Subprogram.
30124 (Set_Actual_Subtypes): Code cleanup.
30126 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
30127 Find_Type in case of anonymous access renamings. Add warning in case of
30128 null-excluding attribute used in anonymous access renaming.
30130 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30133 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
30135 (Access_Definition): In case of anonymous access to subprograms call
30136 the corresponding semantic routine to decorate the node.
30137 (Access_Subprogram_Declaration): Addition of some comments indicating
30138 some code that probably should be added here. Detected by comparison
30139 with the access_definition subprogram.
30140 (Analyze_Component_Declaration): In case of access to protected
30141 subprogram call Replace_Anonymous_Access_To_Protected.
30142 (Array_Type_Declaration): In case of access to protected subprogram call
30143 Replace_Anonymous_Access_To_Protected_Subprogram.
30144 (Process_Discriminants): In case of access to protected subprogram call
30145 Replace_Anonymous_Access_To_Protected_Subprogram.
30147 * par.adb (P_Access_Definition): New formal that indicates if the
30148 null-exclusion part was present.
30149 (P_Access_Type_Definition): New formal that indicates if the caller has
30150 already parsed the null-excluding part.
30152 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
30153 (P_Identifier_Declarations): Code cleanup and give support to renamings
30154 of anonymous access to subprogram types.
30155 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
30156 (P_Array_Type_Definition): Give support to AI-254.
30157 (P_Component_Items): Give support to AI-254.
30158 (P_Access_Definition): New formal that indicates if the header was
30159 already parsed by the caller.
30160 (P_Access_Type_Definition): New formal that indicates if the caller has
30161 already parsed the null-excluding part.
30163 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
30164 call to P_Access_Definition.
30166 2004-04-19 Geert Bosch <bosch@gnat.com>
30168 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
30169 the delicate semantics of floating-point to integer conversion.
30170 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
30172 * eval_fat.adb (Machine_Mantissa): Moved to spec.
30173 (Machine_Radix): New function.
30175 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
30177 (Machine_Radix): New function also for use in conversion checks.
30179 2004-04-19 Ed Schonberg <schonberg@gnat.com>
30181 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
30183 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
30184 to decorate the access-to-protected subprogram and the equivalent type.
30186 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
30187 to anonymous access to subprogram types.
30189 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
30190 constant-folding, for legality checks in contexts that require an RM
30193 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
30194 temporary but stack checking is not enabled, increment serial number
30195 to so that symbol generation is consistent with and without stack
30198 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
30199 independent on whether stack checking is enabled, caller must check
30200 the corresponding flag.
30202 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
30204 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
30205 parent if it has discriminants.
30206 (Build_Derived_Private_Type): Constructed full view does
30207 not come from source.
30208 (Process_Discriminants): Default discriminants on a tagged type are
30209 legal if this is the internal completion of a private untagged
30212 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
30213 no constraint checks, because it corresponds to an existing object.
30215 * sem_prag.adb (Process_Convention): Pragma applies
30216 only to subprograms in the same declarative part, i.e. the same unit,
30217 not the same scope.
30219 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
30220 ignore type mismatch on a numeric conversion if expression comes from
30223 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
30225 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
30226 Homonym_Number parameter, add processing for Source_Location parameter
30228 (Check_Eliminated): Remove the check for homonym numbers, add the check
30229 for source location traces.
30231 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
30232 with Arg_Source_Location corresponding to the changes in the format of
30235 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
30236 Eliminate pragma corresponding to the changes in the format of the
30237 pragma: Homonym_Number is replaced with Source_Location, two ways of
30238 distinguishing homonyms are mutially-exclusive.
30240 2004-04-19 Joel Brobecker <brobecker@gnat.com>
30242 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
30244 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
30245 No_Dollar_In_Label, no longer necessary, as it is always True.
30246 (Strip_Suffixes): Likewise.
30248 2004-04-19 Gary Dismukes <dismukes@gnat.com>
30250 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
30251 modulus for compatibility with size clause on targets with 16-bit
30254 * layout.adb (Discrimify): In the case of private types, set Vtyp to
30255 full type to fix type mismatches on calls to size functions for
30256 discriminant-dependent array components.
30258 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
30260 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
30263 2004-04-19 Pascal Obry <obry@gnat.com>
30265 * mdll-utl.adb (Locate): New version is idempotent.
30267 2004-04-17 Laurent Guerby <laurent@guerby.net>
30269 PR ada/14988 (partial)
30270 * impunit.adb: Fix typo.
30272 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
30274 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
30275 and install-rts-cert targets. Remove all gnatlib and gnattools
30276 targets and all other rts-* targets (moved to libada). Remove (now)
30277 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
30278 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
30280 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30282 * trans.c (tree_transform): Shortcut returning error_mark_node for
30283 statements in annotate_only_mode.
30284 (tree_transform, case N_Label, case N_Return_Statement,
30285 N_Goto_Statement): Make statement tree instead of generating code.
30286 (tree_transform, case N_Assignment_Statement): No longer check
30287 type_annotate_only.
30288 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
30290 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
30292 (gnat_to_gnu): Collect any RTL generated and deal with it.
30293 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
30294 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
30295 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
30297 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
30299 * ada-tree.def (EXPR_STMT): Fix typo in name.
30300 (BLOCK_STMT, IF_STMT): New nodes.
30302 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
30303 LABEL_STMT_FIRST_IN_EH): New macros.
30304 (RETURN_STMT_EXPR): Likewise.
30306 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
30307 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
30309 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
30311 * atree.ads: Correct documentation on extended nodes.
30313 * link.c: Set run_path_option for FreeBSD.
30315 2004-04-08 Vincent Celier <celier@gnat.com>
30317 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
30318 one of the ALI file, do not link with DEC lib.
30320 * par.adb Remove the last two characters ("%s" or "%b") when checking
30321 if a language defined unit may be recompiled.
30323 2004-04-08 Ed Schonberg <schonberg@gnat.com>
30325 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
30326 removal of abstract operation leaves no possible interpretation for
30329 * sem_eval.adb (Eval_Qualified_Expression): Use
30330 Set_Raises_Constraint_Error on node when needed, so that it does not
30331 get optimized away by subsequent optimizations.
30333 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
30334 operands even when they are not wrapped in a type conversion.
30336 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
30338 * sem_prag.adb (Set_Exported): Warn about making static as result of
30339 export only when the export is coming from source. This may be not
30340 be true e.g. on VMS where we expand export pragmas for exception codes
30341 together with imported or exported exceptions, and we don't want the
30342 user to be warned about something he didn't write.
30344 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
30346 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
30347 duplication between normal entities and those declared as renamings.
30348 No functional change.
30350 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
30351 inline functions returning an unconstrained result.
30353 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
30355 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
30356 conform to what other front-ends do.
30358 2004-04-08 Doug Rupp <rupp@gnat.com>
30360 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
30363 2004-04-06 Pascal Obry <obry@gnat.com>
30365 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
30367 * osint.adb (Program_Name): Do not look past a directory separator.
30369 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
30371 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
30373 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
30374 requirement for preserving a copy of the original assignment node.
30376 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
30378 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
30380 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
30383 2004-04-06 Ed Schonberg <schonberg@gnat.com>
30385 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
30386 operator calls in functional notation, and apply
30387 Universal_Interpretation to operands, not to their type.
30389 2004-04-06 Robert Dewar <dewar@gnat.com>
30391 * 5wdirval.adb: Minor reformatting
30393 2004-04-06 Ed Falis <falis@gnat.com>
30395 * gnat_rm.texi: Improve a reference to the GCC manual
30397 2004-04-05 Vincent Celier <celier@gnat.com>
30399 * adaint.h, adaint.c: Add function __gnat_named_file_length
30401 * impunit.adb: Add Ada.Directories to the list
30403 * Makefile.in: Add VMS and Windows versions of
30404 Ada.Directories.Validity package body.
30406 * Makefile.rtl: Add a-direct and a-dirval
30408 * mlib-tgt.ads: Minor comment update.
30410 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
30411 a-direct.ads, a-direct.adb: New files.
30413 2004-04-05 Vincent Celier <celier@gnat.com>
30416 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
30417 just to the compiler.
30419 2004-04-05 Robert Dewar <dewar@gnat.com>
30421 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
30422 returned string is 1.
30424 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
30426 * eval_fat.ads: Minor reformatting
30428 * g-curexc.ads: Document that lower bound of returned string values
30431 * gnatlink.adb: Add ??? comment for previous change
30432 (need to document why this is VMS specific)
30434 * s-stoele.ads: Minor reformatting
30436 * tbuild.ads: Minor reformatting throughout (new function specs)
30438 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
30441 * scng.adb: Minor reformatting
30443 2004-04-05 Geert Bosch <bosch@gnat.com>
30445 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
30446 (Leading_Part): Still perform truncation to machine number if the
30447 specified radix_digits is greater or equal to machine_mantissa.
30449 2004-04-05 Javier Miranda <miranda@gnat.com>
30451 * par-ch3.adb: Complete documentation of previous change
30452 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
30453 (aliased must appear before constant).
30455 * par-ch4.adb: Complete documentation of previous change.
30457 * par-ch6.adb: Complete documentation of previous change.
30459 * sinfo.ads: Fix typo in commment.
30461 2004-04-05 Ed Schonberg <schonberg@gnat.com>
30463 * sem_ch3.adb (Inherit_Components): If derived type is private and has
30464 stored discriminants, use its discriminants to constrain parent type,
30465 as is done for non-private derived record types.
30467 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
30468 Ada 2005 AI-310: an abstract non-dispatching operation is not a
30469 candidate interpretation in an overloaded call.
30471 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
30472 expression is Null and target type is not an access type (e.g. a
30473 non-private address type).
30475 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
30477 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
30478 statement whose right-hand side is an inlined call, save a copy of the
30479 original assignment subtree to preserve enough consistency for
30480 Analyze_Assignment to proceed.
30482 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
30483 complete assignment subtree which is now unnecessary, as the expansion
30484 of inlined call has been improved to preserve a consistent assignment
30485 tree. Note_Possible_Modification must be called only
30486 after checks have been applied, or else unnecessary checks will
30489 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
30490 of explicit dereferences that do not Come_From_Source:
30491 - be selective on cases where we must go back to the dereferenced
30492 pointer (an assignment to an implicit dereference must not be
30493 recorded as modifying the pointer);
30494 - do not rely on Original_Node being present (Analyze_Assignment
30495 calls Note_Possible_Modification on a copied tree).
30497 * sem_warn.adb (Check_References): When an unset reference to a pointer
30498 that is never assigned is encountered, prefer '<pointer> may be null'
30499 warning over '<pointer> is never assigned a value'.
30501 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
30503 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
30506 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
30508 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
30509 libexc. We currently don't reference anything in this library and
30510 linking it in triggers linker warnings we don't want to see.
30512 * init.c: Update comments.
30514 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30516 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
30517 * utils.c (create_field_decl): Likewise.
30518 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
30520 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
30522 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
30523 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
30524 Add info directory entry and category.
30526 2004-04-02 Jan Hubicka <jh@suse.cz>
30528 * utils.c: Include function.h
30529 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
30531 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
30534 * Make-lang.in: Clean up generation of documentation
30536 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
30538 * xgnatug.adb: Removed, replaced by xgnatugn.adb
30540 * xgnatugn.adb: Replaces xgnatug.adb
30542 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
30544 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
30546 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30547 gnat_ug_wnt.texi: Removed.
30549 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
30551 * utils2.c: Update copyright notice.
30553 2004-04-01 Robert Dewar <dewar@gnat.com>
30555 * checks.adb: Minor reformatting throughout
30556 Note that prev checkin added RM reference to alignment warning
30558 2004-04-01 Ed Schonberg <schonberg@gnat.com>
30560 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
30561 non-static when building aggregate for bit-packed array.
30563 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
30564 function call that is itself the actual in a procedure call, build
30567 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
30568 a string literal, create a temporary for it, constant folding only
30569 handles scalars here.
30571 2004-04-01 Vincent Celier <celier@gnat.com>
30573 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
30574 Error_Msg_SP): New empty procedures to instantiate the Scanner.
30575 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
30577 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
30578 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
30579 and get the checksum.
30581 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
30583 Increase the Marking_Label at the end of the Multiple_Main_Loop,
30584 instead of at the beginning.
30586 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
30588 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
30591 * osint.ads (Multi_Unit_Index_Character): New Character global variable
30593 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
30596 * par.adb: Remove test on file name to detect language defined units.
30597 Add test on unit name, after parsing, to detect language defined units
30598 that are not compiled with -gnatg (except System.RPC and its children)
30600 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
30601 following units without style checking.
30603 * switch-c.adb: Change -gnatC to -gnateI
30605 * usage.adb: Document new switch -gnateInnn
30607 * scng.adb (Accumulate_Token_Checksum): New procedure
30608 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
30609 word or literal number.
30610 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
30613 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
30616 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
30617 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
30618 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
30619 5vtpopde.adb: Add missing 'constant' keywords.
30621 2004-04-01 Javier Miranda <miranda@gnat.com>
30623 * par-ch4.adb: (P_Allocator): Code cleanup
30625 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
30628 * sinfo.ads: Complete documentation of previous change
30630 2004-04-01 Pascal Obry <obry@gnat.com>
30632 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
30633 only on VMS. This special handling was done because an old GNU/ld bug
30634 on Windows which has been fixed.
30636 2004-04-01 GNAT Script <nobody@gnat.com>
30638 * Make-lang.in: Makefile automatically updated
30640 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30642 * decl.c (gnat_to_gnu_entity, make_type_from_size):
30643 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
30644 * trans.c (tree_transform, convert_with_check): Likewise.
30645 * utils.c (gnat_signed_or_unsigned_type): Likewise.
30646 (build_vms_descriptor, unchecked_convert): Likewise.
30647 * utils2.c (nonbinary_modular_operation): Likewise.
30649 2004-03-29 Javier Miranda <miranda@gnat.com>
30651 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
30652 (Install_Null_Excluding_Check): Local subprogram that determines whether
30653 an access node requires a runtime access check and if so inserts the
30654 appropriate run-time check.
30655 (Apply_Access_Check): Call Install_Null_Excluding check if required
30656 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
30658 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
30660 * einfo.ads: Fix typo in comment
30662 * exp_ch3.adb (Build_Assignment): Generate conversion to the
30663 null-excluding type to force the corresponding run-time check.
30664 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
30665 type to force the corresponding run-time check.
30667 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
30668 the null-excluding type to force the corresponding run-time check.
30670 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
30671 case of access types unless they have the null-excluding attribute.
30673 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
30676 * exp_util.ads: Fix typo in comment
30678 * par.adb (P_Null_Exclusion): New subprogram
30679 (P_Subtype_Indication): New formal that indicates if the null-excluding
30680 part has been scanned-out and it was present
30682 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
30684 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
30685 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
30686 type to force the corresponding run-time check
30687 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
30689 (Resolve_Array_Aggregate): Carry out some static checks
30690 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
30692 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
30693 attribute must be set only if specified by means of the null-excluding
30694 part. In addition, we must also propagate the access-constant attribute
30696 (Access_Subprogram_Declaration, Access_Type_Declaration,
30697 Analyze_Component_Declaration, Analyze_Object_Declaration,
30698 Array_Type_Declaration, Process_Discriminants,
30699 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
30700 and carry out some static checks.
30701 (Build_Derived_Access_Type): Set the null-excluding attribute
30702 (Derived_Type_Declaration, Process_Subtype): Carry out some static
30705 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
30707 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
30709 * sem_ch6.adb (Process_Formals): Carry out some static checks.
30710 (Set_Actual_Subtypes): Generate null-excluding subtype if the
30711 null-excluding part was present; it is not required to be done here in
30712 case of anonymous access types.
30713 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
30716 * sem_res.adb (Resolve_Actuals): Carry out some static check
30717 (Resolve_Null): Allow null in anonymous access
30719 * sinfo.adb: New subprogram Null_Exclusion_Present
30720 All_Present and Constant_Present available on access_definition nodes
30722 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
30723 object_declaration, derived_type_definition, component_definition,
30724 discriminant_specification, access_to_object_definition,
30725 access_function_definition, allocator, access_procedure_definition,
30726 access_definition, parameter_specification, All_Present and
30727 Constant_Present flags available on access_definition nodes.
30729 2004-03-29 Robert Dewar <dewar@gnat.com>
30731 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
30732 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
30733 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
30734 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
30735 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
30736 sem_prag.adb: Updates to handle multiple units/file
30738 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
30740 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
30741 sem_util.adb: Minor reformatting
30743 * sem_ch12.adb: Add comment for previous change
30745 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
30747 * osint.adb (Executable_Prefix): Set Exec_Name to the current
30748 executable name when not initialized. Otherwise, use its current value.
30750 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
30751 initialize it to another executable name than the current one. This
30752 allows to configure paths for an executable name (gnatmake) different
30753 from the current one (gnatdist).
30755 2004-03-29 Ed Schonberg <schonberg@gnat.com>
30757 * exp_ch6.adb (Expand_Call): A call to a function declared in the
30758 current unit cannot be inlined if it appears in the body of a withed
30759 unit, to avoid order of elaboration problems in gigi.
30761 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
30762 information for protected (wrapper) operation as well, to simplify gdb
30765 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
30766 protected body, indicate that the entity for the generated spec comes
30767 from source, to ensure that references are properly generated for it.
30768 (Build_Body_To_Inline): Do not inline a function that returns a
30771 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
30772 apply convention to homonyms that are declared explicitly.
30774 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
30775 that renames an equality operator and the operands are overloaded,
30776 resolve them with the declared formal types, before rewriting as an
30779 2004-03-29 GNAT Script <nobody@gnat.com>
30781 * Make-lang.in: Makefile automatically updated
30783 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30785 * memtrack.adb: Log realloc calls, which are treated as free followed
30788 2004-03-25 Vincent Celier <celier@gnat.com>
30790 * prj-makr.adb (Process_Directories): Detect when a file contains
30791 several units. Do not include such files in the config pragmas or
30792 in the naming scheme.
30794 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
30795 Resolve links only when not in Trusted_Mode.
30796 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
30797 Do not resolve links for the display names.
30799 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
30800 resolve links when computing the display names.
30802 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
30804 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
30805 attribute reference does not denote a subtype, it can be any
30806 expression that has a classwide type, potentially after an implicit
30807 dereference. In particular, the prefix can be a view conversion for
30808 a classwide type (for which Is_Object_Reference holds), but it can
30809 also be a value conversion for an access-to-classwide type. In the
30810 latter case, there is an implicit dereference, and the original node
30811 for the prefix does not verify Is_Object_Reference.
30813 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
30814 conversion of a discriminant-dependent component of a mutable object
30817 2004-03-25 Ed Schonberg <schonberg@gnat.com>
30819 * freeze.adb (Freeze_Entity): When an inherited subprogram is
30820 inherited, has convention C, and has unconstrained array parameters,
30821 place the corresponding warning on the derived type declaration rather
30822 than the original subprogram.
30824 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
30825 indication on renaming declaration, if formal has a box and actual
30828 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
30829 determine whether to generate an implicit or explicit reference to
30830 the renamed entity.
30832 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
30833 subprogram renaming comes from a defaulted formal subprogram in an
30836 2004-03-25 Gary Dismukes <dismukes@gnat.com>
30838 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
30839 value expressions to ensure that calls within a component definition
30840 will be checked (since those are evaluated during the record type's
30843 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
30845 * s-tpobop.adb: Code clean up:
30846 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
30848 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
30850 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
30852 * Makefile.in: Clean up in the ravenscar run time.
30854 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30856 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
30857 of No_Strict_Aliasing to build_pointer_type_for_mode.
30858 * utils.c (update_pointer_to): Walk pointer and ref chains.
30860 2004-03-22 Cyrille Comar <comar@act-europe.fr>
30862 * ali.ads: Fix Comment about Dynamic_Elab.
30864 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
30865 Has_RACW, Is_Generic, etc.)
30866 (Output_Object, Gnatls): Take into account ALI files not attached to
30869 2004-03-22 Vincent Celier <celier@gnat.com>
30871 * gprep.adb: Change all String_Access to Name_Id
30872 (Is_ASCII_Letter): new function
30873 (Double_File_Name_Buffer): New procedure
30874 (Preprocess_Infile_Name): New procedure
30875 (Process_Files): New procedure
30876 (Gnatprep): Check if output and input are existing directories.
30877 Call Process_Files to do the real job.
30879 2004-03-22 Robert Dewar <dewar@gnat.com>
30881 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
30882 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
30884 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
30886 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
30887 case when the source contains only comments.
30889 2004-03-22 Ed Schonberg <schonberg@gnat.com>
30891 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
30892 declaration for a child subprogram body that acts as a spec, indicate
30893 that the entity in the declaration needs debugging information.
30895 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
30896 full view if the subtype is created for a constrained record component;
30897 gigi has enough information to construct the record, and there is no
30898 place in the tree for the declaration.
30900 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
30901 serial number for the dummy body that is built for analysis, to avoid
30902 inconsistencies in the generation of internal names when compiling
30905 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
30907 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
30910 2004-03-22 GNAT Script <nobody@gnat.com>
30912 * Make-lang.in: Makefile automatically updated
30914 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30916 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
30917 * trans.c (tree_transform, emit_index_check): Likewise.
30918 * utils.c (build_template): Likewise.
30919 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
30920 (maybe_unconstrained_array, unchecked_convert): Likewise.
30921 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
30922 (build_unary_op): Likewise.
30923 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
30924 (fill_vms_descriptor): Likewise.
30925 (build_call_alloc_dealloc): Likewise.
30927 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
30929 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
30932 * gnat_ug.texi: Add info directory category and entry.
30933 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30934 gnat_ug_wnt.texi: Regenerate.
30936 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
30938 * ada-tree.h: Update copyright notice.
30939 Minor reformatting.
30941 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
30943 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
30944 as regular exception objects and not as mere integers representing the
30945 condition code. The latter approach required some dynamics to mask off
30946 severity bits, which did not fit well into the GCC table based model.
30947 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
30948 exception data objects. We don't it and it would conflict with the other
30949 external symbol we have to generate for such exceptions.
30951 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
30952 the special code for VMS exceptions, since these are now represented
30953 as regular exceptions objects.
30955 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30957 * decl.c (debug_no_type_hash): Remove.
30958 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
30959 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
30961 2004-03-19 Laurent Guerby <laurent@guerby.net>
30963 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
30964 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
30966 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30968 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
30969 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
30970 (TYPE_RM_SIZE_INT): Directly use type.values.
30971 (TREE_LOOP_ID): Clean up check.
30972 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
30973 TYPE_VALUES, not TYPE_FIELDS.
30974 * trans.c (convert_with_check): Delay access of bounds of basetype
30975 until sure is numeric.
30977 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
30979 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
30982 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
30983 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
30984 Specific.Set instead of direct call to e.g pthread_setspecific.
30986 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
30988 * adaint.c: Update comments.
30990 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
30991 GNATLIB_SHARED for FreeBSD.
30993 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
30995 * init.c [VxWorks]: Do not fix the stack size for the environment task.
30996 When needed (stack checking) the stack size is retrieved
30997 from the VxWorks kernel.
30999 * Makefile.in: Flag -nostdinc is required when building the run time
31000 for avoiding looking for files in the base compiler.
31001 Add the VxWorks specific version of the package body for
31002 System.Stack_checking.Operations (5zstchop.adb).
31004 * Make-lang.in: Add the object file for
31005 System.Stack_Checking.Operations.
31007 * Makefile.rtl: Add object file for the package
31008 System.Stack_Checking.Operations.
31010 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
31012 * s-stache.ads, s-stache.adb: Move the operations related to stack
31013 checking from this package to package System.Stack_Checking.Operations.
31014 This way, stack checking operations are only linked in the final
31015 executable when using the -fstack-check flag.
31017 2004-03-18 Doug Rupp <rupp@gnat.com>
31019 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
31022 * 5qsystem.ads, 5xcrtl.ads: New files.
31024 2004-03-18 Vincent Celier <celier@gnat.com>
31026 * prj.adb (Reset): Reset hash table Files_Htable
31028 * prj-env.adb (Source_Paths, Object_Paths): New tables.
31029 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
31030 the procedures Add_To_Path_File.
31031 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
31032 making sure that each directory is present only once and, for object
31033 dirs, when a directory already present is added, the duplicate is
31034 removed and the directory is always put as the last in the table.
31035 Write the path files at the end of these accumulations.
31037 * prj-nmsc.adb (Record_Source): Add source file name in hash table
31038 Files_Htable for all sources.
31040 * prj-proc.adb (Process): Remove restrictions between not directly
31041 related extending projects.
31043 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
31045 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
31046 (Find_Sources): Minor speed optimization.
31048 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
31049 parameter Trusted_Mode.
31051 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
31053 * scn.adb (Determine_License): Take into account a degenerated case
31054 when the source contains only comments.
31056 2004-03-18 Ed Schonberg <schonberg@gnat.com>
31058 * sem_warn.adb (Check_References): For a warning on a selected
31059 component that does not come from source, locate an uninitialized
31060 component of the record type to produce a more precise error message.
31062 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
31064 * 3zsoccon.ads: Fix multicast options.
31066 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
31069 2004-03-15 Robert Dewar <dewar@gnat.com>
31071 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
31072 pragma used for a private type.
31074 * lib-xref.adb (Generate_Reference): Do not generate warning if
31075 reference is in a different unit from the pragma Unreferenced.
31077 * 5vtpopde.adb: Minor reformatting
31078 Fix casing of To_Task_ID
31080 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
31081 flag if we have an unchecked conversion to an access type in the same
31084 2004-03-15 Geert Bosch <bosch@gnat.com>
31086 * a-ngcoty.adb (Modulus): In alternate formula for large real or
31087 imaginary parts, use Double precision throughout.
31089 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
31090 we want to be able to compile run-time with -gnata for testing, but
31091 this may also be instantiated in user code that is compiled with -gnata.
31093 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
31095 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
31096 codes. Having a separate type for this is useful to enforce consistency
31097 throughout the various run-time units.
31098 (Exception_Data): Use Exception_Code for Import_Code.
31100 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
31101 Natural and Integer in various places.
31102 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
31103 with the severity bits masked off.
31104 (Register_VMS_Exception): Handle the additional exception data pointer
31107 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
31108 component, now reflected by an exported accessor.
31109 (is_handled_by): New routine to compute whether the propagated
31110 occurrence matches some handler choice specification. Extracted out of
31111 get_action_description_for, and expanded to take care of the VMS
31113 (get_action_description_for): Use is_handled_by instead of an explicit
31114 complex condition to decide if the current choice at hand catches the
31115 propagated occurrence.
31117 * raise.h (Exception_Code): New type for C.
31119 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
31120 System.Standard_Library.Exception_Code, to allow references from the
31121 pragma import/export expander.
31123 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
31124 New accessors to allow easy access to GNAT exception data
31126 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
31127 redundant Handled_By_Others component, helper for the personality
31128 routine which will now be able to call the appropriate exception data
31131 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
31132 component of Standard_Exception_Type to be the closest possible to
31133 Exception_Code in System.Standard_Library, that we cannot get at this
31134 point. Expand a ??? comment to notify that this type node should
31135 probably be rewritten later on.
31137 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
31138 registration call to include a pointer to the exception object in the
31141 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
31142 instead of int and explicit bitmasks.
31144 2004-03-15 Vincent Celier <celier@gnat.com>
31146 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
31147 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
31149 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
31150 longer needed now that it is in the spec of
31151 System.Tasking.Task_Attributes.
31153 * adaint.h, adaint.c: (__gnat_create_output_file): New function
31155 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
31157 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
31159 * make.adb (Gnatmake): Do not check the executable suffix; it is being
31160 taken care of in Scan_Make_Arg.
31161 (Scan_Make_Arg): Add the executable suffix only if the argument
31162 following -o, in canonical case, does not end with the executable
31163 suffix. When in verbose mode and executable file name does not end
31164 with executable suffix, output the executable name, in canonical case.
31166 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
31167 to avoid warnings when instantiating Ada.Task_Attributes.
31170 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
31171 in the correct order.
31173 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
31174 redirect standard output and error to a file for the invocation of the
31175 compiler, then read the file.
31177 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
31178 directory, instead of the Value.
31179 (Find_Source_Dirs): Remove useless code & comments.
31181 2004-03-15 Ed Schonberg <schonberg@gnat.com>
31183 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
31184 tagged type is inherited, and the parent operation is not frozen yet,
31185 force generation of a freeze node for the inherited operation, so the
31186 corresponding dispatch entry is properly initialized.
31187 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
31188 when looking for user-defined equality operation.
31190 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
31191 boolean when locating primitive equality of tagged component.
31193 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
31194 bit-aligned field and the right-hand side a string literal, introduce
31195 a temporary before expanding assignment into a loop.
31197 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
31198 priority in full, to ensure that any expanded subepxressions of it are
31199 elaborated in the scope of the init_proc.
31201 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
31202 after object declaration, skipping over code that may have been
31203 generated for validity checks.
31205 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
31206 discriminants, ignore the known discriminants of its full view, if
31207 any, to check legality.
31209 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
31210 component if type has unknown discriminants.
31211 (Analyze_Private_Extension_Declaration): Discriminant constraint is
31212 null if type has unknown discriminants.
31214 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
31215 for end label when present.
31217 * s-fileio.adb (Open): When called with a C_Stream, use given name for
31218 temporary file, rather than an empty string.
31220 2004-03-15 Ed Falis <falis@gnat.com>
31222 * s-thread.adb: Removed, no longer used.
31224 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31226 * decl.c (target.h): Now include.
31227 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
31228 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
31229 (validate_size): For POINTER_TYPE, get smallest size permitted on
31232 * fe.h: Sort Einfo decls and add Set_Mechanism.
31234 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
31235 (ada/decl.o): Depends on target.h.
31237 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
31238 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
31240 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
31242 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
31244 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
31245 Insert_Dereference_Action when rewriting an implicit dereference into
31246 an explicit one, this will be taken care of during expansion of the
31247 explicit dereference.
31248 (Expand_N_Slice): Same. Always do the rewriting, even for the case
31249 of non-packed slices, since the dereference action generated by
31250 expansion of the explicit dereference is needed in any case.
31251 (Expand_N_Selected_Component): When rewriting an implicit dereference,
31252 analyze and resolve the rewritten explicit dereference so it is seen
31254 (Insert_Dereference_Action): This procedure is now called only for the
31255 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
31256 dereferences that do not come from source (including explicit
31257 dereferences resulting from rewriting implicit ones), but do not
31258 recursively insert a check for the dereference nodes contained within
31260 (Insert_Dereference_Action): Clarify and correct comment.
31262 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
31265 Move language detection to the top level.
31266 * config-lang.in: Build by default.
31268 2004-03-05 Robert Dewar <dewar@gnat.com>
31270 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
31272 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
31273 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
31274 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
31275 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
31276 unchecked conversion to spec to avoid warnings.
31278 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
31281 * 7stpopsp.adb: Correct casing in To_Task_ID call
31283 * a-strsea.ads, a-strsea.adb: Minor reformatting
31285 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
31287 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
31288 Adjust Max_Msg_Length to be clearly large enough.
31290 * fe.h: Define In_Same_Source_Unit
31292 * osint.adb: Add pragma Warnings Off to suppress warnings
31293 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
31296 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
31298 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
31300 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
31302 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
31304 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
31306 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
31307 node. We now do generate them for gcc back end.
31309 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
31312 * sinput-c.adb: Fix bad name in header.
31313 Add pragma Warnings Off to suppress aliasing warning.
31315 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
31317 * snames.h, snames.ads, snames.adb: Add entry for pragma
31318 No_Strict_Aliasing.
31320 2004-03-05 Vincent Celier <celier@gnat.com>
31322 * prj-com.ads: Add hash table Files_Htable to check when a file name
31323 is already a source of another project.
31325 * prj-nmsc.adb (Record_Source): Before recording a new source, check
31326 if its file name is not already a source of another project. Report an
31329 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
31330 source file name, call gnatpp with all the sources of the main project.
31332 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
31335 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
31336 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
31337 /RUNTIME_SYSTEM=, converted to --RTS=
31338 /NOTABS, converted to -notabs
31340 2004-03-05 Pascal Obry <obry@gnat.com>
31342 * make.adb: Minor reformatting.
31344 2004-03-05 Ed Schonberg <schonberg@gnat.com>
31346 Part of implemention of AI-262.
31347 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
31349 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
31352 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
31353 when component type is a partially constrained class-wide subtype.
31354 (Constrain_Discriminated_Type): If parent type has unknown
31355 discriminants, a constraint is illegal, even if full view has
31357 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
31358 with unknown discriminants whose full view is a discriminated record.
31360 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
31361 flag, to handle properly derivations of tagged types with unknown
31363 (Analyze_Package_Spec, Analyze_Package_Body): Install
31364 Private_With_Clauses before analyzing private part or body.
31366 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
31367 Has_Discriminants can be true for a given type (documentation).
31369 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
31371 * s-restri.ads: Fix license (GPL->GMGPL).
31373 * s-tassta.adb: Minor reformatting.
31375 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31376 by calls to Exit_One_ATC_Level, since additional clean up is performed
31379 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31380 by calls to Exit_One_ATC_Level, since additional clean up is performed
31383 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31385 * trans.c: Reflect GCC changes to fix bootstrap problem.
31386 Add warning for suspicious aliasing unchecked conversion.
31388 2004-03-05 GNAT Script <nobody@gnat.com>
31390 * Make-lang.in: Makefile automatically updated
31392 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
31394 * ali.adb (Read_Instantiation_Instance): Do not modify the
31395 current_file_num when reading information about instantiations, since
31396 this corrupts files in later references.
31398 2004-03-02 Vincent Celier <celier@gnat.com>
31400 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
31401 before checking if it is read-only.
31403 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
31404 of SRC_DIRS and eliminate duplicates.
31406 * gprcmd.adb: Replace command "path" with command "path_sep" to return
31407 the path separator.
31408 (Usage): Document path_sep
31410 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
31411 C++ compiler. No need for a script.
31412 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
31413 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
31416 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
31417 where there are Ada sources.
31418 (Set_Ada_Paths): Only add to the include path the source dirs of project
31420 (Add_To_Path): Add the Display_Values of the directories, not their
31423 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
31426 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
31428 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
31429 Value is canonicalized.
31430 (Language_Independent_Check): Do not copy Value to Display_Value when
31431 canonicalizing Value.
31433 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
31434 path to find limited with cycles.
31435 (Parse_Single_Project): Use canonical cased path to find the end of a
31438 2004-03-02 Ed Schonberg <schonberg@gnat.com>
31440 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
31441 and not a child unit.
31443 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
31444 appear in a with_clause.
31446 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
31447 only happen in type_annotate mode, do not try to elaborate it.
31449 * exp_util.adb (Force_Evaluation): If expression is a selected
31450 component on the left of an assignment, use a renaming rather than a
31451 temporary to remove side effects.
31453 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
31454 inlined instance body, which is analyzed before the end of the
31457 2004-03-02 Robert Dewar <dewar@gnat.com>
31459 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
31460 sem_ch4.adb: Use new feature for substitution of keywords in VMS
31462 * errout.ads, errout.adb: Implement new circuit for substitution of
31465 * sem_case.adb (Analyze_Choices): Place message properly when case is
31466 a subtype reference rather than an explicit range.
31468 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
31470 2004-03-02 Doug Rupp <rupp@gnat.com>
31472 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
31474 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
31476 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
31478 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31480 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
31483 2004-02-25 Robert Dewar <dewar@gnat.com>
31485 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31486 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
31487 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
31488 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
31489 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
31490 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
31491 the defining instance of the type to avoid aliasing problems.
31492 Fix copyright header. Fix bad comments in package header.
31494 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
31496 2004-02-25 Ed Schonberg <schonberg@gnat.com>
31498 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
31499 rewritten as references when aliased through an address clause.
31501 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
31502 whether call can be interpreted as an indirect call to the result of a
31503 parameterless function call returning an access subprogram.
31505 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
31508 * exp_ch7.adb (Make_Clean): Remove generation of calls to
31509 Unlock[_Entries], since this is now done by Service_Entries directly.
31511 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
31513 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
31514 Requeue_Call for better code readability. Change spec and update calls:
31515 PO_Service_Entries now unlock the PO on exit.
31516 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
31517 PO_Service_Entries.
31519 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
31521 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
31523 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
31525 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
31526 protected subprogram call and analyzing the result of such expanding
31527 in case when the called protected subprogram is eliminated.
31529 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
31532 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
31534 * Makefile.in: Clean ups.
31536 2004-02-23 Ed Schonberg <schonberg@gnat.com>
31538 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
31539 protected operations if original subprogram is flagged as eliminated.
31540 (Expand_N_Subprogram_Body): For a protected operation, create
31541 discriminals for next operation before checking whether the operation
31544 * exp_ch9.adb (Expand_N_Protected_Body,
31545 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
31546 for internal protected operations if the original subprogram is
31549 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
31550 declared in a single protected object.
31552 2004-02-23 Vincent Celier <celier@gnat.com>
31554 * prj-attr.adb: Make attribute Builder'Executable an associative array,
31555 case insensitive if file names are case insensitive, instead of a
31556 standard associative array.
31558 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
31559 them as case insensitive on platforms where the file names are case
31562 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
31563 project file has already been parsed that canonical path are compared.
31565 2004-02-23 Robert Dewar <dewar@gnat.com>
31567 * sinput-c.ads: Correct bad unit title in header
31569 * freeze.adb: Minor reformatting
31571 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31573 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
31574 nonaddressable COMPONENT_REF that is removing padding that we are
31575 taking the address of, take the address of the padded record instead
31576 if item is variable size.
31578 2004-02-20 Robert Dewar <dewar@gnat.com>
31580 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
31582 2004-02-20 Ed Schonberg <schonberg@gnat.com>
31584 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
31585 itype references for the constrained designated type of a component
31586 whose base type is already frozen.
31588 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
31590 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
31591 avoid GCC warnings.
31593 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
31595 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
31596 identifier for a phantom package that rewrites the formal package
31597 declaration with a box. The Add semantic decorations for the defining
31598 identifier from the original node (that represents the formal package).
31600 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
31602 * Make-lang.in (ada/stamp-sdefault): Use the top level
31605 2004-02-19 Richard Henderson <rth@redhat.com>
31607 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
31609 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
31611 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
31612 Scan_ALI can be used for multiple ALI files without reinitializing
31615 2004-02-18 Robert Dewar <dewar@gnat.com>
31617 * debug.adb: Minor reformatting.
31619 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31621 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
31622 to zero if there is an address clause.
31624 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
31626 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
31628 2004-02-18 Gary Dismukes <dismukes@gnat.com>
31630 * layout.adb (Layout_Component_List): Revise generation of call to
31631 discriminant-checking function to pass selections of all of the type's
31632 discriminants rather than just the variant-controlling discriminant.
31634 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
31636 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
31637 fail in the current setup and triggers spurious system error messages.
31638 Pretend it occurred and failed instead.
31640 2004-02-18 Vincent Celier <celier@gnat.com>
31642 * bld.adb: Mark FLDFLAGS as saved
31643 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
31644 it is not the root project. Put each directory to be
31645 extended between double quotes to prevent it to be expanded on Windows.
31646 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
31647 the project file. Set them back to their initial values if they have not
31648 been set in the project file.
31650 * gprcmd.adb: (Gprdebug, Debug): New global variables
31651 (Display_Command): New procedure
31652 (Usage): Document new command "linkopts"
31653 Call Display_Command when env var GPRDEBUG has the value "TRUE"
31654 Implement new command "linkopts"
31655 Remove quotes that may be around arguments for "extend"
31656 Always call Normalize_Pathname with arguments formatted for the platform
31658 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
31659 Change @echo to @$(display) in target clean to be able to clean silently
31661 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
31663 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
31666 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
31667 = Extending_All when current project is an extending all project.
31669 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
31670 set to True only for LINK command, after Unix switch -o.
31671 (Process_Arguments): Set Output_File_Expected to True for LINK command
31672 after Unix switch -o. When Output_File_Expected is True, never add an
31673 extension to a file name.
31675 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
31676 option file name, only to the --for-linker= switch.
31677 (Option_File_Name): If option file name do not end with ".opt", append
31680 2004-02-18 GNAT Script <nobody@gnat.com>
31682 * Make-lang.in: Makefile automatically updated
31684 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
31686 * Make-lang.in (stamp-sdefault): Do not depend on
31689 2004-02-12 Zack Weinberg <zack@codesourcery.com>
31691 * config-lang.in: Disable Ada by default until probe logic for
31692 a bootstrap Ada compiler can be moved to the top level configure
31695 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
31697 * decl.c (components_to_record): Don't claim that the internal fields
31698 we make to hold the variant parts are semantically addressable, because
31701 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
31702 adjust the comment describing the modular type form when we can use it.
31703 (Install_PAT): Account for the Esiz renaming.
31705 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
31706 sc_onstack context indication before raising the exception to which
31707 the signal is mapped. Allows better handling of later signals possibly
31708 triggered by the resumed user code if the exception is handled.
31710 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
31712 * 5zinit.adb: Removed, no longer used.
31714 2004-02-12 Robert Dewar <dewar@gnat.com>
31716 * ali.adb: Remove separating space between parameters on R line. Makes
31717 format consistent with format used by the binder for Set_Globals call.
31719 * atree.ads, atree.adb: Minor reformatting (new function header format)
31721 * bindgen.adb: Add Run-Time Globals documentation section containing
31722 detailed documentation of the globals passed from the binder file to
31725 * gnatls.adb: Minor reformatting
31727 * init.c (__gnat_set_globals): Add note pointing to documentation in
31730 * lib-writ.ads, lib-writ.adb: Remove separating space between
31731 parameters on R line.
31732 Makes format consistent with format used by the binder for Set_Globals
31735 * osint.ads: Add 2004 to copyright notice
31738 * snames.ads: Correct capitalization of FIFO_Within_Priorities
31739 Noticed during code reading, documentation issue only
31741 * usage.adb: Remove junk line for obsolete C switch
31742 Noticed during code reading
31744 2004-02-12 Vincent Celier <celier@gnat.com>
31746 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
31747 extend for each directory, so that multiple /** directories are
31748 extended individually.
31749 (Recursive_Process): Set the default for LANGUAGES to ada
31751 * gprcmd.adb: Define new command "ignore", to do nothing.
31752 Implement new comment "path".
31754 * Makefile.generic: Suppress output when SILENT is set
31755 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
31756 used, so that the correct compiler is invoked.
31757 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
31758 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
31760 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
31762 * Makefile.in: Clean ups and remove obsolete targets.
31764 2004-02-12 Ed Schonberg <schonberg@gnat.com>
31766 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
31767 predicate declared in exp_util.
31769 * exp_util.adb: Add comments.
31771 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
31772 visibility before compiling context of the subunit.
31774 * sem_res.adb (Check_Parameterless_Call): If the context expects a
31775 value but the name is a procedure, do not attempt to analyze as a call,
31776 in order to obtain more telling diagnostics.
31778 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
31779 'Access on parameterless function calls.
31780 (Normalize_Actuals): For a parameterless function call with missing
31781 actuals, defer diagnostic until resolution of enclosing call.
31783 * sem_util.adb (Wrong_Type): If the context type is an access to
31784 subprogram and the expression is a procedure name, suggest a missing
31787 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
31788 Nathanael Nerode <neroden@gcc.gnu.org>
31792 Merge with libada-branch:
31793 * config-lang.in: Build libada only when ada is built.
31795 2004-02-09 Ed Schonberg <schonberg@gnat.com>
31797 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
31798 for a tagged type, verify that both formals have the same type.
31800 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
31801 temporary when the formal is an in-parameter and the actual a possibly
31804 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
31805 when expansion is disabled, to ensure proper name capture with
31806 overloaded literals. Condition can be of any boolean type, resolve
31809 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
31810 renaming is for a formal subprogram with a default operator name, and
31811 there is a usable operator that is visible at the point of
31814 2004-02-09 Robert Dewar <dewar@gnat.com>
31816 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
31817 rewrite to ignore errors in ali files, intended to allow tools downward
31818 compatibility with new versions of ali files.
31820 * ali.ads: Add new parameter Ignore_Errors
31822 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
31823 duplicating the error message giving the file with restrictions.
31825 * debug.adb: Add debug flag I for gnatbind
31827 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
31828 operators for the case where the operator is a defining operator.
31830 * exp_ch3.adb: Minor reformatting (new function spec format).
31832 * exp_ch4.adb: Add comment for previous change, and make minor
31833 adjustment to loop to always check for improper loop termination.
31834 Minor reformatting throughout (new function spec format).
31836 * gnatbind.adb: Implement -di debug flag for gnatbind
31838 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
31840 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
31842 * lib-load.adb: Fix bad assertion.
31843 Found by testing and code reading.
31844 Minor reformatting.
31846 * lib-load.ads: Minor reformatting.
31848 * lib-writ.adb: There is only one R line now.
31850 * lib-writ.ads: Add documentation on making downward compatible changes
31851 to ali files so old tools work with new ali files.
31852 There is only one R line now.
31853 Add documentation on format incompatibilities (with special GPS note)
31855 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
31857 * par-load.adb: Minor reformatting
31859 * sem_ch8.adb: Fix to error message from last update
31860 Minor reformatting and restructuring of code from last update
31862 * par-prag.adb, snames.adb, snames.ads, snames.h,
31863 sem_prag.adb: Implement pragma Profile.
31865 * stylesw.adb: Implement -gnatyN switch to turn off all style check
31868 * usage.adb: Add line for -gnatyN switch
31870 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
31872 2004-02-09 Albert Lee <lee@gnat.com>
31874 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
31876 2004-02-09 Ed Schonberg <schonberg@gnat.com>
31878 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
31881 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
31882 is nested in an instance that is not frozen yet, to avoid
31883 order-of-elaboration problems in gigi.
31885 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
31886 body the attribute is legal.
31888 2004-02-09 Robert Dewar <dewar@gnat.com>
31890 * s-rident.ads: Minor comment correction
31892 * targparm.adb: Remove dependence on uintp completely. There was
31893 always a bug in Make in that it called Targparm before initializing
31894 the Uint package. The old code appeared to get away with this, but
31895 the new code did not! This caused an assertion error in gnatmake.
31897 * targparm.ads: Fix bad comment, restriction pragmas with parameters
31898 are indeed fully supported.
31900 2004-02-06 Alan Modra <amodra@bigpond.net.au>
31902 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
31904 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
31906 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
31907 with targetm.calls.promote_prototypes.
31909 2004-02-04 Robert Dewar <dewar@gnat.com>
31911 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
31912 ali.ads, gprcmd.adb: Minor reformatting
31914 * bindgen.adb: Output restrictions string for new style restrictions
31917 * impunit.adb: Add s-rident.ads (System.Rident) and
31918 s-restri (System.Restrictions)
31920 * lib-writ.adb: Fix bug in writing restrictions string (last few
31923 * s-restri.ads, s-restri.adb: Change name Restrictions to
31924 Run_Time_Restrictions to avoid conflict with package name.
31925 Add circuit to read and acquire run time restrictions.
31927 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
31929 * restrict.ads, restrict.adb: Use the new restriction
31930 No_Task_Attributes_Package instead of the old No_Task_Attributes.
31932 * sem_prag.adb: No_Task_Attributes is a synonym of
31933 No_Task_Attributes_Package.
31935 * snames.ads, snames.adb: New entry for proper handling of
31936 No_Task_Attributes.
31938 * s-rident.ads: Adding restriction No_Task_Attributes_Package
31939 (AI-00249) that supersedes the GNAT specific restriction
31940 No_Task_Attributes.
31942 2004-02-04 Ed Schonberg <schonberg@gnat.com>
31945 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
31946 body, an identifier may be wrapped in an unchecked conversion.
31948 2004-02-04 Vincent Celier <celier@gnat.com>
31950 * lib-writ.ads: Comment update for the W lines
31952 * bld.adb: (Expression): An empty string list is static
31954 * fname-uf.adb: Minor comment update
31956 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
31958 * gnatbind.adb: Initialize Cumulative_Restrictions with the
31959 restrictions on the target.
31961 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
31963 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
31966 2004-02-02 Arnaud Charlet <charlet@gnat.com>
31968 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
31970 2004-02-02 Vincent Celier <celier@gnat.com>
31972 * gprcmd.adb (Check_Args): If condition is false, print the invoked
31973 comment before the usage.
31974 Gprcmd: Fail when command is not recognized.
31975 (Usage): Document command "prefix"
31977 * g-md5.adb (Digest): Process last block.
31978 (Update): Do not process last block. Store remaining characters and
31981 * g-md5.ads (Update): Document that several call to update are
31982 equivalent to one call with the concatenated string.
31983 (Context): Add fields to allow new Update behaviour.
31985 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
31986 defaulted to False.
31987 When May_Fail is True and no existing file can be found, return No_File.
31989 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
31992 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
31993 spec file name instead on the W line.
31995 2004-02-02 Robert Dewar <dewar@gnat.com>
31997 * ali.adb: Read and acquire info from new format restrictions lines
31999 * bcheck.adb: Add circuits for checking restrictions with parameters
32001 * bindgen.adb: Output dummy restrictions data
32002 To be changed later
32004 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32005 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
32006 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
32007 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
32008 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
32010 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
32011 the warning message on access to possibly uninitialized variable S)
32012 Minor changes for new restrictions handling.
32014 * gnatbind.adb: Minor reformatting
32015 Minor changes for new restrictions handling
32016 Move circuit for -r processing here from bcheck (cleaner)
32018 * gnatcmd.adb, gnatlink.adb: Minor reformatting
32020 * lib-writ.adb: Output new format restrictions lines
32022 * lib-writ.ads: Document new R format lines for new restrictions
32025 * s-restri.ads/adb: New files
32027 * Makefile.rtl: Add entry for s-restri.ads/adb
32029 * par-ch3.adb: Fix bad error messages starting with upper case letter
32032 * restrict.adb: Major rewrite throughout for new restrictions handling
32033 Major point is to handle restrictions with parameters
32035 * restrict.ads: Major changes in interface to handle restrictions with
32036 parameters. Also generally simplifies setting of restrictions.
32038 * snames.ads/adb: New entry for proper handling of No_Requeue
32040 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
32041 restriction counting.
32042 Other minor changes for new restrictions handling
32044 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
32045 Restriction_Warnings now allows full parameter notation
32046 Major rewrite of Restrictions for new restrictions handling
32048 2004-02-02 Javier Miranda <miranda@gnat.com>
32050 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
32051 syntax rule for object renaming declarations.
32052 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
32053 component definitions.
32055 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
32057 (Array_Type_Declaration): Give support to access components. In addition
32058 it was also modified to reflect the name of the object in anonymous
32059 array types. The old code did not take into account that it is possible
32060 to have an unconstrained anonymous array with an initial value.
32061 (Check_Or_Process_Discriminants): Allow access discriminant in
32063 (Process_Discriminants): Allow access discriminant in non-limited types
32064 Initialize the new Access_Definition field in N_Object_Renaming_Decl
32065 node. Change Ada0Y to Ada 0Y in comments
32067 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
32068 equality operators.
32069 Change Ada0Y to Ada 0Y in comments
32071 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
32072 renamings Change Ada0Y to Ada 0Y in comments
32074 * sem_type.adb (Find_Unique_Type): Give support to the equality
32075 operators for universal access types
32076 Change Ada0Y to Ada 0Y in comments
32078 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
32080 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
32082 (N_Object_Renaming_Declaration): Addition of Access_Definition field
32083 Change Ada0Y to Ada 0Y in comments
32085 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
32086 component definition and object renaming nodes
32087 Change Ada0Y to Ada 0Y in comments
32089 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
32091 * restrict.adb: Use the new restriction identifier
32092 No_Requeue_Statements instead of the old No_Requeue for defining the
32093 restricted profile.
32095 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
32096 No_Requeue_Statements.
32098 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
32099 that supersedes the GNAT specific restriction No_Requeue. The later is
32100 kept for backward compatibility.
32102 2004-02-02 Ed Schonberg <schonberg@gnat.com>
32104 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
32105 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
32106 pragma and fix incorrect ones.
32108 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
32109 warning if the pragma is redundant.
32111 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
32113 * 5staprop.adb: Add missing 'constant' keywords.
32115 * Makefile.in: use consistent value for SYMLIB on
32116 platforms where libaddr2line is supported.
32118 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32120 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
32123 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
32125 * init.c (__gnat_install_handler): Setup an alternate stack for signal
32126 handlers in the environment thread. This allows proper propagation of
32127 an exception on stack overflows in this thread even when the builtin
32128 ABI stack-checking scheme is used without support for a stack reserve
32131 * utils.c (create_field_decl): Augment the head comment about bitfield
32132 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
32133 here, because the former is not accurate enough at this point.
32134 Let finish_record_type decide instead.
32135 Don't make a bitfield if the field is to be addressable.
32136 Always set a size for the field if the record is packed, to ensure the
32137 checks for bitfield creation are triggered.
32138 (finish_record_type): During last pass over the fields, clear
32139 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
32140 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
32141 from DECL_BIT_FIELD.
32143 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
32145 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
32146 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
32147 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
32149 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32151 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
32153 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
32154 (ZCX_By_Default): Likewise.
32155 (Front_End_ZCX_Support): Likewise.
32157 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
32158 (Initialize_Lock): Mark Level unreferenced.
32159 (Sleep): Mark Reason unreferenced.
32160 (Timed_Sleep): Likewise.
32161 (Wakeup): Likewise.
32162 (Exit_Task): Use Result.
32163 (Check_No_Locks): Mark Self_ID unreferenced.
32165 * 5gtasinf.adb (New_Sproc): Make Attr constant.
32166 (Bound_Thread_Attributes): Make Sproc constant.
32167 (New_Bound_Thread_Attributes): Likewise.
32169 2004-01-26 Ed Schonberg <schonberg@gnat.com>
32171 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
32172 one-dimensional array an slice assignments, when component type is
32175 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
32176 component type is controlled, and control_actions are in effect, use
32177 TSS procedure rather than generating inline code.
32179 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
32180 arrays with controlled components.
32182 2004-01-26 Vincent Celier <celier@gnat.com>
32184 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
32185 command line for the non VMS case.
32187 * gnatlink.adb (Process_Binder_File): When building object file, if
32188 GNU linker is used, put all object paths between quotes, to prevent ld
32189 error when there are unusual characters (such as '!') in the paths.
32191 * Makefile.generic: When there are sources in Ada and the main is in
32192 C/C++, invoke gnatmake with -B, instead of -z.
32194 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
32195 from VMS_Conversion.
32196 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
32197 specification of argument file on the command line.
32199 2004-01-26 Bernard Banner <banner@gnat.com>
32201 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
32203 2004-01-26 Ed Schonberg <schonberg@gnat.com>
32205 * snames.adb: Update copyright notice.
32206 Add info on slice assignment for controlled arrays.
32208 2004-01-23 Robert Dewar <dewar@gnat.com>
32210 * exp_aggr.adb: Minor reformatting
32212 * exp_ch9.adb: Minor code clean up
32214 Fix bad character in comment
32217 * targparm.adb (Get_Target_Parameters): Give clean abort error on
32218 unexpected end of file, along with more detailed message.
32220 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32222 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
32225 * decl.c (copy_alias_set): New function.
32226 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
32228 2004-01-23 Doug Rupp <rupp@gnat.com>
32230 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
32231 lib$${file} in case subsequent character is not a separator.
32233 2004-01-23 Vincent Celier <celier@gnat.com>
32235 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
32236 when the GCC version is at least 3.
32238 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
32239 Remove all "Opt.", to prepare for opt split
32241 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
32242 Extends_All. Set to True when the project parsed is an extending all
32243 project. Fails for importing an extending all project only when the
32244 imported project is an extending all project.
32245 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
32246 depending on the value of Extends_All returned.
32248 * prj-proc.adb (Process): Check that no project shares its object
32249 directory with a project that extends it, directly or indirectly,
32250 including a virtual project.
32251 Check that no project extended by another project shares its object
32252 directory with another also extended project.
32254 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
32255 Kind = N_With_Clause
32257 * prj-tree.ads: Minor reformatting
32258 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
32260 2004-01-23 Ed Schonberg <schonberg@gnat.com>
32262 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
32263 applies to a type with an incomplete view, use full view in Name of
32264 clause, for consistency with uses of Get_Attribute_Definition_Clause.
32266 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
32268 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
32269 SCHED_RR, since other values are not supported by this policy.
32270 (Initialize): Move initialization of mutex attribute to package
32271 elaboration, to prevent early access to this variable.
32273 * Makefile.in: Remove mention of Makefile.adalib, unused.
32275 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32276 1ssecsta.ads: Removed, unused.
32278 2004-01-21 Javier Miranda <miranda@gnat.com>
32280 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
32281 entity if already built in the current scope.
32283 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
32284 reminder in internal scopes. Required for nested limited aggregates.
32286 2004-01-21 Doug Rupp <rupp@gnat.com>
32288 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
32289 VMS. Replace all occurences of libgnat- and libgnarl- with
32290 libgnat$(hyphen) and libgnarl$(hyphen).
32291 Fixed shared library build problem on VMS.
32293 2004-01-21 Robert Dewar <dewar@gnat.com>
32295 * mlib-prj.adb: Minor reformatting
32297 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
32299 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
32300 'constant' keywords for declaration of pointers that are not modified.
32302 * exp_pakd.adb: Fix English in comment.
32304 2004-01-21 Ed Schonberg <schonberg@gnat.com>
32307 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
32308 copy all attributes of the parent, including the foreign language
32311 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
32314 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
32315 for 'delay until' statement.
32317 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
32319 * Make-lang.in: Replace $(docdir) with doc.
32320 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
32321 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
32322 to use consistent MAKEINFO rule.
32323 (ada.man, ada.srcman): Dummy entry.
32324 (ADA_INFOFILES): Define.
32325 (ada.info, ada.srcinfo): New rules.
32327 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
32329 * utils.c: Update copyright notice, missed in previous change.
32331 2004-01-19 Vincent Celier <celier@gnat.com>
32333 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
32334 args if Bind is True. Set First_ALI, if not already done.
32335 (Build_Library): For Stand Alone Libraries, extract from one ALI file
32336 an eventual --RTS switch, for gnatbind, and all backend switches +
32337 --RTS, for linking.
32339 2004-01-19 Robert Dewar <dewar@gnat.com>
32341 * sem_attr.adb, memtrack.adb: Minor reformatting
32343 2004-01-19 Ed Schonberg <schonberg@gnat.com>
32345 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
32346 that rename enumeration literals. This is properly done in sem_eval.
32348 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
32349 to functions that rename enumeration literals.
32351 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
32352 functions that rename enumeration literals.
32354 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
32356 * Make-lang.in (utils.o): Depend on target.h.
32357 * utils.c: Include target.h.
32358 (process_attributes): Use targetm.have_named_sections instead
32359 of ASM_OUTPUT_SECTION_NAME.
32361 2004-01-16 Andreas Jaeger <aj@suse.de>
32363 * Makefile.in: Add $(DESTDIR).
32365 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
32367 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
32368 also when not defining if a Size clause applies. That information is
32371 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
32373 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
32374 symbolic links for the shared gnat run time when needed.
32376 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
32378 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
32379 for writing, and terminate with an error message if not.
32381 2004-01-15 Ed Schonberg <schonberg@gnat.com>
32383 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
32384 warning on an access to subprogram in an instance, when the target
32385 type is declared in the same generic unit.
32386 (Eval_Attribute): If 'access is known to fail accessibility check,
32387 rewrite as a raise statement.
32389 2004-01-15 GNAT Script <nobody@gnat.com>
32391 * Make-lang.in: Makefile automatically updated
32393 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
32395 * Make-lang.in (ada.srcextra): Dummy entry.
32397 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
32399 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
32401 2004-01-13 Ed Schonberg <schonberg@gnat.com>
32403 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
32404 components that are initialized with aggregates.
32406 2004-01-13 Vincent Celier <celier@gnat.com>
32408 * gnatlink.adb (Process_Binder_File): To find directory of shared
32409 libgcc, if "gcc-lib" is not a subdirectory, look for the last
32410 subdirectory "lib" in the path of the shared libgnat or libgnarl.
32412 * make.adb (Gnatmake): If GCC version is at least 3, link with
32413 -shared-libgcc, when there is at least one shared library project.
32415 * opt.ads (GCC_Version): New integer constant.
32417 * adaint.c (get_gcc_version): New function.
32419 2004-01-13 Robert Dewar <dewar@gnat.com>
32421 * sem_dist.adb, sem_res.adb, sem_util.adb,
32422 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
32423 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
32425 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
32427 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
32428 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
32431 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
32433 * misc.c: Remove trailing spaces.
32434 Update copyright notice missed in previous change.
32437 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
32440 * Makefile.generic: Update copyright.
32441 Add license notice.
32443 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
32444 of prefix/share/make.
32446 * Makefile.prolog: Update copyright.
32447 Add license notice.
32449 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
32451 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
32452 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
32453 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
32456 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
32459 2004-01-12 Javier Miranda <miranda@gnat.com>
32461 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
32462 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
32463 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
32464 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
32465 Component_Definition node.
32467 2004-01-12 Ed Falis <falis@gnat.com>
32469 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
32471 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
32473 * link.c: Change default libgnat kind to STATIC for FreeBSD.
32475 2004-01-12 Bernard Banner <banner@gnat.com>
32477 * Makefile.in: map 86numaux to a-numaux for x86_64
32479 2004-01-12 Ed Schonberg <schonberg@gnat.com>
32481 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
32482 generated to rename a generic actual, go to the actual itself, the
32483 subtype is not a user-visible entity.
32485 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
32486 part is a private subtype, reset the visibility of its full view, if
32487 any, to be consistent.
32490 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
32491 to use a generic package G as a formal package for another generic
32494 2004-01-12 Robert Dewar <dewar@gnat.com>
32496 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
32498 * usage.adb: Remove mention of obsolete -gnatwb switch
32499 Noticed during code reading
32501 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
32503 * 1ssecsta.adb: Minor changes for -gnatwa warnings
32505 2004-01-12 GNAT Script <nobody@gnat.com>
32507 * Make-lang.in: Makefile automatically updated
32509 2004-01-09 Mark Mitchell <mark@codesourcery.com>
32511 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
32513 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32515 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
32517 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
32519 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
32520 Update comment and copyright date.
32521 * stamp-xgnatug: Delete.
32523 2004-01-05 Robert Dewar <dewar@gnat.com>
32525 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
32526 be modified by the binder generated main program if the -D switch is
32529 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
32530 imported functions (since now we expect this to be done for imported
32533 * 5vtaprop.adb: Add several ??? for sections requiring more comments
32534 Minor reformatting throughout
32536 * 5zinit.adb: Minor reformatting
32537 Add 2004 to copyright date
32538 Minor changes to avoid -gnatwa warnings
32539 Correct some instances of using OR instead of OR ELSE (noted while
32540 doing reformatting)
32542 * sprint.adb: Minor updates to avoid -gnatwa warnings
32544 * s-secsta.ads, s-secsta.adb:
32545 (SS_Get_Max): New function to obtain high water mark for ss stack
32546 Default_Secondary_Stack is not a constant since it may be modified by
32547 the binder generated main program if the -D switch is used.
32549 * switch-b.adb: New -Dnnn switch for binder
32552 Make -gnatg imply all warnings currently in -gnatwa
32554 * vms_conv.adb: Minor reformatting
32555 Add 2004 to copyright notice
32556 Add 2004 to printed copyright notice
32558 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
32559 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
32560 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
32561 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
32562 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
32563 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
32564 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
32565 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
32566 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
32567 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
32568 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
32569 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
32570 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
32571 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
32572 checks.adb, clean.adb, cstand.adb, einfo.ads,
32573 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
32574 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
32575 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
32576 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
32577 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
32578 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
32579 Minor reformatting and code clean ups.
32580 Minor changes to prevent -gnatwa warnings
32582 * ali.adb: Minor reformatting and cleanup of code
32583 Acquire new SS indication of secondary stack use from ali files
32585 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
32586 (since now we expect this to be done for imported functions)
32588 * bindgen.adb: Generate call to modify default secondary stack size if
32591 * bindusg.adb: Add line for new -D switch
32593 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
32594 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
32595 Add circuitry for both records and arrays to avoid gigi
32596 processing if the type involved has non-bit-aligned components
32598 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
32599 N_String_Literal node always references an E_String_Literal_Subtype
32600 entity. This may not be true in the future.
32601 (Possible_Bit_Aligned_Component): Move processing of
32602 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
32604 * exp_ch6.adb (Expand_Thread_Body): Pick up
32605 Default_Secondary_Stack_Size as variable so that we get value modified
32606 by possible -Dnnn binder parameter.
32608 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
32609 (Type_May_Have_Bit_Aligned_Components): New function.
32611 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
32612 (Type_May_Have_Bit_Aligned_Components): New function.
32614 * fe.h: (Set_Identifier_Casing): Fix prototype.
32615 Add declaration for Sem_Elim.Eliminate_Error_Msg.
32616 Minor reformatting.
32618 * freeze.adb (Freeze_Entity): Add RM reference to error message about
32619 importing constant atomic/volatile objects.
32620 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
32621 unless explicit Pure_Function pragma given, to avoid insidious bug of
32622 call to non-pure imported function getting eliminated.
32624 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
32625 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
32626 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
32627 Add 2004 to printed copyright notice
32629 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
32632 * Makefile.rtl: Add entry for g-sestin.o
32633 g-sestin.ads: New file.
32635 * mdll.adb: Minor changes to avoid -gnatwa warnings
32637 * mlib-tgt.adb: Minor reformatting
32639 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
32640 New switch Sec_Stack_Used (GNAT, GNATBIND)
32641 Make Default_Secondary_Stack_Size a variable instead of a constant,
32642 so that it can be modified by the new -Dnnn bind switch.
32644 * rtsfind.adb (Load_Fail): Give full error message in configurable
32645 run-time mode if all_errors mode is set. This was not done in the case
32646 of a file not found, which was an oversight.
32647 Note if secondary stack unit is used by compiler.
32649 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
32650 ineffective elaborate all pragmas on non-visible packages (this
32651 happened when a renamed subprogram was called). Now the elaborate all
32652 always goes on the package containing the renaming rather than the one
32653 containing the renamed subprogram.
32655 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
32656 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
32658 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
32659 has an Etype that references an E_String_Literal.
32660 (Eval_String_Literal): Avoid assumption that N_String_Literal node
32661 always references an E_String_Literal_Subtype entity. This may not
32662 be true in the future.
32664 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
32667 * sem_res.adb (Resolve): Specialize msg for function name used in proc
32670 2004-01-05 Ed Falis <falis@gnat.com>
32672 * g-debuti.adb: Replaced direct boolean operator with short-circuit
32675 2004-01-05 Vincent Celier <celier@gnat.com>
32677 * bld.adb: Minor comment updates
32678 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
32681 * make.adb (Gnatmake): Special process for files to compile/check when
32682 -B is specified. Fail when there are only foreign mains in attribute
32683 Main of the project file and -B is not specified. Do not skip bind/link
32684 steps when -B is specified.
32686 * makeusg.adb: Document new switch -B
32688 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
32690 * switch-m.adb: (Scan_Make_Switches): Process -B switch
32692 * vms_data.ads: Add new GNAT PRETTY qualifier
32693 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
32695 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32697 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
32700 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
32701 Set_Identifier_Casing.
32703 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
32704 has size that overflows.
32706 2004-01-05 Gary Dismukes <dismukes@gnat.com>
32708 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
32709 -gnatwa warning on static condition.
32711 2004-01-05 Doug Rupp <rupp@gnat.com>
32713 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
32715 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
32717 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
32718 all attributes, including read-only attribute.
32720 2004-01-05 Pascal Obry <obry@gnat.com>
32722 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
32723 library naming scheme.
32725 * mlib-prj.adb (Build_Library): Generate different names for the static
32726 or dynamic version of the GNAT runtime. This is needed to support the
32727 new shared library naming scheme.
32728 (Process_Binder_File): Add detection of shared library in binder file
32729 based on the new naming scheme.
32731 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
32732 scheme for the shared runtime libraries.
32735 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
32737 (install-gnatlib): Do not create symlinks for shared libraries.
32738 (gnatlib-shared-default): Idem.
32739 (gnatlib-shared-dual-win32): New target. Not used for now as the
32740 auto-import feature does not support arrays/records.
32741 (gnatlib-shared-win32): Do not create copy for the shared libraries.
32742 (gnatlib-shared-vms): Fix shared runtime libraries names.
32744 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
32745 dependent runtime shared library name.
32747 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
32749 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
32752 2004-01-05 Ed Schonberg <schonberg@gnat.com>
32754 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
32755 protected objects when allocator has a subtype indication, not a
32756 qualified expression. Note that qualified expressions may have to be
32757 checked when limited aggregates are implemented.
32759 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
32760 pure, emit warning.
32761 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
32762 subprogram is imported, remove warning.
32764 2004-01-05 Geert Bosch <bosch@gnat.com>
32766 * s-poosiz.adb: Update copyright notice.
32767 (Allocate): Use Task_Lock to protect against concurrent access.
32768 (Deallocate): Likewise.
32770 2004-01-05 Joel Brobecker <brobecker@gnat.com>
32772 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
32775 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
32777 * gnat_ug.texi: Force a CVS commit by updating copyright.
32778 * gnat_ug_vxw.texi: Regenerate.
32779 * gnat_ug_wnt.texi: Regenerate.
32780 * gnat_ug_vms.texi: Regenerate.
32781 * gnat_ug_unx.texi: Regenerate.
32783 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
32785 * trans.c: Remove uses of "register" specifier in
32786 declarations of local variables.
32788 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
32790 * stamp-xgnatug: New stamp file.
32791 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
32792 (ada/doctools/xgnatug): Add $(build_exeext).
32793 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
32794 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
32796 2003-12-17 Ed Falis <falis@gnat.com>
32798 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
32801 * a-exextr.adb: Add context clause for
32802 Ada.Exceptions.Last_Chance_Handler.
32804 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
32806 * cstand.adb (Create_Standard): Change the way how the declaration of
32807 the Duration type is created (making it the same way as it is for all
32808 the other standard types).
32810 2003-12-17 Robert Dewar <dewar@gnat.com>
32812 * s-crtl.ads: Fix header format
32813 Change Pure to Preelaborate
32815 2003-12-17 Ed Schonberg <schonberg@gnat.com>
32817 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
32818 the expression type only if it is declared in the current unit.
32820 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
32821 are universal and already analyzed, as can occur in constrained
32822 subcomponents that depend on discriminants, when one constraint is a
32825 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
32826 type Any_Fixed is legal as the argument of a conversion, if only one
32827 fixed-point type is in context.
32829 2003-12-17 GNAT Script <nobody@gnat.com>
32831 * Make-lang.in: Makefile automatically updated
32833 2003-12-15 Robert Dewar <dewar@gnat.com>
32835 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
32838 2003-12-15 Vincent Celier <celier@gnat.com>
32840 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
32841 (Gnatchop): Do not set failure status when reporting the number of
32844 2003-12-15 Doug Rupp <rupp@gnat.com>
32846 * s-ctrl.ads: New file.
32848 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
32850 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
32851 (GNATBIND_OBJS): Add ada/s-crtl.o.
32853 * Makefile.in [VMS]: Clean up ifeq rules.
32855 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
32856 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
32857 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
32858 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
32859 s-tasdeb.adb: Update copyright.
32860 Import System.CRTL.
32861 Make minor modifications to use System.CRTL declared functions instead
32862 of importing locally.
32864 2003-12-15 GNAT Script <nobody@gnat.com>
32866 * Make-lang.in: Makefile automatically updated
32868 2003-12-11 Ed Falis <falis@gnat.com>
32870 * 5zinit.adb: Clean up.
32872 * 5zintman.adb (Notify_Exception): replaced case statement with a call
32873 to __gnat_map_signal, imported from init.c to support
32874 signal -> exception mappings that depend on the vxWorks version.
32877 Created and exported __gnat_map_signal to support signal -> exception
32878 mapping that is dependent on the VxWorks version.
32879 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
32881 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
32883 * 5wosinte.ads: Link with -mthreads switch.
32885 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
32887 * init.c (__gnat_install_handler [NetBSD]): Set
32888 __gnat_handler_installed, as done on all other platforms.
32889 Remove duplicated code.
32891 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
32893 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
32895 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
32897 * sinfo.ads: Fix inconsistent example code in comment.
32899 2003-12-11 Robert Dewar <dewar@gnat.com>
32901 * a-tiinau.adb: Add a couple of comments
32903 * sem_ch3.adb: Minor reformatting
32906 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
32907 Minor reformatting throughout
32909 2003-12-11 Ed Schonberg <schonberg@gnat.com>
32911 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
32912 bounds of a loop, create a separate block in order to generate proper
32913 cleanup actions to prevent memory leaks.
32915 * sem_res.adb (Resolve_Call): After a call to
32916 Establish_Transient_Scope, the call may be rewritten and relocated, in
32917 which case no further processing is needed.
32919 * sem_util.adb: (Wrong_Type): Refine previous fix.
32920 Fixes ACATS regressions.
32923 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
32926 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
32928 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
32929 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
32932 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
32935 2003-12-08 Robert Dewar <dewar@gnat.com>
32937 * 7sintman.adb: Minor reformatting
32939 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
32940 standard linker options to get standard libraries linked. We now plan
32941 to provide dummy versions of these libraries to match the appropriate
32942 configurable run-time (e.g. if a library is not needed at all, provide
32943 a dummy empty library).
32945 * targparm.ads: Configurable_Run_Time mode no longer affects linker
32946 options (-L parameters and standard libraries). What we plan to do is
32947 to provide dummy libraries where the libraries are not required.
32949 * gnatbind.adb: Minor comment improvement
32951 2003-12-08 Javier Miranda <miranda@gnat.com>
32953 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
32954 aggregate in the parent. Otherwise constants with limited aggregates
32955 are not supported. Add new formal to pass the component type (Ctype).
32956 It is required to call the corresponding IP subprogram in case of
32957 default initialized components.
32958 (Gen_Assign): In case of default-initialized component, generate a
32959 call to the IP subprogram associated with the component.
32960 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
32961 of aggregate with default initialized components.
32962 (Has_Default_Init_Comps): Improve implementation to recursively check
32963 all the present expressions.
32965 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
32966 to indicate that the initialization call corresponds to a
32967 default-initialized component of an aggregate.
32968 In case of default initialized aggregate with tasks this parameter is
32969 used to generate a null string (this is just a workaround that must be
32970 improved later). In case of discriminants, this parameter is used to
32971 generate a selected component node that gives access to the discriminant
32974 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
32975 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
32976 allocated aggregates with default-initialized components.
32978 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
32979 the box notation is used in positional aggregates.
32981 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
32983 * lib.ads: Fix typo in comment
32985 2003-12-08 Vincent Celier <celier@gnat.com>
32987 * prj.adb (Project_Empty): New component Unkept_Comments
32988 (Scan): Remove procedure; moved to Prj.Err.
32990 * prj.ads (Project_Data): New Boolean component Unkept_Comments
32991 (Scan): Remove procedure; moved to Prj.Err.
32993 * prj-dect.adb: Manage comments for the different declarations.
32995 * prj-part.adb (With_Record): New component Node
32996 (Parse): New Boolean parameter Store_Comments, defaulted to False.
32997 Set the scanner to return ends of line and comments as tokens, if
32998 Store_Comments is True.
32999 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
33000 comments are associated with these nodes. Store the node IDs in the
33002 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
33004 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
33005 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
33006 current project. Call Tree.Restore afterwards. Set the various nodes
33007 for comment storage (Next_End, End_Of_Line, Previous_Line,
33010 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
33011 defaulted to False.
33013 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
33014 to False. When Truncated is True, truncate the string, never go to the
33016 (Write_End_Of_Line_Comment): New procedure
33017 (Print): Process comments for nodes N_With_Clause,
33018 N_Package_Declaration, N_String_Type_Declaration,
33019 N_Attribute_Declaration, N_Typed_Variable_Declaration,
33020 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
33021 Process nodes N_Comment.
33023 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
33024 without comments and there are some comments, set the flag
33025 Unkept_Comments to True.
33026 (Scan): If there are comments, set the flag Unkept_Comments to True and
33027 clear the comments.
33028 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
33029 (Next_End_Nodes: New table
33030 (Comment_Zones_Of): New function
33031 (Scan): New procedure; moved from Prj. Accumulate comments in the
33032 Comments table and set end of line comments, comments after, after end
33034 (Add_Comments): New procedure
33035 (Save, Restore, Seset_State): New procedures
33036 (There_Are_Unkept_Comments): New function
33037 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
33038 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
33040 (First_Comment_After, First_Comment_After_End): New functions
33041 (First_Comment_Before, First_Comment_Before_End): New functions
33042 (Next_Comment): New function
33043 (End_Of_Line_Comment, Follows_Empty_Line,
33044 Is_Followed_By_Empty_Line): New functions
33045 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
33046 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
33047 (Set_Next_Comment): New procedure
33048 (Default_Project_Node): Associate comment before if the node can store
33051 * scans.ads (Token_Type): New enumeration value Tok_Comment
33052 (Comment_Id): New global variable
33054 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
33055 defaulted to False.
33056 (Scan): Store position of start of comment. If comments are tokens, set
33057 Comment_Id and set Token to Tok_Comment when scanning a comment.
33058 (Set_Comment_As_Token): New procedure
33060 * sinput-p.adb: Update Copyright notice
33061 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
33062 that no longer exists.
33064 2003-12-08 Javier Miranda <miranda@gnat.com>
33066 * sem_aggr.adb: Add dependence on Exp_Tss package
33067 Correct typo in comment
33068 (Resolve_Aggregate): In case of array aggregates set the estimated
33069 type of the aggregate before calling resolve. This is needed to know
33070 the name of the corresponding IP in case of limited array aggregates.
33071 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
33072 in case of default initialized array components.
33074 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
33075 types. Required to give support to limited aggregates in generic
33078 2003-12-08 Ed Schonberg <schonberg@gnat.com>
33080 * sem_ch3.adb (Check_Initialization): For legality purposes, an
33081 inlined body functions like an instantiation.
33082 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
33083 until bounds are analyzed, to diagnose premature use of type.
33085 * sem_util.adb (Wrong_Type): Improve error message when the type of
33086 the expression is used prematurely.
33088 2003-12-08 GNAT Script <nobody@gnat.com>
33090 * Make-lang.in: Makefile automatically updated
33092 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
33094 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
33095 they are automatically generated by Make-lang.in and cause nothing but
33096 maintenance troubles.
33098 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
33100 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
33101 version of this unit).
33103 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
33105 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
33106 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
33107 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
33108 the body of System.Interrupt_Management common to several targets.
33109 Update copyright notice when appropriate.
33111 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
33114 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
33115 to ensure that the kernel fills in the interrupted context structure
33116 before calling a signal handler, which is necessary to be able to
33117 unwind past it. Update the copyright notice.
33119 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
33121 * a-elchha.ads: New file.
33123 * a-elchha.adb: New default last chance handler. Contents taken from
33124 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
33126 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
33127 is moved to a-elchha.adb to provide a target-independent default last
33130 * Makefile.rtl: Add a-elchha.o
33132 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
33134 2003-12-05 Ed Schonberg <schonberg@gnat.com>
33136 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
33137 declared in an instance, do not inline the call if the instance is not
33138 frozen yet, to prevent order of elaboration problems.
33140 * sem_prag.adb: Add comments for previous fix.
33142 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
33144 * g-table.adb: Use the right variable in Set_Item.
33145 Update copyright notice.
33147 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
33149 * Makefile.in: Remove unused rules.
33151 2003-12-05 Vincent Celier <celier@gnat.com>
33153 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
33154 -nostdlib. Not needed here after all.
33156 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
33159 * adaint.h, adaint.c, g-os_lib.ads:
33160 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
33161 on some platforms (including FreeBSD), it is a 64 bit value.
33162 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
33164 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
33166 * gnatvsn.ads (Library_Version): Now contain only the relevant
33168 (Verbose_Library_Version): New constant.
33170 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
33171 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
33172 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
33174 * gnatlbr.adb: Clean up: replace Library_Version by
33175 Verbose_Library_Version.
33177 * make.adb, lib-writ.adb, exp_attr.adb:
33178 Clean up: replace Library_Version by Verbose_Library_Version.
33180 * 5lintman.adb: Removed.
33183 Update and simplify computation of LIBRARY_VERSION.
33184 Fix computation of GSMATCH_VERSION.
33185 5lintman.adb is no longer used: replaced by 7sintman.adb.
33187 2003-12-03 Robert Dewar <dewar@gnat.com>
33190 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
33191 name. Modified to consider small non-bit-packed arrays as troublesome
33192 and in need of component-by-component assigment expansion.
33194 2003-12-03 Vincent Celier <celier@gnat.com>
33196 * lang-specs.h: Process nostdlib as nostdinc
33198 * back_end.adb: Update Copyright notice
33199 (Scan_Compiler_Arguments): Process -nostdlib directly.
33201 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
33204 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
33205 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
33206 included in HIE_NONE_TARGET_PAIRS.
33208 2003-12-03 Ed Schonberg <schonberg@gnat.com>
33211 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
33212 is legal in an instance, because legality is cheched in the template.
33215 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
33216 appplied to an unchecked conversion of a formal parameter.
33219 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
33222 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
33224 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
33225 routines. The second one is new functionality to deal with backtracing
33226 through signal handlers.
33227 (unwind): Split into the two separate subroutines above.
33228 Update the documentation, and deal properly with sizeof (REG) different
33229 from sizeof (void*).
33231 2003-12-01 Nicolas Setton <setton@act-europe.fr>
33233 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
33234 so that the debugger can reliably access the value of the parameter,
33235 and therefore is able to display the exception name when an exception
33236 breakpoint is reached.
33238 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
33240 * fmap.adb: Fix typo in warning message.
33242 * g-socket.ads, g-socket.adb: Make Free a visible instance of
33243 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
33245 2003-12-01 Vincent Celier <celier@gnat.com>
33247 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
33249 (Build_Library): Get the switches only if Default_Switches is declared
33252 2003-12-01 Ed Schonberg <schonberg@gnat.com>
33254 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
33255 actuals that are indexed components, reanalyze actual to ensure that
33256 packed array references are properly expanded.
33258 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
33259 attempted assignment to a discriminant.
33261 2003-12-01 Robert Dewar <dewar@gnat.com>
33263 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
33266 * switch-c.adb: Minor reformatting of comments
33268 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
33270 * Makefile.in: Clean ups.
33272 2003-12-01 GNAT Script <nobody@gnat.com>
33274 * Make-lang.in: Makefile automatically updated
33276 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
33278 * 5wsystem.ads: Disable zero cost exception, not ready yet.
33280 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
33282 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
33283 to force serialization.
33285 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
33287 * g-socket.ads, g-socket.adb:
33288 Clarify documentation of function Stream. Introduce a Free procedure
33289 to release the returned Stream once it becomes unused.
33291 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
33293 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
33295 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
33296 since NT 4 cannot handle timeout values that are too large,
33297 e.g. DWORD'Last - 1.
33299 2003-11-26 Ed Schonberg <schonberg@gnat.com>
33302 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
33303 in procedure calls and whose expansion must be deferred.
33305 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
33309 (Build_Derived_Array_Type): Create operator for unconstrained type
33310 if ancestor is unconstrained.
33312 2003-11-26 Vincent Celier <celier@gnat.com>
33314 * make.adb (Project_Object_Directory): New global variable
33315 (Change_To_Object_Directory): New procedure
33316 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
33317 of Change_Dir directly. Do not change working directory to object
33318 directory of main project after each compilation.
33319 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
33321 Change to object directory of main project before binding step.
33322 (Initialize): Initialize Project_Object_Directory to No_Project
33325 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
33326 binding a Stand-Alone Library.
33328 * output.adb: Update Copyright notice
33329 (Write_Char): Output buffer when full
33331 2003-11-26 Robert Dewar <dewar@gnat.com>
33333 * sem_ch13.adb: (Check_Size): Reset size if size is too small
33336 (Check_Size): Fix documentation to include bit-packed array case
33338 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
33340 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
33342 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
33344 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
33347 * utils.c (init_gigi_decls): Change name of built-in setjmp to
33348 __builtin_setjmp, since this is apparently needed by recent
33351 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33353 * adadecode.c: Only include ctype.h if not IN_GCC.
33354 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
33356 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
33359 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
33360 signals and interrupts.
33362 * 5zintman.ads: New File.
33364 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
33365 add exception signals to the set of unmasked signals.
33368 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
33369 between signals and interrupts.
33370 Add to Unblocked_Signal_Mask the set of signals that are in
33374 Adding a check to see whether the Interrupt_ID we want to unmask is in
33375 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
33376 reason is that the index type of the Keep_Unmasked array is not always
33377 Interrupt_ID; it may be a subtype of Interrupt_ID.
33379 2003-11-24 Gary Dismukes <dismukes@gnat.com>
33382 (Remove_Side_Effects): Condition constantness of object created for a
33383 an unchecked type conversion on the constantness of the expression
33384 to ensure the correct value for 'Constrained when passing components
33385 of view-converted class-wide objects.
33387 2003-11-24 Robert Dewar <dewar@gnat.com>
33389 * par-load.adb (Load): Improve handling of misspelled and missing units
33390 Removes several cases of compilation abandoned messages
33392 * lib.adb: (Remove_Unit): New procedure
33394 * lib.ads: (Remove_Unit): New procedure
33396 * lib-load.adb: Minor reformatting
33398 2003-11-24 Vincent Celier <celier@gnat.com>
33401 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
33402 (Marking_Label): Label to mark processed source files. Incremented for
33404 (Gnatmake): Increase Marking_Labet for each executable
33405 (Is_Marked): Compare against marking label
33406 (Mark): Mark with marking label
33408 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
33411 Move the declaration of the TSD for System.Threads to System.Soft_Links.
33414 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
33415 (rts-cert): build a single relocatable object for the run-time lib.
33418 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
33421 Use gnatls rather than gcc to obtain the location of GNAT RTL for
33424 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
33426 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
33427 can not use it as before (that is, as a variable) when dumping it into
33428 the tree file. Add a local variable to store the result of this
33429 function and to be used as the string to be written into the tree.
33431 * scn.adb (Initialize_Scanner): Add comments explaining the recent
33434 * sinput.adb (Source_First, Source_Last): In case of
33435 Internal_Source_File, replace returning attributes of
33436 Internal_Source_Ptr (which is wrong) with returning attributes of
33439 2003-11-24 Ed Schonberg <schonberg@gnat.com>
33442 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
33443 used for implicit concatenation operators.
33447 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
33448 task bodies that are in the scope of a Suppress pragma.
33449 (Check_A Call): Use the flag to prevent spurious elaboration checks.
33451 * sinfo.ads, sinfo.adb:
33452 New flag No_Elaboration_Check on function/procedure calls, to properly
33453 suppress checks on calls in task bodies that are within a local suppress
33457 (Expand_Concatenate_Other): Use the proper integer type for the
33458 expression for the upper bound, to avoid universal_integer computations
33461 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
33463 * .cvsignore: Delete.
33465 2003-11-21 Andreas Schwab <schwab@suse.de>
33467 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
33469 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
33471 * 5wsystem.ads: Enable zero cost exception.
33473 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
33475 * 5ztiitho.adb: Remove an unreferenced variable.
33477 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
33479 * adaint.c: For FreeBSD, use mkstemp.
33481 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
33483 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
33485 2003-11-21 Robert Dewar <dewar@gnat.com>
33487 * bld.adb: Remove useless USE of gnatvsn
33489 * gnatchop.adb: Minor reformatting
33490 Clean up version handling to be more consistent
33492 * gnatxref.adb: Minor reformatting
33494 * gprcmd.adb: Minor reformatting
33495 Fix output of copyright to be more consistent with other tools
33497 2003-11-21 Vincent Celier <celier@gnat.com>
33499 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
33501 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
33503 * atree.adb (Initialize): Add initializations for global variables
33504 used in New_Copy_Tree.
33506 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
33507 Internal_Source_File as the actual).
33508 Put the set of statements creating Any_Character before the set of
33509 statements creating Any_Array to have Any_Character fully initialized
33510 when it is used in creating Any_Array.
33512 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
33513 not call Scan in case if the actual is Internal_Source_File
33514 Add 2003 to copyright note.
33516 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
33517 processing Internal_Source_File.
33519 * types.ads: Add the constant Internal_Source_File representing the
33520 source buffer for artificial source-code-like strings created within
33521 the compiler (the definition of Source_File_Index is changed).
33523 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
33525 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
33526 56system.ads: New file, FreeBSD version.
33528 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
33530 * Make-lang.in (ada.extraclean): Delete.
33532 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
33534 * gnatmem.adb: Clean up verbose output.
33536 * gprcmd.adb: Change copyright to FSF.
33538 2003-11-19 Vincent Celier <celier@gnat.com>
33540 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
33541 and Version (ignored).
33543 * symbols.ads: (Policy): New type
33544 (Initialize): New parameter Reference, Symbol_Policy and
33546 Remove parameter Force.
33547 Minor reformatting.
33549 * snames.ads, snames.adbadb: New standard names
33550 Library_Reference_Symbol_File and Library_Symbol_Policy
33553 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
33557 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
33559 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
33561 * prj.adb: (Project_Empty): New component Symbol_Data
33563 * prj.ads: (Policy, Symbol_Record): New types
33564 (Project_Data): New component Symbol_Data
33567 New attributes Library_Symbol_File, Library_Symbol_Policy and
33568 Library_Reference_Symbol_File.
33571 (Ada_Check): When project is a Stand-Alone library project, process
33572 attribute Library_Symbol_File, Library_Symbol_Policy and
33573 Library_Reference_Symbol_File.
33575 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33576 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
33577 5sml-tgt.adb (Build_Dynamic_Library): New parameter
33578 Symbol_Data (ignored).
33580 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
33581 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
33582 functions Option_File_Name and Version_String. Set new options of
33583 gnatsym related to symbol file, symbol policy and reference symbol
33587 Extensive modifications to take into account the reference symbol file,
33588 the symbol policy, the library version and to put in the symbol file the
33589 minor and major IDs.
33591 * bld.adb (Process_Declarative_Items): Put second argument of
33592 gprcmd to_absolute between single quotes, to avoid problems with
33595 * bld-io.adb: Update Copyright notice.
33596 (Flush): Remove last character of a line, if it is a back slash, to
33597 avoid make problems.
33600 Implement new scheme with reference symbol file and symbol policy.
33602 * g-os_lib.ads: (Is_Directory): Clarify comment
33604 2003-11-19 Robert Dewar <dewar@gnat.com>
33606 * atree.adb: Move New_Copy_Tree global variables to head of package
33608 * errout.adb: Minor reformatting
33610 2003-11-19 Javier Miranda <miranda@gnat.com>
33612 * sem_ch4.adb: (Diagnose_Call): Improve error message.
33613 Add reference to Ada0Y (AI-50217)
33615 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
33616 sem_util.adb: Add reference to AI-50217
33618 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
33620 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
33622 * sem_aggr.adb: Complete documentation of AI-287 changes
33624 * par-ch4.adb: Document previous changes.
33626 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
33627 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
33630 * exp_aggr.adb: Add references to AI-287 in previous changes
33632 2003-11-19 Ed Schonberg <schonberg@gnat.com>
33635 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
33636 in the rewriting is the result of an inlined call.
33638 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
33639 parameter is a type conversion, use original node to construct the
33640 post-call assignment, because expression may have been rewritten, e.g.
33641 if it is a packed array.
33644 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
33645 body, just as it is in an instance.
33646 Categorization routines
33648 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
33649 Instantiate_Object): Set proper sloc reference for message on missing
33652 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
33654 * Makefile.in: Add FreeBSD libgnat pairs.
33656 * usage.adb: Fix typo in usage message.
33658 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
33660 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
33661 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
33662 pragma Thread_Body.
33663 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
33665 * s-thread.adb: This file is now a dummy implementation of
33668 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
33670 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
33672 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
33674 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33675 instanciation references in the parent type description.
33677 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33679 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
33681 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
33682 TYPE_PRECISION directly from esize.
33684 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
33687 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
33689 * init.c: Initialization routines for FreeBSD
33691 * link.c: Link info for FreeBSD
33693 * sysdep.c: Add the case of FreeBSD
33695 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
33697 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
33698 already called in System.Threads.
33700 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
33701 environment task, as it has been moved to System.Threads.Initialization.
33703 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
33705 * adaint.c (__gnatlib_install_locks): Only reference
33706 __gnat_install_locks on VMS, since other platforms can avoid using
33707 --enable-threads=gnat
33709 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33711 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
33713 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
33714 TYPE_PACKED_ARRAY_TYPE_P.
33715 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
33717 Part of PR ada/12806
33718 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
33719 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
33721 2003-11-17 Vincent Celier <celier@gnat.com>
33723 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
33725 Do not set exit status to Failure when Warning is True.
33726 (Gnatchop): Make errors "no compilation units found" and
33727 "no source files written" warnings only.
33729 * make.adb (Gnatmake): When using a project file, set
33730 Look_In_Primary_Dir to False.
33731 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
33732 and Local_Configuration_Pragmas in the project where they are declared
33733 not an extending project which might have inherited them.
33735 * osint.adb (Locate_File): If Name is already an absolute path, do not
33736 look for a directory.
33738 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
33739 -gnats (Check_Syntax) is used, issue only a warning, not an error.
33741 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
33742 in objects of type Variable_Value.
33744 * prj.ads: (Variable_Value): New component Project
33746 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
33747 is in a project extended by Project.
33749 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
33750 Project of Variable_Values to this new parameter value.
33751 (Expression): Set component Project of Variable_Values.
33752 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
33753 Set the component Project in array elements.
33755 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
33757 * errout.adb: (Initialize): Add initialization for error nodes.
33759 * sem_ch12.adb (Initialize): Add missing initializations for
33760 Exchanged_Views and Hidden_Entities.
33762 2003-11-17 Ed Schonberg <schonberg@gnat.com>
33764 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
33765 already instantiated tree for use in subsequent inlining.
33766 (Analyze_Associations, Instantiate_Formal_Subprogram,
33767 Instantiate_Object): improve error message for mismatch in
33770 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
33771 instantiations of subprograms declared in instances.
33773 2003-11-17 Javier Miranda <miranda@gnat.com>
33775 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
33776 executed only under the Extensions_Allowed flag.
33778 2003-11-17 Robert Dewar <dewar@gnat.com>
33780 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
33782 (Address_Image): Fix bug of returning 0x instead of 0x0
33783 Minor reformatting (function specs).
33785 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
33786 (missed case of 33-63)
33788 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
33790 * s-thread.adb: Add comments for pragma Restriction
33792 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
33793 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
33795 2003-11-17 Ed Falis <falis@gnat.com>
33797 * s-thread.adb: Added No_Tasking restriction for this implementation.
33799 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
33801 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33802 instanciation references in the parent type description.
33804 2003-11-17 GNAT Script <nobody@gnat.com>
33806 * Make-lang.in: Makefile automatically updated
33808 2003-11-16 Jason Merrill <jason@redhat.com>
33810 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
33811 and TAGS files that include them for each front end.
33813 2003-11-14 Andreas Jaeger <aj@suse.de>
33815 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
33816 is the canonical version.
33817 * misc.c (gnat_handle_option): Likewise.
33819 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
33821 * 5nsystem.ads: New file for x86_64-linux-gnu.
33823 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
33825 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
33827 * comperr.adb: Fix logic in previous change.
33829 2003-11-13 Vincent Celier <celier@gnat.com>
33831 * 5bml-tgt.adb (Build_Dynamic_Library): Use
33832 Osint.Include_Dir_Default_Prefix instead of
33833 Sdefault.Include_Dir_Default_Name.
33835 * gnatlbr.adb: Update Copyright notice
33836 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
33837 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
33838 instead of Sdefault.Object_Dir_Default_Name
33841 (Process_Binder_File): Never suppress the option following -Xlinker
33844 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
33845 Sdefault.Object_Dir_Default_Name.
33847 * osint.ads, osint.adb:
33848 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
33849 Minor reformatting.
33851 * vms_conv.ads: Minor reformating
33852 Remove GNAT STANDARD and GNAT PSTA
33855 Allow GNAT MAKE to have several files on the command line.
33856 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
33857 Sdefault.Object_Dir_Default_Name.
33859 Remove data for GNAT STANDARD
33862 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
33863 Remove data for GNAT STANDARD
33864 Remove options and documentation for -gnatwb/-gnatwB: these warning
33865 options no longer exist.
33867 2003-11-13 Ed Falis <falis@gnat.com>
33869 * 5zthrini.adb: (Init_RTS): Made visible
33872 (Register): Removed unnecessary call to taskVarGet that checked whether
33873 an ATSD was already set as a task var for the argument thread.
33876 Updated comment to reflect that this is a VxWorks version
33877 Added context clause for System.Threads.Initialization
33878 Added call to System.Threads.Initialization.Init_RTS
33880 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
33883 (Init_RTS): New procedure, for the initialization of the run-time lib.
33886 Remove dependancy on System.Init, so that this file can be used in the
33887 AE653 sequential run-time lib.
33889 2003-11-13 Robert Dewar <dewar@gnat.com>
33891 * bindgen.adb: Minor reformatting
33893 2003-11-13 Ed Schonberg <schonberg@gnat.com>
33896 (Apply_Discriminant_Check): Do no apply check if target type is derived
33897 from source type with no applicable constraint.
33900 (Ensure_System_Dependency): Do not apply the style checks that may have
33901 been specified for the main unit.
33904 (Find_Selected_Component): Further improvement in error message, with
33908 (Resolve): Handle properly the case of an illegal overloaded protected
33911 2003-11-13 Javier Miranda <miranda@gnat.com>
33914 (Has_Default_Init_Comps): New function to check the presence of
33915 default initialization in an aggregate.
33916 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
33917 extension aggregate of a limited record. In addition, a new formal
33918 was added to do not initialize the record controller (if any) during
33919 this recursive expansion of ancestors.
33920 (Init_Controller): Add support for limited record components.
33921 (Expand_Record_Aggregate): In case of default initialized components
33922 convert the aggregate into a set of assignments.
33924 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
33925 describing the new syntax.
33926 Nothing else needed to be done because this subprogram delegates part of
33927 its work to P_Precord_Or_Array_Component_Association.
33928 (P_Record_Or_Array_Component_Association): Give support to the new
33929 syntax for default initialization of components.
33932 (Resolve_Aggregate): Relax the strictness of the frontend in case of
33933 limited aggregates.
33934 (Resolve_Record_Aggregate): Give support to default initialized
33936 (Get_Value): In case of default initialized components, duplicate
33937 the corresponding default expression (from the record type
33938 declaration). In case of default initialization in the *others*
33939 choice, do not check that all components have the same type.
33940 (Resolve_Extension_Aggregate): Give support to limited extension
33944 (Check_Initialization): Relax the strictness of the front-end in case
33945 of aggregate and extension aggregates. This test is now done in
33946 Get_Value in a per-component manner.
33948 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
33949 expression corresponds to a limited aggregate. This test is now done
33952 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
33955 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
33956 present in an N_Component_Association node
33958 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
33960 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
33961 type-conformant entry only if they are homographs.
33963 2003-11-13 GNAT Script <nobody@gnat.com>
33965 * Make-lang.in: Makefile automatically updated
33967 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33969 * adadecode.c: Use <> form of include for ctype.h.
33970 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
33972 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33974 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
33975 Works around PR middle-end/6552.
33977 2003-11-10 Ed Falis <falis@gnat.com>
33979 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
33981 * 5zinit.adb: (Install_Handler): Moved back to spec
33982 (Install_Signal_Handlers): Deleted
33984 * 5zthrini.adb: Added context clause for System.Storage_Elements
33985 (Register): Only handles creation of taskVar; initialization moved to
33987 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
33988 Added declaration of environment task secondary stack and
33991 * s-thread.adb: Implement bodies for thread body processing
33994 Added comment identifying supported targets for pragma Thread_Body.
33996 2003-11-10 Pascal Obry <obry@gnat.com>
33998 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
34002 (Open): Properly check for string length before copying into the buffer.
34003 Raises Name_Error if buffer is too small. Note that this was a potential
34006 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
34008 * bindgen.adb, comperr.adb: Code clean ups.
34009 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
34011 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
34013 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
34015 2003-11-10 Vincent Celier <celier@gnat.com>
34018 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
34021 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
34023 * prj.adb: (Project_Empty): Add new boolean component Virtual
34025 * prj.ads: (Virtual_Prefix): New constant string
34026 (Project_Data): New boolean component Virtual
34028 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
34029 a library project is extended by a virtual extending project.
34032 Modifications throughout to implement extending-all project, including:
34033 (Virtual_Hash, Processed_Hash): New hash tables
34034 (Create_Virtual_Extending_Project): New procedure
34035 (Look_For_Virtual_Projects_For): New procedure
34038 (Process): After checking the projects, if main project is an
34039 extending-all project, set the object directory of all virtual extending
34040 project to the object directory of the main project.
34041 Adjust error message when a virtual extending project has the same
34042 object directory as an project being extended.
34043 (Recursive_Process): If name starts with the virtual prefix, set Virtual
34044 to True in the project data.
34047 (Default_Project_Node): Add new boolean component Extending_All
34048 (Is_Extending_All): New function
34049 (Set_Is_Extending_All): New procedure
34051 * prj-tree.ads: (Is_Extending_All): New function
34052 (Set_Is_Extending_All): New procedure
34053 (Project_Node_Record): New boolean component Extending_All
34055 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
34058 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
34060 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
34061 "gprcmd prefix" to define it.
34063 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
34065 * einfo.ads: Fix a typo and remove an extraneous word in comments.
34068 (Create_Dummy_Package_Unit): Set the scope of the entity for the
34069 created dummy package to Standard_Standard, not to itself, to
34070 defend other parts of the front-end against encoutering a cycle in
34074 (Analyze_With_Clause): When setting the entities for the successive
34075 N_Expanded_Names that constitute the name of a child unit, do not
34076 attempt to go further than Standard_Standard in the chain of scopes.
34077 This case arises from the placeholder units created by
34078 Create_Dummy_Package_Unit in the case of a with_clause for a
34079 nonexistent child unit.
34081 2003-11-10 Ed Schonberg <schonberg@gnat.com>
34084 (Expand_Thread_Body): Place subprogram on scope stack, so that new
34085 declarations are given the proper scope.
34088 (Check_Expr_Constants): Reject an expression that contains a constant
34089 created during expansion, and that appears after the object to which
34090 the address clause applies.
34092 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
34093 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
34094 that uses 'Range of a function call with controlled components, so
34095 that the function result can be finalized before starting the loop.
34098 (Find_Selected_Component): Improve error message when prefix is
34099 an implicit dereference of an incomplete type.
34101 2003-11-10 Robert Dewar <dewar@gnat.com>
34103 * opt.ads: New Print_Standard flag for -gnatS switch
34105 * sem_ch13.adb: Remove some additional checks for unaligned arrays
34107 * cstand.adb (Create_Standard): Print out package standard if -gnatS
34110 * debug.adb: Update doc for -gnatds to discuss relationship with new
34113 * sinfo.adb: Add new field Entity_Or_Associated_Node
34115 * sinfo.ads: Add new field Entity_Or_Associated_Node
34116 Update documentation for Associated_Node and Entity fields to clarify
34117 relationship and usage.
34120 (Write_Id): Properly process Associated_Node field in generic template
34123 Recognize new -gnatS switch for printing package Standard
34124 This replaces gnatpsta
34127 Add line for new -gnatS switch for printing package Standard
34128 This replaces gnatpsta
34130 2003-11-10 Andreas Jaeger <aj@suse.de>
34132 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
34135 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34137 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
34140 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34142 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
34145 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
34147 * sysdep.c: Add handling of cygwin.
34149 2003-11-10 GNAT Script <nobody@gnat.com>
34151 * Make-lang.in: Makefile automatically updated
34153 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34156 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
34157 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
34158 Replace GNAT_ROOT by GCC_ROOT.
34160 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
34162 2003-11-06 Zack Weinberg <zack@codesourcery.com>
34164 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
34165 and update for changed meaning of GET_MODE_BITSIZE.
34167 2003-11-04 Doug Rupp <rupp@gnat.com>
34169 * sysdep.c: Problem discovered during IA64 VMS port.
34170 [VMS] #include <unixio.h> to get proper prototypes.
34173 Issues discovered/problems fixed during IA64 VMS port.
34174 [VMS] #define _POSIX_EXIT for proper semantics.
34175 [VMS] #include <unixio.h> for proper prototypes.
34176 [VMS] (fork): #define IA64 version.
34177 (__gnat_os_exit): Remove unnecessary VMS specific code.
34179 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34181 Part of PR ada/12806
34182 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
34186 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
34189 * targtyps.c, decl.c, misc.c,
34190 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
34191 routines to work around change in FP sizing semantics in GCC.
34194 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
34196 * gigi.h: (enumerate_modes): New function.
34198 * Make-lang.in: (ada/misc.o): Add real.h.
34200 * misc.c: (enumerate_modes): New function.
34202 2003-11-04 Robert Dewar <dewar@gnat.com>
34204 * 3vtrasym.adb: Minor reformatting
34205 Use terminology encoded/decoded name, rather than C++ specific notion
34206 of mangling (this is the terminology used throughout GNAT).
34208 * einfo.h: Regenerated
34210 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
34213 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
34215 * par-prag.adb: Add dummy entry for Thread_Body pragma
34218 Add entries for System.Threads entities for thread body processing
34221 (Analyze_Pragma, Access attributes): Check these are not applied to a
34222 thread body, since this is not permitted
34224 * sem_prag.adb: Add processing for Thread_Body pragma.
34228 (Resolve_Call): Check for incorrect attempt to call a thread body
34229 procedure with a direct call.
34231 * snames.ads, snames.adb: Add entry for Thread_Body pragma
34232 Add names associated with thread body expansion
34234 * snames.h: Add entry for Thread_Body pragma
34236 * s-thread.adb: Add entries for thread body processing
34237 These are dummy bodies so far
34239 * s-thread.ads: Add documentation on thread body handling.
34240 Add entries for thread body processing.
34242 2003-11-04 Javier Miranda <miranda@gnat.com>
34245 (Build_Limited_Views): Return after posting an error in case of limited
34246 with_clause on subprograms, generics, instances or generic renamings
34247 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
34248 on subprograms, generics, instances or generic renamings
34250 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
34252 * raise.c (setup_to_install): Correct mistake in last revision; two
34253 arguments out of order.
34255 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
34256 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
34257 notice, missed in previous change.
34258 Remove trailing blanks and other style errors introduced in previous
34261 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
34263 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
34264 rid of the wrapper for a LJM type, ensuring we don't do that if the
34265 field is addressable. This avoids potential low level type view
34266 mismatches later on, for instance in a by-reference argument passing
34269 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34271 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
34272 aligned at byte boundary.
34274 2003-11-04 Joel Brobecker <brobecker@gnat.com>
34276 * decl.c (components_to_record): Do not delete the empty variants from
34277 the end of the union type.
34279 2003-11-04 Ed Schonberg <schonberg@gnat.com>
34281 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
34282 operation for a derived type, an explicit declaration may use a local
34283 subtype of Boolean.
34285 2003-11-04 Vincent Celier <celier@gnat.com>
34287 * make.adb (Gnatmake): Allow main sources on the command line with a
34288 library project when it is only for compilation (no binding or
34291 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34293 * Makefile.in: Remove many duplicate variables.
34295 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
34297 * Make-lang.in (dvi): Move targets to $(docobjdir).
34298 (gnat_ug_vms.dvi): Simplify rule and adjust target.
34299 (gnat_ug_wnt.dvi): Likewise.
34300 (gnat_ug_unx.dvi): Likewise.
34301 (gnat_ug_vxw.dvi): Likewise.
34302 (gnat_rm.dvi): Likewise.
34303 (gnat-style.dvi): Likewise.
34305 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
34307 * gigi.h: Missed commit from update for C90.
34309 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
34311 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
34313 2003-10-31 Andreas Schwab <schwab@suse.de>
34315 * raise.c (get_action_description_for): Fix typo in last change.
34317 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
34320 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
34321 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
34323 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
34325 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
34326 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
34327 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
34328 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
34329 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
34331 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
34334 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
34335 numbers when symbol name is too long.
34337 2003-10-30 Ed Falis <falis@gnat.com>
34339 * g-signal.ads, g-signal.adb: New files
34341 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
34343 * Makefile.rtl: Introduce GNAT.Signals
34345 2003-10-30 Robert Dewar <dewar@gnat.com>
34347 * freeze.adb: Minor reformatting
34349 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
34351 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
34352 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
34353 New handling of Id_Check parameter to improve recognition of keywords
34354 used as identifiers.
34355 Update copyright notice to include 2003
34357 2003-10-29 Robert Dewar <dewar@gnat.com>
34359 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
34360 sem_ch10.adb: Minor reformatting
34362 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
34363 (Expand_Assign_Record): Test right hand side for bit unaligned as well
34365 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
34367 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
34368 Support for TBK$SYMBOLIZE-based symbolic traceback.
34370 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
34373 Revert previous change, that did not work well when pragma No_Run_Time
34374 was used in conjunction with a run-time other than ZFP.
34376 2003-10-29 Vincent Celier <celier@gnat.com>
34379 (Gnatmake): When there are no Ada mains in attribute Main, disable the
34380 bind and link steps only is switch -z is not used.
34382 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
34384 * Makefile.generic: Remove duplicated setting of CC.
34386 * Makefile.prolog: Set CC to gcc by default, to override make's
34389 * einfo.h: Regenerated.
34391 2003-10-29 Ed Schonberg <schonberg@gnat.com>
34393 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
34394 current body, after compiling subunit.
34396 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
34397 when in deleted code, because gigi needs properly ordered freeze
34398 actions to annotate types.
34400 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
34401 prevent the premature freezing of record type that contains
34402 subcomponents with a private type that does not yet have a completion.
34404 2003-10-29 Javier Miranda <miranda@gnat.com>
34407 (Analyze_Package_Instantiation): Check that instances can not be used in
34408 limited with_clauses.
34411 (Analyze_Package_Renaming): Check that limited withed packages cannot
34412 be renamed. Improve text on error messages related to limited
34415 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
34417 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
34418 Update copyright notice.
34420 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
34421 (Install_Limited_Context_Clauses): New subprogram that isolates all the
34422 checks required for limited context_clauses and installs the limited
34424 (Install_Limited_Withed_Unit): Complete its documentation.
34425 (Analyze_Context): Check that limited with_clauses are only allowed in
34427 (Install_Context): Call Install_Limited_Context_Clauses after the
34428 parents have been installed.
34429 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
34430 package as 'From_With_Type'; this mark indicates that the limited view
34431 is installed. Used to check bad usages of limited with_clauses.
34432 (Build_Limited_Views): Do not add shadow entities to the scope's list
34433 of entities. Do not add real entities to the Non_Limited_Views chain.
34434 Improve error notification.
34435 (Remove_Context_Clauses): Remove context clauses in two phases:
34436 limited views first and regular views later (to maintain the
34438 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
34439 its visible entities.
34441 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
34443 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
34444 with any type that Is_Fixed_Point_Type.
34446 * sinfo.ads: Fix documentation for Associated_Node attribute.
34448 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
34450 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
34451 both '-gnatc' and '-gnatt' are specified.
34453 * atree.adb (Initialize): Add initialization for Node_Count (set to
34456 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34458 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
34459 do not consider as Pure.
34461 Part of implementation of function-at-a-time:
34463 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
34464 (tree_transform): Add new argument to build_component_ref.
34465 (tree_transform, case N_Assignment_Statement): Make and return an
34467 (tree_transform): If result IS_STMT, set flags and return it.
34468 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34470 * utils2.c (build_simple_component_ref, build_component_ref): Add new
34472 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
34473 (build_allocator): Likewise.
34475 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
34476 Add new arg to build_component_ref.
34477 (maybe_unconstrained_array, unchecked_convert): Likewise.
34479 * ada-tree.def (EXPR_STMT): New code.
34481 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
34483 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
34484 build_component_ref calls.
34486 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
34488 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34489 (build_component_ref): Add new argument, NO_FOLD_P.
34491 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
34493 * Makefile.generic: Add missing substitution on object_deps handling.
34496 * Make-lang.in (check-ada): Enable ACATS test suite.
34498 2003-10-27 Robert Dewar <dewar@gnat.com>
34501 (Freeze_Array_Type): We do not need an initialization routine for types
34502 derived from String or Wide_String. They should be treated the same
34503 as String and Wide_String themselves. This caused problems with the
34504 use of Initialize_Scalars.
34507 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
34508 composites. This allows use of component clauses that are not byte
34512 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
34513 is an attempt to pack an array of atomic objects.
34515 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
34517 2003-10-27 Pascal Obry <obry@gnat.com>
34520 (Basename): Check for drive letters in a pathname only on DOS based OS.
34522 2003-10-27 Vincent Celier <celier@gnat.com>
34525 (Gnatmake): When unable to change dir to the object dir, display the
34526 content of the parent dir of the obj dir, to try to understand why this
34529 2003-10-27 GNAT Script <nobody@gnat.com>
34531 * Make-lang.in: Makefile automatically updated
34533 2003-10-27 Ed Schonberg <schonberg@gnat.com>
34536 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
34537 should not be done in Save/Restore_Scope_Stack, because it is performed
34541 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34542 whether use clauses should be removed/restored.
34545 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34546 whether use clauses should be removed/restored.
34548 2003-10-26 Andreas Jaeger <aj@suse.de>
34550 * Makefile.in: Remove duplicated lines.
34552 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34554 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
34555 minimize the differences with ACT tree.
34557 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
34558 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
34559 Gnatvsn.Gnat_Static_Version_String to reduce differences between
34562 2003-10-24 Pascal Obry <obry@gnat.com>
34565 * adadecode.c (ostrcpy): New function.
34566 (__gnat_decode): Use ostrcpy of strcpy.
34567 (has_prefix): Set first parameter a const.
34568 (has_suffix): Set first parameter a const.
34569 Update copyright notice. Fix source name in header.
34570 Removes a trailing space.
34572 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
34575 Remove the test against being in No_Run_Time_Mode before generating a
34576 call to Register_Tag. It is redundant with the test against the
34577 availability of the function Register_Tag.
34579 2003-10-24 Vincent Celier <celier@gnat.com>
34581 * g-catiio.adb: (Month_Name): Correct spelling of February
34583 * make.adb: (Mains): New package
34584 (Initialize): Call Mains.Delete
34585 (Gnatmake): Check that each main on the command line is a source of a
34586 project file and, if there are several mains, each of them is a source
34587 of the same project file.
34588 (Gnatmake): When a foreign language is specified in attribute Languages,
34589 no main is specified on the command line and attribute Mains is not
34590 empty, only build the Ada main. If there is no Ada main, just compile
34591 the Ada sources and their closure.
34592 (Gnatmake): If a main is specified on the command line with directory
34593 information, check that the source exists and, if it does, that the path
34594 is the actual path of a source of a project.
34597 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
34598 Full_Path is True, return the full path instead of the simple file name.
34599 (Project_Of): New function
34602 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
34603 defaulted to False.
34604 (Project_Of): New function
34606 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34608 * Makefile.generic:
34609 Ensure objects of main project are always checked and rebuilt if needed.
34610 Set CC to gcc by default.
34611 Prepare new handling of link by creating a global archive (not activated
34614 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34615 stringt.h: Update copyright notice. Remove trailing blanks.
34616 Fix source name in header.
34618 2003-10-24 Robert Dewar <dewar@gnat.com>
34620 * sem_ch12.adb: Minor reformatting
34623 Minor reformatting (including new function return style throughout)
34626 Minor reformatting (including new function return style throughout)
34628 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34630 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34631 stringt.h: Update copyright notice. Remove trailing blanks.
34632 Fix source name in header.
34634 2003-10-24 GNAT Script <nobody@gnat.com>
34636 * Make-lang.in: Makefile automatically updated
34638 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
34640 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
34641 stringt.h: Convert to ISO C90 declarations and definitions.
34643 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
34646 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
34647 External_Tag attribute definition clauses.
34649 2003-10-23 Ed Schonberg <schonberg@gnat.com>
34652 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
34653 child unit, generate a fully qualified name to avoid spurious errors
34654 when the context contains renamings of different child units with
34655 the same simple name.
34657 * exp_dbug.ads: Add documentation on name qualification for renamings
34660 2003-10-23 Robert Dewar <dewar@gnat.com>
34662 * g-regpat.ads, g-regpat.adb: Minor reformatting
34664 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
34666 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
34668 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34670 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
34673 * urealp.h: (Machine): Update to proper definition.
34675 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
34677 * init.c, adaint.c: Minor reformatting.
34679 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
34681 * adaint.c (w32_epoch_offset): Define static const at file level.
34682 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
34683 rather than t_create, t_access in call to GetFileTime. Use union
34684 to convert between FILETIME and unsigned long long.
34685 (__gnat_file_time_name): Test for invalid file handle.
34686 (__gnat_set_filetime_name): Support win32 targets using
34687 w32api SetFileTime.
34689 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
34691 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
34693 * ctrl_c.c (__gnat_int_handler): Remove declaration.
34695 * decl.c (creat_concat_name): Const-ify prefix.
34697 * adaint.c: Include ctype.h if __MINGW32__.
34698 (__gnat_readlink): Mark arguments as possibly unused.
34699 (__gnat_symlink): Likewise.
34700 (__gnat_is_symbolic_link): Likewise.
34701 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
34703 (__gnat_file_time_name): Don't declare struct stat statbuf when
34705 (__gnat_is_absolute_path): Add parenthesis around condition of
34706 'if' statement to avoid warning.
34707 (__gnat_plist_init): Specify void as parameter.
34708 (plist_enter): Likewise.
34709 (plist_leave): Likewise.
34710 (remove_handle): Make static. Initialize prev.
34712 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
34715 * Makefile.in: Disable build of gnatpsta.
34716 * cstreams.c (__gnat_full_name): Minor improvements and clean up
34717 of previous change.
34719 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34721 * tracebak.c (MAX): Avoid redefinition warning.
34723 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
34724 Change msg to const char *.
34725 (__gnat_install_handler): Remove ss, unused.
34726 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
34728 * cstreams.c (__gnat_full_name): Declare p only when used.
34729 (__gnat_full_name) [sgi] Return buffer.
34731 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
34733 * mingw32.h: New file.
34734 * gnat_wrapper.adb: New file.
34736 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
34738 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
34739 string match a pre compiled regular expression (the corresponding
34740 version of the function working on a raw regular expression)
34741 Fix typos in various comments
34742 Update copyright notice in spec
34744 2003-10-21 Gary Dismukes <dismukes@gnat.com>
34747 (Component_Needs_Simple_Initialization): Return False when the type is a
34748 packed bit array. Revise spec comments to document this case.
34751 (Expand_Pragma_Import): Set any expression on the imported object to
34752 empty to avoid initializing imported objects (in particular this
34753 covers the case of zero-initialization of bit arrays).
34754 Update copyright notice.
34756 2003-10-21 Ed Schonberg <schonberg@gnat.com>
34759 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
34760 a subunit is missing.
34761 (Instantiate_Subprogram_Body): If body of function is missing, set type
34762 of return expression explicitly in dummy body, to prevent cascaded
34763 errors when a subunit is missing.
34767 (Access_Subprogram_Declaration): Verify that return type is valid.
34771 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
34776 (Corresponding_Discriminant): If the scope of the discriminant is a
34777 private type without discriminant, use its full view.
34780 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
34782 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
34783 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
34784 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
34785 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
34786 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
34787 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
34788 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
34789 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
34790 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
34791 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
34792 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
34793 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
34794 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
34795 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
34796 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
34797 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
34798 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
34799 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
34800 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
34801 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
34802 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
34803 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
34804 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
34805 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
34806 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
34807 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
34808 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
34809 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
34810 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
34811 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
34812 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
34813 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
34814 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
34815 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
34816 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
34817 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
34818 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
34819 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
34820 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
34821 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
34822 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
34823 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
34824 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
34825 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
34826 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
34827 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
34828 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
34829 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
34830 vms_conv.ads, vms_conv.adb, vms_data.ads,
34831 vxaddr2line.adb: Files added. Merge with ACT tree.
34833 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
34834 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
34835 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
34836 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
34837 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
34838 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
34839 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
34840 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
34841 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
34842 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
34844 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
34845 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
34846 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
34847 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
34848 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
34849 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
34850 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
34851 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
34852 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
34853 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
34854 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
34855 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
34856 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
34857 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
34858 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
34859 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
34860 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
34861 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
34862 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
34863 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
34864 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
34865 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
34866 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
34867 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
34868 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
34869 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
34870 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
34871 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
34872 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
34873 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
34874 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
34875 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
34876 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34877 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
34878 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
34879 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
34880 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
34881 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
34882 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
34883 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
34884 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
34885 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
34886 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
34887 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
34888 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
34889 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
34890 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
34891 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
34892 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
34893 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
34894 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
34895 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
34896 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
34897 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
34898 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
34899 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
34900 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
34901 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
34902 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
34903 checks.adb, checks.ads, cio.c, comperr.adb,
34904 comperr.ads, csets.adb, cstand.adb, cstreams.c,
34905 debug_a.adb, debug_a.ads, debug.adb, decl.c,
34906 einfo.adb, einfo.ads, errout.adb, errout.ads,
34907 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
34908 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
34909 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
34910 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34911 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
34912 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
34913 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
34914 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
34915 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
34916 fe.h, fmap.adb, fmap.ads, fname.adb,
34917 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
34918 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
34919 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
34920 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
34921 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
34922 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
34923 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
34924 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
34925 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
34926 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
34927 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
34928 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
34929 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
34930 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
34931 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
34932 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
34933 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
34934 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
34935 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
34936 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
34937 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
34938 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
34939 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
34940 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
34941 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
34942 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
34943 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
34944 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
34945 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
34946 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
34947 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
34948 layout.adb, lib.adb, lib.ads, lib-list.adb,
34949 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
34950 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
34951 link.c, live.adb, make.adb, make.ads,
34952 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
34953 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
34954 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
34955 misc.c, mkdir.c, mlib.adb, mlib.ads,
34956 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
34957 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
34958 namet.adb, namet.ads, namet.h, nlists.ads,
34959 nlists.h, nmake.adt, opt.adb, opt.ads,
34960 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
34961 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
34962 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
34963 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
34964 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
34965 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
34966 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
34967 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
34968 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
34969 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
34970 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
34971 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
34972 prj-util.adb, prj-util.ads, raise.c, raise.h,
34973 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
34974 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
34975 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
34976 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
34977 scans.ads, scn.adb, scn.ads, s-crc32.adb,
34978 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
34979 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34980 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
34981 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
34982 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
34983 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
34984 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
34985 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
34986 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
34987 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
34988 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
34989 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
34990 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
34991 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
34992 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
34993 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
34994 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
34995 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
34996 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
34997 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
34998 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
34999 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
35000 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
35001 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
35002 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
35003 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
35004 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
35005 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
35006 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
35007 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
35008 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
35009 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
35010 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
35011 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
35012 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
35013 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
35014 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
35015 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
35016 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
35017 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
35018 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
35019 stringt.adb, stringt.ads, stringt.h, style.ads,
35020 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
35021 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
35022 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
35023 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
35024 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
35025 table.adb, table.ads, targparm.adb, targparm.ads,
35026 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
35027 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
35028 ttypes.ads, types.ads, types.h, uintp.adb,
35029 uintp.ads, uintp.h, uname.adb, urealp.adb,
35030 urealp.ads, urealp.h, usage.adb, utils2.c,
35031 utils.c, validsw.adb, validsw.ads, widechar.adb,
35032 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
35033 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
35034 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
35035 gnatvsn.ads: Merge with ACT tree.
35037 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
35039 2003-10-20 Mark Mitchell <mark@codesourcery.com>
35041 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
35042 (gnat_ug_vmx.info): Likewise.
35043 (gnat_ug_vxw.info): Likewise.
35044 (gnat_ug_wnt.info): Likewise.
35045 (gnat_rm.info): Likewise.
35046 (gnat-style.info): Likewise.
35048 * Make-lang.in (ada.install-info): Remove target.
35049 (info): New target.
35050 (install-info): Likewise.
35051 (gnat_ug_unx.info): Simplify rule.
35052 (gnat_ug_vmx.info): Likewise.
35053 (gnat_ug_vxw.info): Likewise.
35054 (gnat_ug_wnt.info): Likewise.
35055 (gnat_rm.info): Likewise.
35056 (gnat-style.info): Likewise.
35058 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
35060 * Make-lang.in: Replace uses of $(target_alias) with
35061 $(target_noncanonical).
35062 * ada/Makefile.in: Remove unused mention of $(target_alias).
35064 2003-10-06 Mark Mitchell <mark@codesourcery.com>
35066 * Make-lang.in (ada.info): Replace with ...
35068 (ada.dvi): Replace with ...
35071 2003-09-29 Zack Weinberg <zack@codesourcery.com>
35073 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
35074 initialize dconstp5 and dconstmp5.
35076 2003-09-28 Richard Henderson <rth@redhat.com>
35078 * trans.c (tree_transform): Update call to expand_asm_operands.
35080 2003-09-21 Richard Henderson <rth@redhat.com>
35082 * trans.c, utils.c: Revert.
35084 2003-09-21 Richard Henderson <rth@redhat.com>
35086 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
35089 2003-09-04 Michael Matz <matz@suse.de>
35091 * misc.c: Include "target.h".
35092 * Make-lang.in (misc.o): Add dependency on target.h.
35094 2003-09-03 DJ Delorie <dj@redhat.com>
35096 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
35099 2003-08-30 Zack Weinberg <zack@codesourcery.com>
35101 * Makefile.in: Update substitutions to match changes to
35102 configure. Use include directives instead of @-insertions
35103 to read in host and target fragments. Add a rule to
35104 regenerate ada/Makefile.
35106 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
35108 * lang-options.h: Remove.
35109 * lang.opt: Add help text.
35111 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
35113 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
35116 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
35118 * misc.c (gnat_handle_option): Don't handle filenames.
35120 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
35122 * Make-lang.in: Replace PWD with PWD_COMMAND.
35123 * Makefile.adalib: Likewise.
35124 * Makefile.in: Likewise.
35126 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
35128 * misc.c (gnat_argv): Revert last change.
35129 (gnat_handle_option, gnat_init_options): Copy arguments.
35131 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
35133 * misc.c (gnat_argv): Make const.
35135 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
35137 * misc.c (save_argc, save_argv): Keep non-static!
35139 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
35141 * misc.c (save_argc, save_argv): Make static.
35142 (gnat_init_options): New prototype.
35143 (gnat_init_options): Update.
35145 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
35147 * gnat_ug.texi: Remove unlikely characters from @vars.
35148 * gnat_ug_vms.texi: Regenerate.
35150 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
35152 * misc.c (record_code_position): Adjust emit_note call.
35154 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
35156 * misc.c (gnat_handle_option): Don't check for missing arguments.
35158 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
35160 * utils.c (end_subprog_body): Adjust expand_function_end call.
35162 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
35164 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
35167 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
35169 * lang.opt: Declare Ada.
35170 * misc.c (gnat_init_options): Update.
35172 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
35174 * utils.c (begin_subprog_body): Adjust init_function_start call.
35176 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
35178 * Make-lang.in: Update to use options.c and options.h.
35179 * misc.c: Include options.h not aoptions.h.
35180 (gnat_handle_option): Abort on unrecognized switch.
35181 (gnat_init_options): Request Ada switches.
35183 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
35185 * lang.opt: Add -Wall.
35186 * misc.c (gnat_handle_option): Handle it.
35188 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
35190 * misc.c (gnat_handle_option): Fix warnings.
35192 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
35194 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
35196 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
35198 * Make-lang.in: Update to handle command-line options.
35199 * lang.opt: New file.
35200 * misc.c: Include aoptions.h.
35201 (cl_options_count, cl_options): Remove.
35202 (gnat_handle_option): New.
35203 (gnat_decode_option): Remove.
35204 (LANG_HOOKS_DECODE_OPTION): Remove.
35205 (LANG_HOOKS_HANDLE_OPTION): Override.
35207 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
35209 * init.c, misc.c, trans.c, utils.c: Remove dead code.
35211 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
35213 * Makefile.in: Replace "host_canonical" with "host" for autoconf
35216 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
35218 * Make-lang.in: Update.
35219 * misc.c: Include opts.h. Define cl_options_count and cl_options.
35221 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
35223 * misc.c (gnat_init_options): Update.
35225 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
35227 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
35228 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
35229 __attribute__ ((__unused__)).
35231 2003-06-05 Jan Hubicka <jh@suse.cz>
35233 * Make-lang.in: Add support for stageprofile and stagefeedback
35235 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
35237 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
35238 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
35240 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
35242 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
35243 Remove non-VMS directive.
35244 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
35246 (Examples of gnatls Usage): Remove VMS alternative.
35248 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
35251 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
35252 and turn ZCX_By_Default back to False since the underlying support
35253 is not quite there yet.
35255 2003-06-01 Andreas Jaeger <aj@suse.de>
35257 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
35258 and ROUND_TYPE_SIZE_UNIT.
35260 2003-05-22 Geert Bosch <bosch@gnat.com>
35262 * gnat_rm.texi : Remove reference to Ada Core Technologies.
35264 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
35266 * trans.c (tree_transform): Use location_t and input_location
35268 (build_unit_elab): Likewise.
35269 * utils.c (create_label_decl): Likewise.
35271 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
35273 * trans.c (tree_transform, build_unit_elab,
35274 set_lineno): Rename lineno to input_line.
35275 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
35276 end_subprog_body): Likewise.
35277 * utils2.c (build_call_raise): Likewise.
35279 2003-05-01 Laurent Guerby <guerby@acm.org>
35282 * 5iosinte.ads: Increase pthread_cond_t size to match recent
35283 LinuxThread and NPTL version, merge from ACT.
35285 2003-04-28 Zack Weinberg <zack@codesourcery.com>
35287 * utils.c (convert): No need to clear TREE_CST_RTL.
35289 2003-04-23 Geert Bosch <bosch@gnat.com>
35291 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35292 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35293 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35294 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35295 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35296 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
35297 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
35298 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
35299 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35300 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
35301 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
35302 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
35303 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
35304 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
35305 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
35306 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
35307 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
35308 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
35309 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
35310 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
35311 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
35312 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
35313 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35314 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
35315 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
35316 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
35317 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
35318 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
35319 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
35320 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
35321 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
35322 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
35323 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
35324 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
35325 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
35326 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
35327 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
35328 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
35329 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
35330 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
35331 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
35332 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
35333 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
35334 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
35335 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
35336 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
35337 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
35338 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
35339 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
35340 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
35341 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
35342 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
35343 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
35344 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
35345 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
35346 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
35347 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
35348 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
35349 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
35350 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
35351 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
35352 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
35353 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
35354 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
35355 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
35356 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
35357 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
35358 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
35359 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
35360 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
35361 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
35362 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
35363 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
35364 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
35365 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
35366 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
35367 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
35368 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
35369 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
35370 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
35371 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
35372 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
35373 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
35374 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
35375 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
35376 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
35377 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
35378 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
35379 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
35380 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
35381 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
35382 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
35383 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
35384 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
35385 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
35386 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
35387 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
35388 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
35389 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
35390 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
35391 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
35392 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
35393 ali.adb, ali.ads, alloc.ads, argv.c,
35394 atree.adb, atree.ads, atree.h, aux-io.c,
35395 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
35396 binde.adb, binde.ads, binderr.adb, binderr.ads,
35397 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
35398 butil.adb, butil.ads, cal.c, calendar.ads,
35399 casing.adb, casing.ads, ceinfo.adb, checks.adb,
35400 checks.ads, cio.c, comperr.adb, comperr.ads,
35401 config-lang.in, csets.adb, csets.ads, csinfo.adb,
35402 cstand.adb, cstand.ads, cuintp.c, debug.adb,
35403 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
35404 dec-io.ads, dec.ads, deftarg.c, directio.ads,
35405 einfo.adb, einfo.ads, elists.adb, elists.ads,
35406 elists.h, errno.c, errout.adb, errout.ads,
35407 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
35408 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
35409 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
35410 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
35411 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
35412 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
35413 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
35414 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
35415 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
35416 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
35417 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
35418 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
35419 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
35420 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
35421 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
35422 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
35423 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
35424 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
35425 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
35426 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
35427 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35428 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35429 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35430 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
35431 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
35432 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
35433 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
35434 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
35435 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
35436 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
35437 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
35438 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
35439 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
35440 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
35441 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
35442 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
35443 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
35444 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
35445 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
35446 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
35447 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
35448 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
35449 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
35450 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
35451 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
35452 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
35453 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
35454 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
35455 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
35456 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
35457 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
35458 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
35459 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
35460 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
35461 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
35462 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
35463 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
35464 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
35465 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
35466 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35467 lib.adb, lib.ads, live.adb, live.ads,
35468 machcode.ads, make.adb, make.ads, makeusg.adb,
35469 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
35470 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
35471 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
35472 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
35473 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
35474 mlib.ads, namet.adb, namet.ads, nlists.adb,
35475 nlists.ads, opt.adb, opt.ads, osint-b.adb,
35476 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
35477 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
35478 osint.ads, output.adb, output.ads, par-ch10.adb,
35479 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
35480 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35481 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
35482 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
35483 par-tchk.adb, par-util.adb, par.adb, par.ads,
35484 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
35485 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
35486 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
35487 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
35488 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
35489 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
35490 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
35491 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
35492 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
35493 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
35494 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
35495 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
35496 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
35497 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
35498 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
35499 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
35500 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
35501 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35502 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
35503 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
35504 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
35505 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
35506 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35507 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
35508 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
35509 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
35510 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
35511 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
35512 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
35513 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
35514 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
35515 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
35516 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
35517 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
35518 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
35519 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
35520 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
35521 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
35522 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
35523 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
35524 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
35525 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
35526 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
35527 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
35528 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
35529 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
35530 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
35531 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
35532 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
35533 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
35534 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
35535 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
35536 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
35537 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
35538 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
35539 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
35540 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
35541 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
35542 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
35543 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
35544 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
35545 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
35546 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
35547 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
35548 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
35549 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
35550 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
35551 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
35552 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
35553 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
35554 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
35555 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
35556 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
35557 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
35558 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
35559 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
35560 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
35561 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
35562 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
35563 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
35564 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
35565 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
35566 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
35567 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
35568 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
35569 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
35570 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
35571 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
35572 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
35573 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
35574 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
35575 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
35576 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
35577 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
35578 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
35579 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
35580 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
35581 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
35582 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
35583 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
35584 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
35585 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
35586 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
35587 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
35588 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
35589 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
35590 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
35591 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
35592 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
35593 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
35594 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35595 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35596 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
35597 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
35598 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
35599 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
35600 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
35601 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
35602 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
35603 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
35604 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
35605 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
35606 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
35607 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
35608 snames.ads, sprint.adb, sprint.ads, stand.adb,
35609 stand.ads, stringt.adb, stringt.ads, style.adb,
35610 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
35611 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
35612 switch-m.ads, switch.adb, switch.ads, system.ads,
35613 table.adb, table.ads, targparm.adb, targparm.ads,
35614 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
35615 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
35616 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
35617 ttypef.ads, ttypes.ads, types.adb, types.ads,
35618 uintp.adb, uintp.ads, uname.adb, uname.ads,
35619 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
35620 usage.adb, usage.ads, validsw.adb, validsw.ads,
35621 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
35622 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
35623 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
35624 formatting and other trivial changes from ACT.
35626 2003-04-12 Zack Weinberg <zack@codesourcery.com>
35628 * gigi.h, utils2.c (build_constructor):
35629 Rename gnat_build_constructor. Use build_constructor.
35630 * decl.c (gnat_to_gnu_entity)
35631 * trans.c (tree_transform, pos_to_constructor, extract_values)
35632 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
35633 (unchecked_convert)
35634 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
35635 (fill_vms_descriptor):
35638 2003-04-06 Zack Weinberg <zack@codesourcery.com>
35640 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
35641 * misc.c (gnat_tree_size): New function.
35642 (LANG_HOOKS_TREE_SIZE): Override.
35644 2003-04-03 Jason Merrill <jason@redhat.com>
35646 * misc.c (gnat_adjust_rli): #if 0.
35648 2003-03-31 Geert Bosch <bosch@gnat.com>
35651 * link.c : Fix misspelled "const" keyword
35653 2003-03-23 Mark Mitchell <mark@codesourcery.com>
35656 * utils2.c: Adjust calls to put_var_into_stack.
35658 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
35660 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
35662 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
35664 * misc.c (gnat_init): Update for new prototype.
35666 2003-03-05 Olivier Hainque <hainque@gnat.com>
35669 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
35670 warning, and fix return type for the IN_RTS && !SJLJ case.
35672 2003-03-04 Tom Tromey <tromey@redhat.com>
35674 * Make-lang.in (ada.tags): New target.
35676 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
35679 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
35680 wrapper, which name remains constant whatever underlying GCC
35683 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
35684 the stable interface needed for a-except.
35686 2003-03-02 Andreas Jaeger <aj@suse.de>
35688 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35689 gnat_ug_wnt.texi: Regenerate.
35691 2003-03-02 Laurent Guerby <guerby@acm.org>
35693 * Makefile.in (install-gnatlib): Match previous change there
35696 2003-02-28 Andreas Schwab <schwab@suse.de>
35698 * Make-lang.in (install-gnatlib): Change to ada directory before
35699 running make instead of using ada/Makefile directly.
35701 2003-02-18 Ben Elliston <bje@redhat.com>
35703 Part of PR ada/9406
35704 * gnat_ug.texi (Binder output file): Grammar fix.
35706 2003-02-18 Ben Elliston <bje@redhat.com>
35709 * 5qtaprop.adb (Sleep): Fix typo in comment.
35711 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
35713 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
35714 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35715 gnat_ug_wnt.texi: Regenerate.
35717 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
35719 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
35720 be created if necessary.
35721 (ada.install-common): Let $(DESTDIR)$(bindir) be created
35722 if necessary. Remove erroneous and redundant gnatchop
35723 installation commands. Test for gnatdll before attempting
35725 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
35726 and gnatdll from all plausible locations.
35728 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
35730 * utils2.c (build_unary_op): Don't check flag_volatile.
35731 * gnat_ug.texi: Remove -fvolatile from example.
35732 * gnat_ug_vxw.texi: Likewise.
35734 2003-01-29 Laurent Guerby <guerby@acm.org>
35737 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
35738 * Makefile.in: match previous change.
35739 * Make-lang.in: match previous change.
35741 2003-01-29 Joel Sherrill <joel@OARcorp.com>
35743 * 5rosinte.ads: Add SIGXCPU.
35744 * 5rtpopsp.adb: New file.
35745 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
35746 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
35747 specific file 5rtpopsp.adb.
35748 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
35749 is likely needed for all newlib targets.
35750 * init.c: Add RTEMS specific version of __gnat_initialize().
35752 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35754 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
35756 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35758 * init.c (__gnat_error_handler): Make msg const.
35760 * gmem.c (convert_addresses): Move declaration ...
35761 * adaint.h: ... here.
35762 * adaint.c (convert_addresses): Adapt addrs type to match
35765 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
35767 2003-01-24 Andreas Schwab <schwab@suse.de>
35769 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
35770 size_t to avoid warning.
35772 2003-01-21 Zack Weinberg <zack@codesourcery.com>
35774 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
35776 2003-01-09 Geoffrey Keating <geoffk@apple.com>
35778 * gnat_rm.texi: Remove RCS version number.
35780 * ada-tree.h (union lang_tree_node): Add chain_next option.
35782 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
35784 * Make-lang.in (ada.install-info, ada.install-common,
35785 ada.uninstall): Prepend $(DESTDIR) to the destination
35786 directory in all (un)installation commands.
35787 * Makefile.in (install-gnatlib, install-rts): Ditto.
35789 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
35791 * gnat_rm.texi, gnat_ug.texi: Use @copying.
35792 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35793 gnat_ug_wnt.texi: Regenerate.
35795 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
35797 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
35799 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
35800 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
35801 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
35802 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
35803 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
35804 $(srcdir)/doc/include/gcc-common.texi.
35806 2002-12-15 Geert Bosch <bosch@gnat.com>
35808 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
35810 2002-12-14 Geert Bosch <bosch@gnat.com>
35813 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
35814 case of a body created for a Renaming_As_Body, on which
35815 conformance checks are not performed.
35817 2002-11-30 Zack Weinberg <zack@codesourcery.com>
35819 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
35820 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
35821 not already included.
35822 * Make-lang.in: Update dependencies.
35824 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
35825 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
35826 solution to buffer overflow bug on GNU/Linux.
35828 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
35832 * bindgen.adb: Remove all references to Public_Version.
35833 * comperr.adb: Remove all references to Public_Version and
35834 GNATPRO_Version; correct bug reporting instructions.
35835 * comperr.ads: Change to match bug box.
35836 * gnatvsn.ads: Remove all references to Public version and
35839 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
35842 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
35846 * config-lang.in: Remove diff_excludes.
35848 2002-11-05 Graham Stott <graham.stott@btinternet.com>
35851 * trans.c (gnu_pending_elaboration_lists): New GC root.
35852 (build_unit_elab): Use..
35854 2002-10-30 Geert Bosch <bosch@gnat.com>
35857 * misc.c : Include optabs.h
35859 * Make-lang.in (misc.o): Add dependency on optabs.h
35861 2002-10-29 Geert Bosch <bosch@gnat.com>
35864 * Make-lang.in (gnatbind): Depend on CONFIG_H
35866 2002-10-29 Geert bosch <bosch@gnat.com>
35869 * misc.c: Unrevert misc.c (1.13)
35871 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
35873 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
35874 maintainership comments.
35876 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
35879 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
35880 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
35881 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
35882 7staprop.adb: Correct statements in comments about
35883 maintainership of GNAT.
35886 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
35887 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
35888 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
35889 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
35890 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
35891 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
35892 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
35893 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
35894 comments about maintainership of GNAT.
35896 PR ada/6919 (forward port of patch for PR ada/5904)
35897 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
35898 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
35899 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
35900 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
35901 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
35902 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
35903 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
35904 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
35905 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
35906 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
35907 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
35908 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
35909 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
35910 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
35911 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
35912 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
35913 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
35914 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
35915 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
35916 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
35917 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
35918 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
35919 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
35920 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
35921 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
35922 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
35923 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
35924 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
35925 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
35926 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
35927 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
35928 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
35929 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
35930 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
35931 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
35932 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
35933 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
35934 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
35935 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
35936 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
35937 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
35938 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
35939 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
35940 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
35941 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
35942 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
35943 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
35944 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
35945 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
35946 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
35947 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
35948 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
35949 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
35950 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
35951 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
35952 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
35953 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
35954 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
35955 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
35956 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
35957 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
35958 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
35959 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
35960 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
35961 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
35962 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
35963 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
35964 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
35965 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
35966 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
35967 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
35968 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
35969 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
35970 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
35971 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
35972 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
35973 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
35974 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
35975 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
35976 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
35977 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
35978 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
35979 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
35980 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
35981 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
35982 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
35983 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
35984 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
35985 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
35986 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
35987 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
35988 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
35989 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
35990 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
35991 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
35992 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
35993 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
35994 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
35995 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
35996 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
35997 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
35998 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
35999 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
36000 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
36001 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
36002 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
36003 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
36004 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
36005 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
36006 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
36007 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
36008 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
36009 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
36010 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
36011 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
36012 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
36013 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
36014 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
36015 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
36016 par-endh.adb par-labl.adb par-load.adb par-prag.adb
36017 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
36018 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
36019 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
36020 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
36021 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
36022 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
36023 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
36024 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
36025 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
36026 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
36027 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
36028 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
36029 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
36030 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
36031 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
36032 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
36033 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
36034 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
36035 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
36036 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
36037 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
36038 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
36039 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
36040 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
36041 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
36042 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
36043 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
36044 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
36045 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
36046 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
36047 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
36048 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
36049 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
36050 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
36051 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
36052 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
36053 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
36054 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
36055 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
36056 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
36057 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
36058 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
36059 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
36060 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
36061 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
36062 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
36063 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
36064 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
36065 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
36066 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
36067 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
36068 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
36069 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
36070 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
36071 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
36072 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
36073 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
36074 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
36075 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
36076 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
36077 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
36078 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
36079 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
36080 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
36081 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
36082 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
36083 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
36084 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
36085 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
36086 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
36087 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
36088 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
36089 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
36090 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
36091 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
36092 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
36093 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
36094 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
36095 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
36096 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
36097 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
36098 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
36099 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
36100 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
36101 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
36102 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
36103 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
36104 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
36105 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
36106 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
36107 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
36108 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
36109 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
36110 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
36111 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
36112 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
36113 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
36114 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
36115 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
36116 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
36117 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
36118 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
36119 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
36120 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
36121 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
36122 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
36123 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
36124 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
36125 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
36126 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
36127 stringt.ads stringt.h style.adb style.ads stylesw.adb
36128 stylesw.ads switch.adb switch.ads sysdep.c system.ads
36129 table.adb table.ads targparm.adb targparm.ads targtyps.c
36130 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
36131 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
36132 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
36133 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
36134 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
36135 usage.ads utils.c utils2.c validsw.adb validsw.ads
36136 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
36137 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
36138 xtreeprs.adb: Correct statements in comments about maintainership
36141 2002-09-23 Zack Weinberg <zack@codesourcery.com>
36143 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
36144 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
36145 * gnatvsn.ads: Gnat_Version_String is now a function.
36146 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
36147 copy the C version_string into a String and return it.
36148 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
36149 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
36150 Remove pragma Ident (Gnat_Version_String). If this was the
36151 sole use of package Gnatvsn, remove the with statement too.
36152 * gnat1drv.adb: Tweak -gnatv output.
36154 2002-09-17 Richard Henderson <rth@redhat.com>
36156 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
36157 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
36158 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
36159 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
36160 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
36161 and real_2expN instead of a loop.
36162 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
36163 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
36165 2002-08-25 Andre Leis <a.leis@gmx.net>
36166 David Billinghurst <David.Billinghurst@riotinto.com>
36168 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
36170 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36172 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
36173 Remove $(CONFIG_H) dependency.
36175 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
36177 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
36179 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36181 * adadecode.c (ada_demangle): Use xstrdup in lieu of
36183 * misc.c (gnat_decode_option): Likewise.
36185 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
36187 * make.adb (Add_Switch): Make Generic_Position a procedure. The
36188 function approach did not work well because of a side effect (the
36189 function call could reallocate the table which was being indexed
36190 using its result). Fixes ada/4851. [RESURRECTED]
36192 2002-07-01 Roger Sayle <roger@eyesopen.com>
36194 * ada/utils.c (builtin_function): Accept an additional parameter.
36196 2002-06-28 Andreas Jaeger <aj@suse.de>
36199 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
36202 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36204 * Makefile.in (SHELL): Set to @SHELL@.
36206 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36208 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
36209 array size calculation.
36211 2002-06-04 Andreas Jaeger <aj@suse.de>
36213 * Make-lang.in (gnatbind): Readd rule that has been lost in last
36216 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
36218 Merge from pch-branch:
36220 * config-lang.in (gtfiles): Add ada-tree.h.
36221 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
36222 (SET_TYPE_MODULUS): New.
36223 (SET_TYPE_INDEX): New.
36224 (SET_TYPE_DIGITS_VALUE): New.
36225 (SET_TYPE_RM_SIZE): New.
36226 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
36227 (SET_TYPE_ADA_SIZE): New.
36228 (SET_TYPE_ACTUAL_BOUNDS): New.
36229 (SET_DECL_CONST_CORRESPONDING_VAR): New.
36230 (SET_DECL_ORIGINAL_FIELD): New.
36231 (TREE_LOOP_ID): Correct typo.
36232 * decl.c: Use new macros.
36233 * utils.c: Include debug.h, use new macros.
36234 * utils2.c: Use new macros.
36236 * ada-tree.h: Update all macros for new tree description.
36237 (struct tree_loop_id): New.
36238 (union lang_tree_node): New.
36239 (struct lang_decl): New.
36240 (struct lang_type): New.
36241 * misc.c (gnat_mark_tree): Delete.
36242 (LANG_HOOKS_MARK_TREE): Delete.
36243 * trans.c (tree_transform): No longer any need to cast
36246 * utils.c (struct language_function): New dummy structure.
36248 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
36249 (misc.o): Likewise.
36250 (utils.o): Likewise; also gtype-ada.h.
36251 * Make-lang.in (gnat1): Add dependency on s-gtype.
36252 (gnatbind): Add dependency on $(CONFIG_H).
36253 * utils.c: Correct last #include.
36254 (stuct e_stack): Remove unnecessary 'static'.
36255 (mark_e_stack): Remove unused prototype.
36257 * scn-nlit.adb: Remove whitespace after version number to
36258 keep lines under 80 chars.
36259 * snames.adb: Likewise.
36260 * treepr.ads: Likewise.
36262 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
36263 (misc.o): Likewise.
36264 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
36265 * config-lang.in (gtfiles): New.
36266 * decl.c: Use gengtype for roots.
36267 * gigi.h: Use gengtype for roots.
36268 * trans.c: Use gengtype for roots.
36269 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
36271 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
36273 * misc.c (gnat_init): Adjust setting of internal_error_function.
36275 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
36277 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
36278 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36279 gnat_ug_wnt.texi: Regenerate.
36281 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
36283 * 5ntaprop.adb (with System.OS_Primitives): Remove.
36285 * cstreams.c (max_path_len): Move from here ...
36286 * adaint.c (__gnat_max_path_len): ... to here.
36287 * adaint.c (__gnat_max_path_len): Declare.
36288 * g-dirope.adb (Max_Path): Adjust.
36289 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
36290 * i-cstrea.ads (max_path_len): Adjust.
36291 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
36292 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
36294 * Makefile.in, Make-lang.in: Documentation is now built in
36295 Make-lang.in. Store Info and generated Texinfo files in the
36297 * gnat_ug.texi: Remove CVS keywords, correct version number.
36298 Set file name correctly.
36300 * gnat_ug_*.texi: Add.
36301 * .cvsignore: Ignore generated Texinfo files.
36303 2002-05-30 Zack Weinberg <zack@codesourcery.com>
36305 * ada.h: Add MI guard macro.
36306 (SUBTYPE): Define constants with an anonymous enum, not static
36308 (IN): Cast constants to appropriate type before use.
36310 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
36312 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
36315 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36317 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
36318 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
36319 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
36320 (ALL_ADA_CFLAGS): Likewise.
36321 (ADA_INCLUDES): Likewise.
36322 Adapt for new working dir.
36323 (GNATBIND): Use Makefile.in version.
36324 (.SUFFIXES): Copy from Makefile.in.
36325 (ada-warn): Define.
36326 (.adb.o, .ads.o): Copy from Makefile.in.
36327 Added $(OUTPUT_OPTION).
36328 (GNAT1_C_OBJS): Moved from Makefile.in.
36329 Prefix with ada subdir.
36330 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
36331 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
36332 Adapt for new working dir.
36333 (EXTRA_GNATBIND_OBJS): Likewise.
36334 (ADA_BACKEND): Moved from Makefile.in.
36335 Renamed to avoid conflict with global BACKEND.
36337 (TARGET_ADA_SRCS): Moved from Makefile.in.
36338 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
36340 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
36341 (ada_extra_files): Moved from Makefile.in.
36342 Prefix with ada subdir.
36343 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
36344 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
36345 (ada/nmake.ads): Likewise.
36346 (update-sources): Moved from Makefile.in.
36347 Prefix with ada subdir.
36348 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
36349 (ADA_TREE_H): Likewise.
36350 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
36351 (ada/memtrack.o): Likewise.
36352 (ada/adadecode.o): Likewise.
36353 Update dependencies.
36354 (ada/adaint.o): New.
36355 (ada/argv.o): Moved from Makefile.in.
36356 Prefix with ada subdir.
36357 Update dependencies.
36358 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
36359 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
36360 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
36361 Prefix with ada subdir.
36362 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
36363 (GNAT DEPENDENCIES): Regenerate.
36364 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
36365 toplevel Makefile.in.
36366 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
36367 (TARGET_ADA_SRCS): Removed.
36368 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
36369 (GNATBIND_OBJS): Likewise.
36370 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
36371 (BACKEND): Removed.
36372 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
36373 (TREE_H): Likewise.
36374 (ada_extra_files): Likewise.
36375 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
36376 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
36377 (update-sources): Likewise.
36378 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
36379 (ADA_TREE_H): Likewise.
36380 (adadecoce.o): Likewise.
36381 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
36382 (GNAT DEPENDENCIES): Likewise.
36384 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36386 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
36387 * Makefile.in: Likewise.
36389 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36391 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
36392 Restore $(CONFIG_H) and prefix.o dependencies.
36393 (ada.stage[1-4]): Depend on stage?-start.
36395 * Makefile.in (b_gnatb.c): Depend on interfac.o.
36397 2002-05-02 Jim Wilson <wilson@redhat.com>
36399 * utils.c (finish_record_type): Change record_size to record_type.
36401 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
36403 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
36404 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
36405 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
36407 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
36409 * misc.c (gnat_parse_file): Update.
36411 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
36413 * misc.c (gnat_init): Don't set lang_attribute_common.
36415 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
36417 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
36419 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
36421 * gnat_ug.texi: New file.
36423 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
36424 instead of gfdl.texi
36426 * xgnatug.adb, ug_words: New files.
36428 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
36429 gnat_rm and gnat-style manuals.
36431 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
36433 * gigi.h (incomplete_type_error): Remove.
36434 * utils.c (incomplete_type_error): Remove.
36436 2002-04-16 Mark Mitchell <mark@codesourcery.com>
36438 * trans.c (tree_transform): Add has_scope argument to
36439 expand_start_stmt_expr.
36441 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
36443 * gigi.h (truthvalue_conversion): Rename.
36444 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
36445 * trans.c (tree_transform): Update.
36446 * utils2.c (truthvalue_conversion): Rename, update.
36447 (build_binary_op, build_unary_op): Update.
36449 2002-04-04 Laurent Guerby <guerby@acm.org>
36451 * make.adb: Implement -margs, remove restriction about file name placement.
36452 * makeusg.adb: Documentation update.
36453 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
36454 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
36456 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
36458 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
36459 (builtin_function): Similarly.
36461 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
36463 * decl.c (gnat_to_gnu_entity): Update.
36464 * gigi.h (mark_addressable): Rename.
36465 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
36466 * trans.c (tree_transform): Update.
36467 * utils.c (create_var_decl): Update.
36468 * util2.c (build_binary_op, build_unary_op,
36469 fill_vms_descriptor): Update.
36470 (mark_addressable): Rename, update.
36472 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
36474 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
36476 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
36477 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
36478 * trans.c (tree_transform, convert_with_check): Update.
36479 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
36482 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
36484 * gigi.h (finish_incomplete_decl): Rename.
36485 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
36486 * utils.c (gnat_init_decl_processing): Don't set hook.
36487 (finish_incomplete_decl): Rename.
36489 2002-03-29 Andreas Schwab <schwab@suse.de>
36491 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
36494 2001-03-28 Robert Dewar <dewar@gnat.com>
36497 (Remove_Checks): New procedure
36500 (Remove_Checks): New procedure
36503 Use new Duplicate_Subexpr functions
36504 (Duplicate_Subexpr_No_Checks): New procedure
36505 (Duplicate_Subexpr_No_Checks_Orig): New procedure
36506 (Duplicate_Subexpr): Restore original form (checks duplicated)
36507 (Duplicate_Subexpr): Call Remove_Checks
36510 (Duplicate_Subexpr_No_Checks): New procedure
36511 (Duplicate_Subexpr_No_Checks_Orig): New procedure
36512 Add 2002 to copyright notice
36514 * sem_util.adb: Use new Duplicate_Subexpr functions
36517 (Eval_Indexed_Component): This is the place to call
36518 Constant_Array_Ref and to replace the value. We simply merge
36519 the code of this function in here, since it is now no longer
36520 used elsewhere. This fixes the problem of the back end not
36521 realizing we were clever enough to see that this was
36523 (Expr_Val): Remove call to Constant_Array_Ref
36524 (Expr_Rep_Val): Remove call to Constant_Array_Ref
36526 (Constant_Array_Ref): Deal with string literals (patch
36527 suggested by Zack Weinberg on the gcc list)
36529 2001-03-28 Ed Schonberg <schonber@gnat.com>
36531 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
36532 Duplicate_Subexpr_Move_Checks.
36534 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
36535 Duplicate_Subexpr_Move_Checks.
36537 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
36538 value of array exists before retrieving it (it may a private
36539 protected component in a function).
36541 2002-03-28 Geert Bosch <bosch@gnat.com>
36543 * prj-pp.adb : New file.
36545 * prj-pp.ads : New file.
36547 2002-03-28 Andreas Jaeger <aj@suse.de>
36549 * Makefile.in (stamp-sdefault): Fix path for Makefile.
36551 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
36553 * misc.c (gnat_expand_expr): Move prototype.
36555 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36557 * misc.c (insert_default_attributes): Remove.
36559 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36561 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
36562 (gnat_init): Don't set hook.
36563 (gnat_expand_expr): Fix prototype.
36565 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36567 * misc.c (ggc_p): Remove.
36569 2002-03-27 Geert Bosch <bosch@gnat.com>
36571 * prj-makr.ads, prj-makr.adb : New files.
36573 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
36575 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
36576 (lang_mark_tree): Make static, rename.
36578 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
36580 * misc.c (maybe_build_cleanup): Remove.
36582 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
36584 * gigi.h (yyparse): Remove.
36586 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
36588 From Ben Brosgol <brosgol@gnat.com>
36589 * gnat_rm.texi: Sync with ACT version.
36591 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
36593 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
36594 (gnat_init): Remove old hook.
36596 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
36598 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
36599 (yyparse): Rename gnat_parse_file.
36601 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
36603 Delete all lines containing "$Revision:".
36604 * xeinfo.adb: Don't look for revision numbers.
36605 * xnmake.adb: Likewise.
36606 * xsinfo.adb: Likewise.
36607 * xsnames.adb: Likewise.
36608 * xtreeprs.adb: Likewise.
36610 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36612 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
36613 gnat_tree_code_name): Delete.
36614 (tree_code_type, tree_code_length, tree_code_name): Define.
36615 (gnat_init): Don't try to copy into the various tree_code
36618 2002-03-11 Richard Henderson <rth@redhat.com>
36620 * Makefile.in (.NOTPARALLEL): Add fake tag.
36622 2002-03-07 Geert Bosch <bosch@gnat.com>
36624 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
36625 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
36626 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
36627 switch-m.adb, switch-m.ads : New files.
36629 2002-03-07 Geert Bosch <bosch@gnat.com>
36631 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
36632 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
36633 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
36634 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
36635 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
36636 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
36637 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
36638 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
36639 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
36640 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
36641 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
36642 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
36643 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
36644 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
36645 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
36646 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
36647 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
36648 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
36649 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36650 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
36651 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
36652 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
36653 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
36654 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
36655 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
36656 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
36657 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
36658 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
36659 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
36660 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
36661 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
36662 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
36663 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
36664 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
36665 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36666 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
36667 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36668 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
36669 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
36670 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
36671 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
36672 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
36673 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
36674 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
36675 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
36676 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
36677 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
36678 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
36679 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
36680 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
36681 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
36682 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
36683 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
36684 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
36685 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
36686 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
36687 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
36688 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
36689 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
36690 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
36691 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
36692 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
36693 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
36694 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
36695 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
36696 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
36697 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
36698 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
36699 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
36700 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
36701 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
36702 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
36703 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
36704 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36705 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36706 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
36707 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
36708 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36709 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
36710 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36711 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
36712 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
36713 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
36714 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
36715 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
36716 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
36717 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
36718 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
36719 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
36720 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
36721 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
36722 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
36723 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
36724 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
36725 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
36726 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
36727 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
36729 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
36730 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
36731 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
36732 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
36734 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
36735 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
36737 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
36738 to mdll-fil.ad[bs] and mdll-util.ad[bs]
36740 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
36741 from mdllfile.ad[bs] and mdlltool.ad[bs]
36743 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36745 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
36746 lieu of explicit sizeof/sizeof.
36748 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
36750 * misc.c (copy_lang_decl): Remove.
36752 2002-02-27 Zack Weinberg <zack@codesourcery.com>
36754 * misc.c: Delete traditional-mode-related code copied from the
36755 C front end but not used, or used only to permit the compiler
36758 2002-02-07 Richard Henderson <rth@redhat.com>
36760 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
36761 * adaint.h (__gnat_to_gm_time): Update prototype.
36763 2002-01-30 Richard Henderson <rth@redhat.com>
36765 * trans.c (tree_transform) [N_Loop_Statement]: Use
36766 expand_exit_loop_top_cond.
36768 2001-12-23 Richard Henderson <rth@redhat.com>
36770 * utils.c (end_subprog_body): Push GC context around
36771 rest_of_compilation for nested functions.
36773 2001-12-23 Richard Henderson <rth@redhat.com>
36775 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
36777 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
36779 * gnat-style.texi (Declarations and Types): Remove ancient style
36780 rule which was mandated by code generation issues.
36782 * gnat-style.texi (header): Add @dircategory, @direntry.
36783 (title page): Remove date.
36784 (general) Add @./@: where approriate, and two spaces after the
36785 full stop at the end of a sentence. Use @samp markup when
36786 referring concrete lexical entities (keywords, attribute names
36787 etc.), and @syntax for ARM grammar elements. Use @r for English
36788 text in comments. Use @emph for emphasis. Change "if-statements"
36789 etc. to "if statements" (without @samp). Break long lines. Make
36790 casing of section names consistent.
36791 (Identifiers): Use @samp markup for variable names.
36792 (Comments): Use @samp markup for comment characters. Line-end
36793 comments may follow any Ada code, not just statements. Fix
36794 misspelling of "Integer" as "integer".
36795 (Loop statements): Do not use variable name "I", use "J".
36796 (Subprogram Declarations): Document alignment.
36797 (Subprogram Bodies, Block statements): Document empty line before
36800 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
36802 * make.adb (Add_Switch): Make Generic_Position a procedure. The
36803 function approach did not work well because of a side effect (the
36804 function call could reallocate the table which was being indexed
36805 using its result). Fixes ada/4851.
36807 2001-12-19 Robert Dewar <dewar@gnat.com>
36809 * bindgen.adb: Minor reformatting
36811 * cstand.adb: Minor reformatting
36813 * fmap.adb: Minor reformatting
36814 Change name from Add for Add_To_File_Map (Add is much too generic)
36815 Change Path_Name_Of to Mapped_Path_Name
36816 Change File_Name_Of to Mapped_File_Name
36817 Fix copyright dates in header
36820 Change name from Add for Add_To_File_Map (Add is much too generic)
36821 Change Path_Name_Of to Mapped_Path_Name
36822 Change File_Name_Of to Mapped_File_Name
36823 Fix copyright dates in header
36825 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
36826 Add use clause for Fmap.
36828 * make.adb: Minor reformatting
36830 * osint.adb: Minor reformatting. Change of names in Fmap.
36831 Add use clause for Fmap.
36833 * prj-env.adb: Minor reformatting
36835 * prj-env.ads: Minor reformatting
36837 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
36838 error found (there were odd exceptions to this general rule in
36839 -gnatec/-gnatem processing)
36841 2001-12-19 Olivier Hainque <hainque@gnat.com>
36843 * raise.c (__gnat_eh_personality): Exception handling personality
36844 routine for Ada. Still in rough state, inspired from the C++ version
36845 and still containing a bunch of debugging artifacts.
36846 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
36847 inspired from the C++ library.
36849 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
36850 exception handling integration.
36852 2001-12-19 Arnaud Charlet <charlet@gnat.com>
36854 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
36855 (HIE_SOURCES): Add s-secsta.ad{s,b}.
36856 (HIE_OBJS): Add s-fat*.o
36857 (RAVEN_SOURCES): Remove files that are no longer required. Add
36858 interrupt handling files.
36859 (RAVEN_MOD): Removed, no longer needed.
36861 2001-12-19 Robert Dewar <dewar@gnat.com>
36863 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
36864 Add 2001 to copyright date
36866 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
36867 need to force universal inlining for these cases.
36869 2001-12-19 Arnaud Charlet <charlet@gnat.com>
36871 * s-taprob.adb: Minor clean ups so that this unit can be used in
36874 * exp_ch7.adb: Allow use of secondary stack in HI mode.
36875 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
36877 2001-12-19 Vincent Celier <celier@gnat.com>
36879 * prj-tree.ads (Project_Node_Record): Add comments for components
36880 Pkg_Id and Case_Insensitive.
36882 2001-12-19 Pascal Obry <obry@gnat.com>
36884 * g-socket.adb: Minor reformatting. Found while reading code.
36886 2001-12-19 Robert Dewar <dewar@gnat.com>
36888 * prj-tree.ads: Minor reformatting
36890 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
36892 * config-lang.in (diff_excludes): Remove.
36894 2001-12-17 Ed Schonberg <schonber@gnat.com>
36896 * sem_res.adb (Resolve_Selected_Component): do not generate a
36897 discriminant check if the selected component is a component of
36898 the argument of an initialization procedure.
36900 * trans.c (tree_transform, case of arithmetic operators): If result
36901 type is private, the gnu_type is the base type of the full view,
36902 given that the full view itself may be a subtype.
36904 2001-12-17 Robert Dewar <dewar@gnat.com>
36906 * sem_res.adb: Minor reformatting
36908 * trans.c (tree_transform, case N_Real_Literal): Add missing third
36909 parameter in call to Machine (unknown horrible effects from this
36912 * urealp.h: Add definition of Round_Even for call to Machine
36913 Add third parameter for Machine
36915 2001-12-17 Ed Schonberg <schonber@gnat.com>
36917 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
36918 predefined units in No_Run_Time mode.
36920 2001-12-17 Richard Kenner <kenner@gnat.com>
36922 * misc.c (insn-codes.h): Now include.
36924 2001-12-17 Olivier Hainque <hainque@gnat.com>
36926 * a-except.adb: Preparation work for future integration of the GCC 3
36927 exception handling mechanism
36928 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
36929 to factorize previous code sequences and make them externally callable,
36930 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
36931 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
36932 Use the new notification routines.
36934 2001-12-17 Emmanuel Briot <briot@gnat.com>
36936 * prj-tree.ads (First_Choice_Of): Document the when others case
36938 2001-12-17 Arnaud Charlet <charlet@gnat.com>
36940 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
36941 HI-E mode, in order to support Ravenscar profile properly.
36943 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
36944 mode on 32 bits targets.
36946 2001-12-17 Vincent Celier <celier@gnat.com>
36948 * fmap.adb: Initial version.
36950 * fmap.ads: Initial version.
36952 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
36953 If search is successfully done, add to mapping.
36955 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
36958 (Gnatmake): Add new local variable Mapping_File_Name.
36959 Create mapping file when using project file(s).
36960 Delete mapping file before exiting.
36962 * opt.ads (Mapping_File_Name): New variable
36964 * osint.adb (Find_File): Use path name found in mapping, if any.
36966 * prj-env.adb (Create_Mapping_File): New procedure
36968 * prj-env.ads (Create_Mapping_File): New procedure.
36970 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
36973 * usage.adb: Add entry for new switch -gnatem.
36975 * Makefile.in: Add dependencies for fmap.o.
36977 2001-12-17 Ed Schonberg <schonber@gnat.com>
36979 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
36980 is a package instantiation rewritten as a package body.
36981 (Install_Withed_Unit): Undo previous change, now redundant.
36983 2001-12-17 Gary Dismuke <dismukes@gnat.com>
36986 (Compute_Length): Move conversion to Unsigned to callers.
36987 (Get_Max_Size): Convert Len expression to Unsigned after calls to
36988 Compute_Length and Determine_Range.
36989 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
36990 Compute_Length and Determine_Range.
36991 Above changes fix problem with length computation for supernull arrays
36992 where Max (Len, 0) wasn't getting applied due to the Unsigned
36993 conversion used by Compute_Length.
36995 2001-12-17 Arnaud Charlet <charlet@gnat.com>
36998 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
36999 System.Secondary_Stack.
37000 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
37002 Remove unused entity RE_Exception_Data.
37004 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
37006 * rident.ads (No_Secondary_Stack): New restriction.
37008 2001-12-17 Joel Brobecker <brobecke@gnat.com>
37010 * gnat_rm.texi: Fix minor typos. Found while reading the section
37011 regarding "Bit_Order Clauses" that was sent to a customer.
37012 Very interesting documentation!
37014 2001-12-17 Robert Dewar <dewar@gnat.com>
37016 * sem_case.adb (Choice_Image): Avoid creating improper character
37017 literal names by using the routine Set_Character_Literal_Name. This
37018 fixes bombs in certain error message cases.
37020 2001-12-17 Arnaud Charlet <charlet@gnat.com>
37022 * a-reatim.adb: Minor reformatting.
37024 2001-12-17 Ed Schonberg <schonber@gnat.com>
37026 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
37027 case where the formal is an extension of another formal in the current
37028 unit or in a parent generic unit.
37030 2001-12-17 Arnaud Charlet <charlet@gnat.com>
37032 * s-tposen.adb: Update comments. Minor reformatting.
37033 Minor code clean up.
37035 * s-tarest.adb: Update comments. Minor code reorganization.
37037 2001-12-17 Gary Dismukes <dismukes@gnat.com>
37039 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
37042 2001-12-17 Robert Dewa <dewar@gnat.com>
37044 * exp_attr.adb: Minor reformatting
37046 2001-12-17 Ed Schonberg <schonber@gnat.com>
37048 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
37049 derivations nested within a child unit: verify that the parent
37050 type is declared in an outer scope.
37052 2001-12-17 Robert Dewar <dewar@gnat.com>
37054 * sem_ch12.adb: Minor reformatting
37056 2001-12-17 Ed Schonberg <schonber@gnat.com>
37058 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
37059 warning if current unit is a predefined one, from which bodies may
37062 2001-12-17 Robert Dewar <dewar@gnat.com>
37064 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
37065 Fix header format. Add 2001 to copyright date.
37067 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
37068 which caused CE during compilation if checks were enabled.
37070 2001-12-17 Vincent Celier <celier@gnat.com>
37073 (Switches_Of): New function
37074 (Test_If_Relative_Path): New procedure
37075 (Add_Switches): Use new function Switches_Of
37076 (Collect_Arguments_And_Compile): Use new function Switches_Of.
37077 When using a project file, test if there are any relative
37078 search path. Fail if there are any.
37079 (Gnatmake): Only add switches for the primary directory when not using
37080 a project file. When using a project file, change directory to the
37081 object directory of the main project file. When using a project file,
37082 test if there are any relative search path. Fail if there are any.
37083 When using a project file, fail if specified executable is relative
37084 path with directory information, and prepend executable, if not
37085 specified as an absolute path, with the exec directory. Make sure
37086 that only one -o switch is transmitted to the linker.
37088 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
37091 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
37092 when using a non standard naming scheme.
37093 (Check_Ada_Naming_Scheme): Make sure that error messages
37094 do not raise exceptions.
37095 (Is_Illegal_Append): Return True if there is no dot in the suffix.
37096 (Language_Independent_Check): Check the exec directory.
37098 * prj.adb (Project_Empty): Add new component Exec_Directory
37101 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
37102 (Project_Data): Add component Exec_Directory
37104 * snames.adb: Updated to match snames.ads revision 1.215
37106 * snames.ads: Added Exec_Dir
37108 2001-12-17 Robert Dewar <dewar@gnat.com>
37110 * make.adb: Minor reformatting
37112 * prj-nmsc.adb: Minor reformatting
37114 * snames.adb: Updated to match snames.ads
37116 * snames.ads: Alphebetize entries for project file
37118 2001-12-17 Ed Schonberg <schonber@gnat.com>
37120 * trans.c (process_freeze_entity): Do nothing if the entity is a
37121 subprogram that was already elaborated.
37123 2001-12-17 Richard Kenner <kenner@gnat.com>
37125 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
37126 and Esize if object is referenced via pointer.
37128 2001-12-17 Ed Schonberg <schonber@gnat.com>
37130 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
37131 is discrete before analyzing choices.
37133 2001-12-17 Joel Brobecker <brobecke@gnat.com>
37135 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
37136 containing the name of the Ada Main Program. This string is mainly
37137 intended for the debugger.
37138 (Gen_Output_File_C): Do the equivalent change when generating a C file.
37140 2001-12-17 Robert Dewar <dewar@gnat.com>
37142 * ali.adb: Set new Dummy_Entry field in dependency entry
37144 * ali.ads: Add Dummy_Entry field to source dependency table
37146 * bcheck.adb (Check_Consistency): Ignore dummy D lines
37148 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
37150 * lib-writ.ads: Document dummy D lines for missing files.
37152 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
37154 2001-12-17 Robert Dewar <dewar@gnat.com>
37156 * ali.adb: Type reference does not reset current file.
37158 * ali.adb: Recognize and scan renaming reference
37160 * ali.ads: Add spec for storing renaming references.
37162 * lib-xref.ads: Add documentation for handling of renaming references
37164 * lib-xref.adb: Implement output of renaming reference.
37167 (Determine_Range): Document local variables
37168 (Determine_Range): Make sure Hbound is initialized. It looks as though
37169 there could be a real problem here with an uninitialized reference
37170 to Hbound, but no actual example of failure has been found.
37172 2001-12-17 Laurent Pautet <pautet@gnat.com>
37175 Fix comment of Shutdown_Socket and Close_Socket. These functions
37176 should not fail silently because if they are called twice, this
37177 probably means that there is a race condition in the user program.
37178 Anyway, this behaviour is consistent with the rest of this unit.
37179 When an error occurs, an exception is raised with the error message
37180 as exception message.
37182 2001-12-17 Robert Dewar <dewar@gnat.com>
37184 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
37185 that it happens before modification of Sloc values for -gnatD.
37187 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
37188 so that it happens before modification of Sloc values for -gnatD.
37190 * switch.adb: Minor reformatting
37192 2001-12-15 Richard Henderson <rth@redhat.com>
37194 * sem_ch7.adb: Wrap comment.
37196 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
37198 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
37199 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
37200 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
37201 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
37202 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
37203 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
37204 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
37205 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
37206 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
37207 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
37208 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
37209 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
37210 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
37211 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
37212 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
37213 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
37214 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
37215 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
37216 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
37217 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
37218 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
37219 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
37220 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
37221 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
37224 2001-12-14 Vincent Celier <celier@gnat.com>
37226 * osint.adb(Create_Debug_File): When an object file is specified,
37227 put the .dg file in the same directory as the object file.
37229 2001-12-14 Robert Dewar <dewar@gnat.com>
37231 * osint.adb: Minor reformatting
37233 * lib-xref.adb (Output_Instantiation): New procedure to generate
37234 instantiation references.
37236 * lib-xref.ads: Add documentation of handling of generic references.
37238 * ali.adb (Read_Instantiation_Ref): New procedure to read
37239 instantiation references
37241 * ali.ads: Add spec for storing instantiation references
37243 * bindusg.adb: Minor reformatting
37245 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37247 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37249 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37251 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37255 Add 2001 to copyright date
37256 Add entry for Latin-5 (Cyrillic ISO-8859-5)
37258 2001-12-14 Matt Gingell <gingell@gnat.com>
37260 * adaint.c: mktemp is a macro on Lynx and can not be used as an
37263 2001-12-14 Richard Kenner <kenner@gnat.com>
37265 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
37266 if operand is CONSTRUCTOR.
37268 2001-12-14 Ed Schonberg <schonber@gnat.com>
37270 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
37271 before emiting check on right-hand side, so that exception information
37274 2001-12-14 Richard Kenner <kenner@gnat.com>
37276 * utils.c (create_var_decl): Throw away initializing expression
37277 if just annotating types and non-constant.
37279 2001-12-14 Vincent Celier <celier@gnat.com>
37281 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
37284 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37286 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
37288 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37290 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
37292 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
37294 * ChangeLog: Remove piece of diff output.
37296 2001-12-14 Geert Bosch <bosch@gnat.com>
37298 * config-lang.in: Update copyright notice
37300 * layout.adb: Remove commented out code.
37302 * mdllfile.ads: Update copyright notice. Fix header format.
37304 * sem_case.ads: Likewise.
37306 * sem_ch3.adb: Minor reformatting.
37308 2001-12-12 Geert Bosch <bosch@gnat.com>
37310 * freeze.ads: Update copyright date.
37312 * g-comlin.ads: Minor reformatting.
37314 * gnat-style.texi: Fix typo.
37316 2001-12-12 Geert Bosch <bosch@gnat.com>
37318 * einfo.h: Regenerate.
37320 2001-12-12 Ed Schonberg <schonber@gnat.com>
37322 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
37323 on known node types, rather than untyped fields. Further cleanups.
37325 2001-12-12 Robert Dewar <dewar@gnat.com>
37328 (Save_Entity_Descendant): Minor comment update.
37329 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
37330 of an N_Attribute_Reference node. As per note below, this does not
37331 eliminate need for Associated_Node in attribute ref nodes.
37332 (Associated_Node): Documentation explicitly mentions attribute
37333 reference nodes, since this field is used in such nodes.
37335 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
37337 2001-12-12 Robert Dewar <dewar@gnat.com>
37339 * s-stalib.adb: Add more comments on with statements being needed
37341 * par-ch12.adb: Minor reformatting
37343 * prj-dect.ads: Fix copyright header
37345 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
37346 inputs fit in 32 bits, but the result still overflows.
37348 * s-fatgen.ads: Minor comment improvement
37350 2001-12-12 Ed Schonberg <schonber@gnat.com>
37352 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
37353 formal derived type, look for an inherited component from the full
37354 view of the parent, if any.
37356 2001-12-12 Robert Dewar <dewar@gnat.com>
37358 * checks.ads (Apply_Alignment_Check): New procedure.
37360 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
37361 ensure that the alignment of objects with address clauses is
37362 appropriate, and raise PE if not.
37364 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
37365 Exp_Pakd.Known_Aligned_Enough
37367 * mdllfile.ads: Minor reformatting
37369 * mlib-fil.ads: Minor reformatting
37371 2001-12-12 Ed Schonberg <schonber@gnat.com>
37373 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
37374 fix to any component reference if enclosing record has non-standard
37377 2001-12-12 Vincent Celier <celier@gnat.com>
37379 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
37382 2001-12-12 Ed Schonberg <schonber@gnat.com>
37384 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
37387 2001-12-12 Robert Dewar <dewar@gnat.com>
37389 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
37391 2001-12-12 Emmanuel Briot <briot@gnat.com>
37393 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
37394 and it adds dependencies to system.io.
37396 2001-12-12 Pascal Obry <obry@gnat.com>
37398 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
37401 2001-12-11 Ed Schonberg <schonber@gnat.com>
37403 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
37404 that is the parent of other generics, the instance body replaces the
37405 instance node. Retrieve the instance of the spec, which is the one
37406 that is visible in clients and within the body.
37408 2001-12-11 Vincent Celier <celier@gnat.com>
37410 * gnatmain.adb: Initial version.
37412 * gnatmain.ads: Initial version.
37414 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
37416 * snames.adb: Updated to match snames.ads.
37418 * snames.ads: Added Gnatstub.
37420 2001-12-11 Vincent Celier <celier@gnat.com>
37422 * prj-attr.adb (Initialization_Data): Change name from
37423 Initialisation_Data.
37425 2001-12-11 Emmanuel Briot <briot@gnat.com>
37427 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
37428 + and * applied to backslashed expressions like \r.
37430 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
37432 * g-os_lib.ads: String_List type added, Argument_List type is now
37433 subtype of String_List.
37435 2001-12-11 Robert Dewar <dewar@gnat.com>
37437 * g-os_lib.ads: Change copyright to FSF
37438 Add comments for String_List type
37440 2001-12-11 Vincent Celier <celier@gnat.com>
37442 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
37443 string to the buffer).
37445 2001-12-11 Ed Schonberg <schonber@gnat.com>
37447 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
37450 * sem_attr.adb: Simplify previous fix for Address.
37451 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
37452 to avoid anomalies where the bound of the type appears to raise
37455 2001-12-11 Robert Dewar <dewar@gnat.com>
37457 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
37460 2001-12-11 Ed Schonber <schonber@gnat.com>
37462 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
37463 renamed unit before checking for recursive instantiations.
37465 2001-12-11 Emmanuel Briot <briot@gnat.com>
37467 * prj.ads: Add comments for some of the fields.
37469 2001-12-11 Robert Dewar <dewar@gnat.com>
37471 * lib-xref.adb (Output_Refs): Don't output type references outside
37472 the main unit if they are not otherwise referenced.
37474 2001-12-11 Ed Schonberg <schonber@gnat.com>
37476 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
37477 code and diagnose additional illegal uses
37479 * sem_util.adb (Is_Object_Reference): An indexed component is an
37480 object only if the prefix is.
37482 2001-12-11 Vincent Celier <celier@gnat.com>
37484 * g-diopit.adb: Initial version.
37486 * g-diopit.ads: Initial version.
37489 (Expand_Path): Avoid use of Unbounded_String
37490 (Find, Wildcard_Iterator): Moved to child package Iteration
37492 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
37494 2001-12-11 Robert Dewar <dewar@gnat.com>
37496 * sem_attr.adb: Minor reformatting
37498 2001-12-11 Ed Schonberg <schonber@gnat.com>
37500 * sem_ch3.adb: Clarify some ???.
37502 2001-12-11 Robert Dewar <dewar@gnat.com>
37504 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
37505 Exp_Pakd.Known_Aligned_Enough
37507 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
37508 version is moved to Exp_Ch13.
37510 2001-12-11 Robert Dewar <dewar@gnat.com>
37512 * einfo.ads: Minor reformatting
37514 * exp_ch5.adb: Add comment for previous.change
37516 * ali.adb: New interface for extended typeref stuff.
37518 * ali.ads: New interface for typeref stuff.
37520 * checks.adb (Apply_Alignment_Check): New procedure.
37522 * debug.adb: Add -gnatdM for modified ALI output
37524 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
37526 * lib-xref.adb: Extend generation of <..> notation to cover
37527 subtype/object types. Note that this is a complete rewrite,
37528 getting rid of the very nasty quadratic algorithm previously
37529 used for derived type output.
37531 * lib-xref.ads: Extend description of <..> notation to cover
37532 subtype/object types. Uses {..} for these other cases.
37533 Also use (..) for pointer types.
37535 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
37537 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
37538 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
37540 2001-12-11 Vincent Celier <celier@gnat.com>
37543 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
37544 Changed /BIND_ONLY to /ACTIONS=BIND
37545 Changed /LINK_ONLY to /ACTIONS=LINK
37547 2001-12-11 Ed Schonberg <schonber@gnat.com>
37549 * sem_ch8.adb (Find_Selected_Component): improved search for a
37550 candidate package in case of error.
37552 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
37553 chain back on scope stack before reinstalling use clauses.
37555 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
37556 is enabled, do not kill the code for the condition, to preserve
37559 2001-12-11 Robert Dewar <dewar@gnat.com>
37561 * checks.adb (Insert_Valid_Check): Apply validity check to expression
37562 of conversion, not to result of conversion.
37564 2001-12-11 Ed Schonberg <schonber@gnat.com>
37566 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
37567 before freezing parent. If the declarations are mutually recursive,
37568 an access to the current record type may be frozen before the
37569 derivation is complete.
37571 2001-12-05 Vincent Celier <celier@gnat.com>
37573 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
37574 -c /COMPILE_ONLY, -l /LINK_ONLY
37577 (Bind_Only): New Flag
37578 (Link_Only): New flag
37580 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
37583 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
37586 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
37587 (Gnatmake): Set the step flags. Only perform a step if the
37588 corresponding step flag is True.
37589 (Scan_Make_Arg): Reset the bind and link step flags when -u
37590 or -gnatc has been specified.
37592 2001-12-05 Ed Schonberg <schonber@gnat.com>
37594 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
37595 get bounds from right operand.
37597 * sem_eval.adb: Minor reformatting
37599 * exp_util.adb (Make_Literal_Range): use bound of literal rather
37600 than Index'First, its lower bound may be different from 1.
37602 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
37605 2001-12-05 Vincent Celier <celier@gnat.com>
37607 * prj-nmsc.adb Minor reformatting
37609 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
37610 set and libraries are not supported.
37612 2001-12-05 Ed Schonberg <schonber@gnat.com>
37614 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
37615 private view explicitly, so the back-end can treat as a global
37618 2001-12-05 Ed Schonberg <schonber@gnat.com>
37620 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
37621 unit, always replace instance node with new body, for ASIS use.
37623 2001-12-05 Vincent Celier <celier@gnat.com>
37625 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
37626 libraries are not supported and both attributes Library_Name and
37627 Library_Dir are specified.
37629 * prj-proc.adb (Expression): Set location of Result to location of
37632 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
37633 (prj-nmsc is now importing MLib.Tgt)
37635 * prj-proc.adb: Put the change indicated above that was forgotten.
37637 2001-12-05 Robert Dewar <dewar@gnat.com>
37639 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
37641 2001-12-05 Ed Schonberg <schonber@gnat.com>
37643 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
37644 constraint, introduce explicit subtype declaration and derive from it.
37646 * sem_ch3.adb: Minor reformatting
37648 2001-12-05 Robert Dewar <dewar@gnat.com>
37650 * checks.adb (Determine_Range): Increase cache size for checks.
37653 * exp_ch6.adb: Minor reformatting
37654 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
37655 a parameter whose root type is System.Address, since treating such
37656 subprograms as pure in the code generator is almost surely a mistake
37657 that will lead to unexpected results.
37659 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
37660 change handling of conversions.
37662 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
37664 2001-12-05 Ed Schonberg <schonber@gnat.com>
37666 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
37667 aggregate with static wrong size, attach generated Raise node to
37670 2001-12-05 Robert Dewar <dewar@gnat.com>
37672 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
37673 Fixes compilation abandoned bomb in B24009B.
37675 2001-12-05 Ed Schonberg <schonber@gnat.com>
37678 Document use of Associated_Node on Selected_Components.
37679 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
37680 to clarify use of untyped descendant fields.
37682 2001-12-05 Robert Dewar <dewar@gnat.com>
37684 * prj-dect.ads: Add ??? comment
37685 Add 2001 to copyright notice (was not done in after all)
37687 * prj-part.adb: Minor reformatting. Reword one awkward error message.
37689 * prj.ads: Minor reformatting throughout, and add some ??? comments
37691 * snames.ads: Minor reformatting
37693 2001-12-05 Geert Bosch <bosch@gnat.com>
37695 * snames.adb: Autoupdate
37697 2001-12-05 Vincent Celier <celier@gnat.com>
37699 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
37701 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
37703 * prj-env.adb: Minor comment changes (modifying -> extends).
37705 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
37707 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
37710 * prj.adb (Initialize): Change Modifying to Extends.
37712 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
37714 * prj.ads: Minor comment change (Modifying -> extending).
37716 * snames.ads: Change modifying to extends.
37718 2001-12-05 Robert Dewar <dewar@gnat.com>
37720 * sem_warn.adb: Remove stuff for conditionals, we are not going to
37723 * sem_warn.ads: Remove stuff for conditionals, we are not going to
37724 do this after all. Add 2001 to copyright notice
37726 2001-12-04 Geert Bosch <bosch@gnat.com>
37728 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
37730 2001-12-04 Robert Dewar <dewar@gnat.com>
37732 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
37733 location if we already have errors. Stops some cases of cascaded
37736 * errout.adb: Improve comment.
37738 2001-12-04 Robert Dewar <dewar@gnat.com>
37741 (Analyze_Formal_Type_Definition): Defend against Error.
37742 (Analyze_Formal_Subprogram): Defend against Error.
37744 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
37745 remove following semicolon if present. Removes cascaded error.
37747 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
37750 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
37751 exceptions equals 0.
37752 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
37753 Fixes PIWG E tests (which have to be run with -gnatL).
37755 2001-12-04 Robert Dewar <dewar@gnat.com>
37757 * einfo.ads: Minor reformatting
37759 2001-12-04 Ed Schonberg <schonber@gnat.com>
37761 * einfo.ads: Block_Node points to the identifier of the block, not to
37762 the block node itself, to preserve the link when the block is
37763 rewritten, e.g. within an if-statement with a static condition.
37765 * inline.adb (Cleanup_Scopes): recover block statement from block
37766 entity using new meaning of Block_Node.
37768 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
37769 identifier of block node, rather than to node itself.
37771 2001-12-04 Gary Dismukes <dismukes@gnat.com>
37774 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
37775 (Discrimify): Go back to setting the Etypes of the selected component
37776 because the Vname component does not exist at this point and will
37777 fail name resolution. Also set Analyzed.
37778 Remove with and use of Sem_Res.
37780 2001-12-04 Arnaud Charlet <charlet@gnat.com>
37782 * Makefile.in: (HIE_SOURCES): add s-fat*.
37784 2001-12-04 Robert Dewar <dewar@gnat.com>
37787 (Compile_Time_Known_Attribute): New procedure.
37788 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
37789 proper range check.
37791 2001-12-04 Ed Schonberg <schonber@gnat.com>
37793 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
37794 processing discriminants to diagnose illegal default values.
37796 2001-12-04 Ed Schonberg <schonber@gnat.com>
37798 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
37799 access discriminant within a type extension that constrains its
37800 parent discriminants.
37802 2001-12-04 Ed Schonberg <schonber@gnat.com>
37804 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
37805 is malformed, use instance of Any_Id to allow analysis to proceed.
37807 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
37808 type definition is illegal.
37809 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
37812 2001-12-04 Ed Schonberg <schonber@gnat.com>
37814 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
37817 2001-12-04 Robert Dewar <dewar@gnat.com>
37819 * errout.adb: Minor reformatting
37821 2001-12-04 Robert Dewar <dewar@gnat.com>
37823 * exp_util.adb: Minor reformatting from last change
37825 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
37826 which is a rewriting of an expression, traverse the original
37827 expression to remove warnings that may have been posted on it.
37829 2001-12-04 Ed Schonberg <schonber@gnat.com>
37831 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
37832 record that has other packed components.
37834 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
37836 * adaint.c: Minor cleanups.
37838 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
37840 * adaint.c: Do not use utime.h on vxworks.
37842 2001-12-04 Arnaud Charlet <charlet@gnat.com>
37844 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
37845 more confusion than it solves.
37847 2001-12-04 Geert bosch <bosch@gnat.com>
37849 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
37851 2001-12-04 Geert Bosch <bosch@gnat.com>
37853 * Makefile.in (update-sources): New target.
37854 For use by gcc_release script.
37856 2001-12-04 Ed Schonberg <schonber@gnat.com>
37858 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
37859 a configuration pragma, it is now legal wherever a pragma can appear.
37861 2001-12-04 Zack Weinberg <zack@codesourcery.com>
37863 * Makefile.in: Don't set ALL. Delete @cross_defines@,
37864 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
37865 is now @CROSS@ -DIN_GCC; update comment.
37867 2001-12-04 Robert Dewar <dewar@gnat.com>
37869 * einfo.adb (Has_Pragma_Pure_Function): New flag.
37870 Fix problem that stopped ceinfo from working
37872 * einfo.ads (Has_Pragma_Pure_Function): New flag.
37874 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
37876 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
37879 (File_Time_Stamp): New procedure.
37880 (Preserve_Mode): New boolean.
37881 (Write_Unit): Pass time stamp.
37882 Implement -p switch (preserve time stamps).
37884 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
37886 * gnatchop.adb: Do usage info for -p switch
37888 * adaint.h (__gnat_set_file_time_name): New function
37890 * adaint.c (__gnat_set_file_time_name): Implement
37892 * adaint.h: Fix typo
37894 2001-12-03 Robert Dewar <dewar@gnat.com>
37896 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
37897 have Associated_Node.
37899 2001-12-03 Robert Dewar <dewar@gnat.com>
37901 * prj-proc.adb: Minor reformatting
37903 * make.adb: Minor reformatting
37905 2001-12-03 Geert Bosch <bosch@gnat.com>
37907 * make.adb: Minor reformatting.
37909 2001-12-03 Robert Dewar <dewar@gnat.com>
37911 * sem_ch12.adb: Minor reformatting
37913 2001-12-03 Ed Schonberg <schonber@gnat.com>
37915 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
37916 push Standard on the stack before analyzing the instance body,
37917 in order to have a clean visibility environment.
37919 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
37921 2001-12-03 Ed Schonberg <schonber@gnat.com>
37923 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
37924 instantiation of a body that contains an inlined body.
37926 2001-12-03 Ed Schonberg <schonber@gnat.com>
37929 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
37930 to prevent freezing within formal packages.
37931 (Freeze_Subprogram_Body): If body comes from another instance that
37932 appeared before its own body, place freeze node at end of current
37933 declarative part, to prevent a back-end crash.
37934 (Inline_Instance_Body): Handle properly a package instance within
37935 a subprogram instance that is a child unit.
37937 2001-12-01 Graham Stott <grahams@redhat.com>
37939 * Makefile.in (misc.o): Add missing $(srcdir) prefix
37940 and add optabs.h dependency.
37942 * misc.c: Include optabs.h
37943 (gnat_tree_code_type): Make static and const.
37944 (gnat_tree_code_length): Likewise.
37945 (gnat_tree_code_name): Likewise.
37946 (update_setjmp_buf): Obtain operands mode from insn_data.
37948 2001-11-29 Richard Henderson <rth@redhat.com>
37950 * init.c: Remove obsolete dwarf2 frame.h section.
37952 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
37954 * Make-lang.in (ada.generated-manpages): New dummy target.
37956 2001-11-29 Ed Schonberg <schonber@gnat.com>
37958 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
37959 into Command, an array conversion is illegal here. Uncovered by
37962 2001-11-28 Geert Bosch <bosch@gnat.com>
37964 * init.c: Minor whitespace changes.
37966 2001-11-28 Doug Rupp <rupp@gnat.com>
37968 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
37971 2001-11-28 Zack Weinberg <zack@codesourcery.com>
37973 * misc.c (gnat_expand_constant): Move declaration above
37974 definition of lang_hooks.
37975 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
37976 (gnat_init): lang_expand_constant no longer exists.
37978 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
37979 always have vprintf.
37980 (gnat_init): Always call set_internal_error_function.
37982 2001-11-27 Andreas Jaeger <aj@suse.de>
37984 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
37986 2001-11-27 Laurent Guerby <guerby@acm.org>
37988 * Makefile.in: Regenerate Ada dependencies.
37990 2001-11-26 Richard Henderson <rth@redhat.com>
37992 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
37993 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
37994 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
37996 2001-11-25 Laurent Guerby <guerby@acm.org>
37998 * sysdep.c (rts_get_*): Fix style.
38000 2001-11-19 Laurent Guerby <guerby@acm.org>
38002 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
38003 since it is of no apparent use and cause warnings.
38005 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
38007 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
38009 (gnat_init): Don't return NULL.
38010 (finish_parse): Remove.
38012 2001-11-17 Laurent Guerby <guerby@acm.org>
38014 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
38015 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
38016 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
38017 * lang-spec.h: Add missing struct field to silence warnings.
38018 * sysdep.c (rts_get_*): Provide K&R prototype.
38019 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
38020 * traceback.c (Unlock_Task, Lock_Task): Likewise.
38021 * tracebak.c (__gnat_backtrace): Remove unused variable.
38022 * utils.c (end_subprog_body): Move to K&R style.
38024 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38026 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
38028 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
38030 * misc.c (gnat_init): Change prototype. Include the
38031 functionality of the old init_parse and init_decl_processing.
38032 (gnat_init_decl_processing): New prototype.
38033 (init_parse): Remove.
38034 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
38036 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
38038 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
38039 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
38040 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
38041 set_yydebug): Remove.
38043 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
38045 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
38046 (struct lang_hooks): Constify.
38047 (language_string, lang_identify): Remove.
38048 * utils.c (init_decl_processing): Update.
38050 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
38052 * misc.c: Include langhooks-def.h.
38053 * Makefile.in: Update.
38055 2001-10-30 Robert Dewar <dewar@gnat.com>
38058 (Check_Identifier): Rewrite circuit to be compatible with use of letters
38059 in the upper half of ASCII.
38060 (Check_Identifier): Minor reformatting
38062 2001-10-30 Geert Bosch <bosch@gnat.com>
38064 * (Associated_Node, Set_Associated_Node): Do not check for
38067 2001-10-30 Robert Dewar <dewar@gnat.com>
38069 * a-reatim.ads: Minor reformatting
38071 2001-10-30 Robert Dewar <dewar@gnat.com>
38073 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
38074 undocumented declarations.
38076 2001-10-30 Pascal Obry <obry@gnat.com>
38078 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
38079 to the binder and linker.
38082 * mdll.ads: Fix layout. Update copyright notice.
38084 * mdll.adb: Fix layout. Update copyright notice.
38086 2001-10-30 Robert Dewar <dewar@gnat.com>
38088 * usage.adb: Minor fix to output for -gnaty.
38090 2001-10-30 Ed Schonberg <schonber@gnat.com>
38092 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
38093 to accommodate all its possible values.
38095 * a-reatim.adb (Split): Special-case handling of Time_Span_First
38096 and of small absolute values of T.
38098 2001-10-30 Richard Kenner <kenner@gnat.com>
38100 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
38101 set_mem_attributes since not needed and wrong if RESULT if a REG;
38102 fixes ACATS failures.
38104 2001-10-30 Geert Bosch <bosch@gnat.com>
38106 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
38107 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
38109 2001-10-30 Robert Dewar <dewar@gnat.com>
38111 * bindusg.adb: Undocument -f switch.
38113 * gnatcmd.adb: Remove /FULL_ELABORATION.
38115 * opt.ads (Force_RM_Elaboration_Order): Document that this is
38118 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
38120 * gnatbind.adb: Minor update of warning msg.
38122 2001-10-30 Vincent Celier <celier@gnat.com>
38124 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
38125 for project file switches (-P (/PROJECT_FILE=),
38126 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
38129 2001-10-30 Geert Bosch <bosch@gnat.com>
38131 * decl.c: Minor whitespace fixes.
38133 2001-10-30 Richard Kenner <kenner@gnat.com>
38135 * utils2.c (build_allocator): Test for SIZE overflow in array case too
38137 2001-10-30 Geert Bosch <bosch@gnat.com>
38139 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
38140 Found due to GCC 3.0 warning of using uninitialized value.
38143 (Get_Max_Size): Use variant record for tracking value/expression.
38144 Makes logic clearer and prevents warnings for uninitialized variables.
38145 (Layout_Array_Type): Use variant record for tracking value/expression.
38146 Makes logic clearer and prevents warnings for uninitialized variables.
38148 2001-10-30 Robert Dewar <dewar@gnat.com>
38150 * lib.adb: Minor reformatting
38152 * s-taprop.ads: Minor reformatting
38154 2001-10-29 Laurent Guerby <guerby@acm.org>
38157 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
38159 (_gnat_error_handler): Make MSG const.
38161 2001-10-29 Richard Kenner <kenner@gnat.com>
38163 * sysdep.c: Fix localtime_r problem on LynxOS.
38164 Also remove #elif to avoid warnings.
38166 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
38169 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
38171 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
38173 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
38174 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
38175 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
38176 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
38177 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
38178 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
38179 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
38180 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
38181 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
38182 types.ads, urealp.adb: Fix spelling errors.
38184 2001-10-27 Laurent Guerby <guerby@acm.org>
38186 * trans.c (gigi): Fix non determinism leading to bootstrap
38187 comparison failures for debugging information.
38189 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
38191 * gnat_rm.texi: Use @./@: where appropriate.
38193 2001-10-26 Robert Dewar <dewar@gnat.com>
38195 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
38197 2001-10-26 Richard Kenner <kenner@gnat.com>
38199 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
38201 2001-10-26 Richard Kenner <kenner@gnat.com>
38203 * decl.c (validate_size): Modify message for bad size to avoid
38204 implication that compiler is modifying the size.
38206 2001-10-26 Robert Dewar <dewar@gnat.com>
38208 * prj-util.adb: Minor reformatting. Fix bad header format.
38210 2001-10-26 Robert Dewar <dewar@gnat.com>
38212 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
38214 * sinfo.ads: Clarify use of Associated_Node (documentation only).
38216 * sem_ch12.adb: Change Node4 to Associated_Node. Change
38217 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
38218 much more narrowly in places where needed. These are cleanups.
38220 2001-10-26 Joel Brobecker <brobecke@gnat.com>
38222 * 5zosinte.ads (null_pthread): new constant.
38225 (Initialize_TCB): Initialize thread ID to null, to be able to verify
38226 later that this field has been set.
38227 (Finalize_TCB): ditto.
38228 (Suspend_Task): Verify that the thread ID is not null before using it.
38229 (Resume_Task): ditto.
38232 (Resume_All_Tasks): Lock the tasks list before using it.
38233 (Suspend_All_Tasks): ditto.
38235 2001-10-26 Richard Kenner <kenner@gnat.com>
38237 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
38238 Make constant variant of designated type for Is_Access_Constant.
38239 Call update_pointer_to with main variant.
38241 * trans.c (process_freeze_entity, process_type):
38242 Call update_pointer_to on main variant.
38244 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
38245 If main variant, update all other variants.
38247 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
38250 2001-10-26 Robert Dewar <dewar@gnat.com>
38252 * prj-util.adb: Minor reformatting
38254 2001-10-26 Robert Dewar <dewar@gnat.com>
38256 * prj-util.adb: Minor reformatting
38258 2001-10-26 Robert Dewar <dewar@gnat.com>
38260 * prj-attr.adb: Minor reformatting throughout
38262 2001-10-26 Robert Dewar <dewar@gnat.com>
38264 * prj-attr.ads: Minor reformatting
38265 Add ??? comment (this whole spec has almost no comments)
38267 2001-10-26 Vincent Celier <celier@gnat.com>
38269 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
38270 ("//") that precede the drive letter on Interix.
38272 2001-10-26 Geert Bosch <bosch@gnat.com>
38274 * gnat_rm.texi: Add GNAT Reference Manual.
38276 2001-10-25 Robert Dewar <dewar@gnat.com>
38278 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
38279 is Error. Similar change for other renaming cases.
38281 2001-10-25 Robert Dewar <dewar@gnat.com>
38283 * s-atacco.ads: Add pragma Inline_Always for functions.
38284 Fix header format. Add copyright 2001
38286 2001-10-25 Ed Schonberg <schonber@gnat.com>
38288 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
38289 return Error rather than Empty so that analysis can proceed.
38291 2001-10-25 Ed Schonberg <schonber@gnat.com>
38293 * sem_util.adb (Enter_Name): better handling of cascaded error
38294 messages when a unit appears in its own context.
38296 2001-10-25 Ed Schonberg <schonber@gnat.com>
38298 * sem_util.adb (Defining_Entity): in case of error, attach created
38299 entity to specification, so that semantic analysis can proceed.
38301 2001-10-25 Robert Dewar <dewar@gnat.com>
38304 (Defining_Entity): Deal with Error.
38305 (Process_End_Label): Deal with bad end label for.
38307 2001-10-25 Ed Schonberg <schonber@gnat.com>
38309 * sem_elab.adb (Check_A_Call): refine message when call is in an
38310 instance but callee is not declared in the generic unit.
38312 2001-10-25 Ed Schonberg <schonber@gnat.com>
38314 * sem_elab.adb (Check_A_Call): check for renaming before finding the
38315 enclosing unit, which may already be different from the calling unit.
38317 2001-10-25 Geert Bosch <bosch@gnat.com>
38319 * 4gintnam.ads: fix header format.
38321 2001-10-25 Ed Schonberg <schonber@gnat.com>
38323 * sem_res.adb (Resolve_Call): if the call is actually an indexing
38324 operation on the result of a parameterless call, perform elaboration
38325 check after the node has been properly rewritten.
38327 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
38328 inlined within the generic tree, the defining identifier is not a
38331 2001-10-25 Ed Schonberg <schonber@gnat.com>
38333 * sem_res.adb (Resolve): special-case resolution of Null in an
38334 instance or an inlined body to avoid view conflicts.
38336 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
38337 compatibility by retrieving the access type of the generic copy.
38339 2001-10-25 Robert Dewar <dewar@gnat.com>
38342 (Analyze_Number_Declaration): Handle error expression.
38343 (Signed_Integer_Type_Declaration): Handle error bound.
38344 (Analyze_Subtype_Indication): Handle error range.
38346 * sem_util.adb (Get_Index_Bounds): Check for Error.
38348 2001-10-25 Robert Dewar <dewar@gnat.com>
38350 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
38351 in no run time mode.
38353 2001-10-25 Pascal Obry <obry@gnat.com>
38355 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
38356 mode case for ALLOC case.
38358 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
38359 all platforms. Improvement of last change.
38361 2001-10-25 Robert Dewar <dewar@gnat.com>
38363 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
38365 2001-10-25 Geert Bosch <bosch@gnat.com>
38367 * osint.adb (Is_Relative): Remove duplicate.
38369 2001-10-25 Pascal Obry <obry@gnat.com>
38371 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
38372 pathnames in UNIX and DOS style with drive letter.
38373 (Is_Relative): new routine.
38375 * osint.adb: Minor reformatting
38377 * osint.adb (Is_Relative): implementation using
38378 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
38380 2001-10-25 Pascal Obry <obry@gnat.com>
38382 * g-dirope.adb (Basename): correctly compute offset between the
38383 original Path and the translated one.
38385 * g-dirope.adb: (Base_Name): add some comments.
38387 2001-10-25 Robert Dewar <dewar@gnat.com>
38389 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
38390 in HIE mode, avoids compilation abandoned message
38392 * exp_imgv.adb: Correct typo in previous change
38394 * exp_imgv.adb: Correct typo in previous change (not my day!)
38396 2001-10-25 Robert Dewar <dewar@gnat.com>
38398 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
38400 2001-10-25 Pascal Obry <obry@gnat.com>
38402 * g-awk.ads: Move all pragma inlines next to the routine
38403 declarations. This is more uniform with other GNAT spec.
38405 2001-10-22 Geert Bosch <bosch@gnat.com>
38407 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
38409 2001-10-19 Geert Bosch <bosch@gnat.com>
38411 * Makefile.in (tools, gnattools): Remove gnatmem.
38413 2001-10-17 Richard Henderson <rth@redhat.com>
38415 * Makefile.in (misc.o): Depend on langhooks.h.
38416 * misc.c: Include it.
38417 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
38418 (LANG_HOOKS_DECODE_OPTION): New.
38419 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
38421 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
38423 * trans.c (tree_transform): Adjust to recent change in
38424 expand_asm_operands to implement named asm operands.
38426 2001-10-11 Ed Schonberg <schonber@gnat.com>
38428 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
38429 renaming of discriminant for mutable record type.
38431 2001-10-11 Robert Dewar <dewar@gnat.com>
38433 * validsw.adb: Properly save -gnatVn status.
38435 2001-10-11 Robert Dewar <dewar@gnat.com>
38437 * usage.adb: Add lines for V switch.
38439 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
38440 (/VALIDITY_CHECKING).
38442 2001-10-11 Ed Schonberg <schonber@gnat.com>
38444 * sem_type.adb (Add_One_Interp): an operator for a type declared in
38445 an extension of System is known to be visible.
38447 2001-10-11 Ed Schonberg <schonber@gnat.com>
38449 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
38450 properly. Fixes regression on ACATS C34005G.
38452 2001-10-11 Robert Dewar <dewar@gnat.com>
38454 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
38455 loop in generic instance, since this is likely not very useful.
38457 2001-10-11 Robert Dewar <dewar@gnat.com>
38459 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
38460 the error message for high integrity mode.
38462 * rtsfind.adb (RTE): Give message if we try to find an entity that
38463 is not available in high integrity mode.
38466 (OK_To_Use_In_HIE_Mode): New array.
38467 (RTE): May return Empty in high integrity mode.
38469 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
38470 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
38472 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
38473 unit if not inlined always and in no runtime mode. Fixes problem
38474 caused by new Rtsfind changes.
38476 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
38479 * rtsfind.adb (RTE): Make sure we do not try to load unit after
38480 giving message for entity not available in high integrity mode.
38482 2001-10-11 Pascal Obry <obry@gnat.com>
38484 * impunit.adb: Add GNAT.CRC32.
38486 2001-10-11 Ed Schonberg <schonber@gnat.com>
38488 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
38489 properly the case where one universal operand in a non-static
38490 exponentiation of a real literal.
38492 2001-10-11 Ed Schonberg <schonber@gnat.com>
38494 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
38495 clause, return the gobal finalization list, for lack of anthing else.
38497 2001-10-11 Ed Schonberg <schonber@gnat.com>
38499 * exp_ch7.adb (Make_Transient_Block): if statement is within
38500 exception handler, always use new transient scope to place Clean
38503 2001-10-11 Pascal Obry <obry@gnat.com>
38506 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38507 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38508 (GNATLS_RTL_OBJS): add g-crc32.o
38509 (GNATMAKE_RTL_OBJS): add g-crc32.o
38512 (CRC_Match): new function.
38513 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
38514 instead of the previous simple checksum algorithm.
38515 (Time_Stamp_Mismatch): use CRC_Match for comparison.
38516 (Set_Source_Table): idem.
38519 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
38520 instead of simple checksum.
38521 (CRC_Match): new function.
38522 (CRC_Error): new constant.
38524 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
38525 a CRC now and not a simple checksum. A CRC uses lower-case hex
38526 letters, fixes ambiguity in parsing.
38528 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
38529 is what this variable will store.
38531 * bcheck.adb: Change reference to chechsum in comments by CRC.
38532 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
38533 rename All_Checksum_Match to All_CRC_Match. Change due to API
38534 renaming since now GNAT does not use a simple checksum but a
38535 CRC using GNAT.CRC32.
38537 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
38538 now and not anymore a simple checksum.
38540 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
38543 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
38546 (Restore_Scan_State): rename Checksum to CRC.
38547 (Save_Scan_State): idem.
38551 (Checksum): rename to CRC.
38552 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
38554 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
38555 GNAT.CRC32). Update copyright notice.
38557 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
38558 GNAT.CRC32). Update copyright notice.
38561 (Accumulate_Checksum): removed.
38562 (Update): new procedure. Add a wide-character into the CRC.
38565 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
38566 (Load_File): fix initialization of S (change Source_Checksum to
38569 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
38570 Source_CRC in S initialization.
38572 * sinput.adb (Source_Checksum): renamed to Source_CRC.
38574 * sinput.ads (Source_Checksum): renamed to Source_CRC.
38575 Update comments for the CRC.
38577 * types.adb (Hex): Use lowercase for the letter part.
38579 * types.ads (Get_Hex_String): Returns the hexadecimal representation
38580 for a word. This is currently used only for CRC. In previous version,
38581 the checksum was using a representation with all letter being
38582 upper-case. With the new implementation (using CRC) we do not remove
38583 the 32th bit of the CRC, so we can have an upper-case starting letter
38584 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
38585 It is ambigous since the CRC was optional and could be followed by
38586 options like EB, EE. So now this routines uses lower-case letter for
38587 the hexadecimal representation. Strange enough only lower case letters
38588 where checked in Scan_ALI (even if this was not a possible case).
38590 * gnatvsn.ads (Library_Version): changed to 3.15a.
38592 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
38595 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
38598 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
38599 Add 2001 to copyright notice
38600 (Accumulate_Checksum): Modify to use System.CRC32.
38602 * ali-util.ads: Redo changes of previous revision to continue to use
38603 the word Checksum. Add 2001 to copyright notice.
38605 * ali.adb: Undo some of previous changes, not needed.
38606 Keep the change for lower case letters in the checksum.
38608 * ali.ads: Undo previous change not needed.
38610 * bcheck.adb: Undo most of previous change, not needed.
38611 But do use Checksums_Match for checksum comparison.
38613 * gnatls.adb: Undo most of previous change, not needed.
38614 But do use Checksums_Match for comparing checksums.
38616 * lib-load.adb: Undo previous change, not needed.
38618 * lib-writ.adb: Undo previous change, not needed.
38620 * lib-writ.ads: Document that checksums use lower case,
38621 not upper case letters.
38623 * scans.adb: Undo previous change, not needed
38625 * scans.ads: Undo previous change, not needed.
38627 * scn-nlit.adb: Undo previous changes, not needed.
38629 * scn-slit.adb: Undo previous change, not needed. Fix header format.
38632 (Accumulate_Checksum): Use System.CRC32.
38633 (Initialize_Checksum): New procedure.
38634 Remove other changes of previous revision.
38636 * sinput-p.adb: Undo previous change, not needed.
38638 * sinput.adb: Undo previous change, not needed.
38640 * sinput-l.adb: Undo previous change, not needed.
38642 * sinput.ads: Undo previous change, not needed. Keep only comment
38643 on new checksum algorithm
38645 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
38646 Also remove a-tags and a-stream from GNAT sources.
38648 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
38650 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
38652 2001-10-11 Geert Bosch <bosch@gnat.com>
38654 * einfo.h: Regenerate.
38656 * nmake.ads: Regenerate.
38658 * nmake.adb: Regenerate.
38660 * sinfo.h: Regenerate.
38662 * treeprs.adb: Regenerate.
38664 2001-10-10 Geert Bosch <bosch@gnat.com>
38666 * gnat-style.texi: New file describing coding guidelines for Ada.
38668 2001-10-10 Ed Schonberg <schonber@gnat.com>
38670 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
38673 2001-10-10 Geert Bosch <bosch@gnat.com>
38675 * snames.ads: Add new names for project facility.
38677 * snames.adb: Update to reflect snames.ads changes.
38679 * snames.h: Update to reflect snames.ads changes.
38681 2001-10-10 Vincent Celier <celier@gnat.com>
38684 (Add_Switches): reflect the changes for the switches attributes
38685 Default_Switches indexed by the programming language,
38686 Switches indexed by the file name.
38687 (Collect_Arguments_And_Compile): Idem.
38688 Reflect the attribute name changes.
38691 (Initialisation_Data): Change the names of some packages and
38693 (Initialize): process case insensitive associative arrays.
38696 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
38699 (Parse_Attribute_Declaration): For case insensitive associative
38700 arrays, set the index string to lower case.
38703 Reflect the changes of the project attributes.
38706 Replace Check_Naming_Scheme by Ada_Check and
38707 Language_Independent_Check.
38710 Replaced Check_Naming_Scheme by 2 procedures:
38711 Ada_Check and Language_Independent_Check.
38714 (Process_Declarative_Items): For case-insensitive associative
38715 arrays, set the index string to lower case.
38716 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
38717 Prj.Nmsc.Check_Naming_Scheme.
38720 (Case_Insensitive): New function
38721 (Set_Case_Insensitive): New procedure
38724 (Case_Insensitive): New function
38725 (Set_Case_Insensitive): New procedure
38726 (Project_Node_Record): New flag Case_Insensitive.
38729 (Value_Of): new function to get the string value of a single
38730 string variable or attribute.
38733 (Value_Of): new function to get the string value of a single
38734 string variable or attribute.
38737 (Ada_Default_Spec_Suffix): New function
38738 (Ada_Default_Impl_Suffix): New function
38739 Change definitions of several constants to reflect
38740 new components of record types.
38743 (Naming_Data): Change several components to reflect new
38744 elements of naming schemes.
38745 (Project_Data): New flags Sources_Present and
38746 Language_Independent_Checked.
38747 (Ada_Default_Spec_Suffix): New function.
38748 (Ada_Default_Impl_Suffix): New function.
38751 Modification of predefined names for project manager: added
38752 Implementation, Specification_Exceptions, Implementation_Exceptions,
38753 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
38754 Default_Switches, _Languages, Builder, Cross_Reference,
38755 Finder. Removed Body_Part, Specification_Append, Body_Append,
38756 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
38759 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
38762 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
38763 not that it is Nil_Variable_Value.
38765 * prj.ads: Add ??? for uncommented declarations
38767 2001-10-10 Ed Schonberg <schonber@gnat.com>
38769 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
38770 constant, do not indicate possible modification, so that gigi can
38771 treat it as a bona fide constant.
38773 2001-10-10 Robert Dewar <dewar@gnat.com>
38775 * sem_prag.adb: Add processing for pragma External.
38777 * snames.ads: Add entry for pragma External.
38779 * par-prag.adb: Add pragma External.
38781 * snames.adb: Updated to match snames.ads.
38783 2001-10-10 Ed Schonberg <schonber@gnat.com>
38785 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
38786 a dynamic task if the allocator appears in an indexed assignment
38787 or selected component assignment.
38789 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
38790 For a dynamic task in an assignment statement, use target of
38791 assignment to generate meaningful name.
38793 2001-10-10 Ed Schonberg <schonber@gnat.com>
38795 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
38798 * einfo.ads: Body_Entity is also defined for generic package.
38799 Documentation change only
38801 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
38802 others_choice for a discriminated component initialization,
38803 convert discriminant references into the corresponding discriminals.
38805 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
38806 only if original type is private and expression has to be wrapped
38810 (Apply_Constraint_Check): Do not perform length check
38811 if expression is an aggregate with only an others_choice.
38812 (Length_N_Cond): two references to the same in_parameter
38813 (typically the discriminal in an init_proc) denote the same value.
38814 Two useful optimization uncovered by bugfixes above.
38816 2001-10-10 Robert Dewar <dewar@gnat.com>
38818 * xeinfo.adb: Change int to char in translation of enumeration types.
38819 This fixes a problem in the C representation of component alignment.
38820 Add 2001 to copyright notice
38822 2001-10-10 Richard Kenner <kenner@gnat.com>
38824 * decl.c: (validate_size): Do check size of object of integral type
38825 if it is a packed array type.
38827 2001-10-10 Richard Kenner <kenner@gnat.com>
38829 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
38830 VAR_DECL for constant if not Is_Public but -O0.
38832 2001-10-10 Richard Kenner <kenner@gnat.com>
38834 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
38836 2001-10-10 Geert Bosch <bosch@gnat.com>
38838 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
38839 use '/' as switch character, allowing for absolute file names.
38841 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
38843 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
38846 2001-10-08 Geert Bosch <bosch@gnat.com>
38848 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
38849 Automatically build utilities when files need to be regenerated.
38851 2001-10-08 Geert Bosch <bosch@gnat.com>
38853 * xsnames.adb: New utility for updating snames.ads and snames.adb
38855 2001-10-08 Zack Weinberg <zack@codesourcery.com>
38857 * Make-lang.in (ADAFLAGS): Add -W -Wall.
38858 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
38859 (gnat1): Also depend on attribs.o.
38860 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
38861 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
38862 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
38863 (ADAFLAGS): Add -W -Wall.
38864 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
38867 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
38868 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
38869 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
38870 Use $(ADAC), not $(CC), as compilation command.
38872 (gnattools): Depend directly on tools to build, don't use
38874 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
38876 * einfo.h, sinfo.h: New files (autogenerated).
38878 2001-10-08 Richard Henderson <rth@redhat.com>
38880 * comperr.adb (Abort_In_Progress): New.
38881 (Compiler_Abort): Use it to prevent recursion.
38883 2001-10-08 Robert Dewar <dewar@gnat.com>
38885 * atree.adb: Set Error_Posted in Error node, helps error recovery.
38887 * par-endh.adb (Output_End_Expected): We should also not test
38888 Error_Posted on the Error node, since now it is always set.
38890 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
38891 to help error recovery. Part of general work on 9407-004.
38893 * par.adb: Add ??? for misuse of error
38896 (Resolve): Defend against Error, fixes 9407-003.
38897 (Resolve_Discrete_Subtype_Indication): Defend against Error.
38899 * sinfo.ads (N_Error): Now has Etype field (which will be set
38900 to Any_Type to help error recovery).
38902 2001-10-08 Richard Kenner <kenner@gnat.com>
38904 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
38905 Consistently set MEM attributes from expression; fixes
38906 bootstrap failure on x86.
38908 2001-10-08 Geert Bosch <bosch@gnat.com>
38910 * 5oosinte.adb: Add 2001 to copyright notice.
38912 2001-10-08 Geert Bosch <bosch@gnat.com>
38914 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
38916 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
38918 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
38920 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
38922 2001-10-05 Geert Bosch <bosch@gnat.com>
38924 * adaint.h: Small formatting fix.
38926 2001-10-04 Geert Bosch <bosch@gnat.com>
38928 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
38929 Arg is int, not FILE *, in dummy version of functions.
38931 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
38932 Arg is int, not FILE *.
38934 2001-10-04 Geert Bosch <bosch@gnat.com>
38936 * 3lsoccon.ads: Added file, missed with initial check ins.
38938 * 4lintnam.ads: Fix header format.
38939 Change Linux to GNU/Linux.
38941 * 5iosinte.adb: Change Linux to GNU/Linux.
38943 * 5iosinte.ads: Change Linux to GNU/Linux.
38945 * 5itaprop.adb: Change Linux to GNU/Linux.
38947 * 5itaspri.ads: Change Linux to GNU/Linux.
38948 Update copyright notice.
38950 * 5lintman.adb: Change Linux to GNU/Linux.
38952 * 5lml-tgt.adb: Change Linux to GNU/Linux.
38954 * 5losinte.ads: Change Linux to GNU/Linux.
38956 * 5lsystem.ads: Change Linux to GNU/Linux.
38958 * 5qosinte.adb: Change Linux to GNU/Linux.
38960 * 5qosinte.ads: Change Linux to GNU/Linux.
38962 * 5qparame.ads: Change Linux to GNU/Linux.
38964 * 5qtaprop.adb: Change Linux to GNU/Linux.
38966 * 5qtaspri.ads: Change Linux to GNU/Linux.
38967 Add 2001 to copyright notice.
38969 * 5vintman.ads: Change Linux to GNU/Linux.
38970 Fix header format. Add 2001 to copyright notice.
38972 * g-soccon.ads: Change Linux to GNU/Linux.
38974 * g-trasym.ads: Change Linux to GNU/Linux.
38975 Add 2001 to copyright notice.
38977 * memtrack.adb: Change Linux to GNU/Linux.
38979 * s-intman.ads: Change Linux to GNU/Linux.
38980 Add 2001 to copyright notice. Fix header format.
38982 * s-stache.adb: Change Linux to GNU/Linux.
38984 * adaint.c: Change Linux to GNU/Linux.
38986 * cio.c: Change Linux to GNU/Linux.
38988 * cstreams.c: Change Linux to GNU/Linux.
38990 * init.c: Change Linux to GNU/Linux.
38992 * gmem.c: Change Linux to GNU/Linux.
38994 * tracebak.c: Change Linux to GNU/Linux.
38997 2001-10-02 Geert Bosch <bosch@gnat.com>
38999 * misc.c (insert_default_attributes): Add dummy version.