gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
[gcc.git] / gcc / ada / ChangeLog
1 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2
3 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4 (fdesc_type_node): Define.
5 (null_fdesc_node): Likewise.
6 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
7 uses descriptors for vtables and the type comes from a dispatch table,
8 return the descriptor type.
9 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
10 uses descriptors for vtables and the type comes from a dispatch table,
11 build a descriptor in the static case and copy the existing one in the
12 non-static case.
13 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
14 the type is a pointer-to-subprogram coming from a dispatch table,
15 return the null descriptor.
16 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
17 vtables, the source type is the descriptor type and the target type
18 is a pointer type, first build the pointer.
19 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
20 build the descriptor type and the null descriptor.
21
22 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
23
24 * decl.c (prepend_attributes): Fix typo.
25 * trans.c (Pragma_to_gnu): Likewise.
26 * utils.c (gnat_genericize): Likewise.
27
28 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
29 Richard Kenner <kenner@adacore.com>
30
31 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
32 * decl.c (gnat_to_gnu_entity): Adjust for above change.
33 <E_Record_Type>: Try to get a better form of the component for
34 packing, even if it has an integral mode.
35 <E_Record_Subtype>: Likewise.
36 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
37 exception suppressing the final conversion between record types.
38
39 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
40
41 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
42 alignment for space, promote the alignment of non-scalar variables with
43 no size and alignment.
44 * gigi.h (gnat_types_compatible_p): Declare.
45 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
46 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
47 * utils.c (gnat_types_compatible_p) : New predicate.
48 (convert): Use it throughout to test for cases where a mere view
49 conversion is sufficient.
50 * utils2.c (build_binary_op): Minor tweaks.
51 (build_unary_op): Likewise.
52
53 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
54
55 * decl.c (adjust_packed): Expand comment.
56
57 2008-04-08 Arnaud Charlet <charlet@adacore.com>
58
59 * s-tasuti.ads: Use Task_Address instead of System.Address.
60
61 * makeutl.adb (Path_Or_File_Name): New function
62
63 * nlists.ads, itypes.ads: Update comments.
64
65 * s-crtl.ads (malloc32, realloc32): New functions.
66
67 * s-auxdec.ads (Short_Address_Size): New constant.
68
69 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
70
71 * s-ststop.ads, s-ststop.adb: New file.
72
73 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
74 Minor reformatting.
75
76 2008-04-08 Pascal Obry <obry@adacore.com>
77
78 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
79 (Stop_Bits_Number): New type.
80 (Parity_Check): Likewise.
81 (Set): Add parameter to set the number of stop bits and
82 the parity. Parameter timeout is now a duration instead
83 of a plain integer.
84
85 * g-sercom-linux.adb:
86 Implement the stop bits and parity support for GNU/Linux.
87 Fix handling of timeout, it must be given in tenth of seconds.
88
89 * g-sercom-mingw.adb:
90 Implement the stop bits and parity support for Windows.
91 Use new s-win32.ads unit instead of declaring Win32 services
92 directly into this body.
93 Update handling of timeout as now a duration.
94
95 * s-win32.ads, s-winext.ads: New files.
96
97 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
98 Arnaud Charlet <charlet@adacore.com>
99
100 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
101
102 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
103 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
104
105 * s-osinte-lynxos-3.ads,
106 (Alternate_Stack): Remove when not needed. Simplify declaration
107 otherwise.
108 (Alternate_Stack_Size): New constant.
109
110 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
111 'Unrestricted_Access.
112
113 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
114 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
115 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
116 s-osinte-solaris.ads, s-osinte-vms.ads
117 (SA_ONSTACK): New constant.
118 (stack_t): New record type.
119 (sigaltstack): New imported function.
120 (Alternate_Stack): New imported variable.
121 (Alternate_Stack_Size): New constant.
122
123 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
124
125 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
126 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
127 s-taspri-vms.ads (Task_Address): New subtype of System.Address
128 (Task_Address_Size): New constant size of System.Address
129 (Alternate_Stack_Size): New constant.
130
131 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
132 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
133 Establish the alternate stack if the platform makes use of n alternate
134 signal stack for stack overflows.
135 (Create_Task): Take into account the alternate stack in the stack size.
136 (Initialize): Save the address of the alternate stack into the ATCB for
137 the environment task.
138 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
139
140 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
141
142 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
143
144 * s-intman-posix.adb:
145 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
146 alternate signal stack for stack overflows.
147
148 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
149 x86-64, adjust the saved value of the stack pointer if the signal was
150 raised by a stack checking probe.
151 (HP-UX section): Use global __gnat_alternate_stack as signal handler
152 stack and only for SIGSEGV.
153 (Linux section): Likewise on x86 and x86-64.
154 [VxWorks section]
155 (__gnat_map_signal): Now static.
156 (__gnat_error_handler): Not static any more.
157 (__gnat_adjust_context_for_raise): New function. Signal context
158 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
159 propagation circuitry.
160 (__gnat_error_handler): Second argument of a sigaction handler is a
161 pointer, not an int, and is unused.
162 Adjust signal context before mapping to exception.
163 Install signal handlers for LynxOS case.
164
165 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
166 (Task_Id): Set size to Task_Address_Size
167 (To_Task_id): Unchecked convert from Task_Address vice System.Address
168 (To_Address): Unchecked convert to Task_Address vice System.Address
169
170 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
171 address into the ATCB if the platform makes use of an alternate signal
172 stack for stack overflows.
173 (Free_Task): Add call to Finalize_Attributes_Link.
174 Add argument Relative_Deadline to pass the value specified for
175 the task. This is not yet used for any target.
176
177 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
178 the value specified for the task.
179
180 2008-04-08 Arnaud Charlet <charlet@adacore.com>
181
182 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
183 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
184 s-vxwext-rtp.adb): New files.
185
186 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
187 Minor updates to accomodate changes above.
188
189 2008-04-08 Pascal Obry <obry@adacore.com>
190
191 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
192 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
193 Use new s-win32.ads unit instead of declaration
194 from s-osinte-mingw.ads.
195
196 * s-osinte-mingw.ads:
197 Move all non tasking based interface to s-win32.ads.
198
199 * s-osprim-mingw.adb:
200 Remove duplicated declarations and use s-win32.ads
201 unit instead.
202
203 2008-04-08 Vincent Celier <celier@adacore.com>
204 Arnaud Charlet <charlet@adacore.com>
205
206 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
207 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
208 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
209 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
210 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
211
212 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
213 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
214 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
215 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
216 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
217 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
218 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
219 mlib-tgt-specific-mingw.adb: New names.
220
221 * Makefile.in:
222 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
223 Get rid of gnatbl.
224 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
225 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
226 Minor updates for VMS
227
228 * gnatbl.c: Removed.
229
230 2008-04-08 Thomas Quinot <quinot@adacore.com>
231
232 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
233 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
234 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
235 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
236 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
237 ASCII.NUL throughout.
238
239 2008-04-08 Arnaud Charlet <charlet@adacore.com>
240 Matthew Heaney <heaney@adacore.com>
241
242 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
243 renaming.
244
245 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
246 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
247 to convention for non-RM specs.
248 Add descriptive header, and documented each operation
249 document each operation
250
251 2008-04-08 Robert Dewar <dewar@adacore.com>
252 Bob Duff <duff@adacore.com>
253 Gary Dismukes <dismukes@adacore.com>
254 Ed Schonberg <schonberg@adacore.com>
255
256 * alloc.ads: Add entries for Obsolescent_Warnings table
257
258 * einfo.ads, einfo.adb: Minor reformatting.
259 (Is_Discriminal): New subprogram.
260 (Is_Prival): New subprogram.
261 (Is_Protected_Component): New subprogram.
262 (Is_Protected_Private): Removed.
263 (Object_Ref, Set_Object_Ref): Removed.
264 (Prival, Set_Prival): Change assertion.
265 (Privals_Chain, Set_Privals_Chain): Removed.
266 (Prival_Link, Set_Prival_Link): New subprogram.
267 (Protected_Operation, Set_Protected_Operation): Removed.
268 (Protection_Object, Set_Protection_Object): New subprogram.
269 (Write_Field17_Name): Remove case for Object_Ref.
270 (Write_Field20_Name): Add case for Prival_Link.
271 (Write_Field22_Name): Remove case for Protected_Operation,
272 Privals_Chain.
273 Add case for Protection_Object.
274 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
275 so clients
276 (Overlays_Constant): New flag
277 (Is_Constant_Object): New predicate
278 (Is_Standard_Character_Type): New predicate
279 (Optimize_Alignment_Space): New flag
280 (Optimize_Alignment_Time): New flag
281 (Has_Postconditions): New flag
282 (Obsolescent_Warrning): Field removed
283 (Spec_PPC_List): New field
284 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
285 subprograms to get and set the relative deadline associated to a task.
286
287 * exp_attr.adb (May_Be_External_Call): Account for the case where the
288 Access attribute is part of a named parameter association.
289 (Expand_Access_To_Protected_Op): Test for the attribute occurring
290 within an init proc and use that directly as the scope rather than
291 traversing up to the protected operation's enclosing scope. Only apply
292 assertion on Is_Open_Scopes in the case the scope traversal is done.
293 For the init proc case use the address of the first formal (_init) as
294 the protected object reference.
295 Implement Invalid_Value attribute
296 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
297 contents of the dispatch table there is no need to duplicate the
298 itypes associated with record types (i.e. the implicit full view
299 of private types).
300 Implement Enum_Val attribute
301 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
302 within _Postconditions procedure
303 (Expand_N_Attribute_Reference, case Result): Implement new attribute
304
305 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
306 a return statement calls a function that is not available in
307 configurable runtime.
308 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
309 (Expand_Non_Function_Return): Generate call to _Postconditions proc
310 (Expand_Simple_Function_Return): Ditto
311
312 * frontend.adb: Add call to Sem_Aux.Initialize
313
314 * sem_aux.ads, sem_aux.adb: New file.
315
316 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
317 Add new Pragma_Relative_Deadline.
318 Add support for pragmas Check and Check_Policy
319
320 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
321 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
322 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
323 missing check because they are not allowed in CPP tagged types.
324 Add Sure parameter to Note_Possible_Modification calls
325 Add implementation of Invalid_Value attribute
326 Implement new attribute Has_Tagged_Values
327 Implement Enum_Val attribute
328 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
329 generated attributes.
330 (Analyze_Attribute, case Result): If prefix of the attribute is
331 overloaded, it always resolves to the enclosing function.
332 (Analyze_Attribute, case Result): Properly deal with analysis when
333 Postconditions are not active.
334 (Resolve_Attribute, case Result): Properly deal with appearence during
335 preanalysis in spec.
336 Add processing for attribute Result
337
338 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
339 for operators.
340 (Analyze_Subprogram_Body): Install private_with_clauses when the body
341 acts as a spec.
342 (Check_Inline_Pragma): recognize an inline pragma that appears within
343 the subprogram body to which it applies.
344 (Analyze_Function_Return): Check that type of the expression of a return
345 statement in a function with a class-wide result is not declared at a
346 deeper level than the function.
347 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
348 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
349 user- defined operators.
350 (Install_Formals): Moved to spec to allow use from Sem_Prag for
351 analysis of precondition/postcondition pragmas.
352 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
353 Last_Formal, along with lots of comments on what this is about
354 (Analyze_Subprogram_Body): Fix case where we move entities from the
355 spec to the body when there are no body entities (now possible with
356 precondition and postcondition pragmas).
357 (Process_PPCs): New procedure
358 (Analyze_Subprogram_Body): Add call to Process_PPCs
359
360 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
361 clause.
362 (Pop_Scope): Restore Check_Policy_List on scope exit
363 (Push_Scope): Save Check_Policy_List on scope entry
364 Change name In_Default_Expression => In_Spec_Expression
365 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
366 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
367 (Analyze_Object_Renaming): Allow 'Reference as object
368 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
369 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
370 of restriction identifier.
371 Add Sure parameter to Note_Possible_Modication calls
372
373 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
374 Don't check for primitive operations when calling Rep_Item_Too_Late.
375 (Process_Import_Or_Interface): Do not place flag on formal
376 subprograms.
377 (Analyze_Pragma, case Export): If the entity is a deferred constant,
378 propagate information to full view, which is the one elaborated by the
379 back-end.
380 (Make_Inline): the pragma is effective if it applies to an internally
381 generated subprogram declaration for a body that carries the pragma.
382 (Analyze_Pragma, case Optimize_Alignment): Set new flag
383 Optimize_Alignment_Local.
384 (Analyze_PPC_In_Decl_Part): New procedure
385 (Get_Pragma_Arg): Moved to outer level
386 (Check_Precondition_Postcondition): Change to allow new visibility
387 rules for package spec
388 (Analyze_Pragma, case Check_Policy): Change placement rules to be
389 same as pragma Suppress/Unsuppress.
390 Change name In_Default_Expression => In_Spec_Expression
391 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
392 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
393 (Check_Precondition_Postcondition): Do proper visibility preanalysis
394 for the case of these pragmas appearing in the spec.
395 (Check_Enabled): New function
396 (Initialize): New procedure
397 (Tree_Read): New procedure
398 (Tree_Write): New procedure
399 (Check_Precondition_Postcondition): New procedure
400 Implement pragmas Check and Check_Policy
401 Merge Assert processing with Check
402
403 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
404 New warning flag -gnatw.e
405
406 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
407 returning whether a task (or main procedure) has a pragma
408 Relative_Deadline.
409 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
410 (or main procedure) has a pragma Relative_Deadline.
411 Add Next_Pragma field to N_Pragma node
412 (PPC_Enabled): New flag
413 (Next_Pragma): Now used for Pre/Postcondition processing
414
415 * snames.h, snames.ads, snames.adb: New standard name
416 Inherit_Source_Path
417 Add entry for 'Invalid_Value attribute
418 Add entry for new attribute Has_Tagged_Values
419 Add entry for Enum_Val attribute
420 Add new standard names Aggregate, Configuration and Library.
421 Add _Postconditions
422 Add _Result
423 Add Pragma_Precondition
424 Add Pragma_Postcondition
425 Add Attribute_Result
426 New standard name Archive_Builder_Append_Option
427 (Preset_Names): Add _relative_deadline and relative_deadline definitions
428 There was also a missing non_preemptive_within_priorities.
429 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
430 Relative_Deadline.
431 Add support for pragmas Check and Check_Policy
432
433 * tree_gen.adb: Call Sem_Aux.Tree_Write
434
435 * tree_in.adb: Call Sem_Aux.Tree_Read
436
437 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
438 sequence
439
440 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
441 sequence
442
443 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
444 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
445 Relative_Deadline.
446 (Expand_Pragma_Check): New procedure
447
448 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
449 buffer.
450
451 * sinfo.adb (PPC_Enabled): New flag
452
453 2008-04-08 Robert Dewar <dewar@adacore.com>
454 Gary Dismukes <dismukes@adacore.com>
455 Javier Miranda <miranda@adacore.com>
456 Ed Schonberg <schonberg@adacore.com>
457
458 * fe.h: Remove global Optimize_Alignment flag, no longer used
459
460 * layout.adb: Test Optimize_Alignment flags rather than global switch
461
462 * lib.ads, lib.adb: New OA_Setting field in library record
463
464 * lib-load.adb: New OA_Setting field in library record
465
466 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
467 units mentioned in limited_with_ clauses in the ali file, with an
468 'Y' marker.
469 New Ox fields in U line
470
471 * opt.adb: New flag Optimize_Alignment_Local
472 (Check_Policy_List[_Config]): New flags
473
474 * opt.ads (Invalid_Value_Used): New flag
475 New switch Optimize_Alignment_Local
476 (Warn_On_Parameter_Order): New flag
477 (Check_Policy_List[_Config]): New flags
478
479 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
480 limited_with clauses.
481 New data structures for Optimize_Alignment
482
483 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
484 New procedure
485 (Check_Consistent_Optimize_Alignment): Rework for new structure
486 (Check_Consistent_Restrictions): Fix incorrect error message
487
488 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
489 created class-wide type (to the Parent field of the specific type).
490 (Install_Siblings): Handle properly private_with_clauses on subprogram
491 bodies and on generic units.
492 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
493 illegal limited_with_clause that names a non-existent package.
494 (Check_Body_Required): Determine whether a unit named a limited_with
495 clause needs a body.
496 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
497 Capture Optimize_Alignment settings to set new OA_Setting field in
498 library record.
499 (Build_Limited_Views): Include task and protected type declarations.
500
501 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
502 case of a possible constant redeclaration where the current object is
503 an entry index constant.
504 (Analyze_Object_Declaration): Generate an error in case of CPP
505 class-wide object initialization.
506 (Analyze_Object_Declaration): Add extra information on warnings for
507 declaration of unconstrained objects.
508 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
509 conflicts with the setting of Stored_Constraint in the case where the
510 access type entity has already been created as an E_Incomplete_Type due
511 to a limited with clause.
512 Use new Is_Standard_Character_Type predicate
513 (Analyze_Object_Declaration): Apply access_constant check only after
514 expression has been resolved, given that it may be overloaded with
515 several access types.
516 (Constant_Redeclaration): Additional legality checks for deferred
517 constant declarations tha involve anonymous access types and/or null
518 exclusion indicators.
519 (Analyze_Type_Declaration): Set Optimize_Alignment flags
520 (Analyze_Subtype_Declaration): Ditto
521 (Analyze_Object_Declaration): Ditto
522 (Analyze_Object_Declaration): Don't count tasks in generics
523 Change name In_Default_Expression => In_Spec_Expression
524 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
525 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
526 (Process_Discriminants): Additional check for illegal use of default
527 expressions in access discriminant specifications in a type that is not
528 explicitly limited.
529 (Check_Abstract_Overriding): If an inherited function dispaches on an
530 access result, it must be overridden, even if the type is a null
531 extension.
532 (Derive_Subprogram): The formals of the derived subprogram have the
533 names and defaults of the parent subprogram, even if the type is
534 obtained from the actual subprogram.
535 (Derive_Subprogram): In the presence of interfaces, a formal of an
536 inherited operation has the derived type not only if it descends from
537 the type of the formal of the parent operation, but also if it
538 implements it. This is relevant for the renamings created for the
539 primitive operations of the actual for a formal derived type.
540 (Is_Progenitor): New predicate, to determine whether the type of a
541 formal in the parent operation must be replaced by the derived type.
542
543 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
544 predicate recursive to handle components that have a user-defined
545 Initialize procedure. Handle controlled derived types whose ancestor
546 has a user-defined Initialize procedured.
547 (Note_Possible_Modification): Add Sure parameter, generate warning if
548 sure modification of constant
549 Use new Is_Standard_Character_Type predicate
550 (Find_Parameter_Type): when determining whether a protected operation
551 implements an interface operation, retrieve the type of the formal from
552 the entity when the formal is an access parameter or an
553 anonymous-access-to-subprogram.
554 Move Copy_Parameter_List to sem_util, for use when building stubbed
555 subprogram bodies.
556 (Has_Access_Values): Tagged types now return False
557 (Within_HSS_Or_If): New procedure
558 (Set_Optimize_Alignment_Flags): New procedure
559 Change name In_Default_Expression => In_Spec_Expression
560 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
561 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
562
563 2008-04-08 Tristan Gingold <gingold@adacore.com>
564
565 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
566
567 2008-04-08 Tristan Gingold <gingold@adacore.com>
568
569 PR ada/10768
570
571 * cuintp.c: Fix 16 bits issue for AVR.
572 On AVR, integer is 16 bits, so it can't be used to do math with
573 Base (=32768).
574 So use long_integer instead.
575
576 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
577
578 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
579 System.OS_Primitives.
580 Change type of various constants, parameters and local variables from
581 Time to representation type OS_Time.
582 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
583 Remove the declaration of constant Mili_F from several routines. New
584 body for internal package Conversions_Operations.
585 (Time_Of): Add default parameters for several formals.
586
587 * a-caldel.adb: Minor reformatting
588
589 * a-calend.ads, a-calend.adb: New body for internal package
590 Conversions_Operations.
591 (Time_Of): Add default parameters for several formals.
592
593 * Makefile.rtl: Add a-ststop
594 Add Ada.Calendar.Conversions to the list of runtime files.
595 Add g-timsta
596
597 * a-calcon.adb, a-calcon.ads: New files.
598
599 2008-04-08 Jose Ruiz <ruiz@adacore.com>
600 Tristan Gingold <gingold@adacore.com>
601
602 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
603 (Install_Restricted_Handlers): New procedure
604 which is a simplified version of Install_Handlers that does not store
605 previously installed.
606
607 * s-interr-vxworks.adb: Fix ACATS cxc3001
608 On VxWorks interrupts can't be detached.
609 (Install_Restricted_Handlers): New procedure.
610
611 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
612 procedure.
613
614 2008-04-08 Olivier Hainque <hainque@adacore.com>
615
616 * s-intman-vxworks.ads, s-intman-vxworks.adb
617 (Map_And_Raise_Exception): Remove. Was an import of only part of the
618 required services already implemented elsewhere.
619 (Notify_Exception): Delete body, import __gnat_error_handler instead.
620 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
621 argument passed to the handler, which we need for ZCX propagation
622 purposes.
623
624 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
625
626 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
627
628 * g-timsta.adb, g-timsta.ads: New files.
629
630 2008-04-08 Robert Dewar <dewar@adacore.com>
631
632 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
633 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
634 (Raise_Exception_Always): Fix documentation accordingly
635
636 2008-04-08 Robert Dewar <dewar@adacore.com>
637
638 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
639 Stream_Convert)
640
641 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
642 FOnly
643
644 2008-04-08 Javier Miranda <miranda@adacore.com>
645 Robert Dewar <dewar@adacore.com>
646 Ed Schonberg <schonberg@adacore.com>
647
648 * a-tags.adb (Register_Interface_Offset): New subprogram.
649 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
650 (To_Predef_Prims_Table_Ptr): Removed.
651 (Acc_Size): Removed.
652 (To_Acc_Size): Removed.
653 (Parent_Size): Modified to the call the subprogram returning the size of
654 the parent by means of the new TSD component Size_Func.
655
656 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
657 (DT_Offset_To_Top_Offset): New constant value that is used to generate
658 code referencing the Offset_To_Top component of the dispatch table's
659 prologue.
660 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
661 use of 'address to initialize dispatch table slots.
662 (Size_Func): New component of the TSD. Used by the run-time to call the
663 size primitive of the tagged type.
664
665 * checks.adb (Apply_Access_Check): Avoid check when accessing the
666 Offset_To_Top component of a dispatch table.
667 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
668 deferred constant declaration. do not add a null expression, to prevent
669 spurious errors when full declaration is analyzed.
670 (Apply_Discriminant_Check): If both discriminant constraints share a
671 node which is not static but has no side effects, do not generate a
672 check for that discriminant.
673 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
674 subexpr, since the prefix of an attribute is a name.
675
676 * checks.ads: Fix nit in comment.
677
678 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
679 and body of predefined primitives in case of CPP tagged type
680 derivations.
681 (Freeze_Type): Deal properly with no storage pool case
682 (Make_Predefined_Primitive_Specs): Generate specification of abstract
683 primitive Deep_Adjust if a nonlimited interface is derived from a
684 limited interface.
685 (Build_Dcheck_Functions): Create discriminant-checking functions only
686 for variants that have some component(s).
687 (Build_Slice_Assignment): In expanded code for slice assignment, handle
688 properly the case where the slice bounds extend to the last value of the
689 underlying representation.
690 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
691 (Is_Variable_Size_Record): An array component has a static size if
692 index bounds are enumeration literals.
693
694 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
695 an external tag has been specified for the type.
696 (Building_Static_DT): Add missing support for private types.
697 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
698 to the entity associated with the parent of Typ. This is done to
699 avoid wrong access when the parent is a private type.
700 (Expand_Interface_Conversion): Improve error message when the
701 configurable runtime has no support for dynamic interface conversion.
702 (Expand_Interface_Thunk): Add missing support to interface types in
703 configurable runtime.
704 (Expand_Dispatching_Call): remove obsolete code.
705 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
706 ensure that all subtypes and aggregates associated with dispatch
707 tables have the attribute Is_Dispatch_Table_Entity set to true.
708 (Register_Primitive): Rename one variable to improve code reading.
709 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
710 of the pointer to the 'size primitive in the TSD.
711
712 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
713 (RE_Offset_To_Top_Ptr): New entity.
714 (RE_Register_Interface_Offset): New entity.
715 (RE_Set_Dynamic_Offset_To_Top): New entity.
716 (RE_Set_Offset_To_Top): Removed entity.
717 (RE_Prim_Ptr): New entity
718 (RE_Size_Func): New entity
719 (RE_Size_Ptr): New entity
720 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
721 (Ada_Dispatching_Child): Define this new subrange.
722 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
723 RE_Time_Span, and RE_Time_Span_Zero).
724 (RE_Unit_Table): Add new required run-time calls
725
726 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
727 children.
728
729 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
730 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
731 initializes the Offset_To_Top component of a dispatch table.
732 (Build_Predef_Prims): Removed.
733 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
734 its actual code.
735 (Build_Set_Size_Function): New subprogram.
736
737 * exp_ch13.adb: Do not generate storage variable for storage_size zero
738 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
739
740 2008-04-08 Robert Dewar <dewar@adacore.com>
741
742 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
743 computing Fore when Exp > 0
744
745 2008-04-08 Robert Dewar <dewar@adacore.com>
746
747 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
748
749 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
750 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
751
752 * fmap.adb: Remove Big_String declarations (now in Types)
753 (No_Mapping_File): New Boolean global variable
754 (Initialize): When mapping file cannot be read, set No_Mapping_File to
755 False.
756 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
757 tables were empty before adding entries, open the mapping file
758 with Truncate = True, instead of delete/re-create.
759
760 * fname-sf.adb: Remove Big_String declarations (now in Types)
761
762 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
763 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
764 big pointer types
765
766 * table.ads: Add for Table_Ptr'Storage_Size use 0
767
768 * types.ads: Add Big_String declarations
769 Add Size_Clause of zero for big pointer types
770
771 2008-04-08 Vincent Celier <celier@adacore.com>
772
773 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
774 (Usage): Add line for switch --subdirs=
775 Add new switch -eL, to follow symbolic links when processing project
776 files.
777
778 * gnatcmd.adb: Process switches -eL and --subdirs=
779 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
780 Program_Name to get proper tool names when AAMP_On_Target is set.
781 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
782 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
783 Osint.Program_Name).
784
785 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
786 (Usage): Add lines for switches -eL and --subdirs=
787
788 * makeusg.adb: Add line for switch --subdirs=
789
790 * prj.ads:
791 (Source_Data): New Boolean component Compiled, defaulted to True
792 (Empty_File_Name: New global variable in private part, initialized in
793 procedure Initialize.
794 (Subdirs_Option): New constant string
795 (Subdirs): New String_Ptr global variable
796 (Language_Config): New component Include_Compatible_Languages
797 (Project_Qualifier): New type for project qualifiers
798 (Project_Data): New component Qualifier
799 (Project_Configuration): New component Archive_Builder_Append_Option
800
801 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
802 another imported project indicate the name of this imported project.
803 (Check_File): When a unit is in two project files, indicate the project
804 names and the paths of the source files for each project.
805 (Add_Source): Set Compiled to False if compiler driver is empty. Only
806 set object, dependency and switches file names if Compiled is True.
807 (Process_Compiler): Allow the empty string for value of attribute Driver
808 (Get_Directories): When Subdirs is not null and Object_Dir is not
809 specified, locate and create if necessary the actual object dir.
810 (Locate_Directory): When Subdirs is not empty and Create is not the
811 empty string, locate and create if necessary the actual directory
812 as a subdirectory of directory Name.
813 (Check_Library_Attributes.Check_Library): Allow a project where the only
814 "sources" are header files of file based languages to be imported by
815 library projects, in multi-language mode (gprbuild).
816 (Check_Library_Attributes.Check_Library): In multi-language mode
817 (gprbuild), allow a library project to import a project with no
818 sources, even when this is not declared explicitly.
819 (Check_If_Externally_Built): A virtual project extending an externally
820 built project is also externally built.
821 (Check_Library_Attributes): For a virtual project extending a library
822 project, inherit the library directory.
823 (Process_Project_Level_Array_Attributes): Process new attribute
824 Inherit_Source_Path.
825 For projects with specified qualifiers "standard", "library" or
826 "abstract", check that the project conforms to the qualifier.
827 (Process_Project_Level_Simple_Attributes): Process new attribute
828 Archive_Builder_Append_Option.
829
830 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
831 (Normalize_Compiler_Switches): Only keep compiler switches that are
832 passed to gnat1 by the gcc driver and that are stored in the ALI file
833 by gnat1.
834 Do not take into account switc -save-temps
835
836 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
837 gprmake is called with -eL.
838 (Scan_Arg): Recognize switch -eL
839 (Usage): Add line for switch -eL
840
841 * prj.adb (Initialize): Initialize Empty_File_Name
842 (Project_Empty): New component Qualifier
843
844 * prj-attr.ads, prj-attr.adb: New project level attribute
845 Inherit_Source_Path.
846 New project level attribute Archive_Builder_Append_Option
847
848 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
849
850 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
851 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
852 upward compatibility.
853
854 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
855 each Trying ..." on different lines.
856 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
857 is "configuration" when not in configuration. Fail when in configuration
858 when a specified qualifier is other than "configuration".
859
860 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
861 full associative array together.
862 (Recursive_Process): Put the project qualifier in the project data
863
864 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
865 (Set_Project_Qualifier_Of): New procedure
866
867 2008-04-08 Robert Dewar <dewar@adacore.com>
868
869 * errout.ads: Update comments for new handling of info: messages
870
871 * erroutc.adb (Matches): New procedure
872 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
873 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
874 info messages as well as style messages.
875
876 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
877
878 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
879 subprograms.
880 (Check_A_Call): Special "info: " warnings now have ? in the text
881 (Elab_Warning): Use info message in static case
882
883 2008-04-08 Ed Schonberg <schonberg@adacore.com>
884
885 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
886 whether an array aggregate with static bounds and scalar components
887 should be expanded into a static constant.
888
889 2008-04-08 Gary Dismukes <dismukes@adacore.com>
890 Ed Schonberg <schonberg@adacore.com>
891 Robert Dewar <dewar@adacore.com>
892
893 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
894 Has_Stream_Attribute_ Definition when checking for available stream
895 attributes on parameters of a limited type in Ada 2005. Necessary for
896 proper recognition of visible stream attribute clauses.
897 (Has_Stream_Attribute_Definition): If the type is derived from a
898 private type, then use the derived type's underlying type for checking
899 whether it has stream attributes.
900 (Validate_Object_Declaration): The check for a user-defined Initialize
901 procedure applies also to types with controlled components or a
902 controlled ancestor.
903 Reject an object declaration in a preelaborated unit if the type is a
904 controlled type with an overriding Initialize procedure.
905 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
906 checking when the parent of a dereference is a selected component and
907 the name has not been analyzed.
908
909 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
910 prefixes that are invalid explicit dereferences of remote
911 access-to-class-wide values, first checking whether the selected
912 component is a prefixed form of call to a tagged operation.
913 (Analyze_Call): Remove code that issues an error for limited function
914 calls in illegal contexts, as we now support all of the contexts that
915 were forbidden here.
916 Allow a function call that returns a task.and appears as the
917 prefix of a selected component.
918 (Analyze_Reference): Give error message if we try to make a 'Reference
919 for an object that is atomic/aliased without its type having the
920 corresponding attribute.
921 (Analyze_Call): Remove condition checking for attributes to allow
922 calls to functions with inherently limited results as prefixes of
923 attributes. Remove related comment about Class attributes.
924 (Analyze_Selected_Component): If the prefix is a remote type, check
925 whether this is a prefixed call before reporting an error.
926 (Complete_Object_Operation): If the controlling formal is an access to
927 variable reject an actual that is a constant or an access to one.
928 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
929 primitive operations from base type.
930
931 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
932 build-in-place
933 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
934 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
935 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
936 (Expand_N_Slice): Test for prefix that is a build-in-place function call
937 and call Make_Build_In_Place_Call_In_Anonymous_Context.
938 (Analyze_Call): Remove code that issues an error for limited function
939 calls in illegal contexts, as we now support all of the contexts that
940 were forbidden here.
941 New calling sequence for Get_Simple_Init_Val
942 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
943 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
944
945 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
946 Ed Schonberg <schonberg@adacore.com>
947 Robert Dewar <dewar@adacore.com>
948
949 * exp_ch2.adb: Minor reformatting.
950 (Expand_Entry_Index_Parameter): Set the type of the identifier.
951 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
952 (Expand_Protected_Component): New routine.
953 (Expand_Protected_Private): Removed.
954 Add Sure parameter to Note_Possible_Modification calls
955
956 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
957 generated subprogram declaration must inherit the overriding indicator
958 from the instantiation node.
959 (Validate_Access_Type_Instance): If the designated type of the actual is
960 a limited view, use the available view in all cases, not only if the
961 type is an incomplete type.
962 (Instantiate_Object): Actual is illegal if the formal is null-excluding
963 and the actual subtype does not exclude null.
964 (Process_Default): Handle properly abstract formal subprograms.
965 (Check_Formal_Package_Instance): Handle properly defaulted formal
966 subprograms in a partially parameterized formal package.
967 Add Sure parameter to Note_Possible_Modification calls
968 (Validate_Derived_Type_Instance): if the formal is non-limited, the
969 actual cannot be limited.
970 (Collect_Previous_Instances): Generate instance bodies for subprograms
971 as well.
972
973 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
974 try to set RM_Size.
975 Add Sure parameter to Note_Possible_Modification calls
976 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
977 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
978 constant overlaid by variable and issue warning.
979 Use new Is_Standard_Character_Type predicate
980 (Analyze_Record_Representation_Clause): Check that the specified
981 Last_Bit is not less than First_Bit - 1.
982 (Analyze_Attribute_Definition_Clause, case Address): Check for
983 self-referential address clause
984
985 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
986 detection mechanism when the lhs is a prival.
987 (Analyze_Assignment): Call Check_Unprotected_Access to detect
988 assignment of a pointer to protected data, to an object declared
989 outside of the protected object.
990 (Analyze_Loop_Statement): Check for unreachable code after loop
991 Add Sure parameter to Note_Possible_Modication calls
992 Protect analysis from previous syntax error such as a scope mismatch
993 or a missing begin.
994 (Analyze_Assignment_Statement): The assignment is illegal if the
995 left-hand is an interface.
996
997 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
998 violation of restriction No_Implicit_Conditionals
999 Add Sure parameter to Note_Possible_Modication calls
1000 Use new Is_Standard_Character_Type predicate
1001 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
1002 call as operator. Fixes problems (e.g. validity checking) which
1003 come from the result looking as though it does not come from source).
1004 (Resolve_Call): Check case of name in named parameter if style checks
1005 are enabled.
1006 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
1007 from the checking that such calls should not occur from an entry body.
1008 (Resolve_Call): If the return type of an Inline_Always function
1009 requires the secondary stack, create a transient scope for the call
1010 if the body of the function is not available for inlining.
1011 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
1012 that are actuals for in-out formals.
1013 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1014 primitive operations from base type.
1015 (Analyze_Selected_Component): If the context is a call to a protected
1016 operation the parent may be an indexed component prior to expansion.
1017 (Resolve_Actuals): If an actual is of a protected subtype, use its
1018 base type to determine whether a conversion to the corresponding record
1019 is needed.
1020 (Resolve_Short_Circuit): Handle pragma Check
1021
1022 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
1023 Use new Is_Standard_Character_Type predicate
1024 (Eval_Relational_Op): Catch more cases of string comparison
1025
1026 2008-04-08 Robert Dewar <dewar@adacore.com>
1027 Gary Dismukes <dismukes@adacore.com>
1028
1029 * s-rident.ads: Add No_Default_Initialization restriction
1030
1031 * exp_tss.adb:
1032 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
1033 (Set_TSS): Handle No_Default_Initialization case
1034
1035 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
1036 No_Default_Initialization
1037 (Expand_N_Subprogram_Body): Remove redundant initialization of out
1038 parameters when Normalize_Scalars is active.
1039 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
1040 Fix casing error in formal parameter name in call
1041 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
1042 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1043 dispatching call on VM targets.
1044
1045 2008-04-08 Gary Dismukes <dismukes@adacore.com>
1046 Thomas Quinot <quinot@adacore.com>
1047
1048 * exp_ch7.adb (Find_Final_List): Change the test for generating a
1049 selected component from an access type's Associated_Final_Chain to
1050 check for the presence of that field, rather than assuming it exists
1051 for all named access types.
1052 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
1053 procedure to call at the end of the generated cleanup procedure.
1054 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
1055 and an At_End_Proc already exists in the handled sequence of statements
1056 for which cleanup actions are being expanded, the original cleanup
1057 action must be preserved.
1058
1059 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1060 Ed Schonberg <schonberg@adacore.com>
1061 Robert Dewar <dewar@adacore.com>
1062 Gary Dismukes <dismukes@adacore.com>
1063
1064 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
1065 Build_Unprotected_Subprogram_Body): Generate debug info for
1066 declarations related to the handling of private data in task and
1067 protected types.
1068 (Debug_Private_Data_Declarations): New subprogram.
1069 (Install_Private_Data_Declarations): Remove all debug info flagging.
1070 This is now done by Debug_Private_Data_Declarations at the correct
1071 stage of expansion.
1072 (Build_Simple_Entry_Call): If the task name is a function call, expand
1073 the prefix into an object declaration, and make the surrounding block a
1074 task master.
1075 (Build_Master_Entity): An internal block is a master if it wraps a call.
1076 Code reformatting, update comments. Code clean up.
1077 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
1078 (Replicate_Entry_Formals): If the formal is an access parameter or
1079 anonymous access to subprogram, copy the original tree to create new
1080 entities for the formals of the subprogram.
1081 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
1082 for tasks to store the value passed using pragma Relative_Deadline.
1083 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
1084 run-time call to create a task.
1085 (Build_Wrapper_Spec): If the controlling argument of the interface
1086 operation is an access parameter with a non-null indicator, use the
1087 non-null indicator on the wrapper.
1088
1089 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
1090 present, which it may not be in the case where the type entity is an
1091 incomplete view brought in by a limited with.
1092 (Analyze_Task_Type): Only retrieve the full view when present, which it
1093 may not be in the case where the type entity is an incomplete view brought
1094 in by a limited with.
1095 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
1096 private components of a protected type, to prevent the generation of freeze
1097 nodes for which there is no proper scope of elaboration.
1098
1099 * exp_util.ads, exp_util.adb
1100 (Remove_Side_Effects): If the expression is a function call that returns a
1101 task, expand into a declaration to invoke the build_in_place machinery.
1102 (Find_Protection_Object): New routine.
1103 (Remove_Side_Effects): Also make a copy of the value
1104 for attributes whose result is of an elementary type.
1105 (Silly_Boolean_Array_Not_Test): New procedure
1106 (Silly_Boolean_Array_Xor_Test): New procedure
1107 (Is_Volatile_Reference): New function
1108 (Remove_Side_Effects): Use Is_Volatile_Reference
1109 (Possible_Bit_Aligned_Component): Handle slice case properly
1110
1111 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
1112 case test to Exp_Util
1113 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
1114
1115 2008-04-08 Thomas Quinot <quinot@adacore.com>
1116
1117 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
1118 in call
1119 (Add_RACW_Features): When processing an RACW in another unit than the
1120 main unit, set Body_Decls to No_List to indicate that the bodies of
1121 the type's TSS must not be generated.
1122 (GARLIC_Support.Add_RACW_Read_Attribute,
1123 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
1124 Body_Decls is No_List.
1125 (PolyORB_Support.Add_RACW_Read_Attribute,
1126 PolyORB_Support.Add_RACW_Write_Attribute,
1127 PolyORB_Support.Add_RACW_From_Any,
1128 PolyORB_Support.Add_RACW_To_Any,
1129 PolyORB_Support.Add_RACW_TypeCode): Same.
1130 (Transmit_As_Unconstrained): New function.
1131 (Build_Ordered_Parameters_List): Use the above to order parameters.
1132 (GARLIC_Support.Build_General_Calling_Stubs):
1133 Use the above to determine which parameters to unmarshall using 'Input
1134 at the point where their temporary is declared (as opposed to later on
1135 with a 'Read call).
1136 (PolyORB_Support.Build_General_Calling_Stubs):
1137 Use the above to determine which parameters to unmarshall using From_Any
1138 at the point where their temporary is declared (as opposed to later on
1139 with an assignment).
1140
1141 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1142
1143 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
1144 an Input function for an access type, do not perform default
1145 initialization on the local variable that receives the value, to
1146 prevent spurious warnings when the type is null-excluding.
1147
1148 2008-04-08 Robert Dewar <dewar@adacore.com>
1149 Ed Schonberg <schonberg@adacore.com>
1150
1151 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
1152 units.
1153 (Size_Known): Generic formal scalar types have known at compile
1154 time size, so remove check.
1155 Fix casing error in formal parameter name in call
1156 (Freeze_Subprogram): If the subprogram is a user-defined operator,
1157 recheck its overriding indication.
1158
1159 2008-04-08 Vincent Celier <celier@adacore.com>
1160
1161 * gnat1drv.adb: Send all messages indicating an error to standard error
1162
1163 2008-04-08 Robert Dewar <dewar@adacore.com>
1164
1165 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
1166 (List_Applicable_Restrictions): Do not list existing restrictions
1167
1168 2008-04-08 Thomas Quinot <quinot@adacore.com>
1169
1170 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
1171 add a pointer to generic sockets literature
1172 do not mention that the given example is "typical" usage.
1173 Remove obsolete comment about multicast not being supported on Windows.
1174 (Connect_Socket): Make Server mode IN rather than IN OUT
1175 since this formal is never modified.
1176
1177 2008-04-08 Robert Dewar <dewar@adacore.com>
1178
1179 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
1180 the declaration for some different entity.
1181 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
1182 list is precent (following the parent subtype indication), display
1183 appropriate "and" keyword.
1184
1185 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
1186 Remove unnecessary calls to Init_Size_Align and Init_Esize.
1187 Add notes on use of Parent field of an Itype
1188
1189 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1190 Robert Dewar <dewar@adacore.com>
1191 Gary Dismukes <dismukes@adacore.com>
1192
1193 * lib-xref.adb (Is_On_LHS): Remove dead code
1194 (Output_Overriden_Op): If the overridden operation is itself inherited,
1195 list the ancestor operation, which is the one whose body or absstract
1196 specification is actually being overridden. For source navigation
1197 purposes.
1198
1199 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
1200 operation is primitive for the type.
1201 (Declare_Inherited_Private_Subprograms): If the new operation overrides
1202 an inherited private subprogram, set properly the Overridden_Operation
1203 attribute, for better cross-reference information.
1204 (Analyze_Package_Specification): Do late analysis of spec PPCs
1205 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
1206 properly the full view and underlying full views of a private type in a
1207 child unit, whose full view is derived from a private type in a parent
1208 unit, and whose own full view becomes visible in the child body.
1209
1210 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
1211 primitive operation after the type has been frozen, add an explicit
1212 reference to the type and the operation, because other primitive
1213 references have been emitted already.
1214 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1215 dispatching call on VM targets.
1216
1217 2008-04-08 Vincent Celier <celier@adacore.com>
1218 Thomas Quinot <quinot@adacore.com>
1219
1220 * make.adb: (Gnatmake_Called): Remove, no longer necessary
1221 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
1222 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
1223 (Insert_Project_Sources): Take into account index in multi-unit source
1224 files.
1225 After building a library project, delete all temporary files.
1226 (Initialize): Reset current output after parsing project file.
1227 (Collect_Arguments_And_Compile): Never insert in the queue the sources
1228 of library projects that are externally built.
1229 Put file name in error and inform messages if -df is used
1230 (Display): If invoked with -d7, do not display path names, but only
1231 file names.
1232
1233 * makeutl.ads (Path_Or_File_Name): New function
1234 (Path_Or_File_Name): New function
1235
1236 2008-04-08 Arnaud Charlet <charlet@adacore.com>
1237
1238 * Make-lang.in: Disable warnings during first stage of bootstrap
1239 Get rid of gnatbl.
1240 Update dependencies.
1241
1242 2008-04-08 Vincent Celier <celier@adacore.com>
1243
1244 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
1245 case to decide if ALI object file is included in library.
1246 (Build_Library): Never attempt to build a library if the project is
1247 externally built.
1248
1249 2008-04-08 Thomas Quinot <quinot@adacore.com>
1250
1251 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
1252 (No_List) is defined to return Empty.
1253
1254 2008-04-08 Jose Ruiz <ruiz@adacore.com>
1255
1256 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
1257 documentation.
1258 Update comments.
1259 (Read_Default_Search_Dirs): Do not consider spaces as path separators
1260 because spaces may be part of legal paths.
1261
1262 2008-04-08 Robert Dewar <dewar@adacore.com>
1263
1264 * par-ch11.adb (P_Exception_Handler): Check indentation level for
1265 handler
1266
1267 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1268
1269 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
1270 in a type declaration, if this is not an interface declaration or
1271 private type extension.
1272
1273 2008-04-08 Vincent Celier <celier@adacore.com>
1274
1275 * prj-util.adb (Executable_Of): New String parameter Language. When
1276 Ada_Main is False and Language is not empty, attempt to remove the body
1277 suffix or the spec suffix of the language to get the base of the
1278 executable file name.
1279 (Put): New Boolean parameter Lower_Case, defauilted to False. When
1280 Lower_Case is True, put the value in lower case in the name list.
1281 (Executable_Of): If there is no executable suffix in the configuration,
1282 then do not modify Executable_Extension_On_Target.
1283
1284 * prj-util.ads (Executable_Of): New String parameter Language,
1285 defaulted to the empty string.
1286 (Put): New Boolean parameter Lower_Case, defauilted to False
1287
1288 2008-04-08 Robert Dewar <dewar@adacore.com>
1289
1290 * scng.adb (Scan_Identifier): Handle case of identifier starting with
1291 wide character using UTF-8 encoding.
1292
1293 2008-04-08 Javier Miranda <miranda@adacore.com>
1294
1295 * sem.adb (Analyze): Consider case in which we analyze an empty node
1296 that was generated by a call to a runtime function that is not
1297 available under the configurable runtime.
1298
1299 * sem.ads (Inside_Freezing_Actions): New flag.
1300 (Save_Check_Policy_List): New field in scope stack entry
1301
1302 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1303 Robert Dewar <dewar@adacore.com>
1304
1305 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
1306 the ancestor part of an extension aggregate for a limited type.
1307 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
1308 enumeration index bounds.
1309 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
1310 when array is too short.
1311 (Check_Expr_OK_In_Limited_Aggregate): Move function
1312 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
1313 change name).
1314 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
1315 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
1316 component associations.
1317 (Check_Non_Limited_Type): Moved to outer level and renamed.
1318 (Resolve_Record_Aggregate): In an extension aggregate, an association
1319 with a box initialization can only designate a component of the
1320 extension, not a component inherited from the given ancestor
1321
1322 * sem_case.adb: Use new Is_Standard_Character_Type predicate
1323
1324 2008-04-08 Robert Dewar <dewar@adacore.com>
1325
1326 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
1327 negative scale
1328 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
1329 Properly handle case where Aft > Scale and input number is less than
1330 one.
1331
1332 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1333
1334 * s-stoele.ads, s-soflin.ads: Move the location of
1335 Dummy_Communication_Block from System.Storage_Elements to
1336 System.Soft_Links.
1337
1338 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
1339 emulate Communication_Block in certain scenarios.
1340
1341 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1342
1343 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
1344 subprogram.
1345 Add new subtype S_WWC, unchecked conversion routines From_WWC and
1346 To_WWC.
1347 (I_WWC, O_WWC): New routines for input and output of
1348 Wide_Wide_Character.
1349
1350 2008-04-08 Robert Dewar <dewar@adacore.com>
1351
1352 * stringt.adb (Write_String_Table_Entry): Handle wide characters
1353 properly
1354
1355 2008-04-08 Robert Dewar <dewar@adacore.com>
1356
1357 * styleg.adb (Check_Comment): Allow special char after -- in
1358 non-end-of-line case
1359
1360 2008-04-08 Robert Dewar <dewar@adacore.com>
1361
1362 * stylesw.adb: Implement -gnaty + - y options
1363 (Set_GNAT_Style_Check_Options): Includ I in style check string
1364
1365 * stylesw.ads: Add comments for new style switch options
1366
1367 2008-04-08 Sergey Rybin <rybin@adacore.com>
1368
1369 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
1370 to the set of the GNAT components needed by ASIS.
1371
1372 2008-04-08 Bob Duff <duff@adacore.com>
1373
1374 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
1375
1376 2008-04-08 Tristan Gingold <gingold@adacore.com>
1377
1378 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
1379 Improve error message generation.
1380
1381 2008-04-08 Vincent Celier <celier@adacore.com>
1382
1383 * a-direct.adb (Start_Search): Check for Name_Error before checking for
1384 Use_Error, as specified in the RM. Check if directory is open and raise
1385 Use_Error if it is not.
1386
1387 2008-04-08 Vincent Celier <celier@adacore.com>
1388 Robert Dewar <dewar@adacore.com>
1389
1390 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
1391 AAMP_On_Target is set.
1392
1393 * vms_data.ads: Add NOxxx to style check switch list
1394 Add entry COMPONENTS for -gnatVe
1395 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
1396 (/SUBDIRS=).
1397 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
1398 Add qualifiers for gnatmetric coupling options
1399 Add note that -gnata enables all checks
1400 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
1401 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
1402 New warning flag -gnatw.e
1403
1404 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
1405 Add entry for -gnatyN (forgotten before)
1406 Line for new warning switch -gnatw.p
1407 New warning flag -gnatw.e
1408
1409 * gnat_ugn.texi: Add documentation fpr project file switch -aP
1410 Document -gnaty - + y
1411 Replace occurences of "package specification" with "package spec"
1412 Define preprocessing symbols in documentation of gnatprep
1413 Clarify reason for distinguishing overflow checking
1414 Add documentation for project-aware tool switches -eL and --subdirs=
1415 Complete list of configuration pragmas
1416 Specify that, even when gnatmake switch -x is used, mains on the command
1417 line need to be sources of project files.
1418 Editing of gnatcheck/gnatmetric doc.
1419 Add documentation for -gnatw.p/-gnatw.P
1420 Add missing documentation for -fno-inline-functions.
1421 Add documentation for -gnatw.e
1422
1423 * gnat_rm.texi: Add documentation for No_Default_Initialization
1424 Replace occurences of "package specification" with "package spec"
1425 Document use of * in Warnings Off string
1426 Update documentation of alignment/component clauses.
1427 Add documentation for Invalid_Value
1428 Document new consistency rule for Optimize_Alignment
1429 Add documentation for Precondition and Postcondition pragmas
1430 Add documentation for Check and Check_Policy pragmas
1431 Document new Enum_Val attribute
1432 Remove requirement for static string in pragma Assert
1433 Add documentation on GNAT.Time_Stamp
1434
1435 * ug_words: add entry for -gnatVe
1436 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
1437 Add entry for -gnatw.e
1438
1439 * debug.adb: Add missing documentation for d.a flag
1440 Document new -gnatd.a switch.
1441 Add documentation for new gnatmake debug switch -df
1442
1443 2008-04-08 Thomas Quinot <quinot@adacore.com>
1444
1445 * gen-soccon.c: Bump year in copyright notices.
1446
1447 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
1448
1449 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1450
1451 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
1452 Minor reformatting.
1453
1454 2008-04-08 Robert Dewar <dewar@adacore.com>
1455 Bob Duff <duff@adacore.com>
1456
1457 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
1458 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
1459
1460 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
1461
1462 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
1463
1464 * g-trasym.ads: Minor comment improvements
1465
1466 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
1467
1468 * a-sequio.ads, a-direio.ads: improve message for tagged type
1469
1470 * a-strunb.ads: Minor reformatting
1471
1472 * a-tifiio.adb: Minor reformatting
1473
1474 * atree.adb (Fix_Parents): Use clearer names for formals
1475 Cleanup and simplify code
1476 Use named notation in calls
1477
1478 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
1479 confusing calls
1480
1481 * uintp.adb: Used named notation for some confusing calls
1482
1483 * bindusg.adb: Minor change in one line of output
1484
1485 * cstand.adb: Minor reformatting of src representation of Standard
1486
1487 * a-assert.ads: Add comment.
1488
1489 * g-decstr.adb: Fix bad indentation
1490
1491 * expander.ads, expander.adb: Code clean up.
1492
1493 * sem_dist.ads: Minor comment improvement
1494
1495 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
1496 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
1497
1498 * i-cstrin.adb: Fix casing error in formal parameter name in call
1499
1500 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1501
1502 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
1503 mentioned in limited_with_clauses to do create semantic dependencies
1504 even though they appear in the ali file.
1505
1506 2008-04-08 Emmanuel Briot <briot@adacore.com>
1507
1508 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
1509 statement.
1510 (Get_Configuration): New subprogram.
1511
1512 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
1513 These optional parameters help preserve the casing of the project's name
1514 when pretty-printing.
1515
1516 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
1517 Arnaud Charlet <charlet@adacore.com>
1518
1519 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
1520 then use __gnat_set_exit_status to report the returned status code.
1521
1522 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
1523 messages on .NET, since some constructs of the language are not
1524 properly supported.
1525
1526 * gnatlink.adb (Gnatlink): In case the command line is too long for the
1527 .NET linker, gnatlink now concatenate all .il files and pass this to
1528 ilasm.
1529
1530 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1531 Xavier Grave <grave@ipno.in2p3.fr>
1532
1533 * Makefile.in: Add make ifeq define for mips/mipsel support.
1534 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
1535 system-linux-mips.ads: New files.
1536
1537 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1538
1539 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
1540 detect systems using GNU libc.
1541 * gsocket.h: ditto.
1542 * socket.c: ditto.
1543 * adaint.c: ditto.
1544 * link.c: ditto.
1545
1546 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1547
1548 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
1549 constant constant for sysconf call.
1550 (bit_field): New packed boolean type used by cpu_set_t.
1551 (cpu_set_t): New type corresponding to the C type with
1552 the same name. Note that on the Ada side we use a bit
1553 field array for the affinity mask. There is not need
1554 for the C macro for setting individual bit.
1555 (pthread_setaffinity_np): New imported routine.
1556 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
1557 on GNU/kFreeBSD.
1558
1559 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
1562
1563 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1564
1565 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
1566 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
1567 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
1568 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
1569 Return by Depressed Stack Pointer.
1570
1571 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
1572
1573 * decl.c (is_variable_size): Do not unconditionally return false
1574 on non-strict alignment platforms.
1575
1576 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
1577
1578 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
1579 used to process all the variants of the specified type.
1580 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
1581 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
1582 (rest_of_type_decl_compilation): Likewise.
1583 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
1584
1585 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1586
1587 * gigi.h (insert_block): Kill.
1588 * utils.c (insert_block): Kill.
1589
1590 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
1591
1592 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
1593 type has self-referential size, get the size from the initializing
1594 expression directly if it is also a constant whose nominal type
1595 has self-referential size.
1596
1597 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1598
1599 PR ada/33688
1600 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
1601
1602 PR ada/33857
1603 * env.c: Always include crt_externs.h if __APPLE__ is defined.
1604 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
1605
1606 2008-04-01 Andreas Jaeger <aj@suse.de>
1607
1608 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
1609 IP_PKTINFO.
1610
1611 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1612
1613 * g-table.adb, g-tasloc.adb, g-traceb.ads,
1614 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
1615 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
1616 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
1617 gnatlink.adb, gnatmem.adb, gprep.adb,
1618 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
1619 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
1620 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
1621 lib-xref.ads, lib.adb, link.c, live.ads,
1622 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
1623 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
1624 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
1625 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
1626 namet.adb, namet.h, nlists.adb, nlists.ads,
1627 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
1628 osint-c.ads, osint.adb, osint.ads, output.ads,
1629 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
1630 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
1631 par-endh.adb, par-labl.adb, par-prag.adb,
1632 par-sync.adb, par-tchk.adb, par-util.adb,
1633 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
1634 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1635 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
1636 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
1637
1638 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
1639
1640 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
1641 size if it has overflowed.
1642
1643 2008-03-31 Olivier Hainque <hainque@adacore.com>
1644 Eric Botcazou <ebotcazou@adacore.com>
1645
1646 * utils2.c (find_common_type): Document assumption on t1/t2 vs
1647 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
1648
1649 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1650
1651 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
1652 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
1653 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
1654 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
1655 exp_tss.ads, exp_util.adb, exp_util.ads,
1656 exp_vfpt.adb, freeze.adb, freeze.ads,
1657 frontend.adb, g-alleve.adb, g-altcon.adb,
1658 g-altive.ads, g-alveop.ads, g-alvevi.ads,
1659 g-arrspl.adb, g-busorg.ads, g-calend.adb,
1660 g-calend.ads, g-casuti.ads, g-cgideb.adb,
1661 g-comlin.adb, g-comlin.ads, g-curexc.ads,
1662 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
1663 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
1664 g-dyntab.adb, g-encstr.ads, g-excact.ads,
1665 g-except.ads, g-expect.ads, g-heasor.adb,
1666 g-hesora.adb, g-hesorg.adb, g-htable.ads,
1667 g-locfil.ads, g-md5.adb, g-md5.ads,
1668 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
1669 g-pehage.adb, g-pehage.ads, g-regexp.adb,
1670 g-regexp.ads, g-regpat.adb, g-regpat.ads,
1671 g-soccon-aix.ads, g-soccon-darwin.ads,
1672 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
1673 g-soccon-hpux.ads, g-soccon-irix.ads,
1674 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
1675 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
1676 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
1677 g-soccon-solaris.ads, g-soccon-tru64.ads,
1678 g-soccon-vms.ads, g-soccon-vxworks.ads,
1679 g-soccon.ads, g-socket.adb, g-socket.ads,
1680 g-socthi-mingw.adb, g-socthi-vms.adb,
1681 g-socthi-vxworks.adb, g-soliop-mingw.ads,
1682 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
1683 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
1684 typos.
1685
1686 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
1687
1688 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
1689 if the procedure is imported.
1690
1691 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1692
1693 * adaint.c: Fix warnings.
1694
1695 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1696
1697 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
1698
1699 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1700
1701 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
1702 Fix problem of status check for null file
1703
1704 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1705
1706 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
1707 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
1708 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
1709 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
1710 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
1711 comments.
1712
1713 2008-03-26 Thomas Quinot <quinot@adacore.com>
1714
1715 PR ada/33688
1716 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
1717 Get_Socket_Option): Add support for Receive_Packet_Info.
1718
1719 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1720 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1721 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
1722 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
1723 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
1724 new constants SO_REUSEPORT and IP_PKTINFO
1725
1726 2008-03-26 Robert Dewar <dewar@adacore.com>
1727
1728 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
1729 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1730 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
1731 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
1732 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
1733 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
1734 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
1735 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1736 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
1737 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
1738 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
1739 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
1740 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
1741 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
1742 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
1743 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
1744 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
1745 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
1746 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
1747 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
1748 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
1749 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
1750 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
1751 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
1752 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
1753 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
1754 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
1755 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
1756 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
1757 s-tasloc.adb: Minor reformatting.
1758 Update comments.
1759 Remove "used for" sections from comments.
1760
1761 2008-03-26 Robert Dewar <dewar@adacore.com>
1762
1763 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
1764 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
1765 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
1766 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
1767 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
1768 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
1769 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
1770 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
1771 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
1772 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
1773 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
1774 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
1775 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
1776 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
1777 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
1778 double spaced if it fits on one line and otherwise single spaced.
1779
1780 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1781
1782 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
1783 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
1784 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
1785 or task info if the thread could not be created.
1786
1787 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1788
1789 * gnatvsn.ads (Library_Version): Bump to 4.4.
1790 (Current_Year): Bump to 2008.
1791
1792 2008-03-26 Robert Dewar <dewar@adacore.com>
1793
1794 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
1795
1796 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
1797
1798 * debug.adb: Add debug flags d.r and d.v
1799 Add debug flag .T (Optimize_Alignment (Time))
1800 Add debug flag .S (Optimize_Alignment (Space))
1801
1802 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
1803 depending on setting of relevant debug flags.
1804 Replace use of Warnings_Off by Has_Warnings_Off
1805 (Freeze_Entity): In circuit for warning on suspicious convention
1806 actuals, do not give warning if subprogram has same entity as formal
1807 type, or if subprogram does not come from source.
1808 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
1809 if Optimize_Alignment set to Space.
1810
1811 * frontend.adb: Add call to Sem_Warn.Initialize
1812 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
1813 Reset Optimize_Alignment mode from debug switches .S and .T
1814
1815 * layout.adb (Layout_Composite_Object): Rewritten for
1816 Optimize_Aligment pragma.
1817
1818 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
1819 mode.
1820
1821 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
1822
1823 * par-prag.adb (N_Pragma): Chars field removed, use Chars
1824 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
1825 this change. Add entry for pragma Optimize_Alignment
1826
1827 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
1828 (Pragma_Identifier (..
1829 instead, adjustments throughout to accomodate this change.
1830 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
1831 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
1832 Add implementation of pragma Optimize_Alignment
1833
1834 2008-03-26 Vincent Celier <celier@adacore.com>
1835
1836 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
1837 Improve memory usage to avoid use of stack.
1838
1839 2008-03-26 Robert Dewar <dewar@adacore.com>
1840
1841 * a-teioed.ads: Correct value of Default_Fill
1842
1843 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
1844
1845 2008-03-26 Robert Dewar <dewar@adacore.com>
1846
1847 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
1848 with Current_Output (introduce Self).
1849
1850 2008-03-26 Robert Dewar <dewar@adacore.com>
1851
1852 * checks.adb (Ensure_Valid): Capture valid status if possible
1853 (eliminate checks)
1854
1855 2008-03-26 Robert Dewar <dewar@adacore.com>
1856
1857 * stand.ads: Deal with reordering of package standard declarations
1858
1859 * cstand.adb: Put package Standard declarations in proper order
1860
1861 2008-03-26 Robert Dewar <dewar@adacore.com>
1862
1863 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
1864 (Pragma_Identifier (.. instead.
1865 (OK_To_Reorder_Components): New flag
1866 (Has_Entries): Code cleanup.
1867 (Warnings_Off_Used): New flag
1868 (Warnings_Off_Used_Unmodified): New flag
1869 (Warnings_Off_Used_Unreferenced): New flag
1870 (Has_Warnings_Off): New function
1871 (Has_Unmodified): New function
1872 (Has_Unreferenced): New function
1873 (Is_Trivial_Subprogram): New flag
1874 (Is_Static_Dispatch_Table_Entity): New attribute.
1875 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
1876 (more consistent with other similar names)
1877 (Access_Subprogram_Type): New classification function
1878
1879 2008-03-26 Robert Dewar <dewar@adacore.com>
1880
1881 * errout.ads: Document new !! insertion sequence
1882
1883 * errout.adb (N_Pragma): Chars field removed, use Chars
1884 (Pragma_Identifier (.. instead.
1885 Replace use of Warnings_Off by Has_Warnings_Off
1886 (Error_Msg_Internal): Don't delete warning ending in !!
1887
1888 2008-03-26 Robert Dewar <dewar@adacore.com>
1889
1890 * par.adb (Check_No_Right_Paren): Removed no longer used
1891
1892 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
1893 (Pragma_Identifier (.. instead.
1894
1895 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
1896
1897 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
1898 par-ch4.adb: Minor improvements in error recovery and messages.
1899
1900 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
1901 non-serious
1902
1903 * par-ch9.adb: Minor improvements in error recovery and messages
1904 (P_Protected): Better error recovery for "protected type x;"
1905
1906 * par-util.adb: Minor improvements in error recovery and messages
1907 (Check_No_Right_Paren): Removed no longer used
1908
1909 2008-03-26 Ed Schonberg <schonberg@adacore.com>
1910
1911 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
1912 that the prefix of an attribute is the type of the aggregate being
1913 expanded.
1914
1915 2008-03-26 Javier Miranda <miranda@adacore.com>
1916 Robert Dewar <dewar@adacore.com>
1917
1918 * exp_attr.adb (N_Pragma): Chars field removed.
1919 (Expand_N_Attribute_Reference): If the designated type associated with
1920 attribute 'Unrestricted_Access is a subprogram entity then replace it
1921 by an E_Subprogram_Type itype.
1922 Implement attribute Old
1923
1924 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
1925
1926 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
1927 Replace call to
1928 New_Internal_Entity by call to Create_Itype to centralize calls
1929 building itypes, ad propagate the convention of the designated
1930 subprogram. In addition, disable the machinery cleaning constant
1931 indications from all entities in current scope when 'Unrestricted_Access
1932 corresponds with a node initializing a dispatch table slot.
1933 (Analyze_Attribute): Parameterless attributes returning a string or a
1934 type will not be called with improper arguments, so we can remove junk
1935 code that was dealing with this case.
1936 Implement attribute Old
1937
1938 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
1939 Add entry for pragma Optimize_Alignment
1940 New standard names Sync and Synchronize
1941
1942 2008-03-26 Robert Dewar <dewar@adacore.com>
1943 Arnaud Charlet <charlet@adacore.com>
1944
1945 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
1946 stmt.
1947 (No_Exception_Propagation_Active): New function.
1948 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
1949 Update comments, and review all uses of No_Exception_Propagation, which
1950 are now correct and in sync with what gigi expects.
1951
1952 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
1953 function.
1954 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
1955 Update comments, and review all uses of No_Exception_Propagation, which
1956 are now correct and in sync with what gigi expects.
1957
1958 2008-03-26 Ed Schonberg <schonberg@adacore.com>
1959
1960 * sem_ch3.adb (Access_Definition): If the access type is the return
1961 result of a protected function, create an itype reference for it
1962 because usage will be in an inner scope from the point of declaration.
1963 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
1964 OK_To_Reorder_Components.
1965 (Make_Index): If an overloaded range includes a universal integer
1966 interpretation, resolve to Standard.Integer.
1967 (Analyze_Subtype_Indication): Copy Convention to subtype
1968 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
1969 limited an synchronized progenitors in type declaration and private
1970 extension declarations.
1971
1972 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
1973 protected subprogram body, determine proper scope from subprogram
1974 declaration.
1975
1976 2008-03-26 Robert Dewar <dewar@adacore.com>
1977
1978 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
1979 No_Run_Time_Mode
1980
1981 2008-03-26 Gary Dismukes <dismukes@adacore.com>
1982
1983 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
1984 of a heap allocator for a limited unconstrained function return when
1985 resstriction No_Allocators is active.
1986 (Analyze_Allocator): The restriction No_Allocators is now only checked
1987 on allocators that have Comes_From_Source set, as per RM-H.4(7).
1988
1989 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
1990 of a heap allocator for a limited unconstrained function return when
1991 resstriction No_Allocators is active.
1992 (Analyze_Allocator): The restriction No_Allocators is now only checked
1993 on allocators that have Comes_From_Source set, as per RM-H.4(7).
1994 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
1995 operands are fixed-point types, the universal_fixed predefined operation
1996 is used, regardless of whether the operand type (s) have a primitive
1997 operation of the same name.
1998
1999 2008-03-26 Javier Miranda <miranda@adacore.com>
2000
2001 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
2002 Is_Static_Dispatch_Table
2003 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
2004 to Exchange_Declarations to exchange the private and full-view. Bug
2005 found working in this issue.
2006 (Expand_Dispatching_Call): Propagate the convention of the subprogram
2007 to the subprogram pointer type.
2008 (Make_Secondary_DT): Replace generation of Prim'Address by
2009 Address (Prim'Unrestricted_Access)
2010 (Make_DT): Replace generation of Prim'Address by
2011 Address (Prim'Unrestricted_Access)
2012 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
2013 simple call form for single entry.
2014 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
2015 tables of predefined primitives).
2016 (Make_Secondary_DT): Add support to handle access to dispatch tables of
2017 predefined primitives.
2018 (Make_Tags): Add entities to Access_Dispatch_Table associated with
2019 access to dispatch tables containing predefined primitives.
2020
2021 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
2022 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
2023 this change.
2024 (Register_Predefined_DT_Entry): Updated to handle the new contents
2025 of attribute Access_Disp_Table (pointers to dispatch tables containing
2026 predefined primitives).
2027
2028 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
2029 subprogram.
2030 (Find_Interface_ADT): Updated to skip the new contents of attribute
2031 Access_Dispatch_Table (pointers to dispatch tables containing predefined
2032 primitives).
2033
2034 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
2035 concurrent types.
2036 (Set_Convention): Use new function Is_Access_Subprogram_Type
2037 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
2038 Access_Dispatch_Table (pointers to dispatch tables containing predefined
2039 primitives).
2040
2041 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
2042 expanded code avoiding calls to Build_Predef_Prims.
2043 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
2044 call to Build_Get_Predefined_Prim_Op_Address.
2045
2046 2008-03-26 Javier Miranda <miranda@adacore.com>
2047
2048 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
2049 subprogram Corresponding_Runtime_Package to know the runtime package
2050 that will provide support to a given protected type.
2051
2052 * exp_ch9.adb (Add_Private_Declarations,
2053 Build_Protected_Subprogram_Call,
2054 Build_Protected_Entry, Build_Simple_Entry_Call,
2055 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
2056 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
2057 cleanup using the new centralized subprogram Corresponding_Runtime
2058 Package to know the runtime package that provides support to
2059 a given protected type.
2060
2061 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2062
2063 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
2064 assignment is within the initialization procedure for a packed array,
2065 and Initialize_Scalars is enabled, compile right-hand side with checks
2066 off, because the value is purposely out of range.
2067
2068 2008-03-26 Vincent Celier <celier@adacore.com>
2069
2070 * gnatcmd.adb: Add processing for GNAT SYNC
2071
2072 * vms_conv.ads: (Command_Type): Add command Sync
2073
2074 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
2075
2076 * vms_data.ads: Add entries for -gnatw.w
2077 Add qualifier for gnatstub --header-file option
2078 Add switches for GNAT SYNC
2079
2080 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
2081 (Add_Package_Name): New procedure
2082 (Package_Name_List): New function
2083 (Initialize): Add known package names to the list
2084 (Register_New_Package): Add the new package name to the list
2085
2086 2008-03-26 Robert Dewar <dewar@adacore.com>
2087
2088 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
2089 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
2090 Raise_Exception by "raise with" construct.
2091
2092 2008-03-26 Pascal Obry <obry@adacore.com>
2093
2094 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
2095 supported platforms.
2096
2097 * Makefile.rtl: Add g-sercom.o.
2098
2099 * impunit.adb: Add g-sercom.adb.
2100
2101 * s-crtl.ads (open): New routine.
2102 (close): Likewise.
2103 (write): Likewise.
2104
2105 * s-osinte-mingw.ads (BYTE): New type.
2106 (CHAR): Likewise.
2107 (OVERLAPPED): Likewise.
2108 (GENERIC_READ): New constant.
2109 (GENERIC_WRITE): Likewise.
2110 (OPEN_EXISTING): Likewise.
2111 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
2112 type instead.
2113 (CreateFile): New routine.
2114 (WriteFile): Likewise.
2115 (ReadFile): Likewise.
2116 (CloseHandle): Move next to the other file oriented routines.
2117
2118 * g-sercom.ads: New unit.
2119
2120 * g-sercom.adb: Default implementation, calls to this unit will raise
2121 a program error exception.
2122
2123 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
2124 GNU/Linux implementations.
2125
2126 2008-03-26 Robert Dewar <dewar@adacore.com>
2127
2128 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
2129
2130 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
2131 unchecked conversion for different conventions only for subprogram
2132 pointers or on VMS.
2133
2134 2008-03-26 Vincent Celier <celier@adacore.com>
2135
2136 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
2137 to check if the specified object file is correct.
2138
2139 2008-03-26 Thomas Quinot <quinot@adacore.com>
2140
2141 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
2142 Comes_From_Source to exclude primitives from being checked. We want to
2143 exclude predefined primitives only, so use the appropriate specific
2144 predicate. Also, flag a formal parameter of an anonymous
2145 access-to-subprogram type as illegal for a primitive operation of a
2146 remote access to class-wide type.
2147
2148 2008-03-26 Vincent Celier <celier@adacore.com>
2149
2150 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
2151 known, check if it may be a missspelling of a known package name. In
2152 not verbose, not mode, issue warnings only if the package name is a
2153 possible misspelling.
2154 In verbose mode, always issue a warning for a not known package name,
2155 plus a warning if the name is a misspelling of a known package name.
2156
2157 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
2158 limited withs or limited withs are parse during one call.
2159 (Parse_Single_Project): Post parse context clause in two passes: non
2160 limited withs before current project and limited withs after current
2161 project.
2162
2163 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
2164 project with the name With_Name, even if it is only extended indirectly.
2165 (Recursive_Process): Process projects in order: first single withs, then
2166 current project, then limited withs.
2167
2168 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
2169 project with the name With_Name, even if it is only extended indirectly.
2170
2171 2008-03-26 Robert Dewar <dewar@adacore.com>
2172
2173 * scn.adb (Initialize_Scanner): Format messages belong on standard error
2174
2175 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2176
2177 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
2178 a generic subprogram that is imported, do not attempt to compile
2179 non-existent body.
2180
2181 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
2182 imported, do not generate a raise_program_error for the non-existent
2183 body.
2184 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
2185 perform minimal name resolution on the generic to avoid spurious
2186 warnings.
2187 (Find_Actual_Type): the designated type of the actual in a child unit
2188 may be declared in a parent unit without being an actual.
2189
2190 2008-03-26 Robert Dewar <dewar@adacore.com>
2191
2192 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
2193 * sinfo.ads, sinfo.adb (From_At_End): New flag
2194
2195 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2196
2197 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
2198 operations that have an interface parameter.
2199 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
2200 Don't treat No_Return call as raise.
2201
2202 * sem_disp.adb (Check_Dispatching_Operations): apply check for
2203 non-primitive interface primitives to access parameters, not to all
2204 parameters of an access type.
2205
2206 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2207
2208 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
2209 declarations of a parent unit are made visible when compiling a child
2210 instance, the parent is not a hidden open scope, even though it may
2211 contain other pending instance.
2212
2213 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
2214 hidden open scope for some child instance, it does affect the
2215 visibility status of other stach entries.
2216 (Analyze_Object_Renaming): Check that a class-wide object cannot be
2217 renamed as an object of a specific type.
2218
2219 2008-03-26 Robert Dewar <dewar@adacore.com>
2220
2221 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
2222 recursion and raise SE directly.
2223 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
2224 set for formal type for IN mode parameter.
2225
2226 2008-03-26 Robert Dewar <dewar@adacore.com>
2227
2228 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
2229 (Initialize): New procedure
2230 (Output_Warnings_Off_Warnings): New procedure
2231 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
2232 (Output_Non_Modifed_In_Out_Warnings): Ditto
2233 (Warn_On_Unreferenced_Entity): Ditto
2234
2235 2008-03-26 Vincent Celier <celier@adacore.com>
2236
2237 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
2238 readable.
2239
2240 2008-03-26 Matthew Heaney <heaney@adacore.com>
2241
2242 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
2243 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
2244 Marked with clauses as private, and controlled operations as overriding
2245
2246 2008-03-26 Robert Dewar <dewar@adacore.com>
2247
2248 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
2249
2250 2008-03-26 Robert Dewar <dewar@adacore.com>
2251
2252 * back_end.adb, back_end.ads: Minor reformatting
2253
2254 * bindgen.adb: Minor clarification of comments
2255
2256 * fname.ads: Minor comment fixes
2257
2258 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
2259 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
2260
2261 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
2262 xsnames.adb: Remove warnings off pragma no longer needed
2263
2264 * a-catizo.ads, a-calari.ads, a-calfor.adb,
2265 a-calfor.ads: Fix header.
2266
2267 2008-03-26 Tristan Gingold <gingold@adacore.com>
2268
2269 * init.c: Do not adjust pc for HPARITH on alpha/vms.
2270
2271 2008-03-26 Robert Dewar <dewar@adacore.com>
2272
2273 * lib-xref.adb: (OK_To_Set_Reference): New function
2274 (Generate_Reference): Don't set referenced from occurrence in Warnings,
2275 Unmodified, or Unreferenced pragma
2276
2277 2008-03-26 Robert Dewar <dewar@adacore.com>
2278
2279 * alloc.ads: Add entries for Warnings_Off_Pragmas table
2280
2281 2008-03-26 GNAT Script <nobody@adacore.com>
2282
2283 * Make-lang.in: Makefile automatically updated
2284
2285 2008-03-26 Robert Dewar <dewar@adacore.com>
2286
2287 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
2288 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
2289 removed, use Chars (Pragma_Identifier (.. instead, adjustments
2290 throughout to accomodate this change.
2291
2292 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
2293
2294 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
2295 Einfo.Set_Needs_Debug_Info)
2296
2297 2008-03-26 Robert Dewar <dewar@adacore.com>
2298
2299 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
2300 Add description for the new gnatstub option '--header-file'
2301 clarification of -gnatwz/-gnatwZ
2302 Add a "Irix-Specific Considerations" section to document the need to
2303 set LD_LIBRARY_PATH when using the default shared runtime library.
2304 Added documentation for both gcov and gprof.
2305
2306 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
2307 messages that are not suppressed when clients are compiled.
2308 Add documentation of s-pooglo s-pooloc
2309 Document the new GNAT.Serial_Communications API.
2310 Add documentation for 'Old attribute
2311 Add description of pragma Optimize_Alignment
2312
2313 * ug_words: Add entries for -gnatw.w -gnatw.W
2314
2315 * usage.adb: Add line for -gnatw.w (warn on warnings off)
2316
2317 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
2318
2319 Revert
2320 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
2321 PR ada/35186
2322 * decl.c (maybe_pad_type): Avoid padding an integral type when
2323 bumping its alignment is sufficient.
2324
2325 2008-03-25 Arnaud Charlet <charlet@adacore.com>
2326
2327 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
2328 Fix wrong formatting (lines too long)
2329
2330 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2331
2332 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
2333 a-calend-vms.adb, a-calend.adb, a-calend.ads,
2334 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
2335 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
2336 a-cohama.ads, a-comlin.ads, a-coorse.adb,
2337 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
2338 a-except-2005.ads, a-except.adb, a-except.ads,
2339 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
2340 a-exextr.adb, a-filico.ads, a-finali.ads,
2341 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
2342 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
2343 a-sequio.ads, a-strbou.ads, a-strfix.adb,
2344 checks.adb, exp_ch3.adb, exp_ch4.adb,
2345 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
2346 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
2347 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
2348 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
2349 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
2350
2351 2008-03-24 Robert Dewar <dewar@adacore.com>
2352
2353 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
2354 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
2355 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
2356 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
2357 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
2358 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
2359 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2360 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
2361 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
2362 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
2363 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
2364 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
2365 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
2366 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2367 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2368 double spaced if it fits on one line and otherwise single spaced.
2369
2370 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2371
2372 PR documentation/15479
2373 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
2374 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
2375 (doc/gnat_ugn.info): Renamed from ...
2376 (doc/gnat_ugn_unw.info): ... this.
2377 (doc/gnat_ugn.dvi): Renamed from ...
2378 (doc/gnat_ugn_unw.dvi): ... this.
2379 (doc/gnat_ugn.pdf): Renamed from ...
2380 (doc/gnat_ugn_unw.pdf): ... this.
2381 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
2382 Adjusted.
2383 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
2384 unconditionally to gnat_ugn.info. Fix cross references to the
2385 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
2386 and GNU make manuals to be proper texinfo links.
2387 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
2388
2389 2008-03-21 Olivier Hainque <hainque@adacore.com>
2390
2391 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
2392 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
2393
2394 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
2395
2396 * trans.c (addressable_p): Add notes on addressability issues.
2397
2398 2008-03-21 Olivier Hainque <hainque@adacore.com>
2399 Ed Schonberg <schonberg@adacore.com>
2400
2401 * trans.c (addressable_p): Accept COND_EXPR when both arms
2402 are addressable.
2403 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
2404 (call_to_gnu): Do not use name reference in the error message
2405 for a misaligned by_reference_parameter. The actual may be a
2406 general expression.
2407
2408 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2409
2410 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2411
2412 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2413
2414 * gnat_rm.texi (Implementation Defined Characteristics)
2415 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
2416 appropriate.
2417 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
2418 (Switches for gnatchop, Installing a library): Likewise.
2419
2420 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
2421
2422 * trans.c (emit_range_check): Do not emit the check if the base type
2423 of the expression is the type against which its range must be checked.
2424
2425 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2426
2427 * decl.c (maybe_pad_type): Use value_factor_p.
2428
2429 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2430
2431 * lang.opt (nostdlib): Move around.
2432 * misc.c (gnat_handle_option): Fix formatting.
2433 (gnat_dwarf_name): Move around.
2434 * trans.c (Case_Statement_to_gnu): Fix formatting.
2435 (gnat_to_gnu): Likewise.
2436 * utils.c (aggregate_type_contains_array_p): Likewise.
2437 (create_subprog_decl): Likewise.
2438
2439 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2440
2441 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
2442 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
2443
2444 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2445
2446 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
2447 BIGGEST_ALIGNMENT when capping the alignment of records with
2448 strict alignment and size clause.
2449
2450 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2451
2452 * lang-specs.h: Pass -gnatwa if -Wall is passed.
2453 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
2454 and -Wuninitialized.
2455 (gnat_post_options): Clear warn_unused_parameter.
2456
2457 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2458
2459 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
2460 aligned bit-fields, bumping the alignment of the record type if deemed
2461 profitable.
2462 (value_factor_p): Return false instead of 0.
2463
2464 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2465
2466 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
2467 for scalar types with small alignment.
2468
2469 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2470
2471 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
2472 from that of the front-end's end label.
2473 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
2474 from that of the loop label.
2475
2476 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2477
2478 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
2479 comment for the packed array type case.
2480 * utils.c (build_template): Use a loop to strip padding or
2481 containing records for justified modular types.
2482
2483 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2484
2485 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
2486 large alignments specified for types.
2487 (validate_alignment): Minor cleanup.
2488
2489 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2490
2491 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
2492 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
2493 the component for packing, if possible, as well as if a component
2494 size clause is specified.
2495 <E_Record_Subtype>: For an array type used to implement a packed
2496 array, get the component type from the original array type.
2497 Try to get a smaller form of the component for packing, if possible,
2498 as well as if a component size clause is specified.
2499 (round_up_to_align): New function.
2500 (make_packable_type): Add in_record parameter.
2501 For a padding record, preserve the size. If not in_record and the
2502 size is too large for an integral mode, attempt to shrink the size
2503 by lowering the alignment.
2504 Ditch the padding bits of the last component.
2505 Compute sizes and mode manually, and propagate the RM size.
2506 Return a BLKmode record type if its size has shrunk.
2507 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
2508 Use Original_Array_Type to retrieve the type in case of an error.
2509 Adjust call to make_packable_type.
2510 (gnat_to_gnu_field): Likewise.
2511 (concat_id_with_name): Minor tweak.
2512 * trans.c (larger_record_type_p): New predicate.
2513 (call_to_gnu): Compute the nominal type of the object only if the
2514 parameter is by-reference. Do the conversion actual type -> nominal
2515 type if the nominal type is a larger record.
2516 (gnat_to_gnu): Do not require integral modes on the source type to
2517 avoid the conversion for types with identical names.
2518 (addressable_p): Add gnu_type parameter. If it is specified, do not
2519 return true if the expression is not addressable in gnu_type.
2520 Adjust recursive calls.
2521 * utils.c (finish_record_type): Remove dead code.
2522
2523 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
2524
2525 PR ada/35186
2526 * decl.c (maybe_pad_type): Avoid padding an integral type when
2527 bumping its alignment is sufficient.
2528
2529 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2530
2531 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
2532 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
2533 statement.
2534 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
2535 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
2536 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
2537 code output strings.
2538 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
2539 system-vms_64.ads: Fix typos in ada source code comments.
2540 * sinfo-cn.adb: Remove incomplete sentence.
2541
2542 PR documentation/15479
2543 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
2544
2545 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
2546
2547 PR ada/22255
2548 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
2549
2550 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
2551
2552 PR ada/34799
2553 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
2554 that underlying type is present.
2555
2556 2008-02-26 Tom Tromey <tromey@redhat.com>
2557
2558 * misc.c (internal_error_function): Remove test of
2559 USE_MAPPED_LOCATION.
2560 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
2561 (Sloc_to_locus): Remove old location code.
2562
2563 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2564
2565 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
2566 `i.e.' by adding comma or `@:' as appropriate.
2567 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
2568 plain characters `C', use `@samp{C}'.
2569 * gnat_ugn.texi (File Naming Rules, About gnatkr)
2570 (Krunching Method): Likewise.
2571
2572 * gnat_ugn.texi (Conventions): List environment variables and
2573 metasyntactic variables.
2574 (Compiling Programs): Fix notation of metasyntactic variables.
2575 Add @file where appropriate. Use @file for file extensions,
2576 @samp for strings.
2577 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
2578 instead of @file, @env instead of @code.
2579
2580 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2581
2582 PR documentation/15479
2583 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
2584 and `...' with `@dots{}' or `@enddots{}'.
2585
2586 PR documentation/15479
2587 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
2588 use @command instead of @code, @option instead of @samp or @code,
2589 @code instead of @var, @samp instead of @file.
2590
2591 PR documentation/15479
2592 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
2593 in Makefile rules, by using `&&' rather than `;'.
2594
2595 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2596
2597 PR documentation/15479
2598 * gnat_ugn.texi: In non-code, avoid space before colon.
2599 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
2600 (Examples of gnatxref Usage): Use @command{vi} instead of
2601 @file{vi}.
2602 (Character Set Control): Do not use @code for UTF-8.
2603 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
2604 use @code for IEEE.
2605 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
2606 sample.
2607 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
2608
2609 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
2610
2611 PR ada/35143
2612 * env.c: Add __rtems__ to if defined.
2613 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
2614 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
2615 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
2616 pragma Convention as required.
2617 * gsocket.h: Make compile in and out of RTS.
2618 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
2619 Use g-soccon-rtems.ads.
2620 * g-soccon-rtems.ads, system-rtems.ads: New files.
2621
2622 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2623
2624 PR other/35107
2625 * Make-lang.in (gnat1): Add $(GMPLIBS).
2626
2627 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
2628
2629 * decl.c (components_to_record): Improve comment.
2630
2631 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
2632
2633 * decl.c (components_to_record): Do not reuse the empty union type
2634 if there is a representation clause on the record.
2635 * trans.c (addressable_p): Return true for INTEGER_CST.
2636
2637 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
2638
2639 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
2640 in pointer arithmetics.
2641 * utils2.c (build_allocator): Likewise.
2642
2643 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
2644
2645 * utils.c (build_function_stub): Properly build the call expression.
2646
2647 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
2648
2649 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
2650 before converting the expression to the type of the object.
2651 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
2652 Stabilize constructors for special wrapping types.
2653
2654 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
2655
2656 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
2657 when necessary. Merge some conditional statements. Update comments.
2658 Rename unchecked_convert_p local variable to suppress_type_conversion.
2659 Do not suppress conversions in the In case.
2660 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
2661 into account on non strict-alignment platforms.
2662
2663 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
2664
2665 * utils.c (aggregate_type_contains_array_p): New predicate.
2666 (create_field_decl): In a packed record, force byte alignment
2667 for fields without specified position that contain an array.
2668
2669 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
2670
2671 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
2672
2673 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
2674
2675 PR ada/34466
2676 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
2677 sysconf call.
2678 (bit_field): New packed boolean type used by cpu_set_t.
2679 (cpu_set_t): New type corresponding to the C type with
2680 the same name. Note that on the Ada side we use a bit
2681 field array for the affinity mask. There is not need
2682 for the C macro for setting individual bit.
2683 (pthread_setaffinity_np): New imported routine.
2684
2685 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
2686
2687 PR ada/34647
2688 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2689 on OpenBSD as is done on other BSD systems.
2690
2691 PR ada/34645
2692 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
2693 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
2694 I/O.
2695
2696 PR ada/34644
2697 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
2698 clearenv().
2699
2700 PR ada/34646
2701 * init.c (__gnat_error_handler, __gnat_install_handler,
2702 __gnat_init_float): Define for OpenBSD.
2703
2704 * initialize.c (__gnat_initialize): Define for OpenBSD.
2705
2706 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
2707
2708 PR ada/34553
2709 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2710 instead of mktemp() or tmpnam() on NetBSD.
2711
2712 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
2713
2714 * trans.c (call_to_gnu): Make the temporary for non-addressable
2715 In parameters passed by reference.
2716 (addressable_p): Return true for STRING_CST and CALL_EXPR.
2717
2718 2007-12-19 Robert Dewar <dewar@adacore.com>
2719
2720 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
2721 Add pragma Warnings (Off) for unassigned IN OUT arguments
2722
2723 * sem_warn.adb (Output_Reference): Suppress messages for internal names
2724 (Check_References): Extensive changes to tune up warnings
2725 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
2726 (Has_Pragma_Unmodifed_Check_Spec): New function
2727 (Check_References): Implement pragma Unmodified
2728 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
2729
2730 * par-prag.adb: Dummy entry for pragma Unmodified
2731
2732 * sem_prag.adb: Implement pragma Unmodified
2733
2734 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
2735 (Proc_Next_Component_Or_Discriminant): Fix typo.
2736 Update comments.
2737
2738 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
2739 Unmodified.
2740 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
2741 because the former already takes care of discarding the result.
2742 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
2743 Add comment.
2744
2745 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
2746
2747 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
2748
2749 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
2750 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
2751 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
2752 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
2753 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2754 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2755 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
2756 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
2757 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
2758 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
2759 (Dynamic_Trampolines_Used): Delete.
2760
2761 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
2762 Turn on stack probing mechanism on LynxOS.
2763
2764 2007-12-19 Bob Duff <duff@adacore.com>
2765
2766 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
2767 the resulting tail recursion by hand. This prevents running out of
2768 memory on deeply nested concatenations, since Field2 is where the left
2769 operand of concatenations is stored.
2770 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
2771 clarify that it can only return OK or Abandon.
2772
2773 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
2774 operand by iteration, in order to avoid running out of memory on
2775 deeply-nested concatenations. Use the Parent pointer to get back up the
2776 tree.
2777 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
2778 Resolve_Op_Concat_Rest): New procedures split out of
2779 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
2780 clearer.
2781
2782 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
2783 Traverse_Func, because the former already takes care of discarding the
2784 result.
2785
2786 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
2787 because the former already takes care of discarding the result.
2788 (Remove_Warning_Messages): Use appropriate subtype for Status and
2789 Discard
2790
2791 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2792
2793 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
2794 discriminants forces expansion of the aggregate into assignments.
2795 (Init_Record_Controller): If the type of the aggregate is untagged and
2796 is not inherently limited, the record controller is not limited either.
2797
2798 2007-12-19 Robert Dewar <dewar@adacore.com>
2799
2800 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
2801 handling compile time known size of record or array (case of front end
2802 layout active, e.g. in GNAAMP).
2803
2804 2007-12-19 Javier Miranda <miranda@adacore.com>
2805
2806 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
2807 that forces the construction of static dispatch tables in case of
2808 record subtypes.
2809
2810 2007-12-19 Robert Dewar <dewar@adacore.com>
2811
2812 * exp_ch9.adb (Null_Statements): Moved to library level
2813 (Trivial_Accept_OK): New function
2814 (Expand_Accept_Declaration): Use Trivial_Accept_OK
2815 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
2816
2817 2007-12-19 Robert Dewar <dewar@adacore.com>
2818
2819 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
2820 in complex case where array is Volatile.
2821
2822 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2823
2824 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
2825 properly the Ada2005 rules concerning when the current instance of a
2826 record type is aliased.
2827
2828 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2829
2830 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
2831 mangled declaration
2832 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
2833 declarations.
2834 (P_Variant_Part): Cleaner patch for parenthesized discriminant
2835
2836 2007-12-19 Vincent Celier <celier@adacore.com>
2837
2838 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
2839 package is not known
2840
2841 * prj-attr.ads (Unknown_Package): New constant
2842 Do not crash when an unknown package is in several projects
2843
2844 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
2845 ignored
2846
2847 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
2848 existing package Language_Processing.
2849
2850 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2851 Gary Dismukes <dismukes@adacore.com>
2852 Samuel Tardieu <sam@rfc1149.net>
2853
2854 PR ada/15803, ada/15805
2855 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
2856 illegal access subtypes when there is a constrained partial view.
2857 (Check_For_Premature_Usage): New procedure inside
2858 Access_Subprogram_Declaration for checking that an access-to-subprogram
2859 type doesn't reference its own name within any formal parameters or
2860 result type (including within nested anonymous access types).
2861 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
2862 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
2863 context is an access_to_variable, the expression cannot be an
2864 access_to_constant.
2865
2866 2007-12-19 Bob Duff <duff@adacore.com>
2867
2868 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
2869 (Analyze_Concatenation): Use iteration instead of recursion in order
2870 to avoid running out of stack space for deeply nested concatenations.
2871
2872 2007-12-19 Ed Schonberg <schonberg@adacore.com>
2873 Gary Dismukes <dismukes@adacore.com>
2874
2875 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
2876 whose renamed entity is a subprogram that requires overriding.
2877 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
2878 issuing an error for premature usage and issue a message that says
2879 'type' rather than 'object'.
2880
2881 2007-12-19 Gary Dismukes <dismukes@adacore.com>
2882
2883 PR ada/34149
2884 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
2885 presence of a statically tagged operand (Present (Static_Tag)) with
2886 test for Indeterm_Ancestor_Call when determining whether to propagate
2887 the static tag to tag-indeterminate operands (which forces dispatching
2888 on such calls).
2889 (Check_Controlling_Formals): Ada2005, access parameters can have
2890 defaults.
2891 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
2892 not insert subprogram in list of primitive operations if already there.
2893
2894 2007-12-19 Tristan Gingold <gingold@adacore.com>
2895
2896 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
2897 global variable.
2898
2899 2007-12-19 Thomas Quinot <quinot@adacore.com>
2900
2901 Part of PR ada/33688
2902 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
2903 datagram info on Linux.
2904
2905 2007-12-19 Vincent Celier <celier@adacore.com>
2906
2907 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
2908 that the source path name is always found in the dependencies.
2909
2910 2007-12-19 Robert Dewar <dewar@adacore.com>
2911
2912 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
2913 Fix name of Wide_Wide_Latin_1/9 file names
2914 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
2915 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
2916 Add missing documentation for Ada.Command_Line.Response_File
2917 Update list of warning letters for Warnings pragma
2918 Add documentation for pragma Unmodified
2919
2920 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
2921
2922 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
2923
2924 2007-12-17 Arnaud Charlet <charlet@adacore.com>
2925
2926 * s-vxwork-alpha.ads: Removed, no longer used.
2927
2928 2007-12-15 Jakub Jelinek <jakub@redhat.com>
2929
2930 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
2931
2932 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
2933
2934 PR ada/34360
2935 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
2936 mlib-tgt-specific.adb.
2937
2938 2007-12-13 Bob Duff <duff@adacore.com>
2939
2940 * trans.c (Attribute_to_gnu): Check for violations of the
2941 No_Implicit_Dynamic_Code restriction. This checking used to be done in
2942 the front end, but is moved here so we can make it more accurate.
2943
2944 2007-12-13 Pascal Obry <obry@adacore.com>
2945
2946 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
2947 version is provided for older GNU/Linux distribution not
2948 supporting thread affinity sets.
2949
2950 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
2951 call.
2952 (bit_field): New packed boolean type used by cpu_set_t.
2953 (cpu_set_t): New type corresponding to the C type with
2954 the same name. Note that on the Ada side we use a bit
2955 field array for the affinity mask. There is not need
2956 for the C macro for setting individual bit.
2957 (pthread_setaffinity_np): New imported routine.
2958
2959 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
2960 no null.
2961 (Create_Task): Set the processor affinity mask if information
2962 is present.
2963
2964 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
2965
2966 2007-12-13 Robert Dewar <dewar@adacore.com>
2967
2968 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
2969 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
2970 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
2971 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
2972 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
2973 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
2974 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
2975 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
2976 for subprogram pointers.
2977
2978 * g-ctrl_c.adb: New file.
2979
2980 * g-ctrl_c.ads (Install_Handler): New body.
2981
2982 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
2983 instead of obsolete function Is_Always_Inlined.
2984 (Freeze_Entity): check for tagged type in imported C subprogram
2985 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
2986 (Freeze_Entity): check for convention Ada subprogram pointer in
2987 imported C subprogram.
2988 (Freeze_Fixed_Point_Type): In the case of a base type where the low
2989 bound would be chopped off and go from negative to zero, force
2990 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
2991 bound) so that the size computation for the base type will take
2992 negative values into account.
2993
2994 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
2995 Bob Duff <duff@adacore.com>
2996 Tristan Gingold <gingold@adacore.com>
2997
2998 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
2999 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
3000 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
3001 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
3002 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
3003 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
3004 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
3005 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
3006 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
3007 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
3008 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
3009 (Always_Compatible_Rep): New flag to control trampolines globally.
3010 (Dynamic_Trampolines_Used): New flag for implementing the
3011 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
3012 and not yet set correctly for some targets).
3013
3014 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
3015 Simply indirectly call s-stchop when a task is created.
3016
3017 * ali.ads:
3018 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
3019 appears as an argument (entries A) in an ALI file.
3020
3021 * fe.h (Stack_Check_Limits): Declare new target parameter.
3022 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
3023
3024 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
3025 This variable is declared in C to be sure not subject to elaboration
3026 code.
3027 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
3028 Storage_Error.
3029
3030 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
3031 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
3032
3033 * s-stchop.ads: Add comments.
3034
3035 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
3036 limit method of stack checking.
3037
3038 * s-stchop-limit.ads: New file.
3039
3040 2007-12-13 Robert Dewar <dewar@adacore.com>
3041
3042 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
3043 a-cihama.adb, g-awk.adb,
3044 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
3045 warnings
3046
3047 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
3048
3049 * sem.adb: Update handling of assigned value/unreferenced warnings
3050
3051 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
3052
3053 * lib-xref.ads: Improve documentation for k xref type
3054
3055 * lib-xref.adb:
3056 Update handling of assigned value/unreferenced warnings
3057 (Generate_Reference): Warning for reference to entity for which a
3058 pragma Unreferenced has been given should be unconditional.
3059 If the entity is a discriminal, mark the original
3060 discriminant as referenced.
3061
3062 * sem_warn.ads, sem_warn.adb
3063 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
3064 no entities referenced in package
3065 (Check_One_Unit): Don't give message about no entities referenced in
3066 a package if a pragma Unreferenced has appeared.
3067 Handle new warning flag -gnatw.a/-gnatw.A
3068 Update handling of assigned value/unreferenced warnings
3069
3070 * atree.h: Add flags up to Flag247
3071 (Flag231): New macro.
3072
3073 2007-12-13 Jose Ruiz <ruiz@adacore.com>
3074
3075 * adaint.h: (__gnat_plist_init): Not defined for RTX.
3076
3077 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
3078 RTX systems.
3079
3080 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
3081 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
3082 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
3083 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
3084
3085 * mingw32.h:
3086 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
3087
3088 * sysdep.c (winflush_function for RTX): Procedure that does nothing
3089 since we only have problems with Windows 95/98, which are not
3090 supported by RTX.
3091 (__gnat_ttyname): Return the empty string on Nucleus, just as
3092 done on vxworks.
3093
3094 2007-12-13 Robert Dewar <dewar@adacore.com>
3095
3096 * a-textio.adb, a-textio.ads:
3097 Extensive changes to private part for wide character encoding
3098
3099 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
3100 (Look_Ahead): Fix mishandling of encoded sequences
3101 Move declaration of Wch_Con to private part (should not be visible)
3102
3103 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
3104 UTF-8. Probably this is never used, but if it is, brackets is
3105 clearly correct.
3106
3107 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
3108 setting wide character encoding for no main program case and when
3109 encoding is specified using -W?
3110 Initialize stack limit of environment task if stack limit method of
3111 stack checking is enabled.
3112 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
3113 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
3114 (Get_Main_Unit_Name): New function.
3115 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
3116 (Gen_Output_File): Set Bind_Main_Program to True for .NET
3117
3118 * bindusg.adb: Add line for -Wx switch
3119
3120 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
3121 Add comments
3122 Add new useful constant WC_Longest_Sequences
3123
3124 * switch-b.adb: Clean up handling of -Wx switch
3125 For -gnatWx, set Wide_Character_Encoding_Method_Specified
3126
3127 * switch-c.adb: -gnatg activates warning on assertion errors
3128 For -gnatWx, set Wide_Character_Encoding_Method_Specified
3129
3130 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
3131
3132 2007-12-13 Robert Dewar <dewar@adacore.com>
3133 Ed Schonberg <schonberg@adacore.com>
3134
3135 * a-ngcoty.adb: New pragma Fast_Math
3136
3137 * opt.adb: New pragma Fast_Math
3138
3139 * par-prag.adb:
3140 Add Implemented_By_Entry to the list of pragmas which do not require any
3141 special processing.
3142 (Favor_Top_Level): New pragma.
3143 New pragma Fast_Math
3144
3145 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
3146 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3147 Expand_Allocator_Expression): Take into account VM_Target
3148 (Expand_Attribute, case 'Identity): Handle properly the case where
3149 the prefix is a task interface.
3150 New pragma Fast_Math
3151
3152 * par.adb (Next_Token_Is): New function
3153 (P_Pragma): Add Skipping parameter
3154 (U_Left_Paren): New procedure
3155 (U_Right_Paren): New procedure
3156 New pragma Fast_Math
3157
3158 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
3159 subunit
3160 New pragma Fast_Math
3161
3162 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
3163 Implemented_By_Entry.
3164 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
3165 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
3166 items, since it can apply to more than one overloadable entity. Set
3167 new flag Has_Pragma_Inline_Always for Inline_Always case.
3168 (Analyze_Pragma, case Complex_Representation): Improve error message.
3169 (Analyze_Pragma, case Assert): When assertions are disabled build the
3170 rewritten code with Sloc of expression rather than pragma, so new
3171 warning about failing is not deleted.
3172 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
3173 protected types and update error message to reflect that. Test whether
3174 the protected type is allowed for the pragma (an error is issued if the
3175 type has any entries, or components that do not have preelaborable
3176 initialization).
3177 New pragma Fast_Math
3178 (Analyze_Pragma, case No_Return): Handle generic instance
3179
3180 * snames.h, snames.ads, snames.adb:
3181 Add new predefined name for interface primitive _Disp_Requeue.
3182 New pragma Fast_Math
3183
3184 * a-tags.ads, a-tags.adb: New calling sequence for
3185 String_To_Wide_[Wide_]String
3186 (Secondary_Tag): New subprogram.
3187
3188 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
3189 from Exp_Attr
3190 New calling sequence for String_To_Wide_[Wide_]String
3191 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
3192 the use of the secondary stack for image routines.
3193
3194 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
3195 calling sequence for String_To_Wide_[Wide_]String
3196
3197 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
3198 Ada 95 mode
3199 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
3200 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3201
3202 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
3203 (P_Formal_Part): Use Skipping parameter in P_Pragma call
3204 to improve error recovery
3205
3206 * par-util.adb (Next_Token_Is): New function
3207 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
3208
3209 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
3210 semicolon if missing
3211 (P_Pragma): Implement new Skipping parameter
3212 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3213 Fix location of flag for unrecognized pragma message
3214
3215 * par-tchk.adb (U_Left_Paren): New procedure
3216 (U_Right_Paren): New procedure
3217
3218 2007-12-13 Geert Bosch <bosch@adacore.com>
3219
3220 * a-tifiio.adb:
3221 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
3222 the second or later Scaled_Divide would omit leading zeroes,
3223 resulting in too few digits produced and a Layout_Error as result.
3224 (Put): Initialize Pos.
3225
3226 2007-12-13 Robert Dewar <dewar@adacore.com>
3227
3228 atree.ads, atree.adb (Flag231..Flag247): New functions
3229 (Set_Flag231..Set_Flag247): New procedures
3230 (Basic_Set_Convention): Rename Set_Convention to be
3231 Basic_Set_Convention
3232 (Nkind_In): New functions
3233 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3234
3235 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
3236 instead
3237 of obsolete function Is_Always_Inlined
3238 (Register_Predefined_DT_Entry): Initialize slots of the second
3239 secondary dispatch table.
3240 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3241 (Expand_N_Function_Call): Remove special provision for stack checking.
3242
3243 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
3244 Include _Disp_Requeue in the list of predefined operations.
3245 (Find_Interface_ADT): Modified to fulfill the new specification.
3246 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3247
3248 * par-ch4.adb, nlists.ads, nlists.adb:
3249 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3250
3251 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
3252 Fix location of flag for unrecognized pragma message
3253
3254 * sem_ch7.adb: Use Nkind_In
3255
3256 2007-12-13 Vincent Celier <celier@adacore.com>
3257
3258 * opt.ads:
3259 Indicate what flags are used by the Project Manager, gprbuild and
3260 gprclean.
3261 (Opt.Follow_Links_For_Dirs): New flag
3262 (Warn_On_Assertion_Failure): New flag
3263 (Wide_Character_Encoding_Method_Specified): New flag
3264 (Suppress_All_Inlining): New switch set by -fno-inline
3265 (Real_VMS_Target): New flag
3266 New pragma Fast_Math
3267
3268 2007-12-13 Robert Dewar <dewar@adacore.com>
3269
3270 * back_end.adb: Recognize -fno-inline
3271
3272 2007-12-13 Robert Dewar <dewar@adacore.com>
3273
3274 * checks.adb: Fix optimization problem with short-circuited form
3275
3276 2007-12-13 Bob Duff <duff@adacore.com>
3277
3278 * clean.adb (Usage): Add line for -aP
3279 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
3280 with a parameter "procedure Usage", instead of passing a pointer to a
3281 procedure. This is to eliminate trampolines (since the Usage procedure
3282 is often nested in a main procedure, and it would be inconvenient to
3283 unnest it).
3284
3285 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
3286 to be generic, with a parameter "procedure Callback (...)", instead of
3287 passing a pointer to a procedure. This is to eliminate trampolines
3288 (since the Callback procedure is usually nested).
3289
3290 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
3291 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
3292 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
3293
3294 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
3295 Use the generic Heap_Sort_G instead of Heap_Sort_A.
3296
3297 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3298
3299 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
3300 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
3301 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
3302 (Renamed_In_Spec): New flag
3303 (Has_Pragma_Inline_Always): New flag
3304 Add missing doc for pragma Obsolescent_Warning
3305 Add missing doc for 17 additional unused flags (230-247)
3306 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
3307 Alphabetize with clauses.
3308 Separate Is_Thunk and Has_Thunks flags
3309 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
3310 (Related_Interface): Renamed to Related_Type.
3311 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
3312 (Set_Is_Flag): Restrict the assertion.
3313
3314 2007-12-13 Vincent Celier <celier@adacore.com>
3315
3316 * errout.adb (Output_Source_Line): Do not keep a trailing space after
3317 the source line number if the source line is empty.
3318
3319 2007-12-13 Geert Bosch <bosch@adacore.com>
3320
3321 * eval_fat.adb (Decompose_Int): Handle argument of zero.
3322 (Compose): Remove special casing of zero.
3323 (Exponent): Likewise.
3324 (Fraction): Likewise.
3325 (Machine): Likewise.
3326 (Decompose): Update comment.
3327
3328 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3329
3330 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
3331 limited ancestor part, initialize controllers of enclosing record
3332 before expanding ancestor aggregate.
3333 (Gen_Assign): If a component of the aggregate is box-initialized, add
3334 code to call Initialize if the component is controlled, and explicit
3335 assignment of null if the component is an access type.
3336
3337 Handle properly aggregates for limited types that appear in object
3338 declarations when the aggregate contains controlled values such as
3339 protected types.
3340 When expanding limited aggregates into individual components, do not
3341 call Adjust on controlled components that are limited.
3342
3343 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3344
3345 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
3346
3347 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3348
3349 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
3350 predefined primitive _Disp_Requeue.
3351 (Make_Predefined_Primitive_Specs): Create the spec for predefined
3352 primitive _Disp_Requeue.
3353 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
3354 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
3355 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
3356 an interface type. In case of limited interfaces we now declare all the
3357 predefined primitives associated with synchronized interfaces as
3358 abstract.
3359 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
3360 declarations.
3361 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
3362 tagged type is an interface type and there is no user-defined equality
3363 function.
3364 Add also bodies of predefined primitives associated with synchronized
3365 interfaces.
3366 (Freeze_Record_Type): Do not build bodies of predefined primitives of
3367 interface types because they are now defined abstract.
3368 Add missing documentation.
3369 (Expand_Record_Controller): Update occurrence of Related_Interface
3370 to Related_Type.
3371 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
3372 (Expand_N_Object_Declaration): Take into account VM_Target when handling
3373 class wide interface object declaration.
3374 (Expand_Previous_Access_Type): Do not create a duplicate master entity
3375 if the access type already has one.
3376 (Expand_N_Object_Declaration): Defend against attempt to validity check
3377 generic types. Noticed for -gnatVcf specified with previous errors.
3378
3379 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3380
3381 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3382 Expand_Allocator_Expression): Take into account VM_Target
3383
3384 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
3385 secondary stack when VM_Target /= No_VM
3386
3387 2007-12-13 Javier Miranda <miranda@adacore.com>
3388 Ed Schonberg <schonberg@adacore.com>
3389
3390 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
3391 Is_Complation_Unit by Is_Library_Level_Entity in the code
3392 that decides if the static dispatch tables need to be built.
3393 (Wrap_Transient_Declaration): Do not generate a finalization call if
3394 this is a renaming declaration and the renamed object is a component
3395 of a controlled type.
3396
3397 2007-12-13 Gary Dismukes <dismukes@adacore.com>
3398
3399 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
3400 In the case where the renamed subprogram is a dereference, call
3401 Force_Evaluation on the prefix.
3402
3403 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3404 Ed Schonberg <schonberg@adacore.com>
3405
3406 * exp_ch9.adb (Expand_N_Asynchronous_Select,
3407 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
3408 comment reformatting.
3409 (Set_Privals): Inherit aliased flag from formal. From code reading.
3410 (Build_Simple_Entry_Call): Out parameters of an access type are passed
3411 by copy and initialized from the actual. This includes entry parameters.
3412 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
3413 and Ada 2005 models of requeue.
3414 (Null_Statements): Still connsider do-end block null if it contains
3415 Unreferenced and Warnings pragmas.
3416 (Expand_N_Accept_Statement): Do not optimize away null do end if
3417 dispatching policy is other than defaulted.
3418 (Expand_N_Timed_Entry_Call): When the triggering statement is a
3419 dispatching call, manually analyze the delay statement.
3420 (Find_Parameter_Type): Move subprogram to Sem_Util.
3421
3422 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3423 Javier Miranda <miranda@adacore.com>
3424
3425 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
3426 _Disp_Requeue occupies dispatch table slot number 15. Move
3427 _Disp_Timed_Select to slot 16.
3428 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
3429 generate the spec and body of _Disp_Reqeueue.
3430 (Make_DT): Build and initialize the second dispatch table.
3431 Handle initialization of RC_Offset when the parent
3432 is a private type with variable size components.
3433 (Make_Secondary_DT): Complete documentation. Add support to
3434 initialize the second dispatch table.
3435 (Make_Tags): Generate the tag of the second dispatch table.
3436 (Register_Primitive): Add support to register primitives in the
3437 second dispatch table.
3438
3439 2007-12-13 Pascal Obry <obry@adacore.com>
3440
3441 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
3442 Windows. This signal is used by gnatmake to kill child processes for
3443 example.
3444
3445 2007-12-13 Javier Miranda <miranda@adacore.com>
3446
3447 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
3448 support for generic dispatching constructor calls in which we need to
3449 locate the tag of a secondary dispatch table associated with an
3450 interface type to properly dispatch the call.
3451 (Expand_N_Attribute_Reference [case Address],
3452 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
3453 handling of VM targets.
3454
3455 2007-12-13 Robert Dewar <dewar@adacore.com>
3456 Ed Schonberg <schonberg@adacore.com>
3457
3458 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
3459 assert fail
3460
3461 * ug_words: Add entries for -gnatw.a -gnatw.A
3462
3463 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
3464 literal is a subtype with non-static constraints, use the base type of
3465 the context as the base of the string subtype, to prevent type
3466 mismatches in gigi.
3467 (Resolve_Actuals): If the actual is an entity name, generate a
3468 reference before the actual is resolved and expanded, to prevent
3469 spurious warnings on formals of enclosing protected operations.
3470 (Analyze_Overloaded_Selected_Component): If type of prefix if
3471 class-wide, use visible components of base type.
3472 (Resolve_Selected_Component): Ditto.
3473 (Resolve_Short_Circuit): Detect case of pragma Assert argument
3474 evaluating to False, and issue warning message.
3475
3476 * usage.adb: Add lines for -gnatw.a and -gnatw.A
3477
3478 2007-12-13 Emmanuel Briot <briot@adacore.com>
3479
3480 * g-calend.ads (No_Time): New constant, to represent an uninitialized
3481 time value
3482
3483 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
3484 formats.
3485 (Month_Name_To_Number): New subprogram
3486
3487 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
3488 letter to upper-case.
3489
3490 2007-12-13 Robert Dewar <dewar@adacore.com>
3491 Ed Schonberg <schonberg@adacore.com>
3492
3493 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
3494
3495 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
3496 context is a limited view, use non-limited view when available. If the
3497 non-limited view is an unconstrained array, this enforces consistency
3498 requirements in 3.10.2 (27).
3499 (Layout_Type): For an access type whose designated type is a limited
3500 view, examine its declaration to determine if it is an unconstrained
3501 array, and size the access type accordingly.
3502 (Layout_Type): Do not force 32-bits for convention c subprogram
3503 pointers in -gnatdm mode, only if real vms target.
3504
3505 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
3506 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3507 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
3508 violations of the No_Implicit_Dynamic_Code restriction.
3509 (Resolve_Attribute, case 'Access): If designated type of context is a
3510 limited view, use non-limited view when available. If the non-limited
3511 view is an unconstrained array, this enforces consistency requirements
3512 in 3.10.2 (27).
3513 (Layout_Type): For an access type whose designated type is a limited
3514 view, examine its declaration to determine if it is an unconstrained
3515 array, and size the access type accordingly.
3516
3517 2007-12-13 Vincent Celier <celier@adacore.com>
3518
3519 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
3520 object directory of main project does not exist.
3521 On VMS, correctly set then environment variable for the source
3522 directories.
3523
3524 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
3525
3526 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
3527 set to True this procedure will create the value of type REG_EXPAND_SZ.
3528 It was only possible to create REG_SZ values before.
3529
3530 2007-12-13 Robert Dewar <dewar@adacore.com>
3531
3532 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
3533 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
3534 namet-sp.adb, namet-sp.ads: New files.
3535
3536 * g-speche.adb: Use generic routine in g-spchge
3537
3538 * s-wchcnv.ads, s-wchcnv.adb:
3539 Minor code cleanup (make formal type consistent with spec)
3540
3541 * namet.adb: Update comments.
3542
3543 * par-endh.adb (Evaluate_End_Entry): Use new
3544 Namet.Sp.Is_Bad_Spelling_Of function
3545
3546 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
3547
3548 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
3549 ancestor is an access type initialized with a box, set its type
3550 explicitly, for use in subsequent expansion.
3551 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
3552 function
3553
3554 2007-12-13 Robert Dewar <dewar@adacore.com>
3555
3556 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
3557 access Vstring)
3558
3559 2007-12-13 Robert Dewar <dewar@adacore.com>
3560
3561 * inline.adb (Back_End_Cannot_Inline): Use new flag
3562 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3563
3564 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
3565 Has_Pragma_Inline_Always instead.
3566 of obsolete function Is_Always_Inlined
3567 (Build_Body_To_Inline): Same change
3568 (Cannot_Inline): Same change
3569 Do not give warning on exception raise in No_Return function
3570
3571 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
3572 component has two inconsistent component clauses in the same record
3573 representation clause, favor the message that complains about
3574 duplication rather than inconsistency.
3575 Update comments.
3576 (Record_Representation_Clause): Do not warn on missing component
3577 clauses for inherited components of a type extension.
3578 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
3579 an overloadable item if it is a pragma that can apply to multiple
3580 overloadable entities (e.g. Inline) because a pragma cannot be on
3581 more than one chain at a time.
3582 (Validate_Unchecked_Conversion): Add code to warn on unchecked
3583 conversion where one of the operands is Ada.Calendar.Time.
3584 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
3585 For now, ignore Component_Size clause on VM targets, as done for
3586 pragma Pack.
3587
3588 2007-12-13 Emmanuel Briot <briot@adacore.com>
3589 Vincent Celier <celier@adacore.com>
3590
3591 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
3592 string
3593 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
3594 prj.ads
3595 (Hash): Move instantiation of System.HTable.Hash from spec to body
3596 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
3597 systems, since we do not need to recompute the Name_Id for the canonical
3598 file name.
3599 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3600 as a parameter. This parameter is in fact always "ada" in all calls, and
3601 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
3602 while loading a project with 40000 files
3603
3604 * prj-attr.adb: Fix name of attribute Dependency_Driver
3605 Change the kind of indexing for attribute Root
3606
3607 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
3608 variables already declared, in case constructions.
3609
3610 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
3611 Current_Object_Path_File to No_Path.
3612
3613 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
3614 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
3615
3616 * prj-makr.adb: new parameter Current_Dir
3617
3618 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
3619 Ada sources when language is not Ada.
3620 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3621 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
3622 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
3623 (Locate_Directory): Always resolve links when computing Canonical_Path
3624 (Look_For_Sources): Make sure that Name_Buffer contains the file name
3625 in Source_Files before checking for the presence of a directory
3626 separator.
3627 Optimize calls to Name_Find when on case sensitive systems.
3628 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3629 as a parameter.
3630 (Prj.Nmsc.Check): new parameter Current_Dir
3631 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
3632 cannot be empty and the spec suffix cannot be the same as the body or
3633 separate suffix.
3634 (Get_Unit): When a file name can be of several unit kinds (spec, body or
3635 subunit), always consider the longest suffix.
3636 (Check_Configuration): Do not issue an error if there is no compiler
3637 for a language. Just issue a warning and ignore the sources for the
3638 language.
3639 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
3640 not empty.
3641 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
3642 (Unit_Exceptions): New hash table
3643 (Check_Naming_Schemes): Check if a file that could be a unit because of
3644 the naming scheme is not in fact a source because there is an exception
3645 for the unit.
3646 (Look_For_Sources): Put the unit exceptions in hash table
3647 Unit_Exceptions
3648 (Get_Unit_Exceptions): Give initial value No_Source to local variable
3649 Other_Part to avoid exception when code is compiled with validity
3650 checking.
3651 (Get_Sources_From_File): Check that there is no directory information
3652 in the file names.
3653 (Look_For_Sources): Check that there is no directory information in the
3654 list of file names in Source_Files.
3655 (Look_For_Sources): In multi-language mode, do not allow exception file
3656 names that are excluded.
3657 (Excluded_Sources_Htable): New hash table
3658 (Search_Directories.Check_File): New procedure to simplify
3659 Search_Directories.
3660 (Search_Directories): Do not consider excluded sources
3661 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
3662 Search_Directories.
3663 (Get_Exceptions): Set component Lang_Kind of Source_Data
3664 (Get_Unit_Exceptions): Ditto
3665 (Search_Directories): Ditto
3666
3667 * prj-pars.adb: new parameter Current_Dir
3668
3669 * prj-part.ads, prj-part.adb:
3670 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3671 (Opt.Follow_Links_For_Dirs): New flag
3672 (Project_Path_Name_Of): Cache information returned by this routine as
3673 Locate_Regular_File is a costly routine. The code to output a log
3674 information and the effective call to Locate_Regular_File is now
3675 factorized into a routine (code clean-up).
3676 (Parse, Parse_Single_Project): new parameter Current_Dir
3677 When main project file cannot be found, indicate in the error
3678 message the project path that was used to do the search.
3679
3680 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
3681 (Prj.Proc.Process*): new parameter Current_Dir
3682
3683 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
3684
3685 2007-12-13 Bob Duff <duff@adacore.com>
3686
3687 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
3688 procedure to be called from the back end to check the
3689 No_Implicit_Dynamic_Code restriction.
3690
3691 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3692
3693 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
3694 Fixes another case where RTE_Available_Call was ignored instead of being
3695 taken into account.
3696 (Load_Fail): Ditto.
3697
3698 * rtsfind.ads: Add new entries.
3699
3700 2007-12-13 Robert Dewar <dewar@adacore.com>
3701
3702 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
3703 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
3704
3705 * scn.adb: Implement BOM recognition
3706
3707 2007-12-13 Thomas Quinot <quinot@adacore.com>
3708 Ed Schonberg <schonberg@adacore.com>
3709
3710 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
3711 subprogram body that acts as its own spec may not have a non-private
3712 WITH clause on a private sibling.
3713 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
3714 child unit is a renaming, create an implicit with_clause on that
3715 parent, and not on the unit it renames, to prevent visibility errors
3716 in the current unit.
3717
3718 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3719
3720 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
3721 renaming declaration, use the Slocs of the formal parameters from the
3722 declaration of the formal subprogram when creating the formal parameter
3723 entities in the renaming declaration.
3724 (Analyze_Formal_Type_Declaration): Change the placement of the error
3725 message concerning illegal known discriminants. It is now posted on the
3726 type rather than on the first discriminant. This change ensures early
3727 error report.
3728 (Freeze_Subprogram_Body): If the generic subprogram is nested within
3729 the package body that contains the instance, do not generate an
3730 out-of-place freeze node for the enclosing package.
3731 (Collect_Previous_Instantiations): Ignore internal instantiations
3732 generated for formal packages.
3733 (Validate_Derived_Type_Instance): Add a check that when a formal
3734 derived type is Known_To_Have_Preelab_Init then the actual type must
3735 have preelaborable initialization, and issue an error when this
3736 condition is violated.
3737
3738 2007-12-13 Robert Dewar <dewar@adacore.com>
3739
3740 * s-imenne.adb, s-imenne.ads: New files.
3741
3742 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
3743 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
3744 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
3745 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
3746 s-imgwch.ads: New calling sequence for Image routines to avoid sec
3747 stack usage.
3748
3749 2007-12-13 Javier Miranda <miranda@adacore.com>
3750 Ed Schonberg <schonberg@adacore.com>
3751
3752 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
3753 generation of spurious error if parent is an interface type; caused
3754 because predefined primitive bodies will be generated later by
3755 Freeze_Record_Type.
3756 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
3757 flag.
3758 (Derive_Subprograms): Handle derivations of predefined primitives
3759 after all the user-defined primitives to ensure that they are
3760 found in proper order in instantiations.
3761 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
3762 of Related_Interface to Related_Type.
3763 (Record_Type_Declaration): Minor reordering of calls to decorate the
3764 Tag component because the entity must have set its Ekind attribute
3765 before setting its Is_Tag attribute.
3766 (Analyze_Subtype_Declaration): In the case of subtypes with
3767 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
3768
3769 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3770 Ed Schonberg <schonberg@adacore.com>
3771
3772 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
3773 statement to the list of contexts where a selected component with a
3774 concurrent tagged type prefix should yield a primitive operation.
3775 (Find_Primitive_Operation): Handle case of class-wide types.
3776 (Analyze_Overloaded_Selected_Component): If type of prefix is
3777 class-wide, use visible components of base type.
3778 (Resolve_Selected_Component): Ditto.
3779 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
3780 formal of a generic subprogram. find candidate interpretations by
3781 scanning the list of generic formal declarations.:
3782 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
3783 type from a limited_with_clause, and the full view is available, use it
3784 for subsequent semantic checks.
3785 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
3786 (Find_Primitive_Operation): New function.
3787 (Analyze_Overloaded_Selected_Component): insert explicit dereference
3788 only once if several interpretations of the prefix yield an access type.
3789 (Try_Object_Operation): Code and comment cleanup.
3790 (Analyze_Selected_Component): Reorder local variables. Minot comment and
3791 code reformatting. When the type of the prefix is tagged concurrent, a
3792 correct interpretation might be available in the primitive and
3793 class-wide operations of the type.
3794
3795 2007-12-13 Robert Dewar <dewar@adacore.com>
3796 Ed Schonberg <schonberg@adacore.com>
3797
3798 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
3799 renaming entry as subprogram using rename-as-body if subprogram spec
3800 frozen.
3801 (Use_One_Type): The clause is legal on an access type whose designated
3802 type has a limited view.
3803 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3804 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3805 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
3806 operation denoted by a selected component.
3807 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
3808 it can be an expression, possibly overloaded, that returns a task or
3809 an access to one.
3810
3811 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3812 Gary Dismukes <dismukes@adacore.com>
3813
3814 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
3815 requeue statement is dispatching. Do not emit an error when the name is
3816 not an entry and the context is a dispatching select. Add code to
3817 perform subtype conformance between the formals of the current entry
3818 and those of the target interface primitive.
3819 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
3820 Timed_Entry_Call): Analyze the triggering statement as the first step of
3821 the processing. If this is a dispatching select, postpone the analysis
3822 of all select statements until the Expander transforms the select. This
3823 approach avoids generating duplicate identifiers after the Expander has
3824 replicated some of the select statements. In case the Expander is
3825 disabled, perform regular analysis.
3826 (Check_Triggering_Statement): New routine.
3827 (Analyze_Requeue): Exclude any interpretations that are not entries when
3828 checking overloaded names in a requeue. Also test type conformance for
3829 matching interpretations rather than requiring subtype conformance at
3830 that point to conform with the RM's resolution rule for requeues.
3831
3832 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3833
3834 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
3835 inherited operation is a defaulted tag-indeterminate call, and there is
3836 a statically tagged actual, use the static tag as a controlling actual
3837 for the defaulted actual.
3838
3839 2007-12-13 Geert Bosch <bosch@adacore.com>
3840
3841 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
3842 context, so do not call Check_Non_Static_Context.
3843
3844 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3845
3846 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
3847 whether formal E is an entity which may have parameters.
3848
3849 2007-12-13 Bob Duff <duff@adacore.com>
3850 Javier Miranda <miranda@adacore.com>
3851 Robert Dewar <dewar@adacore.com>
3852
3853 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
3854 (Set_Convention): New procedure to set the Convention flag, and in
3855 addition make sure the Favor_Top_Level flag is kept in sync (all
3856 foreign-language conventions require Favor_Top_Level = True).
3857 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
3858 to Related_Type.
3859 (Collect_Interfaces_Info): Minor update to handle the two secondary
3860 dispatch tables. Update occurrence of Related_Interface to Related_Type.
3861 (Generate_Parent_Ref): Add parameter to specify entity to check
3862 (Is_Preelaborable_Expression): Allow the name of a discriminant to
3863 initialize a component of a type with preelaborable initialization.
3864 This includes the case of a discriminal used in such a context.
3865 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
3866 latest Ada 2005 rules about renaming and 'Access of
3867 discriminant-dependent components.
3868 (Check_Nested_Access): Add handling when there are no enclosing
3869 subprograms (e.g. case of a package body).
3870 (Find_Parameter_Type): Factor routine from several other compiler files.
3871 Remove routine from Find_Overridden_Synchronized_Primitive.
3872
3873 2007-12-13 Thomas Quinot <quinot@adacore.com>
3874
3875 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
3876 an invalid access to an uninitialized slot in the
3877 Source_File_Index_Table.
3878
3879 2007-12-13 Thomas Quinot <quinot@adacore.com>
3880
3881 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
3882
3883 2007-12-13 Bob Duff <duff@adacore.com>
3884
3885 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
3886 access-to-subprogram types in this package.
3887
3888 2007-12-13 Olivier Hainque <hainque@adacore.com>
3889
3890 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
3891 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
3892 Stack_Overlay_Address and document that we are using an internal
3893 abstraction.
3894 (Byte_Size, Unsigned_32_Size): Remove, now useless.
3895 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
3896 consistently throughout the various implementation pieces.
3897
3898 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
3899 overlay we are using to fill the stack area with patterns.
3900 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
3901 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
3902 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
3903
3904 2007-12-13 Robert Dewar <dewar@adacore.com>
3905
3906 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
3907
3908 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3909
3910 * s-tassta.adb:
3911 (Create_Task): Take into account tasks created by foreign threads.
3912 Code clean up: use constants instead of hard coded values.
3913
3914 2007-12-13 Robert Dewar <dewar@adacore.com>
3915
3916 * styleg.adb (Check_Comment): More liberal rules for comment placement
3917
3918 2007-12-13 Olivier Hainque <hainque@adacore.com>
3919
3920 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
3921 of Procedure Value instead of Frame Pointer as the invocation
3922 identifier associated with the instruction pointer in each traceback
3923 entry.
3924
3925 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
3926 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
3927 Pointer as the invocation identifier passed to tbk$symbolize.
3928
3929 * s-traent-vms.ads, s-traent-vms.adb
3930 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
3931 Procedure Value instead of Frame Pointer as the invocation identifier
3932 passed to tbk$symbolize.
3933
3934 2007-12-13 Robert Dewar <dewar@adacore.com>
3935
3936 * tbuild.ads, tbuild.adb:
3937 Fix location of flag for unrecognized pragma message
3938
3939 2007-12-13 Robert Dewar <dewar@adacore.com>
3940
3941 * treepr.ads, treepr.adb: (pl): implement use of positive value
3942 shorthands
3943
3944 2007-12-13 Robert Dewar <dewar@adacore.com>
3945
3946 * xeinfo.adb: Remove warnings
3947 * xnmake.adb: Remove warnings
3948 * xsinfo.adb: Remove warnings
3949 * xtreeprs.adb: Remove warnings
3950 * xsnames.adb: Remove warnings
3951
3952 * a-ngcoar.adb: Fix typo.
3953 * s-interr.adb: Minor reformatting
3954 * env.c: Minor reformatting.
3955 * g-bytswa.adb: Minor reformatting.
3956 * g-rannum.ads: Minor documentation improvements
3957 * s-tasinf-mingw.adb: Minor header fix
3958 * a-clrefi.adb: Minor reformatting
3959 * g-sttsne.ads: Minor documentation improvement
3960 * g-sttsne-locking.ads: Minor documentation improvement
3961 * g-soliop-solaris.ads: Minor documentation improvement
3962 * g-soliop-mingw.ads: Minor documentation improvement
3963 * g-soliop.ads: Minor documentation improvement
3964 * exp_aggr.ads: Minor reformatting
3965 * debug.adb: Add documentation for the gprbuild debug flags
3966 * exp_ch2.adb: Use Nkind_In to simplify code throughout
3967 * exp_pakd.adb: Minor reformatting
3968
3969 * g-altive.ads, g-alleve.adb: Remove assertions.
3970 Add comment about minor differences between targets regarding
3971 floating-point operations.
3972
3973 * g-thread.adb: Remove pragma unreferenced.
3974 * lib.ads: Minor reformatting
3975 * par-ch9.adb: Minor reformatting of error messages
3976 * sem_case.adb: Minor reformatting
3977 * s-fileio.adb: Minor reformattinng
3978 * s-vmexta.ads: Minor typo
3979 * vxaddr2line.adb:
3980 Take into account 'Success' value as per new GNAT warning.
3981
3982 2007-12-13 Vincent Celier <celier@adacore.com>
3983
3984 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
3985 even on Windows
3986
3987 2007-12-13 Robert Dewar <dewar@adacore.com>
3988 Bob Duff <duff@adacore.com>
3989
3990 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
3991 Document that suffixes may be terminations of each others
3992 Add doc for -gnatw.a and -gnatw.A
3993 Document gnatbind -Wx switch
3994 Document BOM recognition
3995 Document pragma Implemented_By_Entry.
3996 Document new units.
3997
3998 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
3999 Add doc for pragma Unreferenced suppressing no entities referenced msg
4000 Add documentation of GNAT.Directory_Operations.Iteration
4001 Add documentation of GNAT.Random_Numbers
4002 Add documentation for pragma Shared.
4003 Correct documentation for Bit_Order
4004 Add documentation for the Pool_Address attribute.
4005 Fix and improve documentation of pragma machine_attribute.
4006 New pragma Fast_Math
4007 Document BOM recognition
4008
4009 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
4010 Add /Wide_Character_Encoding for binder
4011 Add qualifier for the new gnatpp option --no-separate-loop-then
4012
4013 2007-12-13 Matthew Heaney <heaney@adacore.com>
4014
4015 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
4016 which generic formal operations are called for each operation.
4017
4018 2007-12-13 Olivier Hainque <hainque@adacore.com>
4019
4020 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
4021 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
4022
4023 2007-12-13 Emmanuel Briot <briot@adacore.com>
4024
4025 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
4026 Reference_Dir unless we actually need it.
4027
4028 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
4029 Tristan Gingold <gingold@adacore.com>
4030
4031 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
4032
4033 * s-osprim-vms.adb,
4034 a-calend-vms.adb: Remove pragma warning off and add pragma
4035 unreferenced.
4036
4037 2007-12-13 Robert Dewar <dewar@adacore.com>
4038
4039 * impunit.adb: Add entries for missing units
4040
4041 * Makefile.rtl: Add new run-time units.
4042
4043 * Make-lang.in: Update dependencies.
4044
4045 2007-12-13 Bob Duff <duff@adacore.com>
4046
4047 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
4048 types, set Can_Use_Internal_Rep appropriately, based on
4049 Always_Compatible_Rep_On_Target.
4050
4051 2007-12-13 Gary Dismukes <dismukes@adacore.com>
4052 Arnaud Charlet <charlet@adacore.com>
4053
4054 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
4055 it to the front end and setting the aamp_target environment variable
4056 to the switch's argument to ensure that gnaampbind and gnaamplink will
4057 take the specified library into account.
4058 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
4059 target, since the CIL compiler supports an "object" file (.il files).
4060
4061 2007-12-13 Vincent Celier <celier@adacore.com>
4062
4063 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
4064 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
4065
4066 2007-12-13 Geert Bosch <bosch@adacore.com>
4067
4068 * s-parame-vxworks.adb:
4069 Update comments to reflect usage of this package by Nucleus.
4070
4071 2007-12-13 Arnaud Charlet <charlet@adacore.com>
4072
4073 * i-vxwork.ads: Kill new warning on Convention C, since changing the
4074 spec would break code.
4075
4076 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
4077
4078 * system-vxworks-alpha.ads: Removed.
4079
4080 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
4081
4082 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
4083
4084 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
4085
4086 PR ada/34366
4087 * sem_ch3.adb (Designates_T): New function.
4088 (Mentions_T): Factor reusable part of the logic into Designates_T.
4089 Consider non-access parameters and access and non-access result.
4090 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
4091 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
4092
4093 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
4094
4095 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
4096
4097 PR ada/34361
4098 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
4099 the new implementation of target-specific calls.
4100
4101 2007-12-07 Olivier Hainque <hainque@adacore.com>
4102
4103 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
4104 the designated full view, only follow a second level Full_View link
4105 for Non_Limited_Views of from_limited_with references.
4106
4107 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
4108
4109 PR ada/15805
4110 * sem_ch6.adb (Process_Formals): Prevent an access type formal
4111 to be initialized with an access to constant object.
4112
4113 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
4114 when an access to constant is used to initialize an access
4115 value.
4116
4117 PR ada/21346
4118 * a-direct.adb (Compose): Containing_Directory can be an empty string.
4119
4120 2007-12-07 Olivier Hainque <hainque@adacore.com>
4121
4122 PR ada/34173
4123 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
4124 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
4125 this is from an alignment clause on the GNAT entity.
4126 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
4127 to distinguish the case where we set it from the type's alignment.
4128 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
4129 whether this alignment was set from an explicit alignment clause.
4130
4131 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
4132
4133 * decl.c (make_packable_type): Revert last change.
4134 (gnat_to_gnu_field): Avoid setting size and position multiple times.
4135 * utils.c (finish_record_type): Retrieve the real name of the type.
4136
4137 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
4138
4139 * trans.c (lvalue_required_p): Take base node directly instead
4140 of its parent. Rename second parameter to 'gnu_type'.
4141 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
4142 <N_Slice>: Likewise.
4143 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
4144 Adjust calls to lvalue_required_p.
4145
4146 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
4147
4148 PR ada/21489
4149 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
4150 parameters of an entry call.
4151
4152 2007-12-03 Robert Dewar <dewar@adacore.com>
4153 Samuel Tardieu <sam@rfc1149.net>
4154
4155 PR ada/34287
4156 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
4157 of variables declared in a library-level package.
4158
4159 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
4160
4161 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
4162 of Empty_String'Unchecked_Access.
4163
4164 * Makefile.in: Add support for sh4-linux.
4165
4166 * system-linux-sh4.ads: New file.
4167
4168 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
4169
4170 PR ada/33722
4171 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
4172 and its argument must not be free()ed.
4173
4174 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
4175
4176 * decl.c (make_packable_type): Retrieve the real name of the type.
4177 (maybe_pad_type): Simplify similar code.
4178
4179 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
4180
4181 PR ada/15804
4182 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
4183 than an identifier is used after "case" in a variant_part.
4184
4185 PR ada/17318
4186 * par-ch4.adb (Is_Parameterless_Attribute): New map.
4187 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
4188 attribute name or not depending on the new map.
4189
4190 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
4191 returning a string or a type will not be called with improper
4192 arguments.
4193
4194 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
4195
4196 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
4197
4198 PR ada/32792
4199 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
4200 Signal an error when attribute argument is a fixed-point value of
4201 an unknown type.
4202
4203 PR ada/22559
4204 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
4205 a derived ordinary fixed point type.
4206
4207 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
4208 RM_Size when a Small clause is found.
4209
4210 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
4211
4212 PR 34081/C++
4213 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
4214 Pass 'false' for the new allocate_struct_function parameter.
4215 * utils.c (build_function_stub): Likewise.
4216
4217 2007-11-25 Richard Guenther <rguenther@suse.de>
4218
4219 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
4220 (gnat_poplevel): Likewise.
4221
4222 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
4223
4224 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
4225 strict alignment, no alignment clause and a known static size, cap
4226 the type alignment to the greatest power of 2 factor of the size.
4227 (gnat_to_gnu_field): If the field has a component clause, is aliased
4228 or of a type with strict alignment, require that its size be equal to
4229 that of the type.
4230 (validate_size): Use the type size as the minimum size for a type with
4231 strict alignment.
4232
4233 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
4234
4235 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
4236 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4237 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
4238 Use 'Access instead of 'Unchecked_Access in second and third
4239 arguments of pthread_sigmask.
4240
4241 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
4242
4243 * decl.c (ceil_alignment): New function.
4244 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
4245 (make_packable_type): Likewise.
4246
4247 2007-11-22 Olivier Hainque <hainque@adacore.com>
4248
4249 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
4250 to fit in 80 columns.
4251
4252 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
4253
4254 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
4255 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
4256
4257 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
4258
4259 PR ada/34098
4260 * misc.c (gnat_adjust_rli): Delete.
4261 (gnat_init): Do not initialize the translation code here.
4262 Do not call set_lang_adjust_rli.
4263 * trans.c (init_code_table): Make static.
4264 (gnat_init_stmt_group): Delete.
4265 (gigi): Initialize the translation code entirely here.
4266 Emit debug info for the common types here instead of...
4267 * utils.c (gnat_init_decl_processing): ...here.
4268 * gigi.h (init_code_table): Delete.
4269 (gnat_init_stmt_group): Likewise.
4270
4271 2007-11-16 Olivier Hainque <hainque@adacore.com>
4272
4273 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
4274 retrieving an allocator return value from a super-aligned address from
4275 here to ...
4276 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
4277 expect a super-aligned address for a fat or thin pointer.
4278
4279 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
4280
4281 * trans.c (call_to_gnu): Always set the source location on the call
4282 expression. If the function returns-by-target, also set it on the
4283 address expression.
4284
4285 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
4286
4287 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
4288 sections of non-supported Interix target.
4289
4290 * s-osinte-interix.ads: Removed.
4291
4292 * i-cstrin.ads (chars_ptr): Make it a C convention type.
4293
4294 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
4295
4296 * a-tasatt.adb: Add a comment at the beginning of the package
4297 explaining why in general 'Unchecked_Access must be used instead
4298 of 'Access.
4299
4300 * sem_prag.adb (Process_Convention): Move the test for the
4301 entity on which the Convention pragma applies down to also
4302 forbid pragma Convention on enumeration literals reached
4303 through renamings.
4304
4305 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
4306
4307 * a-tasatt.adb: Revert previous change for this file as it will
4308 generate an error when this package is instantiated from a
4309 local context.
4310
4311 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
4312
4313 * a-tasatt.adb: Type Wrapper should be declared in comment instead
4314 of already declared type Node_Access.
4315 Use 'Access instead of 'Unchecked_Access when applicable. Local
4316 lifetime is the one of the package.
4317 (Set_Value): W is allocated on the heap.
4318
4319 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
4320 applicable.
4321 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
4322 access type.
4323 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
4324 access type.
4325
4326 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
4327 applicable.
4328 (elaboration code): Timer_Queue lifetime is the one of the
4329 package.
4330
4331 * tracebak.c (i386 alternative): Remove useless comparaison
4332 which is always false; LOWEST_ADDRESS is 0 and is never greater
4333 than an unsigned integer.
4334
4335 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
4336 embedded check for "Ada_Version >= Ada_05".
4337
4338 2007-11-07 Olivier Hainque <hainque@adacore.com>
4339
4340 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
4341 craft and expand comment.
4342
4343 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
4344
4345 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
4346
4347 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
4348
4349 * misc.c (gnat_handle_option): Replace call to abort with
4350 call to gcc_unreachable.
4351 (gnat_init): Likewise.
4352 (gnat_expand_expr): Likewise.
4353 (fp_prec_to_size): Likewise.
4354 (fp_size_to_prec): Likewise.
4355
4356 2007-10-23 Richard Guenther <rguenther@suse.de>
4357
4358 PR bootstrap/33608
4359 * tracebak.c: #undef abort after including system.h.
4360
4361 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
4362
4363 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
4364 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
4365 for win32 targets.
4366 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
4367
4368 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
4369
4370 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
4371 Set the protection status of the guard page based on the value of On.
4372
4373 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
4374
4375 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
4376 (Exit_Task): Pass False to Hide_Yellow_Zone.
4377
4378 2007-10-15 Robert Dewar <dewar@adacore.com>
4379
4380 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4381 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
4382 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
4383 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
4384 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
4385 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
4386 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
4387 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
4388 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
4389 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
4390 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
4391 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
4392 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
4393 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
4394 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
4395 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
4396 Minor reformatting.
4397 Add Unreferenced and Warnings (Off) pragmas for cases of
4398 variables modified calls where they are IN OUT or OUT parameters and
4399 the resulting values are not subsequently referenced. In a few cases,
4400 we also remove redundant code found by the new warnings.
4401
4402 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
4403 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
4404 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
4405 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
4406 warning controlled by -gnatw.o that warns on cases of out parameter
4407 values being ignored.
4408
4409 2007-10-15 Geert Bosch <bosch@adacore.com>
4410
4411 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
4412
4413 * expect.c: Initial port to arm-mentor-nucleus.
4414 Use kill for __gnat_kill() on VMS.
4415
4416 2007-10-15 Emmanuel Briot <briot@adacore.com>
4417
4418 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
4419 value.
4420 (Xref_Record): Change type for Line, since in the case of a reference to
4421 a predefined entity (as happens for array index types), the line is set
4422 to 0.
4423 Add support for parsing multiple array index types info, or
4424 multiple inherited interfaces info. This information cannot be stored
4425 in Xref_Entity_Record, which only supports a single instance of Tref_*,
4426 and is therefore stored in the list of references instead. It has a
4427 special treatement later on in tools that use this information.
4428
4429 2007-10-15 Tristan Gingold <gingold@adacore.com>
4430
4431 * debug.adb: Document use of -gnatd.a and -gnatd.I
4432
4433 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
4434
4435 2007-10-15 Javier Miranda <miranda@adacore.com>
4436
4437 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
4438 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
4439 care of access to class-wide interface types plus removal of bizarre
4440 conversion of tagged object to access type (reported by Gary
4441 Dismukes). After this patch there is no need to perform any
4442 additional management on these nodes in Expand_Interface_Actuals.
4443
4444 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
4445 that handles use of 'Access and 'Unchecked_Access applied to
4446 actuals covering interface types. Such code is now
4447 centralized in Expand_N_Attribute_Reference.
4448
4449 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4450
4451 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
4452 of tagged types whose ultimate ancestor is a CPP type.
4453 (Freeze_Array_Type): For a packed array type, generate an initialization
4454 procedure if the type is public, to handle properly a client that
4455 specifies Normalize_Scalars.
4456
4457 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4458
4459 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
4460 inside a generic body, retrieve the full view of the entry family
4461 discrete subtype if available.
4462
4463 2007-10-15 Thomas Quinot <quinot@adacore.com>
4464
4465 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
4466 attempt to generate stubs for hidden primitive operations.
4467
4468 2007-10-15 Vincent Celier <celier@adacore.com>
4469
4470 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
4471 returning None, used when there is no platform specific body for
4472 MLib.Tgt.Specific.
4473
4474 2007-10-15 Bob Duff <duff@adacore.com>
4475
4476 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
4477 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
4478 the generic Heap_Sort_G, in order to avoid trampolines.
4479
4480 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
4481 Jose Ruiz <ruiz@adacore.com>
4482
4483 * vx_stack_info.c: New file.
4484
4485 * i-forbla-unimplemented.ads: New file.
4486
4487 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
4488 for unsupported configurations; use it on VMS targets instead of the
4489 real one.
4490 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
4491 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
4492 used by VxWorks targets to have access to task-specific data and be
4493 able to extract the stack boundaries for stack checking.
4494 Use system-vms-ia64.ads on ivms.
4495
4496 * Make-lang.in: Update dependencies.
4497
4498 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
4499 (vx_stack_info.c).
4500
4501 2007-10-15 Vincent Celier <celier@adacore.com>
4502
4503 * snames.adb, snames.ads: Add new standard name runtime_library_dir
4504
4505 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
4506
4507 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
4508
4509 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
4510 the source is unknown.
4511
4512 * prj-ext.adb: Spelling error fix
4513
4514 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
4515 95 reserved word in its name.
4516 (Process_Project_Level_Array_Attributes): Process new attribute
4517 Runtime_Library_Dir.
4518
4519 * prj-part.adb (Parse_Single_Project): Do not check the name of the
4520 config project against the user project names.
4521
4522 * prj-proc.adb (Expression): In multi-language mode, indexes that do
4523 not include a dot are always case insensitive.
4524 (Process_Declarative_Items): Ditto
4525 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
4526 detected.
4527
4528 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
4529 True, compare both indexes in lower case.
4530
4531 2007-10-15 Robert Dewar <dewar@adacore.com>
4532
4533 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
4534
4535 2007-10-15 Gary Dismukes <dismukes@adacore.com>
4536
4537 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
4538 association for an access component, add an association with null as
4539 the expression. Remove testing for array subtypes and the setting in
4540 that case of Ctyp to the array component type, which prevented proper
4541 inclusion of an association for null-initialized arrays. Collapse
4542 condition that tests for array subtypes into just a test of
4543 Is_Partially_Initialized_Type (which already covers arrays anyway).
4544
4545 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4546
4547 * sem_ch12.adb: Minor code reformatting.
4548 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
4549 find the parent package which may have been hidden by local
4550 declarations.
4551
4552 2007-10-15 Gary Dismukes <dismukes@adacore.com>
4553
4554 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
4555 flag of derived concurrent types, taking into account the flag setting
4556 on the parent subtype and any new set of discriminants.
4557
4558 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4559
4560 * sem_ch4.adb: Minor code and comment reformatting.
4561 (Analyze_Allocator): When the designated type of an unconstrained
4562 allocator is a record with unknown discriminants or an array with
4563 unknown range bounds, emit a detailed error message depending on the
4564 compilation mode and whether the designated type is limited.
4565
4566 2007-10-15 Tristan Gingold <gingold@adacore.com>
4567
4568 * system-vms-ia64.ads: New file.
4569
4570 * system-vms_64.ads: Minor comment fix.
4571
4572 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4573
4574 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
4575 body generated for a function with a controlling result that is a null
4576 extension, discard the generated body in favor of the current explicit
4577 one.
4578
4579 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4580
4581 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
4582 examining its original form, to handle properly operator calls that
4583 have been rewritten.
4584
4585 2007-10-15 Olivier Hainque <hainque@adacore.com>
4586
4587 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
4588 instead of a procedure value in each traceback entry.
4589
4590 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
4591 instead of procedure value to TBK$SYMBOLIZE.
4592
4593 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
4594 field.
4595 (TB_Entry_For): Account for the PV/FP renaming.
4596
4597 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
4598 add comment.
4599 (Null_TB_Entry): Account for change of component name.
4600 (PV_For): Rename as FP_For.
4601
4602 2007-10-15 Tristan Gingold <gingold@adacore.com>
4603
4604 * trans.c (gnat_to_gnu): Remove the padding structure more often.
4605 This optimize assignment to over-aligned record.
4606
4607 2007-10-15 Emmanuel Briot <briot@adacore.com>
4608
4609 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
4610 interfaces.
4611
4612 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
4613 type, for dispatching calls.
4614
4615 2007-10-15 Vincent Celier <celier@adacore.com>
4616 Robert Dewar <dewar@adacore.com>
4617
4618 * gnat_ugn.texi: Add documentation for switches --version and --help
4619 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
4620 gnatxref, gnatfind, gnatls, and gnatclean.
4621 Document -gnatw.o.
4622 Mention attribute Excluded_Source_Dirs
4623 Replace obsolescent attribute Locally_Removed_Files with attribute
4624 Excluded_Source_Files.
4625 Improve documentation of -u (gnatbind)
4626 Document how to do reliable stack checking for the environmental task
4627 on iVMS.
4628
4629 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
4630 Document attribute Excluded_Source_Files and indicate that attribute
4631 Locally_Removed_Files is obsolescent.
4632
4633 2007-10-15 Thomas Quinot <quinot@adacore.com>
4634
4635 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
4636
4637 * gen-soccon.c:
4638 Update documentation to note that OpenVMS 8.3 or later must be used
4639 to generate g-soccon-vms.ads.
4640
4641 * atree.adb: Add ??? comment
4642
4643 * exp_util.adb: Minor reformatting.
4644 Add ??? comment in Kill_Dead_Code.
4645
4646 2007-10-15 Robert Dewar <dewar@adacore.com>
4647
4648 * errout.ads: Comment clarification
4649
4650 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
4651 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
4652
4653 * lib.ads: Comment update
4654
4655 * init.c: Minor reformatting.
4656
4657 * sem_attr.adb: Minor formatting
4658
4659 * osint-b.ads: Minor reformatting
4660
4661 * sem_ch9.adb: Implement -gnatd.I switch
4662
4663 * g-comlin.adb: (Start): Fix handling of empty command line.
4664
4665 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
4666 even when -rules follows the -cargs section.
4667
4668 2007-10-08 Ollie Wild <aaw@google.com>
4669
4670 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
4671 gnat_return_tree.
4672 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
4673 gnat_return_tree.
4674 (gnat_eh_runtime_type): Removed.
4675 (gnat_return_tree): New function.
4676
4677 2007-10-08 Ben Elliston <bje@au.ibm.com>
4678
4679 PR ada/33454
4680 Revert:
4681 2007-08-31 Ben Elliston <bje@au.ibm.com>
4682
4683 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
4684 when compiling for powerpc64-*-linux.
4685 * system-linux-ppc64.ads: New file.
4686
4687 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
4688
4689 Mapped location support
4690 * back_end.adb (Call_Back_End): Pass information about source
4691 files instead of units to gigi.
4692 * gigi.h (struct File_Info_Type): New.
4693 (gigi): Rename and change type of number_units parameter, change
4694 type of file_info_ptr parameter.
4695 * trans.c (number_files): New global variable.
4696 (gigi): Rename and change type of number_units parameter, change
4697 type of file_info_ptr parameter.
4698 If mapped location support is enabled, create the isomorphic mapping
4699 between source files and line maps.
4700 (Sloc_to_locus): If mapped location support is enabled, translate
4701 source location into mapped location.
4702 (annotate_with_node): Rename into set_expr_location_from_node.
4703 Call set_expr_location instead of annotate_with_locus.
4704 (Pragma_to_gnu): Adjust for above change.
4705 (Loop_Statement_to_gnu): Likewise.
4706 (call_to_gnu): Likewise.
4707 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4708 (gnat_to_gnu): Likewise.
4709 (add_stmt_with_node): Likewise.
4710 (add_cleanup): Likewise.
4711 * utils.c (gnat_init_decl_processing): Do not set input_line.
4712
4713 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4714
4715 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
4716 (Applicable_Use): Emit a warning when a package tries to use itself.
4717 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
4718 is already in use or the package where it is declared is in use or is
4719 declared in the current package.
4720 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
4721
4722 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
4723 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
4724 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
4725
4726 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4727
4728 * a-calend-vms.adb, a-calend.adb:
4729 Add a section on leap seconds control along with two entities used to
4730 enable and disable leap seconds support. The array Leap_Second_Times is
4731 now constant and contains hard time values pre-generated. Remove
4732 all elaboration code used to populate the table of leap seconds.
4733
4734 * bindgen.adb:
4735 Add entity Leap_Seconds_Support to the list of global run-time variables
4736 along with a comment on its usage and values.
4737 (Gen_Adainit_Ada): Add code to generate the declaration and import of
4738 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
4739 or one (enabled) depending on the presence of binder switch "-y".
4740 (Gen_Adainit_C): Add code to generate the declaration of external int
4741 __gl_leap_seconds_support. Set is value to zero (disabled) or one
4742 (enabled) depending on the presence of binder switch "-y".
4743
4744 * init.c: Add __gl_leap_seconds_support to the list of global values
4745 computed by the binder.
4746
4747 2007-09-26 Jerome Guitton <guitton@adacore.com>
4748
4749 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4750 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
4751 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4752 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
4753
4754 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
4755
4756 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
4757 function which can be called by the debugger to interrupt the tasks of
4758 an Ada application asynchronously, as needed on VxWorks.
4759 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
4760
4761 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
4762 renamed from Stop_All_Tasks. Update comments.
4763 (Stop_All_tasks): New function declaration.
4764
4765 2007-09-26 Olivier Hainque <hainque@adacore.com>
4766
4767 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
4768 #include <utime.h> and #define GCC_RESOURCE_H before
4769 #include <sys/wait.h>.
4770 Add more protections in __gnat_translate_vms.
4771
4772 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
4773 #include <sys/wait.h>.
4774
4775 2007-09-26 Thomas Quinot <quinot@adacore.com>
4776 Sergey Rybin <rybin@adacore.com>
4777
4778 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
4779
4780 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4781 where it belongs.
4782
4783 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4784
4785 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4786 where it belongs.
4787
4788 * sem_dist.ads: Minor comment fix
4789
4790 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4791
4792 2007-09-26 Javier Miranda <miranda@adacore.com>
4793 Eric Botcazou <ebotcazou@adacore.com>
4794
4795 * a-tags.adb:
4796 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
4797 indirection added to the HT_Link component of the TSD. This is required
4798 to statically allocate the TSD.
4799
4800 * a-tags.ads:
4801 Minor reordering of the declarations in the private part. Required to
4802 add a level of indirection to the contents of the TSD component HT_Link.
4803 This is required to statically allocate the TSD.
4804
4805 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
4806 Is_Statically_Allocated set from constant objects.
4807 Do not make exported constants created by the compiler volatile.
4808 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
4809 as read-only.
4810
4811 * trans.c (Identifier_to_gnu): For constants, unshare initializers
4812 before returning them.
4813
4814 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
4815 public part of the package.
4816 (Make_DT): Move HT_Link component out of the TSD record. For this
4817 purpose Make_DT now declares a separate object that stores the
4818 HT_Link value, and initializes the TSD component with the address
4819 of this new object. The addition of this level of indirection is
4820 required to statically allocate the TSD because the TSD cannot
4821 have variable components.
4822 (Expand_Interface_Conversion): Improve the expanded code.
4823 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
4824
4825 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
4826 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
4827 if we are building static dispatch tables then we must not generate
4828 extra code to register the primitive because the dispatch table will
4829 be built at the end of the library package; otherwise we notify that
4830 we cannot build the static dispatch table.
4831
4832 2007-09-26 Robert Dewar <dewar@adacore.com>
4833
4834 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
4835 overlays.
4836
4837 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
4838 (Analyze_Record_Representation_Clause): Suppress junk warning for
4839 missing component clause.
4840 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
4841 tests for controlled type overlay to composites with controlled
4842 components.
4843 (Analyze_Record_Representation_Clause): Add reference for component name
4844
4845 2007-09-26 Javier Miranda <miranda@adacore.com>
4846 Gary Dismukes <dismukes@adacore.com>
4847
4848 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
4849 for thunks associated with interface types.
4850
4851 * einfo.ads: Improve documentatation of Is_Internal
4852 (Is_Thunk): New attribute applicable to subprograms. True for thunks
4853 associated with interface types.
4854 Extensive comment fixes regarding flags that appear in all entities. The
4855 documentation is now consistent for all such flags (there were a number
4856 of errors in the documentation in this regard).
4857
4858 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
4859
4860 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
4861 of these procedures are passed a function call that already has
4862 build-in-place actuals (testing new flag
4863 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
4864 the case where processing continues.
4865 (Expand_Call): If the call is generated from a thunk body then we
4866 propagate the extra actuals associated with the accessibility
4867 level of the access type actuals.
4868
4869 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
4870 of each extra formal of a protected operation to reference the
4871 corresponding extra formal of the subprogram denoted by the
4872 operation's Protected_Body_Subprogram.
4873
4874 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
4875 N_Function_Call nodes.
4876
4877 2007-09-26 Robert Dewar <dewar@adacore.com>
4878
4879 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
4880
4881 * debug.adb: Add d.s flag.
4882
4883 2007-09-26 Gary Dismukes <dismukes@adacore.com>
4884
4885 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
4886 debug variable so that it won't be initialized when pragma
4887 Initialize_Scalars is in effect.
4888
4889 2007-09-26 Gary Dismukes <dismukes@adacore.com>
4890
4891 * freeze.adb (Freeze_Entity): Remove check for preelaborable
4892 initialization of a full view. This is moved to
4893 Analyze_Package_Specification.
4894
4895 * sem_ch7.adb (Analyze_Package_Specification): Add check for
4896 preelaborable initialization of a full view in entity loop.
4897 (Uninstall_Declarations): If entity is a use-visible compilation unit,
4898 its child units are use-visible only if they are visible child units.
4899
4900 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
4901 whether an expression can be used within a type declaration that
4902 requires preelaborable init.
4903 (Check_Components): Replace inline code that does partial checking for
4904 preelaborable default expressions with call to
4905 Is_Preelaborable_Expression.
4906 (Has_Preelaborable_Initialization): In the case of a generic actual
4907 subtype, (that is, Is_Generic_Actual is True), return the result of
4908 applying Has_Preelaborable_Initialization to the generic actual's base
4909 type.
4910
4911 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4912
4913 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
4914 call to Jan_1_Day _Of_Week to optimize its performance.
4915 (Is_Leap): Move the routine to the scope of Week_In_Year.
4916 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
4917 weekday on which January 1 falls of Year - 1 and Year + 1. This function
4918 avoids calling Time_Of and Split, thus making it more efficent.
4919 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
4920
4921 * g-calend.ads (Week_In_Year): Change comment to reflect new
4922 implementation.
4923
4924 2007-09-26 Emmanuel Briot <briot@adacore.com>
4925
4926 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
4927 Command_Line): New types
4928 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
4929 support for defining how switches can be grouped on a command line (as
4930 is the case for -gnatw... for GNAT), and how simple switches can be
4931 used as aliases for more complex switches (-gnatwa is same as
4932 -gnatwbcef...)
4933 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
4934 (Start, Current_*): New subprograms
4935 Added support for parsing an array of strings in addition to the real
4936 command line.
4937 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
4938 be moved from the body to the private part of the spec.
4939 (*): All subprograms now have an extra parameter with default value to
4940 specify which parser should be used. For backward compatibility, it
4941 defaults to parsing the command line of the application. They were also
4942 modified to properly handle cases where each of the argument does not
4943 start at index 1 (which is always true for Ada.Command_Line, but not
4944 when processing any Argument_List).
4945 (Free): New subprogram
4946 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
4947 Argument): New subprograms
4948 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
4949 special characters like ':', '=',... are now handled in a single place,
4950 which makes the code more extensible eventually.
4951 (Getopt, Full_Switch): When the switch was returned as part of the
4952 special character '*', make sure it is prepended by the switch character
4953 ('-' in general), so that the application knows whether "foo" or "-foo"
4954 was specified on the command line.
4955
4956 2007-09-26 Florian Villoing <villoing@adacore.com>
4957
4958 * g-dirope.adb (Remove_Dir): In case we are removing directories
4959 recursively, make sure that if an exception is raised during the
4960 processing, the current working directory is reset to its initial
4961 value before propagating the exception.
4962
4963 2007-09-26 Vincent Celier <celier@adacore.com>
4964
4965 * gnatbind.adb: If there are several ALI files specified and there is
4966 a main program to bind, the first ALI is expected to contain the main
4967 subprogram and the names of the binder generated files will be derived
4968 from the first ALI file name.
4969 (Gnatbind): Fix insertion character in invocation of Error_Msg
4970
4971 2007-09-26 Vincent Celier <celier@adacore.com>
4972
4973 * gnatcmd.adb (Check_Files): Do not include sources that have been
4974 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
4975
4976 2007-09-26 Ed Schonberg <schonberg@adacore.com>
4977
4978 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
4979 information about each of its index types, following the type
4980 reference for its component type.
4981
4982 2007-09-26 Vincent Celier <celier@adacore.com>
4983
4984 * make.adb: (Kill): New procedure (__gnat_kill imported)
4985 (Running_Compile, Outstanding_Compiles): Global variables that
4986 were previously local to procedure Compile_Sources.
4987 (Sigint_Intercepted): Send signal SIGINT to all outstanding
4988 compilation processes.
4989
4990 (Gnatmake): If project files are used, create the mapping of all the
4991 sources, so that the correct paths will be found.
4992
4993 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
4994
4995 2007-09-26 Vincent Celier <celier@adacore.com>
4996
4997 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
4998
4999 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
5000 Replace components Compiler_Min_Options and Binder_Min_Options with
5001 Compiler_Required_Switches and Binder_Required_Switches in record
5002 Language_Config.
5003 Remove components Default_Language and Config in Project_Tree_Data,
5004 no longer used.
5005
5006 * prj-attr.adb: New attributes Required_Switches (<language>) in
5007 packages Compiler and Binder.
5008
5009 * prj-nmsc.adb: Major rewrite of the processing of configuration
5010 attributes for gprbuild. No impact on GNAT tools.
5011
5012 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
5013 process configuration attributes: this is done in Prj.Nmsc.Check.
5014 (Recursive_Process): Make a full copy of packages inherited from project
5015 being extended, instead of a shallow copy.
5016 (Process_Project_Tree_Phase_1): New procedure
5017 (Process_Project_Tree_Phase_1): New procedure
5018 (Process): Implementation now uses the two new procedures
5019
5020 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
5021 from the project config, not the tree config that no longer exists.
5022
5023 2007-09-26 Vincent Celier <celier@adacore.com>
5024
5025 * Make-lang.in: Update dependencies..
5026
5027 2007-09-26 Vincent Celier <celier@adacore.com>
5028
5029 * osint.adb, osint.ads: Minor reformatting
5030
5031 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
5032
5033 2007-09-26 Gary Dismukes <dismukes@adacore.com>
5034
5035 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
5036 message to cite use of <> in aggregate component associations rather
5037 than wrongly indicating use of limited aggregates.
5038
5039 2007-09-26 Robert Dewar <dewar@adacore.com>
5040
5041 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
5042 Address_Taken.
5043
5044 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5045
5046 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
5047 ancestor of the derived type, the operations are inherited from the
5048 primary dispatch table of the parent.
5049 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
5050 when the context is an explicit type conversion.
5051
5052 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5053
5054 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
5055 rule for qualified expressions properly, to detect improper conversions
5056 and resolve some cases of overloading.
5057
5058 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5059
5060 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
5061 proper kind of reference to the primitive operation, for better source
5062 navigation.
5063 (Valid_Conversion): A tagged conversion is legal if both operands are
5064 tagged.
5065
5066 2007-09-26 Robert Dewar <dewar@adacore.com>
5067
5068 * sem_warn.adb (Check_References): Catch more cases of unreferenced
5069 packages.
5070
5071 2007-09-26 Vincent Celier <celier@adacore.com>
5072
5073 * snames.adb, snames.ads: Change Include_Option to Include_Switches
5074
5075 2007-09-26 Robert Dewar <dewar@adacore.com>
5076
5077 * s-wchstw.adb: provide messages for run time unit exceptions
5078
5079 * a-witeio.adb: Minor reformatting
5080
5081 * exp_ch13.adb: Minor reformatting
5082
5083 2007-09-26 Sergey Rybin <rybin@adacore.com>
5084
5085 * vms_data.ads: Revise gnatmetric qualifiers.
5086 Add qualified for the new gnatbind option '-y'
5087
5088 * gnat_ugn.texi: Revise the gnatmetric section.
5089 Add entry for new gnatbind option '-y'.
5090
5091 * gnat_rm.texi: Minor spelling correction.
5092 Document restriction on overlaying controlled types
5093
5094 2007-09-26 Vincent Celier <celier@adacore.com>
5095
5096 * makegpr.adb (Link_Executables): Do not fail when the root project has
5097 no sources, but is an extending project.
5098
5099 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
5100
5101 * trans.c: Fix misplaced #define.
5102
5103 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
5104
5105 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
5106 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
5107
5108 2007-09-21 Olivier Hainque <hainque@adacore.com>
5109
5110 * utils.c (type_for_nonaliased_component_p): Return false for
5111 all AGGREGATE_TYPEs.
5112
5113 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
5114
5115 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
5116 object covered by 13.3(19) volatile.
5117
5118 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
5119
5120 PR ada/26797
5121 PR ada/32407
5122 * utils.c (unchecked_convert): Use a subtype as the intermediate type
5123 in the special VIEW_CONVERT_EXPR case.
5124
5125 2007-09-12 Robert Dewar <dewar@adacore.com>
5126
5127 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
5128
5129 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
5130 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
5131 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
5132 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
5133 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
5134 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
5135 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
5136 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
5137 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
5138 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
5139 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
5140 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
5141 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
5142 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
5143 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
5144 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
5145 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
5146 pragma Compiler_Unit and adds it to relevant library units.
5147
5148 2007-09-12 Ed Schonberg <schonberg@adacore.com>
5149
5150 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
5151 a box need not correspond to any component.
5152
5153 2007-09-12 Robert Dewar <dewar@adacore.com>
5154
5155 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
5156 the tasking version of the Ada run time when foreign threads are
5157 present and there are no explicit Ada tasks or tasking constructs.
5158
5159 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
5160
5161 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
5162
5163 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
5164 the usage of switch -y.
5165
5166 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
5167 when switch -y is present.
5168
5169 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
5170 leap seconds in Ada.Calendar and its children.
5171
5172 2007-09-12 Jose Ruiz <ruiz@adacore.com>
5173
5174 * a-extiti.ads (Timer): The discriminant is a "not null access
5175 constant" in the Reference Manual.
5176 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
5177
5178 2007-09-12 Robert Dewar <dewar@adacore.com>
5179
5180 * a-swuwha.adb: Remove junk RM header
5181
5182 2007-09-12 Vincent Celier <celier@adacore.com>
5183
5184 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
5185 indicator
5186
5187 * g-bytswa.ads: Minor reformatting
5188
5189 2007-09-12 Thomas Quinot <quinot@adacore.com>
5190
5191 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
5192 Add new constant Thread_Blocking_IO, always True by default, set False
5193 on a per-runtime basis.
5194 (Need_Netdb_Buffer): New constant.
5195
5196 2007-09-12 Arnaud Charlet <charlet@adacore.com>
5197
5198 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
5199 Added renames for corresponding functions in System.Partition_Interface.
5200
5201 2007-09-12 Doug Rupp <rupp@adacore.com>
5202
5203 * Makefile.in: Remove VMS specific System.CRTL packages which are no
5204 longer needed.
5205
5206 * s-crtl-vms64.ads: Removed.
5207
5208 2007-09-12 Olivier Hainque <hainque@adacore.com>
5209
5210 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
5211 with discriminant constraints, generalize the code for BIT_FIELDs
5212 to PACKED fields of constant size and propagate DECL_PACKED.
5213
5214 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
5215
5216 * decl.c (array_type_has_nonaliased_component): New predicate.
5217 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
5218 set the TYPE_NONALIASED_COMPONENT flag on the type.
5219 <E_Array_Subtype>: Likewise.
5220 * gigi.h (type_for_nonaliased_component_p): Declare.
5221 * utils.c (type_for_nonaliased_component_p): New predicate.
5222 (create_field_decl): Invoke the above predicate to set the
5223 DECL_NONADDRESSABLE_P flag on the field.
5224
5225 2007-09-11 Javier Miranda <miranda@adacore.com>
5226
5227 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
5228 in library level record type entities if we are generating statically
5229 allocated dispatch tables.
5230
5231 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
5232 importing/exporting the _tag declaration by new code
5233 importing/exporting the dispatch table wrapper. This change allows us
5234 to statically allocate of the TSD.
5235 (Make_DT.Export_DT): New procedure.
5236 (Build_Static_DT): New function.
5237 (Has_DT): New function.
5238
5239 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
5240 True_Constant and Current_Value. Required to statically
5241 allocate the dispatch tables.
5242 (Check_Allocator): Make function iterative instead of recursive.
5243 Also return inner allocator node, when present, so that we do not have
5244 to look for that node again in the caller.
5245
5246 2007-09-11 Jan Hubicka <jh@suse.cz>
5247
5248 * misc.c (gnat_expand_body): Kill.
5249 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
5250
5251 2007-09-10 Robert Dewar <dewar@adacore.com>
5252
5253 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
5254 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5255 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5256 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
5257 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
5258 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
5259 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
5260 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
5261 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
5262 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
5263 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
5264 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
5265 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
5266 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
5267 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
5268 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
5269 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
5270 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
5271 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
5272 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
5273 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
5274 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
5275 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
5276 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
5277 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
5278 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
5279 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
5280 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
5281 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
5282 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
5283 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
5284 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
5285 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
5286 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
5287 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
5288 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
5289 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
5290 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
5291 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
5292 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
5293 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
5294 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
5295 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
5296 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
5297 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
5298 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
5299 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
5300 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
5301 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
5302 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
5303 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
5304 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
5305 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
5306 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
5307 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
5308 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
5309 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
5310 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
5311 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5312 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
5313 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
5314 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
5315 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
5316 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
5317 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
5318 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
5319 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
5320 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
5321 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
5322 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
5323 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
5324 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
5325 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
5326 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
5327 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
5328 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
5329 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
5330 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
5331 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
5332 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
5333 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
5334 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
5335 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
5336
5337 2007-09-10 Emmanuel Briot <briot@adacore.com>
5338
5339 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
5340 classes ("[]").
5341
5342 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
5343
5344 * adaint.c (__gnat_translate_vms): new function.
5345
5346 2007-09-10 Gary Dismukes <dismukes@adacore.com>
5347 Thomas Quinot <quinot@adacore.com>
5348
5349 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
5350 create an abstract subprogram in the case of 'Input. For 'Output we now
5351 create a real spec/body when the type is abstract, since it can
5352 potentially be called.
5353 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
5354 body for 'Output when the type is abstract (only the creation of the
5355 body for 'Input is excluded when the type is abstract).
5356 (Stream_Operation_OK): Add an additional condition in the return
5357 statement, so that False will be returned for TTS_Stream_Input if the
5358 associated tagged type is an abstract extension. Add comments for
5359 return statement.
5360 (Expand_N_Object_Declaration): For the case of a shared passive
5361 variable, insert init proc call only after the shared variable
5362 procedures have been processed, because the IP call needs to undergo
5363 shared passive variable reference expansion, which requires these
5364 procedures to be available (and elaborated).
5365
5366 2007-09-10 Vincent Celier <celier@adacore.com>
5367
5368 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
5369 parameter Runtime_Project.
5370
5371 2007-09-10 Ed Schonberg <schonberg@adacore.com>
5372
5373 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
5374 given a box association, the type of the component is discriminated,
5375 and the value of the discriminant is the discriminant of the enclosing
5376 type, retrieve its value from the aggregate itself, where it must have
5377 been supplied.
5378
5379 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
5380 to remove other spurious ambiguities on arithmetic operations involving
5381 literals and addresses, on systems where Address is a visible integer
5382 type, when the operator is called in functional notation.
5383 (Try_Primitive_Operation): Within an instance, a call in prefixed form
5384 is legal when the types match, even if the operation is currently
5385 hidden.
5386
5387 2007-09-10 Ed Schonberg <schonberg@adacore.com>
5388
5389 * sem_ch12.adb (Build_Local_Package): A formal package with no
5390 associations is legal if all formals have defaults. It is not
5391 equivalent to a formal declared with a box.
5392
5393 2007-09-10 Sergey Rybin <rybin@adacore.com>
5394
5395 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
5396
5397 2007-09-10 Sergey Rybin <rybin@adacore.com>
5398
5399 * gnat_ugn.texi: Add description of the new '-lratio' option
5400 Update 7.3.1 section about availability of the feature.
5401
5402 2007-09-10 Thomas Quinot <quinot@adacore.com>
5403
5404 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
5405 inserted node.
5406
5407 2007-09-10 Olivier Hainque <hainque@adacore.com>
5408
5409 * Makefile.in: (mips-irix section): Activate build of libgmem.
5410
5411 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
5412
5413 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
5414 x87 registers.
5415
5416 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
5417
5418 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
5419 a debug renaming declaration specially.
5420
5421 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
5422
5423 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
5424 which a constant renaming is treated as a normal object declaration.
5425 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
5426 the N_Indexed_Component case.
5427 <N_Indexed_Component>: Fall through to above case.
5428 <N_Object_Renaming_Declaration>: Return true for all composite types.
5429
5430 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
5431
5432 * decl.c (make_packable_type): If the new type has been given BLKmode,
5433 try again to get an integral mode for it.
5434
5435 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
5436
5437 Re-apply accidentally reverted change:
5438
5439 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
5440
5441 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
5442 get_action_description_for): Replace _Unwind_Word with _uleb128_t
5443 and _Unwind_SWord with _sleb128_t.
5444
5445 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
5446
5447 * trans.c (convert_with_check): Update call to real_2expN.
5448
5449 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5450
5451 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
5452 * utils.c (end_subprog_body): Likewise.
5453
5454 2007-09-03 Nick Clifton <nickc@redhat.com>
5455
5456 * Make-lang.in: Change copyright header to refer to version 3 of
5457 the GNU General Public License and to point readers at the
5458 COPYING3 file and the FSF's license web page.
5459 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
5460 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
5461 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
5462 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
5463 Likewise.
5464
5465 2007-08-31 Vincent Celier <celier@adacore.com>
5466
5467 PR ada/4720
5468
5469 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
5470 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
5471 (Check_Version_And_Help): New procedure in package Switch to process
5472 switches --version and --help.
5473 Use Check_Version_And_Help in GNAT tools
5474
5475 * make.adb: Ditto.
5476 (Compile_Sources): Make sure that sources that are "excluded" are not
5477 compiled.
5478 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
5479 project file is used.
5480 (Version_Switch): Remove, moved to Switch
5481 (Help_Switch): Remove, moved to Switch
5482 (Display_Version): Remove, moved to Switch
5483
5484 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
5485 package Switch to process switches --version and --help.
5486 (Display_Version): New procedure
5487
5488 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
5489
5490 2007-08-31 Javier Miranda <miranda@adacore.com>
5491
5492 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
5493 internal tags.
5494
5495 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5496
5497 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
5498 (Mark_Non_Null): If the node for which we just generated an access check
5499 is a reference to an *in* parameter and the reference appears in the
5500 declarative part of a subprogram body, mark the node as known non null.
5501
5502 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5503
5504 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
5505 structure of E_Exception to reflect the new flag.
5506 (Is_Raised, Set_Is_Raised): New inlined routines.
5507 Update the usage of available flag to reflect the addition of Is_Raised.
5508 (Is_Raised, Set_Is_Raised): Bodies of new routines.
5509 (Write_Entity_Flags): Write the status of flag Is_Raised.
5510 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
5511 spurious ambiguities when integer literals appear in the context of an
5512 address type that is a visible integer type.
5513
5514 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
5515 exceptions never being raised.
5516 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
5517 explicitly raised.
5518
5519 2007-08-31 Javier Miranda <miranda@adacore.com>
5520
5521 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
5522 statement when compiling under restriction No_Exceptions_Proparation.
5523
5524 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5525
5526 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
5527 initialization aggregate for the type, generate itype references for
5528 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
5529
5530 2007-08-31 Gary Dismukes <dismukes@adacore.com>
5531
5532 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
5533 library-level package renaming, pass the declaration associated with
5534 the renaming's special debug variable to Qualify_Entity_Names to ensure
5535 that its encoded name is properly qualified.
5536
5537 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
5538 occurring in the list of entities to qualify, and do not attempt to
5539 traverse an entity list in that case. Variables associated with
5540 ` library-level package renamings can now occur in the table.
5541
5542 * exp_dbug.ads: Revise documentation of the encoding for renaming
5543 declarations.
5544
5545 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5546
5547 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
5548 access type points to an unconstrained array.
5549
5550 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5551
5552 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
5553 conversion.
5554
5555 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
5556 simple redundant qualifications. The check is performed whenever the
5557 expression is a non-overloaded identifier.
5558 (Resolve_Type_Conversion): Enchance the redundant type conversion check
5559 to include loop parameters.
5560 (Valid_Conversion): Avoid generation of spurious error message.
5561
5562 2007-08-31 Bob Duff <duff@adacore.com>
5563
5564 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
5565 concatenations of string literals into a single literal, in order to
5566 avoid very deep recursion in the front end, which was causing stack
5567 overflow.
5568
5569 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
5570 string, and the right operand is a string literal (the case of "" &
5571 "..."), optimize by avoiding copying the right operand -- just use the
5572 value of the right operand directly.
5573
5574 * stringt.adb (Store_String_Chars): Optimize by growing the
5575 String_Chars table all at once, rather than appending characters one by
5576 one.
5577 (Write_String_Table_Entry): If the string to be printed is very long,
5578 just print the first few characters, followed by the length. Otherwise,
5579 doing "pn(n)" in the debugger can take an extremely long time.
5580
5581 * sem_prag.adb (Process_Interface_Name): Replace loop doing
5582 Store_String_Char with Store_String_Chars.
5583
5584 2007-08-31 Vincent Celier <celier@adacore.com>
5585
5586 * prj-attr.adb: Add new attribute Excluded_Source_Files
5587
5588 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
5589 Locally_Removed_Files.
5590
5591 * snames.ads, snames.adb: New standard name Excluded_Source_Files
5592
5593 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5594
5595 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
5596 clauses of subunits, ignore limited_with_clauses that are illegal and
5597 have not been fully analyzed.
5598
5599 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5600
5601 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
5602 flag, for effiency. It is called when analyzing arithmetic operators
5603 and also for actuals in calls that are universal_integers. The flag is
5604 set for the predefined type address, and for any type or subtype
5605 derived from it.
5606
5607 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
5608 Universal_Integer, when the formal is a descendent of address and the
5609 call appears in user code.
5610 (Analyze_Selected_Component): if the prefix is a private extension, the
5611 tag component is visible.
5612
5613 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
5614 entity flag.
5615
5616 2007-08-31 Robert Dewar <dewar@adacore.com>
5617
5618 * s-fileio.adb (Open): Normalize file name to lower case in non-case
5619 sensitive file name systems to avoid unexpected mismatch in Vista.
5620
5621 2007-08-31 Vincent Celier <celier@adacore.com>
5622
5623 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
5624
5625 2007-08-31 Vincent Celier <celier@adacore.com>
5626
5627 * symbols-vms.adb (Initialize): Read symbol files with continuation
5628 lines
5629 (Finalize): If symbol is long, split the line
5630
5631 2007-08-31 Vincent Celier <celier@adacore.com>
5632
5633 * fmap.ads: Minor comment updates
5634
5635 2007-08-31 GNAT Script <nobody@adacore.com>
5636
5637 * Make-lang.in: Makefile automatically updated
5638
5639 2007-08-31 Bob Duff <duff@adacore.com>
5640
5641 * sinfo.ads: Minor comment fix.
5642
5643 2007-08-31 Thomas Quinot <quinot@adacore.com>
5644
5645 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
5646 with implementation.
5647 Documentation cleanup only.
5648
5649 2007-08-31 Sergey Rybin <rybin@adacore.com>
5650
5651 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
5652 gnatpp '--separate-stmt-name' option.
5653 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
5654 option.
5655
5656 * gnat_ugn.texi: Add description for the new gnatpp
5657 '--separate-stmt-name' and '--use-on-new-line' options.
5658
5659 2007-08-31 Ben Elliston <bje@au.ibm.com>
5660
5661 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
5662 when compiling for powerpc64-*-linux.
5663 * system-linux-ppc64.ads: New file.
5664
5665 2007-08-22 Krister Walfridsson <cato@df.lth.se>
5666
5667 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
5668 NetBSD.
5669
5670 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5671
5672 * misc.c (gnat_type_max_size): Constify.
5673
5674 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5675
5676 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
5677 associated with Standard_Debug_Renaming_Type, to be used as the type of
5678 the special variables whose names provide debugger encodings for
5679 renaming declarations.
5680
5681 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
5682 (Set_Debug_Renaming_Link): Change to set Node25.
5683 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
5684 (Write_Field25_Name): Add case for E_Variable to output
5685 "Debug_Renaming_Link".
5686 (Write_Field23_Name): Correct the output string for "Limited_View".
5687
5688 * exp_dbug.adb: Add with and use of Tbuild.
5689 (Debug_Renaming_Declaration): Replace creation of an enumeration type
5690 and literal with creation of a variable of type
5691 Standard_Debug_Renaming_Type whose name encodes both the renamed object
5692 and the entity of the renaming declaration.
5693 (Qualify_Entity_Name): Add the delayed qualification of the entity name
5694 part of the name of a variable that has a Debug_Renaming_Link.
5695
5696 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
5697 special type to be associated with variables that provide debugger
5698 encodings for renaming declarations.
5699
5700 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5701 Ed Schonberg <schonberg@adacore.com>
5702 Javier Miranda <miranda@adacore.com>
5703
5704 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
5705 ancestor part given by an aggregate to test for an unchecked conversion,
5706 since this can occur in some cases when the ancestor part is a function
5707 call, and we don't want to fall into the recursive call to this
5708 procedure in that case.
5709
5710 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
5711 stream attributes on limited types to account for user-specified
5712 attributes as well as whether Input (resp. Output) becomes available
5713 due to Read (resp. Write) being available for the type. Change Boolean
5714 variable to the more accurate name
5715 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
5716 double-"not" predicate at beginning of return statement to more
5717 understandable form.
5718
5719 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
5720 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
5721 in a block statement and use that as the first statement of the
5722 expanded return rather than incorrectly using the handled sequence as
5723 the first statement.
5724
5725 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
5726 operation, generate an explicit freeze node for it rather than
5727 generating extra formals, to ensure that gigi has the proper order of
5728 elaboration for anonymous subtypes in the signature of the subprograms.
5729 (Build_In_Place_Formal): Move assertion to beginning of loop.
5730 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
5731 applied to a function call (occurs for some cases of 'Input).
5732 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
5733 applied to a function call (occurs for some cases of 'Input).
5734
5735 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
5736 2005, generate an extended return statement enclosing the result object
5737 and 'Read call.
5738
5739 * freeze.adb (Freeze_Record_Type): Extend the current management of
5740 components that are access type with an allocator as default value: add
5741 missing support to the use of qualified expressions of the
5742 allocator (which also cause freezing of the designated type!)
5743 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
5744 dispatching operation, since extra formals may be needed by calls to
5745 build-in-place functions (such as stream 'Input).
5746
5747 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
5748 formals for 'Constrained and accessibility level in the case of a
5749 predefined dispatching operation.
5750
5751 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
5752 point, no need to find the parent node.
5753
5754 2007-08-16 Javier Miranda <miranda@adacore.com>
5755
5756 * exp_attr.adb (Attribute_Priority): Add missing support for entries
5757 and entry barriers.
5758
5759 2007-08-16 Javier Miranda <miranda@adacore.com>
5760
5761 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
5762 is not really required and can introduce regression with the debugger.
5763 The original problem is fixed with the patch written for checks.adb.
5764
5765 2007-08-16 Thomas Quinot <quinot@adacore.com>
5766
5767 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
5768 Range_Check on Allocated_Table.
5769
5770 2007-08-16 Vincent Celier <celier@adacore.com>
5771
5772 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
5773 Including_Non_Switch set to False.
5774 (Gnatmake): For the compiler, call Test_If_Relative_Path with
5775 Including_Non_Switch set to False.
5776
5777 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
5778 parameter Including_Non_Switch, defaulted to True. When
5779 Including_Non_Switch is False, options that are not switches and
5780 appear as relative path are not converted to absolute paths.
5781
5782 2007-08-16 Nicolas Roche <roche@adacore.com>
5783
5784 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
5785 makefiles
5786
5787 * Make-lang.in: Update dependencies
5788
5789 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
5790
5791 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
5792 currently inspected is a selected component, retrieve the entity of
5793 its selector.
5794 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
5795 from the immediate ancestor of Main_Unit_Entity.
5796 (Install_Limited_Withed_Unit): Do not install the limited view of
5797 package P if P is reachable through an ancestor chain from package C
5798 and C also has a with clause for P in its body.
5799 (Has_Limited_With_Clause): New routine.
5800 (Has_With_Clause): New routine.
5801
5802 2007-08-16 Ed Schonberg <schonberg@adacore.com>
5803
5804 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
5805 generic for an enclosing instance is a global reference, even though
5806 its scope is the enclosing instance.
5807
5808 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5809 Javier Miranda <miranda@adacore.com>
5810
5811 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
5812 initialize a limited object.
5813 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
5814 13/2 and 14/2.
5815 Make sure Has_Complex_Representation is inherited by derived type.
5816
5817 2007-08-16 Robert Dewar <dewar@adacore.com>
5818
5819 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
5820 exception case
5821
5822 2007-08-16 Ed Schonberg <schonberg@adacore.com>
5823
5824 * sem_disp.adb (Check_Dispatching_Operation): If the operation
5825 implements an operation inherited from a progenitor interface, verify
5826 that they are subtype-conformant.
5827
5828 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
5829 Bob Duff <duff@adacore.com>
5830 Nicolas Setton <setton@adacore.com>
5831
5832 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
5833 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
5834 the statement which is being resolved comes from a predefined library
5835 unit, all non-predefined library interpretations are skipped.
5836 (Resolve_Op_Concat): If string concatenation was folded in the parser,
5837 but the "&" is user defined, give an error, because the folding would
5838 be wrong.
5839
5840 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
5841 the parser has folded a long sequence of concatenations of string
5842 literals.
5843
5844 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
5845 and "JMP_BUF" variables as artificial.
5846 (N_String_Literal): Do not use alloca for very long string literals. Use
5847 xmalloc/free instead. Otherwise the stack might overflow.
5848
5849 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
5850 compiler.
5851
5852 2007-08-16 Vincent Celier <celier@adacore.com>
5853
5854 * vms_conv.adb (Process_Argument): Ensure that project related options
5855 are not put in the -cargs section when using GNAT COMPILE.
5856
5857 2007-08-16 Robert Dewar <dewar@adacore.com>
5858
5859 * gnat_ugn.texi: Add note on preprocessing (output file not written)
5860
5861 2007-08-16 Thomas Quinot <quinot@adacore.com>
5862
5863 * a-tags.adb: Minor reformatting.
5864
5865 2007-08-16 Bob Duff <duff@adacore.com>
5866
5867 * sem_type.ads, sem_ch4.adb: Minor reformatting.
5868
5869 2007-08-14 Thomas Quinot <quinot@adacore.com>
5870
5871 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
5872 s-osinte-interix.ads, system-interix.ads: Removed.
5873
5874 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
5875
5876 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
5877 calls to Check_Within_Time_Bounds.
5878 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
5879 (Difference): Account for possible rounding of the resulting difference
5880
5881 2007-08-14 Robert Dewar <dewar@adacore.com>
5882
5883 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
5884 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
5885 s-osinte-solaris.adb, s-osinte-solaris.ads,
5886 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
5887
5888 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
5889 switch -gnatyS. Enable -gnatyS in GNAT style check mode
5890
5891 2007-08-14 Robert Dewar <dewar@adacore.com>
5892 Ed Schonberg <schonberg@adacore.com>
5893
5894 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
5895 Suppress unmodified in-out parameter warning in some cases
5896 This patch is a also fairly significant change to the way suppressible
5897 checks are handled.
5898
5899 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
5900 needed for access to concurrent record types generated by the expander.
5901 (Generate_Range_Check): When generating a temporary to capture the
5902 value of a conversion that requires a range check, set the type of the
5903 temporary before rewriting the node, so that the type is always
5904 properly placed for back-end use.
5905 (Apply_Float_Conversion_Check): Handle case where the conversion is
5906 truncating.
5907 (Get_Discriminal): Code reformatting. Climb the scope stack looking
5908 for a protected type in order to examine its discriminants.
5909
5910 2007-08-14 Robert Dewar <dewar@adacore.com>
5911 Gary Dismukes <dismukes@adacore.com>
5912 Ed Schonberg <schonberg@adacore.com>
5913 Thomas Quinot <quinot@adacore.com>
5914
5915 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
5916 a-stwisu.adb, a-strsup.adb: Fix warnings for range
5917 tests optimized out.
5918
5919 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
5920 (Get_Allocator_Final_List): For the case of an anonymous access type
5921 that has a specified Associated_Final_Chain, do not go up to the
5922 enclosing scope.
5923 (Expand_N_Type_Conversion): Test for the case of renamings of access
5924 parameters when deciding whether to apply a run-time accessibility
5925 check.
5926 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
5927 aggregate code before allocator, and ahead of declaration for
5928 temporary, to prevent access before elaboration when the allocator is
5929 an actual for an access parameter.
5930 (Expand_N_Type_Conversion): On an access type conversion involving an
5931 access parameter, do not apply an accessibility check when the
5932 operand's original node was an attribute other than 'Access. We now
5933 create access conversions for the expansion of 'Unchecked_Access and
5934 'Unrestricted_Access in certain cases and clearly accessibility should
5935 not be checked for those.
5936
5937 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
5938 includes a type conversion of a packed component that has been expanded,
5939 recover the original expression for the object, and use this expression
5940 in the post-call assignment statement, so that the assignment is made
5941 to the object and not to a back-end temporary.
5942 (Freeze_Subprogram): In case of primitives of tagged types not defined
5943 at the library level force generation of code to register the primitive
5944 in the dispatch table. In addition some code reorganization has been
5945 done to leave the implementation clear.
5946 (Expand_Call): When expanding an inherited implicit conversion,
5947 preserve the type of the inherited function after the intrinsic
5948 operation has been expanded.
5949
5950 * exp_ch2.ads, exp_ch2.adb
5951 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
5952 of an entry formal appearing in an assignment statement does not assign
5953 to the formal.
5954 (Expand_Current_Value): Instead of calling a routine to determine
5955 whether the prefix of an attribute reference should be optimized or
5956 not, prevent the optimization of such prefixes all together.
5957
5958 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
5959 component whose prefix is known to be of an access type is an implicit
5960 dereference and does not assign to the prefix.
5961
5962 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5963 Robert Dewar <dewar@adacore.com>
5964
5965 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
5966 itype is visited, make an entry into table to link associated node and
5967 new itype.
5968 Add comments and correct harmless error in Build_NCT_Hash_Tables
5969 (Array_Aggr_Subtype): Associate each itype created for an index type to
5970 the corresponding range construct, and not to the aggregate itself. to
5971 maintain a one-to-one correspondence between itype and its associated
5972 node, to prevent errors when complex expression is copied.
5973 Fix mishandling of multiple levels of parens
5974
5975 * sem_aggr.adb: Create a limited view of an incomplete type, to make
5976 treatment of limited views uniform for all visible declarations in a
5977 limited_withed package.
5978 (New_Copy_Tree): If hash table is being used and itype is visited,
5979 make an entry into table to link associated node and new itype.
5980 (Resolve_Record_Aggregate): Do not add an others box association for a
5981 discriminated record component that has only discriminants, when there
5982 is a box association for the component itself.
5983
5984 * par-ch4.adb: Fix mishandling of multiple levels of parens
5985
5986 2007-08-14 Robert Dewar <dewar@adacore.com>
5987
5988 * comperr.adb: Fix problem with suppressing warning messages from gigi
5989
5990 * erroutc.ads, erroutc.adb, errout.ads,
5991 errout.adb (Write_Eol): Remove trailing spaces before writing the line
5992 (Write_Eol_Keep_Blanks): New procedure to write a line, including
5993 possible trailing spaces.
5994 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
5995 Fix problem with suppressing warning messages from back end
5996 Improve handling of deleted warnings
5997
5998 * gnat1drv.adb:
5999 Fix problem with suppressing warning messages from back end
6000 Handle setting of Static_Dispatch_Tables flag.
6001
6002 * prepcomp.adb:
6003 Fix problem with suppressing warning messages from back end
6004
6005 * exp_intr.adb: Improve handling of deleted warnings
6006
6007 2007-08-14 Robert Dewar <dewar@adacore.com>
6008
6009 * debug.adb: Improve -gnatdI to cover all cases of serialization
6010 Add documentation of dZ, d.t
6011
6012 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
6013 serialization.
6014 (Sprint_Node_Actual): Generate new output associated with implicit
6015 importation and implicit exportation of object declarations.
6016
6017 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6018 Robert Dewar <dewar@adacore.com>
6019 Javier Miranda <miranda@adacore.com>
6020 Gary Dismukes <dismukes@adacore.com>
6021
6022 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
6023 to make treatment of limited views uniform for all visible declarations
6024 in a limited_withed package.
6025 Improve warnings for in out parameters
6026 (Set_Related_Interaface/Related_Interface): Allow the use of this
6027 attribute with constants.
6028 (Write_Field26_Name): Handle attribute Related_Interface in constants.
6029 Warn on duplicate pragma Preelaborable_Initialialization
6030
6031 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
6032 generation of a freezing node to ensure proper management of null
6033 excluding access types in the backend.
6034 (Create_Extra_Formals): Test base type of the formal when checking for
6035 the need to add an extra accessibility-level formal. Pass the entity E
6036 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
6037 originally being done in a couple of cases), to ensure that the
6038 Extra_Formals list gets set on the entity E when the first entity is
6039 added.
6040 (Conforming_Types): Add missing calls to Base_Type to the code that
6041 handles anonymous access types. This is required to handle the
6042 general case because Process_Formals builds internal subtype entities
6043 to handle null-excluding access types.
6044 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6045 functions that need it, even when not marked Requires_Overriding.
6046 Improve warnings for in out parameters
6047 (Analyze_Function_Return): Warn for disallowed null return
6048 Warn on return from procedure with unset out parameter
6049 Ensure consistent use of # in error messages
6050 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
6051 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
6052 the implicit conversion of the expression done for anonymous access
6053 types. This is required to generate the code of the null excluding
6054 check (if required).
6055
6056 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
6057 A formal parameter is never publicly referenceable outside of its body.
6058 (Check_References): For an unreferenced formal parameter in an accept
6059 statement, use the same warning circuitry as for subprogram formal
6060 parameters.
6061 (Warn_On_Unreferenced_Entity): New subprogram, taken from
6062 Output_Unreferenced_Messages, containing the part of that routine that
6063 is now reused for entry formals as described above.
6064 (Goto_Spec_Entity): New function
6065 (Check_References): Do not give IN OUT warning for dispatching operation
6066 Improve warnings for in out parameters
6067 (Test_Ref): Check that the entity is not undefinite before calling
6068 Scope_Within, in order to avoid infinite loops.
6069 Warn on return from procedure with unset out parameter
6070 Improved warnings for unused variables
6071
6072 2007-08-14 Robert Dewar <dewar@adacore.com>
6073 Javier Miranda <miranda@adacore.com>
6074 Gary Dismukes <dismukes@adacore.com>
6075
6076 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
6077 (Expand_N_Attribute_Reference): Further unify the handling of the
6078 three forms of access attributes, using common code now for all three
6079 cases. Add a test for the case of applying an access attribute to
6080 an explicit dereference when the context is an access-to-interface
6081 type. In that case we need to apply the conversion to the prefix
6082 of the explicit dereference rather than the prefix of the attribute.
6083 (Attribute_Version, UET_Address): Set entity as internal to ensure
6084 proper dg output of implicit importation.
6085 (Expand_Access_To_Type): Removed.
6086 (Expand_N_Attribute_Reference): Merge the code from the three cases
6087 of access attributes, since the processing is largely identical for
6088 these cases. The substantive fix here is to process the case of a
6089 type name prefix (current instance case) before handling the case
6090 of interface prefixes.
6091
6092 2007-08-14 Thomas Quinot <quinot@adacore.com>
6093 Ed Schonberg <schonberg@adacore.com>
6094 Javier Miranda <miranda@adacore.com>
6095 Robert Dewar <dewar@adacore.com>
6096
6097 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
6098 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
6099 type that is an anonymous access to controlled object, establish
6100 an associated finalization chain to avoid corrupting the global
6101 finalization list when a dynamically allocated object designated
6102 by such a component is deallocated.
6103 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6104 functions that need it, even when not marked Requires_Overriding.
6105 (Initialize_Tag): Replace call to has_discriminants by call to
6106 Is_Variable_Size_Record in the circuitry that handles the
6107 initialization of secondary tags.
6108 (Is_Variable_Size_Record): New implementation.
6109 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
6110 Suppress_Initialization pragma for a derived type.
6111 (Is_Variable_Size_Record): New subprogram.
6112 (Build_Offset_To_Top_Functions): New implementation that simplifies the
6113 initial version of this routine and also fixes problems causing
6114 incomplete initialization of the table of interfaces.
6115 (Build_Init_Procedure): Improve the generation of code to initialize the
6116 the tag components of secondary dispatch tables.
6117 (Init_Secondary_Tags): New implementation that simplifies the previous
6118 version of this routine.
6119 (Make_DT): Add parameter to indicate when type has been frozen by an
6120 object declaration, for diagnostic purposes.
6121 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
6122 diagnose attemps to freeze a subprogram when some untagged type of its
6123 profile is a private type whose full view has not been analyzed yet.
6124 (Freeze_Array_Type): Generate init proc for packed array if either
6125 Initialize or Normalize_Scalars is set.
6126 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
6127 constructing the new profile, copy the null_exclusion indicator for each
6128 parameter, to ensure full conformance of the new body with the spec.
6129
6130 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
6131 Create wrappers for constructor functions that need it, even when not
6132 marked Requires_Overriding.
6133 (Covers): Handle properly designated types of anonymous access types,
6134 whose non-limited views are themselves incomplete types.
6135 (Add_Entry): Use an entity to store the abstract operation which hides
6136 an interpretation.
6137 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
6138 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
6139 initialization aggregate.
6140 (Function_Interp_May_Be_Hidden): Rename to
6141 Function_Interp_Has_Abstract_Op.
6142 (Has_Compatible_Type): Remove machinery that skips interpretations if
6143 they are labeled as potentially hidden by an abstract operator.
6144 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
6145 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
6146 (Write_Overloads): Output the abstract operator if present.
6147 (Add_Entry): Before inserting a new entry into the interpretation table
6148 for a node, determine whether the entry will be disabled by an abstract
6149 operator.
6150 (Binary_Op_Interp_May_Be_Hidden): New routine.
6151 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
6152 aggregate.
6153 (Function_Interp_May_Be_Hidden): New routine.
6154 (Has_Compatible_Type): Do not consider interpretations hidden by
6155 abstract operators when trying to determine whether two types are
6156 compatible.
6157 (Has_Hidden_Interp): New routine.
6158 (Set_May_Be_Hidden_Interp): New routine.
6159 (Write_Overloads): Write the status of flag May_Be_Hidden.
6160
6161 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6162 Javier Miranda <miranda@adacore.com>
6163
6164 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
6165 types declared in the declarative part of a nested package body or in
6166 the proper body of a stub.
6167 (Set_All_DT_Position): Add missing check to avoid wrong assignation
6168 of the same dispatch table slot to renamed primitives.
6169 (Make_Select_Specific_Data_Table): Handle private types.
6170 (Tagged_Kind): Handle private types.
6171 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
6172 output of implicit importation and exportation.
6173 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
6174 first formal of the thunk is always associated with the controlling
6175 type. In addition perform the following code cleanup: remove formal
6176 Thunk_Alias which is no longer required, cleanup evaluation of the
6177 the controlling type, and update the documentation.
6178 Replace occurrence of Default_Prim_Op_Count by
6179 Max_Predef_Prims. Addition of compile-time check to verify
6180 that the value of Max_Predef_Prims is correct.
6181 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
6182 (Make_DT): Add parameter to indicate when type has been frozen by an
6183 object declaration, for diagnostic purposes.
6184 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
6185 construction of statically allocated dispatch tables.
6186 (Make_DT): In case of library-level tagged types export the declaration
6187 of the primary tag. Remove generation of tags (now done by Make_Tags).
6188 Additional modifications to handle non-static generation of dispatch
6189 tables. Take care of building tables for asynchronous interface types
6190 (Make_Tags): New subprogram that generates the entities associated with
6191 the primary and secondary tags of Typ and fills the contents of Access_
6192 Disp_Table. In case of library-level tagged types imports the forward
6193 declaration of the primary tag that will be declared later by Make_DT.
6194 (Expand_Interface_Conversion): In case of access types to interfaces
6195 replace an itype declaration by an explicit type declaration to avoid
6196 problems associated with the scope of such itype in transient blocks.
6197
6198 2007-08-14 Robert Dewar <dewar@adacore.com>
6199 Ed Schonberg <schonberg@adacore.com>
6200 Javier Miranda <miranda@adacore.com>
6201
6202 * exp_util.ads, exp_util.adb:
6203 This patch replaces a number of occurrences of explicit tests for N_Null
6204 with calls to Known_Null. This improves tracking of null values, since
6205 Known_Null also catches null constants, and variables currently known to
6206 be null, so we get better tracking.
6207 (Ensure_Defined): create an itype reference only in the scope of the
6208 itype.
6209 (Side_Effect_Free): A selected component of an access type that
6210 denotes a component with a rep clause must be treated as not
6211 side-effect free, because if it is part of a linked structure its
6212 value may be affected by a renaming.
6213 (Expand_Subtype_From_Expr): For limited objects initialized with build
6214 in place function calls, do nothing; otherwise we prematurely introduce
6215 an N_Reference node in the expression initializing the object, which
6216 breaks the circuitry that detects and adds the additional arguments to
6217 the called function. Bug found working in the new patch for statically
6218 allocated dispatch tables.
6219 (Is_Library_Level_Tagged_Type): New subprogram.
6220 (Remove_Side_Effects): If the expression of an elementary type is an
6221 operator treat as a function call.
6222 (Make_Literal_Range): If the index type of the array is not integer, use
6223 attributes properly to compute the constraint on the resulting aggregate
6224 which is a string.
6225
6226 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
6227 class-wide type whose base type is an incomplete private type, leave
6228 class-wide type unfrozen so that freeze nodes can be generated
6229 properly at a later point.
6230 (Freeze_Entity, array case): Handle case of pragma Pack and component
6231 size attributre clause for same array.
6232
6233 2007-08-14 Vincent Celier <celier@adacore.com>
6234
6235 * prj.ads, prj.adb: Update Project Manager to new attribute names for
6236 gprbuild.
6237 Allow all valid declarations in configuration project files
6238 (Reset): Initialize all tables and hash tables in the project tree data
6239 Major update of the Project Manager and of the project aware tools,
6240 including gprmake, so that the same sources in the GNAT repository
6241 can be used by gprbuild.
6242 (Slash_Id): Change type to be Path_Name_Type
6243 (Slash): Return a Path_Name_Type instead of a File_Name_Type
6244
6245 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
6246 gprbuild.
6247 Update Project Manager to new attribute names for ghprbuild
6248 Allow all valid declarations in configuration project files
6249 Major update of the Project Manager and of the project aware tools,
6250 including gprmake, so that the same sources in the GNAT repository
6251 can be used by gprbuild.
6252
6253 * prj-com.ads:
6254 Major update of the Project Manager and of the project aware tools,
6255 including gprmake, so that the same sources in the GNAT repository
6256 can be used by gprbuild.
6257
6258 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6259 insensitive flag for attributes with optional index.
6260 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6261 array attribute, put the index in lower case.
6262 Update Project Manager to new attribute names for ghprbuild
6263 Allow all valid declarations in configuration project files
6264 Major update of the Project Manager and of the project aware tools,
6265 including gprmake, so that the same sources in the GNAT repository
6266 can be used by gprbuild.
6267
6268 * prj-env.ads, prj-env.adb:
6269 Major update of the Project Manager and of the project aware tools,
6270 including gprmake, so that the same sources in the GNAT repository
6271 can be used by gprbuild.
6272 (Get_Reference): Change type of parameter Path to Path_Name_Type
6273
6274 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
6275 removing '-' from the path to start with the first character of the
6276 next directory.
6277 Major update of the Project Manager and of the project aware tools,
6278 including gprmake, so that the same sources in the GNAT repository
6279 can be used by gprbuild.
6280 Major update of the Project Manager and of the project aware tools,
6281 including gprmake, so that the same sources in the GNAT repository
6282 can be used by gprbuild.
6283
6284 * prj-nmsc.ads, prj-nmsc.adb:
6285 Update Project Manager to new attribute names for ghprbuild
6286 Allow all valid declarations in configuration project files
6287 (Search_Directories): Detect subunits that are specified with an
6288 attribute Body in package Naming. Do not replace a source/unit in the
6289 same project when the order of the source dirs are known. Detect
6290 duplicate sources/units in the same project when the order of the
6291 source dirs are not known.
6292 (Check_Ada_Name): Allow all identifiers that are not reserved words
6293 in Ada 95.
6294 Major update of the Project Manager and of the project aware tools,
6295 including gprmake, so that the same sources in the GNAT repository
6296 can be used by gprbuild.
6297 (Look_For_Sources): If the list of sources is empty, set the object
6298 directory of non extending project to nil.
6299 Change type of path name variables to be Path_Name_Type
6300 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
6301 otherwise creating missing directories will fail.
6302
6303 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
6304 prj-part.ads, prj-part.adb:
6305 Major update of the Project Manager and of the project aware tools,
6306 including gprmake, so that the same sources in the GNAT repository
6307 can be used by gprbuild.
6308
6309 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6310 insensitive flag for attributes with optional index.
6311 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6312 array attribute, put the index in lower case.
6313 (Parse_Variable_Reference): Allow the current project name to be used in
6314 the prefix of an attribute reference.
6315
6316 * prj-util.ads, prj-util.adb
6317 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
6318 defaulted to False. When True, always check against indexes in lower
6319 case.
6320
6321 * snames.ads, snames.h, snames.adb:
6322 Update Project Manager to new attribute names for gprbuild
6323 Allow all valid declarations in configuration project files
6324
6325 2007-08-14 Robert Dewar <dewar@adacore.com>
6326 Ed Schonberg <schonberg@adacore.com>
6327
6328 * opt.ads: Warning for non-local exception propagation now off by
6329 default
6330 New switch -gnatI to disable representation clauses
6331 Implement new pragma Implicit_Packing
6332
6333 * usage.adb:
6334 Warning for non-local exception propagation now off by default
6335 Add warning for unchecked conversion of pointers wi different
6336 conventions.
6337 New switch -gnatI to disable representation clauses
6338
6339 * usage.adb: new switch -gnatyS
6340
6341 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
6342 note that aggregates of anonymous array types are not flagged.
6343 -gnatwc now includes membership tests optimized away
6344 -gnatw.x warnings are now off by default
6345 Added conditional compilation Appendix
6346 Add documentation of -gnatI
6347 Add documentation for new -gnatyS style check
6348 Update documentation about SAL and auto-init on Windows.
6349
6350 * gnat_rm.texi:
6351 Add documentation for pragma Check_Name and 'Enabled attribute
6352 Document that Eliminate on dispatching operation is ignored
6353 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
6354 Document pragma Main
6355 Document pragma Implicit_Packing
6356
6357 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
6358 different conventions
6359 New switch -gnatI to disable representation clauses
6360
6361 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
6362 recognized, report the invalid characters including "-gnat" instead of
6363 just the first character in the switch.
6364 New switch -gnatI to disable representation clauses
6365 Set Warn_On_Object_Renames_Function true for -gnatg
6366
6367 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
6368 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
6369 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
6370 to switch -aP (add directory to project search dir).
6371
6372 * par-prag.adb: Implement new pragma Implicit_Packing
6373
6374 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
6375 type as having a non-standard representation, to force expansion on
6376 conversion to related types.
6377 (Analyze_Pragma): Warn on misspelled pragma
6378 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
6379 Ensure consistent use of # in error messages
6380 Implement pragma Implicit_Packing
6381
6382 2007-08-14 Olivier Hainque <hainque@adacore.com>
6383 Eric Botcazou <ebotcazou@adacore.com>
6384
6385 * targtyps.c (get_target_maximum_default_alignment): New function.
6386 Maximum alignment
6387 that the compiler might choose by default for a type or object.
6388 (get_target_default_allocator_alignment): New function. Alignment known
6389 to be honored by the target default allocator.
6390 (get_target_maximum_allowed_alignment): New function. Maximum alignment
6391 we might accept for any type or object on the target.
6392 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
6393
6394 * gigi.h (get_target_maximum_default_alignment): Declare new function.
6395 (get_target_default_allocator_alignment): Likewise.
6396 (get_target_maximum_allowed_alignment): Likewise.
6397
6398 PR ada/19037
6399 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
6400 result of a function call, first try to use a stabilized reference for
6401 a constant renaming too.
6402 (validate_alignment): Use target_maximum_allowed_alignment instead of
6403 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
6404 (gnat_to_gnu_entity): Use common nodes directly.
6405 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
6406 alignment and size for the object.
6407 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
6408 and N_Procedure_Call_Statement.
6409 (takes_address): Rename to lvalue_required_p, add third parameter
6410 'aliased' and adjust recursive calls.
6411 <N_Indexed_Component>: Update 'aliased' from the array type.
6412 <N_Selected_Component>: New case.
6413 <N_Object_Renaming_Declaration>: New Likewise.
6414 (Identifier_to_gnu): Adjust for above changes.
6415 (maybe_stabilize_reference) <CONST_DECL>: New case.
6416
6417 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
6418 between type variants.
6419 (build_simple_component_ref): Likewise.
6420 (build_call_alloc_dealloc): Use target_default_allocator_alignment
6421 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
6422 aligning type circuitry for allocations from the default storage pool.
6423 (build_allocator): Likewise.
6424 (build_simple_component_ref): Manually fold the reference for a
6425 constructor if the record type contains a template.
6426
6427 * utils.c (value_zerop): Delete.
6428 (gnat_init_decl_processing): Emit debug info for common types.
6429 (rest_of_record_type_compilation): If a union contains a field
6430 with a non-constant qualifier, treat it as variable-sized.
6431 (finish_record_type): Give the stub TYPE_DECL a name.
6432 (rest_of_record_type_compilation): Likewise.
6433 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
6434 types are equivalent array types.
6435 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
6436 even if the type is not passed by reference.
6437 (static_ctors, static_dtors): Delete.
6438 (end_subprog_body): Do not record constructors and destructors.
6439 (build_global_cdtor): Delete.
6440 (gnat_write_global_declarations): Do not call build_global_cdtor.
6441
6442 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
6443 -fRTS=rtp is specified.
6444 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
6445 specified.
6446
6447 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
6448 of the personality function with SJLJ exceptions.
6449
6450 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
6451 the name of the personality function with SJLJ exceptions.
6452
6453 2007-08-14 Robert Dewar <dewar@adacore.com>
6454 Ed Schonberg <schonberg@adacore.com>
6455
6456 * par.ads, par.adb: Improve handling of extra right parens.
6457 (Par): Remove flag From_Limited_With_Clause.
6458
6459 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
6460 Improve handling of extra right parens.
6461
6462 2007-08-14 Robert Dewar <dewar@adacore.com>
6463
6464 * par-tchk.adb (TF_Semicolon): Improve error recovery
6465
6466 2007-08-14 Robert Dewar <dewar@adacore.com>
6467 Ed Schonberg <schonberg@adacore.com>
6468
6469 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
6470 enumeration type, mark all literals as referenced.
6471 (Eval_Attribute, case 'Image): If the argument is an enumeration
6472 literal and names are available, constant-fold but mark nevertheless as
6473 non-static.
6474 Clean up function names.
6475 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
6476 comment.
6477 (Requires_Simple_Name_Prefix): Removed.
6478
6479 2007-08-14 Robert Dewar <dewar@adacore.com>
6480 Ed Schonberg <schonberg@adacore.com>
6481
6482 * sem_ch11.adb: Improved warnings for unused variables
6483
6484 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
6485 is a synchronized interface, the derived type is limited.
6486 (Analyze_Object_Declaration): Mark the potential coextensions in the
6487 definition and expression of an object declaration node.
6488 (Build_Derived_Type): For the completion of a private type declaration
6489 with a derived type declaration, chain the parent type's representation
6490 items to the last representation item of the derived type (not the
6491 first one) if they are not present already.
6492 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
6493 object declaration of forward references to tags.
6494 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
6495 subprogram types can appear as access discriminants of synchronized
6496 types.
6497 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
6498 given in prefixed form as a selected component.
6499 (Process_Discriminants): If not all discriminants have defaults, place
6500 error message on a default that is present.
6501 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
6502 extend a synchronized tagged type.
6503 Improved warnings for unused variables
6504 (Is_Visible_Component): Fix a visibility hole on a component inherited
6505 by a private extension when parent is itself declared as a private
6506 extension, and the derivation is in a child unit.
6507 (Find_Hidden_Interface): Move spec from the package body.
6508
6509 2007-08-14 Robert Dewar <dewar@adacore.com>
6510 Ed Schonberg <schonberg@adacore.com>
6511
6512 * sem_ch5.adb: Improve warnings on redundant assignments
6513
6514 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
6515 parameter
6516 (Is_Synchronized_Tagged_Type): New subprogram that returns true
6517 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
6518 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
6519 is set to False. Improves handling of Known_[Not_]Null.
6520 (Wrong_Type): Special case address arithmetic attempt
6521 (Collect_Abstract_Interfaces): Add new formal to allow collecting
6522 abstract interfaces just using the partial view of private types.
6523 (Has_Abstract_Interfaces): Add new formal to allow checking types
6524 covering interfaces using the partial view of private types.
6525 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
6526 component still needs to be defined in this case, but is never
6527 initialized as VMs are using other dispatching mechanisms.
6528 (Abstract_Interface_List): For a protected type, use base type to get
6529 proper declaration.
6530 Improve warnings on redundant assignments
6531 (Is_Variable): Handle properly an implicit dereference of a prefixed
6532 function call.
6533 (Build_Actual_Subtype): If this is an actual subtype for an
6534 unconstrained formal parameter, use the sloc of the body for the new
6535 declaration, to prevent anomalises in the debugger.
6536
6537 2007-08-14 Robert Dewar <dewar@adacore.com>
6538
6539 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
6540 dispatching operation
6541
6542 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6543 Gary Dismukes <dismukes@adacore.com>
6544
6545 * exp_aggr.ads,
6546 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
6547 expanded aggregate code before allocator, and ahead of declaration for
6548 temporary, to prevent access before elaboration when the allocator is
6549 an actual for an access parameter.
6550 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
6551 the TSD and the table of interfaces.
6552 (Convert_To_Assignments): Augment the test for delaying aggregate
6553 expansion for limited return statements to include the case of extended
6554 returns, to prevent creation of an unwanted transient scope.
6555 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
6556 (Expand_Array_Aggregate): Handle aggregates associated with
6557 statically allocated dispatch tables.
6558 (Expand_Record_Aggregate): Handle aggregates associated with
6559 statically allocated dispatch tables.
6560 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
6561 of anonymous access type.
6562
6563 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6564
6565 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
6566 is a variable that renames a slice, use the variable itself in the
6567 expannsion when the renamed expression itself may be modified between
6568 the declaration of the renaming and the array assignment.
6569
6570 2007-08-14 Jerome Guitton <guitton@adacore.com>
6571
6572 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6573 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
6574 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
6575 New functions; dummy implementations.
6576
6577 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
6578 functions, used to implement the multi-tasks mode routines on VxWorks.
6579
6580 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
6581 New functions, thin
6582 binding to the VxWorks routines which have changed between VxWorks 5
6583 and 6.
6584 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
6585 which are not callable from a RTP.
6586
6587 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
6588 implemented for the multi-tasks mode on VxWorks 5 and 6.
6589
6590 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
6591
6592 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
6593 functions.
6594
6595 2007-08-14 Vincent Celier <celier@adacore.com>
6596
6597 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
6598 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
6599 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
6600 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
6601 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
6602 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
6603 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
6604 procedure.
6605 (Major_Id_Name): New function.
6606 mlib-tgt.ads/mlib.tgt.adb:
6607 (Library_Major_Minor_Id_Supported): New function, default returns True
6608 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
6609 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
6610 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
6611 Implementation of Library_Major_Minor_Id_Supported returns False
6612 clean.adb:
6613 (Clean_Library_Directory): If major/minor ids are supported, clean all
6614 library files.
6615 Major update of the Project Manager and of the project aware tools,
6616 including gprmake, so that the same sources in the GNAT repository
6617 can be used by gprbuild.
6618
6619 2007-08-14 Olivier Hainque <hainque@adacore.com>
6620
6621 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
6622 (GCC_ZCX_Support): Switch to True.
6623
6624 * s-intman-solaris.adb (Notify_Exception): Call
6625 Adjust_Context_For_Raise before raising, as expected for signal
6626 handlers in general.
6627
6628 * s-intman-posix.adb (Notify_Exception): Remove declaration of
6629 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
6630 to other implementation bodies.
6631
6632 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
6633 be visible by multiple implementation bodies.
6634
6635 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
6636 only for conditions coming from hardware.
6637 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
6638 adjustments to signal context prior to exception raise from signal
6639 handler.
6640 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
6641 mode.
6642 Solaris section: (__gnat_adjust_context_for_raise): New function.
6643 Implementation of the machine context adjustments to perform prior to
6644 raise from a signal handler. Version for both sparc and x86.
6645 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
6646 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
6647 prior to raising as expected for any handler, before possible nested
6648 faults to make sure all the contexts in a chain have been adjusted by
6649 the time we propagate.
6650
6651 2007-08-14 Pascal Obry <obry@adacore.com>
6652
6653 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
6654 (SYSTEM_INFO): New record.
6655 (SetThreadIdealProcessor): New imported routine needed for supporting
6656 task_info pragma on Windows.
6657
6658 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
6659 info can be applied to the current host.
6660 (Create_Task): Set the ideal processor if information is present.
6661
6662 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
6663 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
6664
6665 2007-08-14 Olivier Hainque <hainque@adacore.com>
6666
6667 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
6668 stack size and initial stack pointer value for a given task.
6669 (Enter_Task): Get the stack attributes of the task we are entering and
6670 let the stack checking engine know about them.
6671
6672 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
6673 Let the stack-checking engine know about the initial sp value and stack
6674 size associated with the current task.
6675 (Set_Stack_Info): If a stack base has been notified for the current
6676 task, honor it. Fallback to the previous less accurate method otherwise.
6677
6678 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
6679
6680 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6681
6682 * sem_ch10.adb: Create a limited view of an incomplete type, to make
6683 treatment of limited views uniform for all visible declarations in a
6684 limited_withed package.
6685 Set flag indicating that a subprogram body for a child unit has a
6686 generated spec.
6687 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
6688 separate declaration, remove the unit name from visibility after
6689 compilation, so that environment is clean for subsequent compilations.
6690 (Install_Limited_Context_Clauses): Do not install a
6691 limited_private_with_clause unless the current unit is a body or a
6692 private child unit.
6693 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
6694 in the same fashion.
6695 (Install_Limited_Withed_Unit): Do not install a limited with clause if
6696 it applies to the declaration of the current package body.
6697 (Remove_Private_With_Clauses): If there is a regular with_clause for
6698 the unit, delete Private_With_Clause from context, to prevent improper
6699 hiding when processing subsequent nested packages and instantiations.
6700
6701 2007-08-14 Jose Ruiz <ruiz@adacore.com>
6702
6703 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
6704 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
6705 representing absolute path names.
6706 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
6707
6708 * cstreams.c (__gnat_full_name for VxWorks): Use
6709 __gnat_is_absolute_path to detect whether we need to add the current
6710 directory to normalize the path.
6711
6712 2007-08-14 Javier Miranda <miranda@adacore.com>
6713
6714 * a-tags.ads,
6715 a-tags.adb (Displace): Associate a message with the raised CE
6716 exception.
6717 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
6718 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
6719 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
6720 spec.
6721 (Default_Prim_Op_Count): Removed.
6722 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
6723 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
6724 Remove pragma Inline_Always.
6725
6726 * rtsfind.ads (Default_Prim_Op_Count): Removed
6727 (Max_Predef_Prims): New entity
6728 (RE_Expanded_Name): Removed
6729 (RE_HT_Link): Removed
6730 (RE_Iface_Tag): Remmoved
6731 (RE_Ifaces_Table): Removed
6732 (RE_Interfaces_Array): Removed
6733 (RE_Interface_Data_Element): Removed
6734 (RE_Nb_Ifaces): Removed
6735 (RE_RC_Offset): Removed
6736 (RE_Static_Offset_To_Top): Removed
6737
6738 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
6739 formal.
6740 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
6741 Prim_Op_Count by Max_Predef_Prims.
6742
6743 2007-08-14 Thomas Quinot <quinot@adacore.com>
6744 Vincent Celier <celier@adacore.com>
6745
6746 * binde.adb (Elab_All_Links): Remove unnecessary call to
6747 Generic_Separately_Compiled (if a unit satisfies this predicate, there
6748 won't be an associated Afile).
6749 (Elab_All_Links): Fail if a referenced unit cannot be found
6750
6751 * bindgen.adb:
6752 Fix comments in bindgen regarding consistency checks done in Bcheck:
6753 the checks are made across units within a partition, not across several
6754 partitions.
6755 Fix generation of C binder file for VxWorks.
6756
6757 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
6758 Generic_May_Lack_ALI, more descriptive of the current use of the
6759 predicate, and update documentation.
6760
6761 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
6762 reorganization and documentation update for the case of predefined
6763 library generics (for which we do not reference an Afile).
6764
6765 2007-08-14 Robert Dewar <dewar@adacore.com>
6766
6767 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
6768 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
6769 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
6770 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
6771 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
6772 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
6773 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
6774 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
6775 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
6776 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
6777 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
6778 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
6779 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
6780 g-altcon.adb: Minor reformatting
6781
6782 ada-tree.h: Delete empty line.
6783
6784 ali.ads: Minor reformatting
6785 Clarification of comments.
6786 Minor spelling correction
6787
6788 * exp_dbug.adb: Add Warnings Off to suppress new warning
6789
6790 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6791 formal
6792
6793 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
6794 value
6795
6796 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
6797
6798 * a-textio.ads: Reorder the standard input/output/error declarations
6799 for consistency.
6800
6801 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
6802
6803 * par-ch2.adb: Recognize RM specially in errout
6804 Change 'R'M to RM in all error messages
6805
6806 * scng.adb: Recognize RM specially in errout
6807
6808 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
6809 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
6810
6811 * s-direio.adb: Add missing routine header box.
6812
6813 * sem_attr.ads: Add ??? comments
6814
6815 * sem_eval.adb: Recognize RM specially in errout
6816 Change 'R'M to RM in all error messages
6817
6818 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
6819
6820 * s-tasinf.ads: Fix minor comment typo.
6821
6822 * a-cihama.adb: Minor comment addition
6823
6824 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6825 formal
6826
6827 * s-tasinf-tru64.ads: Fix minor comment typo.
6828
6829 * itypes.ads: Comment update.
6830
6831 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
6832 anymore.
6833
6834 * argv.c: Added protection against null gnat_argv and gnat_envp.
6835
6836 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
6837 warning message when Tolerate_Consistency_Errors is True.
6838
6839 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
6840 Any_Id, as this subprogram is only applicable to *type* entities (it
6841 sets RM_Size). Instead initialize just Esize and Alignment.
6842
6843 2007-08-14 Bob Duff <duff@adacore.com>
6844
6845 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
6846 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
6847 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
6848 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
6849 a-coorse.ads (Next): Applied pragma Inline.
6850 Make all Containers packages Remote_Types (unless they are already
6851 Pure).
6852 (Previous): applied pragma Inline
6853 (Elements_Type): is now a record instead of an array
6854
6855 2007-08-14 Thomas Quinot <quinot@adacore.com>
6856
6857 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
6858 of Set_Item.
6859 (Set_Item): When the new item is an element of the currently allocated
6860 table passed by reference, save a copy on the stack if we're going
6861 to reallocate. Also, in Table.Set_Item, make sure we test the proper
6862 variable to determine whether to call Set_Last.
6863
6864 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
6865 symbols-vms.adb, symbols-processing-vms-alpha.adb,
6866 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
6867 some occurrences of the pattern
6868 T.Increment_Last;
6869 T.Table (T.Last) := Value;
6870 with a cleaner call to
6871 T.Append (Value);
6872
6873 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6874 Gary Dismukes <dismukes@adacore.com>
6875 Thomas Quinot <quinot@adacore.com>
6876
6877 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
6878 derived type with interface progenitors use the analyzed formal as the
6879 parent of the actual, to create renamings for all the inherited
6880 operations in Derive_Subprograms.
6881 (Collect_Previous_Instances): new procedure within of
6882 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
6883 unit being loaded, to ensure that the generation of global symbols is
6884 consistent in different compilation modes.
6885 (Is_Tagged_Ancestor): New function testing the ancestor relation that
6886 takes progenitor types into account.
6887 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
6888 traversing over the primitives of the formal and actual types to locate
6889 any abstract subprograms of the actual type that correspond to a
6890 nonabstract subprogram of the formal type's ancestor type(s), and issue
6891 an error if such is found.
6892 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
6893 Instantiate_Package_Body, Instantiate_Subprogram_Body):
6894 Remove bogus guard around calls to Inherit_Context.
6895 (Reset_Entity): If the entity is the selector of a selected component
6896 that denotes a named number, propagate constant-folding to the generic
6897 template only if the named number is global to the generic unit.
6898 (Set_Instance_Env): Only reset the compilation switches when compiling
6899 a predefined or internal unit.
6900
6901 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6902
6903 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
6904 parameter to determine whether operation applies to the prefix.
6905 (Complete_Object_Operation): If actual has an access type and
6906 controlling formal is not an in_parameter, reject the actual if it is
6907 an access_to_constant type.
6908 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
6909 type, the candidate operations are found in the scope of declaration of
6910 the type, because the type has no primitive subprograms.
6911 (Analyze_Selected_Component): If prefix is class-wide, and root type is
6912 a private extension, only examine visible components before trying to
6913 analyze as a prefixed call.
6914 Change Entity_List to Type_To_Use, for better readability.
6915 (Has_Fixed_Op): Use base type when checking whether the type of an
6916 operator has a user-defined multiplication/division
6917 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
6918 user-defined operators are available for fixed-point types.
6919
6920 2007-08-14 Thomas Quinot <quinot@adacore.com>
6921 Ed Schonberg <schonberg@adacore.com>
6922
6923 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
6924 formal At_Any_Place indicating, when True, that we want to test for
6925 availability of the stream attribute at any place (as opposed to the
6926 current visibility context only).
6927 (Missing_Read_Write_Attributes): A stream attribute is missing for the
6928 purpose of enforcing E.2.2(8) only if it is not available at any place.
6929 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
6930 when checking the legality of an extension aggregate in a preelaborable
6931 package. Treat the literal null as a valid default expression in a
6932 component declaration for a type with preelaborable initialization.
6933 A limited interface is a legal progenitor for the designated type of a
6934 remote access to class-wide type.
6935
6936 2007-08-14 Thomas Quinot <quinot@adacore.com>
6937 Ed Schonberg <schonberg@adacore.com>
6938
6939 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
6940 reference): Use correct entity as denoted entity for the selector of
6941 the rewritten node.
6942 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
6943 setting the Referenced_As_LHS flag for entities that are implicitly
6944 dereferenced.
6945 (Find_Type): If the type is an internally generated incomplete type,
6946 mark the full view as referenced, to prevent spurious warnings.
6947 (Find_Selected_Component, Has_Components): Handle properly non-limited
6948 views that are themselves incomplete types.
6949 Handle interfaces visible through limited-with clauses.
6950 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
6951 subprogram generic actual for which we have generated a renaming.
6952 Warn when the renaming introduces a homonym of
6953 the renamed entity, and the renamed entity is directly visible.
6954
6955 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6956 Hristian Kirtchev <kirtchev@adacore.com>
6957
6958 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
6959 appear in the subtree to the current allocator if it is not a static
6960 coextension.
6961 (Resolve_Allocator): Perform cleanup if resolution has determined that
6962 the allocator is not a coextension.
6963 (Resolve): Skip an interpretation hidden by an abstract operator only
6964 when the type of the interpretation matches that of the context.
6965 (Resolve): When looping through all possible interpretations of a node,
6966 do not consider those that are hidden by abstract operators.
6967 (Resolve_Actuals): When verifying that an access to class-wide object
6968 is an actual for a controlling formal, ignore anonymous access to
6969 subprograms whose return type is an access to class_wide type.
6970 (Resolve_Slice): If the prefix of the slice is a selected component
6971 whose type depends on discriminants, build its actual subtype before
6972 applying range checks on the bounds of the slice.
6973 (Valid_Conversion): In an instance or inlined body, compare root types,
6974 to prevent anomalies between private and public views.
6975 (Resolve): Improve error message for ambiguous fixed multiplication
6976 expressions that involve universal_fixed multiplying operations.
6977
6978 2007-08-14 Javier Miranda <miranda@adacore.com>
6979 Hristian Kirtchev <kirtchev@adacore.com>
6980
6981 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
6982 location to allow the correct generation of errors in case of
6983 restrictions applied to the expanded code.
6984 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
6985 function if the condition does not reference them.
6986 (Expand_Entry_Body_Declarations): Mark the index constant as having a
6987 valid value.
6988
6989 2007-08-14 Thomas Quinot <quinot@adacore.com>
6990 Pablo Oliveira <oliveira@adacore.com>
6991
6992 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
6993 typecode parameters for a union (in a variant record), remove
6994 extraneous layer of Any wrapping for member label.
6995 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
6996 elabration statements, register the package with the name server
6997 at the beginning, not at the end, of the elaboration statements so
6998 that they can create remote access to subprogram values that designate
6999 remote subprograms from the package.
7000
7001 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7002
7003 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
7004 values to compute the number of seconds since the Unix Epoc in order to
7005 account for Daylight Savings Time. Perform special processing for dates
7006 that are earlier than the Unix Epoc to obtain a negative number.
7007
7008 2007-08-14 Emmanuel Briot <briot@adacore.com>
7009
7010 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
7011 switches.
7012
7013 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
7014
7015 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
7016 binder-generated file is not in Ada.
7017 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
7018 recorded in the ALI file.
7019 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
7020
7021 2007-08-14 Vincent Celier <celier@adacore.com>
7022
7023 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
7024 (Output_Source): Do nothing if parameter is No_Sdep_Id
7025
7026 * make.adb (Gnatmake): Do not rebuild an archive simply because a
7027 shared library it imports has a later time stamp.
7028 (Check): Resolve the symbolic links in the path name of the object
7029 directory.
7030 Check that the ALI file is in the correct object directory
7031 Check if a file name does not correspond to the mapping of units
7032 to file names.
7033 (Display_Version): New procedure
7034 (Initialize): Process switches --version and --help
7035 Use type Path_Name_Type for path name
7036
7037 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
7038
7039 * impunit.adb: Re-organize System.Random_Numbers and
7040 GNAT.Random_Numbers and add to builds.
7041
7042 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
7043
7044 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
7045
7046 * a-assert.ads, a-assert.adb: New files.
7047
7048 2007-08-14 Gary Dismukes <dismukes@adacore.com>
7049
7050 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
7051 if AAMP_On_Target is True, then the size of the type encompasses two
7052 addresses (a static link and a subprogram address), except in the case
7053 of library-level access types.
7054
7055 2007-08-14 Vincent Celier <celier@adacore.com>
7056
7057 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
7058 writing the line.
7059 (Write_Eol_Keep_Blanks): New procedure to write a line, including
7060 possible trailing spaces.
7061 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7062
7063 2007-08-14 Javier Miranda <miranda@adacore.com>
7064
7065 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
7066 null-excluding access types.
7067
7068 2007-08-14 Javier Miranda <miranda@adacore.com>
7069
7070 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
7071 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
7072 of private types add missing check on matching interfaces in the
7073 partial and full declarations.
7074 (Analyze_Protected_Type): Code cleanup.
7075 (Analyze_Task_Type): Code cleanup.
7076
7077 2007-08-14 Javier Miranda <miranda@adacore.com>
7078
7079 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
7080 generated interface thunk.
7081
7082 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7083
7084 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
7085 obsolescent warning on application of 'Class to an incomplete type.
7086
7087 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
7088 prevent obsolescent warning on application of 'Class to an incomplete
7089 type.
7090
7091 2007-08-14 Pascal Obry <obry@adacore.com>
7092
7093 * s-fileio.adb (Is_Open): Add check for usability of the underlying
7094 file stream.
7095
7096 2007-08-14 Cyrille Comar <comar@adacore.com>
7097
7098 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
7099 since it is potentially used in cases implying double finalization of
7100 the same object.
7101
7102 2007-08-14 Jose Ruiz <ruiz@adacore.com>
7103
7104 * s-tasini.adb (Get_Stack_Info): Move this function to
7105 System.Soft_Links.Tasking because it is common to the full and the
7106 restricted run times.
7107 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
7108 in SSL.Tasking.Init_Tasking_Soft_Links.
7109
7110 * s-solita.adb (Get_Stack_Info): Function moved from
7111 System.Tasking.Initialization because it is common to the full and the
7112 restricted run times.
7113 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
7114
7115 2007-08-14 Arnaud Charlet <charlet@adacore.com>
7116
7117 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
7118 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
7119 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
7120 parameter.
7121
7122 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
7123 guard to 12K.
7124
7125 2007-08-14 Gary Dismukes <dismukes@adacore.com>
7126
7127 * s-veboop.adb (SU): New named number initialized to
7128 System.Storage_Unit.
7129 (True_Val): The initialization expression is revised to use SU (=
7130 Storage_Unit) rather than assuming 8 for the component size of an
7131 unpacked Boolean array.
7132
7133 2007-08-14 Tristan Gingold <gingold@adacore.com>
7134
7135 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
7136
7137 * tb-ivms.c: New file.
7138
7139 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
7140
7141 2007-08-14 Geert Bosch <bosch@adacore.com>
7142
7143 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
7144 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
7145 Add required linker pragmas for automatically linking with the gnalasup
7146 linear algebra support library, and the systems math library.
7147 Rename cdot to cdotu and zdot to zdotu.
7148 Update header comment to describe purpose of package.
7149
7150 2007-08-14 Thomas Quinot <quinot@adacore.com>
7151
7152 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
7153 an explicitly specified Associated_Final_Chain, use that list.
7154 (Expand_N_Package_Body): Build dispatch tables of library level tagged
7155 types.
7156 (Expand_N_Package_Declaration): Build dispatch tables of library level
7157 tagged types. Minor code cleanup.
7158
7159 2007-08-14 Vincent Celier <celier@adacore.com>
7160
7161 * gnatchop.adb (Terminate_Program): Remove exception and use
7162 Types.Terminate_Program instead.
7163
7164 * osint.ads, osint.adb (Current_Exit_Status): New global variable
7165 (Find_Program_Name): Added protection against empty name.
7166 (OS_Exit_Through_Exception): New procedure
7167
7168 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
7169 (OS_Exit_Default): New procedure that contains the previous
7170 implementation of procedure OS_Exit.
7171 (Final_Value): Remove obsolete Interix stuff.
7172
7173 2007-08-14 Thomas Quinot <quinot@adacore.com>
7174
7175 * g-socket.ads: Reorganize example code so that it also works on
7176 Windows XP.
7177
7178 2007-08-14 Tristan Gingold <gingold@adacore.com>
7179
7180 * g-trasym.ads: AIX now supports symbolic backtraces.
7181
7182 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7183
7184 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
7185 units being loaded to detect circularities. A circularity may be
7186 present even if the current chain of pending units to load starts from
7187 a limited_with_clause.
7188
7189 * lib-load.ads: Change profile of Load_Unit to use a with_clause
7190 rather than a boolean flag, in order to detect circularities in
7191 with_clauses.
7192
7193 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
7194 than propagating the From_Limited_With flag, in order to handle
7195 properly circularities involving with_clauses.
7196
7197 2007-08-14 Nicolas Setton <setton@adacore.com>
7198
7199 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
7200 warnings.
7201
7202 2007-08-14 Arnaud Charlet <charlet@adacore.com>
7203
7204 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
7205 to build for libgnala.
7206 libgnat: Add rules to build libgnala.a
7207 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
7208 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
7209 Add s-osinte-vxworks-kernel.adb to the target pairs of the
7210 kernel run-time lib for VxWorks 6, which would provide a different
7211 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
7212 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
7213 running ZCX by default.
7214 Add g-sttsne-locking to LynxOS version.
7215 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
7216 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
7217
7218 * system-darwin-x86.ads: New file.
7219
7220 * Make-lang.in: Delete files before copying onto them, so if they are
7221 read-only, the copy won't fail.
7222 Update dependencies
7223
7224 2007-08-14 Pascal Obry <obry@adacore.com>
7225
7226 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
7227 naming scheme.
7228
7229 2007-08-14 Vincent Celier <celier@adacore.com>
7230
7231 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
7232 (Gcc): Initialize Gcc_Name at the first call
7233
7234 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7235
7236 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
7237 with_clauses of the enclosing unit when analyzing the package
7238 specification of a nested instance.
7239
7240 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7241
7242 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
7243 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
7244 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
7245 layout of N_Allocator.
7246
7247 2007-08-14 Thomas Quinot <quinot@adacore.com>
7248
7249 * rtsfind.adb (Check_RPC): Add PCS version check.
7250
7251 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
7252 (Gnat_Free_Software): New function.
7253
7254 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
7255 the PCS_Version value from s-parint, used to check that it is consistent
7256 with what exp_dist expects.
7257
7258 * s-parint.ads (PCS_Version): New entity for checking consistency
7259 between exp_dist and PCS.
7260
7261 * gen-soccon.c: (SO_REUSEPORT): New constant.
7262
7263 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7264
7265 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
7266 variable Sub_Second to Duration in order to accomodate a larger range
7267 of arithmetic operations.
7268
7269 2007-08-14 Bob Duff <duff@adacore.com>
7270
7271 * g-sttsne-locking.ads: Move comments from spec to body.
7272 * g-sttsne-locking.adb: Move comments from spec to body.
7273 * g-sttsne-vxworks.ads: Removed.
7274 * g-sttsne-vxworks.adb: Removed.
7275
7276 2007-08-11 Ian Lance Taylor <iant@google.com>
7277
7278 * misc.c (gnat_get_alias_set): Change return type to
7279 alias_set_type.
7280
7281 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7282
7283 * decl.c, utils2.c: Fix whitespace in last change.
7284
7285 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7286
7287 * decl.c (compare_field_bitpos): Constify.
7288 * utils2.c (compare_elmt_bitpos): Likewise.
7289
7290 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
7291
7292 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
7293 anonymous access type.
7294 (pthread_sigmask): Now take an access sigset_t.
7295
7296 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
7297
7298 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
7299
7300 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
7301
7302 PR tree-optimization/25737
7303 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
7304
7305 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
7306
7307 * trans.c (Attribute_to_gnu): When subtracting an
7308 offset from a pointer, use POINTER_PLUS_EXPR with
7309 NEGATE_EXPR instead of MINUS_EXPR.
7310 (gnat_to_gnu): Likewise.
7311 * utils.c (convert): When converting between
7312 thin pointers, use POINTER_PLUS_EXPR and sizetype
7313 for the offset.
7314 * utils2.c (known_alignment): POINTER_PLUS_EXPR
7315 have the same semantics as PLUS_EXPR for alignment.
7316 (build_binary_op): Add support for the semantics of
7317 POINTER_PLUS_EXPR's operands.
7318 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
7319
7320 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
7321
7322 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
7323 of get_signed_or_unsigned_type.
7324 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
7325
7326 2007-06-11 Bob Duff <duff@adacore.com>
7327 Thomas Quinot <quinot@adacore.com>
7328
7329 * g-stsifd-sockets.adb (Create): Work around strange behavior of
7330 'bind' on windows that causes 'connect' to fail intermittently, by
7331 retrying the 'bind'.
7332 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7333
7334 2007-06-10 Duncan Sands <baldrick@free.fr>
7335
7336 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
7337 than to void, for the fields when making a new fat pointer type.
7338 (gnat_substitute_in_type): Now substitute_in_type.
7339 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
7340 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
7341 * utils.c (update_pointer_to): Update fat pointers by updating the
7342 dummy node pointers used for the fields.
7343
7344 2007-06-06 Thomas Quinot <quinot@adacore.com>
7345 Bob Duff <duff@adacore.com>
7346
7347 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
7348 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7349 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
7350 constant Thread_Blocking_IO, always True by default, set False
7351 on a per-runtime basis.
7352 (Need_Netdb_Buffer): New constant.
7353
7354 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
7355 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
7356 files.
7357
7358 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
7359 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
7360 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
7361 child package Task_Safe_NetDB
7362 (Host_Error_Messages): Add stub body.
7363 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7364
7365 * g-soccon-mingw.ads: Add Windows-specific constants.
7366 (Need_Netdb_Buffer): New constant.
7367 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
7368 wrapper and import inet_addr(3) from the standard sockets library
7369 directly instead.
7370 (In_Addr): Add alignment clause.
7371 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7372
7373 2007-06-06 Robert Dewar <dewar@adacore.com>
7374
7375 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7376 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
7377 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
7378 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
7379 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
7380 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
7381 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
7382 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
7383 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
7384 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
7385 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
7386 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
7387 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
7388 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
7389 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7390 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
7391 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
7392 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
7393 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
7394 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
7395 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
7396 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
7397 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
7398 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
7399 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
7400 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
7401 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
7402 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
7403 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
7404 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
7405 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
7406 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
7407 Unchecked_* by Ada.Unchecked_*
7408
7409 2007-06-06 Robert Dewar <dewar@adacore.com>
7410
7411 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
7412 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
7413 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
7414 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
7415 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
7416 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
7417
7418 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
7419 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
7420 s-tasloc.adb, s-tasloc.ads: New files.
7421
7422 2007-06-06 Bob Duff <duff@adacore.com>
7423
7424 * g-expect-vms.adb:
7425 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
7426 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
7427 (Send_Signal, Close): Raise Invalid_Process if the process id is
7428 invalid.
7429 (Pattern_Matcher_Access): Is now a general access type to be able to
7430 use aliased string.
7431
7432 2007-06-06 Thomas Quinot <quinot@adacore.com>
7433 Arnaud Charlet <charlet@adacore.com>
7434
7435 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
7436 (SIGEMT is now used instead of SIGTERM on AIX).
7437
7438 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
7439 (Time_Slice_Supported): Set to True.
7440 Use SIGEMT instead of SIGTERM as SIGADAABORT.
7441
7442 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7443
7444 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
7445 (Time, Time)): Use To_Relative_Time rather than manual calculation to
7446 express the bounds of Duration as Time. Raise Time_Error when the
7447 result is greater or equal to the higher bound of Duration (on the
7448 margin case).
7449 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
7450 Ada_High_And_Leaps.
7451 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
7452 Ada_High_And_Leaps.
7453 ("-" (Time, Time)): Reorder code.
7454 (All_Leap_Seconds): Removed.
7455 (Arithmetic_Operations.Add): Remove sign related kludge.
7456 (Arithmetic_Operations.Difference): Control the leaps seconds processing
7457 with flag Leap_Support.
7458 (Arithmetic_Operations.Subtract): Remove sign related kludge.
7459 (Check_Within_Time_Bounds): New procedure.
7460 (Clock): Control the leap seconds processing with flag Leap_Support.
7461 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
7462 (Formatting_Operations.Split): Control the leap seconds processing with
7463 flag Leap_Support.
7464 (Formatting_Operations.Time_Of): Control the leaps seconds processing
7465 with flag Leap_Support. Adjust the year, month and day (if applicable)
7466 when the value of day seconds designates a new day.
7467 (Split): Use parameter associations for better readability. Integrate
7468 flag Is_Ada_05.
7469 (Time_Of): Use parameter associations for better readability. Integrate
7470 flag Is_Ada_05.
7471
7472 * a-calfor.adb (Split): Use parameter associations for better
7473 readability. Integrate flag Is_Ada_05.
7474 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
7475 better readability. Integrate flag Is_Ada_05.
7476
7477 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7478
7479 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
7480 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
7481 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
7482 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
7483 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
7484 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
7485 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
7486 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
7487 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
7488 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
7489 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
7490 time when entering this routine to detect a backward clock setting
7491 (manual setting or DST adjustment), to avoid waiting for a longer delay
7492 than needed.
7493 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
7494 Remove handling of deferred priority change, and replace by setting the
7495 task priority directly, as required by AI-188.
7496 Update comments.
7497 (Max_Task_Image_Length): New constant.
7498 Replace Warnings (Off) by Unreferenced pragma, cleaner.
7499 (Dynamic_Priority_Support): Removed, no longer needed.
7500 (Poll_Base_Priority_Change): Ditto.
7501 (Set_Ceiling): Add this procedure to change the ceiling priority
7502 associated to a lock. This is a dummy implementation because dynamic
7503 priority ceilings are not supported by the underlying system.
7504
7505 * a-dynpri.adb (Set_Priority): Take into account case where Target is
7506 accepting a RV with its priority boosted.
7507 Remove handling of deferred priority change, and replace by setting the
7508 task priority directly, as required by AI-188.
7509
7510 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
7511 Succeeded = True.
7512 Remove handling of deferred priority change, and replace by setting the
7513 task priority directly, as required by AI-188.
7514 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
7515 of Self_Id earlier.
7516
7517 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
7518 (Poll_Base_Priority_Change): Removed.
7519 Code clean up: use SSL.Current_Target_Exception.
7520
7521 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
7522 to run as this is a potentially dispatching point.
7523 (Call_Synchronous): Use Local_Defer_Abort.
7524 (Callable): Relax assertion.
7525 (Selective_Wait): Relax assertion in case abort is not allowed.
7526 Remove handling of deferred priority change, and replace by setting the
7527 task priority directly, as required by AI-188.
7528
7529 * s-tasuti.adb (Make_Passive): Adjust assertions.
7530 Remove handling of deferred priority change, and replace by setting the
7531 task priority directly, as required by AI-188.
7532
7533 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7534
7535 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7536 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7537 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
7538 system-vxworks-mips.ads, system-vxworks-alpha.ads,
7539 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
7540 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
7541 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
7542 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
7543 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
7544 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
7545 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
7546 This patch changes the largest non-binary modulus from 2**31-1 to
7547 2**32-1.
7548 (Compiler_System_Version): Removed, no longer used.
7549 Clean up system files by removing flags only used on a single target.
7550 Also remove obsolete flags, only used during bootstrap from system.ads
7551 (Address): Add a pragma Preelaborable_Initialization.
7552
7553 * system-aix.ads: Ditto.
7554 (GCC_ZCX_Support): Set to true.
7555 Update priority range on AIX and map Ada priorities to target
7556 priorities appropriately for different scheduling policies.
7557
7558 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
7559
7560 2007-06-06 Vincent Celier <celier@adacore.com>
7561
7562 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
7563 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
7564
7565 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
7566 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
7567 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
7568 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7569 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
7570 MLib.Tgt, containing the default versions of the exported subprograms.
7571 For each platform, create a specific version of the body of new child
7572 package MLib.Tgt.Specific that contains only the body of subprograms
7573 that are different from the default.
7574 (Archive_Builder_Append_Options): New function.
7575
7576 2007-06-06 Matthew Gingell <gingell@adacore.com>
7577
7578 * s-osinte-aix.adb: Map Ada priorities to target priorities
7579 appropriately for different scheduling policies.
7580
7581 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7582
7583 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
7584 its C counterpart.
7585 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
7586 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
7587
7588 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
7589
7590 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
7591 Noop on VMS, added for interface commonality.
7592
7593 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7594 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7595 Olivier Hainque <hainque@adacore.com>
7596
7597 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
7598 renamed expression of a full renaming at toplevel.
7599 (gnat_to_gnu_entity, case object): If not defining, do not look inside
7600 the values the constant is initialized to if it is an N_Allocator.
7601 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
7602 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
7603 (make_aligning_type): Accept an extra ROOM argument for storage to be
7604 made available before the aligned field, and an extra BASE_ALIGN
7605 argument for callers to pass the alignment guaranteed to be honored for
7606 the whole aligning object. Avoid call to finish_record_type, which only
7607 interferes with the sizes we want to set.
7608 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
7609 make_aligning_type for super-aligned objects on stack.
7610 (components_to_record): Pass the adjusted size of the type when creating
7611 fields in the qualified union for the variant part.
7612 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
7613 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
7614 packed array type.
7615 (maybe_pad_type): Set TYPE_USER_ALIGN.
7616 (make_aligning_type): Likewise.
7617 ALIGN argument is unsigned int.
7618 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
7619 (gnat_to_gnu_param): Likewise, for parameters.
7620 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
7621 if it is constant and stems from a function call.
7622 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
7623 of the record is specified. Adjust accordingly.
7624 (adjust_packed): New static function.
7625 (gnat_to_gnu_field): Use it to adjust the packedness setting.
7626 (components_to_record): Likewise.
7627 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
7628 side-effects if the object is deemed constant.
7629 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
7630 type instead of merely finalizing it. Tidy.
7631 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
7632 <E_Access_Type>: Likewise.
7633 (defer_debug_incomplete_list): Rename to defer_finalize_list.
7634 (defer_debug_level): Delete.
7635 (gnat_to_gnu_entity) <debug_deferred>: Likewise
7636 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
7637 type.
7638 <E_Record_Type>: Do not explicitly defer finalizing the type.
7639 Adjust for write_record_type_debug_info renaming.
7640 <E_Subprogram_Type>: Likewise.
7641 Finalize deferred types right after deferred incomplete types are
7642 expanded.
7643 (rest_of_type_decl_compilation): New global function.
7644 (components_to_record): Rename defer_debug parameter to do_not_finalize.
7645 (components_to_record): Propagate the packedness to the fields of the
7646 qualified union type if there is a variant part.
7647 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
7648 instead of inline code to adjust the XUT field offsets.
7649 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
7650 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
7651 and write the debug info if the type derives from a discriminated one.
7652 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
7653 <E_Array_Subtype>: Likewise.
7654 <E_String_Literal_Subtype>: Likewise.
7655 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
7656 an alignment clause.
7657 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
7658 before giving warning.
7659 (prepend_one_attribute_to): New function, helper to prepend an attribute
7660 to an attribute list.
7661 (gnat_to_gnu_entity) <E_Procedure>: Use it.
7662 (prepend_attributes): Likewise.
7663 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
7664 <E_Array_Type>: Declare the padding type for the element type, if any.
7665 <E_Array_Subtype>: Likewise.
7666 (defer_limited_with): New variable.
7667 (Gigi_Equivalent_Type): New function.
7668 (gnat_to_gnu_entity): Use it at start and use result throughout.
7669 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
7670 Gigi_Equivalent_Type, support Limited_With, allow two levels of
7671 indirection, precompute if unconstrained array to simplify logic, and
7672 use defer_limited_with to defer elaboration of some types from limited
7673 with.
7674 (finalize_from_with_types): New function.
7675
7676 2007-06-06 Gary Dismukes <dismukes@adacore.com>
7677 Eric Botcazou <ebotcazou@adacore.com>
7678 Tristan Gingold <gingold@adacore.com>
7679 Olivier Hainque <hainque@adacore.com>
7680
7681 * trans.c (Identifier_to_gnu): Change test for deferred constant by
7682 adding guard that the entity is an E_Constant before testing presence
7683 of Full_view (and remove unnecessary test that entity is not a type).
7684 For a CONST_DECL used by reference, manually retrieve
7685 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
7686 (struct language_function): Move from utils.c to here.
7687 (struct parm_attr): New structure.
7688 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
7689 (f_parm_attr_cache): New macro.
7690 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
7691 expressions for the 'First, 'Last and 'Length attributes of the
7692 unconstrained array IN parameters.
7693 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
7694 Allocate the information structure for the function earlier, as well
7695 as the language-specific part.
7696 If the parameter attributes cache has been populated, evaluate the
7697 cached expressions on entry.
7698 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
7699 N_Procedure_Call_Statement and N_Indexed_Component.
7700 (Pragma_to_gnu): Translate inspection_point to an asm statement
7701 containaing a comment and a reference to the object (either its address
7702 for BLKmode or its value).
7703 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
7704 to go to DECL_INITIAL. Together with the size constraint relaxation
7705 in create_var_decl, enlarges the set of situations in which an
7706 identifier may be used as an initializer without implying elaboration
7707 code.
7708 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
7709 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
7710 node.
7711 (maybe_stabilize_reference): Remove lvalues_only parameter.
7712 (gnat_stabilize_reference): Adjust for above change.
7713 (gnat_to_gnu): Do not set location information on the result
7714 if it is a reference.
7715 (add_cleanup): Add gnat_node parameter and set the location of the
7716 cleanup to it.
7717 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
7718 (Exception_Handler_to_gnu_zcx): Likewise.
7719 (gigi): Remove the cgraph node if the elaboration procedure is empty.
7720 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
7721 the former right after the latter.
7722 (start_stmt_group): Make global.
7723 (end_stmt_group): Likewise.
7724 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
7725 vars.
7726 (gnu_program_error_label_stack): Likewise.
7727 (gigi): Initialize them.
7728 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
7729 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
7730 New cases.
7731 (push_exception_label_stack): New function.
7732 (takes_address): New function.
7733
7734 * utils.c (struct language_function): Move to trans.c from here.
7735 (unchecked_convert): Do not wrap up integer constants in
7736 VIEW_CONVERT_EXPRs.
7737 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
7738 the latter for aggregate types, unexpected by later passes, and relax an
7739 arbitrary size constraint on the former.
7740 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
7741 to compare the sizes.
7742 (convert_vms_descriptor): When converting to a fat pointer type, be
7743 prepared for a S descriptor at runtime in spite of a SB specification.
7744 (shift_unc_components_for_thin_pointers): New function.
7745 (write_record_type_debug_info): For variable-sized fields, cap the
7746 alignment of the pointer to the computed alignment.
7747 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
7748 If REP_LEVEL is 2, do not compute the sizes.
7749 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
7750 (build_unc_object_type): Likewise.
7751 (declare_debug_type): New function.
7752
7753 * ada-tree.def: USE_STMT: removed (not emitted anymore).
7754
7755 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
7756 no statement is expandable anymore.
7757 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
7758 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
7759 when the user requested it explicitely.
7760 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
7761 to 0 for Ada.
7762 (get_alias_set): Return alias set 0 for a type if
7763 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
7764
7765 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
7766 (DECL_FUNCTION_STUB): New accessor macro.
7767 (SET_DECL_FUNCTION_STUB): New setter macro.
7768
7769 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
7770
7771 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
7772 declarations.
7773
7774 2007-06-06 Jose Ruiz <ruiz@adacore.com>
7775
7776 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
7777 Rename to Abort_Task_Interrupt to be able to keep the same interface
7778 as the rest of the targets.
7779
7780 * s-osinte-vxworks.ads s-osinte-vxworks.adb
7781 (To_VxWorks_Priority): Remove explicit "in" mode indicator
7782
7783 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
7784 New files.
7785
7786 2007-06-06 Robert Dewar <dewar@adacore.com>
7787
7788 * a-chahan.ads: Remove obsolescent pragmas
7789
7790 * a-chlat1.ads: Minor reformatting
7791
7792 2007-06-06 Robert Dewar <dewar@adacore.com>
7793
7794 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
7795 for Errout
7796
7797 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
7798 implementation
7799
7800 * errout.ads (Finalize): Changed interface
7801 (Output_Messages): New procedure
7802 (Compilation_Errors): New Interface
7803
7804 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
7805 Finalize/Output_Messages interface for Errout
7806 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
7807 Errout.
7808
7809 2007-06-06 Thomas Quinot <quinot@adacore.com>
7810 Olivier Hainque <hainque@adacore.com>
7811 Robert Dewar <dewar@adacore.com>
7812
7813 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
7814 check.
7815 (Raise_Current_Excep): Call Debug_Raise_Exception just before
7816 propagation starts, to let debuggers know about the event in a reliable
7817 fashion.
7818 (Local_Raise): Moved to System.Exceptions
7819 More convenient to have this as a separate unit
7820
7821 * s-except.adb, s-except.ads: New files.
7822
7823 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
7824 Debug_Unhandled_Exception in System.Exceptions where it belongs
7825 together with a couple of other debug helpers.
7826 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
7827 the former Unhandled_Exception.
7828
7829 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
7830 (Warn_No_Exception_Propagation): New procedure
7831 (Warn_If_No_Propagation): Rewritten for new warning generation
7832 (Expand_Exception_Handlers): New warning generation
7833 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
7834 (Add_Exception_Label): Use Special_Exception_Package_Used for test
7835 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
7836 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
7837 even if restriction is set (makes life easier in Check_Returns)
7838 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
7839 checking exception identities.
7840 (Expand_Local_Exception_Handlers): Do not optimize when all others case
7841 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
7842 block for handler (used by Check_Returns)
7843 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
7844 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
7845 remove all exception handlers when optimizing local raise statements.
7846 (Find_Local_Handler): Use Get_Renamed_Entity
7847 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
7848 marked analyzed after expanding exception handlers, do not generate
7849 redundant cleanup actions, because they have been constructed already.
7850
7851 2007-06-06 Thomas Quinot <quinot@adacore.com>
7852
7853 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
7854 presence of this categorization pragma is mandated by the language.
7855 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
7856 for this type.
7857
7858 2007-06-06 Vincent Celier <celier@adacore.com>
7859 Robert Dewar <dewar@adacore.com>
7860
7861 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
7862 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
7863 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
7864 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
7865 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
7866 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
7867 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
7868 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
7869 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
7870 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
7871 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
7872 ali.ads, ali.adb:
7873 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
7874 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
7875 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
7876 Use variables of types File_Name_Type and Unit_Name_Type in error
7877 messages.
7878 (Get_Name): Add parameter Ignore_Special, and set it reading file name
7879 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
7880 here.
7881 Define flags Flag217-Flag230 with associated subprograms
7882 (Flag_Word5): New record type.
7883 (Flag_Word5_Ptr): New access type.
7884 (To_Flag_Word5): New unchecked conversion.
7885 (To_Flag_Word5_Ptr): Likewise.
7886 (Flag216): New function.
7887 (Set_Flag216): New procedure.
7888
7889 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7890
7891 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
7892 instead of 'Size.
7893
7894 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
7895
7896 2007-06-06 Javier Miranda <miranda@adacore.com>
7897
7898 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
7899 the package.
7900 (Object_Specific_Data_Array): This is now internal to the package.
7901 (Object_Specific_Data): This is now internal to the package.
7902 (Select_Specific_Data_Element): This is now internal to the package.
7903 (Select_Specific_Data_Array): This is now internal to the package.
7904 (Select_Specific_Data): This is now internal to the package.
7905 (Offset_To_Top_Function_Ptr): This is now public.
7906 (To_Offset_To_Top_Function_Ptr): Removed.
7907 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
7908 local to subprogram Offset_To_Top.
7909 (Predefined_DT): Removed.
7910 (Typeinfo_Ptr): Removed.
7911 (OSD): This function is now internal to this package.
7912 (SSD): This function is now internal to this package.
7913 (DT): New function that displaces the pointer to the table of primitives
7914 to get access to the enclosing wrapper record.
7915 (IW_Membership): Code cleanup.
7916 (Offset_To_Top): Code cleanup.
7917 (Predefined_DT): Removed.
7918 (Register_Interface_Tag): Removed.
7919 (Set_Interface_Table): Removed.
7920 (Set_Offset_Index): Removed.
7921 (Set_Offset_To_Top): Code cleanup.
7922 (Set_OSD): Removed.
7923 (Set_Signature): Removed.
7924 (Set_SSD): Removed.
7925 (Set_Tagged_Kind): Removed.
7926 (Typeinfo_Ptr): Removed.
7927 (TSD): Removed.
7928 (Displace): Add missing check on null actual.
7929
7930 * exp_disp.ads, exp_disp.adb
7931 (Select_Expansion_Utilities): Removed.
7932 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
7933 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
7934 the interface requires a new parameter.
7935 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
7936 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
7937 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
7938 Done to remove package Select_Expansion_Utilities.
7939 (Make_DT): New implementation for statically allocated dispatch tables.
7940 (Make_Secondary_DT): Moved to the scope of Make_DT.
7941 (Register_Primitive): Code cleanup plus incoporate the use of the new
7942 function DT_Address_Attribute.
7943 (Expand_Interface_Thunk): The profile of this subprogram has been
7944 changed to return the Thunk_Id and the corresponding code.
7945 (Fill_DT_Entry): Removed. Its functionality is now provided by
7946 subprogram Register_Primitive.
7947 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
7948 subprogram Register_Primitive.
7949 (Register_Primitive): New subprogram that incorporates the previous
7950 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
7951 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
7952 was only required to call Make_DT_Access_Action, which is now removed.
7953 (Ada_Actions): Removed
7954 (Action_Is_Proc): Removed
7955 (Action_Nb_Arg): Removed
7956 Replace all the calls to Make_DT_Access_Action by direct calls to
7957 Make_Procedure_Call_Statement or Make_Function_Call.
7958 (Set_DTC_Entity_Value): New subprogram.
7959 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
7960 (Expand_Interface_Thunk): Add missing support for primitives that are
7961 functions with a controlling result (case in which there is no need
7962 to generate the thunk).
7963
7964 * exp_atag.ads, exp_atag.adb
7965 (Build_DT): New subprogram that displaces the pointer to reference the
7966 base of the wrapper record.
7967 (Build_Typeinfo_Offset): Removed.
7968 (RTE_Tag_Node): Removed.
7969 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
7970 (Build_Get_RC_Offset): Removed.
7971 (Build_Inherit_Predefined_Prims): Removed.
7972 (Build_Inherit_TSD: Removed.
7973 (Build_New_TSD): Removed.
7974 (Build_Set_External_Tag): Removed.
7975 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
7976 (Build_Set_Prim_Op_Address): Add documentation.
7977 (Build_Set_TSD): Removed.
7978
7979 * rtsfind.ads, rtsfind.adb
7980 (Load_Fail): If load fails and we are not in configurable run-time
7981 mode, then raise Unrecoverable_Error.
7982 (Text_IO_Kludge): Generate an error message if a run-time library is
7983 not available in a given run-time (ie. zfp run-time).
7984 (RTE_Record_Component): Add code to check that the component we search
7985 for is not found in two records in the given run-time package.
7986 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
7987 (RE_DT_Predef_Prims_Offset): New entity
7988 (RE_Static_Offset_To_Top): New entity
7989 (RE_HT_Link): New entity.
7990 (System_Address_Image): Addition of this run-time package.
7991 (RE_Address_Image): New entity.
7992 (RE_Abstract_Interface): Removed.
7993 (RE_Default_Prim_Op_Count): Removed.
7994 (RE_DT_Entry_Size): Removed.
7995 (RE_DT_Min_Prologue_Size): Removed.
7996 (RE_DT_Prologue_Size): Removed.
7997 (RE_Ifaces_Table_Ptr): Removed.
7998 (RE_Interface_Data_Ptr): Removed.
7999 (RE_Type_Specific_Data): Removed.
8000 (RE_Primary_DT): Removed.
8001 (RE_Register_Interface_Tag): Removed.
8002 (RE_Set_Offset_Index): Removed.
8003 (RE_Set_OSD): Removed.
8004 (RE_Set_SSD): Removed.
8005 (RE_Set_Signature): Removed.
8006 (RE_Set_Tagged_Kind): Removed.
8007 (RE_Address_Array): New entity.
8008 (RE_DT): New entity.
8009 (RE_Iface_Tag): New entity.
8010 (RE_Interfaces_Table): New entity.
8011 (RE_No_Dispatch_Table): New entity.
8012 (RE_NDT_Prims_Ptr): New entity.
8013 (RE_NDT_TSD): New entity.
8014 (RE_Num_Prims): New entity.
8015 (RE_Offset_To_Top_Function_Ptr): New entity.
8016 (RE_OSD_Table): New entity.
8017 (RE_OSD_Num_Prims): New entity.
8018 (RE_Predef_Prims): New entity
8019 (RE_Predef_Prims_Table_Ptr): New entity.
8020 (RE_Primary_DT): New entity.
8021 (RE_Signature): New entity.
8022 (RE_SSD): New entity.
8023 (RE_TSD): New entity.
8024 (RE_Type_Specific_Data): New entity.
8025 (RE_Tag_Kind): New entity.
8026
8027 2007-06-06 Thomas Quinot <quinot@adacore.com>
8028
8029 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
8030 C imported variable.
8031 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
8032 on entry.
8033
8034 2007-06-06 Robert Dewar <dewar@adacore.com>
8035
8036 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
8037 character
8038
8039 2007-06-06 Vincent Celier <celier@adacore.com>
8040
8041 * a-tifiio.adb (Put, internal): For negative numbers, check that there
8042 is room for at least one digit and the minus sign.
8043 (Put.Put_Character): Never put a character outside of the range of
8044 string To.
8045
8046 2007-06-06 Olivier Hainque <hainque@adacore.com>
8047 Eric Botcazou <ebotcazou@adacore.com>
8048
8049 * utils2.c (build_allocator): Provide the extra arguments to
8050 make_aligning_type for super-aligned objects allocated from the default
8051 pool. Leave enough room for a pointer before the aligning field, and
8052 store the system's allocator return value there.
8053 (build_call_alloc_dealloc): When releasing a super-aligned object,
8054 retrieve the system's allocator return value from where build_allocator
8055 has stored it, just ahead of the adjusted address we are passed.
8056 (build_call_raise): Handle properly the generation of line numbers when
8057 the node is marked No_Location.
8058 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
8059 by using DECL_UID on ties.
8060 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
8061 main variant.
8062 (build_call_raise): Handle converting exception into goto; support new
8063 argument KIND.
8064 (build_component_ref): Add new arg to build_call_raise.
8065
8066 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8067
8068 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
8069 "." in the case of nnn.xxx when nnn terminates with an underscore.
8070 Parse the remaining "#" or ":" in the case of nnn#.xxx#
8071
8072 2007-06-06 Robert Dewar <dewar@adacore.com>
8073
8074 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
8075
8076 2007-06-06 Arnaud Charlet <charlet@adacore.com>
8077 Vincent Celier <celier@adacore.com>
8078 Robert Dewar <dewar@adacore.com>
8079
8080 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
8081 needed.
8082 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
8083 ((destructor)) for adafinal, even when switch -a is used.
8084 Do not issue pragma Linker_Destructor for adafinal when switch -a is
8085 used.
8086 (Gen_Object_Files_Options): Add formatting of Linker Options, when
8087 Output_Linker_Option_List is set. Suppress this formatting when
8088 Zero_Formatting is set.
8089 Add case for CLI_Target.
8090 (System_Restrictions_Used): New flag, used to avoid generating with of
8091 System_Restrictions and initialization of the data unless there is
8092 some use of System.Restrictions in the partition.
8093 (Check_System_Restrictions_Used): New procedure
8094
8095 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
8096 since we only with this unit in the binder file if it is used elsewhere
8097 in the partition.
8098
8099 2007-06-06 Vincent Celier <celier@adacore.com>
8100
8101 * bindusg.adb: Add line for @<response file>
8102 Add lines for new switches -R and -Z
8103
8104 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
8105 hierarchy in the list of files of the closure when -R is used
8106 (Gnatbind): Accept arguments starting with '@' to indicate response
8107 files and take the arguments from the response files.
8108 If List_Closure is set, display the referenced files
8109
8110 2007-06-06 Javier Miranda <miranda@adacore.com>
8111 Robert Dewar <dewar@adacore.com>
8112 Ed Schonberg <schonberg@adacore.com>
8113
8114 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
8115 which the address-clause is applied to in-mode actuals (allowed by
8116 13.1(22)).
8117 (Apply_Discriminant_Check): Do not generate a check if the type is
8118 constrained by a current instance.
8119 (Activate_Division_Check): New procedure
8120 (Activate_Overflow_Check): New procedure
8121 (Activate_Range_Check): New procedure
8122 Call these new Activate procedures instead of setting flags directly
8123 (Apply_Array_Size_Check): Removed, no longer needed.
8124 Code clean up: remove obsolete code related to GCC 2.
8125 (Get_E_Length): Protect against bomb in case scope is standard
8126 (Selected_Range_Checks): If the node to be checked is a conversion to
8127 an unconstrained array type, and the expression is a slice, use the
8128 bounds of the slice to construct the required constraint checks.
8129 Improve NOT NULL error messages
8130 (Apply_Constraint_Check): If the context is a null-excluding access
8131 type, diagnose properly the literal null.
8132
8133 2007-06-06 Pascal Obry <obry@adacore.com>
8134
8135 * clean.adb (Clean_Archive): Use untouched casing for the archive name
8136 and the corresponding .deps file.
8137 (Clean_Interface_Copy_Directory): Use untouched casing for the library
8138 src directory. Minor code-clean-up. Use untouched casing for files
8139 read into the library src dir.
8140 (Clean_Library_Directory): Idem.
8141 (Parse_Cmd_Line): Accept new switch -aP
8142
8143 2007-06-06 Javier Miranda <miranda@adacore.com>
8144 Ed Schonberg <schonberg@adacore.com>
8145 Robert Dewar <dewar@adacore.com>
8146 Eric Botcazou <ebotcazou@adacore.com>
8147 Arnaud Charlet <charlet@adacore.com>
8148
8149 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
8150 applicable to types that have the With_Type flag set. Returns the
8151 non-limited view of the type, if available, otherwise the type itself.
8152 For class-wide types, there is no direct link in the tree, so we have
8153 to retrieve the class-wide type of the non-limited view of the Etype.
8154 New attributes Static_Initialization and Static_Elaboration_Desired.
8155 Remove the pragma Thread_Body, and the associated flag
8156 Is_Thread_Body in entities, and all related code.
8157 (Suppress_Value_Tracking_On_Call): New flag
8158 E_Exception has Esize and Alignment fields
8159 (Universal_Aliasing): New function.
8160 (Set_Universal_Aliasing): New procedure.
8161 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
8162 (Check_Nested_Access): New procedure.
8163 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
8164 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8165 (Related_Interface): New attribute. Present in dispatch table pointer
8166 components of records. Set to point to the entity of the corresponding
8167 interface type.
8168 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
8169 (Original_Access_Type): Remove, not needed.
8170 (Root_Type): Handle properly subtypes of class-wide-types.
8171 Update comments.
8172
8173 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
8174 class-wide types visible through limited-with clauses.
8175 (Try_Primitive_Operation): When examining all primitive operations of a
8176 tagged type, do not consider subprograms labeled as hidden unless they
8177 belong to a private generic type with a tagged parent.
8178 (Try_Object_Operation): Extensive rewriting, to handle properly various
8179 overloading cases, when several ancestors may have class-wide operations
8180 that are possible candidates, and when the overloaded functions return
8181 array types and have defaulted parameters so that the call may be
8182 interpreted as an indexing.
8183 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
8184 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
8185 successive actuals before analyzing the call itself.
8186 (Try_Primitive_Operation): A primitive operation is compatible with the
8187 prefix if the prefix has a synchronized type and the type of the formal
8188 is its corresponding record, as can be the case when the primitive
8189 operation is declared outside of the body of the type.
8190 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
8191 perform homonym traversal, looking for class-wide operation matches
8192 (formerly done in statements of Try_Class_Wide_Operation). Matches on
8193 access parameters are now restricted to anonymous access types.
8194 (Mark_Allocator): An allocator with a discriminant association parent is
8195 a coextension.
8196 (Try_One_Prefix_Interpretation): If the type of the object is
8197 incomplete, as can be happen when it is a limited view obtained through
8198 a limited_with_clause, the selected component is not part of a prefixed
8199 call.
8200 (Complete_Object_Operation): Diagnose properly an object that is not
8201 aliased when the corresponding controlling formal is an access
8202 parameter.
8203 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
8204 ambiguous calls in prefixed notation, where two primitives differ only
8205 in that the controlling argument of one is an access parameter.
8206
8207 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
8208 whether a function that returns an unconstrained type can be inlined.
8209 (Process_Formals): Diagnose properly the illegal use of an incomplete
8210 type in the profile of an access_to_subprogram declaration.
8211 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
8212 operations are attached to the corresponding record.
8213 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
8214 When processing a primitive of a concurrent type which implements an
8215 interface change the type of all controlling formals to that of the
8216 corresponding record type.
8217 (Check_Synchronized_Overriding): Relax the conditional logic when trying
8218 to determine the tagged type to which a primitive belongs.
8219 (Check_Conventions): Capture condition to ignore a primitive operation
8220 (which is shared between the loop in Check_Conventions and the one in
8221 Check_Convention) in a new local function Skip_Check.
8222 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
8223 confusion with Check_Conventions' own Prim_Op local variable.
8224 (Create_Extra_Formals): Test for a tagged result type rather than a
8225 controlling result when determining whether to add a BIP_Alloc_Form
8226 formal and a BIP_Final_List formal to the function.
8227 (Check_Conformance); For parameters that are anonymous access types,
8228 subtype conformance requires that the not null and the constant
8229 indicators must match
8230 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
8231 to retrieve the appropriate type when processing a concurrent type
8232 declared within a generic. Minor comment reformatting. Change invocation
8233 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
8234 mitive.
8235 (Analyze_Subprogram_Body): If the return type of a function is an
8236 anonymous access to the limited view of a class-wide type, and the
8237 non-limited view of the type is available, update the type of the
8238 function so that code can be generated.
8239 (Process_Formals): In case of access-subtype itype whose designated
8240 type is also an itype (situation that happens now with access to
8241 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
8242 attribute to avoid backend problems.
8243 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
8244 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
8245 anonymous types' designated types are same before testing
8246 Subtypes_Statically_Match.
8247 (Create_Extra_Formals): Test for a named access parameter that is a
8248 controlling formal as an additional condition for adding an
8249 accessibility level formal. This can occur in the subp type created for
8250 dispatching calls in Expand_Dispatching_Call, and allows calling
8251 Create_Extra_Formals from that procedure rather than special-casing the
8252 extra formals there.
8253 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
8254 when the function has a controlling result.
8255 (Check_Returns): Add much more knowledge of the optimization of local
8256 raise statements to gotos, to retain proper warnings in this case.
8257 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
8258 nodes when looking for last statement.
8259
8260 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
8261 class-wide types visible through limited with clauses.
8262 (Add_One_Interp): If the operands are anonymous access types, the
8263 predefined operator on universal_access is immediately visibles
8264 (Find_Unique_Type): Handle anonymous access to subprogram types just as
8265 other anonymous access types.
8266 (Disambiguate): Take into account CIL convention.
8267 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
8268
8269 2007-06-06 Robert Dewar <dewar@adacore.com>
8270
8271 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
8272 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
8273 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
8274 Fix lower bound of tables.
8275 Add rep clauses.
8276
8277 * nlists.adb: Ditto.
8278 (Prev_Node, Next_Node): Change index type to Int so that it properly
8279 covers the range First_Node_Id - 1 up.
8280
8281 2007-06-06 Javier Miranda <miranda@adacore.com>
8282 Ed Schonberg <schonberg@adacore.com>
8283 Bob Duff <duff@adacore.com>
8284 Hristian Kirtchev <kirtchev@adacore.com>
8285
8286 * exp_aggr.ads, exp_aggr.adb:
8287 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
8288 in extension aggregates.
8289 (Flatten): Other conditions being met, an aggregate is static if the
8290 low bound given by component associations is different from the low
8291 bound of the base index type.
8292 (Packed_Array_Aggregate_Handled): If the component type is itself a
8293 packed array or record, the front-end must expand into assignments.
8294 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
8295 Init_Pr, instead of Ancestor_Is_Expression.
8296 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
8297 coextension chain root, either generate a list controller or use the
8298 already existing one.
8299 (Static_Array_Aggregate): New procedure to construct a positional
8300 aggregate that can be handled by the backend, when all bounds and
8301 components are compile-time known constants.
8302 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
8303 types covering interface types into assignments.
8304 (Replace_Type): move to Build_Record_Aggr_Code.
8305 (Expand_Record_Aggr_Code): if the target of the aggregate is an
8306 interface type, convert to the definite type of the aggregate itself,
8307 so that needed components are visible.
8308 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
8309 components and the context is an extended return statement do not
8310 create a transient block for it, to prevent premature finalization
8311 before the return is executed.
8312 (Gen_Assign): Do not generate a call to deep adjust routine if the
8313 component type is itself an array of controlled (sub)-components
8314 initialized with an inner aggregate.
8315 (Component_Check): New name for Static_Check. This name is now more
8316 appropriate, and documentation is added which was missing.
8317 (Component_Check): Add test for bit aligned component value
8318 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
8319 Tagged_Comps, name is more appropriate given added function below.
8320 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
8321
8322 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8323 Javier Miranda <miranda@adacore.com>
8324 Robert Dewar <dewar@adacore.com>
8325
8326 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
8327 Terminated: Add unchecked type conversion from System.Address to
8328 System.Tasking.Task_Id when calling the predefined primitive
8329 _disp_get_task_id.
8330 Disable new Ada 05 accessibility check for JVM.NET targets, which
8331 cannot be implemented in a practical way.
8332 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
8333 the sources always references the tag of the actual object. Therefore,
8334 if 'Tag is applied in the sources to class-wide interface objects we
8335 generate code that displaces "this" to reference the base of the object.
8336 (Expand_N_Attribute_Reference, case Size): Return specified size if
8337 known to front end.
8338 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
8339 has code that displaces the pointer of the object to manage interface
8340 types. However this code must not be executed when the prefix is a
8341 subprogram. This bug caused the wrong expansion of the internally
8342 generated assignment that fills the dispatch table when the primitive
8343 is a function returning a class-wide interface type.
8344 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
8345 Set_Attribute_Name for Name_Unaligned_Valid.
8346
8347 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8348 Gary Dismukes <dismukes@adacore.com>
8349
8350 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
8351 If the initialization is the equivalent aggregate of the initialization
8352 procedure of the type, do not remove it.
8353 (Expand_N_Attribute_Definition_Clause): Exclude access variables
8354 initialized to null from having their expression reset to empty and
8355 note this exception in the comment.
8356
8357 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8358 Robert Dewar <dewar@adacore.com>
8359 Ed Schonberg <schonberg@adacore.com>
8360 Gary Dismukes <dismukes@adacore.com>
8361
8362 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
8363 Add "with" and "use" clauses for Sem_Attr.
8364 (Expand_Current_Value): Do not replace occurences of attribute
8365 references where the prefix must be a simple name.
8366
8367 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
8368 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
8369 Attribute_Requires_Simple_Name_Prefix.
8370 (Name_Modifies_Prefix): Body of new function.
8371 (Requires_Simple_Name_Prefix): Body of new function.
8372 (Resolve_Attribute, case Access): Improve error message for case of
8373 mismatched conventions.
8374 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
8375 incomplete type.
8376 (Analyze_Attribute, case 'Access): If the type of the prefix is a
8377 constrained subtype for a nominal unconstrained type, use its base type
8378 to check for conformance with the context.
8379 (Resolve_Attribute): Remove test of the access type being associated
8380 with a return statement from condition for performing accessibility
8381 checks on access attributes, since this case is now captured by
8382 Is_Local_Anonymous_Access.
8383 (Analyze_Access_Attribute): Set Address_Taken on entity
8384 (Analyze_Attribute, case Address): Set Address_Taken on entity
8385 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
8386 validating an access attribute whose prefix is a current instance.
8387 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
8388 applied to dispatching operations, if freezing is required then we set
8389 the attribute Has_Delayed_Freeze in the prefix's entity.
8390 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
8391 current scope if access of local subprogram taken
8392 (Analyze_Access_Attribute): Check legality of self-reference even if the
8393 expression comes from source, as when a single component association in
8394 an aggregate has a box association.
8395 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
8396 the prefix if it is a protected operation and the attribute is
8397 Unrestricted_Access.
8398 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
8399 reference to the base type of the context, to force a constraint check
8400 when the context is an access subtype with an explicit constraint.
8401 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
8402 node is rewritten as an interface conversion. leave unanalyzed after
8403 resolution, to ensure that type checking against the context will take
8404 place.
8405
8406 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8407 Javier Miranda <miranda@adacore.com>
8408 Robert Dewar <dewar@adacore.com>
8409
8410 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
8411 wrapper when the full view of the controlling type of an inherited
8412 function that dispatches on result implements interfaces.
8413 (Expand_N_Object_Declaration): In cases where the type of the
8414 declaration is anonymous access, create finalization list for it.
8415 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
8416 if the object has no explicit initialization, to match description of
8417 functionality of pragam Persistent_BSS.
8418 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
8419 new function to build static aggregates, to replace initialization call
8420 when static initialization is desired.
8421 (Freeze_Type): Generate a list controller for an access type whenever
8422 its designated type has controlled anonymous access discriminants.
8423 (Build_Equivalent_Aggregate): New procedure to compute a static
8424 aggregate to be used as default initialization for composite types,
8425 instead of a generating a call to the initialization procedure for the
8426 type.
8427 (Build_Initialization_Call): When available, replace a call to the
8428 initialization procedure with a copy of the equivalent static aggregate
8429 for the type.
8430 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
8431 declarations for objects of a class-wide interface type, rather than
8432 just identifiers, to prevent visibility problems.
8433 (Expand_N_Object_Declaration): When expanding the declaration for an
8434 object of a class-wide interface type, preserve the homonym chain of
8435 the original entity before exchanging it with that of the generated
8436 renaming declaration.
8437 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
8438 active, because there is no way to handle the exception.
8439 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
8440 to do a minimum decoration of the Access_Disp_Table list.
8441 (Expand_Record_Controller): Avoid the addition of the controller between
8442 the component containing the tag of a secondary dispatch table and its
8443 adjacent component that stores the offset to the base of the object.
8444 This latter component is only generated when the parent type has
8445 discriminants ---documented in Add_Interface_Tag_Components).
8446 (Apply_Array_Size_Check): Removed, no longer needed.
8447 (Expand_N_Full_Type_Declaration): If the type has anonymous access
8448 components, create a Master_Entity for it only if it contains tasks.
8449 (Build_Init_Procedure): Suppress the tag assignment compiling under
8450 no run-time mode.
8451 (Freeze_Record_Type): Remove code associated with creation of dispatch
8452 table.
8453 (Init_Secondary_Tags): Update type of actuals when generating calls to
8454 Ada.Tags.Set_Offset_To_Top
8455 (Stream_Operation_OK): Disable use of streams compiling under no
8456 run-time mode
8457 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
8458 if Has_Init_Expression set.
8459 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
8460 Register_Primitive, which provides the same functionality.
8461 (Requires_Init_Proc): Return false in case of interface types.
8462 (Add_Secondary_Tables): Use the new attribute Related_Interface to
8463 cleanup the code.
8464 (Predefined_Primitive_Freeze): Do not assume that an internal entity
8465 is always associated with a predefined primitive because the internal
8466 entities associated with interface types are not predefined primitives.
8467 Therefore, the call to Is_Internal is replaced by a call to the
8468 function Is_Predefined_Dispatching_Operation.
8469 (Make_Eq_If): When generating the list of comparisons for the
8470 components of a given variant, omit the controller component that is
8471 present if the variant has controlled components.
8472
8473 2007-06-06 Javier Miranda <miranda@adacore.com>
8474 Hristian Kirtchev <kirtchev@adacore.com>
8475 Bob Duff <duff@adacore.com>
8476
8477 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
8478 handle the creation of finalization lists and calls for nested
8479 coextensions when the root of the chains is part of a return statement.
8480 (Inside_A_Return_Statement): New function inside Complete_Coextension_
8481 Finalization.
8482 (Expand_Record_Equality): Skip components that are interface types.
8483 (Displace_Allocator_Pointer): Add missing support for interface subtypes
8484 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
8485 with Rewrite_Coextension. Change the condition for detecting coextension
8486 root nodes.
8487 (Is_Local_Access_Discriminant): Removed.
8488 (Rewrite_Coextension): New routine which rewrites a static coextension
8489 as a temporary and uses its unrestricted access in the construction of
8490 the outer object.
8491 (Complete_Coextension_Finalization): New routine. Generate finalization
8492 attachment calls to all delayed coextensions.
8493 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
8494 the allocator is not a coextension itself and has delayed coextensions.
8495 If the current allocator is controlled, but also a coextension, delay
8496 the generation of the finalization attachment call.
8497 Rename local variable "Node" to "Nod" in order to avoid confusion with
8498 "Elists.Node".
8499 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
8500 limited types that are not inherently limited. Such an allocator is
8501 illegal, but is generated by the expander for a return statement, to
8502 copy the result onto the secondary stack. This is the only case where a
8503 limited object can be copied. Generate code to displace the pointer
8504 to the object if the qualified expression is a class-wide interface
8505 object. Such displacement was missing and hence the copy of the object
8506 was wrong.
8507 (Apply_Accessibility_Check): Handle allocated objects initialized in
8508 place.
8509 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
8510 and Expand_Allocator_Expression. Allocating class-wide interface objects
8511 this routine displaces the pointer to the allocated object to reference
8512 the component referencing the corresponding secondary dispatch table.
8513 Expand_Allocator_Expression): Add missing support to allocate class-wide
8514 interface objects initialized with a qualified expression.
8515 (Get_Allocator_Final_List): Test for an anonymous access type that is a
8516 function result type, and use the finalization list associated with the
8517 function scope in that case (such an anonymous type should not be
8518 treated like an access parameter's type).
8519
8520 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8521 Gary Dismukes <dismukes@adacore.com>
8522 Javier Miranda <miranda@adacore.com>
8523
8524 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
8525 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
8526 required exception handler.
8527 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
8528 properly the case of a function whose return type is a limited
8529 class-wide interface type. Modify the code of the accessibility
8530 check to handle class-wide interface objects. In this case we need to
8531 displace "this" to reference the primary dispatch table to get access
8532 to the TSD of the object (to evaluate its accessibility level).
8533 (Expand_N_Extended_Return_Statement): Test for a tagged result type
8534 rather than a controlling result as one of the conditions for
8535 generating tests of the implicit BIP_Alloc_Form formal. The
8536 initialization assignment is also handled according to whether the
8537 result is tagged instead of controlling.
8538 In the case where the init assignment is inserted in the "then" part of
8539 the allocation conditional, rewrite the target to be a dereference of
8540 the implicit BIP_Object_Access formal.
8541 If the returned value is unconstrained and created on the secondary
8542 stack, mark the enclosing block and function so that the secondary
8543 stack is not reclaimed on return.
8544 Treat returns from functions with controlling results similarly to
8545 returns from functions with unconstrained result subtypes.
8546 If the object returned is unconstrained, and an allocator must be
8547 created for it, analyze the allocator once the block for the extended
8548 return is installed, to ensure that finalizable components
8549 of the expression use the proper finalization list. Guard the call to
8550 Move_Final_List with a check that there is something to finalize.
8551 (Make_Tag_Ctrl_Assignment): Use "old" handling
8552 of controlled type assignment for virtual machines, since new code uses
8553 unsupported features (such as direct access to bytes in memory).
8554
8555 2007-06-06 Gary Dismukes <dismukes@adacore.com>
8556 Ed Schonberg <schonberg@adacore.com>
8557
8558 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
8559 accessibility actual, check for the case of an aliased object that has
8560 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
8561 we fall into processing for the attribute rather than the name of the
8562 object.
8563 (Expand_Inline_Call): If an actual is a literal, and the corresponding
8564 formal has its address taken in the body, create a temporary to capture
8565 value. If the return type is a limited interface, do not treat the
8566 return value as Controlled.
8567 (Is_In_Place_Function): If the return type is a limited interface,
8568 treat as returning in place. The actual returned object may not always
8569 be limited, but the caller has to assume that it is returned in place.
8570 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
8571 context of an allocator, use the correct finalization chain (that is,
8572 the chain belonging to the access type, rather than the chain belonging
8573 to the current scope).
8574 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
8575 result type rather than a controlling result as a precondition for
8576 adding an allocation form actual to a build-in-place call.
8577 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
8578 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
8579 primitive in the dispatch tables. This work is now done by Make_DT when
8580 the type is frozen.
8581 (Register_Predefined_DT_Entry): Removed.
8582 (Add_Return): If end label is not present, use sloc of last statement
8583 for generated return statement in procedure, for better gdb behavior
8584 on expanded code.
8585 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
8586 object address nodes to ensure proper processing by routines like
8587 Insert_After*.
8588 (Expand_Call): Fix generation of validity check for parameter
8589 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
8590 the allocation form parameter if the result subtype is constrained,
8591 except when the function has a controlling result.
8592 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
8593 rather than Is_Controlled and Has_Controlled_Component, since we want to
8594 include class-wide result types in this treatment. Also test for a
8595 controlling result, since that also requires passing a finalization
8596 list.
8597 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
8598 even when the result subtype is constrained, to handle calls involving
8599 controlling results.
8600 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
8601 is now called even when the result subtype is constrained, to handle
8602 calls involving controlling results.
8603 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
8604 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
8605 now performs the test).
8606 (Make_Build_In_Place_Call_In_Object_Declaration):
8607 Add_Alloc_Form_Actual_* is now called even when the result subtype is
8608 constrained, to handle calls involving controlling results.
8609 (Add_Return): Accomodate rewritten pattern from local raise to goto
8610 transformation, so that we still recognize an transfer statement
8611 and do the right thing here in that case.
8612 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
8613 and end of subprogram code.
8614 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
8615 support for primitives that are functions (without formals) with a
8616 controlling result.
8617 (Inherited_From_Formal): If the actual subtype has not generic parent
8618 type, it is not an actual for a formal derived type, and there is no
8619 operation to inherit from the formal.
8620
8621 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8622 Thomas Quinot <quinot@adacore.com>
8623
8624 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
8625 inserted cleanup code appropriately for GDB use.
8626 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
8627 exception handler for Deep_Adjust or Deep_Finalize.
8628 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
8629 Raise_From_Controlled_Operation is available, use a call to that
8630 subprogram instead of a plain "raise Program_Error" node to raise
8631 Program_Error if an exception is propagated from an Adjust or Finalize
8632 operation.
8633 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
8634 appears in the optional statement list of a triggering alternative, the
8635 scope actions can be inserted directly there, and not in the list that
8636 includes the asynchronous select itself.
8637
8638 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8639 Robert Dewar <dewar@adacore.com>
8640 Hristian Kirtchev <kirtchev@adacore.com>
8641
8642 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
8643 generated exception handler appropriately when debugging generated code.
8644 Deal properly with No_Exception_Propagation restriction mode.
8645 (Expand_N_Abort_Statement): Add an unchecked type conversion from
8646 System.Address to System.Tasking.Task_Id when processing the result of
8647 the predefined primitive _disp_get_task_id.
8648 (Expand_N_Asynchronous_Select): Clarify comment.
8649 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
8650 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
8651 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
8652 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
8653 privals and for generated call to Complete_Entry_Body, for better gdb
8654 behavior.
8655 (Copy_Result_Type): Utility to construct a parameter and result profile
8656 for protected functions whose return type is an anonymous access to
8657 subprogram.
8658 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
8659 call the above.
8660 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
8661 point when the local-raise-to-goto transformation has taken place.
8662
8663 2007-06-06 Javier Miranda <miranda@adacore.com>
8664 Nicolas Setton <setton@adacore.com>
8665
8666 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
8667 functionality when the backend is generating code.
8668 Otherwise any serious error
8669 reported by the backend calling the frontend routine Error_Msg
8670 changes the Compilation_Mode to Check_Semantics, disables the
8671 functionality of this routine and causes the generation of
8672 spureous additional errors.
8673
8674 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
8675 debugging information now generated by the compiler for fat-pointer
8676 types.
8677 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
8678 DWARF2/3.
8679 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
8680
8681 2007-06-06 Thomas Quinot <quinot@adacore.com>
8682
8683 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
8684 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8685 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8686 For a remote call to a function with a classwide return type, apply an
8687 E.4(18) check to the returned value.
8688 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
8689 stream attributes of the designated type of an RACW, as they are not
8690 dispatching primitive operations.
8691
8692 2007-06-06 Geert Bosch <bosch@adacore.com>
8693
8694 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
8695 negative literal
8696 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
8697 positive
8698 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
8699 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
8700 positive
8701 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
8702
8703 2007-06-06 Javier Miranda <miranda@adacore.com>
8704
8705 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
8706 attribute compiling package Ada.Tags under No_Run_Time_Mode.
8707
8708 2007-06-06 Javier Miranda <miranda@adacore.com>
8709
8710 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
8711 deallocation of class-wide interface objects.
8712 (Expand_Dispatching_Constructor_Call): Take into account that if the
8713 result of the dispatching constructor is an interface type, the
8714 function returns a class-wide interface type; otherwise the returned
8715 object would be actual. The frontend previously accepted returning
8716 interface types because Expand_Interface_Actuals silently performed
8717 the management of the returned type "as if" it were a class-wide
8718 interface type.
8719 (Expand_Dispatching_Constructor_Call): Replace call to
8720 Make_DT_Access_Action by direct call to Make_Function_Call.
8721
8722 2007-06-06 Robert Dewar <dewar@adacore.com>
8723 Ed Schonberg <schonberg@adacore.com>
8724
8725 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
8726 compute masking constant, since we now set Esize properly to the
8727 underlying size.
8728 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
8729 to match the alignment.
8730 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
8731 packed arrays of 8 bits or less.
8732
8733 * freeze.adb (Freeze_Entity): When freezing the formals of a
8734 subprogram, freeze the designated type of a parameter of an access type
8735 only if it is an access parameter.
8736 Increase size of C convention enumeration object
8737 (Freeze_Entity, array type case): Make sure Esize value is properly
8738 adjusted for the alignment if it is known.
8739 (Freeze_Entity, array type case): When checking bit packed arrays for
8740 the size being incorrect, check RM_Size, not Esize.
8741 (Freeze_Record_Type): Check for bad discriminated record convention
8742 (In_Exp_Body): Return true if the body is generated for a subprogram
8743 renaming, either an attribute renaming or a renaming as body.
8744 (Check_Itype): If the designated type of an anonymous access component
8745 is a non-protected subprogram type, indicate that it is frozen, to
8746 prevent out-of-scope freeze node at some subsequent call.
8747 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
8748 only if the subprogram is neither imported nor exported, as well as the
8749 NCA descriptor class if the subprogram is exported.
8750
8751 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8752 Arnaud Charlet <charlet@adacore.com>
8753 Robert Dewar <dewar@adacore.com>
8754 Gary Dismukes <dismukes@adacore.com>
8755
8756 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
8757 default initialization on an imported object, when there is no
8758 initialization call generated for it.
8759 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
8760 restriction
8761
8762 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
8763 Static_Elaboration_Desired.
8764 Remove pragma Thread_Body.
8765 Implement a new pragma No_Body
8766 Removes the Explicit_Overriding pragma
8767 Remove Optional_Overriding pragma
8768 (Prag): Deal with Universal_Aliasing.
8769 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
8770 Pragma_CIL_Constructor): New names.
8771
8772 * sem_cat.adb (Validate_Object_Declaration): An initialization that
8773 uses the equivalent aggregate of a type must be treated as an implicit
8774 initialization.
8775 (Get_Categorization): Check a unit for pragma Preelaborate only if it
8776 has none of the other categories.
8777 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
8778 to apply Import to an object renaming declaration.
8779
8780 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
8781 from a C++ class should be declared as limited and that it will be
8782 considererd limited.
8783 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
8784 should be declared as limited and that it will be considererd limited.
8785 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
8786 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
8787 (Analyze_Pragma): Deal with Universal_Aliasing.
8788 (Sig_Flags): Likewise.
8789 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
8790 (Overflow_Checks_Unsuppressed): New flag.
8791 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
8792 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
8793 case of JVM or .NET targets, and compiling user code.
8794 Add debugging convenience routine rv
8795
8796 2007-06-06 Robert Dewar <dewar@adacore.com>
8797
8798 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
8799 are interface type.
8800 (Build_Elementary_Input_Call): For floating-point use right type in the
8801 absence of strange size or stream size clauses.
8802 (Build_Elementary_Write_Call): Same fix
8803 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
8804 set to value that does not match base type size.
8805
8806 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8807
8808 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
8809 object of a limited type can be initialized with a call to a function
8810 that returns in place. If the limited type has unknown discriminants,
8811 and the underlying type is a constrained composite type, build an actual
8812 subtype from the function call, as is done for private types.
8813 (Side_Effect_Free): An expression that is the renaming of an object or
8814 whose prefix is the renaming of a object, is not side-effect free
8815 because it may be assigned through the renaming and its value must be
8816 captured in a temporary.
8817 (Has_Controlled_Coextensions): New routine.
8818 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
8819 as is done for other limited types.
8820 (Non_Limited_Designated_Type): new predicate.
8821 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
8822 objects.
8823 Remove all handling of with_type clauses.
8824
8825 * par-ch10.adb: Remove all handling of with_type clauses.
8826
8827 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
8828 checksum if the main source could not be parsed.
8829 (Loat_Unit): When processing a child unit, determine properly whether
8830 the parent unit is a renaming when the parent is itself a child unit.
8831 Remove handling of with_type clauses.
8832
8833 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
8834 (Set_Is_Static_Coextension): New procedure.
8835 (Has_Local_Raise): New function
8836 (Set_Has_Local_Raise): New procedure
8837 (Renaming_Exception): New field
8838 (Has_Init_Expression): New flag
8839 (Delay_Finalize_Attach): Remove because flag is obsolete.
8840 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
8841 Remove all handling of with_type clauses.
8842 (Exception_Junk): Can now be set in N_Block_Statement
8843
8844 2007-06-06 Vincent Celier <celier@adacore.com>
8845 Robert Dewar <dewar@adacore.com>
8846
8847 * frontend.adb (Frontend): Return immediately if the main source could
8848 not be parsed, because of preprocessing errors.
8849
8850 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
8851 (Gnat1drv): Exit with errors if the main source could not be parsed,
8852 because of preprocessing errors.
8853 (Check_Rep_Info): New procedure
8854
8855 2007-06-06 Robert Dewar <dewar@adacore.com>
8856
8857 * g-hesorg.ads, g-heasor.ads,
8858 g-busorg.ads, g-bubsor.ads: Update documentation
8859 GNAT.Heap/Bubble_Sort_G is now pure
8860
8861 2007-06-06 Robert Dewar <dewar@adacore.com>
8862
8863 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
8864
8865 2007-06-06 Robert Dewar <dewar@adacore.com>
8866 Ed Schonberg <schonberg@adacore.com>
8867
8868 * g-comlin.ads, g-comlin.adb:
8869 Add new warning for renaming of function return objects
8870
8871 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
8872 (Tree_Read): Use size of object instead of type'object_size, since the
8873 latter is incorrect for packed array types.
8874 (Tree_Write): Same fix
8875
8876 * opt.ads: Add new warning for renaming of function return objects
8877 (Generating_Code): New boolean variable used to indicate that the
8878 frontend as finished its work and has called the backend to process
8879 the tree and generate the object file.
8880 (GCC_Version): Is now private
8881 (Static_Dispatch_Tables): New constant declaration.
8882 (Overflow_Checks_Unsuppressed): New flag.
8883 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
8884 (List_Closure): New flag for gnatbind (-R)
8885 Zero_Formatting: New flag for gnatbind (-Z)
8886 (Special_Exception_Package_Used): New flag.
8887 (Warn_On_Unrepped_Components): New flag.
8888
8889 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
8890 unit is a compilation unit, rather than relying on its scope, so that
8891 Standard can be renamed.
8892 (Analyze_Object_Renaming): Add new warning for renaming of function
8893 return objects.
8894 Also reject attempt to rename function return object in Ada 83 mode.
8895 (Attribute_Renaming): In case of tagged types, add the body of the
8896 generated function to the freezing actions of the type.
8897 (Find_Type): A protected type is visible right after the reserved word
8898 "is" is encountered in its type declaration. Set the entity and type
8899 rather than emitting an error message.
8900 (New_Scope): Properly propagate Discard_Names to inner scopes
8901 (Check_Nested_Access): New procedure.
8902 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
8903 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8904
8905 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
8906 Add new warning for renaming of function return objects
8907 (Check_References): Suppress warnings for objects whose type or
8908 base type has Warnings suppressed.
8909 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
8910 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
8911
8912 2007-06-06 Vincent Celier <celier@adacore.com>
8913 Emmanuel Briot <briot@adacore.com>
8914 Olivier Hainque <hainque@adacore.com>
8915
8916 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
8917 absolute value of Header.Block_Size when displaying the freed physical
8918 memory in traces.
8919 (Allocate): Compute Storage_Address using Integer_Address, not
8920 Storage_Offset, because the range of Storage_Offset may not be large
8921 enough.
8922 (Configure): New parameter Low_Level_Traces
8923 (Allocate, Deallocation, Free_Physically): Added low-level traces
8924 (Configure): new parameter Errors_To_Stdout.
8925 (Output_File): new subprogram
8926 (Deallocate, Dereference): Send error messages to the proper stream
8927 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
8928 documented. Previous code would send it to the current output file
8929 defined in GNAT.IO, which might not be stdout
8930 (Is_Valid): Adjust comment to mention that a positive reply means that
8931 Header_Of may be used to retrieve the allocation header associated with
8932 the subprogram Storage address argument. Return False early if this
8933 address argument is misaligned.
8934
8935 2007-06-06 Vincent Celier <celier@adacore.com>
8936
8937 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
8938 switch -P
8939 (ASIS_Main): New global variable
8940 (Get_Closure): New procedure
8941 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
8942 check, metric or pretty. Call Get_Closure in this case.
8943 (Check_Files): For GNAT LIST, check all sources of all projects when
8944 All_Projects is True.
8945 (GNATCmd): Accept -U for GNAT LIST
8946
8947 2007-06-06 Vincent Celier <celier@adacore.com>
8948
8949 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
8950 has been specified
8951 Correct error message when invocation of the linker fails
8952 Add explicit size clause for the C imported variables
8953 Object_List_File_Supported and Using_GNU_Linker to emphasize that
8954 we expect char size.
8955 Read target parameters earlier, since this is needed to set
8956 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
8957 targets.
8958
8959 2007-06-06 Vincent Celier <celier@adacore.com>
8960
8961 * gnatls.adb:
8962 Add 3 spaces before the default project directory when displaying
8963 the project search path.
8964 Add new command line switch '-l' to display license information.
8965
8966 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
8967
8968 * gmem.c: Add support for timestamps on memory operations.
8969
8970 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
8971 operations (not used currently, just foundation for future
8972 enhancements). Add possibility to perform full dump of gmem.out file.
8973 (Print_Back_Traces): Declare accesses to root arrays constants since
8974 they aren't modified.
8975 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
8976
8977 2007-06-06 Vincent Celier <celier@adacore.com>
8978
8979 * gnatsym.adb: Update Copyright notice
8980 (Parse_Cmd_Line): Accept new switch -D
8981 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
8982 file.
8983
8984 * prj.ads (Policy): New policy Direct
8985 (Yes_No_Unknown): New enumeration type
8986 (Project_Data): New component Libgnarl_Needed
8987
8988 * prj-nmsc.adb (Check_For_Source): When recording a source file make
8989 use the untouched pathname casing.
8990 (Get_Directories): Ensure that the Display_Exec_Directory is using the
8991 proper casing on non case-sensitive platforms like Windows.
8992 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
8993 on all platforms, as it is not possible to know which one is allowed
8994 before processing the project files.
8995 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
8996 specified when symbol policy is Direct. Check that when there is a
8997 symbol file defined (either by default or with attribute
8998 Library_Symbol_File) it is not the same as the reference symbol file.
8999 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
9000 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
9001 extending projects.
9002 (Record_Ada_Source): Record a source that has been locally removed in an
9003 imported project.
9004
9005 * symbols.ads (Policy): New policy Direct
9006
9007 * symbols-vms.adb (Initialize): Take new policy Direct in case
9008 statement
9009
9010 2007-06-06 Vincent Celier <celier@adacore.com>
9011
9012 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
9013 Correct obvious bug (return Dir; instead of return Directory;).
9014 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
9015
9016 2007-06-06 Thomas Quinot <quinot@adacore.com>
9017
9018 * g-pehage.adb (Produce): Open output files in Binary mode, so that
9019 they have UNIX line endings (LF only) even on Windows, and thus pass
9020 all GNAT style checks.
9021
9022 2007-06-06 Emmanuel Briot <briot@adacore.com>
9023
9024 * g-regpat.adb (Quote): Fix improper quoting of '.'
9025
9026 2007-06-06 Thomas Quinot <quinot@adacore.com>
9027
9028 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
9029 default, set False on a per-runtime basis.
9030 (Need_Netdb_Buffer): New constant.
9031
9032 * g-socket.ads, g-socket.adb: Import new package
9033 GNAT.Sockets.Thin.Task_Safe_NetDB.
9034 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
9035 binding to obtain proper message.
9036 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
9037 Replace various occurrences of Arry (Arry'First)'Address with the
9038 equivalent Arry'Address (GNAT always follows implementation advice from
9039 13.3(14)).
9040 (Get_Host_By_Address, Get_Host_By_Name,
9041 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
9042 instead, rely on platform-specific task safe netdb operations provided
9043 by g-socthi.
9044
9045 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
9046 parameter Process_Blocking_IO.
9047 (Host_Error_Messages): Add stub body.
9048 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9049 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
9050 Safe_Getservbyport): Move functions into new child package
9051 Task_Safe_NetDB.
9052 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
9053 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
9054 (In_Addr): Add alignment clause.
9055
9056 2007-06-06 Robert Dewar <dewar@adacore.com>
9057
9058 * g-trasym.ads, g-traceb.ads: Update list of supported targets
9059 Add note about symbolic traceback
9060
9061 2007-06-06 Pascal Obry <obry@adacore.com>
9062
9063 * hostparm.ads (Normalized_CWD): Use the host directory separator
9064 instead of the hardcoded forward slash which is not the proper
9065 character on Windows for example.
9066 (Java_VM): Removed.
9067
9068 2007-06-06 Vincent Celier <celier@adacore.com>
9069 Arnaud Charlet <charlet@adacore.com>
9070
9071 * a-clrefi.adb, a-clrefi.ads: New files
9072
9073 * impunit.adb: Add s-os_lib in the list of user visible units.
9074 (Non_Imp_File_Names_95): Add a-clrefi to this list
9075 Remove obsolete run-time entries.
9076 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
9077 "a-exetim" -- Ada.Execution_Time
9078 "a-extiti" -- Ada.Execution_Time.Timers
9079
9080 * mlib-prj.ads, mlib-prj.adb
9081 (Build_Library): Use untouched object dir and library dir. At the
9082 same time makes sure that the checks are done using the canonical
9083 form. Removes hard-coded directory separator and use the proper host
9084 one instead.
9085 (Process_Project): Do not look in object directory to check if libgnarl
9086 is needed for a library, if there is no object directory.
9087 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
9088 linking.
9089 (Build_Library): When invoking gnatbind, use a response file if the
9090 total size of the arguments is too large.
9091
9092 * Makefile.rtl: (g-sttsne): New object file.
9093 Add entry for a-clrefi, s-utf_32, System.Exceptions
9094
9095 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
9096 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
9097 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
9098 Change g-string to s-string, g-os_lib to s-os_lib
9099 Change all g-utf_32 references to s-utf_32
9100
9101 2007-06-06 Tristan Gingold <gingold@adacore.com>
9102 Olivier Hainque <hainque@adacore.com>
9103
9104 * init.c: Do not adjust IP of an imported VMS exception of ia64.
9105 LIB$STOP is called to raise an exception and the IP of the exception
9106 is the instruction right after the call.
9107 (__gnat_adjust_context_for_raise, AIX): Implement.
9108 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
9109 adjust_context_for_raise before Raise_From_Signal_Hanler.
9110 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
9111 siginfo is passed to the handler, necessary to let the zcx propagation
9112 engine unwind past it.
9113
9114 2007-06-06 Olivier Hainque <hainque@adacore.com>
9115
9116 * initialize.c (__gnat_initialize for vxworks): Update documentation
9117 on the ZCX support, using different sets of crtstuff objects than with
9118 GCC 3.4.
9119
9120 2007-06-06 Robert Dewar <dewar@adacore.com>
9121
9122 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
9123 spec from body
9124 (Layout_Type): Fix recomputation of size from alignment.
9125
9126 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9127 Javier Miranda <miranda@adacore.com>
9128
9129 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
9130 association in an instance.
9131 (Copy_Generic_Node): If the node is a string literal, no need to copy
9132 its descendants.
9133 (Is_Generic_Formal): For a formal subprogram, the declaration is the
9134 grandparent of the entity.
9135 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
9136 to simplify handling of formal interfaces that derive from other formal
9137 interfaces.
9138 (Instantiate_Subprogram_Body): The defining unit name of the body of
9139 the instance should be a defining identifier.
9140 (Install_Formal_Packages): make global to the package, for use in
9141 instantiations of child units.
9142 (Analyze_Package_Instantiation): Do not attempt to set information on an
9143 enclosing master of an entry when expansion is disabled.
9144 (Instantiate_Type): If the actual is a tagged synchronized type and the
9145 generic ancestor is an interface, create a generic actual for the
9146 corresponding record.
9147 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
9148 declaration, to ensure that the interface list is processed correctly.
9149 (Inline_Instance_Body): If enclosing scope is an instance body, remove
9150 its entities from visibiility as well.
9151 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
9152 given with a named association, analyze the expression only, not the
9153 discriminant association itself.
9154 (Reset_Entity): If the analysis of a selected component is transformed
9155 into an expanded name in the prefix of a call with parameters, do not
9156 transform the original node into an expanded name, to prevent visibility
9157 errors in the case of nested generics.
9158 (Check_Private_View): For an array type, check whether the index types
9159 may need exchanging.
9160
9161 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9162 Vincent Celier <celier@adacore.com>
9163
9164 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
9165 since both are separated.
9166 Add support for imported CIL packages.
9167 Add further special handling of "value_type" for CIL.
9168 Add special handling of pragma Import for CIL.
9169
9170 * make.ads, make.adb: When switch -eS is used, direct all outputs to
9171 standard output instead of standard error, except errors.
9172 (Absolute_Path): Use untouched casing for the parent directory.
9173 (Add_Library_Search_Dir): Use the untouched directory name.
9174 (Add_Source_Search_Dir): Idem.
9175 (Change_To_Object_Directory): Update output to use proper casing.
9176 (Create_Binder_Mapping_File): Use the untouched filename to set
9177 ALI_Name.
9178 (Gnatmake): Use untouched library and executable directory names.
9179 (Insert_Project_Sources): Use untouched filename for spec and body.
9180 (Is_In_Object_Directory): Use untouched object directory.
9181 (Mark_Directory): Idem.
9182 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
9183 contains the non-canonical filename in all cases.
9184 (Change_To_Object_Directory): In verbose mode, display the name of the
9185 object directory we're changing to.
9186 (Compile_Sources): Make sure, when a project file is used, to compile
9187 the body of the unit, when there is one, even when only the spec is
9188 recorded in an ALI file.
9189 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
9190 spec to the body.
9191 (Report_Compilation_Failed): New procedure
9192 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
9193 procedures moved from the spec to the body.
9194 (Extract_Failure): Removed, not used
9195 Replace explicit raises of exception Bind_Failed and Link_Failed with
9196 calls to Make_Failed with the proper message.
9197 Replace explicit raises of exception Compilation_Failed with calls to
9198 procedure Report_Compilation_Failed.
9199 (Initialize): Create mapping files unconditionally when using project
9200 files.
9201
9202 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
9203 Pragma_CIL_Constructor): New names.
9204
9205 * targparm.ads, targparm.adb
9206 (Compiler_System_Version): Removed, no longer used.
9207 (Get_Target_Parameters): Relax checks on system.ads validity. Add
9208 handling of two new system flags: JVM and CLI.
9209
9210 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9211 Arnaud Charlet <charlet@adacore.com>
9212
9213 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
9214 time, use the default s-interr body that provides interrupt support
9215 based on signals.
9216 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
9217 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
9218 g-soccon.ads, and s-taprop.adb for the marte run time.
9219 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
9220 timers are supported on marte.
9221 (EH_MECHANISM for marte): Do not use ZCX.
9222 (THREADSLIB for marte): Use -lmarte.
9223 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
9224 Add mlib-tgt-specific.o to gnatmake objects
9225 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
9226 longer of MLib.Tgt.
9227 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
9228 6, either kernel or rtp, use a specialized version of s-osinte.ads.
9229
9230 2007-06-06 Pascal Obry <obry@adacore.com>
9231
9232 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
9233
9234 2007-06-06 Vincent Celier <celier@adacore.com>
9235
9236 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
9237 separator, use instead the proper host directory separator.
9238 (Copy_ALI_Files): Make sure that an already existing ALI file in the
9239 ALI copy dir is writable, before doing the copy.
9240
9241 * mlib-utl.ads, mlib-utl.adb:
9242 (Gcc): If length of command line is too long, put the list of object
9243 files in a response file, if this is supported by the platform.
9244 (Ar): If invocation of the archive builder is allowed to be done in
9245 chunks and building it in one shot would go above an OS dependent
9246 limit on the number of characters on the command line, build the archive
9247 in chunks.
9248
9249 2007-06-06 Vincent Celier <celier@adacore.com>
9250
9251 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
9252 of specified object file is not equal to base name of source.
9253
9254 2007-06-06 Javier Miranda <miranda@adacore.com>
9255 Hristian Kirtchev <kirtchev@adacore.com>
9256 Ed Schonberg <schonberg@adacore.com>
9257
9258 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
9259 the full type declaration.
9260 (Analyze_Component_Declaration): Add local variable E to capture the
9261 initialization expression of the declaration. Replace the occurences of
9262 Expression (N) with E.
9263 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
9264 limited interface object with a function call.
9265 (Array_Type_Declaration): If the declaration lacks subtype marks for
9266 indices, create a simple index list to prevent cascaded errors.
9267 (Is_Null_Extension): Ignore internal components created for secondary
9268 tags when checking whether a record extension is a null extension.
9269 (Check_Abstract_Interfaces): Add missing support for interface subtypes
9270 and generic formals.
9271 (Derived_Type_Declaration): Add missing support for interface subtypes
9272 and generic formals.
9273 (Analyze_Object_Declaration): If an initialization expression is
9274 present, traverse its subtree and mark all allocators as static
9275 coextensions.
9276 (Add_Interface_Tag_Component): When looking for components that may be
9277 secondary tags, ignore pragmas that can appear within a record
9278 declaration.
9279 (Check_Abstract_Overriding): an inherited function that dispatches on
9280 result does not need to be overriden if the controlling type is a null
9281 extension.
9282 (Mentions_T): Handle properly a 'class attribute in an anonymous access
9283 component declaration, when the prefix is an expanded name.
9284 (Inherit_Component): If the derivation is for a private extension,
9285 inherited components remain visible and their ekind should not be set
9286 to Void.
9287 (Find_Type_Of_Object): In the case of an access definition, always set
9288 Is_Local_Anonymous_Access. We were previously not marking the anonymous
9289 access type of a return object as a local anonymous type.
9290 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
9291 range with character literal bounds.
9292 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
9293 (Access_Subprogram_Declaration): Indicate that the type declaration
9294 depends on an incomplete type only if the incomplete type is declared
9295 in an open scope.
9296 (Analyze_Subtype_Declaration): Handle properly subtypes of
9297 synchronized types that are tagged, and that may appear as generic
9298 actuals.
9299 (Access_Subprogram_Declaration): An anonymous access to subprogram can
9300 appear as an access discriminant in a private type declaration.
9301 (Add_Interface_Tag_Components): Complete decoration of the component
9302 containing the tag of a secondary dispatch table and the component
9303 containing the offset to the base of the object (this latter component
9304 is only generated when the parent type has discriminants --as documented
9305 in this routine).
9306 (Inherit_Components): Use the new decoration of the tag components to
9307 improve the condition that avoids inheriting the components associated
9308 with secondary tags of the parent.
9309 (Build_Discriminanted_Subtype): Indicate to the backend that the
9310 size of record types associated with dispatch tables is known at
9311 compile time.
9312 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
9313 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
9314 to include task, protected, and synchronized interfaces as limited
9315 interfaces.
9316 (Process_Discriminants): Remove the setting of
9317 Is_Local_Anonymous_Access on the type of (anonymous) access
9318 discriminants of nonlimited types.
9319 (Analyze_Interface_Type_Declaration): Complete the decoration of the
9320 class-wide entity it is is already present. This situation occurs if
9321 the limited-view has been previously built.
9322 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
9323 field.
9324 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
9325 Related_Interface.
9326
9327 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9328
9329 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
9330 of the type that specify the position of interface tags when the type
9331 inherits discriminated array components from the parent type.
9332 If a component is initialized with a box, check for the presence of a
9333 default expression in its declaration before using its default
9334 initialization procedure.
9335 (Resolve_Record_Aggregate): If a component is box-initialized, and the
9336 component type has a discriminants, create a partial aggregate for it
9337 by copying the discriminants of the component subtype.
9338 Reject attempt to initialize a discriminant with a box.
9339 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
9340 associated with dispatch tables is known at compile time.
9341 (Get_Value): If an association in a record aggregate has a box
9342 association, and the corresponding record component has a default
9343 expression, always copy the default expression, even when the
9344 association has a single choice, in order to create a proper
9345 association for the expanded aggregate.
9346
9347 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9348 Robert Dewar <dewar@adacore.com>
9349
9350 * par-ch12.adb (P_Generic_Associations): The source position of an
9351 Others association is that of the others keyword, not that of the token
9352 that follows the box.
9353 (P_Formal_Type_Definition): Handle formal access types that carry a
9354 not null indicator.
9355
9356 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
9357 multiple identifier are present, save Scan_State before scanning the
9358 colon, to ensure that separate trees are constructed for each
9359 declaration.
9360 (P_Identifier_Declarations): For object declaration, set new flag
9361 Has_Init_Expression if initialization expression present.
9362 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
9363 Improve NOT NULL error messages
9364
9365 2007-06-06 Robert Dewar <dewar@adacore.com>
9366
9367 * par-ch4.adb: (P_Name): Recover from literal used as name
9368
9369 2007-06-06 Vincent Celier <celier@adacore.com>
9370
9371 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
9372 defaulted to False.
9373 In the "not" case, recursive call with Complemented set to True.
9374 Do not allow "or" or "and" operators when Complemented is True.
9375
9376 2007-06-06 Vincent Celier <celier@adacore.com>
9377
9378 * prj.adb (Project_Empty): Gives default value for new component
9379 Libgnarl_Needed
9380
9381 * prj-attr.ads: Minor reformatting
9382
9383 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
9384 directory using the untouched casing.
9385 (For_All_Source_Dirs): Idem.
9386
9387 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
9388 directories specified with switches -aP.
9389 (Add_Search_Project_Directory): New procedure
9390 (Initialize_Project_Path): Put the directories in table
9391 Search_Directories in the project search path.
9392 (Initialize_Project_Path): For VMS, transform into canonical form the
9393 project path.
9394
9395 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9396
9397 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
9398 true if configurable run-time or No_Run_Time is set.
9399 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
9400 processing an unit which is not the one being compiled.
9401
9402 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9403
9404 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
9405 Replace UC by Ada.UC
9406
9407 * s-bitops.adb: Get rid of System.Pure_Exceptions.
9408 Replace UC by Ada.UC
9409
9410 2007-06-06 Robert Dewar <dewar@adacore.com>
9411
9412 * scng.adb: (Check_End_Of_Line): Deal with very long lines
9413
9414 2007-06-06 Robert Dewar <dewar@adacore.com>
9415
9416 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
9417 Remove no longer used nodes.
9418
9419 2007-06-06 Javier Miranda <miranda@adacore.com>
9420 Ed Schonberg <schonberg@adacore.com>
9421 Robert Dewar <dewar@adacore.com>
9422
9423 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
9424 on obsolescent withed unit in case of limited-withed units.
9425 (Analyze_Compilation_Unit): Add guard to code that removed an
9426 instantiation from visibility, to prevent compiler aborts when
9427 instantiation is abandoned early on.
9428 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
9429 current unit being analyzed, and Distinguish local incomplete types
9430 from limited views of types declared elsewhere.
9431 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
9432 to state that the class-wide entity is shared by the limited-view
9433 and the full-view.
9434 (Analyze_With_Clause): Improve placement of flag for case of
9435 unimplemented unit.
9436 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
9437 manner similar to GNAT.Current_Exception. This is a violation of
9438 restriction (No_Exception_Propagation), and also inhibits the
9439 optimization of local raise to goto.
9440 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
9441 and if so set Most_Recent_Exception_Used flag in Opt, and also check
9442 for violation of restriction No_Exception_Propagation.
9443
9444 2007-06-06 Javier Miranda <miranda@adacore.com>
9445 Hristian Kirtchev <kirtchev@adacore.com>
9446 Gary Dismukes <dismukes@adacore.com>
9447
9448 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
9449 use of entity Exception_Occurrence if it is not available in the
9450 target run-time.
9451
9452 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
9453 concurrent types are declared within an Ada 2005 generic, build their
9454 corresponding record types since they are needed for overriding-related
9455 semantic checks.
9456 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
9457 protected type does not implement a task interface or a nonlimited
9458 interface.
9459 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
9460 type does not implement a protected interface or a nonlimited interface.
9461 (Single_Task_Declaration, Single_Protected_Declaration): use original
9462 entity for variable declaration, to ensure that debugging information
9463 is correcty generated.
9464 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
9465 routines if the expander is not active.
9466 (Analyze_Task_Body): Mark all handlers to stop optimization of local
9467 raise, since special things happen for task exception handlers.
9468
9469 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
9470 concurrent types declared within a generic.
9471 (Check_Dispatching_Operation): Do not emit warning about late interface
9472 operations in the context of an instance.
9473 (Check_Dispatching_Call): Remove restriction against calling a
9474 dispatching operation with a limited controlling result.
9475 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
9476 Register_Interface_DT_Entry by calls to Register_Primitive.
9477 (Check_Dispatching_Formals): Handle properly a function with a
9478 controlling access result.
9479
9480 2007-06-06 Robert Dewar <dewar@adacore.com>
9481 Arnaud Charlet <charlet@adacore.com>
9482
9483 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
9484 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
9485 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
9486 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
9487 message when using a VM, since this attribute is not supported.
9488 (Analyze_Record_Representation_Clause): Give unrepped component warnings
9489
9490 * usage.adb: Add new warning for renaming of function return objects
9491 Indicate that -gnatwp and -gnatwP concern front-end inlining
9492 Add line for -gnatyg
9493 Add usage information for -gnatw.c/C
9494
9495 2007-06-06 Robert Dewar <dewar@adacore.com>
9496 Ed Schonberg <schonberg@adacore.com>
9497
9498 * sem_ch5.adb
9499 (Find_Var): Do not consider function call in test for infinite loop
9500 warning if warnings set off for function entity.
9501 (One_Bound): Do not create a temporary for a loop bound if it is a
9502 character literal.
9503 (Analyze_Assignment): Traverse the right hand side of an assignment and
9504 mark all allocators as static coextensions.
9505 (Analyze_Assignment): Exempt assignments involving a dispatching call
9506 to a function with a controlling access result from the check requiring
9507 the target to be class-wide.
9508
9509 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9510 Ed Schonberg <schonberg@adacore.com>
9511 Robert Dewar <dewar@adacore.com>
9512 Javier Miranda <miranda@adacore.com>
9513
9514 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
9515 chain of coextensions when an allocator serves as the root of such a
9516 chain.
9517 (Propagate_Coextensions): Remove the test for the root being an
9518 allocator.
9519 (Resolve_Allocator): Add condition to ensure that all future decoration
9520 occurs on an allocator node. Add processing and cleanup for static
9521 coextensions.
9522 (Valid_Conversion): If the operand type is the limited view of a
9523 class-wide type, use the non-limited view is available to determine
9524 legality of operation.
9525 (Ambiguous_Character): move to spec, for use elsewhere.
9526 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
9527 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
9528 character literals.
9529 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
9530 Do_Division_Check flag explicitly.
9531 (Resolve_Actuals): If the actual is of a synchronized type, and the
9532 formal is of the corresponding record type, this is a call to a
9533 primitive operation of the type, that is declared outside of the type;
9534 the actual must be unchecked-converted to the type of the actual
9535 (Resolve_Call): Kill all current values for any subprogram call if
9536 flag Suppress_Value_Tracking_On_Call is set.
9537 (Resolve_Type_Conversion): Generate error message the the operand
9538 or target of interface conversions come from a limited view.
9539 (Check_Infinite_Recursion): Ignore generated calls
9540 (Check_Allocator_Discrim_Accessibility): New procedure for checking
9541 that an expression that constrains an access discriminant in an
9542 allocator does not denote an object with a deeper level than the
9543 allocator's access type.
9544 (Resolve_Allocator): In the case of an allocator initialized by an
9545 aggregate of a discriminated type, check that associations for any
9546 access discriminants satisfy accessibility requirements by calling
9547 Check_Allocator_Discrim_Accessibility.
9548 (Resolve_Equality_Op): Handle comparisons of anonymous access to
9549 subprogram types in the same fashion as other anonymous access types.
9550 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
9551 message that is not a continuation message.
9552 (Resolve_Type_Conversion): Add missing support for conversion to
9553 interface type.
9554 (Resolve_Actuals): Introduce a transient scope around the call if an
9555 actual is a call to a function returning a limited type, because the
9556 resulting value must be finalized after the call.
9557 (Resolve_Actuals): If the call was given in prefix notations, check
9558 whether an implicit 'Access reference or implicit dereference must be
9559 added to make the actual conform to the controlling formal.
9560
9561 2007-06-06 Robert Dewar <dewar@adacore.com>
9562 Javier Miranda <miranda@adacore.com>
9563
9564 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
9565 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
9566 overriding of an inherited private subprogram now there is no need to
9567 inherit its dispatching slot and reduce the size of the dispatch table.
9568 Set_All_DT_Position now ensures that the same slot is now assigned to
9569 both entities. This is required to statically build the dispatch table.
9570 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
9571 of calling Set_All_DT_Position to re-evaluate the position of the
9572 entries in the dispatch table. Such reevaluation is not desired if
9573 the tagged type is already frozen.
9574
9575 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9576 Gary Dismukes <dismukes@adacore.com>
9577 Robert Dewar <dewar@adacore.com>
9578 Javier Miranda <miranda@adacore.com>
9579
9580 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
9581 reference acts as an lvalue when the attribute name modifies the prefix
9582 (Is_Coextension_Root): New routine.
9583 (Mark_Static_Coextensions): New routine.
9584 (Type_Access_Level): Revise code for checking the level of the
9585 anonymous access type of a return object.
9586 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
9587 (Matches_Prefixed_View_Profile): Remove the no longer necessary
9588 retrieval of the corresponding controlling record type.
9589 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
9590 concurrent types declared within a generic as well as class wide types.
9591 Emit a mode incompatibility error whenever a protected entry or routine
9592 override an interface routine whose first parameter is not of mode
9593 "out", "in out" or access to variable.
9594 (Overrides_Synchronized_Primitive): Rename to
9595 Find_Overridden_Synchronized_Primitive.
9596 (Collect_Interface_Components): New subprogram that collects all the
9597 components of a tagged record containing tags of secondary dispatch
9598 tables.
9599 (Add_Global_Declaration): New procedure
9600 (Abstract_Interface_List): Handle properly the case of a subtype of a
9601 private extension.
9602 (Type_Access_Level): In the case of a type whose parent scope is a
9603 return statement, call Type_Access_Level recursively on the enclosing
9604 function's result type to determine the level of the return object's
9605 type.
9606 (Build_Elaboration_Entity): Build name of elaboration entity from the
9607 scope chain of the entity, rather than the unit name of the file name.
9608 (Check_Nested_Access): New procedure.
9609 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
9610 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9611 (Get_Renamed_Entity): Utility routine for performing common operation
9612 of chasing the Renamed_Entity field of an entity.
9613
9614 2007-06-06 Robert Dewar <dewar@adacore.com>
9615
9616 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
9617 elaboration model
9618 (Check_A_Call): Add check for entry call which was causing blowup
9619
9620 2007-06-06 Olivier Hainque <hainque@adacore.com>
9621
9622 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
9623 special code on ia64-vms to handle major incompatibilities between the
9624 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
9625 this routine with a very different set of arguments and expectations on
9626 the return value.
9627
9628 2007-06-06 Thomas Quinot <quinot@adacore.com>
9629
9630 * socket.c (__gnat_close_signalling_fd): New function.
9631 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
9632 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
9633 New supporting functions for task safe Netdb operations.
9634
9635 2007-06-06 Thomas Quinot <quinot@adacore.com>
9636 Olivier Hainque <hainque@adacore.com>
9637
9638 * a-except-2005.ads, a-except-2005.adb
9639 (Raise_From_Controlled_Operation): New procedure in
9640 (private part of) Ada.Exceptions (standard runtime version). Used to
9641 provide informational exception message when Program_Error is raised as
9642 a result of an Adjust or Finalize operation propagating an exception.
9643 (Rmsg_28): Fix description for E.4(18) check.
9644 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9645 propagation starts, to let debuggers know about the event in a reliable
9646 fashion.
9647 Take the address of E and dereference to make sure it is homed on stack
9648 and prevent the stores from being deleted, necessary for proper
9649 debugger behavior on "break exception" hits.
9650 (Local_Raise): Moved to System.Exceptions
9651
9652 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
9653 exception message from the current occurrence and raise Program_Error
9654 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
9655
9656 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9657 Arnaud Charlet <charlet@adacore.com>
9658
9659 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
9660 lock, if needed.
9661
9662 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
9663 priority associated to a lock.
9664
9665 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
9666 assertion to take into account case of no abort restriction.
9667 (Initialize_Protection_Entries): Add initialization for the field
9668 New_Ceiling associated to the protected object.
9669 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
9670 needed.
9671
9672 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9673 since this function needs to be set consistently with Update_Exception.
9674
9675 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9676 since this function needs to be set consistently with Update_Exception.
9677
9678 * s-taskin.ads: Update comments on
9679 Interrupt_Server_Blocked_On_Event_Flag.
9680 (Unbind_Handler): Fix handling of server_task wakeup
9681 (Server_Task): Set self's state so that Unbind_Handler can take
9682 appropriate actions.
9683 (Common_ATCB): Now use a constant from System.Parameters to determine
9684 the max size of the Task_Image field.
9685
9686 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
9687 Initialize_Analyzer function.
9688 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
9689 take into account case of no abort restriction.
9690 ([Vulnerable_]Complete_Master): Modify assertion.
9691
9692 * s-tataat.adb (Finalize): Use the nestable versions of
9693 Defer/Undefer_Abort.
9694
9695 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
9696
9697 * s-tpobop.ads: Update comments.
9698
9699 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
9700 of locking the object manually, to avoid inconsistencies between
9701 Lock/Unlock_Entry assertions.
9702
9703 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
9704 terminating
9705 application and System.Parameters.No_Abort is True.
9706 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
9707 (Unbind_Handler): Fix handling of server_task wakeup
9708 (Server_Task): Set self's state so that Unbind_Handler can take
9709 appropriate actions.
9710
9711 2007-06-06 Thomas Quinot <quinot@adacore.com>
9712
9713 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
9714 declarations instead of an explicit null body, for conciseness.
9715
9716 2007-06-06 Robert Dewar <dewar@adacore.com>
9717
9718 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
9719 illegal aggregate and the type is still Any_Composite.
9720 (Subtypes_Statically_Match): Fix problem of empty discriminant list
9721
9722 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9723
9724 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
9725 to prevent subsequent expansion.
9726
9727 2007-06-06 Robert Dewar <dewar@adacore.com>
9728
9729 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
9730
9731 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9732 Robert Dewar <dewar@adacore.com>
9733
9734 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
9735 exceptions.
9736 (Write_Itype): Handle case of string literal subtype, which
9737 comes up in this context.
9738 (Update_Itype): when debugging expanded code, update sloc of itypes
9739 associated with defining_identifiers and ranges, for gdb use.
9740 (Sprint_Node_Actual): Add static keyword to object or exception
9741 declaration output if Is_Statically_Allocated is True.
9742 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
9743 or task body, so that the tree carries the proper Sloc information for
9744 debugging use.
9745 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
9746
9747 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9748
9749 * s-secsta.adb (Chunk): Ensure this object has a static size known at
9750 compile time, to avoid dynamic memory allocation
9751 (Elaboration code): Only use dynamic memory allocation when needed.
9752
9753 2007-06-06 Quentin Ochem <ochem@adacore.com>
9754
9755 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
9756 "Overflow_Guard".
9757 (Stack_Analyzer): Added field "Overflow_Guard"
9758 (Task_Result): Added field "Overflow_Guard".
9759 (Index_Str): New constant.
9760 (Task_Name_Str): New constant.
9761 (Actual_Size_Str): New constant.
9762 (Pattern_Array_Element_Size): New constant.
9763 (Get_Usage_Range): New subprogram.
9764 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
9765 Now align the output.
9766 Added comments.
9767 (Initialize): Added value for Overflow_Guard.
9768 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
9769 Update the value of the overflow guard according to the actual
9770 beginning of the pattern array.
9771 (Initialize_Analyzer): Added parameter Overflow_Guard.
9772 Take this parameter into accound when computing the max size.
9773 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
9774 (Report_Result): Removed extra useless procedure.
9775 Updated call to Output_Result.
9776 Moved full computation of the Task_Result here.
9777
9778 2007-06-06 Thomas Quinot <quinot@adacore.com>
9779
9780 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
9781 Thread_Blocking_IO, always True by default, set False on a per-runtime
9782 basis.
9783 Add Windows-specific constants
9784 Add new constant Need_Netdb_Buffer.
9785 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9786 not, whether to use getXXXbyYYY_r.
9787
9788 * gsocket.h: Add new constant Need_Netdb_Buffer.
9789 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9790 not, whether to use getXXXbyYYY_r.
9791
9792 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9793
9794 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
9795 than their first call.
9796 Add type Dummy_Communication_Block used in the generation of the pre-
9797 defined dispatching primitive _disp_asynchronous_select.
9798 (Storage_Element): Put Pragma Universal_Aliasing on it.
9799
9800 2007-06-06 Vincent Celier <celier@adacore.com>
9801
9802 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
9803 function.
9804
9805 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
9806 letter if it is not followed by a '/' or a '\'.
9807 (Windows): New Boolean function
9808
9809 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
9810 Ada 2005.
9811 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
9812 drive letter.
9813 (Containing_Directory): Raise Use_Error when the directory is a root
9814 directory.
9815 (Extension): When returning the result, use a conversion to Result_Type,
9816 not a qualification.
9817
9818 2007-06-06 Robert Dewar <dewar@adacore.com>
9819
9820 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
9821 (Set_Style_Check_Options): Recognize new -gnatyg style switch
9822
9823 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
9824 Warn_On_Non_Local_Exception to False, to turn off warnings for
9825 No_Exception_Propagation in ZFP runtime.
9826 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
9827 back-ends.
9828 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
9829
9830 2007-06-06 Vincent Celier <celier@adacore.com>
9831
9832 * switch-b.adb (Scan_Binder_Switches): Add processing for new
9833 switches -R and -Z
9834
9835 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
9836 (Scan_Make_Switches): Recognize new switch -aP
9837
9838 2007-06-06 Matthew Gingell <gingell@adacore.com>
9839 Jose Ruiz <ruiz@adacore.com>
9840
9841 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
9842 VxWorks task descriptor in the Ada run time, call a C subprogram
9843 (__gnat_get_stack_info) that extracts the required information.
9844
9845 * sysdep.c: Back out temporary lynxos workaround.
9846 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
9847 time the stack information associated to the currently executing task.
9848 Only VxWorks systems require this function.
9849
9850 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9851
9852 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
9853 add the stack bias if the offset is computed from a frame address.
9854 (__gnat_backtrace): Adjust for above change.
9855
9856 2007-06-06 Thomas Quinot <quinot@adacore.com>
9857
9858 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
9859 PE_Non_Transportable_Actual.
9860 (By_Descriptor_Last): New constant.
9861 (By_Copy_Return): Likewise.
9862
9863 2007-06-06 Vincent Celier <celier@adacore.com>
9864
9865 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
9866 is.
9867
9868 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
9869 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
9870 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
9871 Add missing comment for /OPTIMIZE=SPACE
9872 Add entry for OPTIMIZE=SPACE
9873 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
9874 Add documentation for new qualifiers corresponding to -gnatw.c/.C
9875
9876 2007-06-06 Vincent Celier <celier@adacore.com>
9877 Robert Dewar <dewar@adacore.com>
9878
9879 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
9880 -gnatw.C)
9881
9882 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
9883 Document gnatbind switch -a
9884 (case Constructions): Document that variables declarations are allowed
9885 for previously declared variables.
9886 Fix external lib project example
9887 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
9888 Indicate that "#if not X or Y then" is not allowed in input files to
9889 gnatprep.
9890 Document gnatw.x and gnatw.X warning flags
9891 Mention -Winline switch to activate warnings when back-end inlining is
9892 ineffective.
9893 Add gnatcheck rule descriptions
9894 Describe how to use the GNAT driver to call a tool on a closure.
9895 Describe how to run project-wide checks or metrics.
9896 Document gnatbind's -R option
9897 Updated to account for Ada 2005 support
9898
9899 * gnat_rm.texi (Case Construction): Allow variable declarations for
9900 previously declared variables.
9901 (Representation Clauses and Pragmas): Lift restriction on alignment
9902 clauses for record types.
9903 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
9904 Document No_Exception_Propagation restriction
9905 Document No_Body pragma
9906 Updated to account for Ada 2005 support; corrected some typos
9907 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
9908
9909 * gnat-style.texi: Make it clear that we never use mode IN for
9910 procedures or functions
9911
9912 * ug_words: Add entries for -gnatw.x and -gnatw.X
9913 Add entries for -gnatw.c/.C
9914
9915 2007-06-06 Pascal Obry <obry@adacore.com>
9916 Vincent Celier <celier@adacore.com>
9917
9918 * makegpr.adb (Add_Archive_Path): Use untouched object and library
9919 dirs and library name.
9920 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
9921 comments.
9922 (Build_Library): Idem.
9923 (Compile_Individual_Sources): Idem.
9924 (Compile_Link_With_Gnatmake): Idem.
9925 (Compile_Sources): Idem.
9926 (Get_Imported_Directories): Idem.
9927 (Link_Executables): Idem. Same change for the executable dir.
9928 (Check_Compilation_Needed): C_Source_Path new variable containing
9929 the canonical form of Source_Path to check against the source names
9930 in the dependency file.
9931 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
9932 verbose mode, display the name of the object directory we're changing
9933 to.
9934 (Saved_Switches): New name of table X_Switches
9935 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
9936 (Usage): New line for switch -aP
9937 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
9938 testing if a directory should be added to the search path.
9939
9940 2007-06-06 Javier Miranda <miranda@adacore.com>
9941
9942 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
9943 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
9944 declaration after freezing point of all its associated tagged types;
9945 otherwise such types are frozen too early.
9946
9947 2007-06-06 Robert Dewar <dewar@adacore.com>
9948
9949 * a-reatim.adb: Documentation addition
9950
9951 * g-cgideb.adb: Minor code reorganization
9952
9953 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
9954 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
9955 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
9956
9957 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
9958 function. Change name New_Scope to Push_Scope
9959 (Get_Debug_Flag_K): Remove unused obsolete function.
9960
9961 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
9962 Push_Scope.
9963
9964 * makeusg.adb: Update Copyright notice
9965 Add line for switch -aP
9966
9967 * makeusg.adb: Fix wording of some usage messages
9968
9969 * s-assert.adb (Raise_Assert_Failure): Add call to
9970 Debug_Raise_Assert_Failure.
9971
9972 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
9973 (2, Standard'Alignment) for compatibility with AAMP (where alignment
9974 is restricted to 1).
9975
9976 * s-wchjis.adb: Remove use of System.Pure_Exceptions
9977
9978 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
9979 node location to No_Location when we're not debugging the expanded
9980 code.
9981
9982 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
9983
9984 * misc.c (enumerate_modes): Consider log2_b to always be one.
9985
9986 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
9987
9988 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
9989
9990 2007-05-02 Pascal Obry <obry@adacore.com>
9991
9992 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
9993 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
9994 encoding support of Stream_IO.
9995 (Write_Unit): Idem.
9996
9997 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
9998 filename and corresponding encoding to match the OS requirement.
9999 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
10000 routine will fail on specific devices like CON: AUX: ...
10001
10002 PR ada/29856: Add missing braces
10003
10004 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
10005
10006 PR ada/31660
10007 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
10008
10009 2007-04-21 Jan Hubicka <jh@suse.cz>
10010
10011 * misc.c (gnat_expand_body): Don't call target for destructors,
10012 avoid redundant check on syntax errors.
10013
10014 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
10015
10016 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
10017 instead of checking GIMPLE_STMT_P in chain_next.
10018
10019 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
10020
10021 PR ada/31576
10022 * system-linux-alpha.ads: Disable constant condition warning for the
10023 Default_Bit_Order variable.
10024 * system-linux-s390.ads: Likewise.
10025 * system-linux-s390x.ads: Likewise.
10026 * system-linux-sparc.ads: Likewise.
10027
10028 2007-04-06 Javier Miranda <miranda@adacore.com>
10029 Matt Heaney <heaney@adacore.com>
10030 Robert Dewar <dewar@adacore.com>
10031
10032 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10033 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
10034 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
10035 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
10036 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
10037 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
10038 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
10039 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
10040 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
10041 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
10042 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
10043 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
10044 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
10045 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
10046 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
10047 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
10048 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
10049 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
10050 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
10051 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
10052 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
10053 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
10054 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
10055 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
10056 s-taprop-tru64.adb, s-taprop-irix.adb,
10057 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
10058 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
10059 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
10060 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
10061 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
10062 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
10063 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
10064 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
10065 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
10066 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
10067 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
10068 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
10069 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
10070 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
10071 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
10072 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
10073 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
10074 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
10075 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
10076 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
10077 access types.
10078 Update documentation.
10079 Minor rewording.
10080
10081 2007-04-06 Robert Dewar <dewar@adacore.com>
10082
10083 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10084 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10085 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
10086 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10087 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
10088 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10089 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10090 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
10091 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10092 system-hpux-ia64.ads, targparm.adb,
10093 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
10094
10095 * system.ads: Move Functions_Return_By_DSP to obsolete section,
10096 kept for bootstrap purposes only.
10097
10098 2007-04-06 Arnaud Charlet <charlet@adacore.com>
10099
10100 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10101 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
10102 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
10103 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
10104
10105 2007-04-06 Robert Dewar <dewar@adacore.com>
10106
10107 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
10108 (Local_Raise): New dummy procedure called when a raise is converted
10109 to a local goto. Used for debugger to detect that the exception
10110 is raised.
10111
10112 * debug.adb: Document new d.g flag (expand local raise statements to
10113 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
10114
10115 * exp_sel.adb: Use Make_Implicit_Exception_Handler
10116
10117 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
10118 suppress warnings for unused handlers.
10119 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
10120 warnings for raise statements not handled locally.
10121 (Get_RT_Exception_Entity): New function
10122 (Get_Local_Call_Entity): New function
10123 (Find_Local_Handler): New function
10124 (Warn_If_No_Propagation): New procedure
10125 (Expand_At_End_Handler): Call Make_Implicit_Handler
10126 (Expand_Exception_Handlers): Major additions to deal with local handlers
10127 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
10128 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
10129 for local raise
10130
10131 * exp_ch11.ads (Get_RT_Exception_Entity): New function
10132 (Get_Local_Call_Entity): New function
10133
10134 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
10135 of restrictions that the binder will never suggest adding.
10136
10137 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
10138 to No_Elist.
10139
10140 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
10141 be with'ed in the presence of pragma Restriction
10142 (No_Exception_Propagation).
10143
10144 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
10145
10146 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
10147 parameter, then the handler is not a suitable target for a local raise,
10148 and this is a violation of restriction No_Exception_Propagation.
10149 (Analyze_Handled_Statements): Analyze choice parameters in exception
10150 handlers before analyzing statement sequence (needed for proper
10151 detection of local raise statements).
10152 (Analyze_Raise_Statement): Reraise statement is a violation of the
10153 No_Exception_Propagation restriction.
10154
10155 * s-rident.ads: Add new restriction No_Exception_Propagation
10156
10157 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
10158 function, like Make_Exception_Handler but sets Local_Raise_Statements
10159 to No_List.
10160 (Add_Unique_Serial_Number): Deal with case where this is called during
10161 processing of configuration pragmas.
10162
10163 2007-04-06 Thomas Quinot <quinot@adacore.com>
10164 Pat Rogers <rogers@adacore.com>
10165 Pascal Obry <obry@adacore.com>
10166
10167 * g-stsifd-sockets.adb: New file.
10168
10169 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
10170 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
10171 g-socthi-vms.adb: Move signalling
10172 fd management to a nested package, so that they can conveniently be
10173 moved to a subunit that is shared across Windows, VMS, and VxWorks
10174 (Ada implementation) or completed with imported bodies from socket.c
10175 (UNIX case).
10176 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
10177 subprograms.
10178 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
10179 the signalling file descriptor.
10180 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
10181 signalling file descriptor.
10182 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
10183 instead of creating a pair of sockets for signalling here.
10184
10185 * g-socthi.adb: Ditto.
10186 Set the runtime process to ignore SIGPIPEs on platforms that support
10187 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10188
10189 * g-socthi-mingw.adb: Ditto.
10190 (WS_Version): Use Windows 2.2.
10191 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10192
10193 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
10194 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10195
10196 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
10197 added GNAT byte swapping facility
10198 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
10199
10200 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
10201
10202 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
10203 New subprograms.
10204 (__gnat_create_signalling_fds): New subprogram.
10205 Set the runtime process to ignore SIGPIPEs on platforms that support
10206 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10207
10208 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
10209 Vincent Celier <celier@adacore.com>
10210
10211 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
10212 New version of Ada.Calendar which supports the new upper bound of Ada
10213 time (2399-12-31 86_399.999999999).
10214 The following modifications have been made to the package:
10215 - New representation of time as count of nanoseconds since the start of
10216 Ada time (1901-1-1 0.0).
10217 - Target independent Split and Time_Of routines which service both
10218 Ada 95 and Ada 2005 code.
10219 - Target independent interface to the Ada 2005 children of Calendar.
10220 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
10221 - Handling of non-leap centenial years.
10222 - Updated clock function.
10223 - Updated arithmetic and comparison operators.
10224
10225 * a-caldel.adb (To_Duration): Add call to target independent routine in
10226 Ada.Calendar to handle the conversion of time to duration.
10227
10228 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
10229 (UTC Offset).
10230 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
10231 set off to 0.
10232 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
10233 targets do not have a natural time zone, GMT is used as a default.
10234 (__gnat_get_task_options): New.
10235
10236 * a-direct.adb (Modification_Time): Add with and use clauses for
10237 Ada.Calendar and Ada.
10238 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
10239 since it is no longer needed.
10240 (Duration_To_Time): Removed.
10241 (OS_Time_To_Long_Integer): Removed.
10242 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
10243 Formatting Time_Of routines which automatically handle time zones,
10244 buffer periods and leap seconds.
10245
10246 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
10247 target independent routines in Ada.Calendar.
10248
10249 * a-calfor.ads, a-calfor.adb:
10250 Code cleanup and addition of validity checks in various routines.
10251 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
10252 Ada.Calendar.
10253
10254 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
10255 independent routine in Ada.Calendar.
10256
10257 2007-04-06 Olivier Hainque <hainque@adacore.com>
10258
10259 * adaint.c:
10260 (convert_addresses): Adjust prototype and dummy definition to expect an
10261 extra file_name argument.
10262
10263 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
10264 filling the now expected file_name argument with the appropriate
10265 argv[0] expansion.
10266 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
10267 (tracebk): Array of void * instead of char *, corresponding to what
10268 convert_addresses expects.
10269 (exename): New static global, to hold the executable file name to be
10270 used in all convert_addresses invocations.
10271 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
10272 change.
10273 (__gnat_gmem_a2l_initialize): Resolve exename.
10274 (__gnat_convert_addresses): Use exename as the convert_addresses
10275 file_name argument.
10276
10277 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
10278 "convert_addresses", now expecting a filename argument. Import the
10279 necessary entities to compute the filename to use and pass it to
10280 convert_addresses.
10281
10282 2007-04-06 Matt Gingell <gingell@adacore.com>
10283
10284 * system-aix.ads: Back out previous change.
10285 (Functions_Return_By_DSP): Removed
10286
10287 2007-04-06 Pascal Obry <obry@adacore.com>
10288
10289 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
10290 or the monotonic used by Ada.Real_Time) to compute the sleep duration
10291 on Windows.
10292
10293 2007-04-06 Jose Ruiz <ruiz@adacore.com>
10294
10295 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
10296 function. Its value changes in different VxWorks versions, and it is
10297 now handled by the function __gnat_get_task_options.
10298
10299 * s-taprop-vxworks.adb (Create_Task): Call the function
10300 __gnat_get_task_options to get the required options for creating a task.
10301
10302 2007-04-06 Pascal Obry <obry@adacore.com>
10303 Thomas Quinot <quinot@adacore.com>
10304
10305 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
10306 dealing with filename.
10307 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
10308 filename from a standard string to a wide-string depending on the
10309 encoding value.
10310 (__gnat_freopen): Idem.
10311 (__gnat_current_time): New function (wrapper for time(3) standard C
10312 function).
10313
10314 * g-os_lib.ads (Current_Time): New function. Returns the current
10315 system time as an OS_Time value.
10316
10317 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
10318 (Monotonic_Clock): Same.
10319
10320 2007-04-06 Quentin Ochem <ochem@adacore.com>
10321
10322 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
10323 not on a natural.
10324 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
10325
10326 2007-04-06 Jose Ruiz <ruiz@adacore.com>
10327
10328 * a-retide.adb: Add elaboration code to ensure that the tasking run
10329 time is initialized when using delay operations even when no task is
10330 created.
10331
10332 2007-04-06 Javier Miranda <miranda@adacore.com>
10333
10334 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
10335 component Num_Prim_Ops.
10336 (Set_Num_Prim_Ops): Removed.
10337 Remove all the assertions because all the routines of this
10338 package are inline always.
10339 (Get_Offset_Index): Add support to primary dispatch tables.
10340 Move the documentation about the dispatch table to a-tags.ads
10341 (Set_External_Tag): Removed
10342 (Inherit_TSD): Removed.
10343 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
10344 moved to a-tags.ads
10345 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
10346 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
10347 of the TSD field "Table" because this field has been renamed to
10348 "Ifaces_Table".
10349 (Inherit_CPP_DT): Removed.
10350 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
10351 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
10352 declarations have been moved to a-tags.ads
10353 (Check_Size): Removed.
10354 (Expanded_Name): Updated to get access to the new field of TSD
10355 containing the address of the expanded name.
10356 (Get_Access_Level/Set_Access_Level): Removed.
10357 (Get_Predefined_Prim_Op_Address): Removed.
10358 (Set_Predefined_Prim_Op_Address): Removed.
10359 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
10360 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
10361 (Set_Expanded_Name): Removed.
10362 (Inherit_DT): Removed.
10363 (Inherit_CPP_DT): Removed.
10364 (Set_RC_Offset): Removed.
10365 (Set_TSD): Removed.
10366 (Base_Address): New function that displaces "this" to point to the base
10367 of the object (that is, to point to the primary tag of the object).
10368
10369 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10370 Javier Miranda <miranda@adacore.com>
10371
10372 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
10373 anonymous access component, do not create a master_id if type already
10374 has one, as may happen if the type is a subcomponent of a packed array
10375 type.
10376 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
10377 Initialize_Tag): Remove code associated with the old CPP pragmas.
10378 CPP_Virtual and CPP_Vtable are no longer supported.
10379 (Build_Offset_To_Top_Internal): Add support for concurrent record types
10380 (Build_Offset_To_Top_Functions): Add support for concurrent record types
10381 (Freeze_Record_Type): Remove call to
10382 Init_Predefined_Interface_Primitives.
10383 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
10384 code required to initialize the tags of the secondary dispatch tables.
10385 This leaves the algoritm more clear.
10386 (Init_Secondary_Tags): Add support for concurrent record types
10387 (Make_Predefined_Primitive_Specs): Code cleanup.
10388 (Predefined_Primitive_Bodies): Code cleanup.
10389 (Build_Master_Renaming): New local subprogram.
10390 (Expand_N_Full_Type_Declaration): Build the master_id associated with
10391 anonymous access to task type components.
10392 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
10393 subtype indication are resolved during analysis, and must not be done
10394 here.
10395 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
10396
10397 2007-04-06 Geert Bosch <bosch@adacore.com>
10398 Ed Schonberg <schonberg@adacore.com>
10399 Javier Miranda <miranda@adacore.com>
10400 Bob Duff <duff@adacore.com>
10401
10402 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
10403 for conversion of a Float_Type'Truncation to integer.
10404
10405 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
10406 check if a node is an attribute that can be handled directly by the
10407 back end.
10408 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
10409 attributes that can be handled directly by the back end.
10410 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
10411 use new predicate Is_Access_Protected_Subprogram_Type.
10412 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
10413 and Unchecked_Union if it is generated as part of the default Output
10414 procedure for a type with default discriminants.
10415 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
10416 if we are compiling under restriction No_Dispatching_Calls.
10417 (Constrained): Use Underlying_Type, in case the type is private without
10418 discriminants, but the full type has discriminants.
10419 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
10420 call to Build_Get_Access_Level.
10421 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
10422 interface objects requires a call to the run-time subprogram that
10423 returns the base address of the object.
10424 (Valid_Conversion): Improve error message on illegal attempt to store
10425 an anonymous access to subprogram value into a record component.
10426
10427 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
10428 null".
10429 (Simplify_Type_Conversion): New procedure that performs simplification
10430 of Int_Type (Float_Type'Truncation (X)).
10431 (Resolve_Type_Conversion): Call above procedure after resolving operand
10432 and before performing checks. This replaces the existing ineffective
10433 code in Exp_Ch4.
10434 (Set_String_Literal_Subtype): When creating the internal static lower
10435 bound subtype for a string literal, use a newly created copy of the
10436 subtree representing the lower bound.
10437 (Resolve_Call): Exclude build-in-place function calls from transient
10438 scope treatment. Update comments to describe this exception.
10439 (Resolve_Equality_Op): In case of dispatching call check violation of
10440 restriction No_Dispatching_Calls.
10441 (Resolve_Call): If the call returns an array, the context imposes the
10442 component type of the array, and the function has one non-defaulted
10443 parameter, rewrite the call as the indexing of a call with a single
10444 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
10445 in prefix form.
10446 (Resolve_Actuals): If an actual is an allocator for an access parameter,
10447 the master of the created object is the innermost enclosing statement.
10448 (Remove_Conversions): For a binary operator, check if type of second
10449 formal is numeric, to check if an abstract interpretation is present
10450 in the case of exponentiation as well.
10451
10452 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10453 Bob Duff <duff@adacore.com>
10454
10455 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
10456 copying a parameter list in a call, set properly the First_Named_Formal
10457 and Next_Named_Formal fields in the new list and in the enclosing call.
10458 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
10459 names, to ease typing in the debugger. Improve comments.
10460 (Watch_Node): New variable, intended to be set in the debugger.
10461 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
10462 called when the watched node is created.
10463 (New_Node_Debugging_Output): Combined version of local procedures
10464 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
10465 with a parameter so that conditional breakpoints like "if Node = 12345"
10466 work.
10467 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
10468 Add Elist1 function
10469
10470 2007-04-06 Thomas Quinot <quinot@adacore.com>
10471 Ed Schonberg <schonberg@adacore.com>
10472 Gary Dismukes <dismukes@adacore.com>
10473
10474 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
10475 required for a conversion between two access-to-unconstrained-array
10476 types.
10477 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
10478 to discriminant constraints on discriminant objects. This rule must
10479 apply as well to discriminants of protected types in private components.
10480 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
10481 object of a null-excluding access type then don't require the
10482 the object declaration to have an expression and don't emit a
10483 run-time check.
10484
10485 2007-04-06 Arnaud Charlet <charlet@adacore.com>
10486 Eric Botcazou <botcazou@adacore.com>
10487
10488 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
10489 and made constant.
10490
10491 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
10492 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
10493 carry any.
10494
10495 * fe.h (Compiler_Abort): Add third parameter.
10496
10497 * misc.c (internal_error_function): Build third argument from current
10498 input location and pass it to Compiler_Abort.
10499
10500 2007-04-06 Gary Dismukes <dismukes@adacore.com>
10501
10502 * cstand.adb (Create_Standard): When the target's storage unit size is
10503 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
10504 Standard_String.
10505
10506 2007-04-06 Nicolas Roche <roche@adacore.com>
10507
10508 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
10509 absolute path can have the following form: device:/a/b. In this case
10510 '/' should be inserted between the path and the filename.
10511
10512 2007-04-06 Olivier Hainque <hainque@adacore.com>
10513 Eric Botcazou <botcazou@adacore.com>
10514
10515 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
10516 VAR_DECL to a CONST_DECL we make for a public constant when we know the
10517 corresponding definition has created the so made visible variable.
10518 Handle anonymous access to protected subprogram.
10519 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
10520 object with an address clause volatile. Re-enable original fix.
10521 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
10522 too.
10523 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
10524 associated with either the Equivalent or Root type, instead of the
10525 naked type node.
10526 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
10527 subtree for every field of a global record type.
10528 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
10529 discriminants, invoke again variable_size on its newly computed sizes.
10530
10531 2007-04-06 Robert Dewar <dewar@adacore.com>
10532 Thomas Quinot <quinot@adacore.com>
10533 Ed Schonberg <schonberg@adacore.com>
10534 Bob Duff <duff@adacore.com>
10535
10536 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
10537 (Next_Component_Or_Discriminant): New function and procedure
10538 (First_Index, First_Literal, Master_Id,
10539 Set_First_Index, Set_First_Literal, Set_Master_Id):
10540 Add missing Ekind assertions.
10541 (Is_Access_Protected_Subprogram_Type): New predicate.
10542 (Has_RACW): New entity flag, set on package entities to indicate that
10543 the package contains the declaration of a remote accecss-to-classwide
10544 type.
10545 (E_Return_Statement): This node type has the Finalization_Chain_Entity
10546 attribute, in case the result type has controlled parts.
10547 (Requires_Overriding): Add this new flag, because "requires
10548 overriding" is subtly different from "is abstract" (see AI-228).
10549 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
10550 Is_Abstract_Type. Make sure these are called only when appropriate.
10551 (Has_Pragma_Unreferenced_Objects): New flag
10552
10553 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
10554 class-wide, the tag of the right-hand side must be an exact match, not
10555 an ancestor of that of the object on left-hand side.
10556 (Move_Activation_Chain): New procedure to create the call to
10557 System.Tasking.Stages.Move_Activation_Chain.
10558 (Expand_N_Extended_Return_Statement): Generate code to call
10559 System.Finalization_Implementation.Move_Final_List at the end of a
10560 return statement if the function's result type has controlled parts.
10561 Move asserts to Build_In_Place_Formal.
10562 (Move_Final_List): New function to create the call statement.
10563 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
10564 tagged type, replace generation of call to the run-time subprogram
10565 CW_Membership by call to Build_CW_Membership.
10566 (Expand_N_Return_Statement): Replace generation of call to the run-time
10567 subprogram Get_Access_Level by call to Build_Get_Access_Level.
10568 (Expand_N_Simple_Function_Return): Replace generation of call to the
10569 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10570
10571 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
10572 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
10573 access to protected operations.
10574 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
10575 master and chain actual parameters to a build-in-place function call
10576 involving tasks.
10577 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
10578 statement.
10579 (Make_Build_In_Place_Call_In_Allocator,
10580 Make_Build_In_Place_Call_In_Anonymous_Context,
10581 Make_Build_In_Place_Call_In_Assignment,
10582 Make_Build_In_Place_Call_In_Object_Declaration): Call
10583 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
10584 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
10585 stubbed procedure with a null body, replace the call with a null
10586 statement without using the full inlining machinery, for efficiency
10587 and to avoid invalid values in source file table entries.
10588
10589 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
10590 renamings of calls to build-in-place functions.
10591
10592 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
10593 provides the functionality of RTE_Available to record components.
10594 (RTU_Entity): The function Entity has been renamed to RTU_Entity
10595 to avoid undesired overloading.
10596 (Entity): New subprogram that returns the entity for the referened
10597 unit. If this unit has not been loaded, it returns Empty.
10598 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
10599 Remove no longer used entities.
10600 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
10601 (RE_Type_Specific_Data): New entity.
10602 (RE_Move_Any_Value): New entity.
10603 (RE_TA_A, RE_Get_Any_Type): New entities.
10604 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
10605 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
10606 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
10607 (Entity): New subprogram that returns the entity for the referened
10608 unit. If this unit has not been loaded, it returns Empty.
10609 (RTE): Addition of a new formal that extends the search to the scopes
10610 of the record types found in the chain of the package.
10611
10612 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
10613 "abstract subprograms must be visible" message, whether or not the type
10614 is an interface; that is, remove the special case for interface types.
10615 (Analyze_Function_Return): Remove error message "return of task objects
10616 is not yet implemented" because this is now implemented.
10617 (Create_Extra_Formals): Add the extra master and activation chain
10618 formals in case the result type has tasks.
10619 Remove error message "return of limited controlled objects is not yet
10620 implemented".
10621 (Create_Extra_Formals): Add the extra caller's finalization list formal
10622 in case the result type has controlled parts.
10623 (Process_Formals): In case of access formal types there is no need
10624 to continue with the analysis of the formals if we already notified
10625 errors.
10626 (Check_Overriding_Indicator): Add code to check overriding of predefined
10627 operators.
10628 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
10629 flags for formals that do not require them,.
10630 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
10631 hidden entity is use visible or directly visible.
10632 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
10633 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
10634 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
10635 New_Overloaded_Entity): Split Is_Abstract flag into
10636 Is_Abstract_Subprogram and Is_Abstract_Type.
10637
10638 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
10639 a return statement's finalization list to the caller's list, used for
10640 build-in-place functions with result type with controlled parts.
10641 Remove no longer used entities.
10642
10643 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
10644 longer needed, because the full type is now limited, and therefore a
10645 pass-by-reference type.
10646 (Foreign_Task_Level): New constant.
10647
10648 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
10649 move tasks from the activation chain belonging to a return statement to
10650 the one passed in by the caller, and update the master to the one
10651 passed in by the caller.
10652 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
10653 of unactivated tasks, so we don't kill the ones that are being returned
10654 by a build-in-place function.
10655 (Create_Task): Ignore AI-280 for foreign threads.
10656
10657 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10658 Robert Dewar <dewar@adacore.com>
10659 Bob Duff <duff@adacore.com>
10660 Gary Dismukes <dismukes@adacore.com>
10661
10662 * errout.adb (Unwind_Internal_Type): Use predicate
10663 Is_Access__Protected_Subprogram_Type.
10664
10665 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
10666 (Freeze_Entity, packed array case): Do not override explicitly set
10667 alignment and size clauses.
10668 (Freeze_Entity): An entity declared in an outer scope can be frozen if
10669 the enclosing subprogram is a child unit body that acts as a spec.
10670 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
10671 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
10672 Remove all code for DSP option
10673
10674 * layout.adb (Layout_Record_Type): Use First/
10675 Next_Component_Or_Discriminant
10676 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
10677 to handle properly the anonymous access case.
10678
10679 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
10680 for all access attributes, because overload resolution should work the
10681 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
10682 causes the error message for the ambiguous "X'Access = Y'Access" and
10683 "X'Unrestricted_Access = Y'Access" and so forth to match.
10684 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
10685 now that anonymous access to protected operations have their own kind.
10686 (Resolve_Attribute): In case of dispatching call check the violation of
10687 restriction No_Dispatching_Calls.
10688 (Check_Array_Type): Check new -gnatyA array index style option
10689
10690 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
10691 attempt to derive from a synchronized tagged type.
10692 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
10693 type, inherit the class-wide type already created, because it may
10694 already have been used in a self-referential anonymous access component.
10695 (Mentions_T): Recognize self-referential anonymous access components
10696 that use (a subtype of) the class-wide type of the enclosing type.
10697 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
10698 Derived_Type for Prev formal on call to
10699 Check_Anonymous_Access_Components rather than Empty.
10700 (Make_Incomplete_Type_Declaration): Add test for case where the type has
10701 a record extension in deciding whether to create a class-wide type,
10702 rather than just checking Tagged_Present.
10703 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
10704 to stand-alone object declarations as well as component declarations.
10705 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
10706 prevent accidental overwriting when enclosing package appears in
10707 a limited_with_clause.
10708 (Array_Type_Declaration): If the component type is an anonymous access,
10709 the associated_node for the itype is the type declaration itself.
10710 (Add_Interface_Tag_Components): Modified to support concurrent
10711 types with abstract interfaces.
10712 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
10713 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
10714 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
10715 to complete the decoration of synchronized interface types. Add also
10716 a call to Check_Abstract_Interfaces to verify the ARM rules.
10717 (Derive_Interface_Subprograms): Modified to support concurrent types
10718 with abstract interfaces.
10719 (Analyze_Subtype_Indication): Resolve the range with the given subtype
10720 mark, rather than delaying the full resolution depending on context.
10721 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
10722 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
10723 Array_Type_Declaration,Build_Derived_Record_Type,
10724 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
10725 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
10726 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
10727 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
10728 called only when appropriate.
10729 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
10730 to private type.
10731 (Analyze_Subtype_Declaration): For an access subtype declaration, create
10732 an itype reference for the anonymous designated subtype, to prevent
10733 scope anonmalies in gigi.
10734 (Build_Itype_Reference): New utility, to simplify construction of such
10735 references.
10736
10737 2007-04-06 Vincent Celier <celier@adacore.com>
10738
10739 * errutil.adb (Initialize): Initialize warnings table, if all warnings
10740 are suppressed, supply an initial dummy entry covering all possible
10741 source locations.
10742
10743 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
10744 and start with only one, such as "-RTS=none".
10745 (Collect_Arguments): Do not check for sources outside of projects.
10746 Do not collect arguments if project is externally built.
10747 (Compile_Sources): Do nothing, not even check if the source is up to
10748 date, if its project is externally built.
10749 (Compile): When compiling a predefined source, add -gnatpg
10750 as the second switch, after -c.
10751 (Compile_Sources): Allow compilation of Annex J renames without -a
10752 (Is_In_Object_Directory): Check if the ALI file is in the object
10753 even if there is no project extension.
10754 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
10755 gnatbind if the ALI file effectively exists.
10756 (Initialize): Add the directory where gnatmake is invoked in front of
10757 the path if it is invoked from a bin directory, even without directory
10758 information, so that the correct GNAT tools will be used when spawned
10759 without directory information.
10760
10761 * makeusg.adb: Change switch -S to -eS
10762 Add lines for new switches -we, -wn and -ws
10763 Add line for new switch -p
10764
10765 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
10766 Treat_As_Error and there are warnings.
10767
10768 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
10769 -gnatww Change gnatmake switch -S to -eS
10770 (Scan_Make_Switches): Code reorganisation. Process separately multi
10771 character switches and single character switches.
10772 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
10773 False when switch is not recognized by gnatmake.
10774 (Scan_Make_Switches): Set Setup_Projects True when -p or
10775 --create-missing-dirs is specified.
10776
10777 * fname.adb (Is_Predefined_File_Name): Return True for annex J
10778 renamings Calendar, Machine_Code, Unchecked_Conversion and
10779 Unchecked_Deallocation only when Renamings_Included is True.
10780
10781 * par.adb: Allow library units Calendar, Machine_Code,
10782 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
10783 when -gnatg is not specified.
10784 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
10785 there is no need to generate always a record_definition_node in case
10786 of synchronized interface types.
10787 (SIS_Entry_Active): Initialize global variable to False
10788 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
10789 indicate cases where AI-447 says "not null" is legal.
10790
10791 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
10792
10793 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
10794 files with with several lines starting with the object fileb name.
10795 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
10796 is specified.
10797 (Initialize): Add the directory where gprmake is invoked in front of the
10798 path, if it is invoked from a bin directory or with directory
10799 information, so that the correct GNAT tools will be used when invoked
10800 directly.
10801 (Check_Compilation_Needed): Process correctly backslashes on Windows.
10802
10803 * vms_data.ads: Update switches/qualifiers
10804
10805 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10806 Thomas Quinot <quinot@adacore.com>
10807
10808 * exp_aggr.adb:
10809 If the array component is a discriminated record, the array aggregate
10810 is non-static even if the component is given by an aggregate with
10811 static components.
10812 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
10813 (Convert_Aggr_In_Allocator): If the allocator is for an access
10814 discriminant and the type is controlled. do not place on a finalization
10815 list at this point. The proper list will be determined from the
10816 enclosing object.
10817 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
10818 initialize record controller if needed, before the components, to ensure
10819 that they are properly finalized.
10820 (Build_Record_Aggr_Code): For the case of an array component that has a
10821 corresponding array aggregate in the record aggregate, perform sliding
10822 if required.
10823
10824 2007-04-06 Javier Miranda <miranda@adacore.com>
10825 Gary Dismukes <dismukes@adacore.com>
10826 Ed Schonberg <schonberg@adacore.com>
10827
10828 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
10829 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
10830
10831 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
10832 accessibility on class-wide allocators if the allocator occurs at the
10833 same scope level as the allocator's type. The check is guaranteed to
10834 succeed in that case, even when the expression originates from a
10835 parameter of the containing subprogram.
10836 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
10837 under No_Dispatching_Calls restriction. During the semantic analysis
10838 we already notified such violation.
10839 (Tagged_Membership): Constant folding. There is no need to check
10840 the tag at run-time if the type of the right operand is non
10841 class-wide abstract.
10842 Replace call to Is_Ancestor by call to Is_Parent
10843 to support concurrent types with interface types.
10844 (Expand_N_Allocator): Add an assertion associated with the generation
10845 of the master_id.
10846 (Expand_N_Slice): Do not enable range check to nodes associated
10847 with the frontend expansion of the dispatch table.
10848 (Is_Local_Access_Discriminant): Subsidiary function to
10849 Expand_N_Allocator.
10850 (Tagged_Membership): Replace generation of call to the run-time
10851 subprogram CW_Membership by call to Build_CW_Membership.
10852 (Expand_Allocator_Expression): Replace generation of call to the
10853 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10854
10855 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
10856 initialize most the TSD components by means of an aggregate.
10857 Modify the declaration of the object containing the TSD
10858 because we now expand code that has a higher level of abstraction.
10859 The TSD has a discriminant containing the Inheritance Depth Level,
10860 value that is used in the membership test but also to fix the size
10861 of the table of ancestors.
10862 (Expand_Interface_Conversion): Insert function body at the closest place
10863 to the conversion expression, to prevent access-before-elaboration
10864 errors in the backend.
10865 Code improved to reduce the size of the dispatch table if
10866 compiling under restriction No_Dispatching_Calls plus code cleanup.
10867 Code reorganization plus removal of calls to Set_Num_Prim_Ops
10868 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
10869 (Expand_Dispatching_Call): Minor code reorganization plus addition of
10870 code to return immediately if compiling under No_Dispatching_Calls
10871 restriction.
10872 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
10873 CPP_Virtual and CPP_Vtable are no longer supported.
10874 (Expand_Interface_Conversion): Add missing support for interface type
10875 derivations.
10876 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
10877 Is_Parent to support concurrent types with interfaces.
10878 (Init_Predefined_Interface_Primitives): Removed.
10879 (Make_Secondary_DT): Modified to support concurrent record types.
10880 (Set_All_DT_Position): Modified to support concurrent record types.
10881 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
10882 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
10883 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
10884 with CW_Membership.
10885 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
10886 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
10887 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
10888 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
10889 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
10890 (Expand_Dispatching_Call): Replace generation of call to the run-time
10891 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
10892 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
10893 Address.
10894 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
10895 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
10896 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
10897 Build_Set_Prim_Op_Address.
10898 (Get_Remotely_Callable): Subprogram removed.
10899 (Init_Predefined_Interface_Primitives): Replace generation of call to
10900 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
10901 Prims.
10902
10903 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
10904 First (Parameter_Associations ()) with the call to First_Actual that
10905 returns an actual parameter expression for both named and positional
10906 associations.
10907
10908 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
10909 check violation of restriction No_Dispatching_Calls.
10910 (Check_Controlling_Type): A formal of a tagged incomplete type is a
10911 controlling argument.
10912
10913 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
10914 First/Next_Component_Or_Discriminant
10915 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
10916 (Find_Implemented_Interface): Removed. All the calls to this subprogram
10917 specify Any_Limited_Interface, and this functionality is already
10918 provided by the function Has_Abstract_Interfaces.
10919 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
10920 support concurrent types implementing interfaces.
10921 (Find_Implemented_Interface): Removed. All the calls to this subprogram
10922 specify kind Any_Limited_Interface, and this functionality is already
10923 provided by the function Has_Abstract_Interfaces.
10924 (Remove_Side_Effects): replace Controlled_Type by
10925 CW_Or_Controlled_Type whenever the issue is related to
10926 using or not the secondary stack.
10927
10928 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
10929 P_Interface_Type_Definition to fulfill the new interface (the formal
10930 Is_Synchronized is no longer required).
10931
10932 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
10933 Update dependencies.
10934
10935 * exp_atag.ads, exp_atag.adb: New file
10936
10937 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10938 Bob Duff <duff@adacore.com>
10939 Cyrille Comar <comar@adacore.com>
10940
10941 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
10942 anonymous, use finalization list of enclosing dynamic scope.
10943 (Expand_N_Package_Declaration): For a library package declaration
10944 without a corresponding body, generate RACW subprogram bodies in the
10945 spec (just as we do for the task activation call).
10946 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
10947 Is_Abstract_Type. Make sure these are called only when appropriate.
10948 Remove all code for DSP option
10949 (CW_Or_Controlled_Type): new subprogram.
10950
10951 2007-04-06 Eric Botcazou <botcazou@adacore.com>
10952 Ed Schonberg <schonberg@adacore.com>
10953 Gary Dismukes <dismukes@adacore.com>
10954
10955 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
10956 parameter. If it is set to true, return a result capped according to
10957 the global upper bound for the index of an entry family.
10958 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
10959 (Build_Find_Body_Index): Adjust for above change.
10960 (Entry_Index_Expression): Likewise.
10961 (Is_Potentially_Large_Family): New function extracted from...
10962 (Collect_Entry_Families): ...here. Call it to detect whether the family
10963 is potentially large.
10964 (Build_Entry_Count_Expression): If the family is potentially large, call
10965 Family_Size with 'Cap' set to true.
10966 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
10967 a protected version of an operation declared in the private part of
10968 a protected object, because they may be invoked through a callback.
10969 (Set_Privals): If the type of a private component is an anonymous access
10970 type, do not create a new itype for each protected body.
10971 If the body of a protected operation creates
10972 controlled types (including allocators for class-widetypes), the
10973 body of the corresponding protected subprogram must include a
10974 finalization list.
10975 (Build_Activation_Chain_Entity): Build the chain entity for extended
10976 return statements.
10977 (Type_Conformant_Parameters): Use common predicate Conforming_Types
10978 to determine whether operation overrides an inherited primitive.
10979 (Build_Wrapper_Spec): Add code to examine the parents while looking
10980 for a possible overriding candidate.
10981 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
10982 hold an actual parameter value since its initialization is separated
10983 from the the declaration. Prevents errors on null-excluding access
10984 formals.
10985
10986 2007-04-06 Thomas Quinot <quinot@adacore.com>
10987 Pablo Oliveira <oliveira@adacore.com>
10988
10989 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
10990 Do an Unchecked_Conversion to handle the passage from the Underlying
10991 Type to the Base Type when calling Build_To_Any_Call and
10992 Build_From_Any_Call.
10993 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
10994 E_Constant, depending upon Variable formal.
10995 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10996 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
10997 parameter that requires an extra constrained parameter, declare
10998 temporary for actual as a variable, not a constant.
10999 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
11000 the unit being compiled is the one that contains the stub type.
11001 Change primitive operation name for the RACW associated with a RAS
11002 from Call to _Call so it cannot clash with any legal identifier.
11003 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
11004 Is_RAS.
11005 (Append_RACW_Bodies): New subprogram.
11006 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
11007 Add_Receiving_Stubs_To_Declarations functions.
11008 When expanding a package body, this list correspond to the
11009 statements in the HSS at the end of the pacakge.
11010 When expanding a package spec, this list correspond to the
11011 spec declarations.
11012 (Add_Receiving_Stubs_To_Declarations): Append the function
11013 registering the receiving stubs at the end of the 'Stmts' list.
11014 (RCI_Package_Locator): Pass the new Version generic formal when
11015 instantiating a RCI_Locator package.
11016 (Build_From_Any_Function): To compute the High bound for an
11017 unconstrained array actual, we add the Low bound with the length.
11018 Thus we must convert the low bound and the length to an appropriate
11019 type before doing the sum.
11020 (Build_Subprogram_Receiving_Stubs, PolyORB):
11021 * Retrieve the extra formals parameters at the
11022 end of the parameter stream.
11023 * Use Move_Any_Value to write back out parameters
11024 after executing the request as it is more efficient
11025 than Copy_Any_Value.
11026 * Build the any containing Extra Formals with the
11027 appropriate typecode.
11028 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
11029 empty Component_List.
11030 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
11031 the tree the declaration for an object that serves as actual parameter
11032 in server-side stubs.
11033 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11034 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11035 Use Build_Actual_Object_Declaration to prepare the actuals.
11036 (Add_Parameter_To_NVList): Set the parameter mode to In for
11037 Extra Constrained Parameters.
11038 (Build_General_Calling_Stubs): Set the parameter type to boolean for
11039 Extra Constrained parameters.
11040 (Build_To_Any_Function, Build_From_Any_Function,
11041 Built_TypeCode_Function): When Typ is implicit, call the correct
11042 function with the first not implicit parent type.
11043 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
11044 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
11045 typecode from the Etype. Therefore we retrieve the correct typecode
11046 with a call to Get_Any_Type.
11047 (Copy_Specification): Do controlling formal type substitution based on
11048 Is_Controlling_Formal flag, instead of caller-provided object type.
11049 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
11050 a RACW primitive operation, we might get a subprogram declaration for an
11051 ancestor of the RACW designated type (not for the designated type
11052 itself), in the case where this operation is inherited. In this case we
11053 have no easy means of determining the original tagged type for which
11054 the primitive was declared, so instead we now rely on
11055 Copy_Specification to use the Is_Controlling_Formal flag to determine
11056 which formals require type substitution.
11057
11058 2007-04-06 Robert Dewar <dewar@adacore.com>
11059 Ed Schonberg <schonberg@adacore.com>
11060
11061 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
11062 GNAT.Current_Exception are not allowed if pragma Restrictions
11063 (No_Exception_Propagation) is set and in any case make the associated
11064 handler unsuitable as a target for a local raise statement.
11065 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
11066 run-time subprogram CW_Membership by call to Build_CW_Membership.
11067 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
11068 by a function call, a temporary must be created before expanding the
11069 Constructor_Call itself, to prevent out-of-order elaboration in the
11070 back-end when stack checking is enabled..
11071
11072 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11073
11074 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
11075 result are the bounds of the left operand, not the right.
11076
11077 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11078
11079 * exp_strm.adb
11080 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
11081 discriminant defaults.
11082 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
11083 (Make_Component_List_Attributes): Ditto.
11084
11085 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11086 Bob Duff <duff@adacore.com>
11087
11088 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
11089 an association with a box as providing a value even though the
11090 initialization procedure for the type is not available.
11091 (Resolve_Record_Aggregate): Check that a choice of an association with a
11092 box corresponds to a component of the type.
11093 (Resolve_Record_Aggregate): Split Is_Abstract flag into
11094 Is_Abstract_Subprogram and Is_Abstract_Type.
11095
11096 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
11097 assert.
11098
11099 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
11100 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
11101 called only when appropriate.
11102
11103 2007-04-06 Olivier Hainque <hainque@adacore.com>
11104
11105 * g-alleve.ads (Low Level Vector type definitions): Map each to the
11106 associated vector view instead of all to the unsigned char view.
11107
11108 * g-altcon.adb (Generic_Conversions): New internal generic package,
11109 offering facilities for all the Vector/View conversion routines
11110 implemented by this unit.
11111 (To_View/To_Vector - all versions): Reimplemented in a systematic
11112 manner, using the internal Generic_Conversions facilities.
11113
11114 2007-04-06 Pascal Obry <obry@adacore.com>
11115
11116 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
11117 string.
11118 (Create): Free the source string before storing the new one.
11119
11120 2007-04-06 Vincent Celier <celier@adacore.com>
11121
11122 * g-debpoo.adb (Validity): New package with a complete new
11123 implementation of subprograms Is_Valid and Set_Valid.
11124 (Is_Valid): Move to local package Validity
11125 (Set_Valid): Move to local package Validity
11126
11127 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11128 Pablo Oliveira <oliveira@adacore.com>
11129
11130 * g-expect.adb (Get_Command_Output): When expanding the output buffer
11131 we must ensure that there is enough place for the new data we are going
11132 to copy in.
11133
11134 2007-04-06 Thomas Quinot <quinot@adacore.com>
11135
11136 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
11137 computation.
11138
11139 2007-04-06 Jose Ruiz <ruiz@adacore.com>
11140 Vincent Celier <celier@adacore.com>
11141
11142 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
11143 (Stack_String): Add this String that contains the name of the Stack
11144 package in the project file.
11145 (Packages_To_Check_By_Stack): Add this list that contains the packages
11146 to be checked by gnatstack, which are the naming and the stack packages.
11147 (Check_Files): If no .ci files were specified for gnatstack we add all
11148 the .ci files belonging to the projects, including binder generated
11149 files.
11150 (Non_VMS_Usage): Document that gnatstack accept project file switches.
11151 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
11152 Add gnatstack to the list of commands that use project file related
11153 switches, and get the single attribute Switches from the stack package
11154 in a project file when calling gnatstack. Parse the -U flag for
11155 processing files belonging to all projects in the project tree.
11156 Remove all processing for command Setup
11157
11158 * prj-attr.adb: Add new package Stack with single attribute Switches
11159
11160 * vms_conv.ads (Command_Type): Add command Stack.
11161 Move to body declarations that are only used in the body: types Item_Id,
11162 Translation_Type, Item_Ptr, Item and its subtypes.
11163
11164 * vms_conv.adb: (Initialize): Add data for new command Stack.
11165 Add declarations moved from the spec: types Item_Id, Translation_Type,
11166 Item_Ptr, Item and its subtypes.
11167 (Cargs_Buffer): New table
11168 (Cargs): New Boolean global variable
11169 (Process_Buffer): New procedure to create arguments
11170 (Place): Put character in table Buffer or Cargs_Buffer depending on the
11171 value of Cargs.
11172 (Process_Argument): Set Cargs when processing qualifiers for GNAT
11173 COMPILE
11174 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
11175 empty, for table Cargs_Buffer.
11176 (Initialize): Remove component Setup in Command_List
11177
11178 2007-04-06 Vincent Celier <celier@adacore.com>
11179
11180 * gprep.adb (Process_Files.Process_One_File): Use full file name when
11181 issuing pragma Source_Reference.
11182
11183 2007-04-06 Emmanuel Briot <briot@adacore.com>
11184
11185 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
11186 [[:xdigit:]] character class.
11187 Also raise an exception when an invalid character class is used.
11188
11189 2007-04-06 Pascal Obry <obry@adacore.com>
11190
11191 * i-cstrea.ads: (fopen): Add encoding parameter.
11192 (freopen): Idem.
11193 Change reference from a-sysdep.c to sysdep.c in comment.
11194 Update copyright notice.
11195 This set of patch add support for the encoding form parameter.
11196
11197 * mingw32.h (S2WSU): New macro to convert from a string to a
11198 wide-string using the UTF-8 encoding. The S2WS macro supports now only
11199 standard 8bits encoding.
11200 (WS2SU): As above but converting from wide-sring to string.
11201 This is needed as it is necessary to have access to both versions in the
11202 runtime for the form parameter encoding support.
11203 This set of patch add support for the encoding form parameter.
11204 (S2WS): Improve implementation to handle cases where the filename is not
11205 UTF-8 encoded. In this case we default to using the current code page
11206 for the conversion.
11207
11208 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
11209 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
11210 the constants defined in adaint.h.
11211 (fopen): Add encoding parameter.
11212 (freopen): Idem.
11213
11214 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
11215 encoding. This is needed for the Reset routine (freopen low level-call).
11216
11217 * s-fileio.adb (Open): Decode encoding form parameter and set the
11218 corresponding encoding value into AFCB structure.
11219 (Reset): Pass the encoding value to freopen.
11220 (Close): Move the call to Lock_Task to the beginning of the procedure.
11221
11222 2007-04-06 Geert Bosch <bosch@adacore.com>
11223 Robert Dewar <dewar@adacore.com>
11224
11225 * i-fortra.ads: Add Double_Complex type.
11226
11227 * impunit.adb: (Is_Known_Unit): New function
11228 Add Gnat.Byte_Swapping
11229 Add GNAT.SHA1
11230 Add new Ada 2005 units
11231 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
11232 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
11233 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
11234 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
11235
11236 * impunit.ads (Is_Known_Unit): New function
11237
11238 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
11239 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
11240 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
11241 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
11242 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
11243 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
11244 New files.
11245
11246 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
11247
11248 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
11249
11250 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11251 Arnaud Charlet <charlet@adacore.com>
11252
11253 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
11254 __gnat_adjust_context_for_raise.
11255 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
11256 implementation of floating point operations as native x86 targets.
11257 So the FPU should be initialized in the same way using finit. Fix
11258 floating point operations accuracy issues.
11259 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
11260 member in struct sigaction, so as to avoid warning for incompatible
11261 pointer types.
11262
11263 2007-04-06 Serguei Rybin <rybin@adacore.com>
11264
11265 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
11266 switches from previously loaded tree
11267
11268 2007-04-06 Thomas Quinot <quinot@adacore.com>
11269
11270 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
11271 cases where a given dependency has a body or not.
11272 (Write_With_File_Names): New subprogram, common code for the two cases
11273 above.
11274
11275 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11276 Javier Miranda <miranda@adacore.com>
11277
11278 * lib-xref.ads, lib-xref.adb:
11279 Modify the loop that collects type references, to include interface
11280 types that the type implements. List each of these interfaces when
11281 building the entry for the type.
11282 (Generate_Definition): Initialize component Def and Typ of new entry
11283 in table Xrefs, to avoid to have these components unitialized.
11284 (Output_References): Split Is_Abstract flag into
11285 Is_Abstract_Subprogram and Is_Abstract_Type.
11286 (Generate_Reference): Add barrier to do not generate the warning
11287 associated with Ada 2005 entities with entities generated by the
11288 expander.
11289
11290 2007-04-06 Robert Dewar <dewar@adacore.com>
11291 Arnaud Charlet <charlet@adacore.com>
11292 Vincent Celier <celier@adacore.com>
11293
11294 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
11295 Update 'Exception Handling Control' chapter which was outdated.
11296 Minor fix to documentation of -gnatwq
11297 Remove section "Adapting the Run Time to a New C++ Compiler" because
11298 it is now obsolete.
11299 Add passage on need of -nostart-files in some non-ada-main cases.
11300 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
11301 Update documentation about Interfacing with C++
11302 Add documentation for new gnatmake switch -p
11303 Add missing protocol part in URLs.
11304 Document -gnatyA
11305 Document pragma Compile_Time_Error
11306 Add documentation for Object_Size indicating that stand alone
11307 objects can have a larger size in some cases.
11308 Add node for GNAT.Byte_Swapping, GNAT.SHA1
11309 Update reference to the Ravenscar profile.
11310 Document pragma Unreferenced_Objects
11311
11312 * gnat-style.texi: Fix typo
11313
11314 2007-04-06 Vincent Celier <celier@adacore.com>
11315
11316 * mlib.adb (Building_Library): Only output "building a library..." in
11317 verbose mode
11318
11319 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
11320 files in verbose mode.
11321
11322 * mlib-utl.adb (Ar): Only output the first object files when not in
11323 verbose mode.
11324 (Gcc): Do not display all the object files if not in verbose mode, only
11325 the first one.
11326
11327 2007-04-06 Robert Dewar <dewar@adacore.com>
11328
11329 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
11330 it no longer destroys the contents of Name_Buffer or Name_Len and
11331 non-standard and invalid names are handled better.
11332 (Get_Decoded_Name_String): Improve performance by using
11333 Name_Has_No_Encodings flag in the name table.
11334 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
11335 Used for debugging printouts.
11336
11337 2007-04-06 Robert Dewar <dewar@adacore.com>
11338 Javier Miranda <miranda@adacore.com>
11339 Bob Duff <duff@adacore.com>
11340
11341 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
11342 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11343 there is no need to generate always a record_definition_node in case
11344 of synchronized interface types.
11345 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
11346 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
11347 illegal in Ada 95, in cases where it is legal. Change the warnings to
11348 errors in other cases. Don't give the error unless the "not null"
11349 parses properly. Correct the source position at which the error occurs.
11350 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
11351 P_Null_Exclusion, to suppress "not null" warnings.
11352 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
11353 associated goto statements.
11354
11355 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
11356 of END RECORD
11357
11358 * scans.ads (Type_Token_Location): New flag
11359
11360 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
11361 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
11362 P_Null_Exclusion, to suppress "not null" warnings.
11363
11364 2007-04-06 Robert Dewar <dewar@adacore.com>
11365 Javier Miranda <miranda@adacore.com>
11366 Bob Duff <duff@adacore.com>
11367 Vincent Celier <celier@adacore.com>
11368
11369 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
11370 (Extensions_Allowed): No longer sets Ada_Version
11371 Entry for pragma Unreferenced_Objects
11372
11373 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
11374 system.tasking if pragma priority used in a procedure
11375 (Analyze_Pragma, case Warning): Handle dot warning switches
11376 (Process_Compile_Time_Warning_Or_Error): New procedure
11377 (Analyze_Pragma): Add processing for Compile_Time_Error
11378 Add support for extra arguments External_Name and Link_Name.
11379 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
11380 (Process_Import_Or_Interface): Add support for the use of pragma Import
11381 with tagged types.
11382 (Extensions_Allowed): No longer affects Ada_Version
11383 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
11384 Is_Abstract_Type. Make sure these are called only when appropriate.
11385 Add processing for pragma Unreferenced_Objects
11386
11387 * snames.h, snames.ads, snames.adb: Add entry for pragma
11388 Compile_Time_Error
11389 Add new standard name Minimum_Binder_Options for new gprmake
11390 Add new standard names for gprmake: Archive_Suffix,
11391 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
11392 Library_Support, Library_Version_Options,
11393 Shared_Library_Minimum_Options,
11394 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
11395 Change Name_Call to Name_uCall so that it cannot clash with a legal
11396 subprogram name.
11397 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
11398 Append C_Plus_Plus to convention identifiers as synonym for CPP
11399 Add new standard names Stack and Builder_Switches
11400 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
11401 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
11402 Run_Path_Option, Toolchain_Version.
11403 Entry for pragma Unreferenced_Objects
11404
11405 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
11406 switches, without repetition of "eD". Make sure that last character of
11407 -gnatep= switch is not taken as -gnat switch character.
11408 Complete rewrite of circuit for handling saving compilation options
11409 Occasioned by need to support dot switchs for -gnatw, but cleans up
11410 things in general.
11411 -gnatX does not affect Ada_Version
11412 Include -gnatyA in -gnatg style switches
11413
11414 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
11415 warnings on return objects.
11416 (Warn_On_Useless_Assignment): Exclude warnings on return objects
11417 (Set_Dot_Warning_Switch): New procedure
11418 (Check_References): Add missing case of test for
11419 Has_Pragma_Unreferenced_Objects
11420 (Output_Unreferenced_Messages): Implement effect of new pragma
11421 Unreferenced_Objects, remove special casing of limited controlled
11422 variables.
11423
11424 2007-04-06 Vincent Celier <celier@adacore.com>
11425
11426 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
11427 the default project path, initially done during elaboration of the
11428 package.
11429 If the prefix returned by Sdefault is null, get the prefix from a call
11430 to Executable_Prefix_Path.
11431 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
11432 null.
11433
11434 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
11435 canonical directory name to open the directory from which files are
11436 retrieved.
11437 (Record_Other_Sources): Idem.
11438 (Locate_Directory): Add the possibility to create automatically missing
11439 directories when Setup_Projects is True.
11440 Call Locate_Directory so that the directory will be created when
11441 Setup_Projects is True, for object dir, library dir, library ALI dir,
11442 library source copy dir and exec dir.
11443
11444 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
11445 versions of GNAT.
11446
11447 2007-04-06 Robert Dewar <dewar@adacore.com>
11448
11449 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
11450 Use First/Next_Component_Or_Discriminant
11451 (Analyze_Record_Representation_Clause):
11452 Use First/Next_Component_Or_Discriminant
11453 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
11454 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
11455 definition if type is unconstrained.
11456 (Adjust_Record_For_Reverse_Bit_Order): New procedure
11457 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
11458 Is_Abstract_Subprogram and Is_Abstract_Type.
11459 (Adjust_Record_For_Reverse_Bit_Order): New procedure
11460
11461 * repinfo.adb (List_Record_Info): Use First/
11462 Next_Component_Or_Discriminant.
11463
11464 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
11465 New procedure.
11466
11467 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
11468 Include -gnatyA in default switches
11469
11470 * opt.ads: (Warn_On_Non_Local_Exception): New flag
11471 (Warn_On_Reverse_Bit_Order): New flag
11472 (Extensions_Allowed): Update the documentation.
11473 (Warn_On_Questionable_Missing_Parens): Now on by default
11474
11475 * usage.adb: Add documentation of -gnatw.x/X switches
11476 Document new -gnatyA style switch
11477 -gnatq warnings are on by default
11478
11479 2007-04-06 Ed Falis <falis@adacore.com>
11480
11481 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
11482 full word is no longer compared twice.
11483
11484 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11485
11486 * sem_ch10.adb (Install_Limited_Context_Clauses.
11487 Expand_Limited_With_Clause): Use a new copy of selector name in the
11488 call to Make_With_Clause. This fixes the tree structure for ASIS
11489 purposes. Nothing is changed in the compiler behaviour.
11490 (Process_Body_Clauses): Handle properly use clauses whose prefix is
11491 a package renaming.
11492 (Install_Limited_With_Clauses): Do not install non-limited view when it
11493 is still incomplete.
11494
11495 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11496 Gary Dismukes <dismukes@adacore.com>
11497
11498 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
11499 when capturing size information, instead of base type, which for a
11500 formal array type will be the unconstrained type.
11501 (Analyze_Formal_Object_Declaration): Add check for illegal default
11502 expressions for a formal in object of a limited type.
11503 (Instantiate_Object): Ditto.
11504 (Check_Formal_Package_Instance): Skip entities that are formal objects,
11505 because they were defaulted in the formal package and no check applies
11506 to them.
11507 (Check_Formal_Package_Instance): Extend conformance check to other
11508 discrete types beyond Integer.
11509 (Process_Default): Copy directly the unmatched formal. A generic copy
11510 has already been performed in Analyze_Formal_Package.
11511 (Analyze_Associations): If a formal subprogram has no match, check for
11512 partial parametrization before looking for a default, to prevent
11513 spurious errors.
11514 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
11515 not set the instantiation environment before analyzing the actuals.
11516 Fixes regression on 8515-003 with implementation of AI-133.
11517 Set_Instance_Env checks whether the generic unit is a predefined
11518 unit, in which case the instance must be analyzed with the latest Ada
11519 mode. This setting must take place after analysis of the actuals,
11520 because the actuals must be analyzed and frozen in the Ada mode extant
11521 outside of the current instantiation.
11522 (Save_Env, Restore_Env): Preserve and restore the configuration
11523 parameters so that predefined units can be compiled in the proper Ada
11524 mode.
11525 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
11526 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
11527 and Is_Abstract_Type.
11528 (Analyze_Formal_Package): For better error recovery, Add exception
11529 handler to catch Instantion_Error, which can be raised in
11530 Analyze_Associations
11531
11532 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11533 Bob Duff <duff@adacore.com>
11534 Gary Dismukes <dismukes@adacore.com>
11535
11536 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
11537 prefix type is a discriminated subtype of the type of the formal.
11538 (Analyze_Allocator): Collect all coextensions regardless of the context.
11539 Whether they can be allocated statically is determined in exp_ch4.
11540 (Analyze_Selected_Component): If the prefix is a limited view and the
11541 non-limited view is available, use the non-limited one.
11542 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
11543 therefore illegal), suggest a qualified expression rather than a type
11544 conversion, because a type conversion would be illegal in this context.
11545 (Anayze_Allocator): Trace recursively all nested allocators so that all
11546 coextensions are on the corresponding list for the root. Do no mark
11547 coextensions if the root allocator is within a declaration for a stack-
11548 allocated object, because the access discriminants will be allocated on
11549 the stack as well.
11550 (Analyze_Call): Remove restriction on calls to limited functions for the
11551 cases of generic actuals for formal objects, defaults for formal objects
11552 and defaults for record components.
11553 (Analyze_Allocator): Before analysis, chain coextensions on the proper
11554 element list. Their expansion is delayed until the enclosing allocator
11555 is processed and its finalization list constructed.
11556 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
11557 for an operation with the given name among the primitive operations of
11558 the corresponding record type.
11559 (Analyze_Selected_Component): If the prefix is a task type that
11560 implements an interface, and there is no entry with the given name,
11561 check whether there is another primitive operation (e.g. a function)
11562 with that name.
11563 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
11564 properly the indexing of a function call written in prefix form, where
11565 the function returns an array type, and all parameters of the function
11566 except the first have defaults.
11567 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
11568 the original operands, rather than relocating them, for efficiency and
11569 to work properly when an operand is overloaded.
11570 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
11571 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
11572 (Analyze_Selected_Component): If the prefix is a private extension, only
11573 scan the visible components, not those of the full view.
11574 (Try_Primitive_Operation): If the operation is a procedure, collect all
11575 possible interpretations, as for a function, because in the presence of
11576 classwide parameters several primitive operations of the type can match
11577 the given arguments.
11578
11579 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11580 Robert Dewar <dewar@adacore.com>
11581
11582 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
11583 tag-indeterminate call to an abstract function, when the left-hand side
11584 is not classwide.
11585 (Analyze_Loop_Statement): Improve detection of infinite loops
11586
11587 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11588 Thomas Quinot <quinot@adacore.com>
11589
11590 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
11591 out of Analyze_Package_Declaration, because processing must be applied
11592 to package bodies as well, for deferred constants completed by pragmas.
11593 (Analyze_Package_Declaration): When the package declaration being
11594 analyzed does not require an explicit body, call Check_Completion.
11595 (May_Need_Implicit_Body): An implicit body is required when a package
11596 spec contains the declaration of a remote access-to-classwide type.
11597 (Analyze_Package_Body): If the package contains RACWs, append the
11598 pending subprogram bodies generated by exp_dist at the end of the body.
11599 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
11600 Is_Abstract_Subprogram and Is_Abstract_Type.
11601 (Preserve_Full_Attributes): The full entity list is not an attribute
11602 that must be preserved from full to partial view.
11603
11604 * sem_dist.adb (Add_RAS_Dereference_TSS):
11605 Change primitive name to _Call so it cannot clash with any legal
11606 identifier, and be special-cased in Check_Completion.
11607 Mark the full view of the designated type for the RACW associated with
11608 a RAS as Comes_From_Source to get proper view switching when installing
11609 private declarations.
11610 Provite a placeholder nested package body along with the nested spec
11611 to have a place for Append_RACW_Bodies to generate the calling stubs
11612 and stream attributes.
11613
11614 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11615 Robert Dewar <dewar@adacore.com>
11616
11617 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
11618 that is a limited view, check the non-limited view if available.
11619 (Undefined): Refine error message for missing with of Text_IO
11620 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
11621 to distinguish real missing with cases.
11622 Fix format of all missing with messages
11623 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
11624 renaming as body when renamed entity is abstract.
11625
11626 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11627 Javier Miranda <miranda@adacore.com>
11628
11629 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
11630 predicate recursive, to handle complex expressions on literals whose
11631 spurious ambiguity comes from the abstract interpretation of some
11632 subexpression.
11633 (Interface_Present_In_Ancestor): Add support to concurrent record
11634 types.
11635 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
11636 Is_Abstract_Subprogram and Is_Abstract_Type.
11637
11638 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11639 Javier Miranda <miranda@adacore.com>
11640
11641 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
11642 dereference of a local object R created as a reference to another
11643 object O, use the access level of O.
11644 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
11645 rather than local Same_Formal_Type, to check whether protected operation
11646 overrides an inherited one.
11647 (Same_Formal_Type): New predicate, used when matching signatures of
11648 overriding synchronized operations, to handle the case when a formal
11649 has a type that is a generic actual.
11650 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
11651 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
11652 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
11653 syntactic ambiguities involving indexing of function calls that return
11654 arrays.
11655 (Abstract_Interface_List): New subprogram that returns the list of
11656 abstract interfaces associated with a concurrent type or a
11657 concurrent record type.
11658 (Interface_Present_In_Parent): New subprogram used to check if a
11659 given type or some of its parents implement a given interface.
11660 (Collect_Abstract_Interfaces): Add support for concurrent types
11661 with interface types.
11662 (Has_Abstract_Interfaces): Add support for concurrent types with
11663 interface types.
11664 (Is_Parent): New subprogram that determines whether E1 is a parent
11665 of E2. For a concurrent type its parent is the first element of its
11666 list of interface types; for other types this function provides the
11667 same result than Is_Ancestor.
11668 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
11669 (Collect_Synchronized_Interfaces): Removed because the subprogram
11670 Collect_Abstract_Interfaces provides this functionality.
11671 (Collect_Abstract_Interfaces): Minor update to give support to
11672 concurrent types and thus avoid undesired code duplication.
11673 (Get_Subprogram_Entity): Handle entry calls.
11674 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
11675 entry calls.
11676 (Enter_Name): Do not give -gnatwh hiding warning for record component
11677 entities, they never result in hiding.
11678
11679 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11680 Robert Dewar <dewar@adacore.com>
11681
11682 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
11683 to chain nested components that are allocators for access discriminants
11684 of the enclosing object.
11685 Add N_Push and N_Pop nodes
11686 New field Exception_Label added
11687 (Local_Raise_Statements): New field in N_Exception_Handler_Node
11688 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
11689 (Is_Coextension): New flag for allocators, to mark allocators that
11690 correspond to access discriminants of dynamically allocated objects.
11691 (N_Block_Statement): Document the fact that the corresponding entity
11692 can be an E_Return_Statement.
11693 (Is_Coextension): New flag for allocators.
11694 Remove all code for DSP option
11695
11696 * sprint.ads, sprint.adb: Display basic information for class_wide
11697 subtypes. Add handling of N_Push and N_Pop nodes
11698
11699 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11700
11701 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
11702 before propagating exception.
11703
11704 2007-04-06 Olivier Hainque <hainque@adacore.com>
11705
11706 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
11707 an address always within the call instruction from a return address.
11708
11709 2007-04-06 Olivier Hainque <hainque@adacore.com>
11710 Eric Botcazou <botcazou@adacore.com>
11711
11712 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
11713 expression with a COMPOUND_EXPR including the call instead of emitting
11714 the call directly here.
11715 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
11716 high bound is constant and the slice is empty. Tidy.
11717 (tree_transform, case N_Op_Not): Handle properly the case where the
11718 operation applies to a private type whose full view is a modular type.
11719 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
11720 Address_Clause, use the associated Expression as the GNAT tree
11721 representing the choice value to ensure the corresponding GCC tree is
11722 of the proper kind.
11723 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
11724 instead of just the operands, as the base GCC stabilize_reference does.
11725 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
11726 requested; otherwise fail.
11727 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
11728
11729 2007-04-06 Thomas Quinot <quinot@adacore.com>
11730
11731 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
11732 implementation of UI_Div.
11733 (UI_Div): Reimplement as a call to UI_Div_Rem.
11734 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
11735 remainder, avoiding the cost of a multiplication and a subtraction.
11736 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
11737 provides both quotient and remainder in a single computation.
11738 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
11739 functions for uint.
11740 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
11741 is undefined if the given n is not inversible.
11742
11743 2007-04-06 Olivier Hainque <hainque@adacore.com>
11744
11745 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
11746 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
11747 opcodes.
11748
11749 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11750 Olivier Hainque <hainque@adacore.com>
11751
11752 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
11753 when updating the contents of the old pointer to an unconstrained array.
11754 (end_subprog_body): Set error_gnat_node to Empty.
11755 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
11756 (unchecked_convert): For subtype to base type conversions, require that
11757 the source be a subtype if it is an integer type.
11758 (builtin_decls): New global, vector of available builtin functions.
11759 (gnat_pushdecl): Add global builtin function declaration nodes to the
11760 builtin_decls list.
11761 (gnat_install_builtins): Adjust comments.
11762 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
11763 calling gnat_pushdecl, so that it knows when it handed a builtin
11764 function declaration node.
11765 (builtin_decl_for): Search the builtin_decls list.
11766
11767 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11768
11769 * s-stchop-vxworks.adb:
11770 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
11771
11772 2007-04-06 Robert Dewar <dewar@adacore.com>
11773 Arnaud Charlet <charlet@adacore.com>
11774
11775 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
11776
11777 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
11778 of files
11779 Add mention of -Sev (set initialize_scalars option from environment
11780 variable at run time) in gnatbind usage message.
11781
11782 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
11783
11784 * fname-uf.ads: Minor comment fix
11785
11786 * osint.ads: Change pragma Elaborate to Elaborate_All
11787
11788 * par-load.adb: Add documentation.
11789
11790 * sem_cat.ads, sem_cat.adb: Minor code reorganization
11791
11792 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
11793
11794 * s-secsta.ads: Extra comments
11795
11796 * s-soflin.ads: Minor comment fixes
11797
11798 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
11799
11800 * s-wchcon.ads: Minor comment addition
11801
11802 * treepr.adb: Minor change in message
11803 (Print_Name,Print_Node): Make these debug printouts more robust: print
11804 "no such..." instead of crashing on bad input.
11805
11806 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
11807
11808 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
11809 instead of gnat_signed_or_unsigned_type.
11810 * utils.c (gnat_signed_or_unsigned_type): Remove.
11811 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
11812 * gigi.h (gnat_signed_or_unsigned_type): Remove
11813
11814 2007-03-09 Roger Sayle <roger@eyesopen.com>
11815
11816 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
11817 fold with the result of buildN.
11818 * decl.c (gnat_to_gnu_entity): Likewise.
11819 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
11820 * utils.c (finish_record_type, merge_sizes, max_size, convert):
11821 Likewise.
11822 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
11823 nonbinary_modular_operation, build_binary_op, build_unary_op,
11824 build_cond_expr): Likewise.
11825
11826 * utils.c (convert): Use fold_build1 when casting values to void.
11827 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
11828 fold_convert instead of convert when appropriate.
11829
11830 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11831
11832 * Make-lang.in: Add install-pdf target as copied from
11833 automake v1.10 rules.
11834
11835 2007-02-28 Andreas Schwab <schwab@suse.de>
11836
11837 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
11838 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
11839 (doc/gnat-style.info): Likewise.
11840
11841 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
11842
11843 * gnat-style.texi: Standardize title page.
11844 * gnat_rm.texi: Likewise.
11845 * gnat_ugn.texi: Likewise.
11846
11847 2007-02-25 Mark Mitchell <mark@codesourcery.com>
11848
11849 * decl.c (annotate_value): Adjust for refactoring of tree_map
11850 hierarchy.
11851
11852 2007-02-24 Mark Mitchell <mark@codesourcery.com>
11853
11854 * decl.c (annotate_value): Adjust for refactoring of tree_map
11855 hierarchy.
11856
11857 2007-02-21 Ed Schonberg <schonberg@adacore.com>
11858
11859 PR ada/18819
11860 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
11861 untagged derived type, add hidden components to keep discriminant
11862 layout consistent, when a given discriminant of the derived type
11863 constraints several discriminants of the parent type.
11864
11865 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
11866 Sandra Loosemore <sandra@codesourcery.com>
11867
11868 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
11869 build the call expression.
11870 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
11871 * utils.c (max_size) <tcc_exceptional>: Delete.
11872 <tcc_vl_exp>: New case.
11873 <tcc_expression>: Delete CALL_EXPR subcase.
11874 (build_global_cdtor): Use build_call_nary instead of build3.
11875 * utils2.c (build_call_1_expr): Likewise.
11876 (build_call_2_expr): Likewise.
11877 (build_call_0_expr): Likewise.
11878 (build_call_alloc_dealloc): Likewise.
11879
11880 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
11881
11882 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
11883 get_action_description_for): Replace _Unwind_Word with _uleb128_t
11884 and _Unwind_SWord with _sleb128_t.
11885
11886 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
11887
11888 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
11889 * decl.c: Include gt-ada-decl.h.
11890 (annotate_value_cache): New.
11891 (annotate_value): Use it instead of TREE_COMPLEXITY.
11892
11893 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
11894
11895 * misc.c, utils2.c: Fix comment typos.
11896
11897 2007-01-24 Roger Sayle <roger@eyesopen.com>
11898
11899 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
11900 TREE_CONSTANT_OVERFLOW.
11901 (allocatable_size_p, annotate_value): Likewise.
11902 * trans.c (gnat_to_gnu): Likewise.
11903 * utils.c (unchecked_convert): Likewise.
11904 * utils2.c (build_simple_component_ref): Likewise.
11905
11906 2007-01-23 Richard Guenther <rguenther@suse.de>
11907
11908 PR bootstrap/30541
11909 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
11910 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
11911 (gnatboot3): Likewise.
11912 (GNATBIND): Do not define.
11913 * Makefile.in (GNATBIND): Do not define.
11914
11915 2007-01-08 Richard Guenther <rguenther@suse.de>
11916
11917 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
11918 * trans.c (gnat_to_gnu): Likewise.
11919
11920 2006-12-07 Geoffrey Keating <geoffk@apple.com>
11921
11922 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
11923 * adaint.c: Likewise.
11924
11925 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
11926
11927 Merge from gimple-tuples-branch:
11928 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
11929
11930 * ada-tree.h (lang_tree_node): Handle gimple tuples.
11931 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
11932 GIMPLE_MODIFY_STMT.
11933
11934 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
11935
11936 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
11937 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
11938 Fix typos.
11939
11940 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
11941
11942 PR ada/27936
11943 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
11944 if the initializer takes into account the padding.
11945
11946 2006-11-11 Richard Guenther <rguenther@suse.de>
11947
11948 * trans.c (maybe_stabilize_reference): Remove handling of
11949 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
11950
11951 2006-11-05 Arnaud Charlet <charlet@adacore.com>
11952
11953 PR ada/29707
11954 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
11955 (To_Target_Priority): New function.
11956
11957 2006-10-31 Robert Dewar <dewar@adacore.com>
11958
11959 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
11960 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
11961 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
11962 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
11963 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
11964 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
11965 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
11966 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
11967 a-szbzha.adb: Minor reformatting. Fix header.
11968
11969 * a-numaux-x86.adb: Add parentheses for use of unary minus
11970 * a-ngcefu.adb: Supply missing parentheses for unary minus
11971 * a-ngcoty.adb: Add parens for use of unary minus
11972 * a-ngelfu.adb: Add missing parens for unary minus
11973 * a-tifiio.adb: Add parentheses for uses of unary minus
11974
11975 2006-10-31 Robert Dewar <dewar@adacore.com>
11976 Bob Duff <duff@adacore.com>
11977 Ed Schonberg <schonberg@adacore.com>
11978
11979 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
11980 with multiplying operator.
11981 (Expected_Type_Is_Any_Real): New function to determine from the Parent
11982 pointer whether the context expects "any real type".
11983 (Resolve_Arithmetic_Op): Do not give an error on calls to the
11984 universal_fixed "*" and "/" operators when they are used in a context
11985 that expects any real type. Also set the type of the node to
11986 Universal_Real in this case, because downstream processing requires it
11987 (mainly static expression evaluation).
11988 Reword some continuation messages
11989 Add some \\ sequences to continuation messages
11990 (Resolve_Call): Refine infinite recursion case. The test has been
11991 sharpened to eliminate some false positives.
11992 Check for Current_Task usage now includes entry barrier, and is now a
11993 warning, not an error.
11994 (Resolve): If the call is ambiguous, indicate whether an interpretation
11995 is an inherited operation.
11996 (Check_Aggr): When resolving aggregates, skip associations with a box,
11997 which are priori correct, and will be replaced by an actual default
11998 expression in the course of expansion.
11999 (Resolve_Type_Conversion): Add missing support for conversion from
12000 a class-wide interface to a tagged type. Minor code cleanup.
12001 (Valid_Tagged_Converion): Add support for abstact interface type
12002 conversions.
12003 (Resolve_Selected_Component): Call Generate_Reference here rather than
12004 during analysis, and use May_Be_Lvalue to distinguish read/write.
12005 (Valid_Array_Conversion): New procedure, abstracted from
12006 Valid_Conversion, to incorporate accessibility checks for arrays of
12007 anonymous access types.
12008 (Valid_Conversion): For a conversion to a numeric type occurring in an
12009 instance or inlined body, no need to check that the operand type is
12010 numeric, since this has been checked during analysis of the template.
12011 Remove legacy test for scope name Unchecked_Conversion.
12012
12013 * sem_res.ads: Minor reformatting
12014
12015 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
12016 (PE_Current_Task_In_Entry_Body): New exception code
12017 (SE_Restriction_Violation): Removed, not used
12018
12019 * a-except.ads: Update comments.
12020
12021 * types.h, types.ads: Add definition for Validity_Check
12022 (PE_Current_Task_In_Entry_Body): New exception code
12023 (SE_Restriction_Violation): Removed, not used
12024
12025 2006-10-31 Thomas Quinot <quinot@adacore.com>
12026
12027 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
12028 error status.
12029
12030 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
12031 Jose Ruiz <ruiz@adacore.com>
12032
12033 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
12034 part of Ada.Calendar: all subprogram raise Unimplemented.
12035 (Split_W_Offset): Temp function body, raising Unimplemented
12036
12037 * a-calend.ads, a-calend-vms.ads:
12038 Add imported variable Invalid_TZ_Offset used to designate targets unable
12039 to support time zones.
12040 (Unimplemented): Temporary function raised by the body of new
12041 subprograms below.
12042 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
12043 unit provides handling of leap seconds and is used by the new Ada 2005
12044 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
12045 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
12046 version returns an extra value which is the offset to UTC.
12047
12048 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
12049 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
12050 (Split_W_Offset): New function body.
12051 (Time_Of): When a date is close to UNIX epoch, compute the time for
12052 that date plus one day (that amount is later substracted after
12053 executing mktime) so there are no problems with time zone adjustments.
12054
12055 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
12056
12057 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
12058 a-catizo.ads, a-catizo.adb: New files.
12059
12060 * impunit.adb: Add new Ada 2005 entries
12061
12062 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
12063 Rename all occurences of "__gnat_localtime_r" to
12064 "__gnat_localtime_tzoff".
12065 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
12066 zone data and calculate the GMT offset.
12067 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
12068 Use the field "tm_gmtoff" to extract the GMT offset.
12069 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
12070 the external variable "timezone" to calculate the GMT offset.
12071
12072 2006-10-31 Arnaud Charlet <charlet@adacore.com>
12073 Jose Ruiz <ruiz@adacore.com>
12074
12075 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
12076 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
12077 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
12078 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
12079 System.Any_Priority to a POSIX priority on the target.
12080
12081 * system-linux-ia64.ads:
12082 Extend range of Priority types on Linux to use the whole range made
12083 available by the system.
12084
12085 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
12086 function maps from System.Any_Priority to a POSIX priority on the
12087 target.
12088 (PTHREAD_PRIO_PROTECT): Set real value.
12089 (PTHREAD_PRIO_INHERIT): Now a function.
12090 (SIGCPUFAIL): New signal.
12091 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
12092 are documented as reserved by the OS.
12093
12094 * system-aix.ads: Use the full range of priorities provided by the
12095 system on AIX.
12096
12097 * s-taprop-posix.adb: Call new function To_Target_Priority.
12098 (Set_Priority): Take into account Task_Dispatching_Policy and
12099 Priority_Specific_Dispatching pragmas when determining if Round Robin
12100 must be used for scheduling the task.
12101
12102 * system-linux-x86_64.ads, system-linux-x86.ads,
12103 system-linux-ppc.ads: Extend range of Priority types on Linux to use
12104 the whole range made available by the system.
12105
12106 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
12107 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
12108 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
12109 when deallocating the TCB in order to avoid potential references to
12110 deallocated data.
12111 (Set_Priority): Take into account Task_Dispatching_Policy and
12112 Priority_Specific_Dispatching pragmas when determining if Round Robin
12113 or FIFO within priorities must be used for scheduling the task.
12114
12115 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
12116 the Thread field (to be used internally by the run-time system) and the
12117 kernel-level task id in the LWP field (to be used by the debugger).
12118 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
12119 instance, and propagate the current task options to the spawned task.
12120 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
12121 (Initialize): Set Round Robin dispatching when the corresponding pragma
12122 is in effect.
12123
12124 2006-10-31 Robert Dewar <dewar@adacore.com>
12125
12126 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
12127 system-linux-hppa.ads, system-hpux-ia64.ads,
12128 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
12129 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12130 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
12131 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
12132 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12133 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12134 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
12135 Default_Bit_Order) to kill constant condition warnings for references
12136 to this switch.
12137
12138 2006-10-31 Vincent Celier <celier@adacore.com>
12139 Eric Botcazou <ebotcazou@adacore.com>
12140
12141 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
12142 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
12143 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
12144 Ext_To, when building the library file name
12145
12146 * mlib-tgt-vxworks.adb: ditto.
12147 (Get_Target_Suffix): Add support for x86 targets.
12148
12149 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
12150
12151 * mlib-tgt-darwin.adb:
12152 Use Append_To, instead of Ext_To, when building the library file name
12153 (Flat_Namespace): New global variable.
12154 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
12155 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
12156 (Link_Shared_Libgcc): Delete.
12157 (Build_Dynamic_Library): Adjust for above changes.
12158 Use Opt package.
12159 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
12160
12161 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
12162
12163 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
12164 (Initialize): Add type conversions required by above change.
12165
12166 2006-10-31 Jose Ruiz <ruiz@adacore.com>
12167
12168 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
12169 (getpid): New body for this function that uses the underlying taskIdSelf
12170 function for VxWorks 5 and VxWorks 6 in kernel mode.
12171 (unsigned_int): New type, modular to allow logical bit operations.
12172 (taskOptionsGet): New imported function.
12173
12174 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
12175 field to be compliant with the type used by the corresponding operating
12176 system primitive.
12177
12178 2006-10-31 Pascal Obry <obry@adacore.com>
12179 Eric Botcazou <ebotcazou@adacore.com>
12180 Vincent Celier <celier@adacore.com>
12181
12182 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
12183 ASCII version of the registry API. This is needed as the GNAT runtime
12184 is now UNICODE by default.
12185 Include version.h.
12186 (get_gcc_version): Do not hardcode the return value.
12187 (__gnat_file_time_name): On Windows properly set the default returned
12188 value to -1 which corresponds to Invalid_Time.
12189 (__gnat_fopen): New routine. A simple wrapper on all plateforms
12190 except on Windows where it does conversion for unicode support.
12191 (__gnat_freopen): Idem.
12192 (__gnat_locate_exec_on_path): If environment variable PATH does not
12193 exist, return a NULL pointer
12194
12195 * adaint.h: (__gnat_fopen): Declare.
12196 (__gnat_freopen): Likewise.
12197
12198 * mingw32.h (_tfreopen): Define this macro here for older MingW
12199 version.
12200 Activate the unicode support on platforms using a MingW runtime
12201 version 3.9 or newer.
12202
12203 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
12204 This is needed for proper unicode support on Windows.
12205 (freopen): Idem.
12206
12207 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
12208 Nicolas Setton <setton@adacore.com>
12209 Olivier Hainque <hainque@adacore.com>
12210 Gary Dismukes <dismukes@adacore.com>
12211
12212 * gigi.h: (tree_code_for_record_type): Declare.
12213 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
12214 (get_global_renaming_pointers): Rename to
12215 invalidate_global_renaming_pointers.
12216 (static_ctors): Delete.
12217 (static_dtors): Likewise.
12218 (gnat_write_global_declarations): Declare.
12219 (create_var_decl): Adjust descriptive comment to indicate that the
12220 subprogram may return a CONST_DECL node.
12221 (create_true_var_decl): Declare new function, similar to
12222 create_var_decl but forcing the creation of a VAR_DECL node.
12223 (get_global_renaming_pointers): Declare.
12224 (add_global_renaming_pointer): Likewise.
12225
12226 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
12227
12228 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
12229 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
12230 processing.
12231 (gnat_to_gnu_entity): Remove From_With_Type from computation for
12232 imported_p.
12233 <E_Access_Type>: Use the Non_Limited_View as the full view of the
12234 designated type if the pointer comes from a limited_with clause. Make
12235 incomplete designated type if it is in the main unit and has a freeze
12236 node.
12237 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
12238 Underlying_Full_View similarly. Return earlier if the full view already
12239 has an associated tree.
12240 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
12241 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
12242 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
12243 reference type built for objects with an address clause.
12244 Use create_true_var_decl with const_flag set for
12245 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
12246 TREE_READONLY set.
12247 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
12248 for Character and Wide_Character types. This info is read by the
12249 dwarf-2 writer, and is needed to be able to use the command "ptype
12250 character" in the debugger.
12251 (gnat_to_gnu_entity): When generating a type representing
12252 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
12253 so that debug writers can distinguish it from ordinary integers.
12254 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
12255 addition to TREE_READONLY to assert the constantness of variables for
12256 elaboration purposes.
12257 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
12258 parameters to call new Einfo function First_Formal_With_Extras.
12259 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
12260 protected type with its corresponding discriminant, to obtain a usable
12261 declaration
12262 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
12263 for a multiple elaboration of the "equivalent" type.
12264 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
12265 into record_global_renaming_pointer.
12266 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
12267 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
12268 <E_Array_Subtype>: Likewise.
12269 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
12270 incomplete subtypes and incomplete subtypes of incomplete types visible
12271 through a limited with clause.
12272 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
12273 the base index type for the maximum size of the array only if they are
12274 constant.
12275 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
12276 expression into a SAVE_EXPR if stabilization failed.
12277
12278 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
12279 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
12280 by lower level compilation passes.
12281 (gnat_genericize): New function, lowering a function body to GENERIC.
12282 Turn the type of RESULT_DECL into a real reference type if the decl
12283 has been marked DECL_BY_REFERENCE, and adjust references to the latter
12284 accordingly.
12285 (gnat_genericize_r): New function. Tree walking callback for
12286 gnat_genericize.
12287 (convert_from_reference, is_byref_result): New functions. Helpers for
12288 gnat_genericize_r.
12289 (create_type_decl): Call gnat_pushdecl before calling
12290 rest_of_decl_compilation, to make sure that field TYPE_NAME of
12291 type_decl is properly set before calling the debug information writers.
12292 (write_record_type_debug_info): The heuristics which compute the
12293 alignment of a field in a variant record might not be accurate. Add a
12294 safety test to make sure no alignment is set to a smaller value than
12295 the alignment of the field type.
12296 (make_dummy_type): Use the Non_Limited_View as the underlying type if
12297 the type comes from a limited_with clause. Do not loop on the full view.
12298 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
12299 (dummy_node_table): New global variable, moved from decl.c.
12300 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
12301 (save_gnu_tree): Use above macros.
12302 (get_gnu_tree): Likewise.
12303 (present_gnu_tree): Likewise.
12304 (init_dummy_type): New function, moved from decl.c. Use above macros.
12305 (make_dummy_type): Likewise.
12306 (tree_code_for_record_type): New function extracted from make_dummy_type
12307 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
12308 (static_ctors): Change it to a vector, make static.
12309 (static_dtors): Likewise.
12310 (end_subprog_body): Adjust for above change.
12311 (build_global_cdtor): Moved from trans.c.
12312 (gnat_write_global_declarations): Emit global constructor and
12313 destructor, and call cgraph_optimize before emitting debug info for
12314 global declarations.
12315 (global_decls): New global variable.
12316 (gnat_pushdecl): Store the global declarations in global_decls, for
12317 later use.
12318 (gnat_write_global_declarations): Emit debug information for global
12319 declarations.
12320 (create_var_decl_1): Former create_var_decl, with an extra argument to
12321 state whether the creation of a CONST_DECL is allowed.
12322 (create_var_decl): Behavior unchanged. Now a wrapper around
12323 create_var_decl_1 allowing CONST_DECL creation.
12324 (create_true_var_decl): New function, similar to create_var_decl but
12325 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
12326 (create_field_decl): Do not always mark the field as addressable
12327 if its type is an aggregate.
12328 (global_renaming_pointers): New static variable.
12329 (add_global_renaming_pointer): New function.
12330 (get_global_renaming_pointers): Likewise.
12331
12332 * misc.c (gnat_dwarf_name): New function.
12333 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
12334 (gnat_post_options): Add comment about structural alias analysis.
12335 (gnat_parse_file): Do not call cgraph_optimize here.
12336 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
12337
12338 * trans.c (process_freeze_entity): Don't abort if we already have a
12339 non dummy GCC tree for a Concurrent_Record_Type, as it might
12340 legitimately have been elaborated while processing the associated
12341 Concurrent_Type prior to this explicit freeze node.
12342 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
12343 exception handler volatile if it is of variable size.
12344 (process_type): Remove bypass for types coming from a limited_with
12345 clause.
12346 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
12347 actual, convert the corresponding gnu_actual to the real destination
12348 type when necessary.
12349 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
12350 originally TREE_READONLY but whose elaboration cannot be performed
12351 statically.
12352 Part of fix for F504-021.
12353 (tree_transform, subprogram cases): Change loops on formal parameters to
12354 call new Einfo function First_Formal_With_Extras.
12355 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
12356 stemming from type conversion for the lhs.
12357 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
12358 number of bits per unit for components of records.
12359 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
12360 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
12361 with At_End_Proc after the SJLJ EH cleanup.
12362 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
12363 compilation unit.
12364 (elaborate_all_entities): Do not retest type_annotate_only.
12365 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
12366 result type of an abstract subprogram, which may be an itype associated
12367 with an anonymous access result (related to AI-318-02).
12368 (build_global_cdtor): Move to utils.c.
12369 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
12370 this choice is not a null tree nor an integer constant.
12371 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
12372 on the body of elaboration routines instead of mark_unvisited.
12373 (add_stmt): Do not mark the tree.
12374 (add_decl_expr): Tweak comment.
12375 (mark_unvisited): Delete.
12376 (unshare_save_expr): New static function.
12377 (call_to_gnu): Issue an error when making a temporary around a
12378 procedure call because of non-addressable actual parameter if the
12379 type of the formal is by_reference.
12380 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
12381 after building the elaboration routine.
12382
12383 2006-10-31 Bob Duff <duff@adacore.com>
12384
12385 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
12386 as finalization-started, so we can raise Program_Error on 'new'.
12387
12388 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
12389 collection has already started.
12390
12391 * s-finimp.ads (Collection_Finalization_Started): Added new special
12392 flag value for indicating that a collection's finalization has started.
12393
12394 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
12395 create a task whose master has already waited for dependent tasks.
12396
12397 2006-10-31 Robert Dewar <dewar@adacore.com>
12398
12399 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
12400
12401 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
12402 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
12403 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
12404 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
12405 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
12406 a-except-2005.ads: Add pragma Preelaborable_Warning
12407
12408 2006-10-31 Robert Dewar <dewar@adacore.com>
12409 Jose Ruiz <ruiz@adacore.com>
12410
12411 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
12412
12413 * ali.adb (Get_Name): Properly handle scanning of wide character names
12414 encoded with brackets notation.
12415 (Known_ALI_Lines): Add S lines to this list.
12416 (Scan_ALI): Acquire S (priority specific dispatching) lines.
12417 New flag Elaborate_All_Desirable in unit table
12418
12419 * ali.ads (Priority_Specific_Dispatching): Add this range of
12420 identifiers to be used for Priority_Specific_Dispatching table entries.
12421 (ALIs_Record): Add First_Specific_Dispatching and
12422 Last_Specific_Dispatching that point to the first and last entries
12423 respectively in the priority specific dispatching table for this unit.
12424 (Specific_Dispatching): Add this table for storing each S (priority
12425 specific dispatching) line encountered in the input ALI file.
12426 New flag Elaborate_All_Desirable in unit table
12427
12428 * bcheck.adb: (Check_Configuration_Consistency): Add call to
12429 Check_Consistent_Dispatching_Policy.
12430 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
12431 verifying that the use of Priority_Specific_Dispatching,
12432 Task_Dispatching_Policy, and Locking_Policy is consistent across the
12433 partition.
12434
12435 * bindgen.adb: (Public_Version_Warning): function removed.
12436 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
12437 required information from ALI files in order to initialize the table
12438 containing the specific dispatching policy.
12439 (Gen_Adainit_Ada): Generate the variables required for priority specific
12440 dispatching entries (__gl_priority_specific_dispatching and
12441 __gl_num_specific_dispatching).
12442 (Gen_Adainit_C): Generate the variables required for priority specific
12443 dispatching entries (__gl_priority_specific_dispatching and
12444 __gl_num_specific_dispatching).
12445 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
12446 pragma entries.
12447 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
12448 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
12449 (Tab_To): Removed.
12450 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
12451 a call to gnat_set_globals.
12452 Generate a string containing settings from
12453 Priority_Specific_Dispatching pragma entries.
12454 (Gen_Object_Files_Options): Do not include the runtime libraries when
12455 pragma No_Run_Time is specified.
12456
12457 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
12458 consistency with s-intman-posix.adb.
12459 (__gnat_error_handler, case FreeBSD): Account for the fact that the
12460 handler is installed with SA_SIGINFO.
12461 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
12462 FreeBSD ZCX support, copied from Linux version.
12463 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
12464 sigfillset, and sigemptyset so the routines defined by MaRTE.
12465 (__gl_priority_specific_dispatching): Add this variable that stores the
12466 string containing priority specific dispatching policies in the
12467 partition.
12468 (__gl_num_specific_dispatching): Add this variable that indicates the
12469 highest priority for which a priority specific dispatching pragma
12470 applies.
12471 (__gnat_get_specific_dispatching): Add this routine that returns the
12472 priority specific dispatching policy, as set by a
12473 Priority_Specific_Dispatching pragma appearing anywhere in the current
12474 partition. The input argument is the priority number, and the result
12475 is the upper case first character of the policy name.
12476 (__gnat_set_globals): Now a dummy function.
12477 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
12478 mechargs instead of sigargs, as the latter can be retrieved from the
12479 former and sigargs is not what we want on ia64.
12480 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
12481 mechargs argument.
12482 (__gnat_adjust_context_for_raise, ia64-vms): New function.
12483 (tasking_error): Remove unused symbol.
12484 (_abort_signal): Move this symbol to the IRIX specific part since this
12485 is the only target that uses this definition.
12486 (Check_Abort_Status): Move this symbol to the IRIX specific part since
12487 this is the only target that uses this definition.
12488 (Lock_Task): Remove unused symbol.
12489 (Unlock_Task): Remove unused symbol.
12490
12491 * lib-writ.adb (Write_ALI): Output new S lines for
12492 Priority_Specific_Dispatching pragmas.
12493 Implement new flag BD for elaborate body desirable
12494
12495 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
12496 (Specific_Dispatching): Add this table for storing the entries
12497 corresponding to Priority_Specific_Dispatching pragmas.
12498 Document new BD flag for elaborate body desirable
12499
12500 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
12501 of known pragmas.
12502
12503 2006-10-31 Javier Miranda <miranda@adacore.com>
12504
12505 * a-tags.ads, a-tags.adb:
12506 (Predefined_DT): New function that improves readability of the code.
12507 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
12508 Inherit_DT): Use the new function Predefined_DT to improve code
12509 readability.
12510 (Register_Interface_Tag): Update assertion.
12511 (Set_Interface_Table): Update assertion.
12512 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
12513 determining progenitor interfaces in Tags.
12514 (Inherit_CPP_DT): New subprogram.
12515
12516 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
12517 analysis of the thunk code.
12518 (Expand_Interface_Conversion): Handle run-time conversion of
12519 access to class wide types.
12520 (Expand_Dispatching_Call): When generating the profile for the
12521 subprogram itype for a dispatching operation, properly terminate the
12522 formal parameters chaind list (set the Next_Entity of the last formal
12523 to Empty).
12524 (Collect_All_Interfaces): Removed. This routine has been moved to
12525 sem_util and renamed as Collect_All_Abstract_Interfaces.
12526 (Set_All_DT_Position): Hidden entities associated with abstract
12527 interface primitives are not taken into account in the check for
12528 3.9.3(10); this check is done with the aliased entity.
12529 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
12530 interfacing with CPP by default.
12531 (Expand_Interface_Conversion): Add missing support for static conversion
12532 from an interface to a tagged type.
12533 (Collect_All_Interfaces): Add new out formal containing the list of
12534 abstract interface types to cleanup the subprogram Make_DT.
12535 (Make_DT): Update the code to generate the table of interfaces in case
12536 of abstract interface types.
12537 (Is_Predefined_Dispatching_Alias): New function that returns true if
12538 a primitive is not a predefined dispatching primitive but it is an
12539 alias of a predefined dispatching primitive.
12540 (Make_DT): If the ancestor of the type is a CPP_Class and we are
12541 compiling under full ABI compatibility mode we avoid the generation of
12542 calls to run-time services that fill the dispatch tables because under
12543 this mode we currently inherit the dispatch tables in the IP subprogram.
12544 (Write_DT): Emit an "is null" indication for a null procedure primitive.
12545 (Expand_Interface_Conversion): Use an address as the type of the formal
12546 of the internally built function that handles the case in which the
12547 target type is an access type.
12548
12549 2006-10-31 Robert Dewar <dewar@adacore.com>
12550
12551 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
12552
12553 2006-10-31 Robert Dewar <dewar@adacore.com>
12554
12555 * bindusg.ads, bindusg.adb:
12556 Change to package and rename procedure as Display, which
12557 now ensures that it only outputs usage information once.
12558
12559 2006-10-31 Jose Ruiz <ruiz@adacore.com>
12560
12561 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
12562 using RTPs.
12563
12564 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
12565 when using RTPs.
12566
12567 2006-10-31 Robert Dewar <dewar@adacore.com>
12568 Ed Schonberg <schonberg@adacore.com>
12569
12570 * treepr.adb: Use new subtype N_Membership_Test
12571
12572 * checks.ads, checks.adb: Add definition for Validity_Check
12573 (Range_Or_Validity_Checks_Suppressed): New function
12574 (Ensure_Valid): Test Validity_Check suppressed
12575 (Insert_Valid_Check): Test Validity_Check suppressed
12576 (Insert_Valid_Check): Preserve Do_Range_Check flag
12577 (Validity_Check_Range): New procedure
12578 (Expr_Known_Valid): Result of membership test is always valid
12579 (Selected_Range_Checks): Range checks cannot be applied to discriminants
12580 by themselves. Disabling those checks must also be done for task types,
12581 where discriminants may be used for the bounds of entry families.
12582 (Apply_Address_Clause_Check): Remove side-effects if address expression
12583 is non-static and is not the name of a declared constant.
12584 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
12585 Code cleanup and new error messages.
12586 (Enable_Range_Check): Test for some cases of suppressed checks
12587 (Generate_Index_Checks): Suppress index checks if index checks are
12588 suppressed for array object or array type.
12589 (Apply_Selected_Length_Checks): Give warning for compile-time detected
12590 length check failure, even if checks are off.
12591 (Ensure_Valid): Do not generate a check on an indexed component whose
12592 prefix is a packed boolean array.
12593 * checks.adb: (Alignment_Checks_Suppressed): New function
12594 (Apply_Address_Clause_Check): New procedure, this is a completely
12595 rewritten replacement for Apply_Alignment_Check
12596 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
12597 we request a discriminal value only in case of discriminants.
12598 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
12599 assignments where the target subtype is unconstrained and the target
12600 object is a parameter or dereference (other aliased cases are known
12601 to be unconstrained).
12602
12603 2006-10-31 Robert Dewar <dewar@adacore.com>
12604
12605 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
12606 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
12607 vms_conv.adb: Fix bad table increment values (much too small)
12608
12609 * table.adb (Realloc): Make sure we get at least some new elements
12610 Defends against silly small values for table increment
12611
12612 2006-10-31 Robert Dewar <dewar@adacore.com>
12613 Ed Schonberg <schonberg@adacore.com>
12614 Bob Duff <duff@adacore.com>
12615
12616 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
12617 entities. Move other fields around to make this possible
12618 (Is_Derived_Type): Add missing call to Is_Type.
12619 (Extra_Formals): New function for subprograms, entries, subprogram
12620 types.
12621 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
12622 (First_Formal_With_Extras): New function for subprogs, entries, subp
12623 types.
12624 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
12625 Add node information for E_Return_Statement.
12626 (Elaborate_Body_Desirable): New flag
12627 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
12628 to be Is_Inherently_Limited_Type, because return-by-reference has
12629 no meaning in Ada 2005.
12630 (E_Return_Statement): New entity kind.
12631 (Return_Applies_To): Field of E_Return_Statement.
12632 (Is_Return_Object): New flag in object entities.
12633 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
12634 (Must_Have_Preelab_Init): New flag
12635 (Known_To_Have_Preelab_Init): New flag
12636 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
12637 (Is_Visible_Formal): New flag on entities in formal packages.
12638 (Low_Bound_Known): New flag
12639 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
12640 Incomplete_Kind.
12641 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
12642 output when Id is an incomplete subtype.
12643
12644 2006-10-31 Robert Dewar <dewar@adacore.com>
12645
12646 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
12647 Avoid abbreviation Creat
12648 (Finalize): List all sources in extended mail source if -gnatl
12649 switch is active.
12650 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
12651 (Finalize): Implement new -gnatl=xxx switch to output listing to file
12652 (Set_Specific_Warning_On): New procedure
12653 (Set_Specific_Warning_Off): New procedure
12654 Add implementation of new insertion \\
12655 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
12656 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
12657 types.
12658 (Error_Msg_Internal): Make sure that we set Last_Killed to
12659 True when a message from another package is suppressed.
12660 Implement insertion character ~ (insert string)
12661 (First_Node): Minor adjustments to get better placement.
12662
12663 * frontend.adb:
12664 Implement new -gnatl=xxx switch to output listing to file
12665
12666 * gnat1drv.adb:
12667 Implement new -gnatl=xxx switch to output listing to file
12668
12669 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
12670 (Commands_To_Stdout): New flag
12671 Implement new -gnatl=xxx switch to output listing to file
12672 New switch Dump_Source_Text
12673 (Warn_On_Deleted_Code): New warning flag for -gnatwt
12674 Define Error_Msg_Line_Length
12675 (Warn_On_Assumed_Low_Bound): New switch
12676
12677 * osint.ads, osint.adb
12678 (Normalize_Directory_Name): Fix bug.
12679 Implement new -gnatl=xxx switch to output listing to file
12680 (Concat): Removed, replaced by real concatenation
12681 Make use of concatenation now allowed in compiler
12682 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
12683 we find the 'lib' or 'bin' directory even when the tool has been
12684 invoked with a relative path.
12685 (Executable_Name): New function taking string parameters.
12686
12687 * osint-c.ads, osint-c.adb:
12688 Implement new -gnatl=xxx switch to output listing to file
12689
12690 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
12691
12692 * switch-c.adb:
12693 Implement new -gnatl=xxx switch to output listing to file
12694 Recognize new -gnatL switch
12695 (no longer keep in old warning about old style usage)
12696 Use concatenation to simplify code
12697 Recognize -gnatjnn switch
12698 (Scan_Front_End_Switches): Clean up handling of -gnatW
12699 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
12700
12701 2006-10-31 Robert Dewar <dewar@adacore.com>
12702
12703 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
12704 (Set_Specific_Warning_Off): New procedure
12705 (Warning_Specifically_Suppressed): New function
12706 (Validate_Specific_Warnings): New procedure
12707 (Output_Msg_Text): Complete rewrite to support -gnatjnn
12708
12709 * err_vars.ads: Implement insertion character ~ (insert string)
12710
12711 2006-10-31 Bob Duff <duff@adacore.com>
12712 Ed Schonberg <schonberg@adacore.com>
12713
12714 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
12715 the parent part is a build-in-place function call, generate assignments.
12716 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
12717 are build-in-place function calls.
12718 (Replace_Self_Reference): New subsidiary of
12719 Make_OK_Assignment_Statement, to replace an access attribute that is a
12720 self-reference into an access to the appropriate component of the
12721 target object. Generalizes previous mechanism to handle self-references
12722 nested at any level.
12723 (Is_Self_Referential_Init): Remove, not needed.
12724 (Is_Self_Referential_Init): New predicate to simplify handling of self
12725 referential components in record aggregates.
12726 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
12727 check for presence of entity before checking for self-reference.
12728 (Has_Default_Init_Comps): Return True if a component association is a
12729 self-reference to the enclosing type, which can only come from a
12730 default initialization.
12731 (Make_OK_Assignment_Statement): If the expression is of the form
12732 Typ'Acc, where Acc is an access attribute, the expression comes from a
12733 default initialized self-referential component.
12734 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
12735 that has been derived from several abstract interfaces we must also
12736 initialize the tags of the secondary dispatch tables.
12737
12738 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12739 Thomas Quinot <quinot@adacore.com>
12740 Javier Miranda <miranda@adacore.com>
12741 Robert Dewar <dewar@adacore.com>
12742
12743 * exp_attr.adb:
12744 (Expand_Access_To_Protected_Op): If the context indicates that an access
12745 to a local operation may be transfered outside of the object, create an
12746 access to the wrapper operation that must be used in an external call.
12747 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
12748 target, pass the Valid attribute applied to a floating-point prefix on
12749 to the back end without expansion.
12750 (Storage_Size): Use the new run-time function Storage_Size to retrieve
12751 the allocated storage when it is specified by a per-object expression.
12752 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
12753 Nothing to do here, the attribute has been rewritten during semantic
12754 analysis.
12755 (Expand_Attribute_Reference): Handle expansion of the new Priority
12756 attribute
12757 (Find_Fat_Info): Handle case of universal real
12758 (Expand_Access_To_Protected_Op): Fix use of access to protected
12759 subprogram from inside the body of a protected entry.
12760 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
12761 'Access and 'Unrestricted_Access, to transform the attribute reference
12762 into a fat pointer.
12763 (Is_Constrained_Aliased_View): New predicate to help determine whether a
12764 subcomponent's enclosing variable is aliased with a constrained subtype.
12765 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
12766 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
12767 an aliased prefix must be known to be constrained in order to use True
12768 for the attribute value, and now it's possible for some aliased views
12769 to be unconstrained.
12770
12771 2006-10-31 Robert Dewar <dewar@adacore.com>
12772
12773 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
12774 (Expand_Entity_Reference): Correct error of not handling subprogram
12775 formals in current_value processing.
12776
12777 2006-10-31 Javier Miranda <miranda@adacore.com>
12778 Robert Dewar <dewar@adacore.com>
12779 Ed Schonberg <schonberg@adacore.com>
12780 Gary Dismukes <dismukes@adacore.com>
12781
12782 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
12783 register in the final list objects containing class-wide interfaces;
12784 otherwise we incorrectly register the tag of the interface in the final
12785 list.
12786 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
12787 generate the wrapper if the parent primitive is abstract. This is
12788 required to report the correct error message.
12789 (Expand_N_Subtype_Indication): Do validity checks on range
12790 (Clean_Task_Names): If an initialization procedure includes a call to
12791 initialize a task (sub)component, indicate that the procedure will use
12792 the secondary stack.
12793 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
12794 compatibility for interfacing with CPP by default.
12795 (Expand_N_Object_Declaration): Only build an Adjust call when the
12796 object's type is a nonlimited controlled type.
12797 * exp_ch3.adb: Add with and use of Exp_Ch6.
12798 (Expand_N_Object_Declaration): Check for object initialization that is a
12799 call to build-in-place function and apply Make_Build_In_Place_Call_In_
12800 Object_Declaration to the call.
12801 (Freeze_Type): When the designated type of an RACW was not frozen at the
12802 point where the RACW was declared, validate the primitive operations
12803 with respect to E.2.2(14) when it finally is frozen.
12804 (Build_Initialization_Call,Expand_Record_Controller): Rename
12805 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
12806 return-by-reference has no meaning in Ada 2005.
12807 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
12808 to register tag of the immediate ancestor interfaces in the
12809 run-time structure.
12810 (Init_Secondary_Tags): Moved to the specification to allow the
12811 initialization of extension aggregates with abstract interfaces.
12812 (Build_Master_Renaming): Make public, for use by function declarations
12813 whose return type is an anonymous access type.
12814 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
12815 Insert_List_Before_And_Analyze after the generation of the specs
12816 associated with null procedures.
12817 (Expand_Tagged_Root): Update documentation in its specification.
12818 (Init_Secondary_Tags): Update documentation.
12819 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
12820 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
12821 then generate code to inherit the contents of the dispatch table
12822 directly from the ancestor.
12823 (Expand_Record_Controller): Insert controller component after tags of
12824 implemented interfaces.
12825 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
12826 create null procedure overridings when null procedures are inherited
12827 from interfaces.
12828 (Make_Null_Procedure_Specs): New procedure to generate null procedure
12829 declarations for overriding null primitives inherited from interfaces.
12830 (Is_Null_Interface_Procedure): New function in
12831 Make_Null_Procedure_Specs.
12832 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
12833 immediate ancestor of a tagged type is an abstract interface type we
12834 must generate the specification of the predefined primitives associated
12835 with controlled types (because the dispatch table of the ancestor is
12836 null and hence these entries cannot be inherited). This is required to
12837 elaborate well the dispatch table.
12838
12839 2006-10-31 Javier Miranda <miranda@adacore.com>
12840 Ed Schonberg <schonberg@adacore.com>
12841 Bob Duff <duff@adacore.com>
12842 Gary Dismukes <dismukes@adacore.com>
12843 Robert Dewar <dewar@adacore.com>
12844
12845 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
12846 conversion.
12847 (Expand_N_In): Do validity checks on range
12848 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
12849 (Expand_N_Allocator): For "new T", if the object is constrained by
12850 discriminant defaults, allocate the right amount of memory, rather than
12851 the maximum for type T.
12852 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
12853 when the allocator is initialized by a build-in-place call, since the
12854 allocator is already rewritten as a reference to the function result,
12855 and this prevents an unwanted duplication of the function call.
12856 Add with and use of Exp_Ch6.
12857 (Expand_Allocator_Expresssion): Check for an allocator whose expression
12858 is a call to build-in-place function and apply
12859 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
12860 untagged designated types).
12861 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
12862 optimization if source or target is biased.
12863 (Expand_N_Allocator): Add comments for case of an allocator within a
12864 function that returns an anonymous access type designating tasks.
12865 (Expand_N_Allocator): apply discriminant checks for access
12866 discriminants of anonymous access types (AI-402, AI-416)
12867
12868 2006-10-31 Bob Duff <duff@adacore.com>
12869 Robert Dewar <dewar@adacore.com>
12870 Gary Dismukes <dismukes@adacore.com>
12871 Ed Schonberg <schonberg@adacore.com>
12872
12873 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
12874
12875 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
12876 (Expand_N_Assignment_Statement): Call
12877 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
12878 build-in-place function call. Currently, this can happen only for
12879 assignments that come from aggregates.
12880 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
12881 in order to alleviate the upward compatibility introduced by AI-318.
12882 (Expand_N_Extended_Return_Statement): Add support for handling the
12883 return object as a build-in-place result.
12884 (Expand_Non_Function_Return): Implement simple return statements nested
12885 within an extended return.
12886 (Enable_New_Return_Processing): Turn on the new processing of return
12887 statements.
12888 (Expand_Non_Function_Return): For a return within an extended return,
12889 don't raise Program_Error, because Sem_Ch6 now gives a warning.
12890 (Expand_N_Extended_Return_Statement): Implement AI-318
12891 (Expand_Simple_Function_Return): Ditto.
12892 (Expand_N_If_Statement): Handle new -gnatwt warning
12893 (Expand_N_Case_Statement): Handle new -gnatwt warning
12894 (Expand_N_Assignment): Handle assignment to the Priority attribute of
12895 a protected object.
12896 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
12897 validity checking of assignments to elementary record components.
12898 (Expand_N_Return_Statement): return Class Wide types on the secondary
12899 stack independantly of their controlled status since with HIE runtimes,
12900 class wide types are not potentially controlled anymore.
12901
12902 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
12903 node kind.
12904
12905 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
12906 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
12907 it expects a block, procedure, or task. The return statement will get
12908 turned into a block, and Expand_Cleanup_Actions will happen then.
12909
12910 2006-10-31 Robert Dewar <dewar@adacore.com>
12911 Ed Schonberg <schonberg@adacore.com>
12912 Bob Duff <duff@adacore.com>
12913 Gary Dismukes <dismukes@adacore.com>
12914
12915 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
12916 capability.
12917 (Expand_Inlined_Call): Tagged types are by-reference types, and
12918 therefore should be replaced by a renaming declaration in the expanded
12919 body, as is done for limited types.
12920 (Expand_Call): If this is a call to a function with dispatching access
12921 result, propagate tag from context.
12922 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
12923 CPP by default.
12924 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
12925 build-in-place when the right-hand side of an assignment is a
12926 build-in-place function call.
12927 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
12928 of the explicit dereference of the allocator to the result subtype of
12929 the build-in-place function. This is needed to satisfy type checking
12930 in cases where the caller's return object is created by an allocator for
12931 a class-wide access type and the type named in the allocator is a
12932 specific type.
12933 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
12934 conversion of the reference to the declared object to the result subtype
12935 of the build-in-place function. This is needed to satisfy type checking
12936 in cases where the declared object has a class-wide type. Also, in the
12937 class-wide case, change the type of the object entity to the specific
12938 result subtype of the function, to avoid passing a class-wide object
12939 without explicit initialization to the back end.
12940 (Register_Interface_DT_Entry): Moved outside the body of
12941 Freeze_Subprogram because this routine is now public; it is called from
12942 Check_Dispatching_Overriding to handle late overriding of abstract
12943 interface primitives.
12944 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
12945 adding an implicit access actual on a call to a build-in-place function.
12946 (Expand_Actuals): Test for an actual parameter that is a call to a
12947 build-in-place function and apply
12948 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
12949 (Is_Build_In_Place_Function): New function to determine whether an
12950 entity is a function whose calls should be handled as build-in-place.
12951 (Is_Build_In_Place_Function_Call): New function to determine whether an
12952 expression is a function call that should handled as build-in-place.
12953 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
12954 calls to build-in-place functions as the initialization of an allocator.
12955 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
12956 handling calls to build-in-place functions in contexts that do not
12957 involve init of a separate object (for example, actuals of subprogram
12958 calls).
12959 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
12960 handling calls to build-in-place functions as the initialization of an
12961 object declaration.
12962 (Detect_Infinite_Recursion): Add explicit parameter Process to
12963 instantiation of Traverse_Body to avoid unreferenced warning.
12964 (Check_Overriding_Inherited_Interfaces): Removed.
12965 (Register_Interface_DT_Entry): Code cleanup.
12966 (Register_Predefined_DT_Entry): Code cleanup.
12967 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
12968 inlined statements if within a transient scope.
12969 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
12970 formal parameters with occurrences of actuals in inlined body, establish
12971 visibility on the proper view of the actual's subtype for the body's
12972 context.
12973 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
12974 compatibility mode and we have an imported CPP subprogram because
12975 for now we assume that imported CPP primitives correspond with
12976 objects whose constructor is in the CPP side (and therefore we
12977 don't need to generate code to register them in the dispatch table).
12978 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
12979 aligned selected component.
12980 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
12981 the actual of an in-mode parameter is a type conversion.
12982 (Expand_Actuals): If the call does not come from source and the actual
12983 is potentially misaligned, let gigi handle it rather than rejecting the
12984 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
12985 Class Wide types as returning by reference independantly of their
12986 controlled status since with HIE runtimes class wide types are not
12987 potentially controlled anymore.
12988
12989 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12990
12991 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
12992 references that are private components of the protected object.
12993 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
12994 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
12995 instantiation to deal with warnings.
12996 (Initialize_Protection): If expression for priority is non-static, use
12997 System_Priority as its expected type, in case the expression has not
12998 been analyzed yet.
12999
13000 2006-10-31 Robert Dewar <dewar@adacore.com>
13001
13002 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
13003 initialization of Homonym_Len.
13004 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
13005 names from fully qualified name. Fixes problem of duplicate
13006 external names differing only in the presence of such a block name.
13007
13008 2006-10-31 Thomas Quinot <quinot@adacore.com>
13009 Pablo Oliveira <oliveira@adacore.com>
13010
13011 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
13012 subprogram Ids, even if they are not yet assigned.
13013 (Build_Subprogram_Id): It is now this function that will take care of
13014 calling Assign_Subprogram_Ids if necessary.
13015 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
13016 should be done only once they are assigned.
13017 (Build_From_Any_Function, case of tagged types): Add missing call to
13018 Allocate_Buffer.
13019 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
13020 type for an RACW type.
13021 (Add_RACW_Features): When processing an RACW declaration for which the
13022 designated type is already frozen, enforce E.2.2(14) rules immediately.
13023 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
13024 special reordering of controlling formals.
13025
13026 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
13027 associated stub type for an RACW type.
13028
13029 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13030
13031 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
13032 fixed-point operations in an integer context, i.e. as operands of a
13033 conversion to an integer type, indicate that result must be rounded.
13034
13035 2006-10-31 Robert Dewar <dewar@adacore.com>
13036
13037 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
13038 cases, pass the encoding method, since it is now required by the run
13039 time.
13040
13041 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
13042 assumption that Str'First = 1.
13043 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
13044 it on to the Value_Wide_Wide_Character call.
13045 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
13046 properly handles a string of the form quote-encoded_wide_char-quote.
13047
13048 * s-wchcnv.adb: Minor reformatting
13049
13050 2006-10-31 Javier Miranda <miranda@adacore.com>
13051
13052 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
13053 run-time membership test to ensure that the constructed object
13054 implements the target abstract interface.
13055
13056 2006-10-31 Robert Dewar <dewar@adacore.com>
13057
13058 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
13059 Machine_Attribute pragma internally to implement the user pragma.
13060 Add processing for pragma Interface so that it is now completely
13061 equivalent to pragma Import.
13062
13063 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
13064 so that it can be applied to all entities, including record components
13065 and enumeration literals.
13066 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
13067 priority ranges are correct, verify compatibility against task
13068 dispatching and locking policies, and if everything is correct an entry
13069 is added to the table containing priority specific dispatching entries
13070 for this compilation unit.
13071 (Delay_Config_Pragma_Analyze): Delay processing
13072 Priority_Specific_Dispatching pragmas because when processing the
13073 pragma we need to access run-time data, such as the range of
13074 System.Any_Priority.
13075 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
13076 Allow pragma Unreferenced as a context item
13077 Add pragma Preelaborable_Initialization
13078 (Analyze_Pragma, case Interface): Interface is extended so that it is
13079 now syntactically and semantically equivalent to Import.
13080 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
13081 insertion characters.
13082 Add handling for Pragma_Wide_Character_Encoding
13083 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
13084 never supercedes a real restriction, and that a real restriction
13085 always supercedes a warning.
13086 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
13087 appropriate form.
13088
13089 2006-10-31 Bob Duff <duff@adacore.com>
13090 Ed Schonberg <schonberg@adacore.com>
13091 Robert Dewar <dewar@adacore.com>
13092
13093 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
13094 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
13095 Is_Inherently_Limited_Type, because return-by-reference has no meaning
13096 in Ada 2005.
13097 (Find_Node_To_Be_Wrapped): Use new method of determining the result
13098 type of the function containing a return statement, because the
13099 Return_Type field was removed. We now use the Return_Applies_To field.
13100
13101 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
13102 (Build_Task_Image_Decl): If procedure is not called from an
13103 initialization procedure, indicate that function that builds task name
13104 uses the sec. stack. Otherwise the enclosing initialization procedure
13105 will carry the indication.
13106 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
13107 N_Object_Declaration instead.
13108 (Kill_Dead_Code): New interface to implement -gnatwt warning for
13109 conditional dead code killed, and change implementation accordingly.
13110 (Insert_Actions): Add N_Return_Object_Declaration case.
13111 Correct comment to mention N_Extension_Aggregate node.
13112 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
13113 attempts to save information for global variables which cannot be
13114 safely tracked.
13115 (Get_Current_Value_Condition): Handle conditions the other way round
13116 (constant on left). Also handle right operand of AND and AND THEN
13117 (Set_Current_Value_Condition): Corresponding changes
13118 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
13119 (Get_Current_Value_Condition): Handle simple boolean operands
13120 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
13121 (Get_Current_Value_Condition): If the variable reference is within an
13122 if-statement, does not appear in the list of then_statments, and does
13123 not come from source, treat it as being at unknown location.
13124 (Get_Current_Value_Condition): Enhance to allow while statements to be
13125 processed as well as if statements.
13126 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
13127 come from source.
13128 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
13129 of loop. This is safe now that we fixed Kill_Current_Values.
13130 (OK_To_Do_Constant_Replacement): Check whether current scope is
13131 Standard, before examining outer scopes.
13132
13133 2006-10-31 Vincent Celier <celier@adacore.com>
13134
13135 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
13136 When True, apply VMS treatment to children of packages A, G, I and S.
13137 For F320-016
13138
13139 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
13140
13141 2006-10-31 Robert Dewar <dewar@adacore.com>
13142 Ed Schonberg <schonberg@adacore.com>
13143
13144 * freeze.adb: Add handling of Last_Assignment field
13145 (Warn_Overlay): Supply missing continuation marks in error msgs
13146 (Freeze_Entity): Add check for Preelaborable_Initialization
13147
13148 * g-comlin.adb: Add Warnings (Off) to prevent new warning
13149
13150 * g-expect.adb: Add Warnings (Off) to prevent new warning
13151
13152 * lib-xref.adb: Add handling of Last_Assignment field
13153 (Generate_Reference): Centralize handling of pragma Obsolescent here
13154 (Generate_Reference): Accept an implicit reference generated for a
13155 default in an instance.
13156 (Generate_Reference): Accept a reference for a node that is not in the
13157 main unit, if it is the generic body corresponding to an subprogram
13158 instantiation.
13159
13160 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
13161
13162 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
13163 -gnatwq/Q.
13164 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
13165 exception handler.
13166 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
13167 use clauses, to avoid messages on packages used to qualify, and also
13168 to avoid messages from obsolescent units.
13169 (Warn_On_Useless_Assignments): Don't generate messages for imported
13170 and exported variables.
13171 (Warn_On_Useless_Assignments): New procedure
13172 (Output_Obsolescent_Entity_Warnings): New procedure
13173 (Check_Code_Statement): New procedure
13174
13175 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
13176 Change name Is_Ada_2005 to Is_Ada_2005_Only
13177 (Last_Assignment): New field for useless assignment warning
13178
13179 2006-10-31 Olivier Hainque <hainque@adacore.com>
13180
13181 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
13182 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
13183
13184 2006-10-31 Bob Duff <duff@adacore.com>
13185 Robert Dewar <dewar@adacore.com>
13186 Ed Schonberg <schonberg@adacore.com>
13187
13188 * g-awk.adb (Default_Session, Current_Session): Compile this file in
13189 Ada 95 mode, because it violates the new rules for AI-318.
13190
13191 * g-awk.ads: Use overloaded subprograms in every case where we used to
13192 have a default of Current_Session. This makes the code closer to be
13193 correct for both Ada 95 and 2005.
13194
13195 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
13196 code, relying on the fact that the compiler generates a warning
13197 instead of an error in -gnatg mode.
13198
13199 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
13200 E_Return_Statement entity kind.
13201 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
13202
13203 * par.adb (P_Interface_Type_Definition): Addition of one formal to
13204 report an error if the reserved word abstract has been previously found.
13205 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
13206
13207 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
13208 parenthesized range attribute usage
13209 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
13210
13211 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
13212 in the syntax for extended_return_statement. This is not in the latest
13213 RM, but the ARG is expected to issue an AI allowing this.
13214 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
13215 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
13216 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
13217 P_Return_Statement): Parse the new syntax for extended_return_statement.
13218
13219 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
13220 Output_End_Missing): Add error-recovery code for the new
13221 extended_return_statement syntax; that is, the new E_Return entry on
13222 the scope stack.
13223
13224 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
13225 limited to nonlimited, because otherwise we violate the new Ada 2005
13226 rules about returning limited types in function Create_AST_Handler in
13227 s-asthan.adb.
13228
13229 * sem.adb (Analyze): Add cases for new node kinds
13230 N_Extended_Return_Statement and N_Return_Object_Declaration.
13231
13232 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
13233 type is in the same category as type of context before applying check,
13234 to prevent anomalies in instantiations.
13235 (Resolve_Aggregate): Remove test for limited components in aggregates.
13236 It's unnecessary in Ada 95, because if it has limited components, then
13237 it must be limited. It's wrong in Ada 2005, because limited aggregates
13238 are now allowed.
13239 (Resolve_Record_Aggregate): Move check for limited types later, because
13240 OK_For_Limited_Init requires its argument to have been resolved.
13241 (Get_Value): When copying the component default expression for a
13242 defaulted association in an aggregate, use the sloc of the aggregate
13243 and not that of the original expression, to prevent spurious
13244 elaboration errors, when the expression includes function calls.
13245 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
13246 were missing. We also didn't handle qualified expressions. Now also
13247 allow function calls. Use new common routine OK_For_Limited_Init.
13248 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
13249 with space can upper case letter).
13250
13251 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
13252 Has_Static_Discriminants flag
13253 (Record_Type_Declaration): Diagnose an attempt to declare an interface
13254 type with discriminants.
13255 (Process_Range_Expr_In_Decl): Do validity checks on range
13256 (Build_Discriminant_Constraints): Use updated form of
13257 Denotes_Discriminant.
13258 (Process_Subtype): If the subtype is a private subtype whose full view
13259 is a concurrent subtype, introduce an itype reference to prevent scope
13260 anomalies in gigi.
13261 (Build_Derived_Record_Type, Collect_Interface_Primitives,
13262 Record_Type_Declaration): The functionality of the subprograms
13263 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
13264 is now performed by a single routine.
13265 (Build_Derived_Record_Type): If the type definition includes an explicit
13266 indication of limitedness, then the type must be marked as limited here
13267 to ensure that any access discriminants will not be treated as having
13268 a local anonymous access type.
13269 (Check_Abstract_Overriding): Issue a detailed error message when an
13270 abstract subprogram was not overridden due to incorrect mode of its
13271 first parameter.
13272 (Analyze_Private_Extension_Declaration): Add support for the analysis of
13273 synchronized private extension declarations. Verify that the ancestor is
13274 a limited or synchronized interface or in the generic case, the ancestor
13275 is a tagged limited type or synchronized interface and all progenitors
13276 are either limited or synchronized interfaces.
13277 Derived_Type_Declaration): Check for presence of private extension when
13278 dealing with synchronized formal derived types.
13279 Process_Full_View): Enchance the check done on the usage of "limited" by
13280 testing whether the private view is synchronized.
13281 Verify that a synchronized private view is completed by a protected or
13282 task type.
13283 (OK_For_Limited_Init_In_05): New function.
13284 (Analyze_Object_Declaration): Move check for limited types later,
13285 because OK_For_Limited_Init requires its argument to have been resolved.
13286 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13287 in order to alleviate the upward compatibility introduced by AI-318.
13288 (Constrain_Corresponding_Record): If the constraint is for a component
13289 subtype, mark the itype as frozen, to avoid out-of-scope references to
13290 discriminants in the back-end.
13291 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
13292 this subprogram against wrong sources.
13293 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
13294 discriminant of limited type completed with a protected type, when the
13295 discriminant is used to constrain a private component of the type, and
13296 expansion is disabled.
13297 (Find_Type_Of_Object): Do not treat a return subtype that is an
13298 anonymous subtype as a local_anonymous_type, because its accessibility
13299 level is the return type of the enclosing function.
13300 (Check_Initialization): In -gnatg mode, turn the error "cannot
13301 initialize entities of limited type" into a warning.
13302 (OK_For_Limited_Init): Return true for generated nodes, since it
13303 sometimes violates the legality rules.
13304 (Make_Incomplete_Declaration): If the type for which an incomplete
13305 declaration is created happens to be the currently visible entity,
13306 preserve the homonym chain when removing it from visibility.
13307 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
13308 inherited subprograms.
13309 (Access_Definition): If this is an access to function that is the return
13310 type of an access_to_function definition, context is a type declaration
13311 and the scope of the anonymous type is the current one.
13312 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
13313 incomplete subtype to the set of private dependents of the original
13314 incomplete type.
13315 (Constrain_Discriminated_Type): Emit an error message whenever an
13316 incomplete subtype is being constrained.
13317 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
13318 corresponding subtype of the full view of the original incomplete type.
13319 (Check_Incomplete): Properly detect invalid usage of incomplete types
13320 and subtypes.
13321
13322 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13323
13324 * g-catiio.ads, g-catiio.adb (Value): New function.
13325 Given an input String, try and parse a valid Time value.
13326
13327 2006-10-31 Vincent Celier <celier@adacore.com>
13328
13329 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
13330 Integer_Address arithmetic, as in Set_Valid.
13331
13332 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13333 Robert Dewar <dewar@adacore.com>
13334
13335 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
13336 handling executable extension manually and duplicating code.
13337
13338 * make.adb: Implement new -S switch
13339 (Gnatmake): Use new function Osint.Executable_Name instead
13340 of handling executable extension manually.
13341
13342 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
13343 is specified, the executable name ends with this suffix.
13344 Take advantage of Osint.Executable_Name instead of duplicating code.
13345
13346 * switch-m.adb: Recognize new gnatmake -S switch
13347
13348 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
13349 variable.
13350 (Get_Target_Parameters): Set Executable_Extension_On_Target if
13351 available.
13352
13353 * makeusg.adb: Add line for gnatmake -S switch
13354
13355 2006-10-31 Vincent Celier <celier@adacore.com>
13356
13357 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
13358 call it with -static-libgcc, as there are some platforms, such as
13359 Darwin, where one of these two switches is compulsory to link.
13360
13361 2006-10-31 Vincent Celier <celier@adacore.com>
13362
13363 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
13364 instead of ADA_PROJECT_PATH, for the project path.
13365 (Gnatls): When displaying the project path directories, use host dir
13366 specs.
13367
13368 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
13369 names in the project path, as absolute paths may correspond to
13370 multi-valued VMS logical names.
13371
13372 2006-10-31 Vincent Celier <celier@adacore.com>
13373
13374 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
13375 absolute path name.
13376 (Locate_Regular_File): Ditto
13377 (Change_Dir): Remove, no longer used
13378 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
13379 on Windows. Get it calling Get_Current_Dir.
13380 (OpenVMS): Remove imported boolean, no longer needed.
13381 (Normalize_Pathname)[VMS]: Do not resolve directory names.
13382 (Pid_To_Integer): New function to convert a Process_Id to Integer
13383
13384 2006-10-31 Thomas Quinot <quinot@adacore.com>
13385
13386 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
13387 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
13388 to No_Socket.
13389 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
13390 W_Sig_Socket.
13391
13392 2006-10-31 Robert Dewar <dewar@adacore.com>
13393
13394 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
13395 initial letter o as a zero.
13396
13397 2006-10-31 Robert Dewar <dewar@adacore.com>
13398
13399 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
13400
13401 2006-10-31 Robert Dewar <dewar@adacore.com>
13402
13403 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
13404 variant records
13405 (Layout_Variant_Record): Retrieve the discriminants from the entity
13406 rather than from the type definition, because in the case of a full
13407 type for a private type we need to take the discriminants from the
13408 partial view.
13409 (Layout_Component_List): When applying the Max operator to variants with
13410 a nonstatic size, check whether either operand is static and scale that
13411 operand from bits to storage units before applying Max.
13412 (Layout_Type): In VMS, if a C-convention access type has no explicit
13413 size clause (and does not inherit one in the case of a derived type),
13414 then the size is reset to 32 from 64.
13415
13416 2006-10-31 Vincent Celier <celier@adacore.com>
13417
13418 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
13419 its file has already been loaded, according to the unit being loaded,
13420 not to the current value of Multiple_Unit_Index.
13421
13422 2006-10-31 Thomas Quinot <quinot@adacore.com>
13423 Eric Botcazou <ebotcazou@adacore.com>
13424 Arnaud Charlet <charlet@adacore.com>
13425
13426 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
13427 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
13428 possible.
13429 (a-except.o): Pass it to the compiler.
13430 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
13431 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
13432 a-calend-mingw.adb version.
13433
13434 * Makefile.rtl: Added s-dsaser.
13435 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
13436 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
13437 Ada.Dispatching.Round_Robin.
13438 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
13439
13440 * Make-lang.in: Remove all references to gt-ada-decl.h.
13441 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
13442 sources.
13443 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
13444 Update dependencies.
13445
13446 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
13447
13448 2006-10-31 Vincent Celier <celier@adacore.com>
13449
13450 * mlib-utl.adb (Initialized): Remove, no longer used
13451 (Initialize): Remove, no longer used
13452 (Ar): If Ar_Exec is null, get the location of the archive builder and,
13453 if there is one, the archive indexer. Fail if the archive builder cannot
13454 be found.
13455 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
13456 be found.
13457
13458 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13459
13460 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
13461 Process_Body_Clauses): If the context of a body includes a use clause
13462 for P.Q then a with_clause for P in the same body is not redundant,
13463 even if the spec also has a with_clause on P.
13464 Add missing continuation mark to error msg
13465 (Build_Limited_Views): A limited view of a type is tagged if its
13466 declaration includes a record extension.
13467 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
13468 node, even if the subunit has errors. This avoids malfunction by
13469 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
13470 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
13471 generation of obsolescent messages for with statements (cannot do
13472 this too early, or we cannot implement avoiding the messages in the
13473 case of obsolescent units withing obsolescent units).
13474 (Install_Siblings): If the with_clause is on a remote descendant of
13475 an ancestor of the current compilation unit, find whether there is
13476 a sibling child unit that is immediately visible.
13477 (Remove_Private_With_Clauses): New procedure, invoked after completing
13478 the analysis of the private part of a nested package, to remove from
13479 visibility the private with_clauses of the enclosing package
13480 declaration.
13481 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
13482 now centralized in Generate_Reference.
13483 (Install_Limited_Context_Clauses): Remove superfluous error
13484 message associated with unlimited view visible through use
13485 and renamings. In addition, at the point in which the error
13486 is reported, we add the backslash to the text of the error
13487 to ensure that it is reported as a single error message.
13488 Use new // insertion for some continuation messages
13489 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
13490 to create implicit with_clause for parent unit mentioned in original
13491 limited_with_clause.
13492 (Install_Limited_With_Unit): Set entity of parent identifiers if the
13493 unit is a child unit. For ASIS queries.
13494 (Analyze_Subunit): If the subunit appears within a child unit, make all
13495 ancestor child units directly visible again.
13496
13497 2006-10-31 Robert Dewar <dewar@adacore.com>
13498
13499 * par-ch10.adb (P_Context_Clause): Minor error message fix
13500
13501 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13502 Javier Miranda <miranda@adacore.com>
13503
13504 * par-ch12.adb: Grammar update and cleanup.
13505 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
13506 support for synchronized derived type definitions.
13507 Add the new actual Abstract_Present to every call to
13508 P_Interface_Type_Definition.
13509 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
13510 a formal object declaration with an access definition or a subtype mark
13511 with a null exclusion.
13512 (P_Generic_Association): Handle association with box, and others_choice
13513 with box, to support Ada 2005 partially parametrized formal packages.
13514
13515 2006-10-31 Robert Dewar <dewar@adacore.com>
13516 Javier Miranda <miranda@adacore.com>
13517
13518 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
13519 (P_Type_Declaration): Remove barrier against the reserved word "limited"
13520 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
13521 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
13522 private extensions.
13523 (P_Type_Declaration): Add the new actual Abstract_Present to every call
13524 to P_Interface_Type_Definition.
13525 (P_Interface_Type_Definition): Addition of one formal to report an error
13526 if the reserved word abstract has been previously found.
13527 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
13528 object renaming declaration with an access definition or subtype mark
13529 with a possible null exclusion.
13530
13531 * par-ch9.adb: Minor error msg fix
13532
13533 * par-load.adb: Add missing continuation mark to error msg
13534
13535 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
13536
13537 2006-10-31 Vincent Celier <celier@adacore.com>
13538
13539 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
13540 unknown attribute in unknown package or in package that does not need
13541 to be checked.
13542 (Parse_Package_Declaration): Do not issue warning for unknown package in
13543 quiet output.
13544
13545 2006-10-31 Vincent Celier <celier@adacore.com>
13546
13547 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
13548 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
13549 Packages_To_Check.
13550
13551 2006-10-31 Vincent Celier <celier@adacore.com>
13552
13553 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
13554 on VMS, change "__" to '.' before checking the name.
13555 (Record_Ada_Source): Always add the source file name in the list of
13556 of sources, even if it is not the first time, as it is for another
13557 source index.
13558 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
13559 dot, instead of replacing only the first '_'.
13560
13561 * prj-part.adb (Parse): Convert project file path to canonical form
13562
13563 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
13564 extended, the project id of the project extending it is recorded in its
13565 data, even when it has already been processed as an imported project.
13566
13567 2006-10-31 Robert Dewar <dewar@adacore.com>
13568
13569 * repinfo.adb (List_Entities): Don't list entities from renaming
13570 declarations.
13571
13572 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13573 Robert Dewar <dewar@adacore.com>
13574
13575 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
13576 only a restriction warning is active for the given restriction. This is
13577 desirable because we do not want to modify code in the case where only
13578 a warning is set.
13579 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
13580 causes overriding of real restrictions.
13581 Take advantage of new No_Restrictions constant.
13582
13583 * raise.h: (__gnat_set_globals): Change profile.
13584
13585 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13586
13587 * rtsfind.adb: Remove s-polint from comment as it exists no more.
13588
13589 * rtsfind.ads:
13590 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
13591 Move all the entities in obsolete package System.PolyORB_Interface to
13592 System.Partition_Interface.
13593 (RE_Storage_Size): New function in System.Tasking.
13594 (RE_Get_Ceiling): New entity.
13595 (RE_Set_Ceiling): New entity.
13596 (RO_PE_Get_Ceiling): New entity.
13597 (RO_RE_Set_Ceiling): New entity.
13598 (Inherit_CPP_DT): New entity
13599
13600 2006-10-31 Robert Dewar <dewar@adacore.com>
13601
13602 * scng.adb (Scan, case of numeric literal): Better msg for identifier
13603 starting with a digit.
13604
13605 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13606 Thomas Quinot <quinot@adacore.com>
13607 Javier Miranda <miranda@adacore.com>
13608 Gary Dismukes <dismukes@adacore.com>
13609
13610 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
13611 properly an attempt to apply Unchecked_Access to a protected operation.
13612 (OK_Self_Reference): New subprogram to check the legality of an access
13613 attribute whose prefix is the type of an enclosing aggregate.
13614 Generalizes previous mechanism to handle attribute references nested
13615 arbitrarily deep within the aggregate.
13616 (Analyze_Access_Attribute): An access attribute whose prefix is a type
13617 can appear in an aggregate if this is a default-initialized aggregate
13618 for a self-referential type.
13619 (Resolve_Attribute, case Access): Ditto.
13620 Add support for new implementation defined attribute Stub_Type.
13621 (Eval_Attribute, case Attribute_Stub_Type): New case.
13622 (Analyze_Attribute, case Attribute_Stub_Type): New case.
13623 (Stream_Attribute_Available): Implement using new subprogram from
13624 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
13625 Has_Specified_Stream_Attribute flag.
13626 Disallow Storage_Size and Storage_Pool for access to subprogram
13627 (Resolve_Attribute, case 'Access et al): Take into account anonymous
13628 access types of return subtypes in extended return statements. Remove
13629 accessibility checks on anonymous access types when Unchecked_Access is
13630 used.
13631 (Analyze_Attribute): Add support for the use of 'Class to convert
13632 a class-wide interface to a tagged type.
13633 Add support for the attribute Priority.
13634 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
13635 whether the designated type is discriminated with a constrained partial
13636 view and require static matching in that case.
13637 Add local variable Des_Btyp. The Designated_Type
13638 of an access to incomplete subtype is either its non-limited view if
13639 coming from a limited with or its etype if regular incomplete subtype.
13640
13641 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
13642 Fix predicate to identify and allow cases of (expander-generated)
13643 references to tag of designated object of a RACW.
13644 (Validate_Static_Object_Name): In Ada 2005, a formal object is
13645 non-static, and therefore cannot appear as a primary in a preelaborable
13646 package.
13647 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
13648 Has_Read_Write_Attributes.
13649 (Has_Read_Write_Attributes): Reimplement in termes of
13650 Has_Stream_Attribute_Definition.
13651 (Missing_Read_Write_Attributes): When checking component types in a
13652 record, unconditionally call Missing_Read_Write_Attributes recursively
13653 (remove guard checking for Is_Record_Type / Is_Access_Type).
13654
13655 2006-10-31 Robert Dewar <dewar@adacore.com>
13656
13657 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
13658 useless assignments here and conditionalize it on absence of exception
13659 handlers.
13660 (Analyze_Exception_Handlers): Small code reorganization of error
13661 detection code, for new handling of formal packages.
13662
13663 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13664 Hristian Kirtchev <kirtchev@adacore.com>
13665
13666 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
13667 that has been constant-folded, preserve information of original tree,
13668 for ASIS uses.
13669 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
13670 generated private extension declaration if the formal derived type is
13671 synchronized. Carry synchronized present over to the generated private
13672 extension.
13673 (Validate_Derived_Type_Instance): Ensure that the actual of a
13674 synchronized formal derived type is a synchronized tagged type.
13675 (Instantiate_Formal_Package): When creating the instantiation used to
13676 validate the actual package of a formal declared without a box, check
13677 whether the formal itself depends on a prior actual.
13678 (Instantiate_Formal_Subprogram): Create new entities for the defining
13679 identifiers of the formals in the renaming declaration, for ASIS use.
13680 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
13681 a renaming declaration or a subtype declaration for an actual in an
13682 instance, capture location information of declaration in generic, for
13683 ASIS use.
13684 (Instantiate_Formal_Package): Add comments on needed additional tests.
13685 AI-317 (partial parametrization) is fully implemented.
13686 (Validate_Private_Type_Instance): Add check for actual which
13687 must have preelaborable initialization
13688 Use new // insertion for some continuation messages
13689 (Analyze_Formal_Object_Declaration): Change usage of Expression to
13690 Default_Expression. Add type retrieval when the declaration has an
13691 access definition. Update premature usage of incomplete type check.
13692 (Check_Access_Definition): New subsidiary routine. Check whether the
13693 current compilation version is Ada 05 and the supplied node has an
13694 access definition.
13695 (Instantiate object): Alphabetize local variables. Handle the creation
13696 of new renaming declarations with respect to the kind of definition
13697 used - either an access definition or a subtype mark. Guard against
13698 unnecessary error message in the context of anonymous access types after
13699 they have been resolved. Add check for required null exclusion in a
13700 formal object declaration.
13701 (Switch_View): A private subtype of a non-private type needs to be
13702 switched (the base type can have been switched without its private
13703 dependents because of the last branch of Check_Private_View.
13704 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
13705 value from BT.
13706 (Instantiate_Type): Emit an error message whenever a class-wide type of
13707 a tagged incomplete type is used as a generic actual.
13708 (Find_Actual_Type): Extend routine to handle a component type in a child
13709 unit that is imported from a formal package in a parent.
13710 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
13711 agree on constrainedness, rather than checking against ultimate ancestor
13712 (Instantiate_Subprogram_Body): Create a cross-reference link to the
13713 generic body, for navigation purposes.
13714
13715 2006-10-31 Robert Dewar <dewar@adacore.com>
13716 Thomas Quinot <quinot@adacore.com>
13717
13718 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
13719 type.
13720 (New_Stream_Subprogram): When processing an attribute definition clause
13721 for a stream-oriented subprogram, record an entity node occurring at
13722 the point of clause to use for checking the visibility of the clause,
13723 as defined by 8.3(23) as amended by AI-195.
13724 (New_Stream_Subprogram): New procedure, factoring behaviour from both
13725 New_Stream_Function and New_Stream_Procedure.
13726 (New_Stream_Function, New_Stream_Procedure): Removed.
13727 (Analyze_Attribute_Definition_Clause, case Address): Check new
13728 Alignment_Check check
13729
13730 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13731 Javier Miranda <miranda@adacore.com>
13732 Robert Dewar <dewar@adacore.com>
13733
13734 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
13735 generate the same errors compiling under -gnatc.
13736 (Try_Object_Operation): If no candidate interpretation succeeds, but
13737 there is at least one primitive operation with the right name, report
13738 error in call rather than on a malformed selected component.
13739 (Analyze_Selected_Component): If the prefix is an incomplete type from
13740 a limited view, and the full view is available, use the full view to
13741 determine whether this is a prefixed call to a primitive operation.
13742 (Operator_Check): Verify that a candidate interpretation is a binary
13743 operation before checking the type of its second formal.
13744 (Analyze_Call): Add additional warnings for function call contexts not
13745 yet supported.
13746 (Analyze_Allocator): Move the check for "initialization not allowed for
13747 limited types" after analyzing the expression. This is necessary,
13748 because OK_For_Limited_Init looks at the structure of the expression.
13749 Before analysis, we don't necessarily know what sort of expression it
13750 is. For example, we don't know whether F(X) is a function call or an
13751 indexed component; the former is legal in Ada 2005; the latter is not.
13752 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
13753 were missing. We also didn't handle qualified expressions. Now also
13754 allow function calls. Use new common routine OK_For_Limited_Init.
13755 (Analyze_Type_Conversion): Do not perform some legality checks in an
13756 instance, because the error message will be redundant or spurious.
13757 (Analyze_Overloaded_Selected_Component): Do not do style check when
13758 setting an entity, since we do not know it is the right entity yet.
13759 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
13760 (Analyze_Overloaded_Selected_Component): Same change
13761 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
13762 since regular incomplete subtypes are transformed into corresponding
13763 subtypes of their full views.
13764 (Complete_Object_Operation): Treat name of transformed subprogram call
13765 as coming from source, for browsing purposes.
13766 (Try_Primitive_Operation): If formal is an access parameter, compare
13767 with base type of object to determine whether it is a primitive
13768 operation.
13769 (Operator_Check): If no interpretation of the operator matches, check
13770 whether a use clause on any candidate might make the operation legal.
13771 (Try_Class_Wide_Operation): Check whether the first parameter is an
13772 access type whose designated type is class-wide.
13773
13774 2006-10-31 Robert Dewar <dewar@adacore.com>
13775 Ed Schonberg <schonberg@adacore.com>
13776 Gary Dismukes <dismukes@adacore.com>
13777
13778 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
13779 warn on infinite loops.
13780 Add \\ to some continuation messages
13781 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
13782 (Process_Bounds): If the bounds are integer literals that result from
13783 constant-folding, and they carry a user-defined type, preserve that type
13784 rather than treating this as an integer range.
13785 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
13786 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
13787 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
13788 left hand side of assignment.
13789 (Analyze_Assignment): Add suport to manage assigments to the attribute
13790 priority of a protected object.
13791 (Check_Possible_Current_Value_Condition): Allow fully qualified names
13792 not just identifiers.
13793 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
13794 or AND THEN for possible tracking.
13795 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
13796 case of while loops so we can track values in the loop body.
13797
13798 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13799 Hristian Kirtchev <kirtchev@adacore.com>
13800 Bob Duff <duff@adacore.com>
13801
13802 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
13803 procedure cannot be a protected operation (it is a basic_declaration,
13804 not a subprogram_declaration).
13805 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
13806 Subp. Add logic for entry processing.
13807 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
13808 Determine whether an entry or subprogram of a protected or task type
13809 override an inherited primitive of an implemented interface.
13810 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
13811 Update the actual used in calls to Check_Overriding_Indicator.
13812 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
13813 generate the proper reference to the parent unit, for cross-reference.
13814 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
13815 Is_Formal.
13816 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13817 (Add_Extra_Formal): Revise procedure to allow passing in associated
13818 entity, scope, and name suffix, and handle setting of the new
13819 Extra_Formals field.
13820 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
13821 pass new parameters. Add support for adding the new extra access formal
13822 for functions whose calls are treated as build-in-place.
13823 (Analyze_A_Return_Statement): Correct casing in error message.
13824 Move Pop_Scope to after Analyze_Function_Return, because an extended
13825 return statement really is a full-fledged scope. Otherwise, visibility
13826 doesn't work right. Correct use of "\" for continuation messages.
13827 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
13828 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
13829 the node doesn't get properly marked as analyzed.
13830 (Analyze_Subprogram_Body): If subprogram is a function that returns
13831 an anonymous access type that denotes a task, build a Master Entity
13832 for it.
13833 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
13834 proper usage of null exclusion in a result definition.
13835 (Process_Formals): Code cleanup and new error message.
13836 (Process_Formals): Detect incorrect application of null exclusion to
13837 non-access types.
13838 (Conforming_Types): Handle conformance between [sub]types and itypes
13839 generated for entities that have null exclusions applied to them.
13840 (Maybe_Primitive_Operation): Add an additional type retrieval when the
13841 base type is an access subtype. This case arrises with null exclusions.
13842 (New_Overloaded_Entity): Do not remove the overriden entity from the
13843 homonym chain if it corresponds with an abstract interface primitive.
13844 (Process_Formals): Replace membership test agains Incomplete_Kind with a
13845 call to the synthesized predicate Is_Incomplete_Type.
13846 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
13847 primitives.
13848 (Analyze_Subprogram_Declaration): Check that abstract interface
13849 primitives are abstract or null.
13850 (Analyze_Subprogram_Specification): Remove previous check for abstract
13851 interfaces because it was not complete.
13852 (Has_Interface_Formals): Removed.
13853
13854 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13855 Javier Miranda <miranda@adacore.com>
13856
13857 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
13858 of Analyze_Package_Body, to create Itype references for anonymous
13859 access types created in the package declaration, whose designated types
13860 may have only a limited view.
13861 (Analyze_Package_Specification): For the private part of a nested
13862 package, install private_with_clauses of enclosing compilation unit if
13863 we are in its visible part.
13864 (Declare_Inherited_Private_Subprograms): Complete barrier
13865 to ensure that the primitive operation has an alias to some parent
13866 primitive. This is now required because, after the changes done for the
13867 implementation of abstract interfaces, the contents of the list of
13868 primitives has entities whose alias attribute references entities of
13869 such list of primitives.
13870 (Analyze_Package_Specification): Simplify code that handles parent units
13871 of instances and formal packages.
13872 (Uninstall_Declarations): Check the convention consistency among
13873 primitive overriding operations of a tagged record type.
13874
13875 2006-10-31 Robert Dewar <dewar@adacore.com>
13876 Hristian Kirtchev <kirtchev@adacore.com>
13877 Javier Miranda <miranda@adacore.com>
13878 Ed Schonberg <schonberg@adacore.com>
13879
13880 * sem_ch8.adb: Minor error msg rewording
13881 (Undefined): When checking for misspellings, invert arguments (to get
13882 expected and found set right)
13883 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
13884 (Analyze_Generic_Renaming): Same fix
13885 (Use_One_Package): Do not take into account the internal entities of
13886 abstract interfaces during the analysis of entities that are marked
13887 as potentially use-visible.
13888 (Find_Type): Handle the case of an attribute reference for
13889 implementation defined attribute Stub_Type (simply let the analysis of
13890 the attribute reference rewrite it).
13891 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
13892 type that appears in a Use_Type clause.
13893 (Analyze_Object_Renaming): Add support for renaming of the Priority
13894 attribute.
13895 (Find_Type): In Ada 2005, a task type can be used within its own body,
13896 when it appears in an access definition.
13897 (Analyze_Object_Renaming): Remove warning on null_exclusion.
13898 (Analyze_Object_Renaming): Introduce checks for required null exclusion
13899 in a formal object declaration or in a subtype declaration.
13900 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
13901 (Check_Null_Exclusion): New local routine to
13902 Analyze_Subprogram_Renaming. Check whether the formals and return
13903 profile of a renamed subprogram have required null exclusions when
13904 their counterparts of the renaming already impose them.
13905 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
13906 Determine whether an entity is inside a generic scope.
13907 (In_Open_Scope): First pass of documentation update.
13908 (Find_Expanded_Name): Add support for shadow entities associated with
13909 limited withed packages. This is required to handle nested packages.
13910 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
13911 that makes a renaming of a limited withed package illegal.
13912
13913 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13914 Ed Schonberg <schonberg@adacore.com>
13915
13916 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
13917 Check_Overriding_Indicator.
13918 (Analyze_Task_Definition): Ditto.
13919 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
13920 (Check_Overriding_Indicator): To find overridden interface operation,
13921 examine only homonyms that have an explicit subprogram declaration, not
13922 inherited operations created by an unrelated type derivation.
13923 (Check_Overriding_Indicator): When checking for the presence of "null"
13924 in a procedure, ensure that the queried node is a procedure
13925 specification.
13926 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
13927 type when the formal is an access to variable.
13928 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
13929 (Analyze_Task_Type): Same addition
13930 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
13931 provide navigation capabilities for entries.
13932
13933 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13934 Ed Schonberg <schonberg@adacore.com>
13935 Javier Miranda <miranda@adacore.com>
13936 Gary Dismukes <dismukes@adacore.com>
13937
13938 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
13939 inherited from an interface ancestor by another interface in the
13940 context of an instance as 'late'.
13941 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
13942 of a call to a function that dispatches on access result.
13943 (Check_Dispatching_Operation): In case of late overriding of a primitive
13944 that covers abstract interface subprograms we register it in all the
13945 secondary dispatch tables associated with abstract interfaces.
13946 (Check_Dispatching_Call): Add check that a dispatching call is not made
13947 to a function with a controlling result of a limited type. This is a
13948 current implementation restriction.
13949 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
13950 (Check_Dispatching_Operation): Do no emit a warning if the controlling
13951 argument is an interface type that is a generic formal.
13952 (Is_Interface_Subprogram): Removed.
13953 (Check_Dispatching_Operation): If the subprogram is not a dispatching
13954 operation, check the formals to handle the case in which it is
13955 associated with an abstract interface type.
13956
13957 2006-10-31 Robert Dewar <dewar@adacore.com>
13958 Ed Schonberg <schonberg@adacore.com>
13959
13960 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
13961 Add new calls to this procedure during traversal
13962 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
13963 another unit if expansion is disabled.
13964
13965 2006-10-31 Robert Dewar <dewar@adacore.com>
13966
13967 * sem_eval.adb (Compile_Time_Compare): Make use of information from
13968 Current_Value in the conditional case, to evaluate additional
13969 comparisons at compile time.
13970
13971 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13972 Hristian Kirtchev <kirtchev@adacore.com>
13973 Javier Miranda <miranda@adacore.com>
13974
13975 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
13976 subprogram type to provide better diagnostics in case of ambiguity.
13977 (Covers): Handle coverage of formal and actual anonymous access types in
13978 the context of generic instantiation.
13979 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
13980 abstract interface types; this is required to handle concurrent types
13981 with discriminants and abstract interface types.
13982 (Covers): Include type coverage of both regular incomplete subtypes and
13983 incomplete subtypes of incomplete type visibles through a limited with
13984 clause.
13985
13986 2006-10-31 Robert Dewar <dewar@adacore.com>
13987 Hristian Kirtchev <kirtchev@adacore.com>
13988 Ed Schonberg <schonberg@adacore.com>
13989
13990 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
13991 messages for entities in packages which are not used.
13992 (Collect_Synchronized_Interfaces): New procedure.
13993 (Overrides_Synchronized_Primitive): New function.
13994 (Denotes_Discriminant): Extend predicate to apply to task types.
13995 Add missing continuation marks in error msgs
13996 (Unqualify): New function for removing zero or more levels of
13997 qualification from an expression. There are numerous places where this
13998 ought to be used, but we currently only deal properly with zero or one
13999 level.
14000 (In_Instance); The analysis of the actuals in the instantiation of a
14001 child unit is not within an instantiation, even though the parent
14002 instance is on the scope stack.
14003 (Safe_To_Capture_Value): Exclude the case of variables that are
14004 renamings.
14005 (Check_Obsolescent): Removed
14006 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
14007 is an aliased view, even when rewritten as a reference to the target
14008 object in an assignment.
14009 (Get_Subprogram_Entity): New function
14010 (Known_To_Be_Assigned): New function
14011 (Type_Access_Level): Compute properly the access level of a return
14012 subtype that is an anonymous access type.
14013 (Explain_Limited_Type): Correct use of "\" for continuation messages.
14014 (Is_Transfer): The new extended_return_statement causes a transfer of
14015 control.
14016 (Has_Preelaborable_Initialization): New function
14017 (Has_Null_Exclusion): New function. Given a node N, determine whether it
14018 has a null exclusion depending on its Nkind.
14019 Change Is_Lvalue to May_Be_Lvalue
14020 (May_Be_Lvalue): Extensive additional code to deal with subprogram
14021 arguments (IN parameters are not Lvalues, IN OUT parameters are).
14022 (Safe_To_Capture_Value): Extend functionality so it can be used for
14023 the current value condition case.
14024 (Has_Compatible_Alignment): New function
14025 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
14026 objects to handle the Ada 2005 case, where aliasedness no longer implies
14027 that the object is constrained. In particular, for dereferenced names,
14028 the designated object must be assumed to be unconstrained.
14029 (Kill_Current_Values): Properly deal with the case where we encounter
14030 a loop in the scope chain.
14031 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
14032 a value.
14033 (Compile_Time_Constraint_Error): Improve error message in error case
14034
14035 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
14036 associated with entities of abstract interface primitives.
14037 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
14038
14039 2006-10-31 Robert Dewar <dewar@adacore.com>
14040
14041 * s-osinte-tru64.adb:
14042 Mark Asm statements Volatile to prevent warnings (seems a
14043 reasonable change anyway)
14044 Fixes new warnings
14045
14046 * s-mastop-irix.adb: Add Volatile to Asm statements
14047 Suppresses warning, and seems appropriate in any case
14048
14049 * s-osinte-vms.adb: Add Volatile to Asm statement
14050
14051 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
14052
14053 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
14054 returned.
14055 Add call to Check_Code_Statement
14056
14057 2006-10-31 Robert Dewar <dewar@adacore.com>
14058 Ed Schonberg <schonberg@adacore.com>
14059 Bob Duff <duff@adacore.com>
14060
14061 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
14062 Synchronized_Present): Add Formal_Derived_Type_Definition and
14063 Private_Extension_Declaration to the list of assertions.
14064 (Is_Entry_Barrier_Function): New flag
14065 (Has_Self_Reference): New flag on aggregates, to indicate that they
14066 contain a reference to the enclosing type, inserted through a default
14067 initialization.
14068 (Next_Rep_Item): Move from Node4 to Node5.
14069 (Entity): Add this field for N_Attribute_Definition_Clause.
14070 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
14071 (N_Return_Object_Declaration): Remove this node kind. We now use
14072 N_Object_Declaration instead.
14073 (Actual_Designated_Subtype): Move to a different place to make room in
14074 N_Extended_Return_Statement.
14075 (Procedure_To_Call): Move to a different place to make room in
14076 N_Extended_Return_Statement.
14077 (Return_Type): Removed this field to make room in return statements
14078 (both kinds).
14079 (Return_Statement_Entity): New field in return statements, in part to
14080 replace Return_Type, and in part to support the fact that return
14081 statements are now pushed on the scope stack during semantic analysis.
14082 (Return_Object_Declarations): New field to support extended return
14083 statements.
14084 (N_Extended_Return_Statement): New node for extended_return_statement
14085 nonterminal.
14086 (N_Return_Object_Declaration): New node for part of
14087 extended_return_statement nonterminal. Needed because all the necessary
14088 fields won't fit in N_Extended_Return_Statement.
14089 Generic_associations now carry the Box_Present flag, to indicate a
14090 default for an actual in a partially parametrized formal package.
14091
14092 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
14093 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
14094 and for the new predefined dispatching policies: EDF_Across_Priorities,
14095 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
14096 Introduce new name Stub_Type for implementation defined attribute.
14097 Add pragma Preelaborable_Initialization
14098 Add entry for Priority attribute.
14099 Add Pragma_Wide_Character_Encoding
14100 (Get_Convention_Name): Given a convention id, this function returns the
14101 corresponding name id from the names table.
14102
14103 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14104 Robert Dewar <dewar@adacore.com>
14105 Bob Duff <duff@adacore.com>
14106
14107 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
14108 print null exclusion twice in the case of an access definition,
14109 Implement new -gnatL switch
14110 Remove N_Return_Object_Declaration. We now use
14111 N_Object_Declaration instead. Implement the case for
14112 N_Extended_Return_Statement. Alphabetize the cases.
14113 Add cases for new nodes N_Extended_Return_Statement and
14114 N_Return_Object_Declaration. The code is not yet written.
14115 Update the output for N_Formal_Object_Declaration
14116 and N_Object_Renaming_Declaration.
14117 (Write_Itype): Account for the case of a modular integer subtype whose
14118 base type is private.
14119
14120 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14121
14122 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
14123 Remove elaboration code, now done in the binder.
14124
14125 * s-rident.ads: Make this unit Preelaborate.
14126 (No_Restrictions): New constant used to clean up code and follow
14127 preelaborate constraints.
14128
14129 * s-stalib.adb:
14130 Add System.Restrictions dependence, referenced directly from the
14131 binder generated file.
14132
14133 2006-10-31 Gary Dismukes <dismukes@adacore.com>
14134
14135 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
14136 True when AAMP extended floating-point is in use (48-bit). Change type
14137 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
14138 the two byte array types on AFloat. Change type of IV_Ilf overlay
14139 variable from Byte8 to ByteLF. Add appropriate initializations of
14140 floating-point overlays for AAMP cases.
14141
14142 2006-10-31 Javier Miranda <miranda@adacore.com>
14143
14144 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
14145 (Get_Ceiling): New subprogram that returns
14146 the ceiling priority of the protected object.
14147 (Set_Ceiling): New subprogram that sets the new ceiling priority of
14148 the protected object.
14149
14150 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
14151
14152 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
14153
14154 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14155
14156 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
14157 requeuing to the same protected object to give higher priority tasks
14158 the opportunity to execute.
14159
14160 2006-10-31 Robert Dewar <dewar@adacore.com>
14161
14162 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
14163 add more precise check for the character sequence that follows '[' to
14164 avoid possible confusion in case if '[' is the last character of a
14165 string literals.
14166 (Scan_Wide): Always allow brackets encoding
14167
14168 2006-10-31 Olivier Hainque <hainque@adacore.com>
14169
14170 * s-stchop.ads: make this unit preelaborate. This is desirable in
14171 general and made mandatory by the use of this unit by s-taprop which
14172 is itself preelaborate.
14173
14174 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
14175 Td_Events component.
14176
14177 2006-10-31 Vincent Celier <celier@adacore.com>
14178
14179 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
14180 in file names.
14181
14182 2006-10-31 Vincent Celier <celier@adacore.com>
14183
14184 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
14185
14186 2006-10-31 Vincent Celier <celier@adacore.com>
14187
14188 * makegpr.adb (Check_Compilation_Needed): Take into account path names
14189 with spaces.
14190 (Check_Compilation_Needed): When checking a C or C++ source, do not
14191 resolve symbolic links.
14192 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
14193 When not in verbose mode and Ellipse is True, display "..." for the
14194 first argument with Display set to False.
14195 (Build_Global_Archive): Always set Display True for the first object
14196 file. Call Display_Command with Ellipse set to True.
14197
14198 2006-10-31 Matt Heaney <heaney@adacore.com>
14199
14200 * a-crbtgo.ads: Commented each subprogram
14201
14202 * a-crbtgo.adb: Added reference to book from which algorithms were
14203 adapted.
14204
14205 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
14206 indicate which child.
14207 (Generic_Conditional_Insert): changed parameter name from "Success" to
14208 "Inserted".
14209 (Generic_Unconditional_Insert_With_Hint): improved algorithm
14210
14211 * a-coorse.adb (Replace_Element): changed parameter name in call to
14212 conditional insert operation.
14213
14214 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
14215
14216 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
14217 Generic_Iteration
14218
14219 * a-ciorse.adb (Replace_Element): changed parameter name in call to
14220 conditional insert operation.
14221
14222 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
14223 Generic_Iteration.
14224
14225 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
14226 instead of mode inout.
14227
14228 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
14229 draft
14230 (Generic_Read): preserve existing buckets array if possible
14231 (Generic_Write): don't send buckets array length anymore
14232
14233 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
14234 instead of mode inout.
14235
14236 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
14237 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14238
14239 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
14240 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14241 (Replace_Element): local operation is now an instantiation
14242
14243 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
14244 check current length.
14245 (Generic_Replace_Element): new operation
14246
14247 2006-10-31 Doug Rupp <rupp@adacore.com>
14248
14249 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
14250 Call TBK$SYMBOLIZE without omitting parameters.
14251
14252 2006-10-31 Vincent Celier <celier@adacore.com>
14253
14254 * symbols-processing-vms-ia64.adb,
14255 symbols-processing-vms-alpha.adb (Process): Do not include symbols
14256 that come from generic instantiations in bodies.
14257
14258 2006-10-31 Pat Rogers <rogers@adacore.com>
14259
14260 * a-rttiev.ads, a-rttiev.adb:
14261 This is a significant redesign primarily for the sake of automatic
14262 timer task termination but also to fix a design flaw.
14263 Therefore we are now using an RTS lock, instead of a protected
14264 object, to provide mutual exclusion to the queue of pending events
14265 and the type Timing_Event is no longer a protected type.
14266
14267 2006-10-31 Robert Dewar <dewar@adacore.com>
14268 Cyrille Comar <comar@adacore.com>
14269 Ben Brosgol <brosgol@adacore.com>
14270
14271 * debug.adb: Update flags documentation
14272
14273 * gnat_ugn.texi: Add documentation for new -gnatwq switch
14274 Clean up documentation for several other warning switches
14275 Clarify how task stack size can be specified with various
14276 versions of Windows.
14277 Add note that -gnatVo includes ranges including loops
14278 Add documentation for -gnatL switch
14279 Add note on elaboration warning for initializing variables
14280 Add documentation for new -gnatwt warning switch
14281 Document new form of pragma Warnings (On|Off, string)
14282 Add comment on use of pragma Warnings to control warnings
14283 Add documentation for -gnatjnn switch
14284 Modify section on interfacing with C for VMS 64-bit.
14285 Add doc for -gnatVe/E
14286 Add documentation of new warning flags -gnatww/-gnatwW
14287 Add warnings about address clause overlays to list of warnings
14288 (Exception Handling Control): Document that the option --RTS must be
14289 used consistently for gcc and gnatbind.
14290 Clarify that inlining is not always possible
14291 Update documentation on pragma Unchecked_Union.
14292
14293 * gnat_rm.texi:
14294 Add documentation for new extended version of pragma Obsolescent
14295 Add documentation for implementation defined attribute 'Stub_Type.
14296 Add note on use of Volatile in asm statements
14297 Add documentation on use of pragma Unreferenced in context clause
14298 Document new form of pragma Warnings (On|Off, pattern)
14299 Document pragma Wide_Character_Encoding
14300 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
14301 enforced if code generation is active.
14302 Add section on pragma Suppress to document GNAT specific check
14303 Alignment_Check
14304 Clarify difference between No_Dispatching_Calls & No_Dispatch.
14305 Add documentation for pragma Restrictions (No_Elaboration_Code)
14306
14307 * gnat-style.texi:
14308 Add comments on layout of subprogram local variables in the
14309 presence of nested subprograms.
14310
14311 * ug_words: Resync.
14312
14313 * elists.ads: Minor reformatting
14314 Node returns Node_Or_Entity_Id (doc change only)
14315
14316 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
14317
14318 * g-arrspl.ads (Create): Update comments.
14319
14320 * sem.ads: Add details on the handling of the scope stack.
14321
14322 * usage.adb: Update documentation.
14323
14324 * validsw.ads, validsw.adb:
14325 Add definition of Validity_Check_Components and implement -gnatVe/E
14326
14327 * vms_data.ads: Add missing VMS qualifiers.
14328
14329 * s-addope.ads: Add documentation on overflow and divide by zero
14330
14331 2006-10-31 Robert Dewar <dewar@adacore.com>
14332 Thomas Quinot <quinot@adacore.com>
14333 Arnaud Charlet <charlet@adacore.com>
14334
14335 * fmap.adb: Put routines in alpha order
14336
14337 * g-boumai.ads: Remove redundant 'in' keywords
14338
14339 * g-cgi.adb: Minor reformatting
14340
14341 * g-cgi.ads: Remove redundant 'in' keywords
14342
14343 * get_targ.adb: Put routines in alpha order
14344
14345 * prj-attr.ads: Minor reformatting
14346
14347 * s-atacco.ads: Minor reformatting
14348
14349 * scn.adb: Put routines in alpha order
14350
14351 * sinput-l.adb: Minor comment fix
14352
14353 * sinput-p.adb: Minor comment fix
14354
14355 * s-maccod.ads: Minor reformatting
14356
14357 * s-memory.adb: Minor reformatting
14358
14359 * s-htable.adb: Fix typo in comment.
14360
14361 * s-secsta.adb: Minor comment update.
14362
14363 * s-soflin.adb: Minor reformatting
14364
14365 * s-stoele.ads:
14366 Add comment about odd qualification in Storage_Offset declaration
14367
14368 * s-strxdr.adb:
14369 Remove unnecessary 'in' keywords for formal parameters.
14370
14371 * treeprs.adt: Minor reformatting
14372
14373 * urealp.adb: Put routines in alpha order
14374
14375 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
14376 taking string.
14377
14378 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14379
14380 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
14381
14382 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
14383 workaround as on other platforms.
14384
14385 * g-eacodu-vms.adb: Remove redundant 'in' keywords
14386 * g-expect-vms.adb: Remove redundant 'in' keywords
14387
14388 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
14389 clear error message if the list-of-files file cannot be opened.
14390
14391 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
14392 equality operator is always visible.
14393
14394 * lang.opt: Woverlength-strings: New option.
14395
14396 * nmake.adt:
14397 Update copyright, since nmake.ads and nmake.adb have changed.
14398
14399 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
14400 (Binder_Output_Time_Stamps_Set): removed.
14401 (Old_Binder_Output_Time_Stamp): idem.
14402 (New_Binder_Output_Time_Stamp): idem.
14403 (Recording_Time_From_Last_Bind): idem.
14404 (Recording_Time_From_Last_Bind): Make constant.
14405
14406 * output.ads, output.adb (Write_Str): Allow LF characters
14407 (Write_Spaces): New procedure
14408
14409 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
14410
14411 * inline.adb: Minor reformatting
14412
14413 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14414
14415 * s-mastop-vms.adb: Remove redundant 'in' keywords
14416
14417 * s-osprim-vms.adb: Remove redundant 'in' keywords
14418
14419 * s-trafor-default.adb: Remove redundant 'in' keywords
14420
14421 * 9drpc.adb: Remove redundant 'in' keywords
14422
14423 * s-osinte-mingw.ads: Minor reformatting
14424
14425 * s-inmaop-posix.adb: Minor reformatting
14426
14427 * a-direio.ads: Remove quotes from Compile_Time_Warning message
14428
14429 * a-exexda.adb: Minor code reorganization
14430
14431 * a-filico.adb: Minor reformatting
14432
14433 * a-finali.adb: Minor reformatting
14434
14435 * a-nudira.ads: Remove quote from Compile_Time_Warning message
14436
14437 * a-numeri.ads: Minor reformatting
14438
14439 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
14440
14441 * exp_pakd.ads: Fix obsolete comment
14442
14443 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
14444 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
14445 Probably not a bug, but certainly neater and more efficient.
14446
14447 * a-tienio.adb: Minor reformatting
14448
14449 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
14450 Avoid assuming low bound of string is 1.
14451
14452 * gnatbind.adb: Change Bindusg to package and rename procedure as
14453 Display, which now ensures that it only outputs usage information once.
14454 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
14455
14456 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
14457 Table'First.
14458
14459 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
14460 warning.
14461 (Match): Add pragma Assert to ensure that Matches'First is zero
14462
14463 * g-regpat.ads (Match): Document that Matches lower bound must be zero
14464
14465 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
14466 documented preconditions (also kills warnings about bad indexes).
14467
14468 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
14469 is 1.
14470 (Build_Import_Library): Ditto;
14471
14472 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
14473
14474 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
14475
14476 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
14477 lower bound of choice table is 1.
14478
14479 * sem_case.ads (Analyze_Choices): Document that lower bound of
14480 Choice_Table is 1.
14481
14482 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
14483 string is 1.
14484
14485 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
14486 and add appropriate Assert pragma to suppress warnings.
14487
14488 * atree.h, atree.ads, atree.adb
14489 Change Elist24 to Elist25
14490 Add definitions of Field28 and Node28
14491 (Traverse_Field): Use new syntactic parent table in sinfo.
14492
14493 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14494
14495 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14496
14497 * exp_tss.adb: Put routines in alpha order
14498
14499 * fe.h: Remove redundant declarations.
14500
14501 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
14502
14503 * utils.c (builtin_function): Rename to gnat_builtin_function.
14504 Move common code to add_builtin_function.
14505 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
14506 gnat_builtin_function.
14507 * gigi.h (builtin_function): Rename to gnat_builtin_function.
14508 Change the signature.
14509
14510 2006-10-16 Brooks Moses <bmoses@stanford.edu>
14511
14512 * Makefile.in: Add TEXI2PDF definition.
14513 * Make-lang.in: Add "ada.pdf" target.
14514
14515 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
14516
14517 * decl.c, utils.c: Fix comment typos.
14518 * utils.c: Fix a typo.
14519
14520 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
14521
14522 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
14523 on "pure" Ada subprograms if SJLJ exceptions are used.
14524 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
14525 on the declaration node of JMPBUF_SAVE.
14526 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
14527 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
14528 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
14529
14530 2006-08-20 Laurent Guerby <laurent@guerby.net>
14531
14532 PR ada/28716
14533 g-socket.adb (Bind_Socket): Call Set_Address.
14534
14535 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
14536
14537 PR ada/15802
14538 * decl.c (same_discriminant_p): New static function.
14539 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
14540 subtype and we have discriminants, fix up the COMPONENT_REFs
14541 for the discriminants to make them reference the corresponding
14542 fields of the parent subtype after it has been built.
14543
14544 2006-09-15 Roger Sayle <roger@eyesopen.com>
14545
14546 PR ada/18817
14547 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
14548 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
14549
14550 2006-09-13 Olivier Hainque <hainque@adacore.com>
14551
14552 PR ada/29025
14553 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
14554 of a SAVE_EXPR, just make the operand addressable/not-readonly and
14555 let the common gimplifier code make and propagate a temporary copy.
14556 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
14557 out/in-out actuals and defer setting the addressable/readonly bits
14558 to the gimplifier.
14559
14560 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
14561
14562 PR ada/28591
14563 * decl.c (components_to_record): Defer emitting debug info for the
14564 record type associated with the variant until after we are sure to
14565 actually use it.
14566
14567 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
14568
14569 PR ada/21952
14570 * gigi.h (gnat_internal_attribute_table): Declare.
14571 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
14572 * utils.c (gnat_internal_attribute_table): New global variable.
14573 (builtin_function): Always call decl_attributes on the builtin.
14574 (handle_const_attribute): New static function.
14575 (handle_nothrow_attribute): Likewise.
14576
14577 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
14578
14579 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
14580
14581 2006-06-23 Olivier Hainque <hainque@adacore.com>
14582
14583 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
14584 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
14585
14586 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
14587 Eric Botcazou <ebotcazou@adacore.com>
14588
14589 PR ada/18692
14590 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
14591 check-gnat into check-acats.
14592
14593 2006-06-17 Karl Berry <karl@gnu.org>
14594
14595 * gnat-style.texi (@dircategory): Use "Software development"
14596 instead of "Programming", following the Free Software Directory.
14597
14598 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14599
14600 PR ada/27944
14601 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
14602
14603 2006-06-06 Laurent Guerby <laurent@guerby.net>
14604
14605 PR ada/27769
14606 mlib-utl.adb: Use Program_Name.
14607
14608 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
14609
14610 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
14611 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
14612 trans.c, utils.c: Fix comment typos. Follow spelling
14613 conventions.
14614 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
14615 conventions.
14616
14617 2006-05-19 Nicolas Setton <setton@adacore.com>
14618
14619 * misc.c (gnat_dwarf_name): New function.
14620 (LANG_HOOKS_DWARF_NAME): Define to it.
14621
14622 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
14623
14624 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
14625 (ada/misc.o): Likewise.
14626 (ada/utils.o): Likewise.
14627
14628 2006-04-08 Aurelien Jarno <aurel32@debian.org>
14629
14630 * Makefile.in: Add Ada support for GNU/kFreeBSD.
14631 * s-osinte-kfreebsd-gnu.ads: New file.
14632
14633 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
14634
14635 * Make-lang.in: Rename docdir to gcc_docdir.
14636
14637 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
14638
14639 * gigi.h (get_ada_base_type): Delete.
14640 * utils2.c (get_ada_base_type): Likewise.
14641 * trans.c (convert_with_check): Operate in the real base type.
14642
14643 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14644
14645 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
14646
14647 2006-03-02 Richard Sandiford <richard@codesourcery.com>
14648
14649 * utils.c (create_var_decl): Use have_global_bss_p when deciding
14650 whether to make the decl common.
14651
14652 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14653
14654 * Make-lang.in (Ada): Remove.
14655 (.PHONY): Remove Ada
14656
14657 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14658
14659 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
14660 aggregate, check the interpretations of the other operand to find one
14661 that may be a boolean array.
14662
14663 (Analyze_Selected_Component): Fix flow-of-control typo in case where
14664 the prefix is a private extension.
14665
14666 2006-02-17 Eric Botcazou <botcazou@adacore.com>
14667
14668 PR ada/26315
14669 * utils2.c (find_common_type): If both input types are BLKmode and
14670 have the same constant size, keep using the first one.
14671
14672 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
14673
14674 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
14675
14676 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
14677
14678 2006-02-17 Jose Ruiz <ruiz@adacore.com>
14679
14680 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
14681 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
14682 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
14683 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
14684 Abort_Defer/Undefer pairs to avoid the possibility of a task being
14685 aborted while owning a lock.
14686
14687 2006-02-17 Javier Miranda <miranda@adacore.com>
14688 Robert Dewar <dewar@adacore.com>
14689
14690 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
14691 through an access to class-wide interface we force the displacement of
14692 the pointer to the allocated object to reference the corresponding
14693 secondary dispatch table.
14694 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
14695 if Long_Shifts are supported on the target, even if 64 bit divides
14696 are not supported (configurable run time mode).
14697 (Expand_N_Type_Conversion): Do validity check if validity checks on
14698 operands are enabled.
14699 (Expand_N_Qualified_Expression): Do validity check if validity checks
14700 on operands are enabled.
14701
14702 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14703
14704 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
14705 must be materialized when the renamed expression is an explicit
14706 dereference.
14707
14708 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14709
14710 * freeze.adb (Statically_Discriminated_Components): Return false if
14711 the bounds of the type of the discriminant are not static expressions.
14712
14713 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
14714 the bounds of the discriminant type are not static.
14715
14716 2006-02-17 Robert Dewar <dewar@adacore.com>
14717
14718 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
14719 then we close To if it is valid.
14720
14721 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
14722
14723 * init.c (facility_resignal_table): new array
14724 (__gnat_default_resignal_p): enhance default predicate to resignal if
14725 VMS condition has one of the predefined facility codes.
14726
14727 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
14728
14729 * Makefile.in: Use VMS64 specialized versions of several units in
14730 Interfaces.C hierarchy to be compatible with HP C default size choices.
14731 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
14732
14733 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14734
14735 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
14736 instantiation, the corresponding entity is the related_instance of the
14737 wrapper package created for the instance.
14738
14739 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14740
14741 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
14742 the current instance is nested within another instance in a child unit.
14743
14744 2006-02-17 Javier Miranda <miranda@adacore.com>
14745 Ed Schonberg <schonberg@adacore.com>
14746
14747 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
14748 type we cannot inherit the primitive operations; we inherit the
14749 Corresponding_Record_Type (which has the list of primitive operations).
14750 (Check_Anonymous_Access_Types): When creating anonymous access types for
14751 access components, use Rewrite in order to preserve the tree structure,
14752 for ASIS use.
14753 (Analyze_Object_Declaration): For limited types with access
14754 discriminants with defaults initialized by an aggregate, obtain
14755 subtype from aggregate as for other mutable types.
14756 (Derived_Type_Declaration): If the derived type is a limited interface,
14757 set the corresponding flag (Is_Limited_Record is not sufficient).
14758
14759 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14760
14761 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
14762 to inline a function that returns an unconstrained type, the return
14763 expression must be the first variable declared in the body of the
14764 function.
14765
14766 2006-02-17 Javier Miranda <miranda@adacore.com>
14767
14768 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
14769 abstract interface type, the static analysis is not enough to know if
14770 the interface is implemented or not by the source tagged type. Hence
14771 we must pass the work to the expander to generate the required code to
14772 evaluate the conversion at run-time.
14773 (Resolve_Equality_Op): Do not apply previous
14774 transformation if expansion is disasbled, to prevent anomalies when
14775 locating global references in a generic unit.
14776
14777 2006-02-17 Vincent Celier <celier@adacore.com>
14778
14779 * snames.ads, snames.adb: New standard names for new project attributes:
14780 archive_builder, archive_indexer, compiler_pic_option,
14781 config_body_file_name, config_body_file_name_pattern,
14782 config_file_switches, config_file_unique, config_spec_file_name,
14783 config_spec_file_name_pattern, default_builder_switches,
14784 default_global_compiler_switches, default_language,
14785 dependency_file_kind, global_compiler_switches, include_path,
14786 include_path_file, language_kind, linker_executable_option,
14787 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
14788 roots, runtime_project.
14789
14790 2006-02-17 Matthew Heaney <heaney@adacore.com>
14791
14792 * a-convec.ads, a-convec.adb:
14793 (operator "&"): handle potential overflow for large index types
14794 (Insert): removed Contraint_Error when using large index types
14795 (Insert_Space): removed Constraint_Error for large index types
14796 (Length): moved constraint check from Length to Insert
14797
14798 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
14799 as not null access.
14800 Explicit raise statements now include an exception message.
14801 (operator "&"): handle potential overflow for large index types
14802 (Insert): removed Contraint_Error when using large index types
14803 (Insert_Space): removed Constraint_Error for large index types
14804 (Length): moved constraint check from Length to Insert
14805
14806 2006-02-17 Robert Dewar <dewar@adacore.com>
14807
14808 * s-wchcnv.adb: Document handling of [ on output (we do not change
14809 this to ["5B"] and the new comments say why not.
14810
14811 * gnat_ugn.texi:
14812 Add note for -gnatVo that this now includes the cases of type
14813 conversions and qualified expressions.
14814 Add comments on handling of brackets encoding for Text_IO
14815
14816 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
14817 Thomas Quinot <quinot@adacore.com>
14818 Robert Dewar <dewar@adacore.com>
14819 Javier Miranda <miranda@adacore.com>
14820
14821 * expander.adb: Fix typo in comment
14822
14823 * exp_pakd.adb: Fix typo
14824 Minor comment reformatting.
14825
14826 * g-dyntab.adb: Minor reformatting
14827
14828 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
14829 aliased subprograms to look for the abstract interface subprogram.
14830
14831 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
14832
14833 * env.c (__gnat_setenv): Use size_t.
14834 (__gnat_unsetenv): Likewise.
14835 (__gnat_clearenv): Likewise.
14836
14837 2006-02-16 Arnaud Charlet <charlet@adacore.com>
14838
14839 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
14840
14841 2006-02-13 Arnaud Charlet <charlet@adacore.com>
14842
14843 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
14844 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
14845 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
14846 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
14847 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
14848 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
14849 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
14850 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
14851 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
14852 no longer used.
14853
14854 2006-02-13 Jose Ruiz <ruiz@adacore.com>
14855
14856 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
14857 protection against race conditions is not needed.
14858 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
14859 fallback handler.
14860 (Set_Specific_Handler): Add mutual exclusive access to the specific
14861 handler.
14862 (Specific_Handler): Add mutual exclusive access for retrieving the
14863 specific handler.
14864
14865 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
14866 back handler.
14867
14868 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
14869 Fall_Back_Handler and Specific_Handler.
14870
14871 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
14872 termination handlers.
14873 Set two different owerflow depending on the maximal stack size.
14874
14875 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
14876 protection against race conditions is not needed when executing the
14877 task termination handler.
14878
14879 2006-02-13 Robert Dewar <dewar@adacore.com>
14880
14881 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
14882 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
14883 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14884 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
14885 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
14886 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
14887 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
14888 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
14889 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
14890 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
14891 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
14892 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
14893 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
14894 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
14895 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
14896 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
14897 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
14898 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
14899 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
14900 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
14901 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
14902 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
14903 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
14904 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
14905 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
14906 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
14907 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
14908 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
14909 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
14910 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
14911 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
14912 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
14913 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
14914 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
14915 reformatting.
14916
14917 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
14918
14919 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
14920 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
14921 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
14922 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
14923 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
14924 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
14925 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
14926 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
14927 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
14928
14929 2006-02-13 Arnaud Charlet <charlet@adacore.com>
14930
14931 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
14932 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
14933 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
14934 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
14935 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
14936 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
14937 replaced by anonymous access type.
14938 (pthread_sigmask): Now take an access sigset_t
14939
14940 * s-osinte-hpux.ads: Ditto.
14941 (pthread_mutex_t, pthread_cond_t): Update definitions to support
14942 properly 32 and 64 bit ABIs.
14943
14944 2006-02-13 Pascal Obry <obry@adacore.com>
14945
14946 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
14947 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
14948 s-taprop-linux.adb, s-taprop-solaris.adb,
14949 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
14950 adjustement is already done when calling this routine.
14951
14952 2006-02-13 Pascal Obry <obry@adacore.com>
14953
14954 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
14955 table to take advantage of the 16 priority levels available on Windows
14956 2000 and XP. On NT4 there are only 7 priority levels, this is properly
14957 supported by this new mapping.
14958
14959 2006-02-13 Nicolas Setton <setton@adacore.com>
14960
14961 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
14962 (get_encoding): New subprogram. Extracts the encodings from an encoded
14963 Ada name.
14964
14965 2006-02-13 Pascal Obry <obry@adacore.com>
14966 Nicolas Roche <roche@adacore.com>
14967 Arnaud Charlet <charlet@adacore.com>
14968
14969 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
14970 support.
14971 (__gnat_try_lock): Add unicode support by using a specific section on
14972 Windows.
14973 (__gnat_get_current_dir): Idem.
14974 (__gnat_open_read): Idem.
14975 (__gnat_open_rw): Idem.
14976 (__gnat_open_create): Idem.
14977 (__gnat_create_output_file): Idem.
14978 (__gnat_open_append): Idem.
14979 (__gnat_open_new): Idem.
14980 (__gnat_file_time_name): Idem.
14981 (__gnat_set_file_time_name): Idem.
14982 (__gnat_stat): Idem.
14983 (win32_no_block_spawn): Idem.
14984 (__gnat_locate_exec_on_path): Idem.
14985 (__gnat_opendir): New routine.
14986 (__gnat_closedir): Idem.
14987 (__gnat_readdir): Add new parameter length (pointer to int). Update
14988 implementation to use it and add specific Win32 code for Unicode
14989 support.
14990 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
14991 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
14992 (convert_addresses): Do not define this dummy routine on VMS.
14993
14994 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
14995 runtime Unicode support will be activated.
14996 (S2WS): String to Wide-String conversion. This version just copy a
14997 string in non Unicode version.
14998 (WS2S): Wide-String to String conversion. This version just copy a
14999 string in non Unicode version.
15000
15001 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
15002 (Open): Now import __gnat_opendir from adaint.c.
15003 (Read): Change the implementation to support unicode characters. It is
15004 not possible to use strlen() on Windows as this version supports only
15005 standard ASCII characters. So the length of the directory entry is now
15006 returned from the imported __gnat_readdir routine.
15007 Update copyright notice.
15008
15009 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
15010 (opendir): Moved to adaint.c.
15011
15012 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
15013 (Get_Directory): Fix wrong indexing.
15014 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
15015 __gnat_getenv from env.c
15016 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
15017 from env.c
15018
15019 * env.h, env.c: New file.
15020
15021 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
15022 adaint.c by __gnat_getenv from env.c
15023
15024 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
15025 adaint.c by __gnat_getenv from env.c
15026
15027 * Make-lang.in: Add env.o in the list of C object needed by gnat1
15028 and gnatbind.
15029 Update dependencies.
15030
15031 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15032 Olivier Hainque <hainque@adacore.com>
15033 Eric Botcazou <ebotcazou@adacore.com>
15034
15035 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
15036
15037 * gigi.h (value_factor_p): Add prototype and description, now public.
15038
15039 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
15040 promotion for field with rep clause if the associated size was proven
15041 to be in error.
15042 Expand comments describing attempts to use a packable type.
15043 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
15044 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
15045 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
15046 necessary since these are not different types and pointers may
15047 actually designate any subtype in this hierarchy.
15048 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
15049 discriminants but put them into record only if not Unchecked_Union;
15050 pass flag to components_to_record showing Unchecked_Union.
15051 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
15052 components before variants; don't set TYPE_UNCHECKED_UNION_P.
15053 (components_to_record): New argument UNCHECKED_UNION.
15054 Remove special case code for Unchecked_Union and instead use main code
15055 with small changes.
15056
15057 PR ada/26096
15058 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
15059 variable with the expression being built, only its inner field.
15060
15061 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
15062 emit_sequence_entry_statements.
15063 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
15064 (establish_gnat_vms_condition_handler): Move before
15065 Subprogram_Body_to_gnu.
15066 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
15067 for a subprogram if it has a foreign convention or is exported.
15068 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
15069 substituted for a CONST_DECL.
15070 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
15071 Etype to assoc_to_constructor.
15072 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
15073 discriminants of Unchecked_Union.
15074 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
15075 don't need cluttering preprocessor directives.
15076 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
15077 condition handler as current in the compiled function.
15078 (body_with_handlers_p): New function. Tell whether a given sequence of
15079 statements node is attached to a package or subprogram body and involves
15080 exception handlers possibly nested within inner block statements.
15081 (emit_sequence_entry_statements): New function, to emit special
15082 statements on entry of sequences when necessary. Establish GNAT
15083 condition handler in the proper cases for VMS.
15084 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
15085 emit_sequence_entry_statements.
15086
15087 * utils2.c (find_common_type): If both input types are BLKmode and
15088 have a constant size, use the smaller one.
15089 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
15090 the same.
15091
15092 * utils.c (value_factor_p): Make public, to allow uses from other gigi
15093 units.
15094 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
15095 (convert, case UNION_TYPE): Remove special treatment for unchecked
15096 unions.
15097
15098 PR ada/18659
15099 (update_pointer_to): Update variants of pointer types to unconstrained
15100 arrays by attaching the list of fields of the main variant.
15101
15102 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15103 Robert Dewar <dewar@adacore.com>
15104
15105 * a-exexpr.adb, a-exexpr-gcc.adb
15106 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
15107 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
15108 Remove code unused for exception propagation for the compiler itself
15109 from a-except.adb and update to still share separate packages.
15110
15111 * a-except.ads, a-except.adb: Ditto.
15112 Add comments that this version is now used only by the compiler and
15113 other basic tools. The full version that includes the Ada 2005 stuff
15114 is in separate files a-except-2005.ads/adb. The reason is that we do
15115 not want to cause bootstrap problems with compilers not recognizing
15116 Wide_Wide_String.
15117 Add exception reason code PE_Implicit_Return
15118 Add new exception reason code (Null Exception_Id)
15119
15120 * a-except-2005.adb, a-except-2005.ads: New files.
15121
15122 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
15123
15124 * s-wchcon.adb: New file.
15125
15126 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
15127 (traceback.o deps): Likewise.
15128 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
15129 Activate build of GMEM instrumentation library on VMS targets.
15130 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
15131 Use a-except-2005.ads/adb for all run-time library builds unless
15132 specified otherwise.
15133 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
15134 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
15135 Use s-parame.adb on all native platforms.
15136 Use s-parame-vxworks.adb on all vxworks platforms.
15137 Add env.c env.h in LIBGNAT_SRCS
15138 Add env.o in LIBGNAT_OBJS
15139 (GNATMAKE_OBJS): Remove ctrl_c.o object.
15140 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
15141 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15142 supports VxWorks 6 RTPs.
15143 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
15144 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15145
15146 * types.h, types.ads (Terminate_Program): New exception
15147 Add comment on modifying multiple versions of a-except.adb when the
15148 table of exception reasons is modified.
15149 Add exception reason code PE_Implicit_Return
15150 Add new exception reason code (Null Exception_Id)
15151
15152 * clean.adb (Initialize): Get the target parameters before checking
15153 if target is OpenVMS. Move the OpenVMS specific code here from package
15154 body elaboration code.
15155
15156 2006-02-13 Thomas Quinot <quinot@adacore.com>
15157 Vincent Celier <celier@adacore.com>
15158 Robert Dewar <dewar@adacore.com>
15159
15160 * ali-util.adb (Get_File_Checksum): Update to account for change in
15161 profile of Initialize_Scanner.
15162
15163 * gprep.adb (Gnatprep): Update to account for change in profile of
15164 Initialize_Scanner.
15165 (Process_One_File): Same.
15166
15167 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
15168 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
15169 that behaviour using the new Unit information recorded in the source
15170 files table, rather than going through all units every time.
15171 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
15172 (Get_Source_Unit): Same.
15173
15174 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
15175 change in profile of Initialize_Scanner.
15176 (Prepare_To_Preprocess): Same.
15177
15178 * lib.ads: Fix typo in comment (templace -> template).
15179
15180 * prj-part.adb (Parse_Single_Project): Update to account for change in
15181 profile of Initialize_Scanner.
15182
15183 * scn.adb (Initialize_Scanner): Account for change in profile of
15184 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
15185 Also record the association of the given Source_File_Index to the
15186 corresponding Unit_Number_Type.
15187
15188 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
15189 procedure.
15190 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
15191 Remove Unit formal for generic scanner: this formal
15192 is only relevant to Scn (the scanner instance used to parse Ada source
15193 files), not to other instances. Update comment accordingly.
15194 (Scan): Use new function Snames.Is_Keyword_Name.
15195
15196 * sinfo-cn.adb: Fix typo in comment.
15197
15198 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
15199 Unit.
15200
15201 * sinput.ads (Source_File_Record): New component Unit, used to capture
15202 the unit identifier (if any) associated to a source file.
15203
15204 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
15205 Unit in Source_File_Record.
15206
15207 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
15208 in profile of Initialize_Scanner.
15209
15210 * scans.adb (Initialize_Ada_Keywords): New procedure
15211
15212 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
15213 Ada keywords in the Namet table, without the need to call
15214 Initialize_Scanner.
15215
15216 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
15217 (Is_Keyword_Name): New function
15218
15219 * snames.ads: Add subtype Configuration_Pragma_Names
15220 Add pragma Ada_2005 (synonym for Ada_05)
15221 (Is_Keyword_Name): New function
15222
15223 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
15224
15225 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15226
15227 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
15228 index.
15229
15230 * a-stwima.adb (To_Set): Add extra check when N = 0.
15231
15232 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
15233
15234 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15235
15236 * s-parame-mingw.adb, s-parame-linux.adb,
15237 s-parame-solaris.adb: Removed, replaced by s-parame.adb
15238
15239 * s-parame-vxworks.ads: Fix typo.
15240
15241 * s-parame-vxworks.adb: New file.
15242
15243 * s-parame.adb: Version now used by all native platforms.
15244 (Default_Stack_Size): Use 2 megs for default stack size and use
15245 __gl_default_stack_size when available.
15246 (Minimum_Stack_Size): Use 12K.
15247
15248 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
15249 (Create_Task): Refine implementation taking advantage of the XP stack
15250 size support. On XP, we now create the thread using the flag
15251 STACK_SIZE_PARAM_IS_A_RESERVATION.
15252
15253 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
15254
15255 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
15256 XP and 0 on older Windows versions.
15257
15258 * interfac-vms.ads: Removed, no longer used.
15259
15260 2006-02-13 Matthew Heaney <heaney@adacore.com>
15261
15262 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
15263 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
15264 a-cohase.adb: All explicit raise statements now include an exception
15265 message.
15266
15267 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
15268 (Update_Element_Preserving_Key): renamed op to just Update_Element.
15269 Explicit raise statements now include an exception message
15270
15271 * a-cihase.ads, a-cohase.ads: Removed comment.
15272
15273 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
15274 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
15275 a-szbzha.adb, a-szfzha.ads: New files.
15276
15277 2006-02-13 Matthew Heaney <heaney@adacore.com>
15278
15279 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
15280 quicksort.
15281
15282 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
15283
15284 * lang.opt: Wvariadic-macros: New option.
15285 Wold-style-definition: Likewise.
15286 Wmissing-format-attribute: Likewise.
15287
15288 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
15289 -Wold-style-definition and -Wmissing-format-attribute.
15290
15291 2006-02-13 Robert Dewar <dewar@adacore.com>
15292
15293 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
15294
15295 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
15296
15297 2006-02-13 Nicolas Roche <roche@adacore.com>
15298
15299 * a-envvar.adb, a-envvar.ads: New files.
15300
15301 2006-02-13 Douglas Rupp <rupp@adacore.com>
15302
15303 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
15304
15305 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
15306
15307 2006-02-13 Pat Rogers <rogers@adacore.com>
15308
15309 * a-rttiev.adb, a-rttiev.ads: New files.
15310
15311 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
15312
15313 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
15314 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
15315
15316 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
15317
15318 2006-02-13 Robert Dewar <dewar@adacore.com>
15319
15320 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
15321 sem_case.adb: Minor code reorganization (not Present should be No)
15322
15323 2006-02-13 Geert Bosch <bosch@adacore.com>
15324 Gary Dismukes <dismukes@adacore.com>
15325
15326 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
15327 0, since the lower bound of the actual string may be greater than one.
15328
15329 PR ada/20753
15330 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
15331 layout is requested.
15332
15333 2006-02-13 Vincent Celier <celier@adacore.com>
15334
15335 * back_end.adb (Scan_Compiler_Arguments): Check if
15336 Search_Directory_Present is True and, if it is, add the argument in
15337 the source search directory path.
15338
15339 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
15340 Search_Directory_Present to True.
15341
15342 2006-02-13 Joel Brobecker <brobecke@adacore.com>
15343
15344 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
15345 volatile, to tell the compiler to preserve this variable at any level
15346 of optimization.
15347 (Gen_Versions_Ada): Temporarily work around codegen bug.
15348
15349 2006-02-13 Vincent Celier <celier@adacore.com>
15350
15351 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
15352 gcc to link with option -shared-libgcc.
15353 (Gnatlink): Remove duplicate switches -shared-libgcc
15354
15355 2006-02-13 Robert Dewar <dewar@adacore.com>
15356
15357 * gnatvsn.ads (Current_Year): New constant, used to easily update
15358 copyright on all GNAT tools.
15359
15360 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
15361 copyright notice.
15362
15363 2006-02-13 Robert Dewar <dewar@adacore.com>
15364
15365 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
15366 after hyphen (small aesthetic change useful for a range of numbers
15367 using ^-^.
15368 Suppress range checks for a couple of assignments which otherwise
15369 cause validity checks with validity checking turned on.
15370
15371 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
15372 Improvement in error message for object.
15373 (Rep_Item_Too_Late): Remove '!' in warning message.
15374
15375 2006-02-13 Robert Dewar <dewar@adacore.com>
15376 Eric Botcazou <ebotcazou@adacore.com>
15377
15378 * err_vars.ads: Suppress range checks for a couple of assignments
15379 which otherwise cause validity checks with validity checking turned on.
15380 Update comments.
15381
15382 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
15383 Make message unconditional if it is a warning.
15384 (Error_Msg_NEL): Always output warning messages.
15385 Suppress range checks for a couple of assignments which otherwise
15386 cause validity checks with validity checking turned on.
15387
15388 * errout.ads (Message Insertion Characters): Document that '!' is
15389 implied by '?' in error messages.
15390
15391 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
15392 (Gnat1drv): Use a goto to end of main subprogram instead of
15393 Exit_Program (E_Success) so that finalization can occur normally.
15394
15395 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
15396
15397 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
15398 wrapped around.
15399
15400 2006-02-13 Vincent Celier <celier@adacore.com>
15401
15402 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
15403 Unchecked_Conversion functions.
15404 (Modification_Time): Use direct conversion of OS_Time to Calendar time
15405 when OpenVMS returns False.
15406
15407 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
15408 a-dirval.adb (OpenVMS): New Boolean function
15409
15410 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15411 Thomas Quinot <quinot@adacore.com>
15412
15413 * checks.adb (Build_Discriminant_Checks): If the expression being
15414 checks is an aggregate retrieve the values of its discriminants to
15415 generate the check, rather than creating a temporary and a reference
15416 to it.
15417 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
15418 (Install_Null_Excluding_Check): Ditto
15419 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
15420 not for the renamed object, so that the actual itype is attached in the
15421 proper context.
15422
15423 2006-02-13 Robert Dewar <dewar@adacore.com>
15424 Vincent Celier <celier@adacore.com>
15425
15426 * debug.adb: Eliminate numeric switches for binder/gnatmake
15427
15428 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
15429 switches for the compiler.
15430 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
15431 (Scan_Make_Switches): When failing with an illegal switch, output an
15432 error message with the full switch.
15433 Eliminate numeric switches for binder/gnatmake
15434
15435 * switch.ads, switch.adb (Bad_Switch): New procedure
15436
15437 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
15438 Remove 0-9 as debug flag character possibilities
15439 -d is now controlling the primary stack size when its value is a
15440 positive. Also add checks against invalid values, and support for kb,
15441 mb. Ditto for -D switch.
15442
15443 2006-02-13 Robert Dewar <dewar@adacore.com>
15444 Serguei Rybin <rybin@adacore.com>
15445
15446 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
15447 save/restore routines.
15448 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15449 were not always properly handled previously.
15450 Since we are changing the tree format anyway, also get rid of the
15451 junk obsolete Immediate_Errors flag.
15452 (Tree_Read): Change the way of reading Tree_Version_String - now we
15453 read the version string from the tree even if its length is not the
15454 same as the length of the version string computed from Gnatvsn.
15455 (Search_Directory_Present): New Boolean flag for the compiler.
15456 Define Tree_Version_String as a dynamic string.
15457 (Default_Stack_Size): new variable, used to handle switch -d.
15458
15459 * par-prag.adb:
15460 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
15461 only for main unit.
15462 Add pragma Ada_2005 (synonym for Ada_05)
15463 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15464 were not always properly handled previously.
15465
15466 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
15467 explicit Ada_95 to Ada_2005.
15468
15469 2006-02-13 Javier Miranda <miranda@adacore.com>
15470 Robert Dewar <dewar@adacore.com>
15471 Ed Schonberg <schonberg@adacore.com>
15472
15473 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
15474 against errors in the source program: a private types for which the
15475 corresponding full type declaration is missing and pragma CPP_Virtual
15476 is used.
15477 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
15478 (Is_Known_Null): New flag
15479 (Has_Pragma_Pure): New flag
15480 (No_Return): Present in all entities, set only for procedures
15481 (Is_Limited_Type): A type whose ancestor is an interface is limited if
15482 explicitly declared limited.
15483 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
15484 entities. Only used for component marked Is_Tag. If present it stores
15485 the Offset_To_Top function used to provide this value in tagged types
15486 whose ancestor has discriminants.
15487
15488 * exp_ch2.adb: Update status of new Is_Known_Null flag
15489
15490 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
15491
15492 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
15493 the categorization sense if Is_Pure was set by pragma Pure_Function.
15494
15495 2006-02-13 Quentin Ochem <ochem@adacore.com>
15496 Olivier Hainque <hainque@adacore.com>
15497
15498 * bindusg.adb: Updated documentation for -d and -D switches.
15499
15500 * raise.h (__gnat_set_globals): added new parameter for
15501 Default_Stack_Size.
15502
15503 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
15504 (__gnat_handle_vms_condition): Adjust context before raise.
15505 (__gnat_install_handler): Restore the global vector setup for GCC
15506 versions before 3.4, as the frame based circtuitry is not available
15507 in this case.
15508 (__gnat_set_globals): added a parameter default_stack_size
15509 (__gl_default_stack_size): new variable.
15510
15511 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15512
15513 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
15514 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
15515 does not exist in the Ada RM.
15516 (Compatible_Int_Bounds): Determine whether two integer range bounds
15517 are of equal length and have the same start and end values.
15518 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
15519 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
15520 aggregate when it is part of an object declaration.
15521 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
15522 constrains discriminants of its parent, add explicitly the discriminant
15523 constraints of the ancestor by retrieving them from the
15524 stored_constraint of the parent.
15525
15526 2006-02-13 Robert Dewar <dewar@adacore.com>
15527
15528 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
15529 attribute Mechanism_Code is applied to renamed subprogram, modify
15530 prefix to point to base subprogram.
15531 Max/Min attributes now violate Restriction No_Implicit_Conditionals
15532
15533 * sinfo.ads: Document that Mechanism_Code cannot be applied to
15534 renamed subprograms so that the front-end must replace the prefix
15535 appropriately.
15536
15537 2006-02-13 Javier Miranda <miranda@adacore.com>
15538 Gary Dismukes <dismukes@adacore.com>
15539
15540 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
15541 availability of RE_Interface_Tag.
15542 (Build_Initialization_Call): Fix wrong access to the discriminant value.
15543 (Freeze_Record_Type): Do not generate the tables associated with
15544 timed and conditional dispatching calls through synchronized
15545 interfaces if compiling under No_Dispatching_Calls restriction.
15546 When compiling for Ada 2005, for a nonabstract
15547 type with a null extension, call Make_Controlling_Function_Wrappers
15548 and insert the wrapper function declarations and bodies (the latter
15549 being appended as freeze actions).
15550 (Predefined_Primitive_Bodies): Do not generate the bodies of the
15551 predefined primitives associated with timed and conditional
15552 dispatching calls through synchronized interfaces if we are
15553 compiling under No_Dispatching_Calls.
15554 (Build_Init_Procedure): Use RTE_Available to check if a run-time
15555 service is available before generating a call.
15556 (Make_Controlling_Function_Wrappers): New procedure.
15557 (Expand_N_Full_Type_Declaration): Create a class-wide master for
15558 access-to-limited-interfaces because they can be used to reference
15559 tasks that implement such limited interface.
15560 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
15561 procedure spec and body of the Offset_To_Top function that is generated
15562 when the parent of a type with discriminants has secondary dispatch
15563 tables.
15564 (Init_Secondary_Tags): Handle the case in which the parent of the type
15565 containing secondary dispatch tables has discriminants to generate the
15566 correct arguments to call Set_Offset_To_Top.
15567 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
15568
15569 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
15570 Add Wide_[Wide_]Expanded_Name.
15571 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
15572 the same functionality of Get_Prim_Op_Address but applied to predefined
15573 primitive operations because the pointers to the predefined primitives
15574 are now saved in a separate table.
15575 (Parent_Size): Modified to get access to the separate table of primitive
15576 operations or the parent type.
15577 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
15578 functionality of Set_Prim_Op_Address but applied to predefined primitive
15579 operations.
15580 (Set_Signature): New subprogram used to store the signature of a DT.
15581 (Displace): If the Offset_To_Top value is not static then call the
15582 function generated by the expander to get such value; otherwise use
15583 the value stored in the table of interfaces.
15584 (Offset_To_Top): The type of the actual has been changed to Address to
15585 give the correct support to tagged types with discriminants. In this
15586 case this value is stored just immediately after the tag field.
15587 (Set_Offset_To_Top): Two new formals have been added to indicate if the
15588 offset_to_top value is static and hence pass this value to the run-time
15589 to store it in the table of interfaces, or else if this value is dynamic
15590 and then pass to the run-time the address of a function that is
15591 generated by the expander to provide this value for each object of the
15592 type.
15593
15594 * rtsfind.ads (Default_Prin_Op_Count): Removed.
15595 (Default_Prim_Op_Count): New entity
15596 (Get_Predefined_Prim_Op_Address): New entity
15597 (Set_Predefined_Prim_Op_Address): New entity
15598 (RE_Set_Signature): New entity
15599
15600 2006-02-13 Thomas Quinot <quinot@adacore.com>
15601 Ed Schonberg <schonberg@adacore.com>
15602
15603 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
15604 Make_Adjust_Call done for a newly-allocated object.
15605
15606 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
15607 in a subprogram are wrapped in a cleanup block, indicate that the
15608 subprogram contains an inner block with an exception handler.
15609 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
15610 Adjust call is for a newly-allocated object. In that case we must not
15611 assume that the finalization list chain pointers are correct (since they
15612 come from a bit-for-bit copy of the original object's pointers) so if
15613 the attach level would otherwise be zero (no change), we set it to 4
15614 instead to cause the pointers to be reset to null.
15615
15616 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
15617 reset chain pointers to null.
15618
15619 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15620
15621 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
15622 string, and the context requires a loop for the assignment (e.g.
15623 because the left-hand side is packed), generate a unique name for the
15624 temporary that holds the string, to prevent spurious name clashes.
15625
15626 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15627 Javier Miranda <miranda@adacore.com>
15628 Robert Dewar <dewar@adacore.com>
15629 Gary Dismukes <dismukes@adacore.com>
15630
15631 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
15632 return unconstrained arrays.
15633 Update comments.
15634 (Expand_Call): An indirect call through an access parameter of a
15635 protected operation is not a protected call.
15636 Add circuit to raise CE in Ada 2005 mode following call
15637 to Raise_Exception.
15638 (Register_DT_Entry): Do nothing if
15639 the run-time does not give support to abstract interfaces.
15640 (Freeze_Subprogram): In case of dispatching operations, do not generate
15641 code to register the operation in the dispatch table if the source
15642 is compiled with No_Dispatching_Calls.
15643 (Register_Predefined_DT_Entry): Generate code that calls the new
15644 run-time subprogram Set_Predefined_Prim_Op_Address instead of
15645 Set_Prim_Op_Address.
15646
15647 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
15648 on array assignments if the right-hand side is a function call that has
15649 been inlined. Check is performed on the assignment in the block.
15650 (Process_Bounds): If bounds and range are overloaded, apply preference
15651 rule for root operations to disambiguate, and diagnose true ambiguity.
15652 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
15653 a tag-indeterminate right-hand side even when Expander_Active is True.
15654 Needed to ensure that dispatching calls to T'Input are allowed and
15655 get the tag of the target class-wide object.
15656
15657 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
15658 an inherited primitive operation that already overrides several
15659 abstract interface primitives. For transitivity, the new entity must
15660 also override all the abstract interface primitives covered by the
15661 inherited overriden primitive.
15662 Emit warning if new entity differs from homograph in same scope only in
15663 that one has an access parameter and the other one has a parameter of
15664 a general access type with the same designated type, at the same
15665 position in the signature.
15666 (Make_Inequality_Operator): Use source locations of parameters and
15667 subtype marks from corresponding equality operator when creating the
15668 tree structure for the implicit declaration of "/=". This does not
15669 change anything in behaviour except that the decoration of the
15670 components of the subtree created for "/=" allows ASIS to get the
15671 string images of the corresponding identifiers.
15672 (Analyze_Return_Statement): Remove '!' in warning message.
15673 (Check_Statement_Sequence): Likewise.
15674 (Analyze_Subprogram_Body): For an access parameter whose designated type
15675 is an incomplete type imported through a limited_with clause, use the
15676 type of the corresponding formal in the body.
15677 (Check_Returns): Implicit return in No_Return procedure now raises
15678 Program_Error with a compile time warning, instead of beging illegal.
15679 (Has_Single_Return): Function returning unconstrained type cannot be
15680 inlined if expression in unique return statement is not an identifier.
15681 (Build_Body_To_Inline): It is possible to inline a function call that
15682 returns an unconstrained type if all return statements in the function
15683 return the same local variable. Subsidiary procedure Has_Single_Return
15684 verifies that the body conforms to this restriction.
15685
15686 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
15687 same type, and one of them is of an anonymous access type, convert
15688 the other operand to it, so that this is a valid binary operation for
15689 gigi.
15690 (Resolve_Type_Conversion): Handle subtypes of protected types and
15691 task types when accessing to the corresponding record type.
15692 (Resolve_Allocator): Add '\' in 2-line warning message.
15693 Remove '!' in warning message.
15694 (Resolve_Call): Add '\' in 2-line warning message.
15695 (Valid_Conversion): Likewise.
15696 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
15697 resulting type may be an access type with an implicit dereference.
15698 Obtain the proper component from the designated type.
15699 (Make_Call_Into_Operator): Handle properly a call to predefined equality
15700 given by an expanded name with prefix Standard, when the operands are
15701 of an anonymous access type.
15702 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
15703 Explicit_Dereference and Resolve_Selected_Component, to verify that the
15704 prefix of the expression is not of an incomplete type. Allows full
15705 diagnoses of all semantic errors.
15706 (Resolve_Actuals): If the actual is an allocator whose directly
15707 designated type is a class-wide interface we build an anonymous
15708 access type to use it as the type of the allocator. Later, when
15709 the subprogram call is expanded, if the interface has a secondary
15710 dispatch table the expander will add a type conversion to force
15711 the displacement of the pointer.
15712 (Resolve_Call): If a function that returns an unconstrained type is
15713 marked Inlined_Always and inlined, the call will be inlined and does
15714 not require the creation of a transient scope.
15715 (Check_Direct_Boolean_Op): Removed
15716 (Resolve_Comparison_Op): Remove call to above
15717 (Resolve_Equality_Op): Remove call to above
15718 (Resolve_Logical_Op): Inline above, since this is only call.
15719 (Valid_Conversion): Handle properly conversions between arrays of
15720 convertible anonymous access types.
15721
15722 PR ada/25885
15723 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
15724 the literal in an unchecked conversion, because GCC 4.x needs a static
15725 value for a string bound.
15726
15727 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15728 Hristian Kirtchev <kirtchev@adacore.com>
15729
15730 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
15731 components of the corresponding record, take into account component
15732 definitions that are access definitions.
15733 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
15734 procedure is not considered a dispatching call and will be expanded
15735 properly.
15736
15737 2006-02-13 Javier Miranda <miranda@adacore.com>
15738
15739 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
15740 controlling argument of the dispatching call is an abstract interface
15741 class-wide type then we use it directly.
15742 Check No_Dispatching_Calls restriction.
15743 (Default_Prim_Op_Position): Remove the code that looks for the last
15744 entity in the list of aliased subprograms. This code was wrong in
15745 case of renamings.
15746 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
15747 when the source is compiled with the No_Dispatching_Calls restriction.
15748 (Init_Predefined_Interface_Primitives): No need to inherit primitives
15749 if we are compiling with restriction No_Dispatching_Calls.
15750 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
15751 subprograms if we are compiling under No_Dispatching_Calls restriction.
15752 (Make_DT): Generate a dispatch table with a single dummy entry if
15753 we are compiling with the No_Dispatching_Calls restriction. In
15754 addition, in this case we don't generate code that calls to the
15755 following run-time subprograms: Set_Type_Kind, Inherit_DT.
15756 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
15757 of this subprogram if compiling with the No_Dispatching_Calls
15758 restriction.
15759 (Expand_Type_Conversion): Instead of using the actual parameter,
15760 the argument passed as parameter to the conversion function was
15761 erroneously referenced by the expander.
15762 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
15763 Set_Predefined_Primitive_Op_Address and Set_Signature.
15764 (Expand_Dispatching_Call): Generate call to
15765 Get_Predefined_Prim_Op_Address for predefined primitives.
15766 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
15767 predefined primitives.
15768 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
15769 primitives we reserve one dummy entry to ensure that the tag does not
15770 point to some memory that is associated with some other object. In
15771 addition, remove all the old code that generated the assignments
15772 associated with the signature of the dispatch table and replace them
15773 by a call to the new subprogram Set_Signature.
15774 (Set_All_DT_Position): Change the algorithm because now we have a
15775 separate dispatch table associated with predefined primitive operations.
15776 (Expand_Interface_Conversion): In case of non-static offset_to_top
15777 add explicit dereference to get access to the object after the call
15778 to displace the pointer to the object.
15779 (Expand_Interface_Thunk): Modify the generation of the actual used
15780 in the calls to the run-time function Offset_To_Top to fulfil its
15781 new interface.
15782 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
15783
15784 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15785
15786 * exp_dist.adb (Copy_Specification): For access parameters, copy
15787 Null_Exclusion flag, which will have been set for stream subprograms
15788 in Ada2005 mode.
15789
15790 2006-02-13 Pascal Obry <obry@adacore.com>
15791
15792 * expect.c (__gnat_expect_portable_execvp): New implementation. The
15793 previous implementation was using the C runtime spawnve routine but
15794 the corresponding wait was using directly the Win32 API. This was
15795 causing some times a lock when waiting for an event using
15796 WaitForSingleObject in __gnat_waitpid. This new implementation uses
15797 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
15798 API fixes this problem.
15799
15800 2006-02-13 Robert Dewar <dewar@adacore.com>
15801
15802 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
15803 call.
15804
15805 2006-02-13 Thomas Quinot <quinot@adacore.com>
15806
15807 * exp_pakd.ads: Fix typos in comments.
15808
15809 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
15810 array reference that is an explicit dereference, mark the converted
15811 (packed) array reference as analyzed to prevent a forthcoming
15812 reanalysis from resetting its type to the original (non-packed) array
15813 type.
15814
15815 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15816 Javier Miranda <miranda@adacore.com>
15817 Eric Botcazou <ebotcazou@adacore.com>
15818
15819 * exp_util.ads, exp_util.adb (Find_Prim_Op,
15820 Is_Predefined_Primitive_Operation): When
15821 searching for the predefined equality operator, verify that operands
15822 have the same type.
15823 (Is_Predefined_Dispatching_Operation): Remove the code that looks
15824 for the last entity in the list of aliased subprograms. This code
15825 was wrong in case of renamings.
15826 (Set_Renamed_Subprogram): New procedure
15827 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
15828 Exp_Type constant computed when entering this subprogram.
15829 (Known_Null): New function
15830 (OK_To_Do_Constant_Replacement): New function
15831 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
15832 (Side_Effect_Free): An attribute reference 'Input is not free of
15833 side effect, unlike other attributes that are functions. (from code
15834 reading).
15835 (Remove_Side_Effects): Expressions that involve packed arrays or records
15836 are copied at the point of reference, and therefore must be marked as
15837 renamings of objects.
15838 (Is_Predefined_Dispatching_Operation): Return false if the operation is
15839 not a dispatching operation.
15840
15841 PR ada/18819
15842 (Remove_Side_Effects): Lift enclosing type conversion nodes for
15843 elementary types in all cases.
15844
15845 2006-02-13 Javier Miranda <miranda@adacore.com>
15846
15847 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
15848 task types when accessing to the corresponding record type.
15849 Remove '!' in warning message.
15850
15851 2006-02-13 Olivier Hainque <hainque@adacore.com>
15852
15853 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
15854 to avoid useless and space inefficient overalignments on targets where
15855 Max_Alignment is larger than 16.
15856
15857 2006-02-13 Pascal Obry <obry@adacore.com>
15858
15859 * g-catiio.adb (Sec_Number): New type used to compute the number of
15860 seconds since 1-1-1970.
15861 (Image) [Natural]: The parameter was an Integer, as we can't deal with
15862 negative numbers (years, months...) it is better to have a Natural here.
15863 Code clean-up.
15864 (Image) [Number]: Change parameter from Long_Integer to Number.
15865 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
15866 overflow for dates past year 2038.
15867
15868 2006-02-13 Matthew Heaney <heaney@adacore.com>
15869
15870 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
15871 Constraint_Error.
15872
15873 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15874
15875 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
15876 native platforms.
15877 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
15878 finalization can occur normally.
15879
15880 2006-02-13 Vincent Celier <celier@adacore.com>
15881
15882 * gnatcmd.adb (Rules_Switches): New table
15883 (Add_To_Rules_Switches): New procedure
15884 (GNATCmd): For command CHECK, put all options following "-rules" in the
15885 Rules_Switches table. Append these -rules switches after the -cargs
15886 switches.
15887
15888 2006-02-13 Robert Dewar <dewar@adacore.com>
15889
15890 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
15891 These two cases were generating incorrect output, and if this unit
15892 was built with checks on, generated a discriminant mismatch constraint
15893 error.
15894
15895 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15896 Robert Dewar <dewar@adacore.com>
15897
15898 * lib-xref.adb (Get_Type_Reference): For a private type whose full
15899 view is an array type, indicate the component type as well, for
15900 navigation purposes.
15901 (Generate_Reference): Don't consider array ref on LHS to be a case
15902 of violating pragma Unreferenced.
15903 Do not give Ada 2005 warning except on real reference.
15904
15905 2006-02-13 Vincent Celier <celier@adacore.com>
15906
15907 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
15908 main source, add switch -mdebug-main=_ada_ so that the executable can
15909 be debugged by the standard VMS debugger.
15910 (Gnatmake): Set No_Main_Subprogram to True when there is no main
15911 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
15912 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
15913 of the last source, as the binding and linking phases are never
15914 performed.
15915 Set all executable obsolete when rebuilding a library.
15916
15917 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
15918 options.
15919
15920 2006-02-13 Javier Miranda <miranda@adacore.com>
15921
15922 PR ada/23973
15923 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
15924 code to improve the error message reported when the program has
15925 declarations of abstract interface types and it is not compiled with
15926 the -gnat05 switch.
15927 (P_Access_Definition): Reorganize the code to improve the error
15928 message reported when the new Ada 2005 syntax for anonymous
15929 access types is used and the program is not compiled with the
15930 -gnat05 switch.
15931
15932 2006-02-13 Robert Dewar <dewar@adacore.com>
15933
15934 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
15935 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
15936 (MODE_IN)
15937
15938 2006-02-13 Javier Miranda <miranda@adacore.com>
15939
15940 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
15941 against source containing syntax errors.
15942
15943 2006-02-13 Vincent Celier <celier@adacore.com>
15944
15945 * prj.adb (Reset): Initialize the first element of table Namings with
15946 the standard naming data.
15947
15948 2006-02-13 Vincent Celier <celier@adacore.com>
15949
15950 * prj.ads (Error_Warning): New enumeration type
15951
15952 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
15953 unknown, use the location of the project to report the error.
15954 (When_No_Sources): New global variable
15955 (Report_No_Ada_Sources): New procedure
15956 (Check): New parameter When_No_Sources. Set value of global variable
15957 When_No_Sources,
15958 (Find_Sources): Call Report_No_Ada_Sources when appropriate
15959 (Get_Sources_From_File): Ditto
15960 (Warn_If_Not_Sources): Better warning messages indicating the unit name
15961 and the file name.
15962
15963 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
15964 Call Prj.Proc.Process with parameter When_No_Sources.
15965
15966 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
15967 Call Recursive_Check with parameter When_No_Sources.
15968 (Recursive_Check): New parameter When_No_Sources. Call itself and
15969 Prj.Nmsc.Check with parameter When_No_Sources.
15970 (Process): New parameter When_No_Sources. Call Check with parameter
15971 When_No_Sources.
15972 (Copy_Package_Declarations): New procedure to copy renamed parameters
15973 and setting the location of the declared attributes to the location
15974 of the renamed package.
15975 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
15976 packages.
15977
15978 2006-02-13 Vincent Celier <celier@adacore.com>
15979
15980 * prj-makr.adb (Make): Preserve the comments from the original project
15981 file.
15982 When removing nodes (attributes Source_Dirs, Source_Files,
15983 Source_List_File and package Naming), save the comments and attach the
15984 saved comments to the newly created nodes.
15985 Do not add a with clause for the naming package if one already exists.
15986
15987 2006-02-13 Javier Miranda <miranda@adacore.com>
15988 Gary Dismukes <dismukes@adacore.com>
15989 Robert Dewar <dewar@adacore.com>
15990
15991 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
15992
15993 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
15994 aliased entities to look for the overriden abstract interface
15995 subprogram.
15996 (Is_Interface_Subprogram): Complete documentation.
15997 (Check_Dispatching_Operation): Do not generate code to register the
15998 operation in the dispatch table if the source is compiled with
15999 restriction No_Dispatching_Calls.
16000 (Override_Dispatching_Operation): Check for illegal attempt to override
16001 No_Return procedure with procedure that is not No_Return
16002 (Check_Dispatching_Call): Suppress the check for an abstract operation
16003 when the original node of an actual is a tag-indeterminate attribute
16004 call, since the attribute, which must be 'Input, can never be abstract.
16005 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
16006 call to the Input attribute (even when rewritten).
16007 (Propagate_Tag): Augment comment to indicate the possibility of a call
16008 to an Input attribute.
16009
16010 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
16011 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
16012
16013 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
16014 No_Wide_Characters is no longer partition-wide
16015 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
16016 rather than GNAT
16017
16018 2006-02-13 Douglas Rupp <rupp@adacore.com>
16019
16020 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
16021
16022 2006-02-13 Javier Miranda <miranda@adacore.com>
16023
16024 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
16025 handles default-initialized components to keep separate the management
16026 of this feature but also avoid the unrequired resolution and
16027 expansion of components that do not have partially initialized
16028 values.
16029 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
16030 (Check_Bounds): Likewise.
16031 (Check_Length): Likewise.
16032
16033 2006-02-13 Javier Miranda <miranda@adacore.com>
16034 Ed Schonberg <schonberg@adacore.com>
16035
16036 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
16037 abstract interface type call analyze_and_resolve to expand the type
16038 conversion into the corresponding displacement of the
16039 reference to the base of the object.
16040 (Eval_Attribute, case Width): For systems where IEEE extended precision
16041 is supported, the maximum exponent occupies 4 decimal digits.
16042 (Accessibility_Message): Add '\' in 2-line warning message.
16043 (Resolve_Attribute): Likewise.
16044 (case Attribute_Access): Significantly revise checks
16045 for illegal access-to-subprogram Access attributes to properly enforce
16046 the rules of 3.10.2(32/2).
16047 Diagnose use of current instance with an illegal attribute.
16048
16049 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
16050 to a Node_Id.
16051 (Enclosing_Generic_Unit): New function to return a node's innermost
16052 enclosing generic declaration node.
16053 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
16054 (Type_Access_Level): The accessibility level of anonymous acccess types
16055 associated with discriminants is that of the current instance of the
16056 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
16057 (Compile_Time_Constraint_Error): Handle case of conditional expression.
16058 (Kill_Current_Values_For_Entity): New function
16059 (Enter_Name): Change formal type to Entity_Id
16060
16061 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
16062 Ed Schonberg <schonberg@adacore.com>
16063 Gary Dismukes <dismukes@adacore.com>
16064
16065 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
16066 Analyze_Compilation_Unit.
16067 Detect and warn on redundant with clauses detected in a package spec
16068 and/or body when -gnatwr is used.
16069 (Analyze_Context): Analyze config pragmas before other items
16070 (Install_Context_Items): Don't analyze config pragmas here
16071 (Install_Limited_Withed_Unit): Set limited entity of package in
16072 with_clause so that cross-reference information or warning messages on
16073 unused packages can be properly generated
16074 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
16075 has Error_Posted set. Prevent infinite loops in illegal programs.
16076 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
16077 to the point of the error test requiring the current unit to be private.
16078 This ensures that private with clauses are not exempted from the basic
16079 checking for being a descendant of the same library unit parent as a
16080 withed private descendant unit.
16081 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
16082 handle private with clauses properly, as well as to account for cases
16083 where the withed unit is a public descendant of a private ancestor
16084 (in which case the current unit must be a descendant of the private
16085 ancestor's parent). The spec comments were updated accordingly. Also,
16086 the old error message in this subprogram was replaced with error
16087 messages that mirror the errors tested and reported by
16088 Check_Private_Child_Unit.
16089 Parameter and variable names improved for readability.
16090 (Install_Limited_Context_Clauses): Remove test for a withed unit being
16091 private as the precondition for calling
16092 Check_Private_Limited_Withed_Unit since that subprogram has been
16093 revised to test public units as well as private units.
16094
16095 2006-02-13 Thomas Quinot <quinot@adacore.com>
16096 Robert Dewar <dewar@adacore.com>
16097 Ed Schonberg <schonberg@adacore.com>
16098 Javier Miranda <miranda@adacore.com>
16099
16100 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
16101 that Scope_Stack.First = 1.
16102 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16103 were not always properly handled previously.
16104 (Formal_Entity): Complete rewrite, to handle properly some complex case
16105 with multiple levels of parametrization by formal packages.
16106 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
16107 to the corresponding derived type declaration for proper semantics.
16108
16109 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
16110 (Check_Component): Enforce restriction on components of
16111 unchecked_unions: a component in a variant cannot contain tasks or
16112 controlled types.
16113 (Unchecked_Union): Allow nested variants and multiple discriminants, to
16114 conform to AI-216.
16115 Add pragma Ada_2005 (synonym for Ada_05)
16116 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16117 were not always properly handled previously.
16118 Document that pragma Propagate_Exceptions has no effect
16119 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
16120 (Set_Convention_From_Pragma): Check that if a convention is
16121 specified for a dispatching operation, then it must be
16122 consistent with the existing convention for the operation.
16123 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
16124 longer required to specify an vtable-ptr component in the record. For
16125 compatibility reasons we leave the support for the previous definition.
16126 (Analyze_Pragma, case No_Return): Allow multiple arguments
16127
16128 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
16129 non-overrideen inherited operation with a controlling result as
16130 illegal only its implicit declaration comes from the derived type
16131 declaration of its result's type.
16132 (Check_Possible_Deferred_Completion): Relocate the object definition
16133 node of the subtype indication of a deferred constant completion rather
16134 than directly analyzing it. The analysis of the generated subtype will
16135 correctly decorate the GNAT tree.
16136 (Record_Type_Declaration): Check whether this is a declaration for a
16137 limited derived record before analyzing components.
16138 (Analyze_Component_Declaration): Diagnose record types not explicitly
16139 declared limited when a component has a limited type.
16140 (Build_Derived_Record_Type): Code reorganization to check if some of
16141 the inherited subprograms of a tagged type cover interface primitives.
16142 This check was missing in case of a full-type associated with a private
16143 type declaration.
16144 (Constant_Redeclaration): Check that the subtypes of the partial and the
16145 full view of a constrained deferred constant statically match.
16146 (Mentions_T): A reference to the current type in an anonymous access
16147 component declaration must be an entity name.
16148 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
16149 class_wide type to refer to full type, not to the incomplete one.
16150 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
16151 available. Required to give support to the certified run-time.
16152 (Analyze_Component_Declaration): In case of anonymous access components
16153 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
16154 (Process_Discriminants): For an access discriminant, use the
16155 discriminant specification as the associated_node_for_itype, to
16156 simplify accessibility checks.
16157
16158 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16159 Javier Miranda <miranda@adacore.com>
16160
16161 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
16162 abstract interpretations on an operator, remove interpretations that
16163 yield Address or a type derived from it, if one of the operands is an
16164 integer literal.
16165 (Try_Object_Operation.Try_Primitive_Operation,
16166 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
16167 location when creating the new reference to a primitive or class-wide
16168 operation as a part of rewriting a subprogram call.
16169 (Try_Primitive_Operations): If context requires a function, collect all
16170 interpretations after the first match, because there may be primitive
16171 operations of the same type with the same profile and different return
16172 types. From code reading.
16173 (Try_Primitive_Operation): Use the node kind to choose the proper
16174 operation when a function and a procedure have the same parameter
16175 profile.
16176 (Complete_Object_Operation): If formal is an access parameter and prefix
16177 is an object, rewrite as an Access reference, to match signature of
16178 primitive operation.
16179 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
16180 by an expanded name with prefix Standard, when the operands are of an
16181 anonymous access type.
16182 (Remove_Abstract_Operations): If the operation is abstract because it is
16183 inherited by a user-defined type derived from Address, remove it as
16184 well from the set of candidate interpretations of an overloaded node.
16185 (Analyze_Membership_Op): Membership test not applicable to cpp-class
16186 types.
16187
16188 2006-02-13 Bob Duff <duff@adacore.com>
16189
16190 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
16191 redundant use clauses.
16192 In particular, if the scope of two use clauses overlaps, but one is not
16193 entirely included in the other, we should not warn. This can happen
16194 with nested packages.
16195 (Analyze_Subprogram_Renaming): Protect the compiler against previously
16196 reported errors. The bug was reported when the compiler was built
16197 with assertions enabled.
16198 (Find_Type): If the node is a 'Class reference and the prefix is a
16199 synchronized type without a corresponding record, return the type
16200 itself.
16201
16202 2006-02-13 Javier Miranda <miranda@adacore.com>
16203
16204 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
16205 if this is the full-declaration associated with a private declaration
16206 that implement interfaces, then the private type declaration must be
16207 limited.
16208 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
16209 as aliased. The use of the 'access attribute is not available for such
16210 object (for this purpose the object should be explicitly marked as
16211 aliased, but being an anonymous type this is not possible).
16212
16213 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16214 Robert Dewar <dewar@adacore.com>
16215
16216 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
16217 compilation unit is an elaboration scope.
16218 (Add_Task_Proc): Add '\' in 2-line warning message.
16219 (Activate_All_Desirable): Deal with case of unit with'ed by parent
16220
16221 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16222 Javier Miranda <miranda@adacore.com>
16223
16224 * sem_type.adb (Write_Overloads): Improve display of candidate
16225 interpretations.
16226 (Add_One_Interp): Do not add to the list of interpretations aliased
16227 entities corresponding with an abstract interface type that is an
16228 immediate ancestor of a tagged type; otherwise we have a dummy
16229 conflict between this entity and the aliased entity.
16230 (Disambiguate): The predefined equality on universal_access is not
16231 usable if there is a user-defined equality with the proper signature,
16232 declared in the same declarative part as the designated type.
16233 (Find_Unique_Type): The universal_access equality operator defined under
16234 AI-230 does not cover pool specific access types.
16235 (Covers): If one of the types is a generic actual subtype, check whether
16236 it matches the partial view of the other type.
16237
16238 2006-02-13 Thomas Quinot <quinot@adacore.com>
16239
16240 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
16241 line. This is necessary to allow In_Extended_Main_Unit to provide
16242 correct results for itypes while writing out expanded source.
16243 (Close_File): No need to update the source_index_table here since it's
16244 now done for each line.
16245
16246 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16247 Robert Dewar <dewar@adacore.com>
16248
16249 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
16250 preserve the source unit where the itype is declared, and prevent a
16251 backend abort.
16252 (Note_Implicit_Run_Time_Call): New procedure
16253 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
16254 E_Subprogram_Type)
16255
16256 * sprint.ads: Document use of $ for implicit run time routine call
16257
16258 2006-02-13 Quentin Ochem <ochem@adacore.com>
16259
16260 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
16261 task name.
16262
16263 2006-02-13 Bob Duff <duff@adacore.com>
16264
16265 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
16266 Scan_Unsigned, so we do not scan leading blanks and sign twice.
16267 Integer'Value("- 5") and Integer'Value("-+5") now correctly
16268 raise Constraint_Error.
16269
16270 * s-vallli.adb (Scan_Long_Long_Integer): Call
16271 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
16272 do not scan leading blanks and sign twice.
16273 Integer'Value("- 5") and Integer'Value("-+5") now correctly
16274 raise Constraint_Error.
16275
16276 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
16277 Scan_Long_Long_Unsigned): Split out most of the processing from
16278 Scan_Long_Long_Unsigned out into
16279 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
16280 This prevents scanning leading blanks and sign twice.
16281 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
16282 See RM-3.5(44).
16283
16284 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
16285 out most of the processing from Scan_Unsigned out into
16286 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
16287 This prevents scanning leading blanks and sign twice.
16288
16289 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
16290 use with Modular'Value attribute.
16291 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
16292 attribute.
16293
16294 2006-02-13 Robert Dewar <dewar@adacore.com>
16295
16296 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
16297
16298 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
16299
16300 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
16301 (PPC VxWorks): Likewise.
16302 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
16303 (forced_callee): Make non-inlinable and non-pure.
16304 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
16305
16306 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16307 Ben Brosgol <brosgol@adacore.com>
16308 Robert Dewar <dewar@adacore.com>
16309
16310 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
16311 support.
16312 Document that gnatbind -M option is for cross environments only.
16313 Added description of using gnatmem to trace gnat rtl allocs and deallocs
16314 Add note on use of $ to label implicit run time calls
16315 Add documentation for -gnatyI (check mode IN)
16316 Updated chapter on compatibility with HP Ada
16317 VMS-oriented edits.
16318 Ran spell and corrected errors
16319 Add documentation for gnatbind -d and rework documentation of -D
16320 at the same time.
16321 Add subprogram/data elimination section.
16322 Minor editing of annex A.
16323 Add section for gnatcheck.
16324 Add documentation for restriction No_Dispatching_Calls
16325 Add documentation for pragma Ada_2005
16326 Remove mention of obsolete pragma Propagate_Exceptions
16327 Document that pragma Unreferenced can appear after DO in ACCEPT
16328 Clarify Pure_Function for library level units
16329 Mention Max/Min in connection with No_Implicit_Conditionals
16330 No_Wide_Characters restriction is no longer partition-wide
16331 Add a nice example for Universal_Literal_String attribute
16332 Document that pragma No_Return can take multiple arguments
16333
16334 * ug_words: Added entry for gnatcheck
16335
16336 * g-ctrl_c.ads (Install_Handler): Enhance comments
16337
16338 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
16339
16340 * g-trasym.ads: Add documentation on how to do off line symbolic
16341 traceback computation.
16342
16343 * s-fatgen.adb: Add comments for Unaligned_Valid
16344
16345 * stand.ads: Fix typo in comment
16346
16347 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16348
16349 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
16350
16351 2006-02-06 Roger Sayle <roger@eyesopen.com>
16352
16353 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
16354
16355 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16356
16357 PR target/25926
16358 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
16359 implementation that calls __main.
16360
16361 2006-01-25 Peter O'Gorman <peter@pogma.com>
16362
16363 PR bootstrap/25859
16364 * Makefile.in (GCC_LINK): Remove quotes.
16365 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
16366 or $(GCC_LINK).
16367
16368 (powerpc-darwin): Pass -shared-libgcc when building shared library.
16369
16370 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16371
16372 PR ada/24533
16373 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
16374
16375 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16376
16377 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
16378
16379 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16380
16381 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
16382 needed.
16383
16384 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16385
16386 * Make-lang.in: Update dependencies
16387
16388 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16389
16390 * Make-lang.in: Add rule for ada/exp_sel.o
16391
16392 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16393
16394 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
16395
16396 2005-12-09 Arnaud Charlet <charlet@adacore.com>
16397
16398 * gnatvsn.ads (Library_Version): Bump to version 4.2
16399 (ASIS_Version_Number): Bumped.
16400
16401 2005-12-09 Doug Rupp <rupp@adacore.com>
16402
16403 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
16404 Ada bind file prefix on VMS from b$ to b__.
16405 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
16406 __init.
16407
16408 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
16409 Targparm.OpenVMS_On_Target.
16410 (Object_Suffix): Initialize with target object suffix.
16411 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
16412
16413 * butil.adb: Change some Hostparm.OpenVMS checks to
16414 Targparm.OpenVMS_On_Target.
16415
16416 * clean.adb: Change some Hostparm.OpenVMS checks to
16417 Targparm.OpenVMS_On_Target.
16418 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
16419 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
16420 Ada bind file prefix on VMS from b$ to b__.
16421
16422 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
16423 --GCC so that Get_Target_Parameters can find system.ads.
16424 (Gnatlink): Call Get_Target_Parameters in mainline.
16425 Initialize standard packages for Targparm.
16426 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16427 (Process_Args): Also Check for object files with target object
16428 extension.
16429 (Make_Binder_File_Names): Create with target object extension.
16430 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
16431 to b__.
16432
16433 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
16434 Targparm.OpenVMS_On_Target.
16435 ({declaration},Build_Library,Check_Library): Change Ada bind file
16436 prefix on VMS from b$ to b__.
16437
16438 * osint-b.adb: Change some Hostparm.OpenVMS checks to
16439 Targparm.OpenVMS_On_Target.
16440 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
16441 b__.
16442
16443 * targext.c: New file.
16444
16445 * Makefile.in: add support for vxworks653 builds
16446 (../../vxaddr2line): gnatlink with targext.o.
16447 (TOOLS_LIBS): Move targext.o to precede libgnat.
16448 (init.o, initialize.o): Minor clean up in dependencies.
16449 (GNATLINK_OBJS): Add targparm.o, snames.o
16450 Add rules fo building targext.o and linking it explicitly with all
16451 tools.
16452 Also add targext.o to gnatlib.
16453
16454 * Make-lang.in: Add rules for building targext.o and linking it in
16455 with gnat1 and gnatbind.
16456 Add entry for exp_sel.o.
16457
16458 * osint.adb Change some Hostparm.OpenVMS checks to
16459 Targparm.OpenVMS_On_Target.
16460 (Object_File_Name): Use target object suffix.
16461
16462 * osint.ads (Object_Suffix): Remove, no longer used.
16463 (Target_Object_Suffix): Initialize with target object suffix.
16464
16465 * rident.ads: Add special exception to license.
16466
16467 * targparm.adb (Get_Target_Parameters): Set the value of
16468 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
16469 value.
16470 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
16471
16472 * targparm.ads: Add special exception to license.
16473
16474 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
16475 function.
16476 (Copy_File): Make sure from file is closed if error on to file
16477 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
16478
16479 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
16480 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
16481
16482 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
16483 target object suffix.
16484
16485 2005-12-09 Jose Ruiz <ruiz@adacore.com>
16486 Quentin Ochem <ochem@adacore.com>
16487 Florian Villoing <villoing@adacore.com>
16488
16489 * a-taster.ads, a-taster.adb: New files.
16490
16491 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
16492 link to the version that does nothing. This way the task termination
16493 routine is not executed twice for the environment task when finishing
16494 because of an unhandled exception.
16495
16496 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
16497 handler because of an unhandled exception.
16498
16499 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
16500 System.Tasking.Utilities instead of that in System.Tasking.Stages.
16501
16502 * s-finimp.adb (initialization code): Modify the soft link for the
16503 finalization of the global list instead of Adafinal.
16504
16505 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
16506 non-tasking version of the soft link for task termination. We do
16507 nothing since if we are using the non-tasking version it
16508 means that the task termination functionality is not used.
16509 (Null_Finalize_Global_List): Add this null version for the procedure
16510 in charge of finalizing the global list for controlled objects.
16511 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
16512 instead for handling run-time termination in a more flexible way.
16513 (Adafinal_NT): This new procedure will take care of finalizing the
16514 global list for controlled objects if needed, but no tasking
16515 finalization.
16516
16517 * s-tarest.adb (Task_Lock): Do not try to lock again the
16518 Global_Task_Lock if we already own it. Otherwise, we get blocked in
16519 some run-time operations.
16520 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
16521 until all nested locks have been released.
16522 (Task_Wrapper): Call the fall-back task termination handler. It
16523 applies to all tasks but the environment task.
16524 (Finalize_Global_Tasks): Add the call for the task termination
16525 procedure for the environment task.
16526 (Task_Wrapper): suppress warnings around declaration of
16527 Secondary_Stack_Address.
16528
16529 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
16530 moved to the Common_ATCB record.
16531 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
16532 Common_ATCB record.
16533 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
16534 Common_ATCB record.
16535
16536 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
16537 Fall_Back_Handler, and Specific_Handler.
16538
16539 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
16540 defined in Ada.Task_Termination, to avoid circular dependencies.
16541 (Termination_Handler): Redefine this type here, alredy defined in
16542 Ada.Task_Termination, for avoiding circular dependencies.
16543 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
16544 for storing task termination handlers. In addition,
16545 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
16546 Common_ATCB because it is used by both the regular and the restricted
16547 run times.
16548 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
16549 Common_ATCB because it is used by both the regular and the restricted
16550 run times.
16551 (Common_ATCB): Added a dynamic task analyzer field.
16552
16553 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
16554 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
16555 (Task_Wrapper): Call the task termination handler. It applies to all
16556 tasks but the environment task.
16557 (Finalize_Global_Tasks): Call the task termination procedure for the
16558 environment task. The call to Finalize_Global_List is now performed
16559 using the soft links mechanism.
16560 (Task_Wrapper): added dynamic stack analysis.
16561
16562 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
16563 potentially blocking operations has been moved from
16564 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
16565 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
16566 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
16567 this run-time check.
16568
16569 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
16570 of task termination procedure.
16571 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
16572 link for the task termination procedure.
16573
16574 * bindusg.adb: (Bindusg): Added documentation for -u option.
16575
16576 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
16577 (Get_Main_C): Add handling of dynamic stack analysis.
16578 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
16579
16580 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
16581 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
16582 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
16583
16584 * opt.ads: Added flags used by dynamic stack measurement.
16585 (Max_Line_Length): Remove (not used anymore)
16586
16587 * s-io.ads, s-io.adb (Standard_Error): new subprogram
16588 (Standart_Output): new subprogram
16589 (Set_Output): new subprogram
16590 (Put): now uses the value of Current_Out to know if the output has to be
16591 send to stderr or stdout.
16592
16593 * s-stausa.ads: Complete implementation.
16594
16595 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
16596
16597 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
16598 list of Ada 05 files.
16599 (GNAT Library Units): Add AltiVec files.
16600
16601 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
16602 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
16603 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
16604
16605 2005-12-09 Nicolas Setton <setton@adacore.com>
16606
16607 * adaint.c (__gnat_locate_regular_file): Return immediately if
16608 file_name is empty.
16609
16610 2005-12-09 Javier Miranda <miranda@adacore.com>
16611 Hristian Kirtchev <kirtchev@adacore.com>
16612
16613 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
16614 to the specification because the frontend generates code that uses this
16615 subprogram.
16616 (Set_Interface_Table): Add missing assertion.
16617 Update documentation describing the run-time structure.
16618 (Displace): New subprogram that displaces the pointer to the object
16619 to reference one of its secondary dispatch tables.
16620 (IW_Membership): Modified to use the new table of interfaces.
16621 (Inherit_TSD): Modified to use the new table of interfaces.
16622 (Register_Interface_Tag): Use the additional formal to fill the
16623 contents of the new table of interfaces.
16624 (Set_Interface_Table): New subprogram that stores in the TSD the
16625 pointer to the table of interfaces.
16626 (Set_Offset_To_Top): Use the additional formal to save copy of
16627 the offset value in the table of interfaces.
16628 Update structure of GNAT Primary and Secondary dispatch table diagram.
16629 Add comment section on GNAT dispatch table prologue.
16630 (Offset_To_Signature): Update the constant value of the Signature field.
16631 (Dispatch_Table): Update comment on hidden fields in the prologue.
16632 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
16633 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
16634 the type of formal parameter T to Tag, introduce additional assertions.
16635 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
16636 conversion.
16637 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
16638
16639 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
16640 in all the calls to Expand_Interface_Thunk. Instead of referencing the
16641 record component containing the tag of the secondary dispatch table we
16642 have to use the Offset_To_Top run-time function to get this information;
16643 otherwise if the pointer to the base of the object has been displace
16644 we get a wrong value if we use the 'position attribute.
16645
16646 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
16647 all the calls to Expand_Interface_Thunk.
16648 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
16649 interfaces; hence the call to Set_Interface_Table was clearly wrong.
16650 (Collect_All_Interfaces): Modify the internal subprogram Collect to
16651 ensure that the interfaces implemented by the ancestors are placed
16652 at the header of the generated list.
16653 (Expand_Interface_Conversion): Handle the case in which the displacement
16654 associated with the interface conversion is not statically known. In
16655 this case we generate a call to the new run-time subprogram Displace.
16656 (Make_DT): Generate and fill the new table of interfaces.
16657 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
16658 Get_Tagged_Kind and Set_Tagged_Kind.
16659 (Tagged_Kind): New function that determines the tagged kind of a type
16660 with respect to limitedness and concurrency and returns a reference to
16661 RE_Tagged_Kind.
16662 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
16663 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
16664 primary dispatch table for a type.
16665 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
16666 secondary dispatch table respectively of a tagged type.
16667
16668 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
16669 (Expand_Interface_Conversion): New subprogram to indicate if the
16670 displacement of the type conversion is statically known.
16671 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
16672
16673 * rtsfind.ads (RE_Offset_To_Top): New entity
16674 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
16675 accessible to users.
16676 (Re_Displace): New entity
16677 (RE_Interface_Data): New entity
16678 (RE_Set_Interface_Data): New_Entity
16679 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
16680 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
16681 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
16682 RE_TK_Tagged, RE_TK_Task.
16683
16684 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
16685 Init_Secondary_Tags_Internal to allow its use with interface types and
16686 also to generate the code for the new additional actual required
16687 by Set_Offset_To_Top.
16688 (Build_Init_Statements): In case of components associated with abstract
16689 interface types there is no need to generate a call to its IP.
16690 (Freeze_Record_Type): Generate Select Specific Data tables only for
16691 concurrent types.
16692 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
16693 the bodies and specifications of the predefined primitive operations
16694 dealing with dispatching selects and abort, 'Callable, 'Terminated only
16695 for concurrent types.
16696
16697 * exp_sel.ads, exp_sel.adb: New files.
16698
16699 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
16700 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
16701 properly protected objects and attach handler in the case of the
16702 restricted profile.
16703 Move embeded package Select_Expansion_Utilities into a separate external
16704 package.
16705 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
16706 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
16707 (Build_K, Build_S_Assignment): New subprograms, part of the select
16708 expansion utilities.
16709 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
16710 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
16711 where the trigger is a dispatching procedure of a limited tagged type.
16712
16713 2005-12-09 Olivier Hainque <hainque@adacore.com>
16714
16715 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
16716 pointer initialization values. Make a SAVE_EXPR instead. Add comments
16717 about the use and expansion of SAVE_EXPRs in the various possible
16718 renaming handling cases.
16719 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
16720 abusing DECL_FCONTEXT.
16721
16722 2005-12-09 Matthew Heaney <heaney@adacore.com>
16723
16724 * a-convec.adb (Merge): Added assertions to check whether vector params
16725 are sorted.
16726
16727 * a-coinve.adb (Merge): Added assertions to check whether vector params
16728 are sorted.
16729
16730 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
16731 draft.
16732 (Cursor'Read): raises PE
16733
16734 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
16735 to its default value.
16736
16737 * a-cihama.adb: Manually check whether cursor's key and elem are
16738 non-null
16739
16740 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
16741 (Merge): Assert that target and source lists are in order
16742 (Swap): Declare non-const temporaries, to pass to Splice
16743
16744 * a-cdlili.ads: (Splice): Changed param name and param mode
16745
16746 * a-cdlili.adb: (Splice): Changed param name and param mode
16747 (Merge): Assert that target and source lists are in order
16748 (Swap): Declare non-const temporaries, to pass to Splice
16749
16750 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
16751 (Write): declare Stream param as not null
16752
16753 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
16754 an exception message.
16755
16756 2005-12-09 Thomas Quinot <quinot@adacore.com>
16757 Robert Dewar <dewar@adacore.com>
16758
16759 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
16760 which is the absolute maximum length we can support.
16761
16762 * frontend.adb: For the processing of configuration pragma files,
16763 remove references to Opt.Max_Line_Length, which is not checked anymore.
16764
16765 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
16766 length.
16767
16768 * scn.adb, scng.adb:
16769 Always check line length against the absolute supported maximum,
16770 Hostparm.Max_Line_Length.
16771
16772 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
16773 value for the maximum line length is Max_Line_Length (not
16774 Column_Number'Last).
16775 Minor error msg update
16776 (Set_Style_Check_Options): New interface returning error msg
16777 Minor code reorganization (processing for 'M' was out of alpha order)
16778
16779 * switch-c.adb: New interface for Set_Style_Check_Options
16780
16781 * stylesw.ads (Set_Style_Check_Options): New interface returning error
16782 msg.
16783
16784 2005-12-09 Javier Miranda <miranda@adacore.com>
16785
16786 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
16787 with IP subprogram were only supported if there were limited types.
16788
16789 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
16790 records with IP subprogram were only supported if there were limited
16791 types.
16792
16793 2005-12-09 Olivier Hainque <hainque@adacore.com>
16794 Eric Botcazou <ebotcazou@adacore.com>
16795
16796 * trans.c (tree_transform, emit_check): Adjust calls to
16797 build_call_raise, passing the now expected GNAT_NODE argument.
16798
16799 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
16800 source line information than what the current global locus indicates
16801 when appropriate.
16802
16803 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
16804 field has overflowed.
16805 (build_call_raise): Add a GNAT_NODE argument to convey better source
16806 line information than what the current global locus indicates when
16807 appropriate.
16808 (build_component_ref): Adjust call to build_call_raise.
16809
16810 2005-12-09 Pascal Obry <obry@adacore.com>
16811
16812 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
16813 the iterator is quitting iteration on parent directory.
16814
16815 2005-12-09 Javier Miranda <miranda@adacore.com>
16816
16817 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
16818 and the assignment to a class-wide object, before the assignment we
16819 generate a run-time check to ensure that the tag of the Target is
16820 covered by the tag of the source.
16821
16822 2005-12-09 Robert Dewar <dewar@adacore.com>
16823
16824 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
16825 parameter in call to Image_Wide_Character.
16826
16827 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
16828 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
16829 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
16830 annoying FFFE/FFFF inconsistency.
16831
16832 2005-12-09 Robert Dewar <dewar@adacore.com>
16833 Javier Miranda <miranda@adacore.com>
16834 Ed Schonberg <schonberg@adacore.com>
16835
16836 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
16837 of type conversion.
16838 (Find_Interface): New subprogram that given a tagged type and one of its
16839 component associated with the secondary table of an abstract interface
16840 type, return the entity associated with such abstract interface type.
16841 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
16842 base type to create anonymous subtype, because entity may be a locally
16843 declared subtype or generic actual.
16844 (Find_Interface): New subprogram that given a tagged type and one of its
16845 component associated with the secondary table of an abstract interface
16846 type, return the entity associated with such abstract interface type.
16847
16848 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
16849 conversion cannot be handled at compile time. In this case we pass this
16850 information to the expander to generate the appropriate code.
16851
16852 2005-12-09 Robert Dewar <dewar@adacore.com>
16853 Ed Schonberg <schonberg@adacore.com>
16854 Gary Dismukes <dismukes@adacore.com>
16855 Javier Miranda <miranda@adacore.com>
16856 Hristian Kirtchev <kirtchev@adacore.com>
16857
16858 * einfo.adb (Itype_Printed): New flag
16859 (Is_Limited_Type): Derived types do not inherit limitedness from
16860 interface progenitors.
16861 (Is_Return_By_Reference_Type): Predicate does not apply to limited
16862 interfaces.
16863
16864 * einfo.ads (Itype_Printed): New flag
16865 Move Is_Wrapper_Package to proper section
16866 Add missing Inline for Is_Volatile
16867
16868 * output.ads, output.adb (Write_Erase_Char): New procedure
16869 (Save/Restore_Output_Buffer): New procedures
16870 (Save/Restore_Output_Buffer): New procedures
16871
16872 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
16873 Add missing support for anonymous access type
16874 (Write_Id): Insert calls to Write_Itype
16875 (Write_Itype): New procedure to output itypes
16876
16877 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
16878 use of "limited" in declaration.
16879
16880 * sinfo.ads, sinfo.adb:
16881 Formal derived types can carry an explicit "limited" indication.
16882
16883 * sem_ch3.adb: Add with and use of Targparm.
16884 (Create_Component): If Frontend_Layout_On_Target is True and the
16885 copied component does not have a known static Esize, then reset
16886 the size and positional fields of the new component.
16887 (Analyze_Component_Declaration): A limited component is
16888 legal within a protected type that implements an interface.
16889 (Collect_Interfaces): Do not add to the list the interfaces that
16890 are implemented by the ancestors.
16891 (Derived_Type_Declaration): If the parent of the full-view is an
16892 interface perform a transformation of the tree to ensure that it has
16893 the same parent than the partial-view. This simplifies the job of the
16894 expander in order to generate the correct object layout, and it is
16895 needed because the list of interfaces of the full-view can be given in
16896 any order.
16897 (Process_Full_View): The parent of the full-view does not need to be
16898 a descendant of the parent of the partial view if both parents are
16899 interfaces.
16900 (Analyze_Private_Extension_Declaration): If declaration has an explicit
16901 "limited" the parent must be a limited type.
16902 (Build_Derived_Record_Type): A derived type that is explicitly limited
16903 must have limited ancestor and progenitors.
16904 (Build_Derived_Type): Ditto.
16905 (Process_Full_View): Verify that explicit uses of "limited" in partial
16906 and full declarations are consistent.
16907 (Find_Ancestor_Interface): Remove function.
16908 (Collect_Implemented_Interfaces): New procedure used to gather all
16909 implemented interfaces by a type.
16910 (Contain_Interface): New function used to check whether an interface is
16911 present in a list.
16912 (Find_Hidden_Interface): New function used to determine whether two
16913 lists of interfaces constitute a set equality. If not, the first
16914 differing interface is returned.
16915 (Process_Full_View): Improve the check for the "no hidden interface"
16916 rule as defined by AI-396.
16917
16918 2005-12-09 Robert Dewar <dewar@adacore.com>
16919
16920 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
16921 types, not on record subtypes.
16922 (Freeze_Entity): Code cleanup. Add barrier to the loop
16923 that generates the references for primitive operations. This allows to
16924 remove an unnecessary exception handler.
16925 Code reformatting and comment clean ups.
16926
16927 2005-12-09 Vincent Celier <celier@adacore.com>
16928
16929 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
16930 If GNAT CHECK is called with a project file, but with no
16931 source on the command line, call gnatcheck with all the compilable
16932 sources of the project.
16933 Take into account the new command Check, for gnatcheck. Treat as for
16934 other ASIS tools: take into account project, specific package Check and
16935 Compiler switches.
16936 For ASIS tools, add the switches in package Compiler for
16937 the invocation of the compiler.
16938
16939 * prj-attr.adb: Add package Check and its attributes
16940
16941 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
16942
16943 * vms_conv.adb (Initialize): Change Params of command Check to
16944 unlimited files.
16945 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16946 Add data for new command Check
16947
16948 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
16949 ELIM.
16950 Add qualifiers for Check command options
16951 (Command_Type): New command Check
16952
16953 2005-12-09 Thomas Quinot <quinot@adacore.com>
16954
16955 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
16956 command line switch overruns the output buffer.
16957
16958 2005-12-09 Robert Dewar <dewar@adacore.com>
16959
16960 * sem_prag.adb: Processing for new pragma Complete_Representation
16961 (Analyze_Pragma, case Debug): Implement two argument form.
16962
16963 * par-prag.adb: Entry for new pragma Complete_Representation
16964 (Prag, case Debug): Recognize two argument form of pragma Debug
16965 New interface for Set_Style_Check_Options.
16966
16967 * sem_ch13.adb: Implement new pragma Complete_Representation.
16968
16969 * snames.adb, snames.ads, snames.h: Entry for new pragma
16970 Complete_Representation.
16971
16972 2005-12-09 Gary Dismukes <dismukes@adacore.com>
16973
16974 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
16975 available user-specified stream attributes on limited parameters to
16976 also test the type directly rather than only its underlying type (for
16977 Ada 95) and, in the case of Ada 2005, to check that the user-specified
16978 attributes are visible at the point of the subprogram declaration.
16979 For Ada 2005, the error message is modified to indicate that the
16980 type's stream attributes must be visible (again, only for -gnat05).
16981
16982 2005-12-09 Ed Schonberg <schonberg@adacore.com>
16983
16984 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
16985 anonymous access types.
16986
16987 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
16988 matching of anonymous access types and anonymous access to subprogram
16989 types. 'R'M 4.9.1 (2/2).
16990
16991 2005-12-09 Ed Schonberg <schonberg@adacore.com>
16992
16993 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
16994 rule prematurely when operands are universal, remaining ambiguities
16995 will be removed during resolution.
16996 Code cleanup.
16997
16998 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
16999 that are Ada 2005 functions.
17000 (Has_Abstract_Interpretation): Subsidiary to
17001 Remove_Conversions, to remove ambiguities caused by abstract operations
17002 on numeric types when operands are universal.
17003
17004 2005-12-09 Robert Dewar <dewar@adacore.com>
17005
17006 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
17007 for case where spec is categorized.
17008
17009 2005-12-09 Javier Miranda <miranda@adacore.com>
17010
17011 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
17012 types use the corresponding record type. This was not needed before
17013 the implementation of Ada 2005 synchronized types because
17014 concurrent types were never tagged types in Ada 95.
17015
17016 2005-12-09 Ed Schonberg <schonberg@adacore.com>
17017
17018 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
17019 first subtype of the type of the expression to verify that it is a
17020 legal Time type.
17021
17022 2005-12-09 Robert Dewar <dewar@adacore.com>
17023
17024 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
17025 decoded names.
17026
17027 2005-12-09 Quentin Ochem <ochem@adacore.com>
17028 Robert Dewar <dewar@adacore.com>
17029 Ed Falis <falis@adacore.com>
17030 Florian Villoing <villoing@adacore.com>
17031 Thomas Quinot <quinot@adacore.com>
17032 Arnaud Charlet <charlet@adacore.com>
17033
17034 * gnat_ugn.texi: Created section "Stack Related Tools"
17035 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
17036 "Stack Related Tools"
17037 Added subsection "Static Stack Usage Analysis"
17038 Added subsection "Dynamic Stack Usage Analysis"
17039 Include documentation of itypes in sprint listing (-gnatG)
17040 Documented gnatbind -D switch (default sec stack size for fixed sec
17041 stacks).
17042 Added Interrupt_State and Persistent_BSS to list of configuration
17043 pragmas.
17044 Add missing doc for maximum value of nnn in -gnatyMnnn
17045
17046 * gnat_rm.texi: Document the AltiVec binding.
17047 Add documentation for pragma Complete_Representation
17048 Shortened an overly long line (> 79 chars)
17049 Clarify documentation of unchecked conversion in implementation
17050 defined cases.
17051 Document two argument form of pragma Debug
17052
17053 * types.ads (Column_Number): Update documentation.
17054
17055 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
17056 library level Finalize_Storage_Only objects (these are not attached to
17057 any finalization list).
17058
17059 * system-mingw.ads: (Underlying_Priorities): Update comment.
17060
17061 2005-12-09 Robert Dewar <dewar@adacore.com>
17062
17063 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
17064 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
17065 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
17066 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
17067 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
17068 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
17069 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
17070 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
17071 reformatting.
17072
17073 2005-12-09 Robert Dewar <dewar@adacore.com>
17074
17075 * s-vaflop-vms-alpha.adb: (Ne_F): New function
17076 (Ne_G): New function
17077
17078 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
17079 for tag assignment.
17080 (Rewrite_Comparison): Handle case where operation is not a comparison
17081 and ignore, and also handle type conversion case.
17082
17083 2005-12-09 Thomas Quinot <quinot@adacore.com>
17084
17085 * exp_aggr.ads: Fix typo in comment.
17086 ???-mark Convert_Aggr_In_Assignment as needing documentation.
17087
17088 2005-12-09 Gary Dismukes <dismukes@adacore.com>
17089
17090 * layout.adb: Replace various uses of byte by storage unit throughout.
17091 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
17092 static size, convert to storage units before returning, to conform to
17093 spec.
17094
17095 2005-12-09 Matthew Gingell <gingell@adacore.com>
17096
17097 * g-exctra.ads: Fix typo in comment.
17098
17099 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17100
17101 * utils.c: Minor reformatting.
17102
17103 2005-12-09 Robert Dewar <dewar@adacore.com>
17104
17105 * g-soccon.ads:
17106 Further comment fixes to make the status of the default file clear
17107
17108 * s-bitops.adb: Clarify comment for Bits_Array
17109
17110 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
17111
17112 * Make-lang.in (ada.install-normal): Remove.
17113
17114 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
17115
17116 * Make-lang.in: Remove all dependencies on s-gtype.
17117
17118 2005-12-05 Richard Guenther <rguenther@suse.de>
17119
17120 * utils.c (convert): Use fold_convert where appropriate.
17121
17122 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
17123
17124 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
17125 a period is meant.
17126
17127 2005-12-02 Richard Guenther <rguenther@suse.de>
17128
17129 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
17130
17131 2005-12-01 Roger Sayle <roger@eyesopen.com>
17132
17133 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
17134 nodes.
17135
17136 2005-11-23 Laurent Guerby <laurent@guerby.net>
17137
17138 * mlib-prj.adb (Build_Library): Initialize Delete.
17139
17140 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
17141
17142 * socket.c: Add extern int h_errno for rtems since networking header
17143 files are not available at this point in a tool bootstrap. Newlib
17144 only has basic C library header files.
17145
17146 2005-11-19 Richard Guenther <rguenther@suse.de>
17147 Roger Sayle <roger@eyesopen.com>
17148
17149 PR ada/23717
17150 * misc.c (internal_error_function): Don't use vsprintf to format
17151 the error message text, instead use pp_format_text and the new
17152 pretty printer APIs. This allows handling of %qs, %w, etc.
17153
17154 2005-11-18 Laurent Guerby <laurent@guerby.net>
17155
17156 PR ada/24857
17157 * Makefile.in: Use s-auxdec-empty for RTEMS.
17158
17159 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17160
17161 PR ada/22333
17162 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
17163 a temporary if taking the address of something that is neither
17164 reference, declaration, or constant, since the gimplifier
17165 can't handle that case.
17166
17167 2005-11-17 Laurent Guerby <laurent@guerby.net>
17168
17169 PR ada/24857
17170 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
17171
17172 2005-11-16 Richard Guenther <rguenther@suse.de>
17173
17174 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
17175
17176 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
17177
17178 PR ada/24855
17179 * raise-gcc.c: Add missing stdarg.h include.
17180
17181 2005-11-16 Richard Guenther <rguenther@suse.de>
17182
17183 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
17184 (ada/misc.o): Likewise.
17185
17186 2005-11-14 Thomas Quinot <quinot@adacore.com>
17187
17188 * g-soccon.ads: Minor reformatting. Update comments.
17189
17190 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
17191 gain visibility on the declaration of struct timeval.
17192
17193 * g-soccon-freebsd.ads,
17194 g-soccon-darwin.ads,
17195 g-soccon-tru64.ads,
17196 g-soccon-aix.ads,
17197 g-soccon-irix.ads,
17198 g-soccon-hpux.ads,
17199 g-soccon-solaris.ads,
17200 g-soccon-vms.ads,
17201 g-soccon-mingw.ads,
17202 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
17203
17204 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
17205 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
17206 g-soccon-linux-x86.ads: New files.
17207
17208 * g-socthi-mingw.adb:
17209 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
17210
17211 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
17212 (time_t, suseconds_t): New types constructed to match the tv_sec
17213 and tv_usec fields of C struct timeval.
17214 (Timeval): Construct structure in terms of the new types.
17215 (Host_Errno): New function (imported from socket.c), returns last hosts
17216 database error.
17217
17218 * g-socthi-vxworks.adb: Add error handling circuitry.
17219
17220 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
17221 components of struct timeval.
17222 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
17223 (Check_Selector): In error conditions, clear internal socket sets to
17224 avoid a memory leak.
17225 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
17226 Send_Timeout, Receive_Timeout.
17227
17228 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
17229 the tv_sec and tv_usec fields of C struct timeval.
17230 (Timeval): Construct structure in terms of the new types.
17231 (Host_Errno): New function (imported from socket.c), returns last hosts
17232 database error.
17233
17234 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
17235 hosts database last error code.
17236
17237 * gen-soccon.c: Complete value expansion should not be performed on
17238 TARGET, as it has the form of a math expression, and some components
17239 may be platform-defined macros.
17240 For VxWorks, generate the OK and ERROR values.
17241 New constants giving the sizes of the components of C struct timeval.
17242
17243 2005-11-14 Robert Dewar <dewar@adacore.com>
17244 Ed Schonberg <schonberg@adacore.com>
17245
17246 PR ada/18434
17247 * types.ads: Include All_Checks in Suppress_Array
17248
17249 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
17250 not(a=b), since we no longer do this rewriting, and hence it is not
17251 needed.
17252 (Elaboration_Checks_Suppressed): Add special casing to
17253 deal with different cases of static and dynamic elaboration checks (all
17254 checks does not count in the first case, but does in the second).
17255 (Expr_Known_Valid): Do not assume that the result of any arbitrary
17256 function call is valid, since this is not the case.
17257 (Ensure_Valid): Do not apply validity check to a real literal
17258 in a universal or fixed context
17259
17260 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
17261 elementary types using the operator in standard. It is cleaner not to
17262 modify the programmers intent, especially in the case of floating-point.
17263 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
17264 it did not matter because we always rewrote a/=b to not(a=b).
17265 (Expand_Allocator_Expression): For an allocator expression whose nominal
17266 subtype is an unconstrained packed type, convert the expression to its
17267 actual constrained subtype.
17268 Implement warning for <= or >= where < or > not possible
17269 Fix to Vax_Float tests (too early in many routines, causing premature
17270 Vax_Float expansions.
17271
17272 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
17273 to be used with packages and generic packages as well as with
17274 subprograms.
17275 (Suppress): Set All_Checks, but not Elaboration_Check, for case
17276 of pragma Suppress (All_Checks)
17277 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
17278 a string literal for precise control over warnings.
17279 Avoid raise of pragma in case of unrecognized pragma and just return
17280 instead.
17281
17282 * sem_prag.ads: Minor reformatting
17283
17284 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
17285 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17286 Switch. Do not handle any exception.
17287 Include -gnatwx as part of -gnatg (warn on redundant parens)
17288 Allow optional = after -gnatm
17289 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
17290 longer sets Elaboration_Checks.
17291 Code to set warning mode moved to Sem_Warn
17292 so that it can be shared by pragma processing.
17293
17294 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
17295 statement.
17296
17297 * s-taprop-solaris.adb:
17298 Change some <= to =, to avoid new warning
17299
17300 * a-exexda.adb, prj-proc.adb:
17301 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
17302 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
17303
17304 2005-11-14 Robert Dewar <dewar@adacore.com>
17305
17306 * exp_vfpt.adb: Handle /= case
17307 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
17308 so that we do not get duplicate scaling for fixed point conversions.
17309
17310 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
17311
17312 2005-11-14 Matthew Gingell <gingell@adacore.com>
17313
17314 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
17315 Increase default priority on Lynx from 15 to 17, and meet the Ada
17316 requirement that Default_Priority be ((Priority'First +
17317 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
17318
17319 2005-11-14 Vincent Celier <celier@adacore.com>
17320
17321 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17322 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
17323 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
17324 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
17325 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
17326 mlib-tgt-lynxos.adb (DLL_Prefix): New function
17327
17328 2005-11-14 Doug Rupp <rupp@adacore.com>
17329
17330 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
17331 private part.
17332
17333 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17334
17335 * s-traces-default.adb, s-trafor-default.ads,
17336 s-tratas-default.adb: Fix compilation errors.
17337
17338 2005-11-14 Jose Ruiz <ruiz@adacore.com>
17339
17340 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
17341 raising the exception so the memory used is freed.
17342
17343 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17344
17345 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
17346 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
17347 (convert_address): Update comments and list of platforms using this.
17348
17349 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
17350 no longer used.
17351
17352 2005-11-14 Pascal Obry <obry@adacore.com>
17353 Vincent Celier <celier@adacore.com>
17354
17355 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
17356 GNAT.Command_Line.
17357
17358 * memroot.adb: Remove redundant with/use clause on
17359 System.Storage_Elements.
17360
17361 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17362
17363 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
17364 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
17365 related code to a-exexpr.adb
17366 (Save_Occurrence_And_Private): Move GCC EH related code to
17367 a-exexpr-gcc.adb
17368 (Raise_Current_Excep): Add new variable Id with pragma
17369 volatile, to ensure that the variable lives on stack.
17370
17371 * a-exexpr-gcc.adb, raise-gcc.c: New file.
17372
17373 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
17374 from a-except.adb.
17375 Move GCC EH related code to a-exexpr-gcc.adb
17376
17377 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
17378 64-bit Solaris
17379 Split the Linux version of g-soccon into separate variants for 32 and 64
17380 bit platforms.
17381 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
17382 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
17383 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
17384 of host variable $(RANLIB_FLAGS).
17385 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
17386 Code clean up: remove unused/obsolete targets.
17387 (EH_MECHANISM): New variable introduced to differenciate between the
17388 two EH mechanisms statically.
17389 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
17390 (LIBGNAT_OBJS): Add raise-gcc.o
17391 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
17392 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17393 supports VxWorks 6 RTPs.
17394 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
17395 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17396
17397 * raise.c: Move all GCC EH-related routines to raise-gcc.c
17398
17399 2005-11-14 Jose Ruiz <ruiz@adacore.com>
17400
17401 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
17402 deferral level, when abort is not allowed, to a later stage (the
17403 Task_Wrapper).
17404 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
17405 it will not get changed by the generated code. It was previously done
17406 in Create_Task.
17407
17408 2005-11-14 Thomas Quinot <quinot@adacore.com>
17409 Olivier Hainque <hainque@adacore.com>
17410 Eric Botcazou <ebotcazou@adacore.com>
17411
17412 * decl.c:
17413 Factor common code to build a storage type for an unconstrained object
17414 from a fat or thin pointer type and a constrained object type.
17415 (annotate_value): Handle BIT_AND_EXPR.
17416 (annotate_rep): Don't restrict the back annotation of inherited
17417 components to the type_annotate_only case.
17418 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
17419 we are not defining the type.
17420 <E_Record_Type>: Likewise.
17421 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
17422 to get advantage of the new maybe_stabilize_reference interface, to
17423 ensure that what we reference is indeed stabilized instead of relying
17424 on assumptions on what the stabilizer does.
17425 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
17426 type imported through a limited_with clause, use its non-limited view.
17427 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
17428 differentiation.
17429 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
17430 of #if sections + explicit comparisons of convention identifiers.
17431 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
17432 before early-returning for certain types when code generation is
17433 disabled.
17434 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
17435 nullification of gnu_expr we do for objects with address clause and
17436 that we are not defining.
17437 (elaborate_expression_1): Do not create constants when creating
17438 variables needed by the debug info: the dwarf2 writer considers that
17439 CONST_DECLs is used only to represent enumeration constants, and emits
17440 nothing for them.
17441 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
17442 object with an address clause into an indirect reference, drop the
17443 initializing expression.
17444 Include "expr.h".
17445 (STACK_CHECK_BUILTIN): Delete.
17446 (STACK_CHECK_PROBE_INTERVAL): Likewise.
17447 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
17448 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
17449 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
17450 corresponding to the renamed object as ignored for debugging purposes.
17451
17452 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
17453 related): For a prefix that is a dereference of a fat or thin pointer,
17454 if there is an actual subtype provided by the front-end, use that
17455 subtype to build an actual type with bounds template.
17456 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
17457 is provided by the front-end, use that subtype to compute the size of
17458 the deallocated object.
17459 (gnat_to_gnu): When adding a statement into an elaboration procedure,
17460 check for a potential violation of a No_Elaboration_Code restriction.
17461 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17462 with extra arguments to control whether to recurse through non-values
17463 and to let the caller know if the stabilization has succeeded.
17464 (gnat_stabilize_reference): Now a simple wrapper around
17465 maybe_stabilize, for common uses without restriction on lvalues and
17466 without need to check for the success indication.
17467 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
17468 pass false instead of 0 as the FORCE argument which is a bool.
17469 (Identifier_to_gnu): Remove checks ensuring that an renamed object
17470 attached to a renaming pointer has been properly stabilized, as no such
17471 object is attached otherwise.
17472 (call_to_gnu): Invoke create_var_decl to create the temporary when the
17473 function uses the "target pointer" return mechanism.
17474 Reinstate conversion of the actual to the type of the formal
17475 parameter before any other specific treatment based on the passing
17476 mechanism. This turns out to be necessary in order for PLACEHOLDER
17477 substitution to work properly when the latter type is unconstrained.
17478
17479 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
17480 common pattern.
17481 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17482 with extra arguments to control whether to recurse through non-values
17483 and to let the caller know if the stabilization has succeeded.
17484
17485 * utils2.c (gnat_build_constructor): Only sort the fields for possible
17486 static output of record constructor if all the components are constant.
17487 (gnat_build_constructor): For a record type, sort the list of field
17488 initializers in increasing bit position order.
17489 Factor common code to build a storage type for an unconstrained object
17490 from a fat or thin pointer type and a constrained object type.
17491 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
17492 types variants, and process special cases of VIEW_CONVERT expressions
17493 as their NOP_EXPR counterpart to ensure we get to the
17494 CORRESPONDING_VARs associated with CONST_DECls.
17495 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
17496 on the right-hand side.
17497
17498 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
17499 a common pattern.
17500 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
17501 are converting back to its original type.
17502 (convert) <JM input>: Fallthrough regular conversion code instead of
17503 extracting the object if converting to a type variant.
17504 (create_var_decl): When a variable has an initializer requiring code
17505 generation and we are at the top level, check for a potential violation
17506 of a No_Elaboration_Code restriction.
17507 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
17508 SIZE and SIZE_UNIT which we need for later back-annotations.
17509 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
17510 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
17511 is an unchecked union.
17512 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
17513 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
17514 main variant, just replace the VIEW_CONVERT_EXPR.
17515 <UNION_TYPE>: Revert 2005-03-02 change.
17516
17517 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
17518
17519 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
17520
17521 2005-11-14 Matthew Heaney <heaney@adacore.com>
17522
17523 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
17524 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
17525 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
17526 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
17527 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
17528 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
17529 Compiles against the spec for ordered maps described in sections
17530 A.18.6 of the most recent (August 2005) AI-302 draft.
17531
17532 2005-11-14 Olivier Hainque <hainque@adacore.com>
17533
17534 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
17535 to ensure bias adjustments take place when need be and to prevent
17536 occurrences of intermediate overflows.
17537
17538 2005-11-14 Matthew Gingell <gingell@adacore.com>
17539 Olivier Hainque <hainque@adacore.com>
17540
17541 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
17542 ia64 HP-UX.
17543
17544 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
17545 tracebacks on ia64 HP-UX and provide explanatory comment.
17546 Enable backtraces on ia64 GNU/Linux.
17547 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
17548 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
17549
17550 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
17551 Javier Miranda <miranda@adacore.com>
17552
17553 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
17554 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
17555 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
17556 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
17557
17558 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
17559 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
17560 assertions).
17561
17562 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
17563 subprogram that generates the external name associated with a
17564 secondary dispatch table.
17565 (Get_Secondary_DT_External_Name): New subprogram that generates the
17566 external name associated with a secondary dispatch table.
17567
17568 2005-11-14 Emmanuel Briot <briot@adacore.com>
17569
17570 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
17571 line in the ALI file to include both an instantiation reference, and a
17572 returned value.
17573
17574 2005-11-14 Vincent Celier <celier@adacore.com>
17575
17576 * clean.adb (Check_Project): Look for Ada code in extending project,
17577 even if Ada is not specified as a language.
17578 Use new function DLL_Prefix for DLL_Name
17579 (Clean_Interface_Copy_Directory): New procedure
17580 (Clean_Library_Directory): New procedure
17581 (Clean_Directory): Remove procedure, no longer used
17582 (Clean_Project): Do not delete any file in an externally built project
17583
17584 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
17585 directory of an extending project, even when there are no Ada source
17586 present.
17587 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
17588 (Set_Ada_Paths.Add.Recursive_Add): Ditto
17589
17590 * mlib-prj.adb (Check_Library): For all library projects, get the
17591 library file timestamp.
17592 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
17593 (Build_Library): Use new function DLL_Prefix for the DLL_Name
17594 (Clean): Remove procedure, no longer used
17595 (Ultimate_Extension_Of): New function
17596 (Build_Library): When cleaning the library directory, only remove an
17597 existing library file and any ALI file of a source of the project.
17598 When cleaning the interface copy directory, remove any source that
17599 could be a source of the project.
17600
17601 * prj.ads, prj.adb (Project_Empty): Add values of new components
17602 Library_TS and All_Imported_Projects.
17603 (Project_Empty): Add values for new components of Project_Data:
17604 Library_ALI_Dir and Display_Library_ALI_Dir
17605
17606 * prj-attr.adb: New project level attribute name Library_ALI_Dir
17607
17608 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
17609 attribute Library_ALI_Dir.
17610 (Check_Library_Attributes): The library directory cannot be the same as
17611 any source directory of the project tree.
17612 (Check_Stand_Alone_Library): The interface copy directory cannot be
17613 the same as any source directory of the project tree.
17614
17615 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
17616 all temporary files.
17617
17618 2005-11-14 Robert Dewar <dewar@adacore.com>
17619 Ed Schonberg <schonberg@adacore.com>
17620
17621 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17622 (Check_Elab_Call): A call within a protected body is never an
17623 elaboration call, and does not require checking.
17624 (Same_Elaboration_Scope): Take into account protected types for both
17625 entities.
17626 (Activate_Elaborate_All_Desirable): New procedure
17627
17628 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
17629 desirable
17630
17631 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
17632 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
17633
17634 * lib-writ.ads, lib-writ.adb:
17635 Implement new AD/ED for Elaborate_All/Elaborate desirable
17636 Use new Elaborate_All_Desirable flag in N_With_Clause node
17637
17638 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
17639 N_Free_Statement nodes.
17640 Define new class N_Subprogram_Instantiation
17641 Add Elaborate_Desirable flag to N_With_Clause node
17642 Add N_Delay_Statement (covering two kinds of delay)
17643
17644 * debug.adb: Introduce d.f flag for compiler
17645 Add -da switch for binder
17646
17647 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17648 Cyrille Comar <comar@adacore.com>
17649
17650 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
17651 for task component, in the case of a limited aggregate. The enclosed
17652 object declaration will create it earlier. Otherwise, in the case of a
17653 nested aggregate, the object may appear in the wrong scope.
17654 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
17655 (Gen_Assign): If the component being assigned is an array type and the
17656 expression is itself an aggregate, wrap the assignment in a block to
17657 force finalization actions on the temporary created for each row of the
17658 enclosing object.
17659 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
17660 structures are initialized after all discriminants are set so that
17661 they can be accessed even when their offset is dynamic.
17662
17663 2005-11-14 Robert Dewar <dewar@adacore.com>
17664 Hristian Kirtchev <kirtchev@adacore.com>
17665
17666 * sem_attr.adb: Implement Machine_Rounding attribute
17667 (Analyze_Access_Attribute): The access attribute may appear within an
17668 aggregate that has been expanded into a loop.
17669 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
17670 'Terminated whenever the prefix is of a task interface class-wide type.
17671 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
17672 the prefix is of a task interface class-wide type.
17673
17674 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
17675 to avoid warnings.
17676
17677 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
17678 Remove pragma Inline for [Unaligned_]Valid.
17679 Add comments that Valid routines do not work for Vax_Float
17680
17681 * exp_attr.adb: Implement Machine_Rounding attribute
17682
17683 * snames.h: Add entry for Machine_Rounding attribute
17684
17685 2005-11-14 Javier Miranda <miranda@adacore.com>
17686 Robert Dewar <dewar@adacore.com>
17687 Hristian Kirtchev <kirtchev@adacore.com>
17688
17689 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
17690 and related): For a prefix that is an explicit dereference of an
17691 access to unconstrained packed array type, annotate the dereference
17692 with an actual subtype so GIGI can make a correct size computation.
17693 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
17694 'Unrestricted_Access, if the designated type is an interface we
17695 add a type conversion to force the displacement of the pointer
17696 to the secondary dispatch table.
17697 Use Universal_Real instead of Long_Long_Float when we need a high
17698 precision float type for the generated code (prevents gratuitous
17699 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
17700 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
17701 'Terminated for task interface class-wide objects. Generate a call to
17702 the predefined dispatching routine used to retrieve the _task_id from
17703 a task corresponding record.
17704 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
17705
17706 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17707 (Check_Dispatching_Operation): Protect the frontend againts
17708 previously detected errors.
17709
17710 * Makefile.rtl: Add new instantiations of system.fat_gen
17711
17712 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
17713 Change name of instantiated package for better consistency
17714 with newly added system.fat_gen instantiations.
17715
17716 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
17717 s-fvagfl.ads: New files.
17718
17719 2005-11-14 Cyrille Comar <comar@adacore.com>
17720 Thomas Quinot <quinot@adacore.com>
17721
17722 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
17723 assignment of a value of a tagged type that has been rewritten to a
17724 block statement, it is known by construction that no checks are
17725 necessary for the statements within the block: analyze it with checks
17726 suppressed.
17727 (Expand_N_If_Statement): When killing a dead then-branch in an
17728 if-statement that has elsif_parts, recompute the Current_Value node
17729 for any entity whose value is known from the condition of the first
17730 elsif_part.
17731 (Expand_N_Return_Statement): When returning a mutable record, convert
17732 the return value into its actual subtype in order to help the backend
17733 to return the actual size instead of the maximum. This is another
17734 aftermath of not returning mutable records on the sec-stack anymore.
17735
17736 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
17737 handling of error msg for suspicious reverse range iteration.
17738 (Check_Possible_Current_Value_Condition): Move declaration from body to
17739 spec, to allow this subprogram to be called from exp_ch5.
17740
17741 2005-11-14 Thomas Quinot <quinot@adacore.com>
17742
17743 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
17744 generate a set of nested array aggregates instead of a single flat
17745 aggregate for multi-dimensional arrays.
17746
17747 2005-11-14 Pascal Obry <obry@adacore.com>
17748
17749 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
17750 by spawnve is a process handle, no need to convert. Add a parameter
17751 close to control wether the process handle must be closed.
17752 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
17753 a process handle, not need to convert.
17754 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
17755
17756 * g-expect.adb: (Kill): Document the new close parameter.
17757 (Close): Do not release the process handle in the kill there as
17758 waitpid() is using it.
17759 (Send_Signal): Release the process handle.
17760
17761 2005-11-14 Robert Dewar <dewar@adacore.com>
17762
17763 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
17764 need a high precision float type for the generated code (prevents
17765 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17766 used).
17767
17768 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
17769 need a high precision float type for the generated code (prevents
17770 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17771 used).
17772 (Expand_Width_Attribute): In configurable run-time, the attribute is not
17773 allowed on non-static enumeration subtypes. Force a load error to emit
17774 the correct diagnostic.
17775
17776 2005-11-14 Thomas Quinot <quinot@adacore.com>
17777 Robert Dewar <dewar@adacore.com>
17778 Ed Schonberg <schonberg@adacore.com>
17779
17780 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
17781 subtype to compute the size of the designated object at run-time,
17782 create such a subtype and store it in the Actual_Designated_Subtype
17783 attribute of the N_Free_Statement.
17784 Generate itype for classwide designated object in both cases of
17785 user-specified storage pool: specific and class-wide, not only in the
17786 specific case.
17787 Raise CE when trying to set a not null access type object to null.
17788 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
17789 an explicit loop, because freeze nodes make its position variable.
17790
17791 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
17792 null object.
17793
17794 2005-11-14 Javier Miranda <miranda@adacore.com>
17795
17796 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
17797 Build_Stream_Procedure): Add the null-excluding attribute to the first
17798 formal.
17799 This has no semantic meaning under Ada95 mode but it is a
17800 requirement under Ada05 mode.
17801
17802 * par-ch3.adb (P_Access_Definition): Addition of warning message if
17803 the null exclusion is used under Ada95 mode
17804 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
17805 (P_Access_Definition): Remove assertion that forbids the use of
17806 the null-exclusion feature in Ada95.
17807
17808 2005-11-14 Robert Dewar <dewar@adacore.com>
17809
17810 * impunit.adb: Exclude container helper units not intended for use by
17811 users.
17812
17813 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17814
17815 * freeze.adb (Freeze_Entity): For an access formal that is an access
17816 to subprogram, freeze the anonymous subprogram type at the same time,
17817 to prevent later freezing in the wrong scope, such as the enclosing
17818 subprogram body.
17819 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
17820 subprogram whenever available.
17821
17822 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17823
17824 PR ada/23732
17825 * gnatvsn.ads (Library_Version): Bump to 4.1
17826
17827 2005-11-14 Robert Dewar <dewar@adacore.com>
17828
17829 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
17830 Storage_Offset to avoid wrap around causing invalid results.
17831
17832 2005-11-14 Pascal Obry <obry@adacore.com>
17833
17834 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
17835 cross-compiler.
17836 (Scan_Bind_Arg): Fail with an error message if -M option is used
17837 on a native compiler.
17838
17839 2005-11-14 Robert Dewar <dewar@adacore.com>
17840 Vincent Celier <celier@adacore.com>
17841
17842 * gprep.adb: Implement -C switch to scan comments
17843
17844 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
17845
17846 * scans.ads: Comment updates (including new use of Tok_Comment in
17847 preprocessing)
17848
17849 * opt.ads: Add documentation for flags that are used by gprmake,
17850 currently and in the next version of gprmake.
17851 (Verbosity_Level): New variable
17852 Add Replace_In_Comments switch
17853
17854 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
17855 and -vm.
17856 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
17857
17858 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17859
17860 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
17861 message, friendlier.
17862
17863 2005-11-14 Robert Dewar <dewar@adacore.com>
17864
17865 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
17866
17867 2005-11-14 Doug Rupp <rupp@adacore.com>
17868
17869 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
17870
17871 2005-11-14 Robert Dewar <dewar@adacore.com>
17872
17873 * interfac.ads: Change declarations of IEEE float types so that we no
17874 longer need a separate version of this package for VMS.
17875
17876 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17877
17878 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
17879 internal entity created for the declaration of a child subprogram body
17880 with no spec as coming from source, to generate proper cross-reference
17881 information.
17882
17883 2005-11-14 Vincent Celier <celier@adacore.com>
17884
17885 * make.adb (Compile_Sources): Change verbose message to minimum
17886 verbosity level High for "is in an Ada library", "is a read-only
17887 library" and "is an internal library",
17888 (Create_Binder_Mapping_File): Path name of ALI file for library project
17889 must include the library directory, not the object directory.
17890 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
17891 for new switches -vl, -vm and -vh.
17892 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
17893 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
17894 (Compile_Sources): Do not attempt to compile if an ALI file is missing
17895 in a project that is externally built.
17896 (Compute_All_Imported_Projects): New procedure
17897 (Gnatmake): Check if importing libraries should be regenerated because
17898 at least an imported library is more recent.
17899 (Initialize): For each project compute the list of the projects it
17900 imports directly or indirectly.
17901 (Add_Library_Search_Dir): New procedure, used in place of
17902 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
17903 put in the search paths.
17904 (Add_Source_Search_Dir): New procedure, used in place of
17905 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
17906 put in the search paths.
17907 (Mark_Directory): Resolve the absolute path the directory before marking
17908 it.
17909
17910 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
17911 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17912 Switch. Do not handle any exception.
17913 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
17914 so that the switch is recognized as valid.
17915 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
17916
17917 2005-11-14 GNAT Script <nobody@adacore.com>
17918
17919 * Make-lang.in: Makefile automatically updated
17920
17921 2005-11-14 Pascal Obry <obry@adacore.com>
17922
17923 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
17924 used.
17925 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
17926 In both cases the last argument was dropped.
17927
17928 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
17929
17930 * namet.h: (Column_Numbe): New type.
17931 (Get_Column_Number): Define to sinput__get_column_number.
17932 (Instantiation): Define to sinput__instantiation.
17933 (Get_Column_Number): Declare.
17934 (Instantiation): Likewise.
17935
17936 2005-11-14 Robert Dewar <dewar@adacore.com>
17937
17938 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
17939 syntax, which could cause compiler hangs.
17940
17941 2005-11-14 Vincent Celier <celier@adacore.com>
17942
17943 * prj-ext.adb: Take into account new environment variable
17944 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
17945 are defined.
17946 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
17947 normalize its path name, making it absolute and resolving symbolic
17948 links, and replace the original if resolved path is different.
17949
17950 2005-11-14 Vincent Celier <celier@adacore.com>
17951
17952 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
17953 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
17954
17955 2005-11-14 Emmanuel Briot <briot@adacore.com>
17956
17957 * prj-pp.adb (Print): Do not output the with statement if the
17958 associated name is empty, which happens for virtual extending projects.
17959 (Print): Preserve the "extends all" attribute when printing the project.
17960
17961 * prj-tree.ads (String_Value_Of): Add comment about returned value for
17962 a virtual extending project.
17963
17964 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17965
17966 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
17967 rhs of an assignment even if the type is unconstrained, when the
17968 context is non-expanding.
17969 In an inlined body, if the context type is private,
17970 resolve with its full view, which must be a composite type.
17971
17972 2005-11-14 Robert Dewar <dewar@adacore.com>
17973 Ed Schonberg <schonberg@adacore.com>
17974
17975 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17976 Do not give obsolescent warning on with of subprogram (since we
17977 diagnose calls)
17978 (Analyze_With_Clause): Add test for obsolescent package
17979 (Install_Context_Clauses): If the unit is the body of a child unit, do
17980 not install twice the private declarations of the parents, to prevent
17981 circular lists of Use_Clauses in a parent.
17982 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
17983 compiling body of child unit.
17984 Use new class N_Subprogram_Instantiation
17985 (Expand_With_Clause): If this is a private with_clause for a child unit,
17986 appearing in the context of a package declaration, then the implicit
17987 with_clauses generated for parent units are private as well.
17988 (License_Check): Do not generate message if with'ed unit is internal
17989
17990 2005-11-14 Gary Dismukes <dismukes@adacore.com>
17991 Ed Schonberg <schonberg@adacore.com>
17992 Thomas Quinot <quinot@adacore.com>
17993
17994 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
17995 names are internal, because they will not have a corresponding partner
17996 in the actual package.
17997 (Analyze_Formal_Package): Move the setting of the formal package spec's
17998 Generic_Parent field so that it occurs prior to analyzing the package,
17999 to allow proper operation of Install_Parent_Private_Declarations.
18000 (Analyze_Package_Instantiation): Set the instantiated package entity's
18001 Package_Instantiation field.
18002 (Get_Package_Instantiation_Node): Move declaration to package spec.
18003 Retrieve the N_Package_Instantiation node when the Package_Instantiation
18004 field is present.
18005 (Check_Generic_Child_Unit): Within an inlined call, the only possible
18006 instantiation is Unchecked_Conversion, for which no parents are needed.
18007 (Inline_Instance_Body): Deinstall and record the use_clauses for all
18008 parent scopes of a scope being removed prior to inlining an instance
18009 body.
18010 (Analyze_Package_Instantiation): Do not perform front-end inlining when
18011 the current context is itself an instance within a non-instance child
18012 unit, to prevent scope stack errors.
18013 (Save_References): If the node is an aggregate that is an actual in a
18014 call, rewrite as a qualified expression to preserve some type
18015 information, to resolve possible ambiguities in the instance.
18016 (Instance_Parent_Unit): New global variable to record the ultimate
18017 parent unit associated with a generic child unit instance (associated
18018 with the existing Parent_Unit_Visible flag).
18019 (type Instance_Env): New component Instance_Parent_Unit for stacking
18020 parents recorded in the global Instance_Parent_Unit.
18021 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
18022 stack.
18023 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
18024 it's not a top-level unit, and only do this if Instance_Parent_Unit is
18025 not already set. Replace test of Is_Child_Unit with test of parent's
18026 scope against package Standard. Add comments and a ??? comment.
18027 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
18028 on a child instance parent to test that the parent equals
18029 Instance_Parent rather than simply checking that the unit is not a
18030 child unit.
18031 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
18032 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
18033 a formal interface are ancestors of the corresponding actual.
18034 (Validate_Formal_Interface_Type): Additional legality checks.
18035 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
18036 interface types with ancestors.
18037 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
18038 to diagnose attempts to use generic within its own declaration.
18039
18040 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18041 Javier Miranda <miranda@adacore.com>
18042
18043 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
18044 discriminant.
18045 (Build_Private_Derived_Type): The entity of the created full view of the
18046 derived type does not come from source. If after installing the private
18047 declarations of the parent scope the parent is still private, use its
18048 full view to construct the full declaration of the derived type.
18049 (Build_Derived_Record_Type): Relax the condition that controls the
18050 execution of the check that verifies that the partial view and
18051 the full view agree in the set of implemented interfaces. In
18052 addition, this test now only takes into account the progenitors.
18053 (Derive_Interface_Subprograms): No need to derive subprograms
18054 of ancestors that are interfaces.
18055 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
18056 associated code.
18057 Change name Is_Package to Is_Package_Or_Generic_Package
18058 (Complete_Subprograms_Derivation): Handle the case in which the full
18059 view is a transitive derivation of the ancestor of the partial view.
18060 (Process_Full_View): Rename local subprogram Find_Interface_In_
18061 Descendant to Find_Ancestor_Interface to leave the code more clear.
18062 Remove wrong code that avoids the generation of an error message
18063 when the immediate ancestor of the partial view is an interface.
18064 In addition some minor reorganization of the code has been done to
18065 leave it more clear.
18066 (Analyze_Type_Declaration): If type has previous incomplete tagged
18067 partial view, inherit properly its primitive operations.
18068 (Collect_Interfaces): Make public, for analysis of formal
18069 interfaces.
18070 (Analyze_Interface_Declaration): New procedure for use for regular and
18071 formal interface declarations.
18072 (Build_Derived_Record_Type): Add support for private types to the code
18073 that checks if a tagged type implements abstract interfaces.
18074 (Check_Aliased_Component_Type): The test applies in the spec of an
18075 instance as well.
18076 (Access_Type_Declaration): Clean up declaration of malformed type
18077 declared as an access to its own classwide type, to prevent cascaded
18078 crash.
18079 (Collect_Interfaces): For private extensions and for derived task types
18080 and derived protected types, the parent may be an interface that must
18081 be included in the interface list.
18082 (Access_Definition): If the designated type is an interface that may
18083 contain tasks, create Master_Id for it before analyzing the expression
18084 of the declaration, which may be an allocator.
18085 (Record_Type_Declaration): Set properly the interface kind, for use
18086 in allocators, the creation of master id's for task interfaces, etc.
18087
18088 2005-11-14 Javier Miranda <miranda@adacore.com>
18089 Ed Schonberg <schonberg@adacore.com>
18090
18091 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
18092 omitted in case of stream attribute subprograms.
18093 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
18094 appear immediately after a subprogram body, when there is no previous
18095 subprogram declaration.
18096 Change name Is_Package to Is_Package_Or_Generic_Package
18097 (Process_Formals): A non null qualifier on a non null named access
18098 type is not an error, and is a warning only if Redundant_Constructs
18099 are flagged.
18100
18101 2005-11-14 Gary Dismukes <dismukes@adacore.com>
18102 Ed Schonberg <schonberg@adacore.com>
18103
18104 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
18105 nested within Analyze_Package_Specification to install the private
18106 declarations and use clauses within each of the parent units of a
18107 package instance of a generic child package.
18108 (Analyze_Package_Specification): When entering a private part of a
18109 package associated with a generic instance or formal package, the
18110 private declarations of the parent must be installed (by calling new
18111 procedure Install_Parent_Private_Declarations).
18112 Change name Is_Package to Is_Package_Or_Generic_Package
18113 (Preserve_Full_Attributes): For a synchronized type, the corresponding
18114 record is absent in a generic context, which does not indicate a
18115 compiler error.
18116
18117 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18118
18119 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
18120 not try to rewrite a renamed stream attribute, because the operations
18121 on the type may not have been generated.
18122 Handle properly a renaming_as_body generated for a stream operation
18123 whose default is abstract because the object type itself is abstract.
18124 (Find_Type): If the type is incomplete and appears as the prefix of a
18125 'Class reference, it is tagged, and its list of primitive operations
18126 must be initialized properly.
18127 (Chain_Use_Clauses): When chaining the use clauses that appear in the
18128 private declaration of a parent unit, prior to compiling the private
18129 part of a child unit, find on the scope stack the proper parent entity
18130 on which to link the use clause.
18131 (Note_Redundant_Use): Emit a warning when a redundant use clause is
18132 detected.
18133 (Analyze_Object_Renaming): An attribute reference is not a legal object
18134 if it is not a function call.
18135
18136 2005-11-14 Robert Dewar <dewar@adacore.com>
18137 Ed Schonberg <schonberg@adacore.com>
18138
18139 * sem_eval.adb: Implement d.f flag
18140 (Subtype_Statically_Match): A generic actual type has unknown
18141 discriminants when the corresponding actual has a similar partial view.
18142 If the routine is called to validate the signature of an inherited
18143 operation in a child instance, the generic actual matches the full view,
18144
18145 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
18146 Ed Schonberg <schonberg@adacore.com>
18147 Robert Dewar <dewar@adacore.com>
18148 Thomas Quinot <quinot@adacore.com>
18149
18150 * sem_res.adb (Resolve_Call): Provide a better error message whenever
18151 a procedure call is used as a select statement trigger and is not an
18152 entry renaming or a primitive of a limited interface.
18153 (Valid_Conversion): If the operand has a single interpretation do not
18154 remove address operations.
18155 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
18156 statement to inhibit warning.
18157 (Resolve_Unary_Op): Do not produce a warning when
18158 processing an expression of the form -(A mod B)
18159 Use Universal_Real instead of Long_Long_Float when we need a high
18160 precision float type for the generated code (prevents gratuitous
18161 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
18162 (Resolve_Concatenation_Arg): Improve error message when argument is an
18163 ambiguous call to a function that returns an array.
18164 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
18165 there is an implicit operator in the given scope if we are within an
18166 instance: legality check has been performed on the generic.
18167 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
18168 after resolving operand, to avoid false warnings on overloaded calls.
18169
18170 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18171 Javier Miranda <miranda@adacore.com>
18172
18173 PR ada/15604
18174 * sem_type.adb (Covers): In an inlined body, a composite type matches
18175 a private type whose full view is a composite type.
18176 (Interface_Present_In_Ancestor): Protect the frontend against
18177 previously detected errors to ensure that its compilation
18178 with assertions enabled gives the same output that its
18179 compilation without assertions.
18180 (Interface_Present_In_Ancestor): Add support for private types.
18181 Change name In_Actual to In_Generic_Actual (clean up)
18182 (Disambiguate): New predicate In_Actual, to recognize expressions that
18183 appear in the renaming declaration generated for generic actuals, and
18184 which must be resolved in the outer context.
18185
18186 2005-11-14 Robert Dewar <dewar@adacore.com>
18187 Thomas Quinot <quinot@adacore.com>
18188 Hristian Kirtchev <kirtchev@adacore.com>
18189 Ed Schonberg <schonberg@adacore.com>
18190
18191 * sem_util.ads, sem_util.adb: Change name Is_Package to
18192 Is_Package_Or_Generic_Package.
18193 (Check_Obsolescent): New procedure.
18194 (Set_Is_Public): Remove obsolete junk test.
18195 (Set_Public_Status): Do not set Is_Public on an object whose declaration
18196 occurs within a handled_sequence_of_statemets.
18197 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
18198 for a parameterless procedure.
18199 (Enter_Name): Recognize renaming declarations created for private
18200 component of a protected type within protected operations, so that
18201 the source name of the component can be used in the debugger.
18202
18203 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18204 Robert Dewar <dewar@adacore.com>
18205
18206 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
18207 of a generic subprogram are not visible outside the body.
18208 (Set_Warning_Switch): New procedure (code to set warning mode moved
18209 here from Switch.C so that it can be shared by pragma processing.
18210 (Check_References): Special case warning for non-modified non-imported
18211 volatile objects.
18212 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
18213 form with a string literal argument
18214
18215 2005-11-14 Javier Miranda <miranda@adacore.com>
18216
18217 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
18218 anonymous access.
18219 (Write): Addition of "not null" to the anonymous access.
18220 (Read): Addition of "not null" to the anonymous access.
18221 (Write): Addition of "not null" to the anonymous access.
18222
18223 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
18224 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
18225 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
18226 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
18227 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
18228 "not null" to the anonymous access.
18229
18230 2005-11-14 Robert Dewar <dewar@adacore.com>
18231
18232 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
18233 offset values
18234
18235 2005-11-14 Vincent Celier <celier@adacore.com>
18236
18237 * switch.adb (Bad_Switch): New procedure
18238 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
18239 message when in error.
18240
18241 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
18242 Too_Many_Output_Files): Remove declarations, no longer used.
18243 (Scan_Nat): New parameter Switch
18244 (Scan_Pos): Ditto
18245 (Bad_Switch): New procedure
18246
18247 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
18248 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
18249 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
18250 to Osint.Fail. Do not handle any exception.
18251
18252 2005-11-14 Vincent Celier <celier@adacore.com>
18253
18254 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
18255 designates a non existent directory.
18256
18257 2005-11-14 Robert Dewar <dewar@adacore.com>
18258
18259 * xgnatugn.adb: Replace invalid membership test by 'Valid
18260
18261 2005-11-14 Vincent Celier <celier@adacore.com>
18262
18263 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
18264 there is no object directory.
18265
18266 2005-11-14 Robert Dewar <dewar@adacore.com>
18267
18268 * usage.adb: Minor adjustment to output format, use nn instead of nnn
18269 (so that -gnateInnn does not run into next column)
18270
18271 2005-11-14 Ed Falis <falis@adacore.com>
18272
18273 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
18274 "constrained"
18275
18276 2005-11-14 Cyrille Comar <comar@adacore.com>
18277
18278 * s-chepoo.ads: Add comments on Dereference.
18279 Remove unnecessary inherited abstract primitives.
18280 Cosmetic cleanup.
18281
18282 2005-11-14 Robert Dewar <dewar@adacore.com>
18283
18284 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
18285 node parameter, not needed, since it is available as Declaration_Node.
18286
18287 2005-11-14 Geert Bosch <bosch@adacore.com>
18288
18289 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
18290 grammatically correct.
18291
18292 2005-11-14 Vincent Celier <celier@adacore.com>
18293
18294 * s-fileio.ads: Correct spelling error in comment
18295
18296 2005-11-14 Cyrille Comar <comar@adacore.com>
18297 Robert Dewar <dewar@adacore.com>
18298 Vincent Celier <celier@adacore.com>
18299 Ben Brosgol <brosgol@adacore.com>
18300 Jose Ruiz <ruiz@adacore.com>
18301 Pascal Obry <obry@adacore.com>
18302
18303 * gnat_ugn.texi:
18304 Document that -fstack-check is needed for strict compliance with the
18305 Ada 95 Reference Manual.
18306 Correct reference to VAX systems to meet HP guidelines
18307 Add documentation for new gnatmake switches -vl, -vm and -vh
18308 Replace DEC Ada by HP Ada
18309 Replace DIGITAL by HP
18310 Remove empty section on tools in compatibility section
18311 Clarify the Windows convention semantics.
18312 Document the Win32 calling convention.
18313 The Stdcall, Win32 and DLL convention are synonyms.
18314 Add a note in -gnatR description about zero size record components
18315 Note on new >= and <= warnings for -gnatwc
18316 Document that equal sign after -gnatm is optional.
18317 Note that strip is working fine on DLL built with a Library
18318 Project. The restriction apply only to DLL built with gnatdll.
18319 Update section about the way to debug a DLL.
18320 Update information about the DLL convention.
18321 Document -C switch for gnatprep
18322 Document new attribute Library_ALI_Dir
18323 Update elaboration doc to include implicit Elaborate pragmas now
18324 generated for subprogram instantiations.
18325 Document limitation on executable names that include spaces for --GCC,
18326 --GNATBIND, and --GNATLINK switches.
18327 Document that -w causes -gnatws to be added at start of gcc switches
18328
18329 * gnat_rm.texi: Document that -mieee is needed for generating infinite
18330 and NaN values in case of overflow on machines that are not fully
18331 compliant with the IEEE floating-point standard.
18332 Create a section describing the set of compiler options needed for
18333 strict compliance with the Ada 95 Reference Manual.
18334 Add documentation for pragma Obsolescent applied to a package
18335 Clarify potential issues of mixed language programs related to the
18336 I/O buffering enabling in the elaboration of the GNAT runtime.
18337 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
18338 This documentation only patch adds extra documentsion for pragma
18339 Restrictions (No_Elaboration_Code), explaining why it is not possible
18340 to document this restriction in terms of allowed source constructs.
18341 Document string literal form of pragma Warnings
18342 Document new attribute Library_ALI_Dir
18343 Add documentation on stable attributes in project files that was missing
18344
18345 * gnat-style.texi: Indicate that paragraphs within a single comment
18346 should be separated by empty comment lines
18347
18348 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
18349 /05 respectively)
18350
18351 * bindusg.adb: Minor cleanup, put -m before -M for consistency
18352
18353 2005-11-14 Robert Dewar <dewar@adacore.com>
18354
18355 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
18356 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
18357 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
18358 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
18359 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
18360 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
18361 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18362 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
18363 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
18364 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18365 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
18366 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
18367 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
18368 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
18369 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
18370 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
18371 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
18372 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
18373 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
18374 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
18375 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18376 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
18377 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
18378 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
18379 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
18380 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
18381 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
18382 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
18383 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
18384 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
18385 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
18386 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
18387 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
18388 system-interix.ads, system-solaris-sparc.ads,
18389 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
18390 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
18391 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
18392 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
18393 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
18394 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
18395 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
18396 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18397 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18398 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
18399 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
18400 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
18401 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
18402 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
18403 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
18404 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18405 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
18406 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
18407 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
18408 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
18409 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
18410 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
18411 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
18412 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
18413 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
18414 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18415 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18416 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
18417 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
18418 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
18419 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
18420 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
18421 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18422 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
18423 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
18424 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
18425 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18426 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
18427 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
18428 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
18429 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
18430 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
18431 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
18432 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
18433 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
18434 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
18435 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
18436 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
18437 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
18438 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
18439 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
18440 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
18441 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
18442 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
18443 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
18444 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
18445 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
18446 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
18447 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
18448 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
18449 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
18450 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
18451 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18452 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
18453 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
18454 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
18455 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
18456 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
18457 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
18458 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
18459 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18460 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
18461 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
18462 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
18463 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
18464 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18465 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
18466 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
18467 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
18468 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18469 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
18470 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
18471 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
18472 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18473 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
18474 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
18475 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
18476 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18477 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
18478 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
18479 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
18480 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18481 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
18482 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
18483 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
18484 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
18485 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
18486 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
18487 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
18488 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
18489 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
18490 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
18491 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
18492 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
18493 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
18494 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
18495 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
18496 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
18497 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
18498 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18499 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
18500 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
18501 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
18502 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
18503 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
18504 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
18505 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
18506 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
18507 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
18508 a-numaux-darwin.ads, a-numaux-darwin.adb,
18509 a-swuwha.ads, a-stunha.ads: Minor reformatting
18510
18511 2005-11-14 Robert Dewar <dewar@adacore.com>
18512
18513 PR ada/18434
18514 * osint-m.adb: Add pragma Elaborate_All for Osint
18515
18516 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
18517
18518 PR ada/23995
18519 * trans.c (call_to_gnu): Restore statement lost in translation.
18520
18521 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
18522
18523 * init.c: Use the Linux-specific section for the IA-64/Linux target.
18524 (__gnat_adjust_context_for_raise): Add conditional code so that the
18525 IA-64 is also supported.
18526
18527 2005-11-03 James E Wilson <wilson@specifix.com>
18528
18529 PR ada/23427
18530 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
18531 TREE_OVERFLOW check.
18532
18533 2005-09-21 Olivier Hainque <hainque@adacore.com>
18534
18535 PR ada/22418
18536 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
18537 as we create them to store a size in bits.
18538
18539 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
18540
18541 PR ada/21937
18542 PR ada/22328
18543 PR ada/22381
18544 PR ada/22383
18545 PR ada/22419
18546 PR ada/22420
18547 * utils2.c (build_return_expr): New helper function.
18548 * gigi.h (build_return_expr): Declare it.
18549 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
18550 of manually building the RETURN_EXPR tree.
18551 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
18552 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
18553 build_binary_op for the "target pointer" case. Use build_return_expr
18554 instead of manually building the RETURN_EXPR tree.
18555
18556 2005-09-16 Laurent Guerby <laurent@guerby.net>
18557
18558 PR ada/23788
18559 * s-tpinop.ads: Make this unit Preelaborate.
18560
18561 2005-09-16 Andreas Jaeger <aj@suse.de>
18562
18563 * socket.c: Add string.h for memcpy.
18564
18565 2005-09-05 Arnaud Charlet <charlet@adacore.com>
18566
18567 * dec-io.ads, dec-io.adb: Removed, no longer used.
18568
18569 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18570
18571 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
18572
18573 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18574 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
18575 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
18576 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
18577 dependent units are Preelaborate.
18578 (Initialize): Call Interrupt_Managemeent.Initialize and
18579 OS_Primitives.Initialize to ensure proper initialization of this unit.
18580 Remove use of System.Soft_Links
18581 Make this unit Preelaborate.
18582
18583 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18584 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
18585 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
18586 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
18587 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
18588 s-tratas.ads, s-tasinf.ads: Minor reformatting.
18589 Add pragma Preelaborate, since these packages are suitable for this
18590 categorization.
18591 Update comments.
18592
18593 * s-traent-vms.ads, s-intman-dummy.adb,
18594 s-taprop-dummy.adb: Make this unit Preelaborate.
18595
18596 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
18597 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
18598 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
18599 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
18600 s-intman-solaris.adb, s-intman-irix-athread.adb,
18601 s-intman-irix.adb: Mark this unit Preelaborate.
18602 (Initialize): New procedure.
18603 Update comments.
18604
18605 * s-taspri-linux.ads: Removed.
18606
18607 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
18608 as done by other implementations (e.g. posix).
18609
18610 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
18611 responsible for deferring abort.
18612 Mark this unit Preelaborate.
18613
18614 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
18615 proper initialization of the tasking run-time.
18616
18617 * s-tasdeb.ads: Mark this unit Preelaborate.
18618 (Known_Tasks): Add explicit default value to avoid elaboration code.
18619
18620 * s-inmaop-vms.adb (Elaboration code): Add call to
18621 Interrupt_Management.Initialize since the elaboration code depends on
18622 proper initialization of this package.
18623
18624 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
18625 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
18626 s-osprim-posix.adb: Make this unit Preelaborate.
18627
18628 * a-calend.adb: Add call to OS_Primitives.Initialize
18629
18630 * a-elchha.adb: Update use of Except.Id.Full_Name.
18631 Minor reformatting.
18632 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
18633
18634 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
18635 Move with clauses outside Warnings Off now that dependent units are
18636 Preelaborate.
18637 Use raise xxx with "..."; Ada 2005 form.
18638
18639 * a-taside.ads, a-taside.adb:
18640 Remove some dependencies, to make it easier to make this unit truly
18641 Preelaborate.
18642 Rewrite some code to be conformant with Preelaborate rules.
18643
18644 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
18645 marked Preelaborate in the future.
18646
18647 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
18648 these units Preelaborate.
18649
18650 * s-exctab.adb: Update use of Except.Id.Full_Name.
18651
18652 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
18653 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
18654 Set_Exc_Stack_Addr): Removed, no longer used.
18655 Remove reference to *Machine_State_Addr*, no longer needed.
18656
18657 * s-stalib.ads: Mark this unit as Preelaborate[_05].
18658 (Exception_Data): Full_Name is now a System.Address so that this unit
18659 can be made Preelaborate.
18660 Clean up/simplify code thanks to Full_Name being a System.Address.
18661 Remove obsolete pragma Suppress (All_Checks), no longer needed.
18662
18663 * s-taskin.ads, s-taskin.adb:
18664 Move with clauses outside Warnings Off now that dependent units are
18665 Preelaborate.
18666 Make this unit Preelaborate.
18667 (Initialize): New proceduure, replace elaboration code and makes the
18668 set up of the tasking run-time cleaner.
18669 (Detect_Blocking): Now a function instead of a deferred boolean, to
18670 obey Preelaborate rules.
18671
18672 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
18673 soft links, no longer used.
18674
18675 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
18676 packages are suitable for this categorization.
18677
18678 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
18679 since we compile run-time sources in Ada 2005 mode.
18680 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
18681 avoid having s-taprop*.adb depend on s-soflin and to avoid code
18682 duplication.
18683 Remove reference to *Machine_State_Addr*, no longer needed.
18684
18685 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18686
18687 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
18688 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18689 Remove reference to System.Exceptions.
18690
18691 * s-mastop-x86.adb: Removed, no longer used.
18692
18693 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
18694
18695 * a-excach.adb: Minor reformatting.
18696
18697 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
18698 instead fix new warnings that were hidden by this change.
18699 (AAA, ZZZ): Removed, replaced by...
18700 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
18701 are used instead of constants, to help make Ada.Exception truly
18702 preelaborate.
18703 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
18704 Raise_Storage_Error): File is now a System.Address, to simplify code.
18705 (Elab code): Removed, no longer used.
18706 (Null_Occurrence): Remove Warnings Off and make this construct
18707 preelaborate.
18708 Remove code related to front-end zero cost exception handling, since
18709 it is no longer used.
18710 Remove -gnatL/-gnatZ switches.
18711
18712 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
18713 Update use of Except.Msg.
18714
18715 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
18716 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
18717 to front-end zero cost exception handling, since it is no longer used.
18718 Remove -gnatL/-gnatZ switches.
18719
18720 * lib-writ.ads: Minor reformatting
18721 Remove doc of UX
18722
18723 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
18724
18725 * Make-lang.in: Remove references to s-except.ads
18726
18727 * s-except.ads: Removed, no longer used.
18728
18729 * s-mastop.ads, s-mastop.adb:
18730 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18731 Remove reference to System.Exceptions.
18732
18733 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
18734 switch-b.adb: Remove code related to front-end zero cost exception
18735 handling, since it is no longer used.
18736 Remove -gnatL/-gnatZ switches.
18737
18738 2005-09-01 Robert Dewar <dewar@adacore.com>
18739 Gary Dismukes <dismukes@adacore.com>
18740 Javier Miranda <miranda@adacore.com>
18741
18742 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
18743 type by valid test and generate warning.
18744 (Tagged_Membership): Generate call to the run-time
18745 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
18746 Change formal name Subtype_Mark to Result_Definition in several calls to
18747 Make_Function_Specification.
18748 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
18749 check for proper accessibility of the operand of a class-wide allocator.
18750 The check can be left out if checks are suppressed or if the expression
18751 has a specific tagged type whose level is known to be safe.
18752
18753 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
18754 generates the run-time check associated with null-excluding entities.
18755 (Expand_N_Return_Statement): Add tests to determine if the accessibility
18756 check on the level of the return expression of a class-wide function
18757 can be elided. The check usually isn't needed if the expression has a
18758 specific type (unless it's a conversion or a formal parameter). Also
18759 add a test for whether accessibility checks are suppressed. Augment
18760 the comments to describe the conditions for performing the check.
18761
18762 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
18763 Javier Miranda <miranda@adacore.com>
18764 Gary Dismukes <dismukes@adacore.com>
18765 Ed Schonberg <schonberg@adacore.com>
18766
18767 * a-tags.adb (IW_Membership): Give support to
18768 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
18769 subprogram has been extended to look for the tag in the ancestors tag
18770 table.
18771 Update the structure of the GNAT Dispatch Table to reflect the
18772 additional two tables used in dispatching selects.
18773 Introduce appropriate array types and record components in
18774 Type_Specific_Data to reflect the two tables.
18775 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
18776 the TSD of a tag, indexed by position.
18777 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
18778 operation kind in the TSD of a tag, indexed by position.
18779
18780 * a-tags.ads: Introduce an enumeration type to capture different
18781 primitive operation kinds. Define a constant reflecting the number of
18782 predefined primitive operations.
18783 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
18784 of an entry wrapper.
18785 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
18786 callable entity of a primitive operation.
18787
18788 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
18789 primitive operations used in dispatching selects for limited
18790 interfaces, limited tagged, task and protected types what implement a
18791 limited interface.
18792 (Freeze_Type): Generate the bodies of the primitive operations used in
18793 dispatching selects for limited tagged, task and protected types that
18794 implement a limited interface. Generate statements to populate the two
18795 auxiliary tables used for dispatching in select statements.
18796 (Freeze_Record_Type): Add call to initialize the dispatch table entries
18797 associated with predefined interface primitive operations.
18798 (Build_Dcheck_Function): Change Set_Subtype_Mark to
18799 Set_Result_Definition.
18800 (Build_Variant_Record_Equality): Change Subtype_Mark to
18801 Result_Definition.
18802 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
18803 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
18804 (Build_Assignment): Simplify the code that adds the run-time-check.
18805 (Expand_N_Object_Declaration): Code cleanup.
18806
18807 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
18808 entries when there is a protected type that implements a limited
18809 interface.
18810
18811 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
18812 common routines used in expansion of dispatching selects.
18813 (Add_Private_Declarations): Select the appropriate protection type when
18814 there is a protected type that implements a limited interface.
18815 (Build_Parameter_Block): Generate a wrapped parameter block.
18816 (Build_Protected_Subprogram_Body): Select the appropriate type for
18817 locking entries when there is a protected type that implements a
18818 limited interface.
18819 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
18820 classified as entry wrappers.
18821 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
18822 asynchronous selects.
18823 (Expand_N_Conditional_Entry_Call): Add support for expansion of
18824 dispatching conditional selects.
18825 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
18826 protection when there is a protected type that implements limited
18827 interfaces.
18828 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
18829 timed selects.
18830 (Extract_Dispatching_Call): Extract the entity of the name of a
18831 dispatching call, the object parameter, actual parameters and
18832 corresponding formals.
18833 (Make_Initialize_Protection): Correct logic of protection initialization
18834 when there is a protected type that implements a limited interface.
18835 (Parameter_Block_Pack): Populate a wrapped parameter block with the
18836 values of actual parameters.
18837 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
18838 block and assign them to the original actual parameters.
18839
18840 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
18841 (Build_Protected_Sub_Specification): Change the type and name of the
18842 last formal to account for the increased variety of protection modes.
18843
18844 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
18845 entities. Used to save the value of the Is_Hidden attribute when the
18846 limited-view is installed.
18847 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
18848 the attribute of procedures classified as entry wrappers.
18849 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
18850 entity of a primitive wrapper.
18851 (Write_Entity_Flags): Output the name and value of the
18852 Is_Primitive_Wrapper attribute.
18853 (Write_Field27_Name): Output the name and entity of the field Wrapped_
18854 Entity.
18855 (Underlying_Type): If we have an incomplete entity that comes from
18856 the limited view then we return the Underlying_Type of its non-limited
18857 view if it is already available.
18858 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
18859 including operators.
18860 (Write_Field26_Name): Add entry for Overridden_Operation
18861 (Overridden_Operation): New attribute of functions and procedures.
18862
18863 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
18864 predefined position in the dispatch table for the primitive operations
18865 used in dispatching selects.
18866 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
18867 predefined primitive operations and replace it with
18868 Default_Prim_Op_Count.
18869 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
18870 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
18871 the names of the generated primitive operations used in dispatching
18872 selects.
18873 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
18874 case of abstract interface types. They will be inherit by the objects
18875 implementing the interface.
18876 (Make_DT): There is no need to inherit the dispatch table of the
18877 ancestor interface for the elaboration of abstract interface types.
18878 The dispatch table will be inherited by the object implementing the
18879 interface.
18880 (Copy_Secondary_DTs): Add documentation.
18881 (Validate_Position): Improve this static check in case of
18882 aliased subprograms because aliased subprograms must have
18883 the same position.
18884 (Init_Predefined_Interface_Primitives): New subprogram that initializes
18885 the entries associated with predefined primitives of all the secondary
18886 dispatch tables.
18887 (Build_Anonymous_Access_Type): Removed.
18888 (Expand_Interface_Actuals): With the previous cleanup there is no need
18889 to build an anonymous access type. This allows further cleanup in the
18890 code generated by the expander.
18891 (Expand_Interface_Conversion): If the actual is an access type then
18892 build an internal function to handle the displacement. If the actual
18893 is null this function returns null because no displacement is
18894 required; otherwise performs a type conversion that will be
18895 expanded in the code that returns the value of the displaced actual.
18896 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
18897 conversions that have no effect in the generated code because no
18898 displacement is required. Code cleanup; use local variables to
18899 avoid repeated calls to the subprogram directly_designated_type().
18900
18901 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
18902 Classify the primitive operations used in dispatching selects as
18903 predefined.
18904 (Implements_Limited_Interface): Determine whether some type either
18905 directly implements a limited interface or extends a type that
18906 implements a limited interface.
18907 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
18908 (Expand_Subtype_From_Expr): Do not build actual subtype if the
18909 expression is limited.
18910 (Find_Interface_Tag): Add code to handle class-wide types and
18911 entities from the limited-view.
18912
18913 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
18914 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
18915 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
18916 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
18917 Set_Prim_Op_Kind.
18918
18919 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
18920 of procedure name or prefix that appears as a trigger in a triggering
18921 alternative.
18922
18923 * uintp.ads: Introduce constants Uint_11 and Uint_13.
18924
18925 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18926
18927 * s-tataat.adb, a-tasatt.adb:
18928 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
18929
18930 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
18931 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
18932 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
18933 longer used.
18934
18935 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18936 Jose Ruiz <ruiz@adacore.com>
18937
18938 * s-taprop-vxworks.adb:
18939 Move with clauses outside Warnings Off now that dependent units are
18940 Preelaborate.
18941 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
18942 initialization of this unit.
18943 (Specific): Add new procedures Initialize and Delete so that this
18944 package can be used for VxWorks 5.x and 6.x
18945 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
18946 differences between VxWorks 5.x and 6.x
18947 Minor reformatting.
18948 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
18949 caller.
18950 Use only Preelaborate-compatible constructs.
18951
18952 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
18953 Primitives.Operations.
18954 (Delete, Initialize): New procedures.
18955
18956 * s-osinte-vxworks.adb: Body used to handle differences between
18957 VxWorks 5.x and 6.x
18958 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
18959
18960 * s-osinte-vxworks.ads: Minor reformatting.
18961 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
18962 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
18963 and 6.
18964 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
18965 between Vxworks 5 and 6.
18966 (taskLock, taskUnlock): Removeed, no longer used.
18967
18968 * adaint.c: The wait.h header is not located in the sys directory on
18969 VxWorks when using RTPs.
18970 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
18971 using RTPs.
18972 (__gnat_dup): dup is available on Vxworks when using RTPs.
18973 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
18974
18975 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
18976
18977 * expect.c: The wait.h header is not located in the sys directory on
18978 VxWorks when using RTPs.
18979
18980 2005-09-01 Thomas Quinot <quinot@adacore.com>
18981
18982 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
18983
18984 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
18985
18986 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
18987 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
18988 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
18989 g-soccon-freebsd.ads: Add new constants:
18990 IP_MULTICAST_IF
18991 SO_RCVTIMEO/SO_SNDTIMEO
18992 IOV_MAX
18993
18994 * gen-soccon.c:
18995 Move all target-specific file inclusions and macro definitions to
18996 gsocket.h, in order to ensure that any C code in socket.c will see a
18997 set of constants that is consistent with the contents of g-soccon.ads.
18998
18999 * gsocket.h: Code imported from gen-soccon.c:
19000 Move all target-specific file inclusions and macro definitions to
19001 gsocket.h, in order to ensure that any C code in socket.c will see a set
19002 of constants that is consistent with the contents of g-soccon.ads.
19003 This change also makes gen-soccon self-contained (removing dependencies
19004 upon GCC internal headers).
19005
19006 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
19007 iovecs at a time.
19008 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
19009
19010 * socket.c: Minor reformatting.
19011
19012 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19013 Thomas Quinot <quinot@adacore.com>
19014
19015 * fname-sf.adb, mlib-tgt.ads,
19016 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
19017 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
19018 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
19019 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
19020 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
19021 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
19022 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
19023 makegpr.adb: Remove redundant use_clauses.
19024
19025 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19026
19027 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
19028 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
19029 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
19030 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
19031 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
19032 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
19033 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
19034 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
19035 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19036 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
19037 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
19038 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
19039 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
19040 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
19041 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
19042 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
19043 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19044 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
19045 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
19046 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
19047 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
19048 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
19049 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
19050 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
19051 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
19052 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
19053 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
19054 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
19055 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
19056 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
19057 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
19058 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
19059 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
19060 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
19061 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
19062 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
19063 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
19064 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
19065 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
19066 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
19067 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
19068 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
19069 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
19070 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
19071 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
19072 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
19073 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
19074 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
19075 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
19076 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
19077 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
19078 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
19079 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
19080 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
19081 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
19082 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
19083 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
19084 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
19085 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
19086 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
19087 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
19088 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
19089 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
19090 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
19091 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
19092 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
19093 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
19094 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
19095 and always use the no parameter form for consistency.
19096
19097 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
19098
19099 2005-09-01 Robert Dewar <dewar@adacore.com>
19100
19101 * binde.adb: Minor reformatting
19102 (Find_Elab_Order): Output warning if -p used with static elab order
19103
19104 2005-09-01 Robert Dewar <dewar@adacore.com>
19105
19106 * checks.adb (Check_Needed): New procedure, deals with removing checks
19107 based on analysis of short-circuited forms. Also generates warnings for
19108 improper use of non-short-circuited forms.
19109 Code clean ups.
19110
19111 2005-09-01 Robert Dewar <dewar@adacore.com>
19112
19113 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
19114 with 'Valid tests.
19115
19116 2005-09-01 Robert Dewar <dewar@adacore.com>
19117
19118 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
19119 spec.
19120 Implement new insertion char < (conditional warning)
19121 * errutil.adb, erroutc.adb: Implement new insertion char <
19122 (conditional warning).
19123 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
19124 (Error_Msg_Warn): New variable for < insertion char.
19125 * prj-nmsc.adb: Implement new errout insertion char < (conditional
19126 warning).
19127 (Check_For_Source): Change value of Source_Id only after the current
19128 source has been dealt with.
19129
19130 2005-09-01 Robert Dewar <dewar@adacore.com>
19131 Doug Rupp <rupp@adacore.com>
19132
19133 * exp_attr.adb: Handle vax fpt for 'Valid attribute
19134 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
19135 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
19136 (Valid_D, Valid_F, Valid_G): New functions
19137
19138 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19139 Hristian Kirtchev <kirtchev@adacore.com>
19140 Javier Miranda <miranda@adacore.com>
19141
19142 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
19143 from object notation, the original node is unanalyzed and carries no
19144 semantic information, so that accessiblity checks must be performed on
19145 the type of the actual itself.
19146 (Expand_N_Subprogram_Declaration): Change last actual parameter for
19147 compatibility with Build_Protected_Sub_Specification.
19148 (Check_Overriding_Inherited_Interfaces): Add suport to handle
19149 overloaded primitives.
19150 (Register_Interface_DT_Entry): Use the new name of the formal
19151 the the calls to Expand_Interface_Thunk
19152
19153 * exp_dbug.ads: Augment comments on encoding of protected types to
19154 include the generation of dispatching subprograms when the type
19155 implements at least one interface.
19156
19157 * lib.ads: Extend information in Load_Stack to include whether a given
19158 load comes from a Limited_With_Clause.
19159
19160 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
19161 whether a potential circularity is harmless, because it includes units
19162 loaded through a limited_with clause. Extends previous treatment which
19163 did not handle properly arbitrary combinations of limited and
19164 non-limited clauses.
19165
19166 2005-09-01 Nicolas Setton <setton@adacore.com>
19167
19168 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
19169 to be encoded as typ___XBLU_lowerbound__upperbound instead of
19170 typ___XB_lowerbound__upperbound.
19171
19172 2005-09-01 Thomas Quinot <quinot@adacore.com>
19173
19174 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
19175 dummy access formal for RACW/RAS TypeCode TSS.
19176 (Build_TypeCode_Call): Do not generate dummy null access actual for
19177 calls to the TypeCode TSS.
19178
19179 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19180
19181 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
19182 fully qualified name, to distinguish instances with the same local name.
19183
19184 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
19185 fully qualified.
19186
19187 2005-09-01 Robert Dewar <dewar@adacore.com>
19188
19189 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
19190 packed arrays.
19191
19192 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
19193
19194 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
19195 (Free): New deallocation procedure for filter elements
19196 (Close): Deallocate any existing filter for the concerned connection
19197
19198 2005-09-01 Laurent Pautet <pautet@adacore.com>
19199
19200 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
19201 position set is provided, we compute one in order to reduce the maximum
19202 length of the keys. This computation first selects a character
19203 position between 1 and the minimum length of the keys in order to
19204 avoid reducing one of the keys to an empty string.
19205 (Initialize, Compute): When the ratio V to K is too low, the algorithm
19206 does not converge. The initialization procedure now comes with a
19207 maximum number of iterations such that when exceeded, an exception is
19208 raised in Compute. The user can initialize this ratio to another value
19209 and try again
19210 Reformating and updated headers.
19211
19212 2005-09-01 Javier Miranda <miranda@adacore.com>
19213
19214 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
19215 that given an entity T creates and returns an Itype that duplicates the
19216 contents of T. The returned Itype has the null-exclusion
19217 attribute set to True, and its Etype attribute references T
19218 to keep the association between the two entities.
19219 Update copyright notice
19220
19221 * sem_aggr.adb (Check_Can_Never_Be_Null,
19222 Aggregate_Constraint_Checks, Resolve_Aggregate,
19223 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
19224
19225 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
19226
19227 2005-09-01 Gary Dismukes <dismukes@adacore.com>
19228 Robert Dewar <dewar@adacore.com>
19229 Hristian Kirtchev <kirtchev@adacore.com>
19230
19231 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
19232 Result_Definition.
19233
19234 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
19235 function specs.
19236 Call Set_Result_Definition instead of Set_Subtype_Mark.
19237 (P_Subprogram_Specification): Add parsing of anonymous access result
19238 plus null exclusions. Call Set_Result_Definition instead of
19239 Set_Subtype_Mark.
19240
19241 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19242 (P_Access_Type_Definition): Add parsing for an anonymous access result
19243 subtype, plus parsing for null exclusions. Call Set_Result_Definition
19244 instead of Set_Subtype_Mark.
19245
19246 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19247 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
19248 (Result_Definition): New function for N_Function_Specifications.
19249 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
19250 N_Function_Specification.
19251 (Set_Null_Exclusion_Present): Allow this flag for
19252 N_Function_Specification.
19253 (Set_Result_Definition): New procedure for N_Function_Specifications.
19254 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
19255 and N_Function_Specification.
19256
19257 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
19258 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
19259 Add support for LIMITED NEW for Ada 2005 AI-419
19260 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
19261 syntax for anonymous access results.
19262 Replace Subtype_Mark field by Result_Definition in
19263 N_Function_Specification and N_Access_Definition specs.
19264 Add Null_Exclusion_Present to spec of N_Function_Specification.
19265 (Result_Definition): New function for N_Function_Specification and
19266 N_Access_Function_Definition.
19267 (Set_Result_Definition): New procedure for N_Function_Specification and
19268 N_Access_Function_Definition.
19269
19270 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
19271 Result_Definition for cases of N_Access_Function_Definition and
19272 N_Function_Specification.
19273 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
19274
19275 2005-09-01 Vincent Celier <celier@adacore.com>
19276
19277 * lib-writ.adb: Update Copyright notice
19278 (Write_With_Lines): On platforms where file names are case-insensitive,
19279 record the file names in lower case.
19280 (Write_ALI): For D lines, on platforms where file names are
19281 case-insensitive, record the file names in lower case.
19282
19283 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19284 Emmanuel Briot <briot@adacore.com>
19285
19286 * lib-xref.adb (Output_Overridden_Op): Display information on
19287 overridden operation.
19288
19289 * lib-xref.ads: Add documentation on overridden operations.
19290
19291 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
19292 information.
19293
19294 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
19295 overriding entity information.
19296
19297 2005-09-01 Vincent Celier <celier@adacore.com>
19298
19299 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
19300 including those that are inherited.
19301
19302 2005-09-01 Robert Dewar <dewar@adacore.com>
19303
19304 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
19305
19306 * par-prag.adb: Implement new pragma Debug_Policy
19307
19308 * sem_prag.adb Implement new pragma Debug_Policy
19309 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
19310 Component_Size attribute specification. Give warning for ignored pragma
19311 Pack.
19312
19313 * snames.h, snames.ads, snames.adb: Introduce entries in
19314 Preset_Names for Name_Disp_Asynchronous_Select,
19315 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
19316 Name_Disp_Timed_Select.
19317 New pragma Debug_Policy
19318
19319 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
19320 explicitly.
19321 Switch -gnata also sets Debug_Pragmas_Enabled
19322
19323 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
19324 handle an explicit -gnata when compiling predefined files.
19325
19326 2005-09-01 Vincent Celier <celier@adacore.com>
19327
19328 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
19329 directories of projects that have no Ada sources.
19330
19331 2005-09-01 Robert Dewar <dewar@adacore.com>
19332
19333 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
19334 (makes a difference for wide characters)
19335
19336 * widechar.adb, widechar.ads:
19337 Add Wide_Char_Byte_Count feature to count chars vs bytes
19338
19339 2005-09-01 Thomas Quinot <quinot@adacore.com>
19340 Ed Schonberg <schonberg@adacore.com>
19341 Robert Dewar <dewar@adacore.com>
19342
19343 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
19344 'Address attribute reference with an overloaded prefix, use the
19345 location of the prefix (not the location of the attribute reference) as
19346 the error location.
19347 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
19348 a function renaming thereof, is a valid prefix for 'Size (where it is
19349 intepreted as a function call).
19350 (Statically_Denotes_Entity): New predicate to determine whether the
19351 prefix of an array attribute can be considered static.
19352
19353 PR ada/9087
19354 (Eval_Attr): Fix failure to evaluate Component_Size for
19355 unconstrained arrays (resulted in wrong value in packed case, since
19356 back end cannot handle this case)
19357
19358 2005-09-01 Robert Dewar <dewar@adacore.com>
19359
19360 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
19361 error msgs for most common cases.
19362 Use new errout insertion char < (conditional warning)
19363
19364 2005-09-01 Javier Miranda <miranda@adacore.com>
19365 Ed Schonberg <schonberg@adacore.com>
19366
19367 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
19368 become local to the whole package.
19369 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
19370 the package was already analyzed the new algorithm "replaces" the
19371 real entities by the shadow ones. This is required to ensure that
19372 the order of these entities in the homonym chains does not change;
19373 otherwise we can have undefined references at linking time because
19374 in case of conflicts the external name of the entities will have
19375 a suffix that depends on the order of the entities in the chain.
19376 (Remove_Limited_With_Clause): Complementary code that completes the
19377 new algorithm and replaces the shadow entities by the real ones.
19378 (Install_Limited_Withed_Unit): When unchaining entities before the
19379 installation of the shadow entities, only regular entities of the
19380 public part must be taken into account. This is required to
19381 keep this routine in synch with the work done by Remove_Limited_
19382 With_Clause
19383 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
19384 even if unit is analyzed, because the analysis of the unit is
19385 idempotent in any case, and the limited view of the unit may have to
19386 be installed for proper visibility.
19387 (Expand_Limited_With_Clause): Even if the unit in the implicit
19388 with_clause has been analyzed already, a limited view of the package
19389 must be built for the current context, if it does not exist yet.
19390
19391 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19392 Javier Miranda <miranda@adacore.com>
19393 Gary Dismukes <dismukes@adacore.com>
19394
19395 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
19396 defining entity for the instance body, make a new defining identifier
19397 rather than copying the entity of the spec, to prevent accidental
19398 sharing of the entity list.
19399 (Check_Private_View): When exchanging views of private types, build the
19400 list of exchanged views as a stack, to ensure that on exit the exchanges
19401 are undone in the proper order.
19402 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
19403 Restore the compilation environment in case of instantiation_error.
19404 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
19405 for an anonymous access result.
19406 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
19407 (Formal_Entity): Handle properly the case of a formal package that
19408 denotes a generic package renaming.
19409
19410 2005-09-01 Thomas Quinot <quinot@adacore.com>
19411
19412 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
19413 clause if the array aggregate is surrounded by parentheses.
19414
19415 2005-09-01 Cyrille Comar <comar@adacore.com>
19416 Gary Dismukes <dismukes@adacore.com>
19417 Ed Schonberg <schonberg@adacore.com>
19418 Javier Miranda <miranda@adacore.com>
19419
19420 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
19421 underlying type
19422 to check if a type is Constrained in cases related to code generation
19423 (rather than semantic checking) since otherwise we do not generate
19424 similar code for mutable private types depending if their
19425 discriminants are visible or not.
19426 (Check_Abstract_Overriding): Do not complain about failure to override
19427 the primitive operations used in dispatching selects since they will
19428 always be overriden at the freeze point of the type.
19429 (Access_Definition): Separate out handling for resetting the scope
19430 of an anonymous access function result type. Retrieve the scope
19431 of the associated function rather than using Current_Scope, which
19432 does not have a consistent value (depends on whether we're in the
19433 middle of analyzing formal parameters). Add ??? comment about
19434 finding a cleaner way to handle the special cases of scope setting.
19435 (Process_Incomplete_Dependents): A protected operation is never a
19436 dispatching operation (only its wrapper may be).
19437 (Build_Derived_Record_Type): In case of tagged private types that
19438 implement interfaces add derivation of predefined primitive
19439 operations.
19440 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
19441 by two parameters that are used in case of derivation from abstract
19442 interface types: No_Predefined_Prims is used to avoid the derivation
19443 of predefined primitives from the interface, and Predefined
19444 Prims_Only is used to complete the derivation predefined primitives
19445 in case of private tagged types implementing interfaces.
19446 Fix typo in comments
19447 (Find_Interface_In_Descendant): Protect the frontend against
19448 wrong code with large circularity chains.
19449 (Is_Private_Overriding): Add support for entities overriding interface
19450 subprograms. The test failed because Entities associated with overriden
19451 interface subprograms are always marked as hidden (and used to build
19452 the secondary dispatch table); in this case the overriden entity is
19453 available through the field abstract_interface_alias (cf. override_
19454 dispatching_operation)
19455 (Access_Definition): Set the scope of the type to Current_Scope for the
19456 case of a function with an anonymous access result type.
19457 (Access_Subprogram_Declaration): Handle creation of the type entity for
19458 an access-to-function type with an anonymous access result.
19459 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
19460 in handling for N_Access_Function_Definition.
19461 (Analyze_Subtype_Declaration): Modify the text of error message.
19462 (Derived_Type_Declaration): Modify the text of error message.
19463 (Process_Subtype): Modify the text of error message plus cleanup
19464 of one redundant error message.
19465 (Analyze_Component_Declaration): Code cleanup.
19466 (Analyze_Object_Declaration): Code cleanup.
19467 (Analyze_Subtype_Declaration): Propagate the null-exclusion
19468 attribute in case of access types. Code cleanup.
19469 (Array_Type_Declaration): Code cleanup.
19470 (Process_Discriminants): Create the new null-excluding itype
19471 if required. Code cleanup.
19472 (Process_Subtype): Create the new null-excluding itype if
19473 required. Code cleanup.
19474 (Build_Derived_Record_Type): Code cleanup to avoid calling
19475 twice the subprogram derive_subprograms in case of private
19476 types that implement interfaces. In this particular case the
19477 subprogram Complete_Subprograms_Derivation already does the
19478 job associated with the second call.
19479
19480 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
19481 conversion to the full view when generating an operation for a
19482 discriminant whose type may currently be private.
19483
19484 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19485 Javier Miranda <miranda@adacore.com>
19486
19487 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
19488 V (Obj.F), the rewriting does not involve the indexed component, but
19489 only the selected component itself.
19490 Do not apply the transformation if the analyzed node is an actual of a
19491 call to another subprogram.
19492 (Complete_Object_Operation): Retain the entity of the
19493 dispatching operation in the selector of the rewritten node. The
19494 entity will be used in the expansion of dispatching selects.
19495 (Analyze_One_Call): Improve location of the error message associated
19496 with interface.
19497 (Analyze_Selected_Component): No need to resolve prefix when it is a
19498 function call, resolution is done when parent node is resolved, as
19499 usual.
19500 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
19501 when attempting to resolve a call transformed from its object notation.
19502 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
19503 of the argument list for each interpretation of the operation.
19504 (Try_Object_Operation): The designated type of an access parameter may
19505 be an incomplete type obtained through a limited_with clause, in which
19506 case the primitive operations of the type are retrieved from its full
19507 view.
19508 (Analyze_Call): If this is an indirect call, and the return type of the
19509 access_to_subprogram is incomplete, use its full view if available.
19510
19511 2005-09-01 Javier Miranda <miranda@adacore.com>
19512 Gary Dismukes <dismukes@adacore.com>
19513
19514 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
19515 access types the null-exclusion and access-to-constant attributes must
19516 also match.
19517 (Analyze_Return_Statement): When the result type is an anonymous access
19518 type, apply a conversion of the return expression to the access type
19519 to ensure that appropriate accessibility checks are performed.
19520 (Analyze_Return_Type): For the case of an anonymous access result type,
19521 generate the Itype and set Is_Local_Anonymous_Access on the type.
19522 Add ??? placeholder for check to disallow returning a limited object
19523 in Ada 2005 unless it's an aggregate or a result of a function call.
19524 Change calls from Subtype_Mark to Result_Definition.
19525 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
19526 Result_Definition in call to Make_Function_Specification.
19527 (Build_Body_To_Inline): Change Set_Subtype_Mark to
19528 Set_Result_Definition.
19529 (Make_Inequality_Operator): Change formal Subtype_Mark to
19530 Result_Definition in call to Make_Function_Specification.
19531 (Process_Formals): Create the new null-excluding itype if required.
19532 (New_Overloaded_Entity): For an entity overriding an interface primitive
19533 check if the entity also covers other abstract subprograms in the same
19534 scope. This is required to handle the general case, that is, overriding
19535 other interface primitives and overriding abstract subprograms inherited
19536 from some abstract ancestor type.
19537 (New_Overloaded_Entity): For an overriding entity that comes from
19538 source, note the operation that it overrides.
19539 (Check_Conformance, Type_Conformant): Addition of one new formal
19540 to skip controlling formals in the analysis. This is used to
19541 handle overloading of abstract interfaces.
19542 (Base_Types_Match): Add missing case for types imported from
19543 limited-with clauses
19544 (New_Overloaded_Entity): Add barrier to protect the use of
19545 the "alias" attribute.
19546
19547 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19548
19549 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
19550 verify that the procedure and the entry are mode conformant.
19551 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
19552 as a different operator, which is often a cut-and-paste error.
19553
19554 2005-09-01 Javier Miranda <miranda@adacore.com>
19555 Ed Schonberg <schonberg@adacore.com>
19556
19557 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
19558 used in controlling parameters exclude null because it is necessary to
19559 read the tag to dispatch, and null has no tag.
19560 (Override_Dispatching_Operation): If the previous operation is inherited
19561 from an interface, it becomes hidden and does not participate in later
19562 name resolution.
19563
19564 2005-09-01 Javier Miranda <miranda@adacore.com>
19565 Ed Schonberg <schonberg@adacore.com>
19566 Gary Dismukes <dismukes@adacore.com>
19567
19568 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
19569 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
19570 the expander will generate the corresponding run-time check to evaluate
19571 the expression.
19572 (Resolve_Call): Check for legal type of procedure name or prefix that
19573 appears as a trigger in a triggering alternative.
19574 (Valid_Conversion): If expression is ambiguous and the context involves
19575 an extension of System, remove System.Address interpretations.
19576 (Resolve_Qualified_Expression): Reject the case of a specific-type
19577 qualification applied to a class-wide argument. Enhance comment
19578 to explain checking of Original_Node.
19579 (Resolve_Type_Conversion): The location of the error message was not
19580 general enough to handle the general case and hence it has been removed.
19581 In addition, this patch improves the text of the message.
19582 (Resolve_Type_Conversion): Add missing support for access to interface
19583 types.
19584 (Resolve_Type_Conversion): If the target is a class-wide interface type,
19585 do not expand if the expression is the actual in a call, because proper
19586 expansion will take place when the call itself is expanded.
19587 (Resolve_Allocator): If the context is an unchecked conversion, the
19588 allocator inherits its storage pool, if any, from the target type of
19589 the conversion.
19590
19591 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19592 Javier Miranda <miranda@adacore.com>
19593
19594 * sem_type.adb (Add_One_Interp): If a candidate operation is an
19595 inherited interface operation that has an implementation, use the
19596 implementation to avoid spurious ambiguities.
19597 (Interface_Present_In_Ancestor): In case of concurrent types we can't
19598 use the Corresponding_Record_Typ attribute to look for the interface
19599 because it is set by the expander (and hence it is not always
19600 available). For this reason we traverse the list of interfaces
19601 (available in the parent of the concurrent type).
19602 (Interface_Present_In_Ancestor): Handle entities from the limited view
19603
19604 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19605
19606 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
19607 from the list of required components.
19608 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
19609 primitive procedure of a limited interface with a controlling first
19610 parameter.
19611 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
19612 of an entry.
19613 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
19614 capture if it is generated in the second operand of a short-circuit
19615 operation.
19616 Do not capture values for variables with address clauses.
19617 (Is_Object_Reference): Treat a function call as an object reference only
19618 if its type is not Standard_Void_Type.
19619
19620 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19621
19622 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
19623 to a variable that is statically known to be constant.
19624
19625 2005-09-01 Geert Bosch <bosch@adacore.com>
19626 Robert Dewar <dewar@adacore.com>
19627
19628 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
19629 (VAXGF_Safe_First): Idem.
19630
19631 2005-09-01 Robert Dewar <dewar@adacore.com>
19632 Arnaud Charlet <charlet@adacore.com>
19633
19634 * g-dirope.ads: Minor reformatting
19635 Document that bounds of result of Base_Name match the input index
19636 positions.
19637 Add documentation on environment variable syntax for Expand_Path
19638
19639 * gnat_ugn.texi: Update documentation to include mention of -m switches
19640 Document new treatment of wide characters in max line length
19641 style check.
19642 Remove -gnatL/-gnatZ switches, no longer used.
19643 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
19644 of -gnata switch.
19645
19646 * gnat_rm.texi: Add doc for two argument form of pragma
19647 Float_Representation.
19648 Add documentation for pragma No_Strict_Aliasing
19649 Add note that explicit component clause overrides pragma Pack.
19650 Add documentation of pragma Debug_Policy
19651
19652 2005-09-01 Matthew Heaney <heaney@adacore.com>
19653
19654 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
19655 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
19656 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
19657 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
19658 draft (Draft 13, August 2005) of Ada Amendment 1.
19659
19660 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19661
19662 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
19663 Note that the platform-specific version of g-soccon.ads for VMS is now
19664 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
19665 really is a package spec).
19666 Replace s-taspri-linux.ads by s-taspri-posix.ads
19667 Remove references to s-mastop-x86.adb
19668
19669 * system-vxworks-xscale.ads: Removed, no longer used.
19670 * s-vxwork-xscale.ads: Removed, no longer used.
19671
19672 2005-09-01 Robert Dewar <dewar@adacore.com>
19673
19674 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
19675 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
19676 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
19677 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
19678 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
19679 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
19680 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19681 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
19682 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
19683 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
19684 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
19685 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
19686 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
19687 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
19688 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
19689 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
19690 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
19691 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
19692 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
19693 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
19694 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
19695
19696 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19697
19698 PR ada/23187
19699 * adaint.c
19700 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
19701
19702 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19703 Doug Rupp <rupp@adacore.com>
19704
19705 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
19706 when needed.
19707 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
19708 this code in the GNAT run-time.
19709
19710 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
19711
19712 PR ada/21053
19713 * init.c (__gnat_error_handler [many]): Mark "msg" as const
19714 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
19715
19716 (__gnat_inside_elab_final_code): Moved here from
19717 Standard_Library and only defined for the compiler.
19718 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
19719 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
19720 using RTPs because directly vectored Interrupt routines are not
19721 supported on this configuration.
19722 (getpid): Do not redefine this function on VxWorks when using RTPs
19723 because this primitive is well supported by the RTP libraries.
19724 (copy_msg): Correct the code that checks for buffer overflow.
19725 Discovered during code reading.
19726
19727 2005-08-29 Olivier Hainque <hainque@adacore.com>
19728
19729 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
19730 a library level mutable variable with an initializer, tell
19731 build_allocator to ignore the initializer's size. It may not be large
19732 enough for all the values that might be assigned to the variable later
19733 on.
19734
19735 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19736 Eric Botcazou <ebotcazou@adacore.com>
19737
19738 * trans.c: Protect < in error msg with quote
19739 Replace GCC_ZCX by Back_End_Exceptions.
19740 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
19741 has been sufficiently aligned in the record.
19742
19743 2005-08-15 James E. Wilson <wilson@specifix.com>
19744
19745 * system-linux-alpha.ads: Change ia64 to alpha.
19746
19747 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
19748
19749 * decl.c, utils.c: Fix comment typos.
19750
19751 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
19752
19753 * decl.c, init.c, initialize.c: Fix comment typos.
19754
19755 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
19756
19757 Make CONSTRUCTOR use VEC to store initializers.
19758 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
19759 CONSTRUCTOR_ELTS.
19760 * trans.c (extract_values): Likewise.
19761 * utils.c (convert, remove_conversions): Likewise.
19762 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
19763 gnat_build_constructor): Likewise.
19764
19765 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
19766
19767 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
19768 DECL_SECTION_NAME.
19769 (compare_field_bitpos): Likewise.
19770
19771 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
19772
19773 * utils.c (create_var_decl): Only set DECL_COMMON on
19774 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
19775 VAR_OR_FUNCTION_DECL_P.
19776
19777 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
19778
19779 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
19780 removed.
19781
19782 2005-07-07 Pascal Obry <obry@adacore.com>
19783
19784 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
19785 returned type on Windows.
19786
19787 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
19788 routine.
19789
19790 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
19791 exception in this case.
19792 Simplify the code as "Image (Image'Range)" = "Image".
19793
19794 2005-07-07 Vincent Celier <celier@adacore.com>
19795
19796 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
19797 the destructor/constructor attributes for <lib>final/<lib>init.
19798
19799 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
19800
19801 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
19802
19803 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
19804 type if the parameter is not passed by copy but reference by default.
19805
19806 2005-07-07 Javier Miranda <miranda@adacore.com>
19807
19808 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
19809 Reimplementation of the support for abstract interface types in order
19810 to leave the code more clear and easy to maintain.
19811
19812 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
19813 abstract interface types in order to leave the code clearer and easier
19814 to maintain.
19815
19816 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
19817 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
19818 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
19819 appropriate entry of the secondary dispatch table.
19820 (Make_DT): Add code to inherit the secondary dispatch tables of
19821 the ancestors.
19822
19823 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
19824 implementing both functionalities by means of a common routine, each
19825 routine has its own code.
19826
19827 2005-07-07 Javier Miranda <miranda@adacore.com>
19828
19829 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
19830
19831 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
19832 types:
19833 --
19834 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19835 --
19836
19837 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
19838 use of tag incomplete types.
19839
19840 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
19841 give support to tagged incomplete types.
19842
19843 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
19844 expression is a discriminant reference and its type is private, as can
19845 happen within a stream operation for a mutable record, use the full
19846 view of the type to resolve the case alternatives.
19847 (Analyze_Assignment): Check wrong dereference of incomplete types.
19848
19849 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
19850 types.
19851
19852 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
19853 incomplete types.
19854
19855 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
19856 N_Incomplete_Type_Declaration nodes.
19857
19858 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
19859 Tag_Present to give support to tagged incomplete types:
19860 --
19861 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19862 --
19863
19864 2005-07-07 Olivier Hainque <hainque@adacore.com>
19865
19866 PR ada/22301
19867 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
19868 definitions for the Unwind wrappers in the compiler case.
19869
19870 2005-07-07 Ed Schonberg <schonberg@adacore.com>
19871 Javier Miranda <miranda@adacore.com>
19872
19873 * par-load.adb (Load): If a child unit is loaded through a limited_with
19874 clause, each parent must be loaded as a limited unit as well.
19875
19876 * sem_ch10.adb (Previous_Withed_Unit): Better name for
19877 Check_Withed_Unit. Return true if there is a previous with_clause for
19878 this unit, whether limited or not.
19879 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
19880 the current unit.
19881 (Is_Visible_Through_Renamings): New local subprogram of install_limited
19882 _withed_unit that checks if some package installed through normal with
19883 clauses has a renaming declaration of package whose limited-view is
19884 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
19885 of the current Draft document for Ada 2005.
19886 (Analyze_Context): Complete the list of compilation units that
19887 are allowed to contain limited-with clauses. It also contains
19888 checks that were previously done by Install_Limited_Context_Clauses.
19889 This makes the code more clear and easy to maintain.
19890 (Expand_Limited_With_Clause) It is now a local subprogram of
19891 Install_Limited_Context_Clauses, and contains the code that adds
19892 the implicit limited-with clauses for parents of child units.
19893 This functionality was prevously done by Analyze_Context.
19894
19895 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
19896 incomplete type.
19897
19898 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
19899 been erroneously named in a limited-with clause of its own context.
19900 In this case the error has been previously notified by Analyze_Context.
19901
19902 2005-07-07 Ed Schonberg <schonberg@adacore.com>
19903
19904 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
19905 generic package that contains local declarations with the same name.
19906 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
19907
19908 2005-07-07 Bernard Banner <banner@adacore.com>
19909
19910 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
19911 ia64 platform only on platforms that you the GCC unwind library
19912 rather than the system unwind library.
19913
19914 2005-07-07 Thomas Quinot <quinot@adacore.com>
19915
19916 * expect.c: Minor reformatting
19917
19918 2005-07-07 Sergey Rybin <rybin@adacore.com>
19919
19920 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
19921 --no-separate-is
19922
19923 * gnat_ugn.texi: Add description for new gnatpp option
19924 (--no-separate-is)
19925
19926 2005-07-04 Thomas Quinot <quinot@adacore.com>
19927
19928 * g-expect-vms.adb, g-expect.ads, g-expect.adb
19929 (Get_Command_Output): New subprogram to launch a process and get its
19930 standard output as a string.
19931
19932 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
19933 Olivier Hainque <hainque@adacore.com>
19934
19935 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
19936 fetch a code-range descriptor associated with the machine state. On
19937 failure set the machine state's PC to 0; on success, pass the
19938 descriptor to exc_virtual_unwind.
19939
19940 * init.c (Tru64 section): New function __gnat_set_code_loc.
19941
19942 2005-07-04 Vincent Celier <celier@adacore.com>
19943
19944 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19945 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19946 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
19947 Remove all auto-initialization code, as this is now done through the
19948 constructor mechanism.
19949
19950 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
19951 __gnat_sals_init_using_constructors): New functions.
19952
19953 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
19954 Linker_Constructor and Linker_Destructor when switch -a is used.
19955
19956 * bindusg.adb: Add line for new switch -a
19957
19958 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
19959 (Gnatbind): When switch -a is used, check if it is allowed
19960
19961 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
19962
19963 2005-07-04 Joel Brobecker <brobecker@adacore.com>
19964
19965 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
19966 This prevents us from hitting a limitation during the debug info
19967 generation when using stabs.
19968 (Prims_Ptr): Likewise.
19969
19970 2005-07-04 Gary Dismukes <dismukes@adacore.com>
19971 Ed Schonberg <schonberg@adacore.com>
19972 Javier Miranda <miranda@adacore.com>
19973
19974 * checks.adb (Null_Exclusion_Static_Checks): In the case of
19975 N_Object_Declaration, only perform the checks if the Object_Definition
19976 is not an Access_Definition.
19977
19978 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
19979 where the parent of an the access definition is an N_Object_Declaration
19980 when determining the Associated_Node_For_Itype and scope of an
19981 anonymous access-to-subprogram type.
19982
19983 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
19984 Corresponding_Spec on the body created for a null procedure. Add ???
19985 comment. Remove New_Copy_Tree call on body argument to
19986 Set_Body_To_Inline.
19987
19988 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
19989 discriminants, use the type of the actual as well, because the
19990 discriminants may be read by the called subprogram.
19991
19992 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
19993 access type we do not need to handle non-limited views.
19994 (Build_Derived_Record_Type): Additional check to check that in case of
19995 private types, interfaces are only allowed in private extensions.
19996
19997 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
19998
19999 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
20000 <Pragma_Linker_Destructor>: Likewise.
20001
20002 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
20003 Pragma_Linker_Destructor.
20004
20005 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
20006 ATTR_LINK_DESTRUCTOR.
20007 (static_ctors, static_dtors): New variables.
20008
20009 * misc.c (gnat_expand_body): Output current function as constructor
20010 and destructor if requested.
20011
20012 * par-prag.adb: Add processing for pragma Linker_Constructor and
20013 Linker_Destructor.
20014
20015 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
20016 extracted from Check_Interrupt_Or_Attach_Handler.
20017 (Check_Interrupt_Or_Attach_Handler): Invoke it.
20018 Implement pragma Linker_Constructor and Linker_Destructor with the
20019 help of Find_Unique_Parameterless_Procedure.
20020 Replace Name_Alias with Name_Target for pragma Linker_Alias.
20021
20022 * snames.h, snames.ads, snames.adb:
20023 Add Name_Linker_Constructor and Name_Linker_Destructor.
20024 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
20025 * snames.adb: Remove Name_Alias.
20026
20027 * trans.c: Include cgraph.h.
20028 (build_global_cdtor): New function.
20029 (Compilation_Unit_to_gnu): Build global constructor and destructor if
20030 needed.
20031 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
20032 of objects too.
20033 (addressable_p) <COMPONENT_REF>: Unconditionally test
20034 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
20035
20036 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
20037 variable if it is external.
20038
20039 (static_ctors, static_dtors): New global variables.
20040 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
20041 <ATTR_LINK_DESTRUCTOR>: Likewise.
20042 (end_subprog_body): Chain function as constructor and destructor
20043 if requested.
20044
20045 * exp_util.adb (Force_Evaluation): Unconditionally invoke
20046 Remove_Side_Effects with Variable_Ref set to true.
20047 (Remove_Side_Effects): Handle scalar types first. Use a renaming
20048 for non-scalar types even if Variable_Ref is true and for class-wide
20049 expressions.
20050
20051 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20052
20053 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
20054 to prevent spurious warnings.
20055
20056 2005-07-04 Thomas Quinot <quinot@adacore.com>
20057
20058 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
20059 Itypes. Itypes are really unexpected there.
20060 (Build_TypeCode_Function): Generalise special processing for Itypes to
20061 handle the case of numeric implicit base types as well as enumerated
20062 ones.
20063
20064 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20065
20066 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
20067 controlled, indicate the expected type of the dereference that is
20068 created for the call to Deep_Finalize, to prevent spurious errors when
20069 the designated type is private and completed with a derivation from
20070 another private type.
20071
20072 2005-07-04 Vincent Celier <celier@adacore.com>
20073
20074 * make.adb (Change_To_Object_Directory): When unable to change the
20075 current dir to the object directory, output the full path of the
20076 directory.
20077
20078 2005-07-04 Matthew Gingell <gingell@adacore.com>
20079
20080 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
20081
20082 * indepsw-linux.adb: Replace by...
20083
20084 * indepsw-gnu.adb: ...this new file
20085
20086 2005-07-04 Vincent Celier <celier@adacore.com>
20087
20088 * mlib-prj.adb (Auto_Initialize): New constant String
20089 (SALs_Use_Constructors): New Boolean function
20090 (Build_Library): Call gnatbind with Auto_Initialize switch when
20091 SALs_Use_Constructors returns True.
20092
20093 * mlib-tgt.ads: Minor reformatting
20094
20095 * mlib-utl.ads: Minor reformatting
20096
20097 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
20098
20099 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20100
20101 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
20102 single protected declarations can have an interface list.
20103 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
20104 with seriously malformed entry declarations, and lead to compilation
20105 abandoned messages.
20106
20107 2005-07-04 Javier Miranda <miranda@adacore.com>
20108
20109 * par-load.adb: Load the context items in two rounds.
20110
20111 2005-07-04 Robert Dewar <dewar@adacore.com>
20112
20113 * scng.adb: Do not consider Mod used as an attribute to be a keyword
20114
20115 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20116 Javier Miranda <miranda@adacore.com>
20117
20118 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
20119 type extension needs a limited view.
20120 Remove previous restriction on private types available through the
20121 limited-view (only tagged private types were previously allowed).
20122 (Install_Withed_Unit): In the code that implements the
20123 legality rule given in AI-377, exclude a child unit with the name
20124 Standard, because it is a homonym of the Standard environment package.
20125
20126 2005-07-04 Thomas Quinot <quinot@adacore.com>
20127
20128 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
20129 overloaded function call, carry interpretations from the original tree
20130 to the copy.
20131
20132 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20133
20134 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
20135 types check whether some designated type is a limited view, and use
20136 the non-limited view if available.
20137
20138 2005-07-04 Gary Dismukes <dismukes@adacore.com>
20139
20140 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
20141 constraint of full view of a private view T1 if present, when T2 is a
20142 discriminated full view.
20143
20144 2005-07-04 Thomas Quinot <quinot@adacore.com>
20145
20146 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
20147 actual that is a view conversion of a bit packed array reference.
20148
20149 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20150
20151 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
20152 present before checking whether an interface type covers a synchronized
20153 type.
20154
20155 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20156
20157 * sem_util.adb (Is_Object_Reference): An indexed or selected component
20158 whose prefix is an implicit dereference is an object reference. Removes
20159 spurious errors when compiling with -gnatc.
20160
20161 2005-07-04 Robert Dewar <dewar@adacore.com>
20162
20163 PR ada/22039
20164 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
20165
20166 2005-07-04 Matthew Gingell <gingell@adacore.com>
20167
20168 * tracebak.c: Enable tracebacks on ia64 platforms
20169
20170 2005-07-04 Vincent Celier <celier@adacore.com>
20171
20172 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
20173 the GNAT BIND command, as gnatbind accepts multiples ALI files with
20174 the -L or -n switches.
20175
20176 2005-07-04 Vincent Celier <celier@adacore.com>
20177
20178 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
20179 correctly computed and the main project data is not modified while
20180 doing so.
20181 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
20182 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
20183 c++linker as this does not work on some platforms.
20184
20185 2005-07-04 Matthew Heaney <heaney@adacore.com>
20186
20187 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
20188 was changed.
20189 * a-coinve.adb: Perform constraint checks explicitly.
20190
20191 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20192 Thomas Quinot <quinot@adacore.com>
20193
20194 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
20195 new target gen-soccon.
20196
20197 2005-07-04 Robert Dewar <dewar@adacore.com>
20198
20199 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
20200
20201 2005-07-04 Thomas Quinot <quinot@adacore.com>
20202
20203 * g-socket.ads (Check_Selector): Minor rewording of comment.
20204
20205 2005-07-04 Vincent Celier <celier@adacore.com>
20206
20207 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
20208
20209 2005-07-04 Thomas Quinot <quinot@adacore.com>
20210
20211 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
20212
20213 2005-07-04 Sergey Rybin <rybin@adacore.com>
20214
20215 * gnat_ugn.texi: Add description of --eol gnatpp option
20216
20217 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
20218 Thomas Quinot <quinot@adacore.com>
20219
20220 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
20221 if the user wants all calls of a subprogram to be flagged,
20222 independently of whether they are made from within the same unit or
20223 another unit.
20224 Mention restriction for pragma Linker_Alias on some platforms.
20225 Document pragma Linker_Constructor and Linker_Destructor.
20226 Rewrite documentation of Weak_External, Linker_Section and
20227 Linker_Alias pragmas.
20228
20229 2005-07-04 Arnaud Charlet <charlet@adacore.com>
20230
20231 * s-stausa.ads, s-stausa.adb: New files.
20232
20233 2005-06-30 Kelley Cook
20234
20235 * all files: Update FSF address in copyright headers.
20236 * gen-soccon.co (main): Output new FSF address in generated files.
20237
20238 2005-06-28 Paul Brook <paul@codesourcery.com>
20239
20240 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
20241
20242 2005-06-14 Olivier Hainque <hainque@adacore.com>
20243 Eric Botcazou <ebotcazou@adacore.com>
20244
20245 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
20246 exc_unwind, now that we are generating proper .debug_frame output for
20247 that target.
20248
20249 * tracebak.c: Remove the mips-irix section, as we are now using the
20250 s-mastop based unwinder again.
20251 Under SPARC/Solaris, take into account the stack bias to compute the
20252 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
20253 ABI.
20254
20255 2005-06-14 Doug Rupp <rupp@adacore.com>
20256
20257 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
20258
20259 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
20260
20261 2005-06-14 Pascal Obry <obry@adacore.com>
20262
20263 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
20264 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
20265 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
20266 package name).
20267
20268 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
20269 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
20270 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
20271 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20272 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
20273 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
20274 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
20275 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
20276 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
20277 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
20278 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
20279 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
20280 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
20281 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
20282 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
20283 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
20284 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
20285 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
20286 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
20287 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
20288 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
20289 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
20290 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
20291 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
20292 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
20293 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
20294 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
20295 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
20296 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
20297 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
20298 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20299 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
20300 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
20301 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
20302 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
20303 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
20304 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20305 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
20306 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
20307 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20308 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
20309 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
20310 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
20311 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
20312 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
20313 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
20314 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20315 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
20316 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
20317 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
20318 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20319 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
20320 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
20321 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
20322 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
20323 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20324 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
20325 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
20326 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20327 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
20328 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
20329 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20330 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
20331 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
20332 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
20333 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
20334 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
20335 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
20336 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
20337 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20338 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
20339 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
20340 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
20341 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20342 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
20343 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
20344 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
20345 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
20346 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
20347 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20348 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
20349 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
20350 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
20351 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20352 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
20353 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
20354 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
20355 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20356 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
20357 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
20358 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
20359 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20360 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
20361 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
20362 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
20363 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20364 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
20365 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
20366 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
20367 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20368 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
20369 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
20370 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
20371 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20372 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
20373 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
20374 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
20375 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
20376 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20377 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
20378 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20379 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
20380 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20381 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
20382 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
20383 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
20384 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
20385 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20386 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
20387 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
20388 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
20389 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
20390 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
20391 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
20392 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
20393 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
20394 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
20395 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
20396 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
20397 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
20398 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
20399 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
20400 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
20401
20402 2005-06-14 Jose Ruiz <ruiz@adacore.com>
20403 Arnaud Charlet <charlet@adacore.com>
20404
20405 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
20406 longer protected objects. They have been replaced by lower-level
20407 suspension objects made up by a mutex and a condition variable (or
20408 their equivalent given a particular OS) plus some internal data to
20409 reflect the state of the suspension object.
20410 (Initialize, Finalize): Add this initialization procedure for
20411 Suspension_Object, which is a controlled type.
20412 (Finalize): Add the finalization procedure for Suspension_Object,
20413 which is a controlled type.
20414
20415 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
20416 Ada.Synchronous_Task_Control because there is no longer a need for a
20417 VxWorks specific version of this package. Target dependencies
20418 has been moved to System.Task_Primitives.Operations.
20419
20420 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
20421 longer needed.
20422 (InitializeCriticalSection, EnterCriticalSection,
20423 LeaveCriticalSection, DeleteCriticalSection): Replace the type
20424 pCriticalSection by an anonymous access type so that we avoid problems
20425 of accessibility to local objects.
20426
20427 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
20428 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20429 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
20430 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
20431 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
20432 set the environment task mask here.
20433 (Current_State): Add this function that returns the state of the
20434 suspension object.
20435 (Set_False): Add this procedure that sets the state of the suspension
20436 object to False.
20437 (Set_True): Add this procedure that sets the state of the suspension
20438 object to True, releasing the task that was suspended, if any.
20439 (Suspend_Until_True): Add this procedure that blocks the calling task
20440 until the state of the object is True. Program_Error is raised if
20441 another task is already waiting on that suspension object.
20442 (Initialize): Add this procedure for initializing the suspension
20443 object. It initializes the mutex and the condition variable which are
20444 used for synchronization and queuing, and it sets the internal state
20445 to False.
20446 (Finalize): Add this procedure for finalizing the suspension object,
20447 destroying the mutex and the condition variable.
20448
20449 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20450 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
20451 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
20452 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
20453 which provides a low-level abstraction (using operating system
20454 primitives) for Ada.Synchronous_Task_Control.
20455 This object is made up by a mutex (for ensuring mutual exclusion), a
20456 condition variable (for queuing threads until the condition is
20457 signaled), a Boolean (State) indicating whether the object is open,
20458 and a Boolean (Waiting) reflecting whether there is a task already
20459 suspended on this object.
20460
20461 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
20462 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
20463 s-intman-vms.ads, s-intman-mingw.adb,
20464 (Initialize_Interrupts): Removed, no longer used.
20465
20466 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
20467 (Setup_Interrupt_Mask): New procedure.
20468
20469 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
20470
20471 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
20472
20473 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
20474 this is no longer done in the body of s-taprop
20475 (Server_Task): Explicitely test for Pending_Action in case
20476 System.Parameters.No_Abort is True.
20477
20478 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
20479 is no longer done in the body of s-taprop
20480
20481 2005-06-14 Robert Dewar <dewar@adacore.com>
20482
20483 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20484 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20485 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20486 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20487 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20488 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
20489 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
20490 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20491 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
20492 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
20493 system-linux-hppa.ads, system-vms_64.ads,
20494 system-vxworks-alpha.ads: Minor comment update for
20495 AI-362 (unit is Pure).
20496
20497 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
20498 Add pragma Pure_05 for AI-362
20499 Make remaining conversion functions obsolescent in Ada 95
20500
20501 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20502 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
20503 Add entries for a-wichun and a-zchuni
20504 Add a-widcha a-zchara for AI-395
20505 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
20506
20507 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20508 Add entries for a-wichun.o and a-zchuni.o
20509 Entries for a-widcha.o and a-zchara.o
20510 Add entry for a-chacon.o
20511
20512 * a-ztenau.adb: Add with of Ada.Characters.Conversions
20513
20514 * a-chacon.ads, a-chacon.adb: New files.
20515
20516 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
20517 categorization violations.
20518
20519 * a-strmap.ads: Add pragma Pure_05 for AI-362
20520 * a-strmap.ads: Add note on implicit categorization for AI-362
20521
20522 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
20523
20524 * par-prag.adb: Dummy entry for pragma Persistent_BSS
20525 Set Ada_Version_Explicit, for implementation of AI-362
20526 Add processing for pragma Pure_05 and Preelaborate_05
20527 Add entry for Assertion_Policy pragma
20528
20529 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
20530 when needed for proper processing of categorization stuff
20531
20532 * sem_cat.adb:
20533 For several cases, make errors in preealborate units warnings,
20534 instead of errors, if GNAT_Mode is set. For AI-362.
20535
20536 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
20537 preelaborate unit is now warning if in GNAT mode
20538
20539 * s-stoele.ads: Document AI-362 for pragma preelaborate
20540
20541 2005-06-14 Doug Rupp <rupp@adacore.com>
20542
20543 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
20544 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
20545 Default_Exception_Msg_Max_Length: new parameter.
20546
20547 * a-except.ads: (Exception_Msg_Max_Length): Set to
20548 System.Parameters.Default_Exception_Msg_Max_Length
20549 Add pragma Preelaborate_05 for AI-362
20550 Add warnings off to allow categorization violations for AI-362
20551
20552 2005-06-14 Vincent Celier <celier@adacore.com>
20553
20554 * gnatsym.adb: Adapt to modification of package Symbols: procedure
20555 Process is now in package Processing.
20556
20557 * symbols.ads, symbols.adb:
20558 (Processing): New package, containing procedure Process
20559
20560 * symbols-vms-alpha.adb:
20561 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
20562
20563 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
20564 symbols-processing-vms-ia64.adb: New files.
20565
20566 2005-06-14 Pascal Obry <obry@adacore.com>
20567
20568 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
20569 implementation. This new version generates the proper DllMain routine
20570 to initialize the SAL. The DllMain is generated in Ada and compiled
20571 before being added as option to the library build command.
20572
20573 2005-06-14 Doug Rupp <rupp@adacore.com>
20574 Pascal Obry <obry@adacore.com>
20575
20576 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
20577 call to decc$translate_vms.
20578 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
20579 need to remove those quotes before catenating the filename.
20580 (__gnat_locate_exec_on_path): improvements to the Win32 section:
20581 * avoid allocating the memory twice for better efficiency;
20582 * allocate 32K buffer for environment expansion as suggested by MSDN;
20583 * prepend ".;" to the path so that current directory is searched too.
20584
20585 2005-06-14 Robert Dewar <dewar@adacore.com>
20586
20587 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
20588 instead of raising CE (AI-241)
20589 Add warnings off to allow categorization violations for AI-362
20590
20591 2005-06-14 Robert Dewar <dewar@adacore.com>
20592
20593 * ali-util.adb, gnatbind.adb: Remove references to
20594 Force_RM_Elaboration_Order.
20595
20596 * switch-b.adb: Remove recognition of -f switch
20597
20598 2005-06-14 Pascal Obry <obry@adacore.com>
20599
20600 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
20601 implementation which is slightly more efficient.
20602
20603 2005-06-14 Gary Dismukes <dismukes@adacore.com>
20604 Javier Miranda <miranda@adacore.com>
20605 Ed Schonberg <schonberg@adacore.com>
20606 Hristian Kirtchev <kirtchev@adacore.com>
20607
20608 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
20609 allocator's designated type is a class-wide type, and compiling for
20610 Ada 2005, emit a run-time check that the accessibility level of the
20611 type given in the allocator's expression is not deeper than the level
20612 of the allocator's access type.
20613
20614 (Tagged_Membership): Modified to gives support to abstract interface
20615 types.
20616
20617 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
20618 Access_Level.
20619 (Descendant_Tag): New predefined function
20620 (Is_Descendant_At_Same_Level): New predefined function
20621 (Get_Access_Level): New private function
20622 (Set_Access_Level): New private procedure
20623 (IW_Membership): New function. Given the tag of an object and the tag
20624 associated with an interface, evaluate if the object implements the
20625 interface.
20626 (Register_Interface_Tag): New procedure used to initialize the table of
20627 interfaces used by the IW_Membership function.
20628 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
20629 of the dispatch table.
20630 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
20631 table of interfaces of the parent.
20632 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
20633 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
20634 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
20635 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
20636 Ada 2005 semantics for the new predefined function.
20637
20638 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
20639 call to Descendant_Tag rather than Internal_Tag.
20640 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
20641 the accessibility level of the attribute's Item parameter is not deeper
20642 than the level of the attribute's prefix type. Tag_Error is raised if
20643 the check fails. The check is only emitted for Ada_05.
20644 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
20645 requested stream attribute, use it.
20646 (Expand_N_Attribute_Reference): If the designated type is an interface
20647 then rewrite the referenced object as a conversion to force the
20648 displacement of the pointer to the secondary dispatch table.
20649 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
20650 is a dereference of an object with a constrained partial view.
20651
20652 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
20653 type is a class-wide type, emit a run-time check that the accessibility
20654 level of the returned object is not deeper than the level of the
20655 function's master (only when compiling for Ada 2005).
20656
20657 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
20658 Action_Nb_Arg): Add entries for new Get_Access_Level and
20659 Set_Access_Level routines in these tables.
20660 (Make_DT): Generate a call to set the accessibility level of the
20661 tagged type in its TSD.
20662 (Make_DT): Code cleanup. The functionality of generating all the
20663 secondary dispatch tables has been moved to freeze_record_type.
20664 (Make_Abstract_Interface_DT): Minor code cleanup.
20665 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
20666 this subprogram implements a new algorithm that provides the
20667 same functionality and it is more clear in case of primitives
20668 associated with abstract interfaces.
20669 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
20670 clean up, the functionality of this subprogram is now provided
20671 by Set_All_DT_Position.
20672 (Write_DT): New subprogram: a debugging procedure designed to be called
20673 within gdb to display the dispatch tables associated with a tagged
20674 type.
20675 (Collect_All_Interfaces): New subprogram that collects the whole list
20676 of interfaces that are directly or indirectly implemented by a tagged
20677 type.
20678 (Default_Prim_Op_Position): New subprogram that returns the fixed
20679 position in the dispatch table of the default primitive operations.
20680 (Expand_Interface_Actuals): New subprogram to generate code that
20681 displaces all the actuals corresponding to class-wide interfaces to
20682 reference the interface tag of the actual object.
20683 (Expand_Interface_Conversion): New subprogram. Reference the base of
20684 the object to give access to the interface tag associated with the
20685 secondary dispatch table.
20686 (Expand_Interface_Thunk): New subprogram that generates the code of the
20687 thunk. This is required for compatibility with the C+ ABI.
20688 (Make_Abstract_Interface_DT): New subprogram that generate the
20689 declarations for the secondary dispatch tables associated with an
20690 abstract interface.
20691 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
20692 attribute for each primitive operation covering interface subprograms
20693 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
20694 These subprograms were upgraded to give support to abstract interfaces
20695
20696 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
20697 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
20698 RE_Set_Access_Level.
20699 (RE_Unit_Table): Add entries for new Ada.Tags operations.
20700 Add support to call the followig new run-time subprograms:
20701 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
20702
20703 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
20704 match its full declaration when both have an access definition with
20705 statically matching designated subtypes.
20706 (Analyze_Component_Declaration): Delete commented out code that was
20707 incorrectly setting the scope of an anonymous access component's type.
20708 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
20709 an access discriminant when the containing type is nonlimited.
20710 (Make_Incomplete_Type_Declaration): Create an incomplete type
20711 declaration for a record type that includes self-referential access
20712 components.
20713 (Check_Anonymous_Access_Types): Before full analysis of a record type
20714 declaration, create anonymous access types for each self-referential
20715 access component.
20716 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
20717 an access component in this context is a Local_Anonymous_Access, for
20718 proper accessibility checks.
20719 (Access_Definition): Set properly the scope of the anonymous access type
20720 created for a stand-alone access object.
20721 (Find_Type_Of_Object): An object declaration may be given with an access
20722 definition.
20723 (Complete_Subprograms_Derivation): New subprogram used to complete
20724 type derivation of private tagged types implementing interfaces.
20725 In this case some interface primitives may have been overriden
20726 with the partial-view and, instead of re-calculating them, they
20727 are included in the list of primitive operations of the full-view.
20728 (Build_Derived_Record_Type): Modified to give support to private
20729 types implemening interfaces.
20730 (Access_Definition): Reject ALL on anonymous access types.
20731 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
20732 type derivation to occur at a deeper accessibility level than the
20733 parent type.
20734 For the case of derivation within a generic body however, disallow the
20735 derivation if the derived type has an ancestor that is a formal type
20736 declared in the formal part of an enclosing generic.
20737 (Analyze_Object_Declaration): For protected objects, remove the check
20738 that they cannot contain interrupt handlers if not declared at library
20739 level.
20740 (Add_Interface_Tag_Components): New subprogram to add the tag components
20741 corresponding to all the abstract interface types implemented by a
20742 record type or a derived record type.
20743 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20744 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20745 Process_Full_View, Record_Type_Declaration): Modified to give
20746 support to abstract interface types
20747 (Collect_Interfaces): New subprogram that collects the list of
20748 interfaces that are not already implemented by the ancestors
20749 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
20750 when partial view has no discriminants and full view has defaults.
20751 (Constrain_Access): Reject a constraint on a general access type
20752 if the discriminants of the designated type have defaults.
20753 (Access_Subprogram_Declaration): Associate the Itype node with the inner
20754 full-type declaration or subprogram spec. This is required to handle
20755 nested anonymous declarations.
20756 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20757 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20758 Process_Full_View, Record_Type_Declaration): Modified to give
20759 support to abstract interface types
20760 (Derive_Subprograms): Addition of a new formal to indicate if
20761 we are in the case of an abstact-interface derivation
20762 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
20763 to the specification because it is requied to analyze all the
20764 identifiers found in a list of interfaces
20765
20766 * debug.adb: Complete documentation of flag "-gnatdZ"
20767
20768 * exp_ch3.adb: Implement config version of persistent_bss pragma
20769 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
20770 testing for TSS presence to properly enforce visibility rules.
20771 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
20772 Make_Abstract_Interfaces_DT to generate the secondary tables
20773 associated with abstract interfaces.
20774 (Build_Init_Procedure): Modified to initialize all the tags
20775 corresponding.
20776 (Component_Needs_Simple_Initialization): Similar to other tags,
20777 interface tags do not need initialization.
20778 (Freeze_Record_Type): Modified to give support to abstract interface
20779 types.
20780 (Expand_N_Object_Declaration): Do not generate an initialization for
20781 a scalar temporary marked as internal.
20782
20783 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
20784 in-out parameter that is a component in an initialization procedure,
20785 whose constraint might depend on discriminants, and that may be
20786 misaligned because of packing or representation clauses.
20787 (Is_Legal_Copy): New predicate to determine whether a possibly
20788 misaligned in-out actual can actually be passed by copy/return. This
20789 is an error in case the type is by_reference, and a warning if this is
20790 the consequence of a DEC import pragma on the subprogram.
20791 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
20792 interface types
20793 (Expand_Inlined_Call): Mark temporary generated for the return value as
20794 internal, so that no useless scalar normalization is generated for it.
20795 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
20796 null procedure can always be inlined.
20797 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
20798 procedure, generate an explicit empty body for it.
20799
20800 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
20801 Given a type implementing an interface, returns the corresponding
20802 access_disp_table value.
20803 (Find_Interface_Tag): New subprogram. Given a type implementing an
20804 interface, returns the record component containing the tag of the
20805 interface.
20806 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
20807 previous ones that return the corresponding tag and access_disp_table
20808 entities.
20809 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
20810 is a predefined primitive operation.
20811 (Expand_Subtype_From_Expr): If the expression is a selected component
20812 within an initialization procedure, compute its actual subtype, because
20813 the component may depend on the discriminants of the enclosing record.
20814
20815 * i-cpp.ads, i-cpp.adb:
20816 This package has been left available for compatibility with previous
20817 versions of the frontend. As part of the new layout this is now a
20818 dummy package that uses declarations available at a-tags.ads
20819
20820 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
20821 "constant access" and "aliased [constant] access" when not compiling
20822 with -gnat05.
20823 Suppress Ada 2005 keyword warning if -gnatwY used
20824 (P_Identifier_Declarations): Add support for object declarations with
20825 access definitions.
20826 (Private_Extension_Declaration): Complete the documentation
20827 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
20828 attribute in case of private extension declaration
20829 (P_Type_Declaration): Mark as "abstract" the type declarations
20830 corresponding with protected, synchronized and task interfaces
20831 (P_Declarative_Items): "not" and "overriding" are overriding indicators
20832 for a subprogram or instance declaration.
20833
20834 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
20835 instantiation that is a dispatching operation has controlling access
20836 parameters that are null excluding.
20837 Save and restore Ada_Version_Explicit, for implementation of AI-362
20838 (Validate_Derived_Type_Instance): Add check for abstract interface
20839 types.
20840 (Analyze_Formal_Package): Establish Instantiation source for the copy of
20841 the generic that is created to represent the formal package.
20842 (Analyze_Package_Instantiation): Instantiate body immediately if the
20843 package is a predefined unit that contains inlined subprograms, and
20844 we are compiling for a Configurable_Run_Time.
20845 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
20846 If the program has a null default, generate an empty body for it.
20847
20848 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
20849 error message condition, null procedures are correctly detected now.
20850 (New_Overloaded_Entity): Bypass trivial overriding indicator check
20851 for subprograms in the context of protected types. Instead, the
20852 indicator is examined in Sem_Ch9 while analysing the subprogram
20853 declaration.
20854 (Check_Overriding_Indicator): Check consistency of overriding indicator
20855 on subprogram stubs as well.
20856 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
20857 the library level.
20858 (Analize_Subprogram_Specification): When analyzing a subprogram in which
20859 the type of the first formal is a concurrent type, replace this type
20860 by the corresponding record type.
20861 (Analyze_Subprogram_Body): Undo the previous work.
20862 (Analyze_Procedure_Call): If the call has the form Object.Op, the
20863 analysis of the prefix ends up analyzing the call itself, after which
20864 we are done.
20865 (Has_Interface_Formals): New subprogram subsidiary to analyze
20866 subprogram_specification that returns true if some non
20867 class-wide interface subprogram is found
20868 (New_Overloaded_Entity): Modified to give support to abstract
20869 interface types
20870 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
20871 access to subprograms must be recursive.
20872 (Is_Unchecked_Conversion): Improve the test that recognizes
20873 instantiations of Unchecked_Conversion, and allows them in bodies that
20874 are to be inlined by the front-end. When the body comes from an
20875 instantiation, a reference to Unchecked_Conversion will be an
20876 Expanded_Name, even though the body has not been analyzed yet.
20877 Replace Is_Overriding and Not_Overriding in subprogram_indication with
20878 Must_Override and Must_Not_Override, to better express intent of AI.
20879 (Analyze_Subprogram_Body): If an overriding indicator is given, check
20880 that it is consistent with the overrinding status of the subprogram
20881 at this point.
20882 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
20883 always inlined.
20884 If the subprogram is a null procedure, indicate that it does not need
20885 a completion.
20886
20887 * sem_disp.adb (Check_Controlling_Type): Give support to entities
20888 available through limited-with clauses.
20889 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
20890 allowed as the last primitive of a tagged type if it has no previous
20891 spec.
20892 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
20893 to give support to abstract interface types
20894
20895 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
20896 in the case where the target type is an anonymous access type of an
20897 object or component (that is, when Is_Local_Anonymous_Access is true).
20898 Prevent the special checks for conversions of access discriminants in
20899 the case where the discriminant belongs to a nonlimited type, since
20900 such discriminants have their accessibility level defined in the same
20901 way as a normal component of an anonymous access type.
20902 (Resolve_Allocator): When an allocator's designated type is a class-wide
20903 type, check that the accessibility level of type given in the
20904 allocator's expression or subtype indication is not statically deeper
20905 than the level of the allocator's access type.
20906 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
20907 name in a discriminant constraint of a record component.
20908 (Resolve_Explicit_Dereference): Do not check whether the type is
20909 incomplete when the dereference is a use of an access discriminant in
20910 an initialization procedure.
20911 (Resolve_Type_Conversion): Handle conversions to abstract interface
20912 types.
20913 (Valid_Tagged_Conversion): The conversion of a tagged type to an
20914 abstract interface type is always valid.
20915 (Valid_Conversion): Modified to give support to abstract interface types
20916 (Resolve_Actuals): Enable full error reporting on view conversions
20917 between unrelated by_reference array types.
20918 The rule for view conversions of arrays with aliased components is
20919 weakened in Ada 2005.
20920 Call to obsolescent subprogram is now considered to be a violation of
20921 pragma Restrictions (No_Obsolescent_Features).
20922 (Check_Direct_Boolean_Operator): If the boolean operation has been
20923 constant-folded, there is nothing to check.
20924 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
20925 check on possible violation of restriction No_Direct_Boolean_Operators
20926 until after expansion of operands, to prevent spurious errors when
20927 operation is constant-folded.
20928
20929 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
20930 Has_Compatible_Type): Modified to give support to abstract interface
20931 types.
20932 (Interface_Present_In_Ancestor): New function to theck if some ancestor
20933 of a given type implements a given interface
20934
20935 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
20936 prefix is a parameterless function that returns an access_to_procedure.
20937 (Transform_Object_Operation): Handle properly function calls of the
20938 form Obj.Op (X), which prior to analysis appear as indexed components.
20939 (Analyze_One_Call): Complete the error notification to help new Ada
20940 2005 users.
20941 (Analyze_Allocator): For an allocator without an initial value, where
20942 the designated type has a constrained partial view, a discriminant
20943 constraint is illegal.
20944
20945 2005-06-14 Robert Dewar <dewar@adacore.com>
20946
20947 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
20948 do with treatment of Set_Col when positioned at end of line character.
20949
20950 2005-06-14 Robert Dewar <dewar@adacore.com>
20951
20952 * atree.adb: (Elist*): Protect against uninitialized field
20953
20954 2005-06-14 Ed Schonberg <schonberg@adacore.com>
20955
20956 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
20957 for an attribute reference that returns an access type.
20958 (Apply_Discriminant_Check): No need for check if (designated) type has
20959 constrained partial view.
20960
20961 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
20962 both bound checks, rather than a conjunction.
20963 (Insert_Valid_Check): If the expression is an actual that is an indexed
20964 component of a bit-packed array, force expansion of the packed element
20965 reference, because it is specifically inhibited elsewhere.
20966
20967 2005-06-14 Vincent Celier <celier@adacore.com>
20968
20969 * clean.adb (Clean_Project): Correctly delete executable specified as
20970 absolute path names.
20971
20972 * make.adb (Gnatmake): Allow relative executable path names with
20973 directory information even when project files are used.
20974 (Change_To_Object_Directory): Fail gracefully when unable to change
20975 current working directory to object directory of a project.
20976 (Gnatmake): Remove exception handler that could no longer be exercized
20977 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
20978 may be deallocated by Normalize_Arguments.
20979 (Collect_Arguments): Eliminate empty arguments
20980
20981 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
20982 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
20983 (Check_Project): Return False when Project is No_Project. Return True
20984 when All_Projects is True.
20985 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
20986 All_Projects to True.
20987 Minor reformatting
20988
20989 2005-06-14 Ed Schonberg <schonberg@adacore.com>
20990 Javier Miranda <miranda@adacore.com>
20991 Thomas Quinot <quinot@adacore.com>
20992 Robert Dewar <dewar@adacore.com>
20993 Hristian Kirtchev <kirtchev@adacore.com>
20994 Gary Dismukes <dismukes@adacore.com>
20995
20996 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
20997 anonymous access types, to indicate that the accessibility level of
20998 the type is determined by that of the enclosing declaration.
20999 (Has_Persistent_BSS): New flag
21000 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
21001 of this attribute with functions.
21002 (Is_Primitive_Wrapper): Remove the barrier.
21003 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
21004 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
21005 New subprograms.
21006 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
21007 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
21008 New subprograms.
21009 (Is_Pure_Unit_Access_Type): New flag
21010 (Abstract_Interfaces): Complete the assertion to cover all usages.
21011 (Set_Is_Interface): Complete the assertion to cover all usages.
21012 (Is_Primitive_Wrapper): New attribute.
21013 (Is_Obsolescent): Now applies to all entities (though it is only set
21014 for subprograms currently)
21015 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
21016 which solves various problems concerning access subtypes.
21017 (Has_Persistent_BSS): New flag
21018 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
21019 Remove these subprograms because this attribute is currently
21020 not used.
21021 New entity flags:
21022 Has_Specified_Stream_Input (Flag190)
21023 Has_Specified_Stream_Output (Flag191)
21024 Has_Specified_Stream_Read (Flag192)
21025 Has_Specified_Stream_Write (Flag193)
21026 Present in all type and subtype entities. Set for a given view if the
21027 corresponding stream-oriented attribute has been defined by an
21028 attribute definition clause. When such a clause occurs, a TSS is set
21029 on the underlying full view; the flags are used to track visibility of
21030 the attribute definition clause for partial or incomplete views.
21031 (Is_Pure_Unit_Access_Type): New flag
21032 Clarify use of Is_Internal.
21033 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
21034 internally generated to wrap the invocation of tasks and protected
21035 types that implement interfaces.
21036 (Implementation_Base_Type): Documentation correction
21037 (Is_Obsolescent): Now applies to all entities (though it is only set
21038 for subprograms currently)
21039 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
21040 which solves various problems concerning access subtypes.
21041
21042 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
21043 for examined parameters. Identify unequal parameter list lengths as
21044 non-conformant parameters.
21045 (Overriding_Possible): Do not check for "All" qualifier in declaration
21046 of controlling access parameter, following prescription of AI-404.
21047 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
21048 that build the procedure body that wraps an entry invocation
21049 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
21050 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
21051 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
21052 give support to abstract interface types
21053
21054 * freeze.adb (Freeze_Entity): Issue error message if
21055 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
21056 type has no storage pool (Ada 2005) AI-366.
21057 Also modified to give support to abstract interface types
21058 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
21059 Inline_Always pragma.
21060
21061 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
21062 now begin an entry declaration.
21063 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
21064 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
21065 a subprogram declaration preceded by an overriding indicator.
21066 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
21067 declarations or subprogram declarations preceded by reserved words
21068 "not" or "overriding".
21069 (P_Entry_Declaration): Update comment. Parse and check overriding
21070 indicator, set semantic flags of entry declarations.
21071 (P_Task): New error message in case of private applied
21072 to a task type declaration.
21073 (P_Protected): New error message in case of private applied
21074 to a task type declaration.
21075
21076 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
21077 in which the full view of a type implementing an interface is a
21078 concurrent type.
21079 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
21080 Declare_Inherited_Private_Subprograms): If an explicit operation
21081 overrides an operation that is inherited in the private part, mark the
21082 explicit one as overriding, to enable overriding indicator checks.
21083 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
21084 full view to partial view, to simplify handling in back-end.
21085
21086 * sprint.adb: Print interface lists where needed: derived types,
21087 protected types, task types.
21088 output "is null" for null procedures. Part of implementation of
21089
21090 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
21091 relaxation of rules for access types in pure, shared passive partitions.
21092
21093 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
21094 first read discriminants into temporary objects, performing checks on
21095 the read values, then possibly performing discriminant checks on the
21096 actual (if it is constrained), and only finally reading the components
21097 into a constrained temporary object.
21098 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
21099 case of reading discriminants of a mutable record type to recognize
21100 the new form of the code generated by
21101 Build_Mutable_Record_Read_Procedure.
21102
21103 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
21104 of a simple call to Make_TSS_Name.
21105 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
21106 buffer, in order for Is_TSS to work correctly on local TSS names.
21107
21108 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
21109 Is_Local_Anonymous_Access to check legaliy of attributes in the
21110 context of access components and stand-alone access objects.
21111 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
21112 treated as available for a limited private type if there is an
21113 attribute_definition_clause that applies to its full view, but not in
21114 other cases where the attribute is available for the full view
21115 (specifically, the sole fact that the full view is non-limited does not
21116 make the attribute available for the partial view).
21117 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
21118 non-overloaded intrinsic subprogram.
21119 (Check_Stream_Attribute): Reject an attribute reference for an
21120 unavailable stream attribute even if the prefix is not a limited type
21121 (case of a 'Input attribute reference for an abstract, non-classwide
21122 type)
21123 (Stream_Attribute_Available): New function to determine whether a stream
21124 attribute is available at a place.
21125 (Check_Attribute): Use Stream_Attribute_Available instead of just
21126 testing for TSS presence on the implementation base type.
21127 (Analyze_Attribute): Modified to give support to task interfaces.
21128 (Analyze_Access_Attribute): Add error check for use of an Access (or
21129 Unrestricted_Access) attribute with a subprogram marked as
21130 Inline_Always.
21131 (Analyze_Attribute, case Attribute_Address): Add error check for use of
21132 an Address attribute with a subprogram marked as Inline_Always.
21133 Update Eval_Attribute to handle new value of Width from AI-395
21134
21135 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
21136 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
21137 Factor common code across the stream-oriented attribute circcuits into
21138 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
21139 processing is functionally identical to the previous duplicated one,
21140 except that an expression that denotes an abstract subprogram will now
21141 be rejected, as mandated by AI-195 item 5.
21142
21143 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
21144 Is_Local_Anonymous_Access to apply accessibility checks to access
21145 components and stand-alone access objects.
21146 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
21147 elsewhere.
21148 (Is_Potentially_Persistent_Type): New function
21149 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
21150 a heap-object whose type has a constrained partial view, the object is
21151 unconstrained and the component may depend on a discriminant, making its
21152 renaming illegal.
21153
21154 * sinfo.ads, sinfo.adb
21155 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
21156 (Must_Override): Flag applicable to N_Entry_Declaration.
21157 Indicate that interface_list can appear in single task and single
21158 protected declarations.
21159 Replace Is_Overriding and Not_Overriding with Must_Override and
21160 Must_Not_Override, to better express intent of AI.
21161 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
21162 of an overriding indicator in a subprogram or instance.
21163 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
21164 Add the overriding indicator [[not] overriding] construct to the
21165 following grammar productions:
21166 ENTRY_DECLARATION
21167 GENERIC_INSTANTIATION
21168 SUBPROGRAM_SPECIFICATION
21169
21170 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
21171 can start with an overriding indicator.
21172
21173 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
21174 flags accordingly on subrogram specifications or instances.
21175
21176 * sem_ch8.adb:
21177 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
21178 overriding_indicator, if present, is consistent with status of spec.
21179 Improve error message for null-excluding checks on controlling access
21180 parameters.
21181 (Check_In_Previous_With_Clause): Protect the frontend against
21182 previously reported critical errors in the context clauses.
21183 Save and restore Ada_Version_Explicit, for implementation of AI-362
21184 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
21185 operation verify that controlling formals of the renamed entity that
21186 are access parameters are explicitly non-null.
21187 (Find_Expanded_Name): Improve error message when prefix is an illegal
21188 reference to a private child unit.
21189
21190 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
21191 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
21192 Rewrite to correspond to new wide character names in AI-395
21193
21194 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
21195 default procedures.
21196
21197 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21198 Robert Dewar <dewar@adacore.com>
21199
21200 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
21201 code, not on the bodies of predefined operations, to cut down on
21202 spurious noise.
21203
21204 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21205
21206 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
21207 be expanded in place. The size computation does not require a
21208 subtraction, which would raise an exception on a compiler built with
21209 assertions when the upper bound is Integer'first.
21210 (Flatten): For an array of composite components, take into account the
21211 size of the components to determine whether it is safe to expand the
21212 array into a purely positional representation.
21213
21214 2005-06-14 Thomas Quinot <quinot@adacore.com>
21215
21216 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
21217 denoting a formal parameter into account.
21218
21219 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21220
21221 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
21222 the entry_call alternative of a conditional entry call, wrap the
21223 conditional entry call itself.
21224
21225 2005-06-14 Nicolas Setton <setton@adacore.com>
21226 Ed Schonberg <schonberg@adacore.com>
21227
21228 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
21229 the "simple_choice" member in a variant record, in accordance with the
21230 description in the package spec: the information output for a constant
21231 should be "S number", not "SS number".
21232 (Get_Encoded_Name): Return at once if not generating code. Avoids name
21233 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
21234
21235 2005-06-14 Thomas Quinot <quinot@adacore.com>
21236
21237 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
21238 RACW without any primitives, do not generate the if statement for
21239 dispatching by name in the PolyORB/DSA case, as it would be malformed
21240 (it would have an Elsif_Parts list that is not No_List, but with a
21241 length of 0).
21242
21243 2005-06-14 Robert Dewar <dewar@adacore.com>
21244
21245 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
21246
21247 2005-06-14 Jose Ruiz <ruiz@adacore.com>
21248
21249 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
21250 can determine whether pragma Suppress_Exception_Locations is in effect.
21251
21252 * utils2.c (build_call_raise): Do not pass the file name to the
21253 exception handler if pragma Suppress_Exception_Locations is in effect.
21254 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
21255
21256 2005-06-14 Emmanuel Briot <briot@adacore.com>
21257
21258 * g-debpoo.adb (Deallocate, Dereference): Improve output.
21259
21260 2005-06-14 Nicolas Roche <roche@adacore.com>
21261
21262 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
21263 to ""
21264 (Next_Level): Fix minor bug in handling of ../dir case
21265 (Read): Add dir separator to Directory name so that "" is understood as
21266 "/"
21267
21268 2005-06-14 Pascal Obry <obry@adacore.com>
21269
21270 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
21271 releasing the items.
21272
21273 2005-06-14 Vincent Celier <celier@adacore.com>
21274 Cyrille Comar <comar@adacore.com>
21275
21276 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
21277 with output file descriptor and with output file name.
21278 (Dup, Dup2): Now global procedures as they are used by two subprograms
21279 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
21280
21281 2005-06-14 Thomas Quinot <quinot@adacore.com>
21282
21283 PR ada/6717
21284 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
21285 broadcast address.
21286 (Create_Selector): Bind listening socket used to create the signalling
21287 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
21288 Set listen backlog to 1 to ensure that we detect socket theft by a
21289 failure of our own connect(2) call.
21290 (Check_Selector): Improve documentation of the selector mechanism.
21291 (Broadcast_Inet_Addr): New constant.
21292
21293 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21294
21295 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
21296 type which turns out to be an incomplete and incorrect fix.
21297 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
21298 of the type is declared in a record (for determination of insertion
21299 type).
21300 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
21301 a private type and ensure that the primary entity is used for the type
21302 of the newly created function's V formal by taking the Etype of the
21303 view.
21304
21305 2005-06-14 Javier Miranda <miranda@adacore.com>
21306 Jose Ruiz <ruiz@adacore.com>
21307 Robert Dewar <dewar@adacore.com>
21308 Ed Schonberg <schonberg@adacore.com>
21309
21310 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
21311 that indicates if we are parsing a compilation unit found in a
21312 limited-with clause.
21313 It is use to avoid the circularity check.
21314
21315 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
21316 we are parsing a compilation unit found in a limited-with clause. This
21317 is use to avoid the circularity check.
21318
21319 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
21320 unit as a consequence of parsing a limited-with clause. This is used
21321 to avoid the circularity check.
21322
21323 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
21324 (Analyze_Context): Limited-with clauses are now allowed
21325 in more compilation units.
21326 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
21327 againts previously reported critical errors in context clauses
21328 (Install_Limited_Withed_Unit): Code cleanup plus static detection
21329 of two further errors: renamed subprograms and renamed packages
21330 are not allowed in limited with clauses.
21331 (Install_Siblings): Do not install private_with_clauses on the package
21332 declaration for a non-private child unit.
21333 (Re_Install_Parents): When a parent of the subunit is reinstalled,
21334 reset visibility of child units properly.
21335 (Install_Withed_Unit): When a child unit appears in a with_clause of its
21336 parent, it is immediately visible.
21337
21338 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21339 Emmanuel Briot <briot@adacore.com>
21340
21341 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
21342 declared within an inlined body as referenced, to prevent spurious
21343 warnings.
21344 (Output_One_Ref): If an entity renames an array component, indicate in
21345 the ALI file that this aliases (renames) the array. Capture as well
21346 function renamings that rename predefined operations.
21347 Add information about generic parent for package and subprogram
21348 instances.
21349 (Get_Type_Reference): For a subtype that is the renaming of an actual in
21350 an instantiation, use the first_subtype to ensure that we don't generate
21351 cross-reference information for internal types.
21352 For objects and parameters of a generic private type, retain the '*'
21353 indicator to distinguish such an entity from its type.
21354
21355 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
21356 to store information about instantiated entities.
21357
21358 * ali.adb (Scan_ALI): Add support for parsing the reference to the
21359 generic parent
21360
21361 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
21362 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
21363 information.
21364
21365 2005-06-10 Doug Rupp <rupp@adacore.com>
21366 Arnaud Charlet <charlet@adacore.com>
21367 Olivier Hainque <hainque@adacore.com>
21368 Jose Ruiz <ruiz@adacore.com>
21369
21370 * Make-lang.in: Add initialize.o when needed.
21371 Remove obsolete references to RT_FLAGS.
21372 Add missing dependencies for sdefault.o
21373
21374 * initialize.c: New file.
21375
21376 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
21377 [VMS] cond_signal_table: Fix problem in declaration.
21378 [VMS] __gnat_error_handler: rewrite.
21379 Move all __gnat_initialize() routines to initialize.c
21380 Specialize the former "hpux" section to "hppa hpux", as this is what the
21381 section really is here for and we now have other hpux ports that need
21382 different contents.
21383 (__gnat_adjust_context_for_raise) i386-linux: First version of this
21384 function for this target. Adjust PC by one in the machine context. This
21385 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
21386 it is more reliable to do that in the signal handler itself.
21387 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
21388 flags, so that the handler is passed the context structure to adjust
21389 prior to the raise.
21390 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
21391 SA_SIGINFO sigaction should look like. Call
21392 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
21393 Machine_State_Operations stuff.
21394 Add conditional code so that the x86_64 is also supported.
21395
21396 2005-06-14 Pascal Obry <obry@adacore.com>
21397
21398 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
21399 the library name.
21400
21401 2005-06-14 Robert Dewar <dewar@adacore.com>
21402
21403 * opt.ads, opt.adb: New flags for persistent_bss mode
21404 Add Ada_Version_Explicit, for implementation of AI-362
21405 Add Assertions_Enabled_Config and associated handling
21406 Needed since setting can be changed with Assertion_Policy pragma
21407 Add new flag Warn_On_Ada_2005_Compatibility
21408
21409 * switch-c.adb: Recognize -gnatwy/Y
21410 Set Ada_Version_Explicit, for implementation of AI-362
21411 The -gnatg switch now includes -gnatyu
21412
21413 * usage.adb: Add -gnatwy/Y
21414 Remove wrong asterisk on -gnatwX line
21415 Add line for -gnatyu switch
21416
21417 2005-06-14 Vincent Celier <celier@adacore.com>
21418
21419 * osint.adb (Add_Default_Search_Dirs): Put source and object
21420 directories of project files before directories coming from
21421 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
21422
21423 2005-06-14 Robert Dewar <dewar@adacore.com>
21424
21425 PR ada/15613
21426 * par-ch2.adb (Scan_Pragma_Argument): New procedure
21427 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
21428
21429 2005-06-14 Vincent Celier <celier@adacore.com>
21430
21431 * prep.adb (Preprocess): Ignore error when scanning the first token of
21432 a line.
21433
21434 2005-06-14 Vincent Celier <celier@adacore.com>
21435
21436 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
21437 (Check_Stand_Alone_Library): If the specified reference symbol file does
21438 not exist, only issue a warning when the symbol policy is not
21439 Controlled. And, when symbol policy is Compliant, set the symbol
21440 policy to Autonomous.
21441
21442 2005-06-14 Vincent Celier <celier@adacore.com>
21443
21444 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
21445 when the project file in a with clause is not the last one, that is the
21446 project file name is followed by a comma.
21447 * prj-pp.adb: (First_With_In_List): New Boolean global variable
21448 (Print): Issue list of project files separated by commas in with clauses
21449 according to the values returned by Is_Not_Last_In_List.
21450 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
21451 (Set_Is_Not_Last_In_List): New procedure
21452
21453 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
21454
21455 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
21456
21457 2005-06-14 Robert Dewar <dewar@adacore.com>
21458
21459 * scng.adb: Add call to new Check_EOF routine
21460 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
21461 Add some comments regarding wide character handling
21462
21463 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
21464
21465 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
21466
21467 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
21468 characters are now considered graphic characters and hence yield false
21469 in this call.
21470
21471 * nmake.adt: Modify header so that xnmake does not generate output
21472 files with multiple blank lines.
21473
21474 * treeprs.adt: Remove a blank line so that output from xtreeprs does
21475 not have an extra blank line
21476
21477 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21478
21479 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
21480 expression when the component type is an anonymous access type to
21481 ensure that appropriate accessibility checks are done.
21482
21483 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
21484 expression of an assignment when the target object is of an anonymous
21485 access type. This ensures that required accessibility checks are done.
21486 (One_Bound): Move the check for type Universal_Integer to
21487 Process_Bounds.
21488 (Process_Bounds): Check whether the type of the preanalyzed range is
21489 Universal_Integer, and in that case set Typ to Integer_Type prior
21490 to setting the type of the original range and the calls to One_Bound.
21491
21492 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21493
21494 * sem_case.adb (Expand_Others_Choice): Improve warning.
21495
21496 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21497
21498 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
21499 constraint of full view if present, when other type is discriminated.
21500 (Eval_Relational_Op): Recognize tests of pointer values against Null,
21501 when the pointer is known to be non-null, and emit appropriate warning.
21502
21503 2005-06-14 Robert Dewar <dewar@adacore.com>
21504 Ed Schonberg <schonberg@adacore.com>
21505
21506 PR ada/10671
21507 * sem_prag.adb: Implement pragma Persistent_BSS
21508 Remove obsolete pragma Persistent_Data, Persistent_Object
21509 Set Ada_Version_Explicit, for implementation of AI-362
21510 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
21511 Add processing for pragma Pure_05 and Preelaborate_05
21512 Add processing for Assertion_Policy pragma
21513 Add pragma identifiers for Assert
21514 (Analyze_Pragma, case Assert): Check number of arguments
21515 (Process_Inline): Additional guard against an illegal program, where the
21516 argument of the pragma is undefined, and warnings on redundant
21517 constructs are enabled.
21518 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
21519 Ada_05 to this pragma, specifying that the pragma is only active in
21520 Ada_05 mode.
21521 (Check_Arg_Order): New procedure
21522 Add appropriate calls to this procedure throughout
21523 Also throughout, check entity name before doing any other checks
21524
21525 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
21526 Remove obsolete pragma Persistent_Data, Persistent_Object
21527 Add entries for pragma Pure_05 and Preelaborate_05
21528 Add entries for Assertion_Policy pragma and associated names
21529 Add some names for pragma argument processing
21530
21531 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
21532
21533 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21534
21535 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
21536 appears within a negation (either from source or as a rewriting of
21537 inequality) adjust text of warning accordingly.
21538
21539 2005-06-14 Thomas Quinot <quinot@adacore.com>
21540
21541 * s-strxdr.adb: Follow AI95-00132
21542
21543 2005-06-14 Arnaud Charlet <charlet@adacore.com>
21544
21545 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
21546
21547 2005-06-14 Arnaud Charlet <charlet@adacore.com>
21548 Jose Ruiz <ruiz@adacore.com>
21549
21550 * s-tposen.adb, s-tpobop.adb
21551 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
21552 the exception id.
21553 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
21554 there is no violation of the Max_Entry_Queue_Length restriction (if it
21555 has been set); Program_Error is raised otherwise.
21556 (Requeue_Call): Before requeuing the task on the target entry queue we
21557 check that there is no violation of the Max_Entry_Queue_Length
21558 restriction (if it has been set); Program_Error is raised otherwise.
21559
21560 2005-06-14 Robert Dewar <dewar@adacore.com>
21561
21562 * styleg.adb: Fix several remaining problems in -gnatyu switch
21563 Blank line count not reset at start
21564 Scanning outside source buffer in some cases
21565 Confusing message for blanks at end of file
21566 Non-empty blank lines not recognized
21567
21568 * nmake.adt: Modify header so that xnmake does not generate output
21569 files with multiple blank lines.
21570
21571 * treeprs.adt: Remove a blank line so that output from xtreeprs does
21572 not have an extra blank line
21573
21574 2005-06-14 Sergey Rybin <rybin@adacore.com>
21575
21576 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
21577
21578 2005-06-14 Doug Rupp <rupp@adacore.com>
21579 Vincent Celier <celier@adacore.com>
21580
21581 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
21582 Update copyright.
21583
21584 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21585 Remove "Library" command.
21586 Change keyword for style check -gnatyd from NOCRLF to
21587 DOS_LINE_ENDINGS.
21588 Remove useless second style check keyword NONE
21589 Remove help documentation for inexistent style check keyword
21590 RM_COLUMN_LAYOUT.
21591 Add help documentation for style check keywords DOS_LINE_ENDINGS,
21592 UNNECESSARY_BLANK_LINES and XTRA_PARENS
21593 Add UNNECESSARY_BLANK_LINES for -gnatyu
21594 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
21595
21596 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21597
21598 2005-06-14 Vincent Celier <celier@adacore.com>
21599
21600 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
21601 gprmake was invoked with -d.
21602 (Compile_Sources): If -d was used, output the "completed ..." message
21603 for each compilation.
21604 (Scan_Arg): Recognize new switch -d
21605 When -c and at least one main is specified, set
21606 Unique_Compile to True to guarantee that no other sources will be
21607 compiled.
21608
21609 2005-06-14 Matthew Heaney <heaney@adacore.com>
21610
21611 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
21612 * a-swuwha.ads, a-swuwha.adb: New files
21613
21614 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
21615 * a-szuzha.ads, a-szuzha.adb: New files.
21616
21617 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21618 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
21619 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
21620 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
21621 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
21622 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
21623 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
21624 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
21625 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
21626 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
21627 Ada 2005 RM.
21628
21629 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
21630 Olivier Hainque <hainque@adacore.com>
21631 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21632 Pascal Obry <obry@adacore.com>
21633
21634 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
21635
21636 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
21637 making a temporary around a procedure call because of non-addressable
21638 actual parameter.
21639 (process_freeze_entity): If entity is a private type, capture size
21640 information that may have been computed for the full view.
21641 (tree_transform, case N_Allocator): If have initializing expression,
21642 check type for Has_Constrained_Partial_View and pass that to
21643 build_allocator.
21644 (tree_transform, case N_Return_Statement): Pass extra arg to
21645 build_allocator.
21646
21647 * decl.c (annotate_value): Remove early return if -gnatR is not
21648 specified.
21649 (gnat_to_gnu_field): Don't make a packable type for a component clause
21650 if the position is byte aligned, the field is aliased, and the clause
21651 size isn't a multiple of the packable alignment. It serves no useful
21652 purpose packing-wise and would be rejected later on.
21653 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
21654
21655 PR ada/20515
21656 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
21657 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
21658 instead.
21659 (create_concat_name): Idem.
21660
21661 2005-06-10 Robert Dewar <dewar@adacore.com>
21662 Eric Botcazou <ebotcazou@adacore.com>
21663 Ben Brosgol <brosgol@adacore.com>
21664 Cyrille Comar <comar@adacore.com>
21665 Sergey Rybin <rybin@adacore.com>
21666 Pascal Obry <obry@adacore.com>
21667
21668 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
21669 Document second argument (Ada_05) of pragma Obsolescent
21670 Add note that call to subprogram marked with pragma Obsolescent
21671 is now considered to be a violation of program Restrictions
21672 (No_Obsolescent_Features).
21673 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
21674 that only machine-dependent attributes are supported.
21675
21676 * gnat_ugn.texi:
21677 Commented out menu lines and empty section for gnatclean examples
21678 Document -gnatwy/Y
21679 Fix some over long lines
21680 Clarify and enhance documentation of ADA_PROJECT_PATH.
21681 Rework section 2.11.2(3) about linking with a non-GNU compiler.
21682 Mention new switch -fcallgraph-info.
21683 Mention new switch -fstack-usage.
21684 For gnatpp, replace '-notab' with '-N' and add this option to Index
21685 Corrected VMS example.
21686 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
21687 Minor reformatting
21688 Add documentation for -gnatyu switch (unnecessary blank lines)
21689 Document new switch -U for GNAT PRETTY and GNAT METRIC
21690 Add note about Stdcall being handled as C convention on non Windows OS.
21691 Remove some junk typo in description of gnatbind -S switch
21692 Remove reference to Extensions_Allowed pragma
21693 Document the new order of the directories to be searched (source and
21694 object directories of project files before directories in ADA_*_PATH
21695 environment variables.
21696
21697 * g-trasym.ads: Document that IRIX is supported
21698
21699 2005-06-10 Arnaud Charlet <charlet@adacore.com>
21700
21701 * Makefile.in: Add initialize.o when needed.
21702 Adapt to new VMS package body Symbols and subunits
21703 No specialized version of a-sytaco is needed for VxWorks.
21704
21705 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
21706 * a-zchara.ads, a-widcha.ads: New files.
21707
21708 * system-hpux-ia64.ads: New file.
21709
21710 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
21711 is imported from the VxWorks kernel.
21712
21713 2005-06-14 Robert Dewar <dewar@adacore.com>
21714
21715 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
21716 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
21717 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
21718 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
21719 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
21720 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
21721 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
21722 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
21723 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
21724 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
21725 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
21726 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
21727
21728 2005-06-14 Thomas Quinot <quinot@adacore.com>
21729
21730 * xeinfo.adb: Fix typo in comment
21731
21732 2005-06-14 Javier Miranda <miranda@adacore.com>
21733
21734 * repinfo.ads: Fix typo in comment
21735
21736 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21737
21738 * s-finimp.adb (Parent_Tag): Delete this imported function (function
21739 Parent_Tag is now in the visible part of Ada.Tags).
21740 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
21741 using imported function.
21742
21743 2005-06-14 Bernard Banner <banner@adacore.com>
21744
21745 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
21746 also apply for handling support for VxSim 653.
21747
21748 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
21749
21750 * xsnames.adb: Add automatic generation of snames.h.
21751
21752 2005-06-14 Thomas Quinot <quinot@adacore.com>
21753
21754 * gen-soccon.c: Add IP_MULTICAST_IF constant
21755 Minor reformatting and adjustments to prevent warnings.
21756
21757 2005-06-14 Pascal Obry <obry@adacore.com>
21758
21759 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
21760
21761 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
21762
21763 * trans.c (gnat_gimplify_expr): Call
21764 recompute_tree_invarant_for_addr_expr when we change
21765 the operand of the ADDR_EXPR.
21766
21767 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21768
21769 * misc.c: Don't include errors.h.
21770
21771 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21772
21773 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
21774
21775 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
21776
21777 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
21778 comment typos.
21779 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
21780
21781 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
21782
21783 PR ada/20270
21784 * Makefile.in: Make TGT_LIB behave correctly.
21785
21786 2005-04-23 DJ Delorie <dj@redhat.com>
21787
21788 * misc.c: Adjust warning() callers.
21789
21790 2005-04-16 Laurent Guerby <laurent@guerby.net>
21791
21792 PR ada/18847
21793 * a-nudira.adb (Value): Check for valid string.
21794 * a-nuflra.adb (Value): Likewise.
21795
21796 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
21797
21798 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
21799
21800 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
21801
21802 * adaint.c, init.c, tracebak.c: Fix comment typos.
21803 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
21804
21805 2005-04-07 Laurent Guerby <laurent@guerby.net>
21806 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21807
21808 * Makefile.in: Add make ifeq define for hppa linux tasking support.
21809 * system-hpux.ads: Define Signed_Zeros to be True.
21810 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
21811
21812 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
21813
21814 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
21815 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
21816 typos.
21817
21818 2005-03-30 Tom Tromey <tromey@redhat.com>
21819
21820 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
21821
21822 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
21823
21824 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
21825
21826 2005-03-29 Robert Dewar <dewar@adacore.com>
21827
21828 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
21829 fixed-point expression has value that is not a multiple of the Small
21830 value.
21831
21832 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
21833
21834 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
21835 nanoseconds.
21836
21837 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
21838
21839 2005-03-29 Vincent Celier <celier@adacore.com>
21840
21841 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
21842 (Build_Dynamic_Library.Version_String): Return the empty string when
21843 Lib_Version is empty or when the symbol policy is not Autonomous.
21844
21845 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
21846 a symbol is not in the reference symbol file, increase the Major ID
21847 and set the Minor ID to 0.
21848 Use gsmatch=lequal instead of gsmatch=equal
21849
21850 2005-03-29 Doug Rupp <rupp@adacore.com>
21851
21852 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
21853 name and translate.
21854
21855 2005-03-29 Javier Miranda <miranda@adacore.com>
21856
21857 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
21858 (Inherit_DT): The first formal has been redefined as a Tag.
21859 This allows us the removal of the subprogram Get_TSD.
21860 (TSD): Replace the call to Get_TSD by the actual code.
21861
21862 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
21863 (Make_DT): Upgrade the call to Inherit_TSD according to the
21864 new interface: the first formal is now a Tag.
21865
21866 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
21867 redefined as a Tag.
21868 This change allows us to remove the subprogram Get_TSD.
21869 (CPP_Get_TSD): Subprogram removed.
21870 (TSD): Replace the call to CPP_Get_TSD by the actual code.
21871
21872 * rtsfind.ads: Remove support to call the run-time
21873 subprogram Get_TSD
21874
21875 2005-03-29 Robert Dewar <dewar@adacore.com>
21876
21877 * errutil.adb, errout.adb:
21878 Minor comment updates on Line_Terminator references
21879
21880 * par-ch10.adb: Add ??? comment about line terminator
21881
21882 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
21883 (check dos line terminator).
21884 (Check_Line_Max_Length): New procedure, split off from the existing
21885 Check_Line_Terminator routine. Separating this out allows -gnatyf to
21886 be properly recognized.
21887
21888 * styleg.adb: Add ??? comment for line terminator reference
21889
21890 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
21891 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
21892
21893 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
21894 (check dos line terminator).
21895 (Check_Line_Max_Length): New procedure, split off from the existing
21896 Check_Line_Terminator routine. Separating this out allows -gnatyf to
21897 be properly recognized.
21898
21899 * stylesw.ads, stylesw.adb:
21900 Add handling for new -gnatyd switch (check dos line terminator)
21901
21902 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
21903 Recognize -gnatwb/-gnatwB switches
21904 Include Warn_On_Bad_Fixed_Value for -gnatg
21905
21906 * usage.adb:
21907 Add line for new -gnatyd switch (check dos line terminator)
21908
21909 * usage.adb: Add lines for -gnatwb/-gnatwB
21910
21911 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
21912
21913 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
21914
21915 * gnat_ugn.texi: Fix overlong lines
21916 Document new -gnatyd switch
21917 Document new -gnatwb/-gnatwB switches
21918
21919 2005-03-29 Ed Schonberg <schonberg@adacore.com>
21920
21921 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
21922 order to retrieve the component list of the type, before examining
21923 individual components.
21924
21925 * sem_type.adb (Covers): Types are compatible if one is the base type
21926 of the other, even though their base types might differ when private
21927 views are involved.
21928
21929 2005-03-29 Thomas Quinot <quinot@adacore.com>
21930
21931 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
21932 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
21933 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
21934 analyzed if expansion is disabled (which could otherwise cause spurious
21935 error messages if expansion has been disabled due to previous
21936 (unrelated) errors).
21937
21938 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
21939 is disabled, the entity denoted by the argument is the access type
21940 itself, not an underlying record type, so there is no need to go back
21941 to the Corresponding_Remote_Type.
21942
21943 2005-03-29 Gary Dismukes <dismukes@adacore.com>
21944 Robert Dewar <dewar@adacore.com>
21945
21946 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
21947 expand a call to an instance of
21948 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
21949 Constructor actual of the instance. A class-wide membership
21950 check is also generated, to ensure that the tag passed to the instance
21951 denotes a type in the class.
21952 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
21953 of Name_Generic_Dispatching_Constructor.
21954
21955 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
21956 05 unit for AI-260-02).
21957
21958 * a-tgdico.ads: New file.
21959
21960 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
21961 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
21962
21963 * snames.ads, snames.adb (Preset_Names): Add entry for
21964 Generic_Dispatching_Constructor.
21965
21966 PR ada/20300
21967 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
21968 character type cases.
21969 (Analyze_Subprogram_Renaming): Add special handling for
21970 the case of renaming of stream attributes when the renaming denotes a
21971 generic formal subprogram association for an abstract formal subprogram.
21972 Check that the attribute is a primitive stream attribute (and not
21973 a class-wide stream attribute) and then rewrite the attribute name
21974 as the name of the appropriate compiler-generated stream primitive.
21975
21976 2005-03-29 Robert Dewar <dewar@adacore.com>
21977
21978 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
21979 recursive calls.
21980 (Is_Possibly_Unaligned_Object): Correct typo that
21981 resulted in inaccurate result for unaligned scalars within records.
21982
21983 2005-03-29 Ed Schonberg <schonberg@adacore.com>
21984
21985 * freeze.adb (Freeze_Record_Type): If the type of the component is an
21986 itype whose parent is controlled and not yet frozen, do not create a
21987 freeze node for the itype if expansion is disabled.
21988
21989 2005-03-29 Vincent Celier <celier@adacore.com>
21990
21991 * make.adb (Gnatmake): Don't fail if the main project file is declared
21992 as having no Ada sources. Do not display message "no sources to
21993 compile" in quiet output.
21994
21995 2005-03-29 Doug Rupp <rupp@adacore.com>
21996
21997 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
21998 extra tools.
21999
22000 2005-03-29 Robert Dewar <dewar@adacore.com>
22001
22002 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
22003 child.
22004
22005 2005-03-29 Robert Dewar <dewar@adacore.com>
22006
22007 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
22008 missing TYPE Improve the error message generated when compiling a
22009 limited interface in Ada83 or Ada95 mode.
22010
22011 2005-03-29 Robert Dewar <dewar@adacore.com>
22012
22013 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
22014 rather than proceed ahead using a junk attribute name.
22015
22016 2005-03-29 Vincent Celier <celier@adacore.com>
22017
22018 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
22019
22020 * prj-part.adb (Parse_Single_Project): Set the location of a project
22021 on its defining identifier, rather than on the reserved word "project".
22022
22023 * prj-proc.adb (Expression): Adapt to the fact that default of external
22024 references may be string expressions, not always literal strings.
22025 (Recursive_Process): Set Display_Name equal to Name
22026 when Location is No_Location, that is when there is no actual file.
22027 Get the Display_Name of the project from the source, when it is not a
22028 virtual project.
22029 (Process): Use the Display_Name in error messages
22030
22031 * prj-strt.adb (External_Reference): Allow default to be string
22032 expressions, not only literal strings.
22033
22034 2005-03-29 Vincent Celier <celier@adacore.com>
22035
22036 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
22037 file and the reference symbol file to be the same file.
22038
22039 2005-03-29 Thomas Quinot <quinot@adacore.com>
22040
22041 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
22042 forbid conversion of a local access-to-subprogram type to a remote one.
22043
22044 * sem_util.adb (Wrong_Type): For a record type that is the expanded
22045 equivalent type for a remote access-to-subprogram type, go back to the
22046 original RAS entity when displaying an error message, so the casing is
22047 the original source casing.
22048
22049 2005-03-29 Robert Dewar <dewar@adacore.com>
22050
22051 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
22052 on param update.
22053
22054 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22055
22056 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
22057 subtype if code is being pre-analyzed, to prevent un-expanded
22058 references to protected formals, among others.
22059 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
22060 interpretation that can be a call, include the result of the call as a
22061 possible interpretation of the dereference.
22062
22063 * sem_ch5.adb (Process_Bounds): Determine type of range by
22064 pre-analyzing a copy of the original range, and then analyze the range
22065 with the expected type.
22066
22067 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
22068 with an overloaded prefix where not all interpretations yield an
22069 access to subprogram, do not rewrite node as a call.
22070 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
22071 the node as a call once the context identifies the interpretation of
22072 the prefix whose call yields the context type.
22073 (Valid_Conversion): For the case of a conversion between
22074 local access-to-subprogram types, check subtype conformance using
22075 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
22076 detailed error message.
22077
22078 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22079
22080 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
22081 indicator, indicate that the formal can never be null.
22082 (Process_Formals): If a formal has a non_null indicator, insert the
22083 resulting subtype immediately before the enclosing subprogram decl,
22084 and not at the beginning of the corresponding declarative part, to
22085 prevent access before elaboration (Ada2005).
22086
22087 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22088
22089 PR ada/19956
22090 * utils.c (finish_record_type): Use variable_size when setting sizes.
22091
22092 2005-03-29 Robert Dewar <dewar@adacore.com>
22093
22094 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
22095 guarantee Unix style line terminators for the output files, even when
22096 running on windows.
22097
22098 2005-03-29 Robert Dewar <dewar@adacore.com>
22099
22100 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
22101 buffer if an exception is raised.
22102
22103 2005-03-29 Ed Falis <falis@adacore.com>
22104
22105 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
22106 VxWorks 653 1.4
22107
22108 2005-03-29 Robert Dewar <dewar@adacore.com>
22109
22110 * sem_util.ads: Minor reformatting
22111 * gnat_rm.texi: Minor editing.
22112
22113 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
22114
22115 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
22116 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
22117
22118 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
22119
22120 * adaint.c (__gnat_portable_spawn): Adjust cast.
22121
22122 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
22123
22124 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
22125
22126 2005-03-17 Pascal Obry <obry@adacore.com>
22127
22128 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
22129 used.
22130
22131 * expect.c (__gnat_waitpid): Moved here from adaint.c.
22132 Reimplement under Win32 using Win32 API.
22133
22134 (__gnat_kill) [Win32]: Properly close the process handle before leaving
22135 this routine.
22136
22137 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
22138
22139 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
22140 (DECL_RENAMED_OBJECT): New accessor macro.
22141 (SET_DECL_RENAMED_OBJECT): New setter macro.
22142
22143 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
22144 object in all cases. Attach the renamed object to the VAR_DECL.
22145 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
22146 field is not prescribed.
22147
22148 * misc.c (gnat_handle_option): Handle -gnatO separately.
22149 (gnat_print_decl) <VAR_DECL>: New case.
22150 Print the DECL_RENAMED_OBJECT node.
22151
22152 * lang.opt: Declare separate -gnatO option.
22153
22154 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
22155 pointer, replace it with the renamed object.
22156 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
22157 pointer type if the source is not a fat pointer type whose underlying
22158 array has the same non-zero alias set as that of the destination array.
22159
22160 2005-03-17 Javier Miranda <miranda@adacore.com>
22161
22162 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
22163 (Get_Inheritance_Depth): Removed.
22164 (Set_Inheritance_Depth): Removed.
22165
22166 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
22167 subprogram Get_Expanded_Name because it is not referenced by the
22168 frontend.
22169
22170 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
22171 (CPP_Get_Inheritance_Depth): Removed.
22172 (CPP_Set_Inheritance_Depth): Removed.
22173
22174 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
22175
22176 2005-03-17 Robert Dewar <dewar@adacore.com>
22177
22178 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
22179 3, since we now expect GCC 3 to do all the work.
22180
22181 2005-03-17 Javier Miranda <miranda@adacore.com>
22182
22183 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
22184 of one barrier to avoid wrong usage of this attribute.
22185
22186 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
22187 First_Private_Entity.
22188
22189 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
22190 the subprogram against wrong usage.
22191 Adapt the code to traverse the entities in the
22192 scope of a record_type because in addition to its usage regarding
22193 packages, this subprogram is also called by Expand_N_Freeze_Entity
22194 to install the visible declarations of the enclosing scope of a
22195 record_type_with_private to establish the proper visibility before
22196 freezing the entity and related subprograms.
22197
22198 2005-03-17 Ed Schonberg <schonberg@adacore.com>
22199
22200 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
22201 entry formals.
22202
22203 2005-03-17 Thomas Quinot <quinot@adacore.com>
22204
22205 * exp_ch3.adb (Check_Attr): New subprogram.
22206 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
22207 into a new Check_Attr subprogram, in order to provide a more
22208 explanatory error message (including the name of the missing attribute).
22209 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
22210 subprogram determines whether a default implementation exists for a
22211 given stream attribute.
22212 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
22213 Determine whether to generate a default implementation for each stream
22214 attribute separately, as this depends on the specific attribute.
22215
22216 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
22217 limited extension where a stream attribute is missing for a limited
22218 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
22219 generate a bogus reference to the missing attribute to prevent
22220 cascaded errors. Instead, generate a null statement.
22221
22222 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
22223 available for a limited type if it has been specified for an ancestor
22224 of the type.
22225
22226 2005-03-17 Ed Schonberg <schonberg@adacore.com>
22227
22228 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
22229 entity is an operator.
22230
22231 2005-03-17 Thomas Quinot <quinot@adacore.com>
22232
22233 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22234 spec, to make this predicate available to other units.
22235
22236 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
22237 reimplementing it.
22238
22239 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
22240 when no distribution runtime library is available.
22241
22242 * sem_res.adb, sem_dist.adb: Disable expansion of remote
22243 access-to-subprogram types when no distribution runtime library is
22244 available.
22245 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
22246 predicate available to other units.
22247
22248 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22249 spec, to make this predicate available to other units.
22250
22251 2005-03-17 Vincent Celier <celier@adacore.com>
22252
22253 * make.adb (Insert_Project_Sources): Make sure the Q is always
22254 initialized.
22255
22256 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
22257 the default for the tree, not the global default naming.
22258
22259 * prj-proc.adb (Recursive_Process): No need to put the default naming
22260 in the project data, it's already there.
22261
22262 2005-03-17 Doug Rupp <rupp@adacore.com>
22263
22264 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
22265
22266 * 5xcrtl.ads: Renamed to...
22267 * s-crtl-vms64.ads: ...this new file
22268
22269 2005-03-17 Robert Dewar <dewar@adacore.com>
22270
22271 PR ada/19519
22272 * namet.adb (Copy_One_Character): Set proper wide character encoding
22273 for upper half character if we have upper half encoding.
22274
22275 2005-03-17 Robert Dewar <dewar@adacore.com>
22276
22277 * par.adb (Par): Improved msg for attempt to recompile predefined unit
22278
22279 2005-03-17 Thomas Quinot <quinot@adacore.com>
22280
22281 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
22282 tagged limited type, the TSS is a newly built renaming declaration:
22283 insert it using Set_TSS, not Copy_TSS.
22284
22285 2005-03-17 Javier Miranda <miranda@adacore.com>
22286
22287 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
22288 Try_Object_Operation): Analyze the object that is accessible
22289 through the prefix of the subprogram call before we apply
22290 the transformation of the object-operation notation.
22291
22292 2005-03-17 Jose Ruiz <ruiz@adacore.com>
22293
22294 * s-taprob.adb (Initialize_Protection): Initialize the protected
22295 object's owner to Null_Task.
22296 (Lock): If pragma Detect_Blocking is in effect and the caller of this
22297 procedure is already the protected object's owner then Program_Error
22298 is raised. In addition the protected object's owner is updated.
22299 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
22300 of this procedure is already the protected object's owner then
22301 Program_Error is raised.
22302 In addition the protected object's owner is updated.
22303 (Unlock): Remove the ownership of the protected object.
22304
22305 * s-taprob.ads (Protection): Add the field Owner, used to store the
22306 protected object's owner.
22307 This component is needed for detecting one type of potentially blocking
22308 operations (external calls on a protected subprogram with the same
22309 target object as that of the protected action). Document the rest of
22310 the components.
22311
22312 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
22313 Initialize the protected object's owner to Null_Task.
22314 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
22315 caller of this procedure is already the protected object's owner then
22316 Program_Error is raised.
22317 Do not raise Program_Error when this procedure is called from a
22318 protected action.
22319 (Unlock_Entries): Remove the ownership of the protected object.
22320 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
22321 of this procedure is already the protected object's owner then
22322 Program_Error is raised.
22323 Do not raise Program_Error when this procedure is called from
22324 a protected action.
22325
22326 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
22327 used to store the protected object's owner.
22328
22329 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
22330 effect and this procedure (a potentially blocking operation) is called
22331 from whithin a protected action, Program_Error is raised.
22332 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
22333 and this procedure (a potentially blocking operation) is called from
22334 whithin a protected action, Program_Error is raised.
22335
22336 2005-03-17 Vincent Celier <celier@adacore.com>
22337 Nicolas Setton <setton@adacore.com>
22338
22339 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
22340 switch, not supported by the linker on Darwin. Add '_' before
22341 <library>init, as this character is added unconditionally by the
22342 compiler.
22343 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
22344 correct one ".dylib". This fixes detection of the archive files when
22345 building library projects.
22346
22347 2005-03-17 Vincent Celier <celier@adacore.com>
22348
22349 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
22350 -gnat83, -gnat95 and -gnat05.
22351
22352 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
22353
22354 * gnat_ugn.texi: Document gnatmem restriction
22355
22356 2005-03-17 Thomas Quinot <quinot@adacore.com>
22357
22358 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
22359 cleanup
22360
22361 2005-03-17 Robert Dewar <dewar@adacore.com>
22362
22363 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
22364 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
22365 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
22366
22367 * casing.adb: Comment improvements
22368
22369 2005-03-17 Pascal Obry <obry@adacore.com>
22370
22371 * g-expect.adb: Minor reformatting.
22372
22373 2005-03-15 Zack Weinberg <zack@codesourcery.com>
22374
22375 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
22376 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
22377 to dependencies.
22378
22379 2005-03-15 Vincent Celier <celier@adacore.com>
22380
22381 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
22382 Add new parameter In_Tree to specify the project tree: needed
22383 by the project manager. Adapt to changes in project manager
22384 using new parameter In_Tree.
22385
22386 2005-03-15 Jakub Jelinek <jakub@redhat.com>
22387
22388 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
22389 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
22390 ada/bldtools to avoid make -jN failures.
22391
22392 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22393
22394 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
22395 to NULL_TREE on entry.
22396
22397 2005-03-15 Robert Dewar <dewar@adacore.com>
22398
22399 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22400 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22401 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22402 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22403 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22404 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
22405 system-interix.ads, system-solaris-sparc.ads,
22406 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22407 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
22408 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22409 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
22410 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
22411 Compiler_System_Version to be False.
22412
22413 * opt.ads: Add new flag Opt.Address_Is_Private
22414
22415 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
22416 Add new parameter Compiler_System_Version to avoid checking for
22417 completeness of parameters when compiler is compiling itself.
22418 Allows old versions of GNAT to be compiled with new compiler.
22419
22420 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22421
22422 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
22423 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
22424 calling thread.
22425 (Stack_Base_Available): New flag.
22426 (Get_Page_Size): New overloaded functions imported from C.
22427 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
22428 PROT_ON, PROT_OFF): New constants.
22429 (mprotect): New function imported from C.
22430 (pthread_teb_t): New record type.
22431
22432 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
22433 (Create_Task): Account for the Yellow Zone and the guard page.
22434
22435 2005-03-15 Vincent Celier <celier@adacore.com>
22436
22437 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22438 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22439 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
22440 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
22441 Library_File_Name_For): Add new parameter In_Tree
22442 to specify the project tree: needed by the project manager.
22443 Adapt to changes in project manager using new parameter In_Tree.
22444 Remove local imports, use functions in System.CRTL.
22445
22446 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
22447 to use the project manager.
22448
22449 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
22450 In_Tree to designate the project tree. Adapt to changes in the project
22451 manager, using In_Tree.
22452
22453 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
22454 Copy_Interface_Sources): Add new parameter In_Tree to specify the
22455 project tree: needed by the project manager.
22456 (Build_Library): Check that Arg'Length >= 6 before checking if it
22457 contains "--RTS=...".
22458
22459 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
22460 Library_File_Name_For): Add new parameter In_Tree to specify the
22461 project tree: needed by the project manager.
22462
22463 * prj.ads, prj.adb: Major modifications to allow several project trees
22464 in memory at the same time.
22465 Change tables to dynamic tables and hash tables to dynamic hash
22466 tables. Move tables and hash tables from Prj.Com (in the visible part)
22467 and Prj.Env (in the private part). Move some constants from the visible
22468 part to the private part. Make other constants deferred.
22469 (Project_Empty): Make it a variable, not a function
22470 (Empty_Project): Add parameter Tree. Returns the data with the default
22471 naming data of the project tree Tree.
22472 (Initialize): After updating Std_Naming_Data, copy its value to the
22473 component Naming of Project Empty.
22474 (Register_Default_Naming_Scheme): Use and update the default naming
22475 component of the project tree, instead of the global variable
22476 Std_Naming_Data.
22477 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
22478 Tree is not defaulted, return the default naming data of the Tree.
22479 (Initial_Buffer_Size): Constant moved from private part
22480 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
22481 variables initialized in procedure Initialize.
22482 (Add_To_Buffer): Add two in out parameters to replace global variables
22483 Buffer and Buffer_Last.
22484 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
22485 functions.
22486 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
22487 hash tables.
22488 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22489 for the project tree.
22490 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
22491 constant at the beginning of the package spec, so that they cane be used
22492 in subprograms before their full declarations.
22493 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
22494 (Empty_Project): Add parameter of type Project_Node_Ref
22495 (Private_Project_Tree_Data): Add component Default_Naming of type
22496 Naming_Data.
22497 (Buffer, Buffer_Last): remove global variables
22498 (Add_To_Buffer): Add two in out parameters to replace global variables
22499 Buffer and Buffer_Last.
22500 (Current_Packages_To_Check): Remove global variable
22501 (Empty_Name): Move to private part
22502 (No-Symbols): Make it a constant
22503 (Private_Project_Tree_Data): New type for the private part of the
22504 project tree data.
22505 (Project_Tree_Data): New type for the data of a project tree
22506 (Project_Tree_Ref): New type to designate a project tree
22507 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22508 for the project tree.
22509
22510 * prj-attr.ads: Add with Table; needed, as package Prj no longer
22511 imports package Table.
22512
22513 * prj-com.adb: Remove empty, no longer needed body
22514
22515 * prj-com.ads: Move most of the content of this package to package Prj.
22516
22517 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
22518 designate the project node tree and Packages_To_Check to replace
22519 global variable Current_Packages_To_Check.
22520 Add new parameters In_Tree and Packages_To_Check to local subprograms,
22521 when needed. Adapt to changes in project manager with project node tree
22522 In_Tree.
22523
22524 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
22525 project tree to most subprograms. Move tables and hash tables to
22526 private part of package Prj.
22527 Adapt to changes in project manager using project tree In_Tree.
22528
22529 * prj-makr.adb (Tree): New constant to designate the project node tree
22530 Adapt to change in project manager using project node tree Tree
22531
22532 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
22533 display the Library_Src_Dir and the Library_Dir.
22534 Add new parameter In_Tree to designate the project node tree to most
22535 subprograms. Adapt to changes in the project manager, using project tree
22536 In_Tree.
22537 (Check_Naming_Scheme): Do not alter the casing on platforms where
22538 the casing of file names is not significant.
22539 (Check): Add new parameter In_Tree to designate the
22540
22541 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
22542 designate the project tree.
22543 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
22544
22545 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
22546 to replace those that were in the private part of package Prj.
22547 Add new parameter In__Tree to designate the project node tree to most
22548 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22549 (Post_Parse_Context_Clause): When specifying the project node of a with
22550 clause, indicate that it is a limited with only if there is "limited"
22551 in the with clause, not necessarily when In_Limited is True.
22552 (Parse): Add new parameter In_Tree to designate the project node tree
22553
22554 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
22555 designate the project node tree. Adapt to change in Prj.Tree with
22556 project node tree In_Tree.
22557
22558 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
22559 tree In_Tree in the call to function Empty_Process to give its initial
22560 value to the project data Processed_Data.
22561 Add new parameters In_Tree to designate the project tree and
22562 From_Project_Node_Tree to designate the project node tree to several
22563 subprograms. Adapt to change in project manager with project tree
22564 In_Tree and project node tree From_Project_Node_Tree.
22565
22566 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
22567 to replace those that were in the private part of package Prj.
22568 Add new parameter In_Tree to designate the project node tree to most
22569 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22570
22571 * prj-tree.ads, prj-tree.adb: Add new parameter of type
22572 Project_Node_Tree_Ref to most subprograms.
22573 Use this new parameter to store project nodes in the designated project
22574 node tree.
22575 (Project_Node_Tree_Ref): New type to designate a project node tree
22576 (Tree_Private_Part): Change table to dynamic table and hash tables to
22577 dynamic hash tables.
22578
22579 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
22580 the project tree to most subprograms. Adapt to changes in project
22581 manager using project tree In_Tree.
22582
22583 * makegpr.adb (Project_Tree): New constant needed to use project
22584 manager.
22585
22586 2005-03-15 Olivier Hainque <hainque@adacore.com>
22587
22588 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
22589 for sigactions with SA_SIGINFO set. Call
22590 __gnat_adjust_context_for_raise before raising, to perform the
22591 potentially required adjustments to the machine context for the GCC
22592 unwinder.
22593
22594 * raise.h (__gnat_adjust_context_for_raise): New prototype.
22595
22596 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
22597 Adjust PC by one in the provided machine context.
22598 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
22599 so that the handler is passed the context structure to adjust prior to
22600 the raise.
22601 (__gnat_error_handler) HPUX: Adjust the signature to match what an
22602 SA_SIGINFO sigaction should look like. Call
22603 __gnat_adjust_context_for_raise before actually raising.
22604 (__gnat_adjust_context_for_raise): Default noop to help PC
22605 adjustments before raise from signal handlers.
22606 (__gnat_error_handler): Indirectly call a predicate function to
22607 determine if a condition should be resignaled or not.
22608 (__gnat_set_resignal_predicate): User interface to modify the predicate.
22609 (__gnat_default_resignal_p): Default GNAT predicate.
22610
22611 2005-03-15 Doug Rupp <rupp@adacore.com>
22612
22613 * adaint.c: Prefix #include of VMS system header files with vms/
22614 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
22615 Do not define a dummy function "convert_addresses" under Darwin,
22616 not needed.
22617
22618 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
22619 with vms/
22620
22621 2005-03-15 Nicolas Setton <setton@adacore.com>
22622
22623 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
22624 PPC/AIX.
22625
22626 2005-03-15 Robert Dewar <dewar@adacore.com>
22627
22628 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
22629 AI-386.
22630
22631 * a-retide.ads: Minor comment changes
22632
22633 2005-03-15 Robert Dewar <dewar@adacore.com>
22634
22635 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
22636 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
22637 Realloc_For_Chunk to private part of package.
22638 New subprograms for AI-301
22639
22640 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
22641 Get_Line procedure.
22642 Avoid unnecessary use of Get/Set_Wide_String
22643
22644 2005-03-15 Robert Dewar <dewar@adacore.com>
22645
22646 PR ada/13470
22647 * a-stunau.ads, a-stunau.adb:
22648 Change interface to allow efficient (and correct) implementation
22649 The previous changes to allow extra space in unbounded strings had
22650 left this interface a bit broken.
22651
22652 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
22653
22654 * g-spipat.ads, g-spipat.adb: New interface for Get_String
22655 Minor reformatting (function specs)
22656
22657 * g-spitbo.adb: New interface for Get_String
22658
22659 * g-spitbo.ads: Minor reformatting
22660
22661 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
22662
22663 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
22664
22665 2005-03-15 Javier Miranda <miranda@adacore.com>
22666 Robert Dewar <dewar@adacore.com>
22667 Thomas Quinot <quinot@adacore.com>
22668 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22669
22670 * atree.ads, atree.adb: Add support for Elist24 field
22671
22672 * atree.h: Fix wrong definition of Field27
22673 Add support for Elist16 field
22674 Add support for Elist24 field
22675
22676 * einfo.ads, einfo.adb (Abstract_Interfaces,
22677 Set_Abstract_Interfaces): New subprograms.
22678 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
22679 subprograms.
22680 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
22681 entities rather than a single node.
22682 (Is_Interface, Set_Is_Interface): New subprogram
22683 (First_Tag_Component): New syntesized attribute
22684 (Next_Tag_Component): New synthesized attribute
22685 (Write_Entity_Flags): Upgraded to write Is_Interface
22686 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
22687 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
22688 (Task_Body_Procedure): New subprogram to read this attribute.
22689 (Set_Task_Body_Procedure): New subprogram to set this attribute.
22690 (Has_Controlled_Component): Now applies to all entities.
22691 This is only a documentation change, since it always worked to apply
22692 this to other than composite types (yielding false), but now this is
22693 official.
22694 Update documentation on Must_Be_Byte_Aligned for new spec
22695
22696 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
22697 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
22698 uses of the Access_Disp_Table attribute to reference the first dispatch
22699 table associated with a tagged type. As
22700 part of the implementation of abstract interface types,
22701 Access_Disp_Table has been redefined to contain a list of dispatch
22702 tables (rather than a single dispatch table).
22703 Similarly, upgrade all the references to Tag_Component by the
22704 new attribute First_Tag_Component.
22705 (Find_Inherited_TSS): Moved to exp_tss.
22706 Clean up test in Expand_N_Object_Declaration for cases
22707 where we need to do a separate assignment of the initial value.
22708 (Expand_N_Object_Declaration): If the expression in the
22709 declaration of a tagged type is an aggregate, no need to generate an
22710 additional tag assignment.
22711 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
22712 is to be deleted.
22713 Bit packed array ops are only called if operands are known to be
22714 aligned.
22715 (Component_Equality): When returning an N_Raise_Program_Error statement,
22716 ensure that its Etype is set to Empty to avoid confusing GIGI (which
22717 expects that only expressions have a bona fide type).
22718 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
22719 determine the amount of data to be copied.
22720
22721 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
22722 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
22723 INTERFACE_TYPE_DEFINITION ::=
22724 [limited | task | protected | synchronized] interface
22725 [AND interface_list]
22726
22727 * par-ch3.adb (P_Type_Declaration): Modified to give support to
22728 interfaces.
22729 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
22730 interfaces.
22731 (P_Interface_Type_Definition): New subprogram that parses the new
22732 syntax rule of Ada 2005 interfaces
22733 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
22734 messages by the correct RENAMES (quotes removed).
22735
22736 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
22737 attribute First_Tag_Component.
22738
22739 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
22740 (Interface_List, Set_Interface_List): New subprograms.
22741 (Interface_Present, Set_Interface_Present): New subprograms.
22742 (Limited_Present, Set_Limited_Present): Available also in derived
22743 type definition nodes.
22744 (Protected_Present, Set_Protected_Present): Available also in
22745 record type definition and
22746 derived type definition nodes.
22747 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
22748 (Task_Present, Set_Task_Present): New subprogram.
22749 (Task_Body_Procedure): Removed.
22750 (Set_Task_Body_Procedure): Removed.
22751 These subprogram have been removed because the attribute
22752 Task_Body_Procedure has been moved to the corresponding task type
22753 or task subtype entity to leave a field free to store the list
22754 of interfaces implemented by a task (for AI-345)
22755 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
22756 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
22757 expression flag Do_Range_Check
22758 (Exception_Junk): Change to Flag7 to accomodate above change
22759 (Box_Present, Default_Name, Specification, Set_Box_Present,
22760 Set_Default_Name, Set_Specification): Expand the expression
22761 "X in N_Formal_Subprogram_Declaration" into the corresponding
22762 two comparisons. Required to use the csinfo tool.
22763
22764 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
22765 "with string" given.
22766
22767 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
22768 expression given.
22769
22770 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
22771 in 2005 mode
22772
22773 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
22774 attribute Task_Body_Procedure rather than the old semantic field that
22775 was available in the task_type_declaration node.
22776
22777 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
22778 interface type definitions.
22779 (P_Formal_Derived_Type_Definition): Modified to handle the list of
22780 interfaces.
22781
22782 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
22783 task type declaration.
22784 (P_Protected): Modified to handle the list of interfaces in a
22785 protected type declaration.
22786
22787 2005-03-15 Doug Rupp <rupp@adacore.com>
22788 Vincent Celier <celier@adacore.com>
22789
22790 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
22791 (Gen_Output_File_C): Likewise.
22792 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
22793
22794 2005-03-15 Thomas Quinot <quinot@adacore.com>
22795
22796 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
22797 is an N_Raise_Constraint_Error node, create a new copy of it without
22798 going through a call to Duplicate_Subexpr.
22799
22800 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22801 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22802 Nicolas Setton <setton@adacore.com>
22803 Ed Schonberg <schonberg@adacore.com>
22804
22805 PR ada/19900
22806 PR ada/19408
22807 PR ada/19140
22808 PR ada/20255
22809 * decl.c (gnat_to_gnu_field): Reject aliased components with a
22810 representation clause that prescribes a size not equal to the rounded
22811 size of their types.
22812 (gnat_to_gnu_entity, case E_Component): Always look at
22813 Original_Record_Component if Present and not the entity.
22814 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
22815 of tagged extension types by not making field for components that are
22816 inside the parent.
22817 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
22818 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
22819 expression to the type of the object when the object is constant.
22820 Reverse defer_debug_incomplete_list before traversing it, so that trees
22821 are processed in the order at which they were added to the list. This
22822 order is important when using the stabs debug format.
22823 If we are deferring the output of debug information, also defer this
22824 output for a function return type.
22825 When adding fields to a record, prevent emitting debug information
22826 for incomplete records, emit the information only when the record is
22827 complete.
22828 (components_to_record): New parameter defer_debug.
22829 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
22830 (gnat_to_gnu_field_decl): New function.
22831 (substitution_list, annotate_rep): Call it.
22832 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
22833 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
22834 No longer update discriminants to not be a COMPONENT_REF.
22835 (copy_alias_set): Strip padding from input type; also handle
22836 unconstrained arrays properly.
22837
22838 * gigi.h (write_record_type_debug_info): New function.
22839 Convert to use ANSI-style prototypes. Remove unused
22840 declarations for emit_stack_check, elab_all_gnat and
22841 set_second_error_entity.
22842 (gnat_to_gnu_field_decl): New decl.
22843
22844 * utils.c (write_record_type_debug_info): New function.
22845 (finish_record_type): Delegate generation of debug information to
22846 write_record_type_debug_info.
22847 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
22848 (update_pointer_to): Fix pasto.
22849 (convert) <UNION_TYPE>: Accept slight type variations when
22850 converting to an unchecked union type.
22851
22852 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
22853 replace the N_Freeze_Entity with a null statement.
22854
22855 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
22856 within a constrained subcomponent of an enclosing record, place the
22857 freeze nodes in the scope stack entry for the enclosing record.
22858 (Undelay_Type): New Subprogram.
22859 (Set_Small_Size): Pass T, the type to modify; all callers changed.
22860 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
22861 within records; allow them to have freeze nodes if their base types
22862 aren't frozen yet.
22863
22864 * exp_util.adb (Remove_Side_Effects): Properly test for
22865 Expansion_Delayed and handle case when it's inside an
22866 N_Qualified_Expression.
22867
22868 * sem_ch3.adb (Derived_Type_Declaration): New predicate
22869 Comes_From_Generic, to recognize accurately that the parent type in a
22870 derived type declaration can be traced back to a formal type, because
22871 it is one or is derived from one, or because its completion is derived
22872 from one.
22873 (Constrain_Component_Type): If component comes from source and has no
22874 explicit constraint, no need to constrain in in a subtype of the
22875 enclosing record.
22876 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
22877 Minor change to propagate Is_Ada_2005 flag
22878
22879 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
22880 Expansion_Delayed is False.
22881 (assoc_to_constructor): Ignore fields that have a
22882 Corresponding_Discriminant.
22883 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
22884 function returns "by target", dereference the target pointer using the
22885 type of the actual return value.
22886 <all>: Be prepared for a null gnu_result.
22887 (processed_inline_subprograms): Check flag_really_no_inline
22888 instead of flag_no_inline.
22889 (set_second_error_entity): Remove unused function.
22890 (gnat_to_gnu, case N_Selected_Component): Call
22891 gnat_to_gnu_field_decl.
22892 (assoc_to_constructor): Likewise.
22893
22894 2005-03-15 Robert Dewar <dewar@adacore.com>
22895 Ed Schonberg <schonberg@adacore.com>
22896 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22897
22898 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
22899 Must_Be_Byte_Aligned for cases where we do not need to use a
22900 System.Pack_nn unit.
22901
22902 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
22903 as procedures.
22904 Needed now that we do some processing for IN parameters as well. This
22905 may well fix some unrelated errors.
22906 (Expand_Call): Handle case of unaligned objects (in particular those
22907 that come from packed arrays).
22908 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
22909 renamed entity is an inherited operation, re-expand the call using the
22910 original operation, which is the one to call.
22911 Detect attempt to inline parameterless recursive subprogram.
22912 (Represented_As_Scalar): Fix to work properly with private types
22913 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
22914 accurate estimate. Yields True in far fewer cases than before,
22915 improving the quality of code that depends on this test.
22916
22917 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
22918 over both visible and private declarations to remove them from tree,
22919 and mark subprograms declared in package as eliminated, to prevent
22920 spurious use in subsequent compilation of generic units in the context.
22921
22922 * exp_util.ads: Minor cleanup in variable names
22923
22924 * sem_eval.ads, sem_eval.adb: Minor reformatting
22925 (Compile_Time_Known_Bounds): New function
22926
22927 2005-03-15 Ed Schonberg <schonberg@adacore.com>
22928
22929 * exp_ch7.adb (Convert_View): Use base types of underlying types when
22930 determining whether an unchecked conversion is needed for the argument
22931 of an initialization call.
22932
22933 2005-03-15 Ed Schonberg <schonberg@adacore.com>
22934
22935 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
22936 that appears in the instantiation rather than the internal subtype
22937 generated in the wrapper package, to avoid anomalies in gigi when the
22938 target is derived from a private type whose full view is an access type.
22939
22940 2005-03-15 Robert Dewar <dewar@adacore.com>
22941
22942 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
22943 not needed.
22944 Add documentation to replace the use of this flag
22945 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
22946 the x86_64.
22947
22948 2005-03-15 Thomas Quinot <quinot@adacore.com>
22949
22950 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
22951 here from exp_attr so it can be shared between exp_attr and exp_dist.
22952 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
22953 all TSS names, not a subset thereof, and the previous name introduced
22954 an unnecessarily confusion that a distinction might exist between
22955 "OK" TSS names and some "not OK" TSS names.
22956
22957 2005-03-15 Doug Rupp <rupp@adacore.com>
22958
22959 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
22960 Command_Name.
22961
22962 2005-03-15 Pascal Obry <obry@adacore.com>
22963 Eric Botcazou <ebotcazou@adacore.com>
22964
22965 PR ada/20226
22966 PR ada/20344
22967 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
22968 when IN_RTS. This is to work around a bootstrap path problem.
22969
22970 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
22971 table and pass it to __gnat_install_SEH_handler().
22972 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
22973
22974 * lang.opt: Fix specification of -fRTS=.
22975
22976 2005-03-15 Doug Rupp <rupp@adacore.com>
22977 Bernard Banner <banner@adacore.com>
22978 Vincent Celier <celier@adacore.com>
22979 Arnaud Charlet <charlet@adacore.com>
22980
22981 PR ada/6852
22982 This change works fine when gnatlib is built from the gcc directory,
22983 but does not work when using the libada Makefile, since GCC_FOR_TARGET
22984 is not passed to ada/Makefile.in, so more work is needed by a
22985 Makefile/configure expert.
22986
22987 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
22988 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
22989 Setup gnatlink switch -M for x86_64 linux, as it is already setup
22990 for Linux x86.
22991 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
22992 Run ranlib on libgccprefix.a
22993 Define PREFIX_OBJS for Darwin, to build libgccprefix.
22994 (ADA_INCLUDE_SRCS): Split Ada packages.
22995
22996 2005-03-15 Robert Dewar <dewar@adacore.com>
22997
22998 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
22999
23000 * impunit.adb: Add GNAT.UTF_32
23001
23002 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
23003
23004 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
23005 now uses GNAT.UTF_32).
23006
23007 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
23008 capabilities for categorizing characters using Unicode categories
23009
23010 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23011
23012 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
23013 instantiation that has been rewritten as a package body, retrieve spec
23014 to generate proper name for implicit_with_clause.
23015 (Install_Parents): Recognize a parent that is an instantiation but has
23016 been rewritten as a package declaration during analysis.
23017
23018 2005-03-15 Javier Miranda <miranda@adacore.com>
23019 Ed Schonberg <schonberg@adacore.com>
23020
23021 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
23022 parameter reported some error we immediately return. This improves the
23023 behaviour of the frontend in case of errors.
23024 (Install_Parent, Remove_Parent): Introduce new flag
23025 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
23026 ancestor of a generic child unit, when the child is being instantiated.
23027 (Inline_Instance_Body): If we are compiling the private
23028 part or the body of a child unit, restore the proper visibility of the
23029 parents after compiling the instance body.
23030
23031 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23032 Javier Miranda <miranda@adacore.com>
23033
23034 PR ada/15608
23035 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
23036 of a private type, in which case it is underlying_type that denotes
23037 the proper task. Also modified to use the new entity attribute
23038 that is directly available in the task type and task subtype entities
23039 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
23040 arrays when other dimensions than the first are constrained by
23041 discriminants of an enclosing record.
23042 (Insert_Explicit_Dereference): If the prefix is an indexed component or
23043 a combination of indexed and selected components, find ultimate entity
23044 and generate the appropriate reference for it, to suppress spurious
23045 warnings.
23046 (Note_Possible_Modification): If an entity name has no entity, return.
23047 (Is_Variable): A function call never denotes a variable.
23048 (Requires_Transient_Scope): For record types, recurse only on
23049 components, not on internal subtypes that may have been generated for
23050 constrained components.
23051
23052 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23053
23054 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
23055 Eliminated as candidates for resolution. Both efficient, and avoids
23056 anomalies with operators declared in deleted code.
23057 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
23058 expansion is disabled (as when compiling a generic) to prevent spurious
23059 warnings on prefixes of selected components.
23060
23061 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23062
23063 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
23064 attached to a list before checking whether it appears in the private
23065 declarations of the current package.
23066 (Make_Inequality_Operator): Insert declaration in proper declarative
23067 list rather than just setting the Parent field, so that
23068 Is_Private_Declaration can handle it properly.
23069
23070 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23071
23072 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
23073 a renaming a body, check that the renamed subprogram in not intrinsic.
23074 (Find_Direct_Name): If several use_visible entities hide
23075 each other, and the context is a predefined file compiled through
23076 rtsfind, keep only the entity that comes from a predefined file.
23077
23078 2005-03-15 Geert Bosch <bosch@adacore.com>
23079
23080 * s-fatgen.adb (Valid): Extend special exceptions to account for long
23081 long float padding to also cover AMD64 and IA64.
23082
23083 2005-03-15 Gary Dismukes <dismukes@adacore.com>
23084
23085 * s-imgwch.adb: Add with and use of Interfaces.
23086 (Img_Wide_Character): Change type of Val to Unsigned_16.
23087 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
23088
23089 2005-03-15 Matthew Gingell <gingell@adacore.com>
23090
23091 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
23092
23093 2005-03-15 Robert Dewar <dewar@adacore.com>
23094
23095 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
23096
23097 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
23098
23099 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
23100
23101 2005-03-15 Robert Dewar <dewar@adacore.com>
23102
23103 * s-bitops.adb, s-bitops.ads,
23104 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
23105 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
23106 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
23107 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
23108 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
23109 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
23110 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
23111 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
23112 reformatting.
23113
23114 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
23115
23116 * utils2.c (build_binary_op): Fix typo.
23117
23118 2005-03-15 Doug Rupp <rupp@adacore.com>
23119
23120 * s-crtl.ads (popen,pclose): New imports.
23121
23122 2005-03-15 Cyrille Comar <comar@adacore.com>
23123
23124 * comperr.adb (Compiler_Abort): remove references to obsolete
23125 procedures in the bug boxes for various GNAT builds.
23126
23127 2005-03-15 Vincent Celier <celier@adacore.com>
23128
23129 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
23130
23131 2005-03-15 Geert Bosch <bosch@adacore.com>
23132 Arnaud Charlet <charlet@adacore.com>
23133 Robert Dewar <dewar@adacore.com>
23134 Cyrille Comar <comar@adacore.com>
23135 Sergey Rybin <rybin@adacore.com>
23136
23137 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
23138 too specific and long-winded to be appropriate for the GNAT User's
23139 Guide.
23140 Warn about use of GCC switches not documented in the GNAT User's Guide,
23141 as these may cause generated code to not conform to Ada semantics.
23142 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
23143 Add documentation for -gnat95 and -gnat05 switches
23144 Remove paragraph documenting obsolete way to refer to third party
23145 libraries.
23146 Add a few references to Ada_05 that were missing.
23147 Update documentation on -gnatZ/-gnatL.
23148 Document limitation when using -m64 under Solaris.
23149 Change the "Name Casing" subsection of the pretty-printer section
23150 according to the changes in the dictionary processing.
23151
23152 * gnat_rm.texi: Document the Ada_05 pragma.
23153 Section on record representation clauses describes the new more
23154 relaxed rules about placement of large packed bit array components.
23155 Add documentation of GNAT.UTF_32
23156
23157 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
23158
23159 * misc.c (gnat_post_options): Turn off structural
23160 aliasing for now.
23161
23162 2005-03-08 Laurent Guerby <laurent@guerby.net>
23163
23164 * system-linux-sparc.ads: Fix typo in previous commit.
23165
23166 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
23167 Laurent Guerby <laurent@guerby.net>
23168
23169 PR ada/20035
23170 * system-linux-sparc.ads: New.
23171 * Makefile.in: Add sparc linux entry.
23172
23173 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
23174
23175 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
23176 parameters as unused.
23177
23178 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
23179 Partial merge from libada-gnattools-branch:
23180
23181 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
23182 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
23183 into code in gnattools/Makefile.in. Remove direct dependencies on
23184 stamp-tools by tools clauses.
23185 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
23186 * config-lang.in: Add gnattools to $lang_dirs.
23187
23188 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
23189
23190 PR ada/19942
23191 * utils.c (gnat_type_for_mode): Return null instead of ICE because
23192 we asked for an unknown mode.
23193
23194 2005-02-12 Richard Henderson <rth@redhat.com>
23195
23196 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
23197 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
23198
23199 2005-02-10 Andreas Jaeger <aj@suse.de>
23200
23201 * init.c (__gnat_initialize): Mark parameter as unused.
23202
23203 2005-02-09 Doug Rupp <rupp@adacore.com>
23204
23205 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
23206 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
23207
23208 2005-02-09 Doug Rupp <rupp@adacore.com>
23209
23210 * gnatchop.adb (dup, dup2),
23211 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
23212
23213 * gnatlbr.adb (mkdir),
23214 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
23215
23216 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
23217
23218 2005-02-09 Doug Rupp <rupp@adacore.com>
23219
23220 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
23221
23222 2005-02-09 Robert Dewar <dewar@adacore.com>
23223 Thomas Quinot <quinot@adacore.com>
23224 Javier Miranda <miranda@adacore.com>
23225 Pascal Obry <obry@adacore.com>
23226 Ed Schonberg <schonberg@adacore.com>
23227 Doug Rupp <rupp@adacore.com>
23228 Gary Dismukes <dismukes@adacore.com>
23229 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23230
23231 * g-zstspl.ads: New file.
23232
23233 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
23234
23235 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
23236 Ada 95 mode
23237 Add definition of Wide_Wide_Space for AI-285
23238
23239 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
23240 interface (to support Ada 95 and Ada 2005 units).
23241 Add Unbounded_IO files
23242 Add entries for Wide_Wide packages for AI-285
23243 Add list of containers packages to Ada 2005 unit list
23244
23245 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
23246 support new Unbounded_IO package cleanly.
23247
23248 * g-utf_32.ads, g-utf_32.adb: New files.
23249
23250 * Makefile.rtl: Add entry for g-utf_32
23251 Add new files for Unbounded_IO
23252 Adjust make file for new AI-285 wide wide packages
23253 Add AI-302 containers to the run time.
23254
23255 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
23256 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
23257 subprograms for AI-301.
23258
23259 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
23260
23261 * a-stunau.ads: Minor comment correction
23262
23263 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
23264 etc.
23265 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
23266 (Check_RPC): Update to match changes in expanded code.
23267 Clean up unused entity.
23268
23269 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
23270 was not taken into account.
23271 This includes proper initialization with Normalize_Scalars.
23272 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
23273 normalize scalars cases (particularly the latter) to do a better job
23274 of finding invalid representations.
23275
23276 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
23277
23278 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
23279 used
23280
23281 * exp_dist.adb: Add support for wide wide character type
23282 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
23283 private part, generate stub bodies at the end of the private part,
23284 not the visible part.
23285 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
23286 PolyORB support.
23287 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
23288 generic wrapper to execute final processing after completing the
23289 expansion of the RPC receiver for an RACW.
23290
23291 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
23292 packages and attributes.
23293 (Preset_Names): Addition of the new reserved words of Ada 2005,
23294 that is interface, overriding and synchronized.
23295 (Get_Pragma_Id): Give support to the use of the new reserved word
23296 "interface" as a pragma name.
23297 (Is_Pragma_Name): Give support to the use of the new reserved word
23298 "interface" as a pragma name.
23299 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
23300 attribute implementation.
23301
23302 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
23303 checks to entities that are output parameters of Asm operations.
23304 Handle the Stream_Size attribute.
23305 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
23306
23307 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
23308
23309 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
23310 for second parameter being 0.0.
23311 Add support for wide wide character type.
23312 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
23313
23314 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
23315 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
23316 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
23317 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
23318 for wide wide character cases.
23319
23320 * cstand.adb: Create entities for Wide_Wide_Character and
23321 Wide_Wide_String.
23322
23323 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
23324 accordance with AI-258.
23325 Add new declarations for 16/32 bit C character types (Part of AI285)
23326
23327 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
23328 (Obsolescent_Warning): New field
23329 (Rep_Clause): New local subprogram used to share code. Returns the rep
23330 clause for which the name is given in parameter.
23331 (Has_Stream_Size_Clause): New routine.
23332 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
23333 (Address_Clause): Implementation is now using Rep_Clause.
23334 (Alignment_Clause): Idem.
23335 (Size_Clause): Idem.
23336
23337 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
23338 entity in non-Ada 2005 mode and generate warning.
23339
23340 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
23341 (Prag): Code cleanup. Remove old gnat pragma "overriding"
23342
23343 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
23344 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
23345 on the named unit if the pragma is not in the current compilation unit,
23346 so that elaboration calls in the current unit can set up an elaboration
23347 dependency on the named unit, as needed.
23348 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
23349 subprogram as well as for subprograms declared within a package.
23350 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
23351 pragma overriding.
23352
23353 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
23354 to z) to avoid some instances of duplication for Wide_Wide packages.
23355
23356 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
23357 characters.
23358
23359 * scn.adb: Char_Literal_Value field is now a Uint
23360
23361 * scng.adb: Significant rewrite to handle new Ada 2005 features
23362 allowing wide and wide wide characters in program text, e.g. for
23363 identifiers, as described in AI-285.
23364 (Set_Reserved): New procedure, makes setting up keywords cleaner.
23365 (Initialize_Scanner): Register the new reserved words of Ada 2005.
23366 (Scan): Give support to the new reserved words.
23367
23368 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
23369 warning notifying that interface, overriding, and synchronized are
23370 new reserved words.
23371 (P_Pragma): Allow the use of the new reserved word "interface" as
23372 a pragma name.
23373
23374 * gnatls.adb, gnatbind.adb,
23375 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
23376 identifiers named "interface" to "SAL_Interface".
23377
23378 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
23379 (Structured Exception handling).
23380 (Gen_Main_C): Idem.
23381
23382 * bindgen.adb:
23383 (Gen_Main_Ada): Set the default exit code if specified.
23384 (Gen_Main_C): Likewise.
23385 Part of *DC20-006.
23386 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
23387 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
23388
23389 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
23390 new -Xnnn switch.
23391
23392 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
23393 has a collision with the new Ada 2005 "interface" reserved word.
23394
23395 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
23396 generate a warning notifying that interface, overriding, and
23397 synchronized are new reserved words.
23398
23399 * scans.ads (Token_Type): Addition of the tokens corresponding to the
23400 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
23401 and Tok_Synchronized.
23402
23403 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
23404 "dispatching" rather than "primitive" operations, since dispatching
23405 calls are now allowed to abstract formal subprograms (which are not
23406 primitive).
23407 Char_Literal_Value field is now a Uint
23408 (Resolve_Slice): If the prefix is an access to an unconstrained array,
23409 compute the actual subtype of the designated object to impose the proper
23410 index constraints.
23411 (Resolve_Selected_Component): Do not insert an access check if the
23412 prefix is an access type: such a node is expanded into an explicit
23413 dereference, on which the access check is performed anyway. Removes
23414 expensive duplicate checks.
23415 (Resolve_Call): Use new flag Is_Obsolescent and field
23416 Obsolescent_Warning so that pragma Obsolescent works on library
23417 subprograms.
23418 Add support for wide wide character type
23419 (Resolve_Allocator): Replace the error message on wrong null-exclusion
23420 value by a warning message.
23421 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
23422 as fixed-point, and one of the operands is non-static and universal, it
23423 can only be an illegal exponentiation operation, in which case there is
23424 no real value to retrieve.
23425
23426 * exp_strm.adb: Add support for wide wide character type
23427 (Build_Elementary_Input_Call): Compute the size of the stream element by
23428 querying the rep chain to find the Stream_Attribute attribute value.
23429 (Build_Elementary_Write_Call): Ditto.
23430
23431 * sem_aggr.adb: Char_Literal_Value field is now a Uint
23432 Add support for wide wide character type
23433 Replace the error messages on wrong null-exclusion value by warnings
23434 as described in Ada 2005.
23435 (Resolve_Extension_Aggregate): Document the fact that the error
23436 message on class-wide expressions in extensions aggregates.
23437
23438 * sem_case.adb: Add support for wide wide character type
23439
23440 * sem_ch13.adb: Add support for wide wide character type
23441 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
23442
23443 * sem_ch3.adb: Add support for wide wide character type
23444 (Process_Subtype): If constraint is illegal for the type, set Ekind of
23445 now-useless Itype, to prevent cascaded errors on a compiler built
23446 without -gnatp.
23447
23448 * sem_ch8.adb: Add with and use of Sem_Disp.
23449 (Analyze_Subprogram_Renaming): Replace unclean uses of
23450 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
23451 of Corresponding_Spec to Empty).
23452 (Attribute_Renaming): Replace use of Corresponding_Spec with
23453 Corresponding_ Formal_Spec and simplify condition.
23454 (Use_One_Package): Check that scope of homonym of identifier is defined,
23455 before checking whether it is a wrapper package.
23456 Add support for wide wide character type
23457
23458 * sem_eval.adb: Add support for wide wide character type.
23459 (Eval_Arithmetic_Op): Check for compile time known signed integer
23460 overflow in the non-static case.
23461 (Subtypes_Statically_Match): A formal scalar type and its base type do
23462 not statically match.
23463
23464 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
23465 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
23466 subtype).
23467 (Unit_Declaration_Node): Ditto.
23468 (Is_Variable_Prefix): For the case of an indexed component whose prefix
23469 has a packed array type, the prefix has been rewritten into a type
23470 conversion. Determine variable-ness from the converted expression.
23471 Handle wide wide character cases.
23472
23473 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
23474
23475 * stringt.ads, stringt.adb: Handle full UTF-32 range.
23476 Remove ["0A"] from comment, since it can look like a line terminator.
23477 Currently we don't permit this, but this is under discussion by the
23478 ARG, and it is easy enough to use a different example.
23479
23480 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
23481 handling UTF-32 encoding for wide wide character.
23482 Implement new brackets coding ["hhhhhhhh"]
23483 Add UTF-8 encodings for full UTF-32 range
23484
23485 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
23486
23487 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
23488 bit range Add full UTF-32 support.
23489 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
23490 notify that constraint error will be raised at run-time
23491 because a null value is assigned to a null-excluding object.
23492 Remove some obsolete declarations and make Char_Code
23493 unsigned.
23494
23495 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
23496 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
23497 Rcheck subprograms.
23498
23499 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
23500 wrong null-exclusion value by a warning message.
23501 (Enable_Range_Check): Do range check if the prefix is an
23502 explicit dereference whose designated object is an unconstrained array.
23503 Current algorithm for removing duplicate checks is over-eager in this
23504 case.
23505
23506 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
23507 null-exclusion value by a warning message
23508
23509 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
23510 completely. Add support for Uint2 field
23511
23512 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
23513 exp_prag.adb: Char_Literal_Value field is now a Uint.
23514
23515 * exp_util.adb (Insert_Actions): Replace
23516 N_Formal_Subprogram_Declaration by
23517 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
23518 Char_Literal_Value field is now a Uint.
23519
23520 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
23521 defined for subprogram renaming declarations. When set, the field
23522 indicates the defining entity of a corresponding formal subprogram
23523 when the renaming corresponds to a formal subprogram association in an
23524 instantiation.
23525 (Set_Corresponding_Formal_Spec): New procedure to return
23526 Corresponding_Formal_Spec field.
23527 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
23528 (which is now a subtype).
23529 Char_Literal_Value field is now a Uint
23530
23531 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
23532 pointer to the base of the dispatch table.
23533 Minor changes to comments.
23534 (Controlling_Type): New function for determining the tagged type
23535 associated with a tagged primitive subprogram.
23536 (Expand_Dispatching_Call): Add support for a controlling actual that is
23537 directly a value of type Ada.Tag rather than a tagged object.
23538
23539 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
23540 describing the new layout.
23541 (Dispatch_Table): The expander computes the actual array size, allocates
23542 the Dispatch_Table record accordingly, and generates code that displaces
23543 the base of the record after the Typeinfo_Ptr component. The access to
23544 these components is done by means of local functions.
23545 (Offset_To_Top): New function.
23546 (Typeinfo_Ptr): New function.
23547 (Get_TSD): Modified to access the new position of the TSD.
23548 (Set_TSD): Modified to save the TSD in its new position.
23549
23550 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
23551 case of formal abstract subprograms. Add check and message for -gnat05.
23552 Update comments.
23553
23554 * sem_ch12.adb: Add with and use for Sem_Disp.
23555 (Analyze_Associations): Minor change from "=" to "in" for use of
23556 N_Formal_Subtype_Declaration (which is now a subtype).
23557 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
23558 N_Formal_Subtype_Declaration (which is now a subtype).
23559 (Analyze_Formal_Subprogram): Add handling for
23560 N_Formal_Abstract_Subprogram, marking the formal as abstract and
23561 dispatching, setting the controlling status of the formal parameters
23562 and result, and issuing an error if there is no controlling type for
23563 the formal subprogram.
23564 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
23565 which is an unclean use of that field, we set the new field
23566 Corresponding_Formal_Spec to make the formal subprogram available to
23567 processing in Analyze_Subprogram_Declaration.
23568 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
23569 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
23570 Constrained, so that it is is does not statically match its anonymous
23571 base type.
23572
23573 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
23574 abstract formal subprograms in error check for functions returning
23575 abstract types. Set scope of new designator for
23576 a parameterless subprogram, so that it is available when checking the
23577 body for nested subprograms, before full analysis of said body.
23578 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
23579 subprogram only if inner one comes from source.
23580 (Analyze_Function_Call): If the call is given in object notation, the
23581 analysis of the name rewrites the node and analyzes it with the proper
23582 argument list. After analyzing the name, if the call has been rewritten
23583 and the result type is set, no further analysis is needed.
23584 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
23585 mark in function specification, in a context where the formals are
23586 visible and hide outer homographs.
23587
23588 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
23589 as the tagged type for the cases of abstract formal subprograms and
23590 renamings of those. Clean up spec comments.
23591 (Check_Dispatching_Context): Add error message to indicate "abstract
23592 procedure", covering the case of a call to a formal abstract procedure
23593 that has statically tagged operands.
23594 (Check_Dispatching_Call): Check for the case of an actual given by
23595 a tag-indeterminate function call whose type is an ancestor of the
23596 containing call's associated tagged type. This situation can occur
23597 for inherited primitives with function defaults. In this case we
23598 use the tagged type's tag directly as the controlling argument for
23599 the calls.
23600 (Expand_Call): Name change on call to Expand_Dispatch_Call.
23601
23602 * sprint.adb (Sprint_Node_Actual): Split
23603 N_Formal_Subprogram_Declaration into two alternatives for the new
23604 cases N_Formal_Abstract_Subprogram_Declaration and
23605 N_Formal_Concrete_Subprogram_Declaration.
23606 Char_Literal_Value field is now a Uint.
23607
23608 * trans.c: Get rid of junk Uint2 reference.
23609 Char_Literal_Value field is now a Uint.
23610 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
23611 (gigi): Correct third arg to gimplify_body.
23612
23613 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
23614 (TYPE_LANG_FLAG_0): Check for record or union.
23615
23616 * treepr.adb: Char_Literal_Value field is now a Uint
23617
23618 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
23619 UI_From_CC.
23620
23621 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
23622 Add full UTF-32 support
23623 Char_Code is now 32 bits
23624
23625 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
23626 wide character UTF_32 line terminators.
23627 Initialize Main_Source_File to avoid error when no main
23628 source is loaded.
23629
23630 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
23631 (Main_Source_File) when no main source has been loaded, to avoid
23632 potential crash.
23633
23634 2005-02-09 Robert Dewar <dewar@adacore.com>
23635
23636 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
23637 Fix name of Set routine
23638
23639 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
23640 fixed packages.
23641
23642 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
23643 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
23644 fixed packages
23645
23646 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
23647 forms of Get_Line subprograms for AI-301.
23648
23649 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23650 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
23651 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
23652 a-stwima.ads: Minor reformatting.
23653
23654 2005-02-09 Doug Rupp <rupp@adacore.com>
23655 Thomas Quinot <quinot@adacore.com>
23656
23657 * adaint.c, adaint.h
23658 [VMS] (to_ptr32): New function.
23659 (MAYBE_TO_PTR32): New macro.
23660 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
23661 for pointer size.
23662 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
23663 [VMS] (#define fork()): Remove since unneccessary.
23664 (__gnat_set_close_on_exec): New routine to support
23665 GNAT.OS_Lib.Set_Close_On_Exec.
23666
23667 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
23668 the parent side as close-on-exec so that they are not inherited by the
23669 child.
23670
23671 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
23672 set or clear the FD_CLOEXEC flag on a file descriptor.
23673
23674 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
23675 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23676
23677 PR ada/19386
23678 * decl.c:
23679 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
23680 on the field if Pragma Component_Alignment (Storage_Unit).
23681 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
23682 side-effects as if it were a constant; also make SAVE_EXPR to protect
23683 side-effects.
23684 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
23685 UNION_TYPE.
23686 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
23687 (components_to_record): Test it.
23688 Fix improper usage of REFERENCE_CLASS_P.
23689
23690 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
23691 RECORD_TYPE.
23692
23693 * utils2.c: Minor reformatting.
23694
23695 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
23696 handle other cases like RECORD_TYPE.
23697
23698 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
23699
23700 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23701
23702 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
23703 component of an array of arrays in an assignment context, and the
23704 aggregate has component associations that require sliding on
23705 assignment, force reanalysis of the aggregate to generate a temporary
23706 before the assignment.
23707 (Must_Slide): Make global to the package, for use in Gen_Assign.
23708
23709 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23710
23711 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
23712 unchecked union with no inferable discriminants, return a
23713 Raise_Program_Error node, rather than inserting it at the point the
23714 type is frozen.
23715 (Expand_Record_Equality, Component_Equality): Handle properly the case
23716 where some subcomponent is an unchecked union whose generated equality
23717 code raises program error.
23718
23719 2005-02-09 Doug Rupp <rupp@adacore.com>
23720
23721 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
23722 [VMS] (#define exit hack): Remove.
23723
23724 2005-02-09 Pascal Obry <obry@adacore.com>
23725 Arnaud Charlet <charlet@adacore.com>
23726
23727 * init.c (__gnat_initialize): Add a new parameter eh which contains the
23728 address of the exception registration. The Win32 version of this
23729 routine calls __gnat_install_SEH_handler() to initialize the SEH
23730 (Structured Exception Handling) handler.
23731 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
23732 SEH (Structured Exception Handling) now.
23733 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
23734 (__gnat_initialize for ppc-vxworks): Adjust comments and the
23735 preprocessor condition protecting the call to the extra eh setup
23736 subprogram, which is only available for the ppc target.
23737 (__gnat_clear_exception_count): replaced reference to
23738 variable taskIdCurrent by call to taskIdSelf(), cleaner.
23739
23740 * seh_init.c: New file.
23741
23742 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
23743 (GNATBIND_OBJS): Idem.
23744
23745 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
23746 routine takes a new parameter (a pointer to the exception registration
23747 for the SEH (Structured Exception Handling) support.
23748
23749 * raise.h: (__gnat_install_SEH_handler): New prototype.
23750 Update copyright notice.
23751
23752 * s-tassta.adb (Task_Wrapper): Declare the exception registration
23753 record and initialize it by calling __gnat_install_SEH_handler.
23754
23755 2005-02-09 Vincent Celier <celier@adacore.com>
23756
23757 * make.adb (Gnatmake): Do not fail when the main project has no object
23758 directory.
23759
23760 2005-02-09 Doug Rupp <rupp@adacore.com>
23761
23762 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
23763 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
23764 [VMS]: Add translations for g-enblsp.adb.
23765
23766 * s-asthan-vms.adb: Removed.
23767 * s-asthan-vms-alpha.adb: Added.
23768
23769 2005-02-09 Pascal Obry <obry@adacore.com>
23770
23771 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
23772 (LIBGNAT_OBJS): Add seh_init.o.
23773
23774 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23775
23776 PR ada/16592
23777 * Makefile.in: Link all gnat tools with -static-libgcc, since
23778 -shared-libgcc is now used by default on some systems (e.g. linux with
23779 recent binutils).
23780 Remove references to Makefile.prolog/generic, no longer used.
23781
23782 2005-02-09 Vincent Celier <celier@adacore.com>
23783
23784 * prj-makr.adb (Process_Directory): Put file name in canonical case
23785 before matching against the patterns.
23786 If gnatname has been invoked as <prefix>-gnatname
23787 then invoke the compiler as <prefix>-gcc, not just "gcc".
23788
23789 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23790
23791 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
23792 with expansion disabled. The actual subtype is needed among other
23793 places when the selected component appears in the context of a loop
23794 bound, and denotes a packed array.
23795 (Operator_Check): Always use the first subtype in the
23796 error message, to avoid the appearance of internal base types.
23797 (Transform_Object_Operation): Copy each actual in full
23798 to the parameter associations of the constructed call, rather than
23799 using the shallow copy mechanism of New_Copy_List. This ensures that
23800 the chaining of named associations is done properly.
23801 (Complete_Object_Operation): Rewrite node, rather than
23802 replacing it, so that we can trace back to the original selected
23803 component.
23804
23805 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
23806 and calls that use object notation, if the called function is not
23807 declared in a withed unit, place the elaboration constraint on the
23808 unit in the context that makes the function accessible.
23809 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
23810 imposes an elaboration constraint between two packages.
23811
23812 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23813
23814 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
23815 views of a private type after handling its private dependents, to
23816 maintain proper stack discipline between entry and exit from the
23817 package.
23818
23819 2005-02-09 Cyrille Comar <comar@adacore.com>
23820
23821 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
23822 Minor reformatting.
23823
23824 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23825
23826 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
23827 fields for foreign threads.
23828
23829 2005-02-09 Doug Rupp <rupp@adacore.com>
23830
23831 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
23832 recursion warnings when compiled with -gnatdm.
23833
23834 2005-02-09 Robert Dewar <dewar@adacore.com>
23835
23836 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
23837 Slight fix to documentation of -gnaty with no parameters
23838
23839 * xr_tabls.ads: Add ??? comment for missing overall comment
23840
23841 * xsinfo.adb: Make default file name be sinfo.h, since this is what
23842 we now use by default.
23843
23844 * xsnames.adb: Adjust end of file test to look for five space followed
23845 by '#' instead of six spaces. The format of xsnames.adb was modified
23846 in the last update.
23847
23848 * a-numeri.ads: Add reference to AI-388 for greek letter pi
23849 identifier.
23850
23851 * clean.adb: Minor reformatting.
23852
23853 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
23854 gnatname.adb: Minor reformatting
23855 Add 2005 to copyright output when utility is run
23856
23857 * csets.adb: Eliminate obsolete comment
23858
23859 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
23860 Update comments.
23861
23862 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
23863
23864 2005-02-09 Sergey Rybin <rybin@adacore.com>
23865
23866 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
23867 the difference between compact and incompact layout and add the record
23868 representation clause to the example illustrating different layouts.
23869 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
23870 component clauses").
23871
23872 2005-02-09 Florian Villoing <villoing@adacore.com>
23873
23874 * gnat_ugn.texi: Fix typos.
23875 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
23876 @file.
23877 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
23878 in the generated documentation.
23879
23880 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23881
23882 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
23883 longer supported.
23884 Update linker wrapper when linking with non GNU C++.
23885
23886 2005-02-09 Pascal Obry <obry@adacore.com>
23887
23888 * gnat_ugn.texi:
23889 Document the procedure to debug the DllMain routine on Windows.
23890 Add note about -funwind-tables and mixed Ada and C/C++ programming in
23891 ZCX mode.
23892 Document new BIND qualifer /RETURN_CODES=VMS.
23893
23894 2005-02-09 Ben Brosgol <brosgol@adacore.com>
23895
23896 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
23897 Edited gnatmetric chapter
23898
23899 2005-02-09 Robert Dewar <dewar@adacore.com>
23900
23901 * gnat_rm.texi:
23902 Changes to document new wide wide character support
23903 For AI-285
23904 Update documentation on Normalize_Scalars and Initialize_Scalars
23905
23906 2005-02-09 Pascal Obry <obry@adacore.com>
23907
23908 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
23909
23910 2005-02-09 Jose Ruiz <ruiz@adacore.com>
23911
23912 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
23913 from the VxWorks kernel) that is needed for getting the active
23914 priority of the different tasks.
23915
23916 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
23917 Use a pragma Elaborate_Body in the spec file instead.
23918 Noticed by code reading.
23919
23920 2005-02-09 Thomas Quinot <quinot@adacore.com>
23921
23922 * exp_util.ads: Minor correction in comment.
23923
23924 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23925
23926 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
23927 since this procedure is now too complex to be worth inlining.
23928
23929 2005-02-09 Richard Henderson <rth@redhat.com>
23930
23931 * utils.c (gnat_define_builtin): Remove.
23932 (gnat_install_builtins): Use build_common_builtin_nodes.
23933
23934 2005-02-09 Arnaud Charlet <charlet@adacore.com>
23935
23936 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23937 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
23938 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
23939 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
23940 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
23941 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
23942 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
23943 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
23944 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
23945 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
23946 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
23947 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
23948 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
23949 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
23950 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
23951 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
23952 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
23953 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
23954 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
23955 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
23956 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
23957 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
23958 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
23959 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
23960 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
23961 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
23962 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23963 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
23964 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
23965 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
23966 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23967 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
23968 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
23969 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
23970 library.
23971
23972 2005-01-27 Laurent Guerby <laurent@guerby.net>
23973
23974 * Makefile.in: Fix a-intnam.ads from previous commit,
23975 add 2005 to copyright.
23976 * a-intman-rtems.ads: Renamed to...
23977 * a-intnam-rtems.ads:
23978
23979 2005-01-27 Laurent Guerby <laurent@guerby.net>
23980
23981 * Makefile.in: Rename GNAT RTEMS specific files.
23982 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
23983 5rosinte.ads, 5rparame.adb: Replaced by files below.
23984 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
23985 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
23986
23987 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
23988 Laurent Guerby <laurent@guerby.net>
23989
23990 PR ada/19488
23991 * 5rosinte.ads: Add No_Key constant.
23992 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
23993 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
23994
23995 2005-01-26 Laurent Guerby <laurent@guerby.net>
23996
23997 PR ada/19414
23998 * i-cobol.adb (Valid_Numeric): Handle zero length case.
23999
24000 2005-01-20 Richard Henderson <rth@redhat.com>
24001
24002 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
24003 a-intnam-linux.ads and system-linux-alpha.ads.
24004 * a-intnam-linux-alpha.ads: Remove file.
24005 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
24006 * system-linux-alpha.ads: New file.
24007
24008 2005-01-18 Jakub Jelinek <jakub@redhat.com>
24009
24010 PR ada/13470
24011 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
24012 set to the new string.
24013
24014 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
24015
24016 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
24017 to True.
24018
24019 2005-01-18 Richard Henderson <rth@redhat.com>
24020
24021 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
24022 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
24023 for alpha-linux.
24024 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
24025
24026 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
24027
24028 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
24029 (GCC_ZCX_Support): Likewise.
24030
24031 2005-01-11 Bastian Blank <waldi@debian.org>
24032
24033 * system-linux-s390.ads: Define Preallocated_Stacks.
24034 * system-linux-s390x.ads: Likewise.
24035
24036 2005-01-04 Arnaud Charlet <charlet@adacore.com>
24037
24038 * gnat_ugn.texi: Fix texi errors with null variables.
24039
24040 2005-01-03 Thomas Quinot <quinot@adacore.com>
24041
24042 * gen-soccon.c: New utility program to generate g-soccon.ads
24043 automatically.
24044
24045 * socket.c, gsocket.h: Split inclusion of system header files into a
24046 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
24047
24048 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
24049 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24050 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
24051 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
24052 should not be edited by hand anymore, but should be regenerated using
24053 gen-soccon.
24054
24055 2005-01-03 Robert Dewar <dewar@adacore.com>
24056 Ed Schonberg <schonberg@adacore.com>
24057 Vincent Celier <celier@adacore.com>
24058
24059 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
24060 on/off, since this is an obsolescent feature, for which we now generate
24061 a warning.
24062
24063 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
24064 warning mode is set and obsolescent usage of this attribute occurs.
24065 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
24066 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
24067 predates, and partly motivates, the adoption of the AI.
24068 Implement new Ada 2005 attribute Mod
24069
24070 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
24071 attribute Mod.
24072
24073 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
24074
24075 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
24076 pragma restrictions.
24077 New entry for Ada 2005 attribute Mod.
24078
24079 * par-prag.adb:
24080 Add recognition of new pragma Restrictions No_Dependence
24081 Recognize restriction No_Obsolescent_Features at parse time
24082
24083 * bcheck.adb: Add circuitry for checking for consistency of
24084 No_Dependence restrictions.
24085
24086 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
24087 restrictions.
24088
24089 * restrict.ads, restrict.adb: Add subprograms to deal with
24090 No_Dependence restrictions.
24091
24092 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
24093 restrictions.
24094
24095 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
24096 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
24097
24098 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
24099 dummy parameter to scng instantiation.
24100 Needed for new restriction No_Obsolescent_Features
24101
24102 * scn.adb: (Obsolescent_Check): New procedure
24103 Needed for new restriction No_Obsolescent_Features
24104
24105 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
24106 specified by AI-285, needed for implementation of AI-388 (adding greek
24107 pi to Ada.Numerics).
24108 Add new generic formal to scng, needed for new restriction
24109 No_Obsolescent_Features.
24110
24111 * s-rident.ads: Add new restriction No_Obsolescent_Features.
24112
24113 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
24114 restrictions lines.
24115 (Scan_ALI): When finding an unexpected character on an R line, raise
24116 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
24117 Ignore_Errors is True, default restrictions are set and scanning of the
24118 ALI file continues with the next line. Also, when Bad_R_Line is raised
24119 and Ignore_Errors is True, skip to the end of le line.
24120
24121 * sem_ch10.adb: Check that explicit with's do not violate
24122 No_Dependence restrictions.
24123 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
24124 illegal context clauses containing child units of instance.
24125
24126 * sem_prag.adb: Processing and checking for new No_Dependence
24127 restrictions.
24128 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
24129 analyze and check the External argument.
24130
24131 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
24132
24133 2005-01-03 Robert Dewar <dewar@adacore.com>
24134
24135 * atree.adb: Add a fifth component to entities
24136 This allows us to add 32 flags and four new fields
24137
24138 * atree.ads: Add a fifth component to entities
24139 This allows us to add 32 flags and four new fields
24140
24141 * einfo.ads, einfo.adb: Document new fields and new flags now available
24142 Add routines for printing new fields
24143
24144 * treepr.adb: Call routines to print out additional fields if present
24145
24146 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24147
24148 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
24149 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
24150
24151 * Makefile.in: Add support to build shared Ada libraries on solaris x86
24152 Remove gpr2make, replaced by gprmake.
24153 Remove references to gnatmem and libaddr2line.
24154 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
24155 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
24156 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
24157 a-numaux-darwin.ads and a-numaux-darwin.adb
24158 Enable mlib-tgt-lynxos.adb on lynxos.
24159
24160 * Make-lang.in: Remove rules for gpr2make.
24161 When generating sdefault.adb, do not call Relocate_Path
24162 on S3 for function Target_Name, as it is not a path.
24163 Remove references to gnatmem and libaddr2line.
24164
24165 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
24166 files.
24167
24168 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
24169
24170 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
24171 address is incompatible with its base type alignment constraints when
24172 this can be decided statically.
24173
24174 2005-01-03 Olivier Hainque <hainque@adacore.com>
24175
24176 * decl.c (compatible_signatures_p): New function. The intended purpose
24177 is to check if two function signatures for a call-site and a callee are
24178 compatible enough for the call to be valid. The underlying purpose is
24179 to check if a call to a mapped builtin is using the right interface.
24180 The current code actually does not check antyhing - this a placeholder
24181 for future refinements.
24182 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
24183 builtin calls for convention Intrinsic.
24184
24185 * gigi.h (builtin_decl_for): Declare (new function).
24186
24187 * utils.c (gnat_install_builtins): Install the target specific builtins.
24188 (builtin_decl_for): New function, provide a dummy body for now.
24189
24190 2005-01-03 Geert Bosch <bosch@adacore.com>
24191
24192 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
24193 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
24194 (Pred): Implement in terms of Succ.
24195
24196 * trans.c (convert_with_check): Reimplement conversion of float to
24197 integer.
24198
24199 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24200 Vincent Celier <celier@adacore.com>
24201
24202 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
24203 bounds can be negative, and must be declared Int, not Nat.
24204
24205 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
24206 array is checked after using the index in the array.
24207
24208 * makegpr.adb (Add_Switches): Check if there is a package for the
24209 processor. If there is no package, do not look for switches.
24210
24211 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24212
24213 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
24214 generation of predefined stream operations (specs and bodies) should
24215 proceed. Under various restrictions these subprograms must not be
24216 generated.
24217
24218 2005-01-03 Thomas Quinot <quinot@adacore.com>
24219
24220 * exp_dist.adb:
24221 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
24222 amount of PCS-specific code in RACW stubs generation.
24223 (Copy_Specification): Set Etype on copied formal parameter entities, as
24224 this information is needed for PolyORB stubs generation.
24225 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
24226 variable Dynamic_Async.
24227 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
24228 (Build_RPC_Receiver_Specification): Make generic again, as recent
24229 changes have allowed RPC receivers to have the same profile for both
24230 variants of the PCS.
24231 Reorganise RPC receiver generation to reduce differences between the
24232 structure of GARLIC and PolyORB RPC receivers.
24233 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
24234 PCS-specific.
24235 Simplify elaboration code for RCI packages.
24236
24237 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
24238 generation to reduce differences between the structure of GARLIC and
24239 PolyORB RPC receivers.
24240
24241 * s-stratt.adb: Fix typo in comment.
24242
24243 2005-01-03 Thomas Quinot <quinot@adacore.com>
24244
24245 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
24246 copied from Make_Init_Call).
24247
24248 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
24249 reads and assignments on a temporary variable declared with appropriate
24250 discriminants.
24251
24252 2005-01-03 Robert Dewar <dewar@adacore.com>
24253
24254 * i-c.adb (To_C): Raise CE if string is null and Append_Null
24255
24256 2005-01-03 Robert Dewar <dewar@adacore.com>
24257
24258 * i-cstrin.adb (Update): Do not append a null in form called with a
24259 String. This avoids unintended behavior.
24260
24261 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24262
24263 PR ada/17527
24264 * init.c: Fix warnings on Free BSD section.
24265
24266 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24267
24268 PR ada/16949
24269 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
24270 xsinfo.adb).
24271
24272 2005-01-03 Vincent Celier <celier@adacore.com>
24273
24274 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
24275 libraries when Unique_Compile is True (-u switch).
24276 (Gnatmake): ditto.
24277
24278 2005-01-03 Robert Dewar <dewar@adacore.com>
24279
24280 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
24281 upper case letter or underscore after W, as allowed by spec.
24282
24283 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24284
24285 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
24286 darwin port by using proper type definitions from header files.
24287 Use SIGTERM instead of SIGABRT for SIGADAABORT.
24288
24289 2005-01-03 Robert Dewar <dewar@adacore.com>
24290
24291 * par.adb: Enhance error message handling for configuration file
24292 pragmas.
24293
24294 2005-01-03 Robert Dewar <dewar@adacore.com>
24295
24296 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
24297 removed during the previous update (test properly for case of dividing
24298 largest negative number by -1, which generates overflow).
24299
24300 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24301 Sergey Rybin <rybin@adacore.com>
24302
24303 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
24304 to use as the defining identifier for a formal package.
24305 (Remove_Parent): If the instance takes place within (an instance of)
24306 a sibling, preserve private declarations of common parent.
24307
24308 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24309
24310 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
24311 to determine whether one of the operands is a fixed-point type for
24312 which a user-defined multiplication or division operation might be
24313 defined.
24314
24315 * sem_res.adb (Valid_Conversion): The legality rules for conversions
24316 of access types are symmetric in Ada 2005: either designated type can
24317 be unconstrained.
24318
24319 2005-01-03 Vincent Celier <celier@adacore.com>
24320
24321 * s-fileio.adb (Temp_File_Record): Change length of string component
24322 Name from L_tmpnam + 1 to max_path_len + 1.
24323
24324 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24325
24326 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
24327 Self_Id.Deferral_Level = 0.
24328 (Do_Pending_Action): Move this function to the spec.
24329
24330 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
24331 Do_Pending_Action explicitely when needed, in case we're using
24332 No_Abort restrictions.
24333
24334 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
24335 deferral level since it will not get changed by the generated code.
24336 Keeping a default value of 1 would prevent some operations (e.g.
24337 select or delay) to proceed successfully.
24338
24339 2005-01-03 Ben Brosgol <brosgol@adacore.com>
24340 Robert Dewar <dewar@adacore.com>
24341 Cyrille Comar <comar@adacore.com>
24342
24343 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
24344 porting guide chapter (vms version).
24345 Revised doc title (removed "for native platforms") and subtitle.
24346 Add discussion on warning flag for obsolescent features. First we
24347 note that it applies to obsolete GNAT features, which was previously
24348 omitted. Second we contrast the behavior with that of the new
24349 Ada 2005 AI-368 restriction No_Obsolescent_Features.
24350 Preliminary rewriting of GNAT & libraries chapter in order to take
24351 into account default project locations & new project manager
24352 capabilities.
24353
24354 2005-01-03 Robert Dewar <dewar@adacore.com>
24355
24356 * cstand.adb (Create_Operators): Clean up format and documentation of
24357 unary and binary operator result tables. No change in code, just
24358 reformatting and addition of comments.
24359
24360 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
24361 sem_ch2.adb: Minor reformatting
24362
24363 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
24364 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
24365 comments for Tree_Read and Tree_Write.
24366
24367 2005-01-03 Pascal Obry <obry@adacore.com>
24368
24369 * exp_attr.ads: Minor reformatting.
24370
24371 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
24372
24373 * comperr.adb (Compiler_Abort): Add specialized message for GAP
24374 versions.
24375
24376 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24377
24378 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
24379 whether the ancestor type is private, as may be the case with nested
24380 instantiations.
24381
24382 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
24383
24384 PR ada/19128
24385 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
24386
24387 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
24388
24389 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
24390 * utils2.c (build_unary_op): Likewise.
24391
24392 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24393
24394 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
24395
24396 2004-12-19 Richard Henderson <rth@redhat.com>
24397
24398 * trans.c (gigi): Update gimplify_body call.
24399
24400 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
24401
24402 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
24403
24404 2004-12-07 Ed Falis <falis@adacore.com>
24405
24406 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
24407 current task being suspended.
24408
24409 * init.c (__gnat_clear_exception): added to reset VxWorks exception
24410 count.
24411 (__gnat_map_signal): removed test for current task being suspended.
24412
24413 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24414
24415 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
24416 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
24417 targets (such as AAMP).
24418
24419 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24420
24421 * atree.adb (Visit_Itype): Create a new name for the generated itype,
24422 because the back-end may otherwise treat it as a redefinition of the
24423 old symbol.
24424
24425 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
24426
24427 * back_end.adb (Scan_Back_End_Switches): Accept --param.
24428
24429 * lang-specs.h: Accept --param.
24430
24431 2004-12-07 Vincent Celier <celier@adacore.com>
24432
24433 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
24434 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
24435 Current_Body_Suffix => Ada_Body_Suffix).
24436 Take into account Externally_Built attribute.
24437
24438 * clean.adb (In_Extension_Chain): Always return False when one of the
24439 parameter is No_Project.
24440 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
24441 Ada_Language_Index).
24442 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
24443 Process_Languages for procedure Parse).
24444
24445 * gnatcmd.adb (Carg_Switches): New table.
24446 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
24447 Adapt to name changes in package Prj (Current_Spec_Suffix =>
24448 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
24449
24450 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
24451 Header_Num and function Hash are now declared in package Prj,
24452 not Prj.Com.
24453
24454 * prj.adb (Suffix_Of): New function.
24455 (Set (Suffix)): New procedure.
24456 (Hash): One function moved from Prj.Com
24457 (Is_Present, Language_Processing_Data_Of): New functions
24458 (Set): Two new procedures
24459 (Add_Language_Name, Display_Language_Name): New procedures
24460
24461 * prj.ads: (Suffix_Of): New function
24462 (Set (Suffix)): New procedure
24463 Add several types and tables for multi-language support.
24464 (Header_Num): Type moved from Prj.Com
24465 (Hash): Two functions moved from Prj.Com
24466 (Is_Present, Language_Processing_Data_Of): New functions
24467 (Set): Two new procedures
24468 (Add_Language_Name, Display_Language_Name): New procedures
24469 (Naming): Component name changes:
24470 Current_Spec_Suffix => Ada_Spec_Suffix,
24471 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
24472 Impl_Suffixes, Supp_Suffixes.
24473 (Project_Data): New components: Externally_Built, Supp_Languages,
24474 First_Language_Processing, Supp_Language_Processing, Default_Linker,
24475 Default_Linker_Path.
24476
24477 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
24478 new package Language_Processing with its attributes (Compiler_Driver,
24479 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
24480 Binder_Driver, Default_Linker).
24481
24482 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
24483 (Header_Num): Type moved to package Prj
24484
24485 * prj-env.adb: Adapt to name changes in package Prj
24486 (Current_Spec_Suffix => Ada_Spec_Suffix,
24487 Current_Body_Suffix => Ada_Body_Suffix).
24488
24489 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
24490 default to the project path, except the "-" is one of the directories
24491 in env var ADA_PROJECT_PATH.
24492 (Current_Project_Path): Global variable, replacing Project_Path
24493 that was in the body of Prj.Part.
24494 (Project_Path): New function
24495 (Set_Project_Path): New procedure
24496 Initialize Current_Project_Path during elaboration of the package
24497 Remove dependency on Prj.Com, no longer needed
24498
24499 * prj-ext.ads (Project_Path): New function
24500 (Set_Project_Path): New procedure
24501
24502 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
24503 suffix is defined for language <lang>.
24504 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
24505 accessing directly the components of Naming.
24506 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
24507 Reorganise of this package.
24508 Break procedure Check in several procedures.
24509
24510 * prj-nmsc.ads: Replace all procedures (Ada_Check,
24511 Other_Languages_Check and Language_Independent_Check) with a single
24512 procedure Check.
24513
24514 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
24515 Process_Languages, no longer needed.
24516
24517 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
24518 Current_Project_Path.
24519 Remove elaboration code, moved to the body of Prj.Ext
24520 Use new function Prj.Ext.Project_Path instead of old variable
24521 Project_Path.
24522 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
24523 When comparing with project paths on the stack, first put the resolved
24524 path in canonical case.
24525 (Parse_Single_Project): Set the path name of the project file in the
24526 tree to the normalized path.
24527
24528 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
24529 parameter Process_Languages, no longer needed.
24530 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
24531 Other_Languages_Check.
24532
24533 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
24534 to store the resolved canonical path of the project file.
24535 Remove dependency to Prj.Com, no longer needed
24536
24537 * prj-util.adb: Adapt to name changes in package Prj
24538 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
24539 Ada_Body_Suffix).
24540
24541 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
24542 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
24543 Externally_Built, Include_Option, Language_Processing.
24544
24545 * makegpr.adb: Numerous changes due to changes in packages
24546 Prj and Prj.Nmsc.
24547
24548 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
24549 default to the project path, except whe "-" is one of the directories
24550 in env var ADA_PROJECT_PATH.
24551 (Gnatls): In verbose mode, add the new section "Project Search Path:"
24552
24553 2004-12-07 Robert Dewar <dewar@adacore.com>
24554
24555 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
24556
24557 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
24558 set -gnatR3m mode.
24559
24560 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
24561 flag. No longer needed now that we handle this in gnat1drv.adb.
24562
24563 * repinfo.ads: Minor reformatting
24564
24565 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24566 Olivier Hainque <hainque@adacore.com>
24567 Eric Botcazou <ebotcazou@adacore.com>
24568
24569 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
24570 TYPE_SIZE_UNIT of result type if SIZE is not specified.
24571 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
24572 of a bitfield, which we know is useless and causes trouble because of
24573 alignment implications.
24574
24575 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
24576 BSS sections.
24577 (process_attributes): Clear DECL_COMMON again when a section attribute
24578 is present.
24579 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
24580 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
24581 (create_field_decl): Special case ADDRESSABLE negative to mean
24582 "no bitfield creation", to be used by make_aligning_type. Don't
24583 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
24584 fields claimed addressable still have to be bitfields. Use
24585 value_factor_p instead of a raw binop construction to check for the
24586 position's alignment.
24587
24588 2004-12-07 Geert Bosch <bosch@adacore.com>
24589
24590 * eval_fat.adb: Revert previous change.
24591
24592 2004-12-07 Thomas Quinot <quinot@adacore.com>
24593 Ed Schonberg <schonberg@adacore.com>
24594
24595 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
24596 with an implicit dereference as its prefix, use
24597 Insert_Explicit_Dereference instead of merely rewriting the prefix into
24598 an explicit dereference. This ensures that a reference to the original
24599 prefix is generated, if appropriate.
24600
24601 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
24602 dereference is rewritten to an explicit one, generate a reference to
24603 the entity denoted by its prefix using the original prefix node, so
24604 the dereference can be properly recorded as a read of the denoted
24605 access value, if appropriate.
24606
24607 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
24608 emitting 'assigned but never read' warning on a variable on the basis
24609 that it has an access type.
24610 (Check_References): Emit unreferenced warning when the scope is a
24611 subprogram body.
24612
24613 2004-12-07 Robert Dewar <dewar@adacore.com>
24614 Ed Schonberg <schonberg@adacore.com>
24615
24616 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
24617 intrinsic
24618
24619 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
24620 leaving call unchanged.
24621 This deals with the case where the pragma Import specified
24622 an external name, to be handled by the back end.
24623
24624 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
24625 subprogram which is Imported with convention Intrinsic if an
24626 External_Name argument is specified.
24627 (Process_Import_Or_Interface): Properly diagnose link name argument.
24628 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
24629 with Sem_Ch6.Cannot_Inline.
24630 (Process_Inline): Provide separate warning for inapplicable inline
24631 pragma.
24632 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
24633 treatment is uniform on different targets.
24634
24635 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24636
24637 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
24638 construct is rewritten, preserve end label to permit source navigation.
24639
24640 2004-12-07 Thomas Quinot <quinot@adacore.com>
24641
24642 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
24643 Specific_Build_Stub_Target): New subprograms.
24644 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
24645 the PCS implementation used, using the above PCS-customized subprograms.
24646 Minor reformatting.
24647 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
24648 for generation of DSA code targeted to the PolyORB PCS.
24649 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
24650 implementation of the partition communication subsystem in ancillary
24651 subprograms.
24652 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
24653 PolyORB_Support.Build_Stub_Type): New subrograms containing the
24654 PCS-specific part of Add_Stub_Type.
24655 (Insert_Partition_Check): Use runtime library function to perform
24656 E.4(19) check.
24657
24658 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
24659 (RE_Same_Partition): New entity, from s-parint.
24660
24661 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
24662
24663 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24664
24665 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
24666 Output the copyright message on a separate line from the version
24667 message.
24668
24669 2004-12-07 Joel Brobecker <brobecker@adacore.com>
24670
24671 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
24672 compile-time warning.
24673
24674 2004-12-07 Robert Dewar <dewar@adacore.com>
24675
24676 * g-regpat.adb: (Match): Change a misuse of or to or else
24677
24678 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24679
24680 * lib-xref.adb:
24681 (Generate_Reference): Handle properly a reference to an entry formal,
24682 when an accept statement has a pragma Unreferenced for it.
24683
24684 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
24685 and the Has_Pragma_Unreferenced flag for each formal before analyzing
24686 the body, to ensure that warnings are properly emitted for each accept
24687 statement of a given task entry.
24688
24689 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
24690
24691 * Makefile.in: Add support for foreign threads on VMS.
24692
24693 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24694
24695 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
24696 Remove.
24697 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
24698
24699 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
24700
24701 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
24702 exception.
24703 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
24704
24705 2004-12-07 Robert Dewar <dewar@adacore.com>
24706
24707 * nlists.adb (Prepend_Debug): Remove parameters and nest within
24708 Prepend.
24709 (Remove_Next_Debug): Same fix
24710
24711 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
24712 maintain back pointers now, though we did not used to, and comments
24713 were out of date).
24714 (Prepend): Remove pragma Inline.
24715 (Remove_Next): Same cleanup
24716
24717 2004-12-07 Thomas Quinot <quinot@adacore.com>
24718
24719 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
24720 used to record an implicit dereference as a read operation on its
24721 prefix when operating under -gnatc. Necessary to avoid spurious
24722 'variable assigned but never read' warnings in that mode.
24723 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
24724 is a non-overloaded implicit dereference, call the above subprogram to
24725 ensure proper recording of references.
24726
24727 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24728
24729 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
24730 to be resolved later as part of Analyze_Iteration_Scheme's call to
24731 Make_Index.
24732
24733 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24734
24735 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
24736 prefix is not a scalar type, place error message on prefix, not on
24737 type entity.
24738
24739 2004-12-07 Bernard Banner <banner@adacore.com>
24740
24741 * vxaddr2line.adb: Add support for x86 vxworks
24742
24743 2004-12-07 Thomas Quinot <quinot@adacore.com>
24744
24745 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
24746 documentation of the behaviour of these functions when passed an IP
24747 address that has no record in the system hosts database and no reverse
24748 record in the DNS.
24749
24750 * cstand.adb, a-tags.ads: Fix typos in comment.
24751
24752 2004-12-07 Robert Dewar <dewar@adacore.com>
24753
24754 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
24755 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
24756 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
24757 s-poosiz.ads: Minor reformatting
24758
24759 * make.adb: Minor reformatting
24760 Add some ??? comments asking for more comments
24761
24762 * s-poosiz.adb: Minor reformatting
24763 Add comments on alignment requirement
24764
24765 * sinfo.ads: Remove obsolete comment and fix typo.
24766
24767 2004-12-07 Vincent Celier <celier@adacore.com>
24768 Sergey Rybin <rybin@adacore.com>
24769
24770 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
24771 Files" with the new tool and package names.
24772 Reformatting to suppress most of the warnings for line too long
24773 Document the new section "Project Search Path:" in the output of
24774 gnatls -v.
24775 Add gnatmetric section
24776
24777 2004-12-07 Vincent Celier <celier@adacore.com>
24778
24779 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
24780 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
24781 and -eit to -ept. Added qualifier
24782 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
24783
24784 2004-11-27 Andreas Schwab <schwab@suse.de>
24785
24786 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
24787
24788 2004-11-25 Arnaud Charlet <charlet@adacore.com>
24789
24790 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
24791 internal implementation unit GNAT.Sockets.Thin,
24792 as their usage for sockets is non-portable (using the read and write
24793 functions from the system runtime library is fine on UNIX but won't
24794 work under Windows).
24795
24796 * mingw32.h: Update copyright notice.
24797
24798 2004-11-25 Arnaud Charlet <charlet@adacore.com>
24799
24800 * ada-tree.h: Minor reformatting of previous change to avoid lines
24801 longer than 79 characters.
24802
24803 2004-11-25 Olivier Hainque <hainque@adacore.com>
24804
24805 * tb-gcc.c: GCC infrastructure based implementation of
24806 __gnat_backtrace.
24807
24808 2004-11-24 Steven Bosscher <stevenb@suse.de>
24809
24810 * misc.c (gnat_post_options): Don't clear
24811 flag_inline_functions.
24812
24813 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
24814
24815 PR ada/17986
24816 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
24817 tree.
24818
24819 2004-11-21 Andreas Jaeger <aj@suse.de>
24820
24821 * stylesw.adb: Change Style_Check_Subprogram_Order to
24822 Style_Check_Order_Subprograms.
24823
24824 2004-11-18 Arnaud Charlet <charlet@adacore.com>
24825
24826 * adaint.h, adaint.c
24827 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
24828 to avoid warnings.
24829 Add also a cast to kill another warning.
24830 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
24831 parameter with the priority class of the parent process instead of
24832 always using the NORMAL_PRIORITY_CLASS.
24833 (__gnat_dup): New function.
24834 (__gnat_dup2): New function.
24835 (__gnat_is_symbolic_link): Enable the effective body of this
24836 function when __APPLE__ is defined.
24837
24838 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
24839 Update comments.
24840
24841 2004-11-18 Olivier Hainque <hainque@adacore.com>
24842
24843 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
24844 address of which may be used to represent "others" and "all others"
24845 choices in exception tables, instead of the current harcoded
24846 (void *)0 and (void *)1.
24847 (Setup_Exception): Do nothing in the GNAT SJLJ case.
24848
24849 * gigi.h (others_decl, all_others_decl): New decls representing the
24850 new Others_Value and All_Others_Value objects.
24851 (struct attrib): Rename "arg" component as "args", since GCC expects a
24852 list of arguments in there.
24853
24854 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
24855 corresponding objects exported by a-exexpr, instead of hardcoded dummy
24856 addresses.
24857
24858 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
24859 others_decl and all_others_decl instead of hardcoded dummy addresses
24860 to represent "others" and "all others" choices, which is cleaner and
24861 more flexible with respect to the possible eh pointer encoding policies.
24862
24863 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
24864 (process_attributes): Account for the naming change of the "args"
24865 attribute list entry component.
24866
24867 * decl.c (build_attr_list): Rename into prepend_attributes to allow
24868 cumulating attributes for different entities into a single list.
24869 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
24870 attributes for the current entity and propagate first subtype
24871 attributes to other subtypes.
24872 <E_Procedure>: Attribute arguments are attr->args and not
24873 attr->arg any more.
24874 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
24875 argument provided, as this is what GCC expects. Use NULL_TREE instead
24876 of 0 for trees.
24877
24878 2004-11-18 Robert Dewar <dewar@adacore.com>
24879
24880 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
24881 Minor reformatting througout (including new function specs)
24882 Add ??? comments asking for clarification.
24883
24884 2004-11-18 Thomas Quinot <quinot@adacore.com>
24885
24886 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
24887 incomplete duplicate implementation of this subprogram from butil.
24888
24889 2004-11-18 Thomas Quinot <quinot@adacore.com>
24890
24891 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
24892 procedures factors the common processing for building an RPC receiver
24893 for an RCI package or an RACW type.
24894 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
24895 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
24896 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
24897 in use.
24898 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
24899 Add_RACW_Features.
24900 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
24901 Add_RAST_Features.
24902 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
24903 distribution subprogram identifiers that are either subprogram numbers
24904 or strings.
24905 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
24906 string distribution identifiers assigned to a given subprogram.
24907 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
24908 (Add_RAS_Dereference_TSS): Add comments.
24909 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
24910 is not referenced yet because it will be used by the PolyORB DSA
24911 implementation.
24912 (Insert_Partition_Check): Remove fossile code.
24913 (First_RCI_Subprogram_Id): Document this constant.
24914 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
24915 RAS_Access TSS.
24916 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
24917 replaced with calls to Get_Library_Unit_Name_String. Previously there
24918 were several instances of the same code in different locations in the
24919 compiler; this checkin completes the replacement of all of these
24920 instances with calls to a common subprogram.
24921 Minor reformatting.
24922
24923 * sem_dist.adb: Remove comment noting that RPC receiver generation
24924 should be disabled for RACWs that implement RASs.
24925 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
24926
24927 * sem_util.ads, sem_util.adb (Has_Stream): New function
24928 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
24929 qualified name of a library unit into the name buffer.
24930 (Note_Possible_Modification): Generate a reference only
24931 if the context comes from source.
24932
24933 * snames.ads (PCS_Names): New subtype corresponding to names of
24934 supported implementations of the Partition Communication Subsystem
24935 (PCS) (i.e. the runtime library support modules for the distributed
24936 systems annex).
24937
24938 2004-11-18 Robert Dewar <dewar@adacore.com>
24939 Ed Schonberg <schonberg@adacore.com>
24940
24941 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
24942 (Has_Rep_Pragma): New function
24943 (Has_Attribute_Definition_Clause): New function
24944 (Record_Rep_Pragma): Moved here from sem_ch13.adb
24945 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
24946
24947 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
24948
24949 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
24950 (Expand_Pragma_Psect_Object): New procedure
24951 These procedures contain the revised and cleaned up processing for
24952 these two pragmas. This processing was formerly in Sem_Prag, but
24953 is more appropriately moved here. The cleanup involves making sure
24954 that the pragmas are properly attached to the tree, and that no
24955 nodes are improperly shared.
24956
24957 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
24958 pragmas to Exp_Prag, which is more appropriate.
24959 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
24960 check for duplicates Remove use of Is_Psected flag, no longer needed.
24961 Use new Make_String_Literal function with string.
24962
24963 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
24964 that are functions return universal values, that have to be converted
24965 to the context type.
24966 Use new Make_String_Literal function with string.
24967 (Get_Stream_Convert_Pragma): New function, replaces the use of
24968 Get_Rep_Pragma, which had to be kludged to work in this case.
24969
24970 * freeze.adb: Use new Has_Rep_Pragma function
24971
24972 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
24973 function with string.
24974 Use new Has_Rep_Pragma function.
24975
24976 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
24977 string argument.
24978
24979 2004-11-18 Robert Dewar <dewar@adacore.com>
24980
24981 * errout.ads, errout.adb: (First_Sloc): New function
24982
24983 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
24984 check (-gnatyx) instead of being included as a redundant construct
24985 warning.
24986
24987 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
24988 Style_Check_Order_Subprograms.
24989
24990 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
24991 stylesw.adb: Add Style_Check_Xtra_Parens
24992
24993 * usage.adb: Add line for -gnatyx (check extra parens)
24994
24995 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
24996
24997 2004-11-18 Ed Schonberg <schonberg@adacore.com>
24998 Robert Dewar <dewar@adacore.com>
24999
25000 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
25001 discriminant of a constrained subtype, analyze the copy of the
25002 corresponding constraint, because in some cases it may be only
25003 partially analyzed.
25004 Removes long-lived ??? comments.
25005
25006 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
25007 handled controlled or secondary-stack expressions within the
25008 iteration_scheme of a loop.
25009
25010 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
25011 bounds that may contain functions calls, to prevent memory leaks when
25012 the bound contains a call to a function that uses the secondary stack.
25013 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
25014 generate temporaries for loop bounds that might contain function calls
25015 that require secondary stack and/or finalization actions.
25016
25017 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
25018 selected component and the selector is overloadable (not just a
25019 function) treat as function call, Analyze_Call will disambiguate if
25020 necessary.
25021 (Analyze_Selected_Component): Do not generate an actual subtype for the
25022 selected component if expansion is disabled. The actual subtype is only
25023 needed for constraint checks.
25024 (Analyze_Allocator): If restriction No_Streams is set, then do
25025 not permit objects to be declared of a stream type, or of a
25026 composite type containing a stream.
25027
25028 * restrict.ads: Remove the a-stream entry from Unit_Array, since
25029 No_Streams no longer prohibits with'ing this package.
25030
25031 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
25032 discriminants, but the parent base has unknown discriminants, there is
25033 no discriminant constraint to inherit. Such a discrepancy can arise
25034 when the actual for a formal type with unknown discriminants is a
25035 similar private type whose full view has discriminants.
25036 (Analyze_Object_Declaration): If restriction No_Streams is set, then
25037 do not permit objects to be declared of a stream type, or of a
25038 composite type containing a stream.
25039
25040 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25041
25042 * exp_dbug.ads: Update documentation to reflect simpler encoding for
25043 protected operations.
25044
25045 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
25046 generated name, it complicates decoding in gdb and hinders debugging
25047 of protected operations.
25048 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
25049 flag for the protected entry barrier function.
25050 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
25051 flag for the protected entry function.
25052
25053 2004-11-18 Nicolas Setton <setton@adacore.com>
25054
25055 * expect.c: Define __unix__ when __APPLE__ is defined.
25056
25057 * Makefile.in: Inform the value of the variable GMEM_LIB in the
25058 Darwin-specific section.
25059
25060 * lang-specs.h: Change the placement of the %1 marker.
25061 Works around the fact that gcc adds -fPIC by default under Darwin.
25062
25063 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25064
25065 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
25066 type of the object with the packed array type, set the Analyzed flag
25067 on the object if it is an entity or simple indexed component, to avoid
25068 spurious type errors.
25069
25070 2004-11-18 Gary Dismukes <dismukes@adacore.com>
25071
25072 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
25073 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
25074 separate line from the version message.
25075
25076 2004-11-18 Ed Falis <falis@adacore.com>
25077
25078 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
25079 vthreads.
25080 (init_float): Eliminate initialization of floating point status for
25081 AE653. The instructions have no effect for vThreads.
25082
25083 2004-11-18 Vincent Celier <celier@adacore.com>
25084
25085 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
25086 gnatbind is invoked with -shared.
25087
25088 2004-11-18 Jose Ruiz <ruiz@adacore.com>
25089
25090 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
25091 for Detect_Blocking which is redundant with the check done within the
25092 procedure Protected_Single_Entry_Call.
25093 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
25094 Detect_Blocking which is redundant with the check done within the
25095 procedure Protected_Single_Entry_Call.
25096
25097 2004-11-18 Vincent Celier <celier@adacore.com>
25098
25099 * makegpr.adb (Compile): Put the compiling switches (in package
25100 Compiler and on the command line) immediately after "-c", instead of
25101 at the end of the command line invocation of the compiler, when
25102 compiling a non-Ada file.
25103 (Build_Global_Archive): When there is no need to rebuild the archive,
25104 set Global_Archive_Exists, so that the archive is passed to the linker
25105 if one is needed.
25106
25107 2004-11-18 Robert Dewar <dewar@adacore.com>
25108 Sergey Rybin <rybin@adacore.com>
25109
25110 * gnat_ugn.texi:
25111 Remove extra paren check from list of checks for redundant constructs
25112 Add documentation of new -gnatyx style check (check extra parens)
25113 Remove paragraph about gnatelim debug options.
25114
25115 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
25116 objects rather than forbidding dependencies on the package Ada.Streams.
25117
25118 * sinfo.ads: Add ??? note that we should document pragmas passed to
25119 back end.
25120
25121 * g-expect.ads: Fix a few typos in the comments.
25122
25123 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
25124
25125 * misc.c (gnat_handle_option): Use %< and %> for quoting in
25126 warning message.
25127
25128 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25129
25130 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
25131
25132 2004-11-07 Andreas Schwab <schwab@suse.de>
25133
25134 * Makefile.in (install-gnatlib): Remove spurious hyphen.
25135
25136 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
25137
25138 PR ada/18228
25139 * Makefile.in (darwin): Set soext to .dylib.
25140
25141 2004-10-26 Vincent Celier <celier@gnat.com>
25142 Thomas Quinot <quinot@act-europe.fr>
25143
25144 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
25145 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
25146 there is no use of GNAT.Sockets.Constants.
25147 Remove remaining pragma Import for C_Write
25148 Remove C_Read and C_Write from internal implementation unit
25149 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
25150 the read and write functions from the system runtime library is fine
25151 on UNIX but won't work under Windows).
25152
25153 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
25154 (Check_Selector): Use C_Recv instead of C_Read.
25155 Selectors are the GNAT.Sockets abstraction to perform a select()
25156 call on a set of descriptors. To allow abortion of an ongoing
25157 select operation, some data is written to a dedicated socket that
25158 is always monitored.
25159 Under Windows, the write and read library functions cannot operate
25160 on sockets, so we need to use send and recv instead, which is portable
25161 across all supported platforms.
25162
25163 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
25164 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
25165 (using the read and write functions from the system runtime library is
25166 fine on UNIX but won't work under Windows).
25167
25168 2004-10-26 Nicolas Setton <setton@act-europe.fr>
25169
25170 * mlib-tgt-darwin.adb: New file.
25171
25172 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25173 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25174 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25175 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
25176 subprogram body.
25177
25178 * Makefile.in: Add support for building shared libraries under Darwin.
25179 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
25180 the low level EH init subprogram to be called from __gnat_initialize.
25181
25182 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
25183 indicates which options to pass to the archive indexer.
25184
25185 * mlib-utl.adb: Add support for calling ranlib with additional
25186 options. This is needed for instance under Mac OS X.
25187 (Ranlib_Options): New global variable, used to store the potential
25188 options to pass to ranlib.
25189 (Ar): Use Ranlib_Options when spawning ranlib.
25190 (Initialize): Set the value of ranlib option.
25191
25192 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
25193
25194 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
25195 instead of 8K, to reflect the real potential needs for stack-checking
25196 in the ZCX case.
25197
25198 2004-10-26 Pascal Obry <obry@gnat.com>
25199
25200 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
25201
25202 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
25203 Windows only the initial thread stack size can be set so it is good to
25204 start we a low stack size.
25205 The OS will adjust the size as needed.
25206
25207 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
25208 Nicolas Setton <setton@act-europe.fr>
25209
25210 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
25211 "__unix__" instead of "unix".
25212 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
25213 sections were just mistakenly ignored. The former is
25214 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
25215 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
25216 of hpux. This prevents an unwanted definition of the symbol
25217 convert_addresses in adaint.o.
25218
25219 2004-10-26 Gary Dismukes <dismukes@gnat.com>
25220
25221 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
25222 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
25223
25224 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25225
25226 * a-filico.ads, a-filico.adb: fix incorrect header.
25227
25228 2004-10-26 Javier Miranda <miranda@gnat.com>
25229
25230 * a-ststio.ads: Fix typo in identifier
25231
25232 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25233
25234 * sem_ch4.adb: Minor reformatting.
25235
25236 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25237
25238 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
25239 enabled, check the result of unary and binary operations when the
25240 expression is the right-hand side of an assignment.
25241
25242 2004-10-26 Vincent Celier <celier@gnat.com>
25243
25244 * clean.adb (Delete): Do not output warnings when in quiet output and
25245 not in verbose mode.
25246 (Force_Deletions): New Boolean flag, defaulted to False
25247 (Delete): Only delete a file if it is writable, and when
25248 Force_Deletions is True.
25249 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
25250 (Usage): Line for new switch -f
25251 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
25252 own.
25253
25254 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
25255
25256 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
25257 JM type only if its size matches that of the wrapper. When a size is
25258 prescribed and the field is not aliased, remove the wrapper of a JM
25259 type only if the size is not greater than that of the packed array.
25260 (gnat_to_gnu_entity): Change the extension of packed array wrappers
25261 from LJM to JM.
25262
25263 2004-10-26 Geert Bosch <bosch@gnat.com>
25264
25265 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
25266 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
25267 (Pred): Implement in terms of Succ.
25268
25269 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25270
25271 * exp_aggr.adb (Safe_Component): An aggregate component that is an
25272 unchecked conversion is safe for in-place use if the expression of the
25273 conversion is safe.
25274 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
25275 be expandable in place even if the aggregate does not come from source.
25276 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
25277 designated object of an allocator in place, rather than building it
25278 first on the stack. The previous scheme forces a full copy of the array,
25279 and may be altogether unsusable if the size of the array is too large
25280 for stack allocation.
25281
25282 2004-10-26 Robert Dewar <dewar@gnat.com>
25283
25284 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
25285 compares if the component is atomic.
25286
25287 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
25288 array assignment if the component type is atomic.
25289
25290 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25291 Eric Botcazou <ebotcazou@act-europe.fr>
25292
25293 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
25294 is aliased and is a by_reference type, do not pass by copy.
25295 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
25296 detect whether the call is in the right side of an assignment or
25297 the expression of an object declaration. Recurse on component
25298 association within aggregates.
25299 Call it in the condition that determines whether the temporary is
25300 necessary for correct stack-checking.
25301
25302 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25303
25304 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
25305 RACW_Type, used in the PolyORB version.
25306 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
25307 version and the GARLIC version.
25308
25309 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
25310 Rename RCI_Info to RCI_Locator for better consistency between the
25311 GARLIC and PolyORB versions of the distributed systems annex.
25312 (DSA_Implementation_Name): This enumeration lists the possible
25313 implementations of the Partition Communication Subsystem for the
25314 Distributed Systems Annex (DSA). The three available implementations
25315 are the dummy stub implementation (No_DSA), and two versions based on
25316 two different distribution runtime libraries: GARLIC and PolyORB. Both
25317 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
25318 technology.
25319 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
25320 that organization.
25321
25322 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
25323 between the GARLIC and PolyORB versions of the distributed systems
25324 annex.
25325 Remove RE_Unbounded_Reclaim_Pool since it is unused.
25326
25327 2004-10-26 Gary Dismukes <dismukes@gnat.com>
25328
25329 * gnat1drv.adb: Suppress calling the back end when
25330 Frontend_Layout_On_Target is true.
25331
25332 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25333
25334 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
25335 Set_Read_Only): New subprograms.
25336 These new routines allow the user to set or unset the Owner execute
25337 and Owner write permission flags on a file.
25338
25339 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
25340 GNAT.OS_Lib.Set_Executable instead of rolling our own.
25341
25342 2004-10-26 Matthew Gingell <gingell@gnat.com>
25343
25344 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
25345
25346 2004-10-26 Pascal Obry <obry@gnat.com>
25347
25348 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
25349 memory before the faulting page we properly test the process read
25350 access for this address using appropriate Win32 routine.
25351 (HPUX sections): guard with "__hpux__" instead of "hpux".
25352
25353 2004-10-26 Robert Dewar <dewar@gnat.com>
25354
25355 * lib-xref.adb (Generate_Reference): Don't complain about reference to
25356 entry parameter if pragma Unreferenced set, since we do not properly
25357 handle the case of multiple parameters.
25358
25359 2004-10-26 Vincent Celier <celier@gnat.com>
25360
25361 * prj-env.adb: (Contains_ALI_Files): New Boolean function
25362 (Ada_Objects_Path.Add): For a library project, add to the object path
25363 the library directory only if there is no object directory or if the
25364 library directory contains ALI files.
25365 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25366
25367 2004-10-26 Vincent Celier <celier@gnat.com>
25368
25369 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
25370 extension of library projects.
25371
25372 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
25373 path defaults to ".:<prefix>/lib/gnat".
25374 (Parse): For an extending all project, allow direct import of a project
25375 that is virtually extended.
25376
25377 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
25378 the specified name is directly imported, return its ID. Otherwise, if
25379 an extension of this project is imported, return the ID of the
25380 extension.
25381
25382 2004-10-26 Robert Dewar <dewar@gnat.com>
25383
25384 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
25385 (Sub3): New procedure, used by Scaled_Divide
25386 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
25387 correct more than one instance of failure to propagate carries
25388 correctly.
25389 (Double_Divide): Handle overflow case of largest negative number
25390 divided by minus one.
25391
25392 * s-arit64.ads (Double_Divide): Document that overflow can occur in
25393 the case of a quotient value out of range.
25394 Fix comments.
25395
25396 2004-10-26 Robert Dewar <dewar@gnat.com>
25397
25398 * s-bitops.adb (Bit_Eq): Remove redundant check.
25399
25400 * s-bitops.ads: Minor comment updates
25401 Change some occurrences of Address to System.Address
25402
25403 * s-carsi8.ads: Fix minor cut-and-paste error in comments
25404
25405 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25406
25407 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
25408 accessibility check to prefix that is a protected operation.
25409
25410 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25411
25412 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
25413 empty, post message on stub.
25414
25415 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25416 Javier Miranda <miranda@gnat.com>
25417
25418 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
25419 current instance appears within a unit that is directly in the context
25420 of the main unit.
25421 Used to determine whether the body of the instance should be analyzed
25422 immediately after its spec, to make its subprogram bodies available
25423 for front-end inlining.
25424 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
25425 constraint is not allowed on the component type (AARM 12.5.3(3))
25426
25427 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25428
25429 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
25430 'Storage_Pool): enhance, document & limit detection of non-sharable
25431 internal pools.
25432
25433 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
25434
25435 * s-pooglo.ads: Add more documentation now that this pool is properly
25436 documented.
25437
25438 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25439
25440 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
25441 or protected type with discriminants, do not constrain the
25442 corresponding record type if the subtype declaration has no
25443 discriminant constraints. This can be the case in source code, or in
25444 the subtype declaration created to rename an actual type within an
25445 instantiation.
25446
25447 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25448
25449 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
25450 different kind of stub (possibly wrong name for file), do not check
25451 for conformance.
25452 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
25453 includes call to some function that returns an unconstrained type, do
25454 not inline.
25455
25456 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25457
25458 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
25459 appear in the code for the main unit. Dependencies among units in the
25460 context of the main unit are established when those other units are
25461 compiled. Otherwise spurious elaboration constraints can generate
25462 incorrect elaboration circularities.
25463
25464 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25465 Ed Schonberg <schonberg@gnat.com>
25466
25467 * sem_util.adb (Is_Aliased_View): Defend against the case where this
25468 subprogram is called with a parameter that is not an object name. This
25469 situation arises for some cases of illegal code, which is diagnosed
25470 later, and in this case it is wrong to call Is_Aliased, as that might
25471 cause a compiler crash.
25472 (Explain_Limited_Type): Refine previous fix to include
25473 inherited components of derived types, to provide complete information.
25474
25475 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
25476 is the prival for a protected object.
25477 It is necessary to mark this entity as a variable, in addition to
25478 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
25479 modified to avoid checking the Aliased flag on entities that are not
25480 objects. (Checking that flag for non-objects is erroneous and could
25481 lead to a compiler crash).
25482
25483 2004-10-26 Robert Dewar <dewar@gnat.com>
25484
25485 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
25486 X_Frac = 0.5, then we know that the number X must be positive.
25487 (Succ): Remove the same redundant test, and also fix the primary test
25488 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
25489 Minor reformatting
25490 (Decompose): Add fuller comments to spec
25491
25492 2004-10-26 Pascal Obry <obry@gnat.com>
25493
25494 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
25495 validity (process must have read access). Set to 0 in all other cases.
25496 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
25497 violation on Win32.
25498 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
25499 segmentation violation.
25500
25501 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
25502
25503 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
25504 whose type is a constructed subtype of an aliased object with an
25505 unconstrained nominal subtype, convert the actual to the constructed
25506 subtype before taking its address.
25507
25508 2004-10-26 Vincent Celier <celier@gnat.com>
25509
25510 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
25511 (Is_Path_Name_Case_Sensitive): New function
25512
25513 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
25514 (Base_Name, Simple_Name, Current_Directory, Compose,
25515 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
25516 the result.
25517
25518 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25519 Vasiliy Fofanov <fofanov@act-europe.fr>
25520 Vincent Celier <celier@gnat.com>
25521
25522 * gnat_ugn.texi: Generalize "finding memory problems" section into a
25523 "memory management issues" section and document some of the useful
25524 memory pools provided as part of the GNAT library.
25525 Remove "virtual" from declaration of A::method2 in
25526 the simple example of Ada/C++ mixed system.
25527 Library Projects may be virtually extended: their virtual extensions
25528 are not Library Projects.
25529 Added section on extending project hierarchies.
25530
25531 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25532
25533 * adaint.c (__gnat_get_libraries_from_registry): Cast value
25534 to LPBYTE.
25535 (__gnat_portable_spawn): Remove const.
25536
25537 * mingw32.h (MAXPATHLEN): Check for previous definition.
25538
25539 2004-10-17 Matthias Klose <doko@debian.org>
25540
25541 * gnatvsn.ads: Set gnat library version to 4.0.
25542
25543 2004-10-05 Vincent Celier <celier@gnat.com>
25544
25545 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
25546
25547 2004-10-04 Laurent Guerby <laurent@guerby.net>
25548
25549 PR ada/15156
25550 * Makefile.in: Define and use RANLIB_FLAGS.
25551
25552 2004-10-04 Pascal Obry <obry@gnat.com>
25553
25554 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
25555 other x86 platforms).
25556
25557 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
25558
25559 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
25560 in general and triggers stack alignment adjustment for thread entry
25561 points on targets where this is necessary.
25562
25563 2004-10-04 Bernard Banner <banner@gnat.com>
25564
25565 PR ada/13897
25566 * Makefile.in: Add section for powerpc linux
25567 Add variant i-vxwork-x86.ads
25568
25569 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
25570
25571 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
25572
25573 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
25574 table registration calls when need be. Ensures no reference to the crt
25575 ctors symbol are issued in the SJLJ case, which avoids possible
25576 undefined symbol errors in the case of modules to be statically linked
25577 with the kernel.
25578
25579 2004-10-04 Javier Miranda <miranda@gnat.com>
25580
25581 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
25582 in-line the code corresponding to subprogram Analyze_Actuals. In
25583 addition, analyze the actuals only in case of subprogram call.
25584
25585 2004-10-04 Ed Falis <falis@gnat.com>
25586
25587 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
25588
25589 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
25590
25591 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
25592 in the documentation.
25593
25594 2004-10-04 Robert Dewar <dewar@gnat.com>
25595
25596 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
25597 IF and CASE.
25598 (Analyze_Block_Statement): Add circuitry to detect following dead code
25599 (Check_Unreachable_Code): Handle case of block exit
25600
25601 2004-10-04 Robert Dewar <dewar@gnat.com>
25602
25603 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
25604 (XMatchD): Avoid warning for Logic_Error call
25605
25606 2004-10-04 Robert Dewar <dewar@gnat.com>
25607
25608 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
25609 consider expressions buried within a procedure actual to be an actual.
25610 This caused some blowups with uses of packed slices within a procedure
25611 actual.
25612
25613 2004-10-04 Robert Dewar <dewar@gnat.com>
25614
25615 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
25616 longer need to be initialized to zero.
25617 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
25618 initialized to zero.
25619
25620 * checks.adb (Expr_Known_Valid): Packed arrays are now always
25621 considered valid, even if the representation is modular. That's correct
25622 now that we no longer initialize packed modular arrays to zero.
25623
25624 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
25625 suffixes. These are now documented as the only cases in which the
25626 debugger ignores outer records.
25627 Previously, the spec allowed arbitrary suffixes for this purpose.
25628 Change name of LJM to JM for packed array pad records
25629 Create separate section on packed array handling, and add a whole new
25630 set of comments to this section describing the situation with packed
25631 modular types and justification requirements depending on endianness.
25632
25633 2004-10-04 Robert Dewar <dewar@gnat.com>
25634
25635 * a-except.adb: Add a comment for last change
25636
25637 * einfo.ads: Minor spelling correction in comment
25638
25639 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
25640
25641 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
25642 messages.
25643
25644 * sem_util.ads: Minor comment update
25645
25646 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25647
25648 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
25649 Inline_Always when in Configurable_Run_Time mode.
25650
25651 * sem_prag.adb (Process_Convention): If entity is an inherited
25652 subprogram, apply convention to parent subprogram if in same scope.
25653 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
25654 when in Configurable_Run_Time mode.
25655
25656 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25657
25658 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
25659 class_wide type after component list has been inherited.
25660
25661 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25662
25663 * sem_ch12.adb (Check_Generic_Actuals): New predicate
25664 Denotes_Previous_Actual, to handle properly the case of a private
25665 actual that is also the component type of a subsequent array actual.
25666 The visibility status of the first actual is not affected when the
25667 second is installed.
25668 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
25669 make fully recursive the treatment of formals of packages declared
25670 with a box.
25671 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
25672 the above on exit from an instantiation.
25673 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
25674 current instantiation which is now complete.
25675 (Analyze_Package_Instantiation): No instantiated body is needed if the
25676 main unit is generic. Efficient, and avoid anomalies when a instance
25677 appears in a package accessed through rtsfind.
25678
25679 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25680
25681 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
25682 do not generate a declaration for a temporary if the call is part of a
25683 library-level instantiation.
25684
25685 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25686
25687 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
25688 searching for a limited component to flag.
25689
25690 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
25691 expansion of Input, to account for the fact that the implicit call
25692 generated by the attribute reference must freeze the user-defined
25693 stream subprogram. This is only relevant to 'Input, because it can
25694 appear in an object declaration, prior to the body of the subprogram.
25695
25696 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
25697 expansion can proceed and further errors uncovered.
25698 (Minor clean up): Fix cases of using | instead of \ for continuation
25699 messages.
25700
25701 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25702
25703 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
25704
25705 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
25706 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
25707 Use gcc_assert and gcc_unreachable.
25708
25709 * decl.c (gnat_to_gnu_entity, case object): Check and process a
25710 specified alignment before validating size.
25711 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
25712 stripped-down declaration for the type of the inner field when making
25713 a JM type.
25714
25715 * utils.c (finish_record_type): Do not compute the size in units
25716 incrementally. Instead compute it once for the rep clause case.
25717 Use gcc_assert and gcc_unreachable.
25718
25719 2004-10-04 Vincent Celier <celier@gnat.com>
25720
25721 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
25722 in file name.
25723 (Is_Valid_Path_Name): Take '/' as a directory separator.
25724
25725 2004-10-04 Vincent Celier <celier@gnat.com>
25726
25727 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
25728 (Extended_Project) only if Extended_Project is defined, to avoid
25729 assertion error.
25730 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
25731 resolved path.
25732 (Parse_Single_Project): Ditto.
25733
25734 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
25735 Add_To_Project_Path for virtual projects.
25736
25737 2004-10-04 Vincent Celier <celier@gnat.com>
25738
25739 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25740 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25741 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25742 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
25743 parameter Options_2.
25744
25745 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
25746 Build_Dynamic_Library with an empty Options_2.
25747
25748 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
25749 default anymore.
25750
25751 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
25752 directory separator, if any.
25753 (Gprmake): Do not allow mains on the command line for library projects.
25754 Do not attempt to link when the project is a library project.
25755 (Library_Opts): New table to store Library_Options.
25756 (Build_Library): If Library_Options is specified, pass these options
25757 when building a shared library.
25758
25759 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
25760
25761 * s-tposen.adb (Service_Entry): The object must be always unlocked at
25762 the end of this procedure now that the unlock operation was inserted
25763 by the expander.
25764
25765 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
25766
25767 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
25768 corresponding to the Preallocated_Stacks flags in System.
25769 (Get_Target_Parameters): Including the processing for
25770 Preallocated_Stacks.
25771
25772 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
25773 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
25774 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
25775 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
25776 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
25777 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
25778 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
25779 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
25780 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
25781 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
25782 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
25783 used to signal whether the compiler creates the required stacks and
25784 descriptors for the different tasks (when True) or it is done by the
25785 underlying operating system at run time (when False).
25786 It is initially set to False in all targets.
25787
25788 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
25789 if it is supported by the target.
25790 (Make_Task_Create_Call): Pass the stack address if it has been
25791 previously created. Otherwise pass a Null_Address.
25792
25793 * snames.adb: Add _stack.
25794
25795 * snames.ads: Add Name_uStack. Required to allow the expander to
25796 statically allocated task stacks.
25797
25798 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
25799 Stack_Address argument.
25800 Check that its value is equal to Null_Address because this target does
25801 not support the static stack allocation.
25802
25803 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
25804
25805 * usage.adb: Change "pragma inline" to "pragma Inline" in information
25806 and error messages
25807
25808 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
25809
25810 * exp_dist.adb: Split declaration of asynchronous flag out of
25811 Add_RACW_Read_Attribute.
25812 Minor reformatting for better alignment with PolyORB version.
25813 Store the entity for the asynchronous flag of an RACW, rather than the
25814 expression, in the asynchronous flags table. This will allow this flag
25815 to be used in other subprograms beside Add_RACW_Read_Attribute.
25816
25817 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
25818
25819 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
25820 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25821 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
25822 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
25823 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
25824 sockets constant MSG_NOSIGNAL (Linux-specific).
25825 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
25826 all Send operations.
25827 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
25828 from trigerring SIGPIPE.
25829 Rename components to avoid clash with Ada 2005 possible reserved
25830 word 'interface'.
25831 (Check_Selector): When the select system call returns with an error
25832 condition, propagate Socket_Error to the caller.
25833
25834 2004-10-01 Jan Hubicka <jh@suse.cz>
25835
25836 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
25837
25838 2004-09-23 Robert Dewar <dewar@gnat.com>
25839
25840 PR ada/17540
25841 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
25842 instead do this at freeze time (we won't do it if there is an address
25843 clause).
25844 Change "pragma inline" to "pragma Inline" in information and error
25845 messages.
25846 Minor reformatting.
25847
25848 * freeze.adb (Check_Address_Clause): Remove previous change, not the
25849 right way of doing things after all.
25850 (Freeze_Entity): For object, set Is_Public for imported entities
25851 unless there is an address clause present.
25852
25853 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
25854
25855 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
25856 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
25857 ensures proper handling of types with rep clauses, which might have
25858 their TYPE_SIZE set already.
25859
25860 2004-09-21 Robert Dewar <dewar@gnat.com>
25861
25862 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
25863 packed array types in both little- and big-endian cases. This change
25864 ensures that we no longer count on the unused bits being initialized
25865 for such types (and in particular ensures that equality testing will
25866 only read the relevant bits).
25867 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
25868 These changes mean that we no longer need to initialize small packed
25869 arrays.
25870 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
25871 optimization to an LJM field as to its parent field.
25872
25873 * ada-tree.h, trans.c, utils.c, utils2.c:
25874 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
25875
25876 2004-09-20 Jan Hubicka <jh@suse.cz>
25877
25878 * utils.c (gnat_finalize): Remove.
25879 (end_subprog_body): Directly call cgraph_finalize_function;
25880 do not lower the nested functions.
25881
25882 2004-09-20 Robert Dewar <dewar@gnat.com>
25883
25884 PR ada/17540
25885 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
25886 if an address clause is present, since that means that the Import
25887 should be ignored.
25888
25889 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
25890
25891 * 5tsystem.ads: Removed, no longer used.
25892
25893 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
25894 Zack Weinberg <zack@codesourcery.com>
25895
25896 * ada-tree.def: Use tree_code_class enumeration constants
25897 instead of code letters.
25898 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
25899 Update for new tree-class enumeration constants.
25900
25901 2004-09-17 Vincent Celier <celier@gnat.com>
25902
25903 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
25904 capabilities of the general project manager.
25905
25906 2004-09-09 Vincent Celier <celier@gnat.com>
25907
25908 * a-direct.ads: Add pragma Ada_05
25909 (Directory_Entry_Type): Give default value to component Kind to avoid
25910 not initialized warnings.
25911
25912 * a-direct.adb (Current_Directory): Remove directory separator at the
25913 end.
25914 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
25915 an existing directory.
25916 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
25917 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
25918 Convert the result to File_Size.
25919
25920 * prj.ads: (Project_Error): New exception
25921
25922 * prj-attr.adb: Except in procedure Initialize, Fail comes from
25923 Prj.Com, not from Osint.
25924 (Attrs, Package_Attributes): Tables moved to private part of spec
25925 (Add_Attribute, Add_Unknown_Package): Moved to new child package
25926 Prj.Attr.PM.
25927 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
25928 Prj.Project_Error after call to Fail.
25929 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
25930 Fail. Check that package name is not already in use.
25931
25932 * prj-attr.ads: Comment updates to indicate that all subprograms may be
25933 used by tools, not only by the project manager, and to indicate that
25934 exception Prj.Prj_Error may be raised in case of problem.
25935 (Add_Unknown_Package, Add_Attribute): Moved to new child package
25936 Prj.Attr.PM.
25937 (Attrs, Package_Attributes): Table instantiations moved from the body to
25938 the private part to be accessible from Prj.Attr.PM body.
25939
25940 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
25941 from new package Prj.Attr.PM.
25942 (Parse_Attribute_Declaration): Call Add_Attribute from new package
25943 Prj.Attr.PM.
25944
25945 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
25946
25947 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
25948 instead of Elaboration_Checks).
25949
25950 * a-calend.adb: Minor reformatting
25951
25952 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25953
25954 * gigi.h (maybe_pad_type): New declaration.
25955 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
25956
25957 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
25958
25959 * cuintp.c: Convert to use buildN.
25960
25961 * decl.c (maybe_pad_type): No longer static.
25962 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
25963 target pointer.
25964 Convert to use buildN.
25965
25966 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
25967 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
25968 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
25969 RHS.
25970 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
25971 (gnat_gimplify_expr, case ADDR_EXPR): New case.
25972 Convert to use buildN.
25973
25974 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
25975 TREE_READONLY for const.
25976 Convert to use buildN.
25977
25978 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
25979 (create_var_decl): Refine when TREE_STATIC is set.
25980 Convert to use buildN.
25981
25982 2004-09-09 Gary Dismukes <dismukes@gnat.com>
25983
25984 * gnat_ugn.texi: Delete text relating to checking of ali and object
25985 consistency.
25986
25987 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
25988 routines.
25989
25990 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
25991
25992 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
25993 pragmas recognized by GNAT.
25994
25995 * gnat_rm.texi: Document pragma Detect_Blocking.
25996
25997 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
25998 raise Program_Error if called from a protected operation.
25999
26000 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
26001 the protected action nesting level.
26002 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
26003 protected action nesting level.
26004 (Unlock): When pragma Detect_Blocking is active decrease the protected
26005 action nesting level.
26006
26007 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
26008 Protected_Action_Nesting.
26009
26010 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
26011 Common_ATCB record. It contains the dynamic level of protected action
26012 nesting for each task. It is needed for checking whether potentially
26013 blocking operations are called from protected operations.
26014 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
26015 Detect_Blocking is active or not in the partition.
26016
26017 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
26018 raise Program_Error if called from a protected operation.
26019 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
26020 Program_Error if called from a protected operation.
26021 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
26022 Program_Error if called from a protected operation.
26023
26024 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
26025 raise Program_Error if called from a protected operation.
26026
26027 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
26028 raise Program_Error if called from a protected operation, and increase
26029 the protected action nesting level.
26030 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
26031 Program_Error if called from a protected operation, and increase the
26032 protected action nesting level.
26033 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
26034 protected action nesting level.
26035
26036 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
26037 raise Program_Error if called from a protected operation, and increase
26038 the protected action nesting level.
26039 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
26040 Program_Error if called from a protected operation, and increase the
26041 protected action nesting level.
26042 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
26043 raise Program_Error if called from a protected operation.
26044 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
26045 active, raise Program_Error if called from a protected operation.
26046 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
26047 protected action nesting level.
26048
26049 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
26050 insertion of the statement raising Program_Error. The run time
26051 contains the required machinery for handling that.
26052
26053 * sem_util.ads: Change comment associated to procedure
26054 Check_Potentially_Blocking_Operation.
26055 This procedure does not insert a call for raising the exception because
26056 that is currently done by the run time.
26057
26058 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
26059
26060 * init.c: Add the global variable __gl_detect_blocking that indicates
26061 whether pragma Detect_Blocking is active (1) or not (0). Needed for
26062 making the pragma available at run time.
26063 (__gnat_set_globals): Pass and update the detect_blocking parameter.
26064
26065 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
26066 pragma Detect_Blocking is active.
26067
26068 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
26069
26070 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
26071 DB is found in the ali file. Any unit compiled with pragma
26072 Detect_Blocking active forces its effect in the whole partition.
26073
26074 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
26075 Detect_Blocking is active and delay is called from a protected
26076 operation.
26077
26078 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
26079 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
26080 Detect_Blocking is active (0 otherwise).
26081 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
26082 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
26083 otherwise).
26084
26085 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
26086
26087 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
26088 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
26089 package.
26090
26091 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
26092 (Register_Receiving_Stub): Add Subp_Info formal parameter.
26093 Update API in placeholder implemetation of s-parint to reflect changes
26094 in distribution runtime library.
26095
26096 * sem_ch3.adb (Expand_Derived_Record): Rename to
26097 Expand_Record_Extension.
26098
26099 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
26100 primitive operations of potentially distributed object types that have
26101 non-controlling anonymous access formals.
26102
26103 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
26104 subprogram.
26105 New implementation of expansion for remote access-to-subprogram types,
26106 based on the RACW infrastructure.
26107 This version of sem_dist is compatible with PolyORB/DSA as well as
26108 GLADE.
26109
26110 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
26111 Asynchrronous that applies to a remote access-to-subprogram type, mark
26112 the underlying RACW type as asynchronous.
26113
26114 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
26115 __gnat_using_gnu_linker to 1.
26116
26117 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
26118 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
26119 GNAT.Perfect_Hash_Generators, and remove the empty
26120 GNAT.Perfect_Hash package.
26121
26122 * atree.adb: Minor reformatting
26123
26124 * exp_ch3.adb (Expand_Derived_Record): Rename to
26125 Expand_Record_Extension.
26126 (Build_Record_Init_Proc.Build_Assignment): The default expression in
26127 a component declaration must remain attached at that point in the
26128 tree so New_Copy_Tree copies it if the enclosing record type is derived.
26129 It is therefore necessary to take a copy of the expression when building
26130 the corresponding assignment statement in the init proc.
26131 As a side effect, in the case of a derived record type, we now see the
26132 original expression, without any rewriting that could have occurred
26133 during expansion of the ancestor type's init proc, and we do not need
26134 to go back to Original_Node.
26135
26136 * exp_ch3.ads (Expand_Derived_Record): Rename to
26137 Expand_Record_Extension.
26138
26139 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
26140 Returns the RACW type used to implement a remote access-to-subprogram
26141 type.
26142 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
26143 New subprograms. Used to create a proxy tagged object for a remote
26144 subprogram. The proxy object is used as the designated object
26145 for RAS values on the same partition (unless All_Calls_Remote applies).
26146 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
26147 System.Partition_Interface.Get_Unique_Remote_Pointer.
26148 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
26149 Renamed from Add_RAS_*_Attribute.
26150 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
26151 subprograms.
26152 New implementation of expansion for remote access-to-subprogram types,
26153 based on the RACW infrastructure.
26154
26155 * exp_dist.ads (Copy_Specification): Update comment to note that this
26156 function can copy the specification from either a subprogram
26157 specification or an access-to-subprogram type definition.
26158
26159 2004-09-09 Ed Schonberg <schonberg@gnat.com>
26160
26161 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
26162 in an instance, between an explicit subprogram an one inherited from a
26163 type derived from an actual.
26164
26165 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
26166 add a polling call if the subprogram is to be inlined by the back-end,
26167 to avoid repeated calls with multiple inlinings.
26168
26169 * checks.adb (Apply_Alignment_Check): If the expression in the address
26170 clause is a call whose name is not a static entity (e.g. a dispatching
26171 call), treat as dynamic.
26172
26173 2004-09-09 Robert Dewar <dewar@gnat.com>
26174
26175 * g-trasym.ads: Minor reformatting
26176
26177 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
26178 packed arrays, since unused bits are expected to be zero for a
26179 comparison.
26180
26181 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
26182
26183 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
26184 comment.
26185
26186 2004-09-09 Pascal Obry <obry@gnat.com>
26187
26188 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
26189 enable map file generation. Add the right option to generate the map
26190 file if Map_File is set to True.
26191
26192 * gnatdll.adb (Gen_Map_File): New variable.
26193 (Syntax): Add info about new -m (Map_File) option.
26194 (Parse_Command_Line): Add support for -m option.
26195 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
26196 Minor reformatting.
26197
26198 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
26199
26200 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
26201 new gnatdist implementation.
26202 Define a subpackage isolating the output routines specific to this
26203 verbose mode.
26204
26205 2004-09-09 Joel Brobecker <brobecker@gnat.com>
26206
26207 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
26208
26209 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
26210
26211 2004-09-09 Cyrille Comar <comar@act-europe.fr>
26212
26213 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
26214 internal unit.
26215
26216 * opt.ads: Add Ada_Version_Runtime constant used to decide which
26217 version of the language is used to compile the run time.
26218
26219 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
26220
26221 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
26222 of variable length temporaries for function return now that the
26223 back-end and gigi support it.
26224
26225 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26226
26227 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
26228
26229 * trans.c (struct stmt_group): Delete field GLOBAL.
26230 (gnat_init_stmt_group): Do not initialize it.
26231 (call_to_gnu): Use save_expr, not protect_multiple_eval.
26232 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
26233 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
26234 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
26235 (start_stmt_group): Likewise.
26236 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
26237
26238 * utils2.c (ggc.h): Include.
26239 (build_call_raise): Call build_int_cst, not build_int_2.
26240
26241 * utils.c (gnat_init_decl_processing): Fix arg to
26242 build_common_tree_nodes.
26243 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
26244 (gnat_define_builtin): Set built_in_decls.
26245 (init_gigi_decls): Call build_int_cst, not build_int_2.
26246
26247 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
26248 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
26249 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
26250 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
26251 SET_TYPE_MODULE): Use them.
26252 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
26253 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
26254 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
26255 SET_TYPE_ADA_SIZE): Likewise.
26256 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
26257 (DECL_CONST_CORRESPONDING_VAR,
26258 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
26259 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
26260 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
26261 (TYPE_RM_SIZE_NUM): New macro.
26262 (TYPE_RM_SIZE): Modified to use above.
26263
26264 * cuintp.c: (build_cst_from_int): New function.
26265 (UI_To_gnu): Use it.
26266
26267 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
26268 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
26269 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
26270 MIN_EXPR for the size, copy it into new.
26271
26272 2004-09-01 Robert Dewar <dewar@gnat.com>
26273
26274 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
26275 packed indexed component where array is an IN OUT formal. This
26276 generated garbage code previously.
26277
26278 * gnat_ugn.texi: Document -fverbose-asm
26279
26280 * gnat-style.texi: Minor updates (note that boolean constants and
26281 variables are joined with AND/OR rather than short circuit forms).
26282
26283 2004-09-01 Ed Schonberg <schonberg@gnat.com>
26284
26285 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
26286 it is an upward conversion of an untagged type with no representation
26287 change.
26288
26289 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
26290
26291 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
26292 System.Partition_Interface.
26293
26294 * checks.adb (Apply_Access_Checks): Do not generate checks when
26295 expander is not active (but check for unset reference to prefix of
26296 dereference).
26297
26298 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
26299 pragma Debug as an if statement with a constant condition, for
26300 consistent treatment of entity references contained within the
26301 enclosed procedure call.
26302
26303 2004-09-01 Vincent Celier <celier@gnat.com>
26304
26305 * bindgen.adb: (Set_EA_Last): New procedure
26306 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
26307 Set_EA_Last.
26308 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
26309 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
26310 linked without errors.
26311 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
26312 ST and EA.
26313 (Gen_Exception_Table_C): Correct same bugs
26314
26315 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
26316
26317 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
26318 on Windows, make sure that the drive letter is in upper case.
26319
26320 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
26321 Windows, when the drive letter is added and Case_Sensitive is True, the
26322 drive letter is forced to upper case.
26323
26324 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
26325 to Options_2 for the call to MLib.Utl.Gcc.
26326
26327 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
26328 directory separator when defining BASE_DIR.
26329
26330 2004-09-01 Pascal Obry <obry@gnat.com>
26331
26332 * gprcmd.adb (Extend): Do not output trailing directory separator. This
26333 is not needed and it confuses Windows GNU/make which does not report
26334 directory terminated by a slash as a directory.
26335 (gprcmd): Idem for "pwd" internal command.
26336
26337 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
26338 target names rewrite to fix regressions with recent version of
26339 GNU/make. Starting with GNU/make 3.80 the pipe character was not
26340 handled properly anymore.
26341
26342 2004-09-01 Andreas Schwab <schwab@suse.de>
26343
26344 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
26345 * raise.c [!IN_RTS]: Undef abort.
26346
26347 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
26348
26349 * utils2.c (build_allocator): Use ssize_int.
26350
26351 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
26352
26353 2004-08-27 Andreas Schwab <schwab@suse.de>
26354
26355 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
26356
26357 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
26358 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26359
26360 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
26361
26362 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
26363
26364 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
26365 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26366 * utils.c (init_gigi_decls): Likewise.
26367 * utils2.c (build_call_raise, build_allocator): Likewise.
26368
26369 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
26370
26371 * utils.c (gnat_init_decl_processing): Adjust
26372 build_common_tree_nodes call.
26373
26374 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
26375
26376 * utils2.c (build_allocator): Use build_int_cst for negative
26377 size types.
26378
26379 2004-08-18 Richard Henderson <rth@redhat.com>
26380
26381 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
26382
26383 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
26384
26385 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
26386 call.s
26387 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
26388 (gnat_to_gnu): Likewise.
26389
26390 2004-08-16 Pascal Obry <obry@gnat.com>
26391
26392 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
26393 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
26394 option and not mdll anymore. Update comment.
26395
26396 2004-08-16 Pascal Obry <obry@gnat.com>
26397
26398 * bld.adb (Put_Include_Project): Properly handle directory separators
26399 on Windows.
26400
26401 2004-08-16 Ed Schonberg <schonberg@gnat.com>
26402
26403 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
26404 decreasing the number of allocated junk nodes while searching for the
26405 appropriate subprogram.
26406
26407 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
26408
26409 * cuintp.c (UI_To_gnu): Use build_int_cst..
26410 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26411 * utils.c (init_gigi_decls): Likewise.
26412 * utils2.c (build_call_raise): Likewise.
26413
26414 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
26415
26416 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
26417 for a global aliased object with a variable size and an unconstrained
26418 nominal subtype, pretend there is no initializer if the one we have is
26419 incomplete, and avoid referencing an inexistant component in there. The
26420 part we have will be rebuilt anyway and the reference may confuse
26421 further operations.
26422
26423 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
26424
26425 * einfo.ads: Minor reformatting
26426
26427 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
26428 restrictions in the ALI if we only want to warn about violations.
26429
26430 2004-08-13 Vincent Celier <celier@gnat.com>
26431
26432 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
26433 when creating a new Unit_Record in table Units.
26434
26435 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
26436 that are violated, if any.
26437
26438 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
26439 add directory separator if path already ends with a directory separator.
26440
26441 2004-08-13 Ed Schonberg <schonberg@gnat.com>
26442
26443 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
26444 unit, this is an attempt to inline a construct that is not available in
26445 the current restricted mode, so abort rather than trying to continue.
26446
26447 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
26448 discriminants that rename those of the parent, recover names of
26449 original discriminants for the constraint on the full view of the
26450 parent.
26451 (Complete_Private_Subtype): Do not create a subtype declaration if the
26452 subtype is an itype.
26453
26454 * gnat_rm.texi: Added section on implementation of discriminated
26455 records with default values for discriminants.
26456
26457 2004-08-13 Ed Schonberg <schonberg@gnat.com>
26458
26459 PR ada/15601
26460 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
26461 the second operand is overloaded.
26462
26463 2004-08-10 Richard Henderson <rth@redhat.com>
26464
26465 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
26466 add __builtin_alloca.
26467
26468 2004-08-10 Richard Henderson <rth@redhat.com>
26469
26470 * config-lang.in (boot_language): Yes.
26471
26472 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
26473
26474 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
26475 from complaining on potential uninitialized reference.
26476 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
26477 new specification and test explicitly for non-zero return value.
26478
26479 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
26480 returning C.int, to avoid using a derived boolean type.
26481
26482 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
26483 Duplicate_Subexpr_No_Checks in preference to direct use of
26484 Remove_Side_Effects and New_Copy_Tree.
26485 Clear Comes_From_Source on prefix of 'Size attribute reference.
26486
26487 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
26488 g-socthi-vxworks.adb: Change calls to
26489 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
26490 and test explicitly for non-zero return value.
26491
26492 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
26493 (Is_Socket_In_Set): Declare imported function as returning C.int, to
26494 avoid using a derived boolean type.
26495
26496 2004-08-09 Albert Lee <lee@gnat.com>
26497
26498 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
26499
26500 2004-08-09 Pascal Obry <obry@gnat.com>
26501
26502 * gnat_ugn.texi: Document new way to build DLLs on Windows using
26503 GCC's -shared option.
26504
26505 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
26506 Options_2 parameter (options put after object files).
26507
26508 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
26509
26510 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
26511 ignore overflows on low and high bounds of an index to also account for
26512 differences in signedness between sizetype and gnu_index_subtype.
26513 These are as legitimate as the ones caused by a lower TYPE_PRECISION
26514 on sizetype.
26515
26516 2004-08-09 Robert Dewar <dewar@gnat.com>
26517
26518 * s-solita.ads, s-solita.adb: Minor reformatting
26519
26520 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
26521 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
26522 obsolescent section
26523 Add note that No_Implicit_Conditionals does not suppress
26524 run time constraint checks.
26525
26526 * vms_conv.ads: Minor reformatting
26527
26528 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
26529 and necessary for following change).
26530 (Mark): Return new format Mark_Id containing sec stack address
26531 (Release): Use sec stack address from Mark_Id avoiding Self call
26532
26533 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
26534 pointer (cleanup and necessary for following change).
26535 Define Mark_Id as record containing address of secondary stack, that way
26536 Release does not need to find the stack again, decreasing the number of
26537 calls to Self and improving efficiency.
26538
26539 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
26540
26541 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
26542 case variable into the individual case branches when possible.
26543
26544 * sem_ch11.adb: Minor reformatting
26545
26546 * prj.ads: Correct spelling of suffixs
26547
26548 * prj-nmsc.adb: Minor reformatting
26549 Correct spelling suffixs throughout (also in identifiers)
26550
26551 * freeze.adb: Minor spelling correction
26552
26553 * exp_ch2.adb: Cleanups to handling of Current_Value
26554 (no functional effect).
26555
26556 * bld.adb: Correct spelling of suffixs
26557
26558 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
26559
26560 2004-08-09 Ed Schonberg <schonberg@gnat.com>
26561
26562 PR ada/15408
26563 * sem_ch7.adb (Install_Private_Declarations): In the body of the
26564 package or of a child, private entities are both immediately_visible
26565 and not hidden.
26566
26567 2004-08-09 Ed Schonberg <schonberg@gnat.com>
26568
26569 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
26570 there are no range checks on the value of the literal.
26571
26572 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
26573 wrapped is the triggering alternative of an asynchronous select, action
26574 statements mustbe inserted before the select itself.
26575
26576 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
26577 case where the prefix is a protected function call.
26578 (Resolve_Attribute, case 'Access): The attribute reference on a
26579 subprogram is legal in a generic body if the subprogram is declared
26580 elsewhere.
26581
26582 2004-08-09 Vincent Celier <celier@gnat.com>
26583
26584 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
26585 languages, otherwise building the library may fail with unresolved
26586 symbols.
26587 (Compile_Sources): Do not build libraries if -c switch is used
26588
26589 * gnatlink.adb (Process_Args): New switches -M and -Mmap
26590 (Write_Usage): If map file creation is supported, output new switches
26591 -M and -Mmap.
26592 (Gnatlink): When -M is specified, add the necessary switch(es) to the
26593 gcc call, when supported.
26594
26595 * Makefile.in: Added indepsw.o to the object list for gnatlink
26596 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
26597
26598 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
26599 indepsw.adb, indepsw.ads: New files.
26600
26601 2004-08-09 Bernard Banner <banner@gnat.com>
26602
26603 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
26604
26605 * Makefile.in: add section for vxworks x86
26606
26607 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
26608
26609 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
26610 per-object constrained components where the discriminant is of an
26611 Access type.
26612 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
26613 the parent initialization procedure for derived Unchecked_Unions.
26614 Instead, derived Unchecked_Unions build their own initialization
26615 procedure.
26616 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
26617 Check the body of the subprogram for details.
26618 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
26619 functions for derived Unchecked_Union types by introducing a condition.
26620 Allow the creation of TSS equality functions for Unchecked_Unions.
26621 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
26622 Add formal parameter Discr to function signature. Discr is used to
26623 control the generated case statement for Unchecked_Union types.
26624 (Make_Eq_If): Rename formal parameter Node to E in function signature.
26625
26626 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
26627 Unchecked_Unions.
26628 Check the body of the subprogram for details.
26629 (Expand_Composite_Equality): Augment composite type equality to include
26630 correct handling of Unchecked_Union components.
26631 (Expand_N_In): Add condition to detect illegal membership tests when the
26632 subtype mark is a constrained Unchecked_Union and the expression lacks
26633 inferable discriminants, and build a Raise_Program_Error node.
26634 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
26635 to detect types that contain components of unconstrained Unchecked_Union
26636 subtype. Add condition to detect equality between types that have an
26637 unconstrained Unchecked_Union component, and build a Raise_Program_Error
26638 node. Add condition to detect equality between Unchecked_Union types
26639 that lack inferable discriminants, and build a Raise_Program_Error node.
26640 Otherwise build a TSS equality function call.
26641 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
26642 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
26643 with the operand lacking inferable discriminants, and build a Raise_
26644 Program_Error node.
26645 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
26646 composite equality.
26647 (Has_Inferable_Discriminants): Implement new predicate for objects and
26648 expressions of Unchecked_Union type. Check the body of subprogram for
26649 details.
26650 (Has_Unconstrained_UU_Components): Add function
26651 Component_Is_Unconstrained_UU. It is used to detect whether a single
26652 component is of an unconstrained Unchecked_Union subtype. Add function
26653 Variant_Is_Unconstrained_UU. It is used to detect whether a single
26654 component inside a variant is of an unconstrained Unchecked_Union type.
26655
26656 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
26657 inferred discriminant values. Add condition to generate a case
26658 statement with an inferred discriminant as the switch.
26659 (Make_Component_List_Assign): Introduce a Boolean flag that determines
26660 the behaviour of the subprogram in the presence of an Unchecked_Union.
26661 Add condition to trigger the usage of the inferred discriminant value
26662 as the generated case statement switch.
26663 (Make_Field_Assign): Introduce a Boolean flag that determines the
26664 behaviour of the subprogram in the presence of an Unchecked_Union. Add
26665 condition to trigger the usage of the inferred discriminant value as
26666 the right-hand side of the generated assignment.
26667
26668 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
26669 parameter generation when dealing with Unchecked_Unions.
26670
26671 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
26672 checks for Unchecked_Unions.
26673
26674 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
26675
26676 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
26677 Raise_Program_Error nodes for the execution of Read and Write
26678 attributes of Unchecked_Union types and the execution of Input and
26679 Output attributes of Unchecked_Union types that lack default
26680 discriminant values.
26681
26682 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
26683 Unchecked_Union. Add procedure Check_Component. It is used to inspect
26684 per-object constrained components of Unchecked_Unions for being
26685 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
26686 check individual components withing a variant.
26687
26688 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
26689 comparison of Unchecked_Unions.
26690 (Resolve_Equality_OP): Remove guard that prevents equality between
26691 Unchecked_Unions.
26692
26693 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
26694 of component subtypes for Unchecked_Union components.
26695 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
26696 since it is the actual subtype.
26697
26698 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
26699 pass of Unchecked_Union subtypes as generic actuals to formal types
26700 that lack known_discriminant_parts or that are derived Unchecked_Union
26701 types, and do nothing. In any other case, produce an error message.
26702
26703 * sem_ch3.adb (Analyze_Component_Declaration): Add function
26704 Contains_POC. It determines whether a constraint uses the discriminant
26705 of an enclosing record type.
26706 Add condition to detect per-object constrained component and set the
26707 appropriate flag.
26708 (Derived_Type_Declaration): Remove guard that prevents derivation from
26709 Unchecked_Union types.
26710 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
26711 Union subtypes.
26712
26713 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
26714 references to Unchecked_Union discriminants.
26715
26716 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
26717 formal generation when dealing with Unchecked_Unions.
26718 (Set_Actual_Subtypes): Add condition to prevent generation of actual
26719 subtypes for Unchecked_Unions.
26720
26721 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
26722 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
26723 completions of discriminated partial views by Unchecked_Unions and
26724 produce an error message.
26725
26726 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26727
26728 * trans.c (struct stmt_group): New field, GLOBAL.
26729 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
26730 (struct elab_info): New struct.
26731 (elab_info_list, gnu_elab_proc_stack): New variables.
26732 (Compilation_Unit_to_gnu): New procedure.
26733 (gigi): Call it and also handle elaboration procs we've saved.
26734 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
26735 global field from parent.
26736 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
26737 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
26738 (start_stmt_group): Initialize global field from parent.
26739 (add_decl_expr): Set to global for current statement group.
26740 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
26741 post.
26742
26743 * utils.c (global_bindings_p): True when no current_function_decl; no
26744 longer check current_binding_level.
26745
26746 2004-08-09 Ben Brosgol <brosgol@gnat.com>
26747
26748 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
26749 choice.
26750
26751 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
26752
26753 2004-08-06 Andreas Schwab <schwab@suse.de>
26754
26755 * utils.c (gnat_define_builtin): Remove second parameter of
26756 make_decl_rtl.
26757 (begin_subprog_body): Likewise.
26758
26759 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
26760
26761 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
26762 optimization, not supported by the tree-ssa back-end.
26763
26764 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
26765
26766 * s-mastop-irix.adb: Update comments.
26767
26768 * a-except.adb (Exception_Information): Raise Constraint_Error if
26769 exception Id is Null_Id.
26770 This is required behavior, which is more reliably and clearly checked
26771 at the top level interface level.
26772
26773 2004-07-26 Javier Miranda <miranda@gnat.com>
26774
26775 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
26776 call if a component has no default_expression and the box is used.
26777
26778 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
26779 default_expression and you use box, it behaves as if you had declared a
26780 stand-alone object.
26781 (Resolve_Record_Aggregate): If a component has no default_expression and
26782 you use box, it behaves as if you had declared a stand-alone object.
26783
26784 * sem_ch10.adb (Install_Siblings): Do not make visible the private
26785 entities of private-with siblings.
26786
26787 2004-07-26 Ed Schonberg <schonberg@gnat.com>
26788
26789 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
26790 for a component of an itype, set the parent pointer for analysis,
26791 there is no list in which to insert it.
26792
26793 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
26794 bona-fide renamings, not for inherited operations.
26795
26796 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
26797 actual for a formal that is an access parameter, create local
26798 finalization list even if the expression is not an aggregate.
26799
26800 2004-07-26 Ed Schonberg <schonberg@gnat.com>
26801
26802 PR ada/16213
26803 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
26804 Diagnose properly illegal subprogram renamings that are library units.
26805
26806 2004-07-26 Ed Schonberg <schonberg@gnat.com>
26807
26808 PR ada/15588
26809 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
26810 conversion rewritten as an unchecked conversion, check that original
26811 expression is a variable.
26812
26813 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
26814 unchecked_conversion, create new node rather than rewriting in place,
26815 to preserve original construct.
26816
26817 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26818
26819 * gigi.h (gnat_expand_body): Deleted.
26820
26821 * Make-lang.in: (trans.o): Depends on function.h.
26822
26823 * misc.c: (gnat_expand_body): Moved to here.
26824
26825 * trans.c (gnat_expand_body_1): Deleted.
26826 (gnat_expand_body): Moved from here.
26827 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
26828 (add_stmt): Check for marked visited with global_bindings_p.
26829 (gnat_gimplify_expr, case COMPONENT_REF): New case.
26830 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
26831
26832 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
26833 VIEW_CONVERT_EXPR if not operation type.
26834
26835 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
26836 fat pointer.
26837
26838 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
26839 changes: reformatting of negation operators, removing unneeded
26840 inequality comparison with zero, converting equality comparisons with
26841 zero to negations, changing int/0/1 to bool/false/true, replace calls
26842 to gigi_abort with abort, and various other similar changes.
26843
26844 2004-07-26 Vincent Celier <celier@gnat.com>
26845
26846 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
26847 "setup".
26848
26849 * make.adb (Gnatmake): Fail when a library is not present and there is
26850 no object directory.
26851
26852 * mlib-prj.adb (Check_Library): No need to check if the library needs
26853 to be rebuilt if there is no object directory, hence no object files
26854 to build the library.
26855
26856 * opt.ads (Setup_Projects): New Boolean flag.
26857
26858 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
26859 Location.
26860 Create directory when Kind /= "" and in "gnat setup". Report error if
26861 directory cannot be created.
26862 (Ada_Check): Create library interface copy dir if it does not exist
26863 and we are in "gnat setup".
26864 (Find_Sources): No error if in "gnat setup" and no Ada sources were
26865 found.
26866 (Language_Independent_Check): Create object directory, exec directory
26867 and/or library directory if they do not exist and we are in
26868 "gnat setup".
26869
26870 * vms_conv.ads: (Command_Type): New command Setup.
26871
26872 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
26873
26874 * vms_data.ads: Add qualifiers/switches for new built-in command
26875 "setup".
26876
26877 2004-07-25 Richard Henderson <rth@redhat.com>
26878
26879 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
26880 DECL_IGNORED_P on RESULT_DECL.
26881
26882 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
26883
26884 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
26885 allocation and potentially overflowing update with
26886 Tailored_Exception_Information. Use the sec-stack free procedural
26887 interface to output Exception_Information instead.
26888
26889 * a-except.adb (To_Stderr): New subprogram for character, and string
26890 version moved from a-exextr to be visible from other separate units.
26891 (Tailored_Exception_Information): Remove the procedural version,
26892 previously used by the default Last_Chance_Handler and not any more.
26893 Adjust various comments.
26894
26895 * a-exexda.adb: Generalize the exception information procedural
26896 interface, to minimize the use of secondary stack and the need for
26897 local buffers when the info is to be output to stderr:
26898 (Address_Image): Removed.
26899 (Append_Info_Character): New subprogram, checking for overflows and
26900 outputing to stderr if buffer to fill is of length 0.
26901 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
26902 (Append_Info_Address, Append_Info_Exception_Name,
26903 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
26904 Append_Info_Basic_Exception_Traceback,
26905 Append_Info_Exception_Information): New subprograms.
26906 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
26907 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
26908 Exception_Info_Maxlength, Exception_Name_Length,
26909 Exception_Message_Length): New subprograms.
26910 (Exception_Information): Use Append_Info_Exception_Information.
26911 (Tailored_Exception_Information): Use
26912 Append_Info_Basic_Exception_Information.
26913 Export services for the default Last_Chance_Handler.
26914
26915 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
26916 other separate units.
26917
26918 2004-07-20 Vincent Celier <celier@gnat.com>
26919
26920 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
26921
26922 2004-07-20 Ed Schonberg <schonberg@gnat.com>
26923
26924 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
26925 emit itype references for the designated types of component types that
26926 are declared outside of the full record declaration, and that may
26927 denote a partial view of that record type.
26928
26929 2004-07-20 Ed Schonberg <schonberg@gnat.com>
26930
26931 PR ada/15607
26932 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
26933 which is the designated type in an access component declaration, to the
26934 list of incomplete dependents of the parent type, to avoid elaboration
26935 issues with out-of-scope subtypes.
26936 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
26937 full view of the parent.
26938
26939 2004-07-20 Ed Schonberg <schonberg@gnat.com>
26940
26941 PR ada/15610
26942 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
26943 entities that are hidden, such as references to generic actuals
26944 outside an instance.
26945
26946 2004-07-20 Javier Miranda <miranda@gnat.com>
26947
26948 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
26949 support to the new notation.
26950 (Analyze_Selected_Component): Add call to Try_Object_Operation.
26951
26952 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
26953
26954 * s-taprob.adb: Adding the elaboration code required for initializing
26955 the tasking soft links that are common to the full and the restricted
26956 run times.
26957
26958 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
26959 restricted run time has been moved to the package
26960 System.Soft_Links.Tasking.
26961
26962 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
26963 restricted run time has been moved to the package
26964 System.Soft_Links.Tasking.
26965
26966 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
26967
26968 * s-solita.ads, s-solita.adb: New files.
26969
26970 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26971
26972 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
26973 Case_Statement_to_gnu): Split off from gnat_to_gnu.
26974 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
26975 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
26976 Exception_Handler_to_gnu_zcx): Likewise.
26977
26978 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
26979
26980 * gigi.h (builtin_function): Declare.
26981
26982 2004-07-15 Robert Dewar <dewar@gnat.com>
26983
26984 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
26985 reformatting
26986
26987 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
26988 access values as an example of a warning.
26989
26990 * gnat_rm.texi: Document new attribute Has_Access_Values
26991
26992 * gnat-style.texi: Document that box comments belong on nested
26993 subprograms
26994
26995 * sem_util.ads (Has_Access_Values): Improved documentation
26996
26997 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
26998
26999 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
27000 (Process_Interface_Name): Call to this new procedure
27001 (Set_Extended_Import_Export_External_Name): Call to this new procedure
27002
27003 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
27004
27005 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
27006
27007 * einfo.ads: Minor comment typo fixed
27008
27009 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
27010
27011 * snames.adb: Add _atcb.
27012
27013 * snames.ads: Add Name_uATCB.
27014
27015 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
27016 (in the expanded code) when using the restricted run time.
27017
27018 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
27019 a in parameter in order to allow ATCBs to be preallocated (in the
27020 expanded code).
27021
27022 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
27023 order to allow ATCBs to be preallocated. In case of error, the ATCB is
27024 deallocated in System.Tasking.Stages.
27025
27026 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
27027 order to allow ATCBs to be preallocated.
27028
27029 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
27030 here. It was previously done in Initialize_ATCB.
27031
27032 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
27033
27034 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
27035 Restricted run time.
27036
27037 * exp_ch3.adb: When using the Restricted run time, pass the
27038 preallocated Ada_Task_Control_Block when creating a task.
27039
27040 2004-07-15 Ed Schonberg <schonberg@gnat.com>
27041
27042 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
27043 function call that is itself an actual in an enclosing call, diagnose
27044 problem here rather than assuming that resolution will catch it.
27045
27046 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
27047 the local copy of a generic unit for a formal package, and the generic
27048 is a child unit, install private part of ancestors before compiling
27049 private part of spec.
27050
27051 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
27052 use scope entities rather than tree structures, to handle properly
27053 parent units that are instances rewritten as bodies for inlining
27054 purposes.
27055
27056 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
27057 Remove_Parents): Handle properly a parent unit that is an
27058 instantiation, when the unit has been rewritten as a body for inlining
27059 purposes.
27060
27061 * par.adb (Goto_List): Global variable to collect goto statements in a
27062 given unit, for use in detecting natural loops.
27063
27064 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
27065 use in detecting natural loops.
27066
27067 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
27068 backwards goto's, and rewrite as a infinite loop, to improve locality
27069 of temporaries.
27070
27071 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
27072 subcomponent that includes an indexed reference, to prevent the
27073 generation of copies that would miscompile the desired assignment
27074 statement.
27075 (Build_Task_Image_Decls): Add a numeric suffix to
27076 generated name for string variable, to avoid spurious conflicts with
27077 the name of the type of a single protected object.
27078
27079 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
27080 loop with an explicit exit statement, to avoid generating an
27081 out-of-range value with 'Succ leading to spurious constraint_errors
27082 when compiling with -gnatVo.
27083
27084 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
27085
27086 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
27087 might not be analyzed yet, even if its Etype is already set (case of an
27088 unchecked conversion built using Unchecked_Convert_To, for example).
27089 If the prefix has already been analyzed, this will be a nop anyway.
27090
27091 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
27092 controller type, or an assignment of a record type with controlled
27093 components, copy only user data, and leave the finalization chain
27094 pointers untouched.
27095
27096 2004-07-15 Vincent Celier <celier@gnat.com>
27097
27098 * make.adb (Collect_Arguments): Improve error message when attempting
27099 to compile a source not part of any project, when -x is not used.
27100
27101 * prj.ads: (Defined_Variable_Kind): New subtype
27102
27103 * prj-attr.adb (Register_New_Package): Two new procedures to register
27104 a package with or without its attributes.
27105 (Register_New_Attribute): Mew procedure to register a new attribute in a
27106 package.
27107 New attribute oriented subprograms: Attribute_Node_Id_Of,
27108 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27109 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27110 Next_Attribute.
27111 New package oriented subprograms: Package_Node_Id_Of,
27112 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27113
27114 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
27115 type.
27116 (Package_Node_Id): Now a private, self initialized type
27117 (Register_New_Package): New procedure to register a package with its
27118 attributes.
27119 New attribute oriented subprograms: Attribute_Node_Id_Of,
27120 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27121 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27122 Next_Attribute.
27123 New package oriented subprograms: Package_Node_Id_Of,
27124 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27125
27126 * prj-dect.adb (Parse_Attribute_Declaration,
27127 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
27128
27129 * prj-makr.adb (Make): Parse existing project file before creating
27130 other files. Fail if there was an error during parsing.
27131
27132 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
27133 new spec of Prj.Attr.
27134
27135 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
27136 to new spec of Prj.Attr.
27137
27138 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27139
27140 * utils2.c: Fix typo in comment.
27141
27142 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27143
27144 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
27145 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
27146
27147 2004-07-14 Andreas Schwab <schwab@suse.de>
27148
27149 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
27150
27151 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27152
27153 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
27154 object type.
27155 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
27156 TYPE_STUB_DECL.
27157
27158 * misc.c (gnat_types_compatible_p): New function.
27159 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
27160 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
27161
27162 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
27163 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
27164 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
27165 (mark_visited): Don't mark dummy type.
27166 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
27167 parameter, we must remove any LJM building from GNU_NAME.
27168 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
27169 (pos_to_constructor): Use int_const_binop.
27170 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
27171 PARM_DECL.
27172
27173 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
27174 (gnat_pushlevel): Set TREE_USE on BLOCK node.
27175 (gnat_install_builtins): Add __builtin_memset.
27176
27177 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
27178
27179 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
27180 for a renaming, stabilize the initialization expression if we are at a
27181 local level. At the local level, uses of the renaming may be performed
27182 by a direct dereference of the initializing expression, and we don't
27183 want possible variables there to be evaluated for every use.
27184
27185 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
27186 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
27187 them on the way. Account for the fact that we may introduce side
27188 effects in the process.
27189
27190 2004-07-13 Richard Henderson <rth@redhat.com>
27191
27192 * misc.c (default_pass_by_ref): Use pass_by_reference.
27193
27194 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
27195
27196 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
27197 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
27198
27199 2004-07-08 Richard Henderson <rth@redhat.com>
27200
27201 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
27202 commentary.
27203
27204 2004-07-06 Vincent Celier <celier@gnat.com>
27205
27206 * vms_conv.ads: Minor reformatting.
27207 Alphabetical order for enumerated values of type Command_Type, to have
27208 the command in alphabetical order for the usage.
27209
27210 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
27211 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
27212
27213 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
27214
27215 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
27216 (Add_Archive_Path): Only add the global archive if there is one.
27217 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
27218 or not any object file to put in the global archive, and don't build
27219 a global archive if there is none.
27220 (X_Switches): New table
27221 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
27222 in the X_Switches table, if any.
27223 (Initialize): Make sure the X_Switches table is empty
27224 (Scan_Arg): Record -X switches in table X_Switches
27225
27226 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
27227
27228 * make.adb: Minor comment fix
27229
27230 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
27231 invoked with directory information, add the directory in front of the
27232 path.
27233
27234 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
27235 invoked with directory information, add the directory in front of the
27236 path.
27237
27238 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
27239 when Keep_Temporary_Files is False.
27240 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
27241 directory information, add the directory in front of the path.
27242 When not on VMS, handle new switch -dn before the command to set
27243 Keep_Temporary_Files to True.
27244 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
27245 everywhere.
27246
27247 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
27248 invoked with directory information, add the directory in front of the
27249 path.
27250
27251 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
27252
27253 * snames.ads, snames.adb (Name_Stub): New name for the distributed
27254 systems annex.
27255
27256 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
27257 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
27258
27259 * g-socket.adb (To_Timeval): Fix incorrect conversion of
27260 Selector_Duration to Timeval for the case of 0.0.
27261
27262 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
27263 documentation from Evolve_And_Then.
27264
27265 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
27266
27267 * s-taprop-tru64.adb, s-taprop-os2.adb,
27268 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
27269
27270 2004-07-06 Robert Dewar <dewar@gnat.com>
27271
27272 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
27273 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
27274 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
27275 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
27276 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
27277 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
27278 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
27279 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
27280 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
27281 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
27282 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
27283 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
27284 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
27285 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
27286 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
27287 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
27288 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
27289 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
27290 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
27291 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
27292 vms_data.ads: Minor reformatting,
27293 Fix bad box comment format.
27294
27295 * gnat_rm.texi: Fix minor grammatical error
27296
27297 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
27298
27299 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
27300 more cases of discriminated records to be recognized as not needing a
27301 secondary stack.
27302 (Has_Access_Values): New function.
27303
27304 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
27305
27306 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
27307 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
27308 with LRM terminology).
27309 Change terminology in comments primitive type => elementary type.
27310
27311 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27312
27313 PR ada/15602
27314 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
27315 parameters do not impose any requirements on the presence of a body.
27316
27317 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27318
27319 PR ada/15593
27320 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
27321 compilation unit and is in an open scope at the point of instantiation,
27322 assume that a body may be present later.
27323
27324 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27325
27326 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
27327 Improve error message when specified size is not supported.
27328
27329 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
27330 is never a primitive operation.
27331
27332 2004-07-05 Andreas Schwab <schwab@suse.de>
27333
27334 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
27335 RECORD_OR_UNION_CHECK.
27336 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
27337
27338 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
27339
27340 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
27341 dependency on xgnatugn, instead build it via a submake.
27342 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
27343
27344 2004-07-04 Richard Henderson <rth@redhat.com>
27345
27346 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
27347
27348 2004-07-01 Richard Henderson <rth@redhat.com>
27349
27350 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
27351 * utils.c (max_size): Likewise.
27352
27353 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27354
27355 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
27356 and rest_of_type_compilation; add arg to create_*_decl.
27357 (annotate_decl_with_node): Deleted.
27358 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
27359 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
27360 (get_current_block_context, gnat_pushdecl): New declarations.
27361 (gnat_init_stmt_group): Likewise.
27362 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
27363 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
27364 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
27365 (gnat_init): Call gnat_init_stmt_group.
27366 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
27367 (gnu_pending_elaboration_list): Deleted.
27368 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
27369 (gigi): Rearrange initialization calls and move some to last above.
27370 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
27371 Delete calls to add_decl_expr; add arg to create_*_decl.
27372 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
27373 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
27374 begin_subprog_body and call it.
27375 Don't push and pop ggc context.
27376 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
27377 (add_stmt): Remove handling of DECL_EXPR from here.
27378 If not in function, mark visited.
27379 (add_decl_expr): Put global at top level.
27380 Check for cases of DECL_INITIAL we have to handle here.
27381 (process_type): Add extra arg to create_type_decl.
27382 (build_unit_elab): Rework to just gimplify.
27383 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
27384 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
27385 (get_pending_elaborations, pending_elaborations_p): Likewise.
27386 (push_pending_elaborations, pop_pending_elaborations): Likewise.
27387 (get_elaboration_location, insert_elaboration_list): Likewise.
27388 (gnat_binding_level): Renamed from ada_binding_level.
27389 (init_gnat_to_gnu): Don't clear pending_elaborations.
27390 (global_bindings_p): Treat as global if no current_binding_level.
27391 (set_current_block_context): New function.
27392 (gnat_pushdecl): Renamed from pushdecl; major rework.
27393 All callers changed.
27394 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
27395 (finish_record_type): Call call pushdecl for stub decl.
27396 (function_nesting_depth): Deleted.
27397 (begin_subprog_body): Delete obsolete code.
27398 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
27399
27400 2004-06-28 Robert Dewar <dewar@gnat.com>
27401
27402 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27403 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
27404 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
27405 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27406 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
27407
27408 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
27409 deal with problem of inefficient slices on machines with strict
27410 alignment, when the slice is a component of a composite.
27411
27412 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
27413 machines, we need the check there as well.
27414
27415 2004-06-28 Ed Schonberg <schonberg@gnat.com>
27416
27417 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
27418 determine safe copying direction for overlapping slice assignments
27419 when component is controlled.
27420
27421 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
27422 formal derived type in the actual for a formal package are visible in
27423 the enclosing instance.
27424
27425 2004-06-28 Ed Schonberg <schonberg@gnat.com>
27426
27427 PR ada/15600
27428 * sem_util.adb (Trace_Components): Diagnose properly an illegal
27429 circularity involving a private type whose completion includes a
27430 self-referential component.
27431 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
27432 renaming or an instantiation from an implicit derived operation.
27433
27434 2004-06-28 Pascal Obry <obry@gnat.com>
27435
27436 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
27437 DLL.
27438 (Library_File_Name_For): Idem.
27439
27440 2004-06-28 Matthew Gingell <gingell@gnat.com>
27441
27442 * g-traceb.ads: Add explanatory note on the format of addresses
27443 expected by addr2line.
27444
27445 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
27446
27447 * Makefile.in: Force debugging information on s-tasdeb.adb,
27448 a-except.adb and s-assert.adb needed by the debugger.
27449
27450 2004-06-28 Vincent Celier <celier@gnat.com>
27451
27452 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
27453 Need_To_Build_Lib.
27454 (Gnatmake): Ditto.
27455
27456 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
27457
27458 * prj.adb: Minor reformatting
27459 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
27460
27461 * prj.ads: Comment updates
27462 Minor reformatting
27463 (Project_Data): Change Flag1 to Need_To_Build_Lib.
27464 Remove Flag2: not used.
27465
27466 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
27467 declaration.
27468
27469 * gnat_ugn.texi: Put a "null;" declaration in one project file example
27470
27471 * gnat_rm.texi: Document Empty declarations "null;".
27472
27473 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
27474 front of the linker options.
27475 (Link_Foreign): Put the global archives and the libraries in front of
27476 the linker options.
27477
27478 2004-06-28 Javier Miranda <miranda@gnat.com>
27479
27480 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
27481 (RTU_Loaded): Code cleanup
27482 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
27483 withed predefined units.
27484
27485 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
27486 explicitly withed predefined units.
27487 Fix typo in comment
27488
27489 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
27490 explicitly withed predefined units.
27491
27492 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27493
27494 * ada-tree.def (DECL_STMT): Deleted.
27495 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
27496 (DECL_STMT_VAR): Deleted.
27497 * decl.c: add_decl_stmt now add_decl_expr.
27498 * gigi.h: Likewise.
27499 * trans.c: Likewise.
27500 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27501 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
27502 (add_stmt): Only handle padded type here.
27503 (add_stmt_with_node): Allow gnat_node to not be present.
27504 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
27505 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
27506 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
27507 make a SAVE_EXPR for the entire fat pointer.
27508 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
27509 (create_index_type): Make a DECL_EXPR.
27510 (end_subprog_body): Don't call allocate_struct_function here but
27511 do clear cfun.
27512
27513 2004-06-25 Pascal Obry <obry@gnat.com>
27514
27515 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
27516 Relocatable from Build_Dynamic_Library call.
27517
27518 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
27519 Relocatable are now synonym.
27520
27521 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
27522
27523 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
27524 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
27525 call.
27526
27527 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
27528 Lib_Address and Relocatable.
27529 (Default_DLL_Address): Removed.
27530
27531 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27532 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27533 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
27534 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
27535 (Default_DLL_Address): Removed.
27536
27537 * mlib-tgt-mingw.adb: Ditto.
27538 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
27539
27540 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
27541 the initial thread stack size.
27542
27543 * a-strmap.ads: Move package L to private part as it is not used in
27544 the spec. Found while reading code.
27545
27546 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
27547
27548 * tracebak.c: Introduce support for a GCC infrastructure based
27549 implementation of __gnat_backtrace.
27550
27551 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
27552 any more. Use accessors instead. This eases maintenance and relaxes
27553 some alignment constraints.
27554 (_GNAT_Exception structure): Remove the Ada specific fields
27555 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
27556 a-exexpr.adb.
27557 (is_handled_by, __gnat_eh_personality): Replace component references to
27558 exception structure by use of the new accessors.
27559
27560 * init.c (__gnat_initialize): Adjust comments to match the just
27561 reverted meaning of the -static link-time option.
27562
27563 * adaint.c (convert_addresses): Arrange not to define a stub for
27564 mips-irix any more, as we now want to rely on a real version from a
27565 recent libaddr2line.
27566
27567 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
27568 the personality routine can use them and not have to rely on a C
27569 counterpart of the record anymore. This simplifies maintenance and
27570 relaxes the constraint of having Standard'Maximum_Alignment match
27571 BIGGEST_ALIGNMENT.
27572 Update comments, and add a section on the common header alignment issue.
27573
27574 2004-06-25 Geert Bosch <bosch@gnat.com>
27575
27576 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
27577 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
27578
27579 2004-06-25 Robert Dewar <dewar@gnat.com>
27580
27581 * gnat_rm.texi: Fix section on component clauses to indicate that the
27582 restriction on byte boundary placement still applies for bit packed
27583 arrays.
27584 Add comment on stack usage from Initialize_Scalars
27585
27586 * gnat_ugn.texi: Add documentation for -gnatyLnnn
27587
27588 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
27589 limiting nesting level.
27590
27591 * usage.adb: Add line for -gnatyLnnn switch
27592
27593 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
27594 sem_ch13.adb, exp_aggr.adb: Minor reformatting
27595
27596 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
27597 type as well as on the subtype. This corrects a problem in freeze in
27598 setting alignments of atomic types.
27599
27600 * sem_eval.ads: Minor comment typo fixed
27601
27602 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
27603 level. Minor reformatting.
27604
27605 * fname.adb (Is_Predefined_File_Name): Require a letter after the
27606 minus sign. This means that file names like a--b.adb will not be
27607 considered predefined.
27608
27609 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
27610 record Test new flag and give diagnostic for bad component clause.
27611 (Freeze_Entity): Set alignment of array from component alignment in
27612 cases where this is safe to do.
27613
27614 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
27615 arrays.
27616
27617 * cstand.adb: (Create_Standard): Set alignment of String to 1
27618
27619 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
27620
27621 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
27622 code in the common constrained array cases.
27623
27624 * a-storio.adb: Change implementation to avoid possible alignment
27625 problems on machines requiring strict alignment (data should be moved
27626 as type Buffer, not type Elmt).
27627
27628 * checks.adb (Apply_Array_Size_Check): Improve these checks by
27629 killing the overflow checks which we really do not need (64-bits is
27630 enough).
27631
27632 2004-06-25 Vincent Celier <celier@gnat.com>
27633
27634 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
27635 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
27636 inconditionally for the main project.
27637 (Recursive_Add_Archives.Add_Archive_Path): New procedure
27638 (Link_Executables.Check_Time_Stamps): New procedure
27639 (Link_Executables.Link_Foreign): New procedure
27640 Changes made to reduce nesting level of this package
27641 (Check): New procedure
27642 (Add_Switches): When not in quiet output, check that a switch is not
27643 the concatenation of several valid switches. If it is, issue a warning.
27644 (Build_Global_Archive): If the global archive is rebuilt, linking need
27645 to be done.
27646 (Compile_Sources): Rebuilding a library archive does not imply
27647 rebuilding the global archive.
27648 (Build_Global_Archive): New procedure
27649 (Build_Library): New name for Build_Archive, now only for library
27650 project
27651 (Check_Archive_Builder): New procedure
27652 (Create_Global_Archive_Dependency_File): New procedure
27653 (Gprmake): Call Build_Global_Archive before linking
27654 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
27655 throughout.
27656 (Scan_Arg): Display the Copyright notice when -v is used
27657
27658 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
27659 for gnatls.
27660
27661 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
27662 COMPILE.
27663 Add new GNAT LIST qualifier /FILES=
27664 Added qualifier /DIRECTORY= to GNAT METRIC
27665 Added qualifier /FILES= to GNAT METRIC
27666 Added qualifier /FILES to GNAT PRETTY
27667
27668 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
27669 to take into account both versions of the switch.
27670
27671 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
27672 always be the last switch to the gcc driver. Disable switch storing so
27673 that switches automatically added by the gcc driver are not put in the
27674 ALI file.
27675
27676 * prj.adb (Project_Empty): Take into account changes in components of
27677 Project_Data.
27678
27679 * prj.ads (Languages_Processed): New enumaration value All_Languages.
27680
27681 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
27682 used. Split Boolean component Ada_Sources_Present in two Boolean
27683 components Ada_Sources_Present and Other_Sources_Present.
27684 Minor reformatting
27685
27686 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
27687 instead of Sources_Present.
27688 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27689
27690 * prj-nmsc.adb: Minor reformatting
27691 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
27692 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
27693 Check_Ada_Naming_Scheme.
27694 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
27695 throughout.
27696
27697 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
27698 In_Limited.
27699 Make sure that all cycles where there is at least one "limited with"
27700 are detected.
27701 (Parse_Single_Project): New Boolean parameter In_Limited
27702
27703 * prj-proc.adb (Recursive_Check): When Process_Languages is
27704 All_Languages, call first Prj.Nmsc.Ada_Check, then
27705 Prj.Nmsc.Other_Languages_Check.
27706
27707 * prj-proc.adb (Process): Use Ada_Sources_Present or
27708 Other_Sources_Present (instead of Sources_Present) depending on
27709 Process_Languages.
27710
27711 * lang-specs.h: Keep -g and -m switches in the same order, and as the
27712 last switches.
27713
27714 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
27715 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
27716 False.
27717 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
27718 False.
27719
27720 * lib.ads (Disable_Switch_Storing): New procedure.
27721
27722 * make.adb: Modifications to reduce nesting level of this package.
27723 (Check_Standard_Library): New procedure
27724 (Gnatmake.Check_Mains): New procedure
27725 (Gnatmake.Create_Binder_Mapping_File): New procedure
27726 (Compile_Sources.Compile): Add switch -gnatez as the last option
27727 (Display): Never display -gnatez
27728
27729 * Makefile.generic:
27730 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
27731
27732 * gnatcmd.adb (Check_Project): New function
27733 (Process_Link): New procedure to reduce nesting depth
27734 (Check_Files): New procedure to reduce the nesting depth.
27735 For GNAT METRIC, include the inherited sources in extending projects.
27736 (GNATCmd): When GNAT LS is invoked with a project file and no files,
27737 add the list of files from the sources of the project file. If this list
27738 is too long, put it in a temp text files and use switch -files=
27739 (Delete_Temp_Config_Files): Delete the temp text file that contains
27740 a list of source for gnatpp or gnatmetric, if one has been created.
27741 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
27742 in the project file is too large, create a temporary text file that
27743 list them and pass it to the tool with "-files=<temp text file>".
27744 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
27745
27746 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
27747 generated file is in not in Ada.
27748
27749 * gnatls.adb: Remove all parameters And_Save that are no longer used.
27750 (Scan_Ls_Arg): Add processing for -files=
27751 (Usage): Add line for -files=
27752
27753 * g-os_lib.adb (On_Windows): New global constant Boolean flag
27754 (Normalize_Pathname): When on Windows and the path starts with a
27755 directory separator, make sure that the resulting path will start with
27756 a drive letter.
27757
27758 * clean.adb (Clean_Archive): New procedure
27759 (Clean_Project): When there is non-Ada code, delete the global archive,
27760 the archive dependency files, the object files and their dependency
27761 files, if they exist.
27762 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
27763
27764 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
27765
27766 * sinfo.ads: Fix typo in comment.
27767
27768 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
27769 the TSS for remote access-to-subprogram types, since these TSS are
27770 always present once the type has been analyzed.
27771 (RAS_E_Dereference): Same.
27772
27773 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
27774 reference raises Bad_Attribute, mark the reference as analyzed so the
27775 node (and any children resulting from rewrites that could have occurred
27776 during the analysis that ultimately failed) is not analyzed again.
27777
27778 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
27779
27780 * exp_dist.adb: Minor comment fix.
27781
27782 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
27783 type is an anonymous access type, no unchecked deallocation of the
27784 allocated object can occur. If the object is controlled, attach it with
27785 a count of 1. This allows attachment to the Global_Final_List, if
27786 no other relevant list is available.
27787 (Get_Allocator_Final_List): For an anonymous access type that is
27788 the type of a discriminant or record component, the corresponding
27789 finalisation list is the one of the scope of the type.
27790
27791 2004-06-25 Ed Schonberg <schonberg@gnat.com>
27792
27793 * sem_ch3.adb (Replace_Type): When computing the signature of an
27794 inherited subprogram, use the first subtype if the derived type
27795 declaration has no constraint.
27796
27797 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
27798 before applying previous optimization. Minor code cleanup.
27799
27800 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
27801 placed at the beginning of an unpacked record without explicit
27802 alignment, a slice of it will be aligned and does not need a copy when
27803 used as an actual.
27804
27805 2004-06-25 Ed Schonberg <schonberg@gnat.com>
27806
27807 PR ada/15591
27808 PR ada/15592
27809 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
27810 reference is written with expressions mimicking parameters.
27811
27812 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
27813
27814 PR ada/15589
27815 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
27816 STEP 2a. The constraints of a full type declaration of a derived record
27817 type are checked for conformance with those declared in the
27818 corresponding private extension declaration. The message
27819 "not conformant with previous declaration" is emitted if an error is
27820 detected.
27821
27822 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
27823
27824 * g-traceb.ads: Document the need for -E binder switch in the spec.
27825
27826 * g-trasym.ads: Document the need for -E binder switch in the spec.
27827
27828 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
27829
27830 * sem_prag.adb: Add handling of pragma Detect_Blocking.
27831
27832 * snames.h, snames.ads, snames.adb: Add entry for pragma
27833 Detect_Blocking.
27834
27835 * s-rident.ads: Change reference to pragma Detect_Blocking.
27836
27837 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
27838 system.ads.
27839
27840 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
27841 to indicate whether pragma Detect_Blocking is active.
27842
27843 * par-prag.adb: Add entry for pragma Detect_Blocking.
27844
27845 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
27846 of not handling WITH.
27847 Note that this replaces the previous update which was incorrect.
27848
27849 2004-06-25 Javier Miranda <miranda@gnat.com>
27850
27851 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
27852 use-clauses to have a clean environment.
27853
27854 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
27855 the installation of the use-clauses to stablish a clean environment in
27856 case of compilation of a separate unit; otherwise the call to
27857 use_one_package is protected by the barrier Applicable_Use.
27858
27859 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
27860 the installation of the use-clauses to stablish a clean environment in
27861 case of compilation of a separate unit.
27862 (End_Use_Clauses): Minor comment cleanup.
27863
27864 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
27865
27866 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
27867
27868 2004-06-23 Richard Henderson <rth@redhat.com>
27869
27870 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
27871
27872 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27873
27874 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
27875 now bool instead of int.
27876 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
27877 * trans.c (gnu_switch_label_stack): New function.
27878 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
27879 elaboration of renamed entity returns.
27880 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
27881 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
27882 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
27883 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
27884 DECL_SIZE_UNIT and simplify variable-sized case.
27885 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27886 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
27887 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
27888 (build_unit_elab): Disable for now.
27889 * utils.c (mark_visited): New function.
27890 (pushdecl): Walk tree to call it for global decl.
27891 (update_pointer_to): Update all variants of pointer and ref types.
27892 Add arg to COMPONENT_REF.
27893 (convert): Likewise.
27894 Move check for converting between variants lower down.
27895 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
27896 (build_allocator): Don't force type of MODIFY_EXPR.
27897 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
27898 put_var_into_stack.
27899
27900 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27901
27902 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
27903 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
27904 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
27905 subprograms.
27906 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
27907 all callers changed.
27908 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
27909 the way that EXIT_STMT finds the loop label.
27910 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
27911 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
27912 (add_stmt): Use annotate_with_locus insted of setting directly.
27913 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
27914 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
27915 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
27916 (build_vms_descriptor): Add extra args to ARRAY_REF.
27917 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
27918 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
27919 New cases.
27920 (build_binary_op): Don't make explicit CONVERT_EXPR.
27921 Add extra rgs to ARRAY_REF.
27922
27923 2004-06-14 Pascal Obry <obry@gnat.com>
27924
27925 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
27926 Windows. Fix minor typo.
27927
27928 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
27929 which is now supported on Windows. With this implementation using the
27930 Library Project feature is no different on Windows than on UNIX.
27931
27932 2004-06-14 Vincent Celier <celier@gnat.com>
27933
27934 * makegpr.adb (Compile_Sources): Nothing to do when there are no
27935 non-Ada sources.
27936
27937 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
27938
27939 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
27940 found, show the project name and the path of the previously parsed
27941 project file.
27942
27943 2004-06-14 Ed Schonberg <schonberg@gnat.com>
27944
27945 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
27946 array, avoid copying the actual before the call.
27947
27948 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
27949
27950 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
27951 Instead, allocate memory on worst-case alignment assumptions, and then
27952 return an aligned address within the allocated zone.
27953
27954 2004-06-14 Robert Dewar <dewar@gnat.com>
27955
27956 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
27957 elab entities in predefined units in No_Run_Time_Mode.
27958 (Gen_Adainit_C): Same fix
27959 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
27960 units in No_Run_Time_Mode
27961 (Gen_Elab_Calls_C): Same fix
27962
27963 * symbols-vms-alpha.adb: Minor reformatting
27964
27965 * g-debpoo.ads: Minor reformatting
27966
27967 * lib.adb (In_Same_Extended_Unit): Version working on node id's
27968
27969 * lib.ads (In_Same_Extended_Unit): Version working on node id's
27970
27971 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
27972 working on nodes.
27973
27974 * make.adb: Minor reformatting
27975
27976 * par-ch12.adb: Minor reformatting
27977
27978 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
27979
27980 * prj-strt.adb: Minor reformatting
27981
27982 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
27983 be more general.
27984
27985 * sem_attr.adb: Minor reformatting
27986
27987 * sem_ch7.adb: Minor reformatting
27988
27989 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
27990 for type in the same unit as the object declaration.
27991
27992 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
27993 static string expressions and not just string literals.
27994 Minor reformatting
27995 (Set_Warning): Reset restriction warning flag for restriction pragma
27996 Implement pragma Profile_Warnings
27997 Implement pragma Profile (Restricted)
27998 Give obolescent messages for old restrictions and pragmas
27999
28000 * snames.h, snames.ads, snames.adb: Add new entry for pragma
28001 Profile_Warnings.
28002
28003 * s-rident.ads: Add declarations for restrictions required by profile
28004 Restricted and profile Ravenscar.
28005
28006 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
28007
28008 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
28009 configuration pragmas.
28010
28011 2004-06-11 Vincent Celier <celier@gnat.com>
28012
28013 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
28014 gnatsym, when symbol policy is Restricted.
28015
28016 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
28017 gnatsym, when symbol policy is Restricted.
28018
28019 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
28020 read the symbol file.
28021 (Finalize): Fail in symbol policy Restricted if a symbol in the original
28022 symbol file is not in the object files. Do not create a new symbol file
28023 when symbol policy is Restricted.
28024
28025 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
28026 in Scng.
28027
28028 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
28029 Restricted.
28030 (Usage): Line for new switch -R
28031
28032 * make.adb (Initialize): When the platform is not VMS, add the
28033 directory where gnatmake is invoked in the front of the path, if
28034 gnatmake is invoked with directory information. Change the Scan_Args
28035 while loop to a for loop.
28036 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
28037 if Depth is equal or greater than the proposed depth, there is nothing
28038 to do.
28039 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
28040 instead of 0.
28041
28042 * prj.ads: Add new symbol policy Restricted.
28043
28044 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
28045 with the new parameters Check_All_Labels and Case_Location.
28046
28047 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
28048 (Library_Symbol_File needs to be defined).
28049
28050 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
28051 and Case_Location If Check_All_Labels is True, check that all values of
28052 the string type are used, and output warning(s) if they are not.
28053
28054 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
28055 and Case_Location.
28056
28057 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
28058
28059 * gnat_ugn.texi: Update documentation about the library directory in
28060 Library Projects.
28061
28062 * makegpr.adb (Display_Command): In verbose mode, also display the
28063 value of the CPATH env var, when the compiler is gcc.
28064 (Initialize): Change the Scan_Args while loop to a for loop
28065 (Compile_Individual_Sources): Change directory to object directory
28066 before compilations.
28067
28068 * symbols.ads: New symbol policy Restricted.
28069
28070 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
28071
28072 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
28073 is now taken care of internally in the Exception_Propagation package
28074 and does not require clients assistance any more.
28075
28076 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
28077 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
28078 functions. Helpers to maintain a predicate required in the handling of
28079 occurrence transfer between tasks.
28080 This is now handled internally and does not require clients assistance
28081 for the setup/propagate separation anymore.
28082 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
28083 allocation strategy, handle the Setup_And_Not_Propagated predicate and
28084 document.
28085
28086 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
28087 raise_after_setup, now that everything is handled internally within the
28088 setup/propagation engine.
28089
28090 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
28091
28092 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
28093 Add additional conditions for the case of an actual being a simple
28094 name or literal. Improve inlining by preventing the generation
28095 of temporaries with a short lifetime (one use).
28096
28097 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
28098
28099 PR ada/15587
28100 * einfo.ads: Minor comment updates for Has_Completion and
28101 E_Constant list of flags.
28102
28103 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
28104 and constant redeclarations now set the Has_Completion flag of their
28105 defining identifiers.
28106
28107 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
28108 Inspect_Deferred_Constant_Completion.
28109 Used to detect private deferred constants that have not been completed
28110 either by a constant redeclaration or pragma Import. Emits error message
28111 "constant declaration requires initialization expression".
28112
28113 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
28114 completes a deferred constant.
28115
28116 2004-06-11 Geert Bosch <bosch@gnat.com>
28117
28118 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
28119
28120 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
28121 calculating exponent for scaling denormal numbers.
28122 (Leading_Part): Properly raise Constraint_Error for zero or negative
28123 Adjustment.
28124 (Remainder): Properly raise Constraint_Error for zero divisor.
28125
28126 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
28127
28128 * sem_util.adb: Minor reformatting.
28129
28130 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
28131 dereference when accessing the entry parameter record.
28132 (Check_Array_Type): Always check for possible implicit dereference.
28133 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28134 Abort if a pointer is still present (denoting that an implicit
28135 dereference was left in the tree by the front-end).
28136
28137 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
28138 dereference when accessing the entry parameter record.
28139 (Check_Array_Type): Always check for possible implicit dereference.
28140 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28141 Abort if a pointer is still present (denoting that an implicit
28142 dereference was left in the tree by the front-end).
28143
28144 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
28145
28146 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
28147 message, like the compiler itself does. Easier to parse the output.
28148
28149 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
28150
28151 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
28152 be base names, and not includes directories.
28153
28154 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
28155
28156 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
28157 so that dependencies are properly taken into account by make.
28158
28159 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
28160
28161 PR ada/15622
28162 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
28163 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
28164
28165 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
28166
28167 * Makefile.in (install-gnatlib): install target-specific run-time files.
28168
28169 * Make-lang.in: Remove obsolete targets.
28170
28171 2004-06-11 Ed Schonberg <schonberg@gnat.com>
28172
28173 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
28174 specification, to catch misuses of program unit names.
28175
28176 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
28177 superfluous conversions in an instance.
28178
28179 2004-06-11 Ed Schonberg <schonberg@gnat.com>
28180
28181 PR ada/15403
28182 * sem_ch12.adb (Save_References): If operator node has been folded to
28183 enumeration literal, associated_node must be discarded.
28184
28185 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
28186
28187 * s-stchop-vxworks.adb: Add required pragma Convention to
28188 Task_Descriptor because it is updated by a C function.
28189
28190 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
28191
28192 PR ada/15568
28193 * Makefile.in: Remove target specific SO_OPT on IRIX
28194
28195 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28196
28197 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
28198 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
28199 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
28200 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
28201 (STMT_STMT, USE_STMT): New statement codes.
28202 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
28203 * ada-tree.h: Reflect above changes.
28204 (struct tree_loop_id): Deleted.
28205 (union lang_tree_node, struct lang_decl, struct lang_type):
28206 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
28207 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
28208 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
28209 (IS_ADA_STMT): New macro.
28210 * decl.c (annotate_decl_with_node): New function.
28211 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
28212 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
28213 Call add_stmt_with_node to do needed assignments.
28214 Add call to update setjmp buffer directly, not via EXPR_STMT.
28215 (maybe_variable): Argment GNAT_NODE deleted.
28216 * gigi.h (maybe_variable): Likewise.
28217 (make_transform, add_stmt_with_node, set_block_for_group): New.
28218 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
28219 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
28220 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
28221 (set_lineno, set_lineno_from_sloc): Likewise.
28222 (record_code_position, insert_code_for): Likewise.
28223 (gnat_poplevel): Now returns void.
28224 (end_subprog_body): Now takes argument.
28225 * misc.c (cgraph.h, tree-inline.h): New includes.
28226 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
28227 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
28228 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
28229 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
28230 (gnat_parse_file): Don't set immediate_size_expand.
28231 Call cgraph functions.
28232 (gnat_expand_expr): Remove most cases.
28233 (record_code_position, insert_code_for): Remove from here.
28234 * trans.c (toplev.h, tree-gimple.h): Now included.
28235 (discard_file_names): Deleted.
28236 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
28237 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
28238 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
28239 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
28240 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
28241 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
28242 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
28243 (set_block_for_group, add_stmt_list): Likewise.
28244 (start_stmt_group): Renamed from start_block_stmt.
28245 (end_stmt_group): Likewise, from end_block_stmt.
28246 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
28247 (gigi): Don't set discard_file_names or call set_lineno.
28248 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
28249 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
28250 Numerous changes throughout to reflect new names and complete
28251 function-at-a-time implementation.
28252 (gnat_expand_stmt): Delete or comment out all cases.
28253 (process_inlined_subprograms): Use add_stmt.
28254 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
28255 call set_lineno; also remove unneeded block handling.
28256 (process_type): Remove unneeded block handling.
28257 (build_unit_elab): Remove calls to deleted functions.
28258 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
28259 (tree-dump.h): Likewise.
28260 (struct ada_binding_level): Add field jmpbuf_decl.
28261 (gnat_define_builtin, gnat_install_builtins): New.
28262 (gnat_gimplify_function, gnat_finalize): Likewise.
28263 (gnat_poplevel): No longer return BLOCK, set it instead.
28264 Remove code dealing with nested functions.
28265 (gnat_init_decl_processing): Also set size_type_node.
28266 Call gnat_install_builtins.
28267 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
28268 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
28269 Remove special-case for "main".
28270 (end_subprog_body): Add arg and rework for tree-ssa.
28271 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
28272 Add case for BOOLEAN_TYPE.
28273 * utils2.c (rtl.h): Now include.
28274 (build_call_raise): Test Debug_Flag_NN directly.
28275 (build_call_alloc_dealloc): Don't use local stack allocation for now.
28276 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
28277 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
28278
28279 2004-06-07 Robert Dewar <dewar@gnat.com>
28280
28281 * a-direct.ads, einfo.ads: Minor comment updates
28282
28283 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
28284 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28285 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
28286 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
28287 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
28288
28289 * s-interr-sigaction.adb: Remove unreferenced variable
28290 (Attached_Interrupts). Minor reformatting.
28291 Avoid use of variable I (replace by J).
28292
28293 * par-ch10.adb: Fix text of one error message
28294
28295 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
28296 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
28297 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
28298 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
28299 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
28300 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
28301 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
28302 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
28303 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
28304 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
28305 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
28306 2005 support.
28307
28308 2004-06-07 Doug Rupp <rupp@gnat.com>
28309
28310 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
28311
28312 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
28313
28314 * mlib-tgt-vms-ia64.adb: New file.
28315
28316 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
28317 Add mlib-tgt-vms-ia64.adb
28318 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
28319 Move to alpha specific ifeq section.
28320 Add VMS specific versions of symbols.adb
28321 Renaming of 5q vms files.
28322
28323 * 5qsystem.ads renamed to system-vms_64.ads.
28324
28325 2004-06-07 Vincent Celier <celier@gnat.com>
28326
28327 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
28328 explain that when a time of day corresponding to the non existing hour
28329 on the day switching to DST is specified, Split may return a different
28330 value for Seconds.
28331
28332 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
28333 to GNAT PRETTY.
28334
28335 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
28336 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
28337
28338 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
28339 to False.
28340 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
28341 the linking options.
28342 (Build_Library.Check_Libs): On VMS, if there is a dependency on
28343 g-trasym.ads, set Gtrasymobj_Needed to True.
28344
28345 * prj-attr.adb: Add new package Metrics for gnatmetric
28346
28347 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
28348 canonical case to take into account files with upper case characters on
28349 Windows.
28350 (Ada_Check): Load the reference symbol file name in the name buffer to
28351 check it, not the symbol file name.
28352
28353 * snames.ads, snames.adb: Add standard name Metrics (name of project
28354 file package for gnatmetric).
28355
28356 * vms_conv.ads: Add Metric to Comment_Type
28357
28358 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
28359
28360 * vms_data.ads: Add qualifiers for GNAT METRIC
28361
28362 * makegpr.adb (Link_Executables): Take into account the switches
28363 specified in package Linker of the main project.
28364
28365 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
28366
28367 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
28368 the index of the last element is Units.Last, not Units.Table'Last
28369 (which is usually not a valid index within the actually allocated
28370 storage for the table).
28371
28372 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
28373 determines whether to generate a call to a checked storage pool
28374 Dereference action.
28375 Generate such a call only for a dereference that either comes from
28376 source, or is the result of rewriting a dereference that comes from
28377 source.
28378
28379 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
28380
28381 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
28382
28383 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
28384
28385 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
28386 file level, elaborate the stride for inner dimensions in alignment
28387 units, not bytes.
28388
28389 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
28390 in a comment.
28391
28392 2004-06-07 Javier Miranda <miranda@gnat.com>
28393
28394 * exp_ch6.adb: Correct wrong modification in previous patch
28395
28396 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
28397
28398 * g-trasym.ads: Corrected comment to properly reflect level of support
28399 on VMS.
28400
28401 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
28402
28403 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
28404 includes case of a variable referenced on the left hand side of an
28405 assignment, therefore remove redundant code. Variables and prefixes of
28406 indexed or selected components are now marked as referenced on left
28407 hand side. Warnings are now properly emitted when variables or prefixes
28408 are assigned but not read.
28409
28410 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
28411 left hand side referenced variables. Private access types do not
28412 produce the warning "variable ... is assigned but never read".
28413 Add also additional checks to left hand side referenced variables.
28414 Aliased, renamed objects and access types do not produce the warning
28415 "variable ... is assigned but never read" since other entities may read
28416 the memory location.
28417
28418 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
28419
28420 * Makefile.in: In the powerpc/vxworks-specific section, restore
28421 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
28422 by mistake).
28423
28424 2004-06-07 Ed Schonberg <schonberg@gnat.com>
28425
28426 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
28427 predefined operators.
28428 Removes spurious type errors from g-trasym-vms.adb.
28429
28430 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
28431 distinct from the operator appearing in the source, call appropriate
28432 routine to insert conversions when needed, and complete resolution of
28433 node.
28434 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
28435 interpretations for rewritten right operand.
28436 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
28437 the other operand is overloaded and the context is a type conversion.
28438
28439 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28440
28441 * ada-tree.def (BLOCK_STMT): Now has two operands.
28442 (BREAK_STMT): New.
28443
28444 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
28445
28446 * gigi.h: (gnat_poplevel): Now returns a tree.
28447
28448 * trans.c (end_block_stmt): Add arg; all callers changed.
28449 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
28450 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
28451 (add_stmt): Set TREE_TYPE.
28452 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
28453 (gnat_expand_stmt, case BREAK_STMT): New case.
28454
28455 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
28456
28457 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
28458
28459 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
28460 procedure Set_Stack_Size that is not needed.
28461
28462 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
28463
28464 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
28465 used for gnatpp input file and for the files upon which it depends
28466
28467 2004-06-07 Ben Brosgol <brosgol@gnat.com>
28468
28469 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28470
28471 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
28472
28473 * gnatvsn.ads: Bump version numbers appropriately.
28474 Add new build type.
28475
28476 2004-06-07 Pascal Obry <obry@gnat.com>
28477
28478 * gnat_ugn.texi: Improve comments about imported names and link names
28479 on Windows. Add a note about the requirement to use -k gnatdll's option
28480 when working with a DLL which has stripped stdcall symbols (no @nn
28481 suffix).
28482
28483 2004-05-27 Vincent Celier <celier@gnat.com>
28484
28485 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
28486 COMMENTS_LAYOUT=UNTOUCHED
28487
28488 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
28489 symbols-vms-alpha.adb
28490
28491 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
28492
28493 * sem.ads: Clarify documentation on checks suppression.
28494
28495 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
28496
28497 2004-05-27 Ed Schonberg <schonberg@gnat.com>
28498
28499 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
28500 the case of multiple derivations.
28501 (Is_Object_Reference): For a selected component, verify that the prefix
28502 is itself an object and not a value.
28503
28504 * sem_ch12.adb (Same_Instantiated_Constant): New name for
28505 Same_Instantiated_Entity.
28506 (Same_Instantiated_Variable): Subsidiary to
28507 Check_Formal_Package_Instance, to recognize actuals for in-out generic
28508 formals that are obtained from a previous formal package.
28509 (Instantiate_Subprogram_Body): Emit proper error when
28510 generating code and the proper body of a stub is missing.
28511
28512 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
28513 has a universal interpretation, do the disambiguation here.
28514
28515 * exp_ch4.adb (Expand_N_Type_Conversion,
28516 Expand_N_Unchecked_Type_Conversion): Special handling when target type
28517 is Address, to avoid typing anomalies when Address is a visible integer
28518 type.
28519
28520 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
28521 to determine whether a subprogram should not be marked Pure, even when
28522 declared in a pure package.
28523
28524 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
28525
28526 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
28527
28528 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
28529 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
28530 Update the documentation about the Ravenscar profile, following the
28531 definition found in AI-249.
28532
28533 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
28534 setting the Profile (Ravenscar). This must be done in addition to
28535 setting the required restrictions.
28536
28537 * rtsfind.ads: Add the set of operations defined in package
28538 Ada.Interrupts.
28539
28540 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
28541 restriction.
28542
28543 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
28544
28545 lang-specs.h: Always require -c or -S and always redirect to /dev/null
28546 if -gnatc or -gnats is passed.
28547
28548 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
28549
28550 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
28551 a significant reference. Warnings are now properly emitted when a
28552 discriminated type is not referenced.
28553
28554 * lib-xref.adb (Generate_Reference): A deferred constant completion,
28555 record representation clause or record type discriminant does not
28556 produce a reference to its corresponding entity. Warnings are now
28557 properly emitted when deferred constants and record types are not
28558 referenced.
28559
28560 2004-05-27 Geert Bosch <bosch@gnat.com>
28561
28562 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
28563 Fixes ACATS Annex G tests.
28564
28565 2004-05-27 Robert Dewar <dewar@gnat.com>
28566
28567 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
28568 handling WITH
28569
28570 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
28571
28572 * s-interr.adb (Server_Task): Take into account case of early return
28573 from sigwait under e.g. linux.
28574
28575 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
28576
28577 * gnat_ugn.texi: Add description for the new gnatpp options:
28578 -rnb - replace the original source without creating its backup copy
28579 -c0 - do not format comments
28580
28581 2004-05-24 Geert Bosch <bosch@gnat.com>
28582
28583 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
28584 with 192 bits of precision, sufficient to reduce a double-extended
28585 arguments X with a maximum relative error of T'Machine_Epsilon, for X
28586 in -2.0**32 .. 2.0**32.
28587 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
28588 reduction by the processor, which only uses a 68-bit approximation of
28589 Pi.
28590 (Tan): Always reduce arguments and compute function either using
28591 the processor's fptan instruction, or by dividing sin and cos as needed.
28592
28593 2004-05-24 Doug Rupp <rupp@gnat.com>
28594
28595 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
28596 gcc error on 32/64 bit VMS.
28597
28598 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
28599
28600 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
28601 since this is what we get for stack overflows although not documented
28602 as such.
28603 Document the issues which may require adjustments to our signal
28604 handlers.
28605
28606 2004-05-24 Ed Schonberg <schonberg@gnat.com>
28607
28608 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
28609 enclosing dynamic scope if the instantiation is within a generic unit.
28610
28611 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
28612
28613 * exp_dbug.ads: Fix typo.
28614
28615 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
28616 Rename it to its proper name: system-linux-ia64.ads
28617 (stamp-gnatlib1): Remove extra target specific run time files when
28618 setting up the rts directory.
28619
28620 2004-05-24 Javier Miranda <miranda@gnat.com>
28621
28622 * einfo.ads, einfo.adb (Limited_Views): Removed.
28623 (Limited_View): New attribute that replaces the previous one. It is
28624 now a bona fide package with the limited-view list through the
28625 first_entity and first_private attributes.
28626
28627 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
28628 limited-private-with clause.
28629 (Install_Limited_Withed_Unit): Install the private declarations of a
28630 limited-private-withed package. Update the installation of the shadow
28631 entities according to the new structure (see Build_Limited_Views)
28632 (Build_Limited_Views): Replace the previous implementation of the
28633 limited view by a package entity that references the first shadow
28634 entity plus the first shadow private entity (required for limited-
28635 private-with clause)
28636 (New_Internal_Shadow_Entity): Code cleanup.
28637 (Remove_Limited_With_Clause): Update the implementation to undo the
28638 new work carried out by Build_Limited_Views.
28639 (Build_Chain): Complete documentation.
28640 Replace Ada0Y by Ada 0Y in comments
28641 Minor reformating
28642
28643 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
28644 types the level of accessibility depends on the enclosing type
28645 declaration.
28646
28647 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
28648 entities. Complete documentation of previous change.
28649
28650 2004-05-24 Robert Dewar <dewar@gnat.com>
28651
28652 * namet.adb: Minor reformatting
28653 Avoid use of name I (replace by J)
28654 Minor code restructuring
28655
28656 * sem_ch6.adb: Minor reformatting
28657
28658 * lib-writ.adb: Do not set restriction as active if this is a
28659 Restriction_Warning case.
28660
28661 * sem_prag.adb: Reset restriction warning flag if real pragma
28662 restriction encountered.
28663
28664 * s-htable.adb: Minor reformatting
28665 Change rotate count to 3 in Hash (improves hash for small strings)
28666
28667 * 5qsystem.ads: Add comments for type Address (no literals allowed).
28668
28669 * gnat_ugn.texi: Add new section of documentation "Code Generation
28670 Control", which describes the use of -m switches.
28671
28672 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
28673
28674 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
28675 through the DECL_INITIAL for renamed variables.
28676
28677 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
28678
28679 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
28680
28681 2004-05-19 Joel Brobecker <brobecker@gnat.com>
28682
28683 * exp_dbug.ads: Correct comments concerning handling of overloading,
28684 since we no longer use $ anymore.
28685
28686 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
28687
28688 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
28689 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
28690 with illegal subunits.
28691
28692 2004-05-19 Ed Schonberg <schonberg@gnat.com>
28693
28694 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
28695 body with front-end inlining enabled, check whether an inline pragma
28696 appears immediately after the body and applies to it.
28697
28698 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
28699 enabled and the pragma appears after the body of the subprogram.
28700
28701 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28702
28703 Part of function-at-a-time conversion
28704
28705 * misc.c (adjust_decl_rtl): Deleted.
28706 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
28707 Define.
28708
28709 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
28710 (add_decl_stmt, add_stmt, block_has_vars): New functions.
28711 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
28712
28713 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
28714 when making a decl.
28715 (gnat_to_gnu_entity): Likewise.
28716 Use add_stmt to update setjmp buffer.
28717 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
28718 flush_addressof.
28719 No longer call adjust_decl_rtl.
28720 (DECL_INIT_BY_ASSIGN_P): New macro.
28721 (DECL_STMT_VAR): Likewise.
28722
28723 * trans.c (gigi): Call start_block_stmt to make the outermost
28724 BLOCK_STMT.
28725 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
28726 Call start_block_stmt and end_block_stmt temporarily.
28727 Use gnat_expand_stmt instead of expand_expr_stmt.
28728 (add_decl_stmt): New function.
28729 (tree_transform): Call it.
28730 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
28731 (end_block_stmt): Set type and NULL_STMT.
28732 (gnat_expand_stmt): Make recursize call instead of calling
28733 expand_expr_stmt.
28734 (gnat_expand_stmt, case DECL_STMT): New case.
28735 (set_lineno_from_sloc): Do nothing if global.
28736 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
28737 (start_block_stmt, add_stmt, end_block_stmt): New functions.
28738 (build_block_stmt): Call them.
28739 (gnat_to_code): Don't expand NULL_STMT.
28740 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
28741 args.
28742 (tree_transform): Likewise.
28743 (tree_transform, case N_Null_Statement): Return NULL_STMT.
28744 (gnat_expand_stmt, case NULL_STMT): New case.
28745 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
28746 IF_STMT_TRUE.
28747
28748 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
28749 TREE_ADDRESSABLE.
28750
28751 * utils.c (create_var_decl): Do not call expand_decl or
28752 expand_decl_init.
28753 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
28754 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
28755 here.
28756 (struct e_stack): Add chain_next to GTY.
28757 (struct binding_level): Deleted.
28758 (struct ada_binding_level): New struct.
28759 (free_block_chain): New.
28760 (global_binding_level, clear_binding_level): Deleted.
28761 (global_bindings_p): Rework to see if no chain.
28762 (kept_level_p, set_block): Deleted.
28763 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
28764 new data structure and work directly on BLOCK node.
28765 (gnat_poplevel): Similarly.
28766 (get_decls): Look at BLOCK_VARS.
28767 (insert_block): Work directly on BLOCK node.
28768 (block_has_var): New function.
28769 (pushdecl): Rework for new binding structures.
28770 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
28771 poplevel.
28772 (build_subprog_body): Likewise.
28773 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
28774
28775 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
28776
28777 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
28778 (DECL_STMT_VAR): Likewise.
28779
28780 2004-05-17 Robert Dewar <dewar@gnat.com>
28781
28782 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
28783 procedure
28784
28785 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
28786 of restriction synonyums by using
28787 Restrict.Process_Restriction_Synonyms.
28788
28789 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
28790
28791 * s-restri.ads (Tasking_Allowed): Correct missing comment
28792
28793 * s-rident.ads: Add entries for restriction synonyms
28794
28795 * ali.adb: Fix some problems with badly formatted ALI files that can
28796 result in infinite loops.
28797
28798 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
28799 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
28800 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28801 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
28802 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
28803 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
28804 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
28805 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
28806 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
28807 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
28808 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
28809 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
28810 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
28811 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
28812 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
28813 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
28814 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
28815 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28816 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
28817 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
28818 to Task_Id (minor cleanup).
28819
28820 2004-05-17 Vincent Celier <celier@gnat.com>
28821
28822 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
28823 directory separator.
28824
28825 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
28826 project being extended, if Languages is not declared in extending
28827 project.
28828
28829 2004-05-17 Javier Miranda <miranda@gnat.com>
28830
28831 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
28832 limited view of a visible sibling.
28833
28834 2004-05-14 Robert Dewar <dewar@gnat.com>
28835
28836 * gnat_ugn.texi: Minor change to -gnatS documentation
28837
28838 * sprint.adb: Remove some instances of Assert (False) and for this
28839 purpose replace them by output of a ??? string.
28840
28841 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
28842 Assert (False).
28843
28844 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
28845 flag processing. This was suppressing required dependencies in
28846 No_Run_Time mode and is not needed since the binder does not generate
28847 references for things in libgnat anyway.
28848
28849 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
28850 warning.
28851
28852 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
28853
28854 * gnat_ugn.texi: Document AIX-specific issue with initialization of
28855 resolver library.
28856
28857 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
28858 action for the case of an actual parameter in an init proc call.
28859
28860 2004-05-14 Ed Schonberg <schonberg@gnat.com>
28861
28862 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
28863 subtype, check visible entities in base type.
28864
28865 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
28866 actions if the object is a renaming.
28867
28868 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
28869 Check_Formal_Package_Instance, to determine more precisely when the
28870 formal and the actual denote the same entity.
28871
28872 2004-05-14 Javier Miranda <miranda@gnat.com>
28873
28874 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
28875
28876 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
28877 corresponding to a private_with must be removed from visibility; it
28878 will be made visible later, just before we analyze the private part of
28879 the package.
28880 (Check_Private_Child_Unit): Allow private_with clauses in public
28881 siblings.
28882 (Install_Siblings): Make visible the private entities of private-withed
28883 siblings.
28884 (Install_Withed_Unit): Do not install the private withed unit if we
28885 are compiling a package declaration and the Private_With_OK flag was
28886 not set by the caller. These declarations will be installed later,
28887 just before we analyze the private part of the package.
28888
28889 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
28890 during the evaluation of the expression that initializes the object,
28891 decorate it with the expected type to avoid cascade errors.
28892 Code cleanup.
28893
28894 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
28895 subprogram we have to install the private_with clauses after its
28896 specification has been analyzed (as documented in AI-262.TXT).
28897
28898 * sem_ch8.adb (Has_Private_With): New function. Determines if the
28899 current compilation unit has a private with on a given entity.
28900 (Find_Direct_Name): Detect the Beaujolais problem described in
28901 AI-262.TXT
28902
28903 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
28904 provides the functionality of the function Is_Ancestor that was
28905 previously available in sem_ch10. It has been renamed to avoid
28906 overloading.
28907
28908 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
28909
28910 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28911
28912 * utils.c (build_vms_descriptor): Use SImode pointers.
28913
28914 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
28915
28916 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
28917
28918 2004-05-14 GNAT Script <nobody@gnat.com>
28919
28920 * Make-lang.in: Makefile automatically updated
28921
28922 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
28923
28924 Renaming of target specific files for clarity
28925
28926 * Makefile.in: Rename GNAT target specific files.
28927
28928 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
28929 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
28930 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
28931 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
28932 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
28933 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
28934 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
28935 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
28936 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
28937 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
28938 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
28939 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
28940 51osinte.adb, 51osinte.ads, 51system.ads,
28941 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28942 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
28943 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
28944 56tpopsp.adb, 57system.ads, 58system.ads,
28945 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
28946 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
28947 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
28948 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
28949 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
28950 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
28951 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
28952 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
28953 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
28954 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
28955 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
28956 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
28957 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
28958 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
28959 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
28960 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
28961 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
28962 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
28963 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
28964 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
28965 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
28966 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
28967 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
28968 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
28969 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
28970 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
28971 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
28972 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
28973 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
28974 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
28975 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
28976 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
28977 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
28978 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
28979 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
28980 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
28981 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
28982 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
28983 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
28984 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
28985
28986 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
28987 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
28988 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
28989 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
28990 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
28991 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
28992 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
28993 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
28994 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
28995 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
28996 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
28997 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
28998 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
28999 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
29000 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
29001 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
29002 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
29003 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
29004 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
29005 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
29006 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
29007 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
29008 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
29009 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
29010 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
29011 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
29012 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
29013 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
29014 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
29015 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
29016 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
29017 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
29018 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
29019 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
29020 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
29021 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
29022 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
29023 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
29024 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
29025 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
29026 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
29027 s-osinte-vms.ads, s-osinte-vxworks.adb,
29028 s-osinte-vxworks.ads, s-osprim-mingw.adb,
29029 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
29030 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
29031 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
29032 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
29033 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
29034 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
29035 s-stchop-vxworks.adb, s-taprop-dummy.adb,
29036 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
29037 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
29038 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
29039 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
29040 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
29041 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
29042 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
29043 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
29044 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
29045 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
29046 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
29047 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
29048 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
29049 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
29050 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
29051 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
29052 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
29053 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
29054 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
29055 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
29056 system-irix-o32.ads, system-linux-x86_64.ads,
29057 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29058 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
29059 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
29060 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
29061 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
29062 system-vxworks-mips.ads, system-vxworks-ppc.ads,
29063 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
29064 above.
29065
29066 2004-05-13 Zack Weinberg <zack@codesourcery.com>
29067
29068 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
29069
29070 2004-05-13 Diego Novillo <dnovillo@redhat.com>
29071
29072 Merge from tree-ssa-20020619-branch.
29073
29074 * config-lang.in (boot_language, build_by_default): Set
29075 to no.
29076 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
29077 (max_size): Add static chain op for call_expr.
29078
29079 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
29080
29081 PR target/15331
29082 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
29083
29084 2004-05-11 Roger Sayle <roger@eyesopen.com>
29085
29086 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
29087 COND_EXPR.
29088
29089 2004-05-10 Doug Rupp <rupp@gnat.com>
29090
29091 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
29092 system.aux_dec.
29093
29094 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
29095
29096 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
29097
29098 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
29099 Fixes undefined symbols in IA64 gnatlib.
29100
29101 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
29102
29103 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
29104 Short_Address). This will be moved to system.auxdec.
29105
29106 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
29107
29108 * sem_util.adb: Replace test for presence of a node that is always
29109 present with a call to Discard_Node.
29110
29111 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
29112 Analyze on the library unit node after generation of distribution stub
29113 constructs. The call was a no-op because Unit_Node has already been
29114 Analyzed, and the tree fragments for the distribution stubs are
29115 analyzed as they are inserted in Exp_Dist.
29116 Update comment regarding to distribution stubs to reflect that we
29117 do not generate stub in separate files anymore.
29118
29119 * einfo.ads: Clarify the fact that a tagged private type has the
29120 E_Record_Type_With_Private Ekind.
29121
29122 * erroutc.adb: Minor reformatting
29123
29124 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
29125 values if line length is increased using -gnatyM (noticed during code
29126 reading).
29127
29128 * eval_fat.adb: Minor reformatting
29129 Put spaces around exponentiation operator
29130
29131 2004-05-10 Ed Schonberg <schonberg@gnat.com>
29132
29133 PR ada/15005
29134 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
29135 has been rewritten as an explicit dereference, retrieve type of
29136 original node to check for possibly unconstrained record type.
29137
29138 2004-05-10 Ed Schonberg <schonberg@gnat.com>
29139
29140 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
29141 overriding, use the operation of the parent unconditionally.
29142
29143 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
29144 operation when either operand is a literal, to avoid further
29145 ambiguities.
29146
29147 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
29148 overridden by a previous explicit declaration, mark the previous entity
29149 as overriding.
29150
29151 * sem_disp.adb (Check_Dispatching_Operation): New predicate
29152 Is_Visibly_Controlled, to determine whether a declaration of a
29153 primitive control operation for a derived type overrides an inherited
29154 one. Add warning if the explicit declaration does not override.
29155
29156 2004-05-10 Vincent Celier <celier@gnat.com>
29157
29158 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
29159 some cases when the sources are no longer present.
29160
29161 * make.adb (Collect_Arguments): Fail if an external source, not part
29162 of any project need to be compiled, when switch -x has not been
29163 specified.
29164
29165 * makeusg.adb: Document new switch -x
29166
29167 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
29168 defaulted to False.
29169
29170 * switch-m.adb (Scan_Make_Switches): New switch -x
29171
29172 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
29173 gnatmake switch -x.
29174
29175 * gnat_ugn.texi: Document new gnatmake switch -x
29176
29177 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
29178
29179 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
29180
29181 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
29182 (process_attributes): Likewise.
29183
29184 2004-05-10 Joel Brobecker <brobecker@gnat.com>
29185
29186 * s-inmaop.ads: Fix spelling mistake in one of the comments.
29187
29188 2004-05-10 Robert Dewar <dewar@gnat.com>
29189
29190 * gnat_ugn.texi: Document that for config pragma files, the maximum
29191 line length is always 32767.
29192
29193 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
29194 literals is now allowed.
29195
29196 * gnat-style.texi: Remove statement about splitting long lines before
29197 an operator rather than after, since we do not follow this rule at all.
29198 Clarify rule (really lack of rule) for spaces around exponentiation
29199
29200 * sem_elim.adb: Allow concatenation of string literals as well as a
29201 single string literal for pragma arguments.
29202
29203 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
29204
29205 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
29206 written for append case.
29207
29208 * frontend.adb: Changes to avoid checking max line length in config
29209 pragma files.
29210
29211 * g-os_lib.ads: Minor reformatting
29212
29213 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
29214 wrong in any case. Instead use standard value. Noticed during code
29215 reading.
29216
29217 * opt.ads (Max_Line_Length): New field, used to implement removal of
29218 limitation on length of lines when scanning config pragma files.
29219
29220 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
29221 makeutl.ads, makeutl.adb: Minor reformatting
29222
29223 * scn.adb: Do not check line length while scanning config pragma files
29224 Do not check line length while scanning out license information
29225
29226 * scng.adb: Changes to avoid line length checks while parsing config
29227 pragma files.
29228
29229 2004-05-10 GNAT Script <nobody@gnat.com>
29230
29231 * Make-lang.in: Makefile automatically updated
29232
29233 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
29234
29235 * osint.adb (Find_Program_Name): Fix handling of VMS version
29236 number.
29237
29238 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
29239
29240 * g-os_lib.ads (Invalid_Time): New constant
29241
29242 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
29243 return OS_Time instead of time_t to match what is imported by Ada.
29244 Now return -1 if the file doesn't exist, instead of a random value
29245
29246 2004-05-05 Robert Dewar <dewar@gnat.com>
29247
29248 * usage.adb: Add line for -gnatR?s switch
29249
29250 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
29251
29252 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
29253 and for Match (Data_First, Data_last)
29254
29255 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
29256 written when we are dealing with multi-unit files.
29257
29258 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
29259
29260 * Makefile.in: Remove unused targets and variables.
29261
29262 2004-05-05 Vincent Celier <celier@gnat.com>
29263
29264 * switch-m.adb: New gnatmake switch -eI
29265
29266 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
29267 of new gnatmake switch -eInnn.
29268
29269 * makegpr.adb: Take into account new parameters Index and Src_Index in
29270 Prj.Util.
29271
29272 * clean.adb: Implement support for multi-unit sources, including new
29273 switch -i.
29274
29275 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
29276 Src_Index.
29277
29278 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
29279 (Extract_From_Q): New out parameter Index
29280 (Mark, Is_Marked): Subprograms moved to Makeutl
29281 (Switches_Of): New parameter Source_Index
29282 (Add_Switch): New parameter Index
29283 (Check): New parameter Source_Index
29284 (Collect_Arguments): New parameter Source_Index
29285 (Collect_Arguments_And_Compile): New parameter Source_Index
29286 (Compile): New parameter Source_Index
29287 Put subprograms in alphabetical order
29288 Add support for multi-source sources, including in project files.
29289
29290 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
29291 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
29292 Make.
29293
29294 * makeusg.adb: New gnatmake switch -eInnn
29295
29296 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
29297 Prj.Util.Value_Of.
29298
29299 * opt.ads (Main_Index): New variable, defaulted to 0.
29300
29301 * osint.ads, osinte.adb (Add_File): New parameter Index
29302 (Current_Source_Index): New function
29303
29304 * prj.adb: Take into account new components Index and Src_Index
29305
29306 * prj.ads (String_Element): New component Index
29307 (Variable_Value): New component Index
29308 (Array_Element): New component Src_Index
29309
29310 * prj-attr.adb: Indicate that optional index may be specified for
29311 attributes Main, Executable, Spec, Body and some of Switches.
29312
29313 * prj-attr.ads (Attribute_Kind): New values for optional indexes
29314 (Attribute_Record): New component Optional_Index
29315
29316 * prj-com.ads (File_Name_Data): New component Index
29317
29318 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
29319
29320 * prj-env.adb (Put): Output optional index
29321
29322 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
29323 attributes Spec and Body.
29324
29325 * prj-nmsc.adb: Process optional indexes
29326
29327 * prj-pp.adb: Ouput "at" for optional indexes
29328
29329 * prj-proc.adb: Take into account optional indexes
29330
29331 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
29332 Optional_Index. For string literal,
29333 process optional index when Optional_Index is True.
29334 (Parse_Expresion): New Boolean parameter Optional_Index
29335
29336 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
29337 (Set_Source_Index_Of): New procedure
29338
29339 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
29340 index.
29341
29342 * prj-util.ads (Executable_Of): New parameter Index
29343 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
29344 New parameter Src_Index, defaulted to 0.
29345
29346 2004-05-05 Ed Schonberg <schonberg@gnat.com>
29347
29348 PR ada/15257
29349 * sem_ch3.adb (Access_Definition): If this is an access parameter
29350 whose designated type is imported through a limited_with clause, do
29351 not add the enclosing subprogram to the list of private dependents of
29352 the type.
29353
29354 2004-05-05 Ed Schonberg <schonberg@gnat.com>
29355
29356 PR ada/15258
29357 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
29358 a limited_with clause, and the other is its non-limited view.
29359
29360 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
29361
29362 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
29363
29364 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
29365 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
29366 Stand.Boolean_Literals to produce references to entities
29367 Standard_False and Standard_True from compile-time computed boolean
29368 values.
29369
29370 * stand.ads (Boolean_Literals): New variable, provides the entity
29371 values for False and True, for use by the expander.
29372
29373 2004-05-05 Doug Rupp <rupp@gnat.com>
29374
29375 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
29376 5vinmaop.adb: Unchecked convert Short_Address vice Address
29377
29378 * adaint.c, raise.c: Caste CRTL function return value
29379 to avoid gcc error on 32/64 bit IVMS.
29380
29381 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
29382 target = IA64/VMS.
29383
29384 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
29385
29386 * 5qsystem.ads (Address): Declare as Long_Integer
29387 (Short_Address): Declare as 32 bit subtype of Address
29388 Declare abstract address operations to avoid gratuitous ambiguities.
29389
29390 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
29391
29392 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
29393 instead of the old Boolean_Entry_Barriers.
29394 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
29395
29396 2004-05-05 GNAT Script <nobody@gnat.com>
29397
29398 * Make-lang.in: Makefile automatically updated
29399
29400 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
29401
29402 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
29403
29404 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
29405
29406 PR ada/15152
29407 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
29408 alone. Replacing object references by literals is inappropriate in a
29409 so low level context.
29410
29411 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
29412
29413 * a-exexpr.adb: Add comments
29414
29415 2004-05-03 Joel Brobecker <brobecker@gnat.com>
29416
29417 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
29418 declare the Ancestor_Tags array in Type_Specific_Data with a small size
29419 without risking a bounds check error when accessing one of its
29420 components.
29421 (Type_Specific_Data): Define Ancestor_Tags as a small array.
29422 This prevents us from hitting a limitation during the debug info
29423 generation when using stabs.
29424
29425 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
29426 small array.
29427 This prevents us from hitting a limitation during the debug info
29428 generation when using stabs.
29429
29430 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
29431
29432 lang-specs.h: Remove -gnatz* from specs.
29433
29434 2004-05-03 Vincent Celier <celier@gnat.com>
29435
29436 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
29437
29438 * Make-lang.in, Makefile.in: Add gprmake
29439
29440 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
29441
29442 * sem_aggr.adb: Fix typo in comment.
29443
29444 2004-05-03 Robert Dewar <dewar@gnat.com>
29445
29446 * make.adb: Minor reformatting
29447
29448 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
29449
29450 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
29451 so that it works when address is not a private type.
29452
29453 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
29454 properly with rewritten unchecked conversions. This prevents
29455 order-of-elaboration issues that can otherwise arise.
29456 (Minimum_Size): Don't check size of access types under VMS
29457
29458 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
29459 interpretations of integer literals as type System.Address.
29460
29461 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
29462 (Is_Descendent_Of): New function
29463
29464 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
29465
29466 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29467 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
29468 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
29469
29470 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
29471 of the old Max_Entry_Queue_Depth.
29472
29473 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29474 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
29475 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
29476
29477 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
29478 New entry for proper handling of Max_Entry_Queue_Depth.
29479 New entry for proper handling of No_Dynamic_Interrupts.
29480
29481 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
29482 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29483 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
29484 the GNAT specific restriction Max_Entry_Queue_Depth.
29485 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
29486 the GNAT specific restriction No_Dynamic_Interrupts.
29487
29488 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
29489 instead of the old Boolean_Entry_Barriers.
29490 Use the new restriction No_Dynamic_Attachment instead of the old
29491 No_Dynamic_Interrupts.
29492
29493 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
29494 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29495
29496 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
29497 of the old Max_Entry_Queue_Depth.
29498
29499 2004-05-03 GNAT Script <nobody@gnat.com>
29500
29501 * Make-lang.in: Makefile automatically updated
29502
29503 2004-04-29 Ed Schonberg <schonberg@gnat.com>
29504
29505 * checks.adb (Enable_Range_Check): If the prefix of an index component
29506 is an access to an unconstrained array, perform check unconditionally.
29507
29508 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29509
29510 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
29511 Component_Clause.
29512
29513 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
29514
29515 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
29516 alternate stack setting. There was no support for the tasking cases
29517 and the changes eventually caused a number of side-effect failures in
29518 the non-tasking case too.
29519
29520 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
29521
29522 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
29523 -gnats is passed.
29524
29525 2004-04-29 Vincent Celier <celier@gnat.com>
29526
29527 * make.adb (Gnatmake): Increase max size of argument array for
29528 gnatbind for the potential addition of -F.
29529 If there are Stand-Alone Library projects, invoke gnatbind with -F to
29530 be sure that elaboration flags will be checked.
29531
29532 * switch-c.adb: Correct call to Scan_Pos for -gnateI
29533
29534 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
29535
29536 * sem_warn.adb (Check_References): Move '<access-variable> may be
29537 null' warning out of under Warn_On_No_Value_Assigned.
29538
29539 2004-04-29 Ed Falis <falis@gnat.com>
29540
29541 * gnat_ugn.texi: Fixed texi error
29542
29543 2004-04-29 Robert Dewar <dewar@gnat.com>
29544
29545 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
29546 abstract operations if they come from predefined files.
29547
29548 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
29549 Dynamic, not RM).
29550
29551 * s-addope.adb: Correct obvious error in mod function
29552
29553 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
29554
29555 * Makefile.in: Add target pairs for powerpc darwin*
29556 tasking support.
29557
29558 * a-intnam-darwin.ads, s-osinte-darwin.adb,
29559 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
29560
29561 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
29562
29563 * Makefile.in: Add target macro definitions for s390*-linux*.
29564 * system-linux-s390.ads: New file.
29565 * system-linux-s390x.ads: New file.
29566
29567 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
29568
29569 * gnat_ugn.texi: Correct argument to @setfilename.
29570
29571 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
29572
29573 * a-exexpr.adb (Unwind_Word): New data type.
29574 (Unwind_Exception): Use it as type of Private1 and Private2.
29575
29576 * raise.c (db_action_for): Fix debug printf.
29577
29578 2004-04-27 Ed Schonberg <schonberg@gnat.com>
29579
29580 * a-wtmoio.ads: Formal type must be a modular type, not a signed
29581 integer type.
29582
29583 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29584
29585 * decl.c (gnat_to_gnu_entity, case object): Call
29586 __builtin_update_setjmp_buf.
29587
29588 * gigi.h (update_setjmp_buf): Deleted.
29589 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
29590
29591 * misc.c: (update_setjmp_buf): Deleted.
29592
29593 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
29594 around block of RTL.
29595
29596 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
29597
29598 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
29599
29600 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
29601 subprogram for which no pragma All_Calls_Remote applies, store the
29602 address of the real subprogram in the underlying record type, so local
29603 dereferences do not go through the PCS.
29604
29605 2004-04-26 Robert Dewar <dewar@gnat.com>
29606
29607 * i-c.ads: Add some type qualifications to avoid ambiguities when
29608 compiling with s-auxdec.ads and a non-private address type.
29609
29610 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
29611
29612 * Makefile.rtl: Fix error in previous check-in:
29613 Add s-addope.o to non tasking object list (rather than tasking object
29614 list).
29615
29616 2004-04-26 Javier Miranda <miranda@gnat.com>
29617
29618 * sem_aggr.adb: Fix typo in comments
29619 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
29620 Required to check the null-exclusion attribute.
29621
29622 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
29623 case of anonymous access types in record and array components. For a
29624 component definition the level is the same of the enclosing composite
29625 type.
29626
29627 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
29628 that are anonymous access types the level of accessibility depends on
29629 the enclosing type declaration. In order to have this information, set
29630 the scope of the anonymous access type to the enclosing record type
29631 declaration.
29632 (Array_Type_Declaration): In case of components that are anonymous
29633 access types the level of accessibility depends on the enclosing type
29634 declaration. In order to have this information, set the scope of the
29635 anonymous access type to the enclosing array type declaration.
29636
29637 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
29638 access type.
29639
29640 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
29641 renaming of anonymous access-to-constant types allowed if and only if
29642 the renamed object is access-to-constant.
29643
29644 * sem_util.adb (Type_Access_Level): In case of anonymous access types
29645 that are component_definition or discriminants of a nonlimited type,
29646 the level is the same as that of the enclosing component type.
29647
29648 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
29649
29650 * sem_elim.adb: Some minor code reorganization from code reading. Fix
29651 misprint in the function name (File_Name_Match).
29652
29653 2004-04-23 Laurent Guerby <laurent@guerby.net>
29654
29655 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
29656 install.
29657
29658 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29659
29660 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
29661
29662 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
29663
29664 * adaint.c (__gnat_try_lock): No longer requires that the parent
29665 directory be writable, the directory itself is enough.
29666 (gnat_is_absolute_path): Change profile, so that the call from
29667 GNAT.OS_Lib can be made more efficient.
29668
29669 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
29670 from GNAT.OS_Lib can be made more efficient.
29671
29672 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
29673 one copy of the file name. Found by code reading.
29674
29675 2004-04-23 Vincent Celier <celier@gnat.com>
29676
29677 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
29678 Correct documentation on gnatmake switches transmitted to the compiler
29679
29680 * ali.ads: Minor comment fix
29681
29682 2004-04-23 Javier Miranda <miranda@gnat.com>
29683
29684 * sem_ch6.adb: (Confirming Types): Code cleanup
29685
29686 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
29687 subprogram types: E_Anonymous_Access_Subprogram_Type and
29688 E_Anonymous_Access_Protected_Subprogram_Type.
29689
29690 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
29691
29692 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29693 whether a pragma All_Calls_Remote applies to the subprogram on which
29694 'Access is taken.
29695 No functional change is introduced by this revision; the new parameter
29696 will be used to allow calls to local RCI subprograms to be optimized
29697 to not use the PCS in the case where no pragma All_Calls_Remote applies,
29698 as is already done in the PolyORB implementation of the DSA.
29699
29700 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29701 whether a pragma All_Calls_Remote applies to the subprogram on which
29702 'Access is taken.
29703 No functional change is introduced by this revision; the new parameter
29704 will be used to allow calls to local RCI subprograms to be optimized
29705 to not use the PCS in the case where no pragma All_Calls_Remote applies,
29706 as is already done in the PolyORB implementation of the DSA.
29707
29708 2004-04-23 Robert Dewar <dewar@gnat.com>
29709
29710 * Makefile.rtl: Add entry for s-addope.o in run time library list
29711 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
29712 * s-addope.ads, s-addope.adb: New files.
29713
29714 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
29715 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
29716 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
29717 System.Address to be non-private and signed.
29718
29719 * sem_elim.adb: Minor reformatting (fairly extensive)
29720 Some minor code reorganization from code reading
29721 Add a couple of ??? comments
29722
29723 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29724
29725 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
29726 (tree_transform, case N_If_Statement): Remove non-determinism.
29727
29728 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
29729
29730 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
29731
29732 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
29733 Eliminate' section.
29734
29735 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
29736 no longer used as a parameter name for Eliminate pragma).
29737
29738 2004-04-22 Laurent Guerby <laurent@guerby.net>
29739
29740 PR optimization/14984
29741 PR optimization/14985
29742 * trans.c (gigi): Fix non determinism leading to bootstrap
29743 comparison failures.
29744
29745 2004-04-21 Pascal Obry <obry@gnat.com>
29746
29747 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
29748 passed to spawnvp() to properly handle program pathname with spaces on
29749 Win32.
29750
29751 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
29752
29753 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
29754 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
29755 unlocked in case of exceptions.
29756
29757 2004-04-21 Joel Brobecker <brobecker@gnat.com>
29758
29759 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
29760 This function does not exist anymore.
29761
29762 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
29763
29764 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
29765
29766 * link.c: Move variables to the __gnat name space.
29767
29768 * Makefile.in: list link.o explicitly when needed.
29769
29770 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
29771
29772 2004-04-21 Javier Miranda <miranda@gnat.com>
29773
29774 * einfo.adb (Original_Access_Type): New subprogram
29775 (Set_Original_Access_Type): New subprogram
29776 (Write_Field21_Name): Write the name of the new field
29777
29778 * einfo.ads (Original_Access_Type): New field present in access to
29779 subprogram types.
29780 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
29781 E_Anonymous_Access_Protected_Subprogram_Type.
29782
29783 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
29784 subprogram types.
29785
29786 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
29787 to anonymous access to subprogram types.
29788
29789 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
29790 to subprogram types.
29791
29792 * sem_ch3.adb (Access_Definition): Complete decoration of entities
29793 corresponding to anonymous access to subprogram types.
29794 (Analyze_Component_Declaration): Add new actual to the call to
29795 subprogram replace_anonymous_access_to_protected_subprogram.
29796 (Array_Type_Declaration): Add new actual to the call to subprogram
29797 replace_anonymous_access_to_protected_subprogram.
29798 (Process_Discriminants): Add new actual to the call to subprogram
29799 replace_anonymous_access_to_protected_subprogram.
29800 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
29801
29802 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
29803 formal.
29804
29805 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
29806 access to subprogram types.
29807
29808 * sem_util.adb (Has_Declarations): Addition of package_specification
29809 nodes.
29810
29811 2004-04-21 Ed Schonberg <schonberg@gnat.com>
29812
29813 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
29814 inlined flags to renamed entity only if in current unit.
29815
29816 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
29817
29818 * s-parint.ads: Add DSA implementation marker.
29819
29820 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
29821 value of System.Partition_Interface.DSA_Implementation to determine
29822 what version of the distributed systems annex is available (no
29823 implementation, GLADE, or PolyORB).
29824
29825 2004-04-21 Joel Brobecker <brobecker@gnat.com>
29826
29827 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
29828
29829 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29830
29831 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
29832 with new type if alias sets differ.
29833 Fixes ACATS c41103b.
29834
29835 2004-04-21 Vincent Celier <celier@gnat.com>
29836
29837 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
29838 Add array Lang_Args for the language specific compiling argument
29839 switches.
29840
29841 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
29842
29843 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
29844
29845 * gnat_rm.texi: Update the descripton of the Eliminate pragma
29846 according to the recent changes in the format of the parameters of the
29847 pragma (replacing Homonym_Number with Source_Location).
29848
29849 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
29850
29851 * 5isystem.ads: Removed, unused.
29852
29853 * gnat_rm.texi: Redo 1.13 change.
29854
29855 2004-04-19 Robert Dewar <dewar@gnat.com>
29856
29857 * s-stoele.ads: Clean up definition of Storage_Offset (the new
29858 definition is cleaner, avoids the kludge of explicit Standard operator
29859 references, and also is consistent with a visible System.Address with
29860 no visible operations.
29861
29862 * s-geveop.adb: Add declarations to avoid assumption of visible
29863 operations on type System.Address (since these might not be available
29864 if Address is a non-private type for which the operations
29865 are made abstract).
29866
29867 * sem_eval.adb: Minor reformatting
29868
29869 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
29870 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
29871 reformatting (new function spec format).
29872
29873 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
29874 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
29875 s-caun64.adb: Add declarations to avoid assumption of visible
29876 operations on type System.Address (since these might not be available
29877 if Address is a non-private type for which the operations are made
29878 abstract).
29879
29880 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
29881
29882 * exp_intr.adb: Minor comment update
29883
29884 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
29885
29886 * 5omastop.adb: Add declarations to avoid assumption of visible
29887 operations on type System.Address (since these might not be available
29888 if Address is a non-private type for which the operations
29889 are made abstract).
29890
29891 2004-04-19 Vincent Celier <celier@gnat.com>
29892
29893 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
29894
29895 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
29896 defaulted to Ada.
29897
29898 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
29899 defaulted to Ada.
29900 Call Check with Process_Languages.
29901 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
29902 with Process_Languages.
29903 (Recursive_Check): New Boolean parameter Process_Languages. Call
29904 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
29905 Process_Languages.
29906
29907 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
29908
29909 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
29910 parameter Ada_Main, defaulted to True.
29911 Check for Ada specific characteristics only when Ada_Main is True.
29912
29913 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
29914
29915 * prj.adb: (Project_Empty): Add new Project_Data components.
29916
29917 * prj.ads: New types and tables for non Ada languages.
29918 (Project_Data): New components Languages, Impl_Suffixes,
29919 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
29920 Include_Path, Include_Data_Set.
29921
29922 * prj-env.ads, prj-env.adb: Minor reformatting
29923
29924 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
29925 Put subprograms in alphabetical order
29926
29927 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
29928 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
29929 Opt.Follow_Links.
29930
29931 * mlib-prj.adb: Back out modification in last version, as they are
29932 incorrect.
29933 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
29934
29935 * make.adb: (Mains): Moved to package Makeutl
29936 (Linker_Opts): Moved to package Makeutl
29937 (Is_External_Assignment): Moved to package Makeutl
29938 (Test_If_Relative_Path): Moved to package Makeutl
29939 (Gnatmake): Move sorting of linker options to function
29940 Makeutl.Linker_Options_Switches.
29941
29942 * makeutl.ads, makeutl.adb: New files.
29943
29944 * Makefile.in: Add makeutl.o to the object files for gnatmake
29945
29946 * makeusg.adb: Add line for new switch -eL.
29947
29948 * gnatls.adb (Image): New function.
29949 (Output_Unit): If in verbose mode, output the list of restrictions
29950 specified by pragmas Restrictions.
29951
29952 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
29953 Text_IO.
29954
29955 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
29956 needed, to put it in the range 1970 (included) - 2026 (excluded).
29957 (Time_Of): Do not shift Unix_Min_Year (1970).
29958 Shift the date by multiple of 56 years, if needed, to put it in the
29959 range 1970 (included) - 2026 (excluded).
29960
29961 * adaint.h, adaint.c (__gnat_set_executable): New function.
29962
29963 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29964
29965 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
29966 and pop GC context.
29967 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
29968 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
29969 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
29970 (tree_transform, case N_Code_Statement): Likewise.
29971 (gnat_expand_stmt, case LABEL_STMT): Don't look at
29972 LABEL_STMT_FIRST_IN_EH.
29973 (gnat_expand_stmt, case ASM_STMT): New case.
29974
29975 * utils2.c (build_unary_op): Properly set TREE_READONLY of
29976 UNCONSTRAINED_ARRAY_REF.
29977
29978 * utils.c (poplevel): Temporarily push/pop GC context around inline
29979 function expansion.
29980
29981 * decl.c (maybe_variable): Properly set TREE_READONLY of
29982 UNCONSTRAINED_ARRAY_REF.
29983 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
29984
29985 * ada-tree.def: (ASM_STMT): New.
29986
29987 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
29988 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
29989 ASM_STMT_INPUT): New.
29990 (ASM_STMT_CLOBBER): Likewise.
29991
29992 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
29993
29994 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
29995 general rcheck mechanism to raise Program_Error for E.4(18), instead
29996 of a custom raiser in System.Partition_Interface.
29997 Part of general cleanup work before PolyORB integration.
29998
29999 * snames.ads, snames.adb: Add new runtime library entities and names
30000 for PolyORB DSA.
30001
30002 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30003 exp_dist.
30004 (Build_Subprogram_Id): New subprogram provided by exp_dist
30005 Code reorganisation in preparation for PolyORB integration.
30006
30007 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30008 exp_dist.
30009 (Build_Subprogram_Id): New subprogram provided by exp_dist
30010
30011 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
30012 actual parameter types for call to dereference of an
30013 access-to-subprogram type.
30014
30015 * rtsfind.ads: Add new runtime library entities and names for PolyORB
30016 DSA.
30017
30018 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
30019 instead, which has the same behaviour here since we never pass it a
30020 NULL pointer.
30021
30022 * link.c (run_path_option, Solaris case): Use -Wl, as for other
30023 platforms.
30024
30025 * Makefile.in: adjust object file lists for gnatlink and gnatmake
30026 to account for new dependency upon Interfaces.C.Strings + link.o
30027 For x86 FreeBSD, use 86numaux.
30028
30029 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
30030 from Mlib.Tgt to Mlib.
30031
30032 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
30033 target-independent.
30034
30035 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
30036 target-specific versions of this subprogram, now implemented as a
30037 target-independent function in Mlib.
30038
30039 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
30040 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
30041 (Linker_Library_Path_Option): Remove target-specific versions of this
30042 subprogram, now implemented as a target-independent function in Mlib.
30043
30044 * atree.adb: (Allocate_Initialize_Node): New subprogram.
30045 Factors out node table slots allocation.
30046 (Fix_Parents): New subprogram.
30047 Encapsulate the pattern of fixing up parent pointers for syntactic
30048 children of a rewritten node.
30049 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
30050 (Rewrite): Use New_Copy when creating saved copy of original node.
30051 (Replace): Use Copy_Node to copy nodes.
30052
30053 2004-04-19 Javier Miranda <miranda@gnat.com>
30054
30055 * sprint.adb (Sprint_Node_Actual): Give support to the new
30056 Access_To_Subprogram node available in Access_Definition nodes. In
30057 addition, give support to the AI-231 node fields: null-exclusion,
30058 all-present, constant-present.
30059
30060 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
30061
30062 * sinfo.ads, sinfo.adb:
30063 New field Access_To_Subprogram_Definition in Access_Definition nodes
30064
30065 * sem_ch6.adb (Process_Formals): Move here the code that creates and
30066 decorates internal subtype declaration corresponding to the
30067 null-excluding formal. This code was previously in Set_Actual_Subtypes.
30068 In addition, carry out some code cleanup on this code. In case of
30069 access to protected subprogram call
30070 Replace_Anonymous_Access_To_Protected_Subprogram.
30071 (Set_Actual_Subtypes): Code cleanup.
30072
30073 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
30074 Find_Type in case of anonymous access renamings. Add warning in case of
30075 null-excluding attribute used in anonymous access renaming.
30076
30077 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30078 subprogram
30079
30080 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
30081 subprogram.
30082 (Access_Definition): In case of anonymous access to subprograms call
30083 the corresponding semantic routine to decorate the node.
30084 (Access_Subprogram_Declaration): Addition of some comments indicating
30085 some code that probably should be added here. Detected by comparison
30086 with the access_definition subprogram.
30087 (Analyze_Component_Declaration): In case of access to protected
30088 subprogram call Replace_Anonymous_Access_To_Protected.
30089 (Array_Type_Declaration): In case of access to protected subprogram call
30090 Replace_Anonymous_Access_To_Protected_Subprogram.
30091 (Process_Discriminants): In case of access to protected subprogram call
30092 Replace_Anonymous_Access_To_Protected_Subprogram.
30093
30094 * par.adb (P_Access_Definition): New formal that indicates if the
30095 null-exclusion part was present.
30096 (P_Access_Type_Definition): New formal that indicates if the caller has
30097 already parsed the null-excluding part.
30098
30099 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
30100 (P_Identifier_Declarations): Code cleanup and give support to renamings
30101 of anonymous access to subprogram types.
30102 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
30103 (P_Array_Type_Definition): Give support to AI-254.
30104 (P_Component_Items): Give support to AI-254.
30105 (P_Access_Definition): New formal that indicates if the header was
30106 already parsed by the caller.
30107 (P_Access_Type_Definition): New formal that indicates if the caller has
30108 already parsed the null-excluding part.
30109
30110 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
30111 call to P_Access_Definition.
30112
30113 2004-04-19 Geert Bosch <bosch@gnat.com>
30114
30115 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
30116 the delicate semantics of floating-point to integer conversion.
30117 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
30118
30119 * eval_fat.adb (Machine_Mantissa): Moved to spec.
30120 (Machine_Radix): New function.
30121
30122 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
30123 conversion checks.
30124 (Machine_Radix): New function also for use in conversion checks.
30125
30126 2004-04-19 Ed Schonberg <schonberg@gnat.com>
30127
30128 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
30129
30130 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
30131 to decorate the access-to-protected subprogram and the equivalent type.
30132
30133 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
30134 to anonymous access to subprogram types.
30135
30136 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
30137 constant-folding, for legality checks in contexts that require an RM
30138 static expression.
30139
30140 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
30141 temporary but stack checking is not enabled, increment serial number
30142 to so that symbol generation is consistent with and without stack
30143 checking.
30144
30145 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
30146 independent on whether stack checking is enabled, caller must check
30147 the corresponding flag.
30148
30149 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
30150 range checks.
30151 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
30152 parent if it has discriminants.
30153 (Build_Derived_Private_Type): Constructed full view does
30154 not come from source.
30155 (Process_Discriminants): Default discriminants on a tagged type are
30156 legal if this is the internal completion of a private untagged
30157 derivation.
30158
30159 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
30160 no constraint checks, because it corresponds to an existing object.
30161
30162 * sem_prag.adb (Process_Convention): Pragma applies
30163 only to subprograms in the same declarative part, i.e. the same unit,
30164 not the same scope.
30165
30166 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
30167 ignore type mismatch on a numeric conversion if expression comes from
30168 expansion.
30169
30170 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
30171
30172 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
30173 Homonym_Number parameter, add processing for Source_Location parameter
30174 corresponding.
30175 (Check_Eliminated): Remove the check for homonym numbers, add the check
30176 for source location traces.
30177
30178 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
30179 with Arg_Source_Location corresponding to the changes in the format of
30180 the pragma.
30181
30182 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
30183 Eliminate pragma corresponding to the changes in the format of the
30184 pragma: Homonym_Number is replaced with Source_Location, two ways of
30185 distinguishing homonyms are mutially-exclusive.
30186
30187 2004-04-19 Joel Brobecker <brobecker@gnat.com>
30188
30189 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
30190
30191 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
30192 No_Dollar_In_Label, no longer necessary, as it is always True.
30193 (Strip_Suffixes): Likewise.
30194
30195 2004-04-19 Gary Dismukes <dismukes@gnat.com>
30196
30197 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
30198 modulus for compatibility with size clause on targets with 16-bit
30199 Integer.
30200
30201 * layout.adb (Discrimify): In the case of private types, set Vtyp to
30202 full type to fix type mismatches on calls to size functions for
30203 discriminant-dependent array components.
30204
30205 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
30206
30207 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
30208 lib.
30209
30210 2004-04-19 Pascal Obry <obry@gnat.com>
30211
30212 * mdll-utl.adb (Locate): New version is idempotent.
30213
30214 2004-04-17 Laurent Guerby <laurent@guerby.net>
30215
30216 PR ada/14988 (partial)
30217 * impunit.adb: Fix typo.
30218
30219 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
30220
30221 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
30222 and install-rts-cert targets. Remove all gnatlib and gnattools
30223 targets and all other rts-* targets (moved to libada). Remove (now)
30224 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
30225 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
30226
30227 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30228
30229 * trans.c (tree_transform): Shortcut returning error_mark_node for
30230 statements in annotate_only_mode.
30231 (tree_transform, case N_Label, case N_Return_Statement,
30232 N_Goto_Statement): Make statement tree instead of generating code.
30233 (tree_transform, case N_Assignment_Statement): No longer check
30234 type_annotate_only.
30235 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
30236 RETURN_STMT): New.
30237 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
30238 New fcns.
30239 (gnat_to_gnu): Collect any RTL generated and deal with it.
30240 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
30241 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
30242 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
30243
30244 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
30245
30246 * ada-tree.def (EXPR_STMT): Fix typo in name.
30247 (BLOCK_STMT, IF_STMT): New nodes.
30248
30249 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
30250 LABEL_STMT_FIRST_IN_EH): New macros.
30251 (RETURN_STMT_EXPR): Likewise.
30252
30253 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
30254 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
30255
30256 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
30257
30258 * atree.ads: Correct documentation on extended nodes.
30259
30260 * link.c: Set run_path_option for FreeBSD.
30261
30262 2004-04-08 Vincent Celier <celier@gnat.com>
30263
30264 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
30265 one of the ALI file, do not link with DEC lib.
30266
30267 * par.adb Remove the last two characters ("%s" or "%b") when checking
30268 if a language defined unit may be recompiled.
30269
30270 2004-04-08 Ed Schonberg <schonberg@gnat.com>
30271
30272 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
30273 removal of abstract operation leaves no possible interpretation for
30274 expression.
30275
30276 * sem_eval.adb (Eval_Qualified_Expression): Use
30277 Set_Raises_Constraint_Error on node when needed, so that it does not
30278 get optimized away by subsequent optimizations.
30279
30280 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
30281 operands even when they are not wrapped in a type conversion.
30282
30283 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
30284
30285 * sem_prag.adb (Set_Exported): Warn about making static as result of
30286 export only when the export is coming from source. This may be not
30287 be true e.g. on VMS where we expand export pragmas for exception codes
30288 together with imported or exported exceptions, and we don't want the
30289 user to be warned about something he didn't write.
30290
30291 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
30292
30293 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
30294 duplication between normal entities and those declared as renamings.
30295 No functional change.
30296
30297 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
30298 inline functions returning an unconstrained result.
30299
30300 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
30301
30302 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
30303 conform to what other front-ends do.
30304
30305 2004-04-08 Doug Rupp <rupp@gnat.com>
30306
30307 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
30308 libraries.
30309
30310 2004-04-06 Pascal Obry <obry@gnat.com>
30311
30312 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
30313
30314 * osint.adb (Program_Name): Do not look past a directory separator.
30315
30316 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
30317
30318 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
30319
30320 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
30321 requirement for preserving a copy of the original assignment node.
30322
30323 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
30324
30325 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
30326
30327 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
30328 when supported.
30329
30330 2004-04-06 Ed Schonberg <schonberg@gnat.com>
30331
30332 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
30333 operator calls in functional notation, and apply
30334 Universal_Interpretation to operands, not to their type.
30335
30336 2004-04-06 Robert Dewar <dewar@gnat.com>
30337
30338 * 5wdirval.adb: Minor reformatting
30339
30340 2004-04-06 Ed Falis <falis@gnat.com>
30341
30342 * gnat_rm.texi: Improve a reference to the GCC manual
30343
30344 2004-04-05 Vincent Celier <celier@gnat.com>
30345
30346 * adaint.h, adaint.c: Add function __gnat_named_file_length
30347
30348 * impunit.adb: Add Ada.Directories to the list
30349
30350 * Makefile.in: Add VMS and Windows versions of
30351 Ada.Directories.Validity package body.
30352
30353 * Makefile.rtl: Add a-direct and a-dirval
30354
30355 * mlib-tgt.ads: Minor comment update.
30356
30357 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
30358 a-direct.ads, a-direct.adb: New files.
30359
30360 2004-04-05 Vincent Celier <celier@gnat.com>
30361
30362 PR ada/13620
30363 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
30364 just to the compiler.
30365
30366 2004-04-05 Robert Dewar <dewar@gnat.com>
30367
30368 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
30369 returned string is 1.
30370
30371 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
30372
30373 * eval_fat.ads: Minor reformatting
30374
30375 * g-curexc.ads: Document that lower bound of returned string values
30376 is always one.
30377
30378 * gnatlink.adb: Add ??? comment for previous change
30379 (need to document why this is VMS specific)
30380
30381 * s-stoele.ads: Minor reformatting
30382
30383 * tbuild.ads: Minor reformatting throughout (new function specs)
30384
30385 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
30386 after WITH.
30387
30388 * scng.adb: Minor reformatting
30389
30390 2004-04-05 Geert Bosch <bosch@gnat.com>
30391
30392 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
30393 (Leading_Part): Still perform truncation to machine number if the
30394 specified radix_digits is greater or equal to machine_mantissa.
30395
30396 2004-04-05 Javier Miranda <miranda@gnat.com>
30397
30398 * par-ch3.adb: Complete documentation of previous change
30399 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
30400 (aliased must appear before constant).
30401
30402 * par-ch4.adb: Complete documentation of previous change.
30403
30404 * par-ch6.adb: Complete documentation of previous change.
30405
30406 * sinfo.ads: Fix typo in commment.
30407
30408 2004-04-05 Ed Schonberg <schonberg@gnat.com>
30409
30410 * sem_ch3.adb (Inherit_Components): If derived type is private and has
30411 stored discriminants, use its discriminants to constrain parent type,
30412 as is done for non-private derived record types.
30413
30414 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
30415 Ada 2005 AI-310: an abstract non-dispatching operation is not a
30416 candidate interpretation in an overloaded call.
30417
30418 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
30419 expression is Null and target type is not an access type (e.g. a
30420 non-private address type).
30421
30422 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
30423
30424 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
30425 statement whose right-hand side is an inlined call, save a copy of the
30426 original assignment subtree to preserve enough consistency for
30427 Analyze_Assignment to proceed.
30428
30429 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
30430 complete assignment subtree which is now unnecessary, as the expansion
30431 of inlined call has been improved to preserve a consistent assignment
30432 tree. Note_Possible_Modification must be called only
30433 after checks have been applied, or else unnecessary checks will
30434 be generated.
30435
30436 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
30437 of explicit dereferences that do not Come_From_Source:
30438 - be selective on cases where we must go back to the dereferenced
30439 pointer (an assignment to an implicit dereference must not be
30440 recorded as modifying the pointer);
30441 - do not rely on Original_Node being present (Analyze_Assignment
30442 calls Note_Possible_Modification on a copied tree).
30443
30444 * sem_warn.adb (Check_References): When an unset reference to a pointer
30445 that is never assigned is encountered, prefer '<pointer> may be null'
30446 warning over '<pointer> is never assigned a value'.
30447
30448 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
30449
30450 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
30451 the ABI.
30452
30453 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
30454
30455 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
30456 libexc. We currently don't reference anything in this library and
30457 linking it in triggers linker warnings we don't want to see.
30458
30459 * init.c: Update comments.
30460
30461 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30462
30463 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
30464 * utils.c (create_field_decl): Likewise.
30465 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
30466
30467 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
30468
30469 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
30470 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
30471 Add info directory entry and category.
30472
30473 2004-04-02 Jan Hubicka <jh@suse.cz>
30474
30475 * utils.c: Include function.h
30476 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
30477
30478 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
30479
30480 PR ada/14150
30481 * Make-lang.in: Clean up generation of documentation
30482
30483 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
30484
30485 * xgnatug.adb: Removed, replaced by xgnatugn.adb
30486
30487 * xgnatugn.adb: Replaces xgnatug.adb
30488
30489 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
30490
30491 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
30492
30493 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30494 gnat_ug_wnt.texi: Removed.
30495
30496 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
30497
30498 * utils2.c: Update copyright notice.
30499
30500 2004-04-01 Robert Dewar <dewar@gnat.com>
30501
30502 * checks.adb: Minor reformatting throughout
30503 Note that prev checkin added RM reference to alignment warning
30504
30505 2004-04-01 Ed Schonberg <schonberg@gnat.com>
30506
30507 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
30508 non-static when building aggregate for bit-packed array.
30509
30510 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
30511 function call that is itself the actual in a procedure call, build
30512 temporary for it.
30513
30514 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
30515 a string literal, create a temporary for it, constant folding only
30516 handles scalars here.
30517
30518 2004-04-01 Vincent Celier <celier@gnat.com>
30519
30520 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
30521 Error_Msg_SP): New empty procedures to instantiate the Scanner.
30522 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
30523 tokens.
30524 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
30525 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
30526 and get the checksum.
30527
30528 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
30529 already in the Q.
30530 Increase the Marking_Label at the end of the Multiple_Main_Loop,
30531 instead of at the beginning.
30532
30533 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
30534 directly.
30535 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
30536 on VMS.
30537
30538 * osint.ads (Multi_Unit_Index_Character): New Character global variable
30539
30540 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
30541 not '~' directly.
30542
30543 * par.adb: Remove test on file name to detect language defined units.
30544 Add test on unit name, after parsing, to detect language defined units
30545 that are not compiled with -gnatg (except System.RPC and its children)
30546
30547 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
30548 following units without style checking.
30549
30550 * switch-c.adb: Change -gnatC to -gnateI
30551
30552 * usage.adb: Document new switch -gnateInnn
30553
30554 * scng.adb (Accumulate_Token_Checksum): New procedure
30555 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
30556 word or literal number.
30557 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
30558 numbers.
30559
30560 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
30561
30562 * a-tasatt.adb,
30563 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
30564 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
30565 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
30566 5vtpopde.adb: Add missing 'constant' keywords.
30567
30568 2004-04-01 Javier Miranda <miranda@gnat.com>
30569
30570 * par-ch4.adb: (P_Allocator): Code cleanup
30571
30572 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
30573 attribute.
30574
30575 * sinfo.ads: Complete documentation of previous change
30576
30577 2004-04-01 Pascal Obry <obry@gnat.com>
30578
30579 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
30580 only on VMS. This special handling was done because an old GNU/ld bug
30581 on Windows which has been fixed.
30582
30583 2004-04-01 GNAT Script <nobody@gnat.com>
30584
30585 * Make-lang.in: Makefile automatically updated
30586
30587 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30588
30589 * decl.c (gnat_to_gnu_entity, make_type_from_size):
30590 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
30591 * trans.c (tree_transform, convert_with_check): Likewise.
30592 * utils.c (gnat_signed_or_unsigned_type): Likewise.
30593 (build_vms_descriptor, unchecked_convert): Likewise.
30594 * utils2.c (nonbinary_modular_operation): Likewise.
30595
30596 2004-03-29 Javier Miranda <miranda@gnat.com>
30597
30598 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
30599 (Install_Null_Excluding_Check): Local subprogram that determines whether
30600 an access node requires a runtime access check and if so inserts the
30601 appropriate run-time check.
30602 (Apply_Access_Check): Call Install_Null_Excluding check if required
30603 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
30604
30605 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
30606
30607 * einfo.ads: Fix typo in comment
30608
30609 * exp_ch3.adb (Build_Assignment): Generate conversion to the
30610 null-excluding type to force the corresponding run-time check.
30611 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
30612 type to force the corresponding run-time check.
30613
30614 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
30615 the null-excluding type to force the corresponding run-time check.
30616
30617 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
30618 case of access types unless they have the null-excluding attribute.
30619
30620 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
30621 part.
30622
30623 * exp_util.ads: Fix typo in comment
30624
30625 * par.adb (P_Null_Exclusion): New subprogram
30626 (P_Subtype_Indication): New formal that indicates if the null-excluding
30627 part has been scanned-out and it was present
30628
30629 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
30630
30631 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
30632 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
30633 type to force the corresponding run-time check
30634 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
30635 components
30636 (Resolve_Array_Aggregate): Carry out some static checks
30637 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
30638
30639 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
30640 attribute must be set only if specified by means of the null-excluding
30641 part. In addition, we must also propagate the access-constant attribute
30642 if present.
30643 (Access_Subprogram_Declaration, Access_Type_Declaration,
30644 Analyze_Component_Declaration, Analyze_Object_Declaration,
30645 Array_Type_Declaration, Process_Discriminants,
30646 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
30647 and carry out some static checks.
30648 (Build_Derived_Access_Type): Set the null-excluding attribute
30649 (Derived_Type_Declaration, Process_Subtype): Carry out some static
30650 checks.
30651
30652 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
30653
30654 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
30655
30656 * sem_ch6.adb (Process_Formals): Carry out some static checks.
30657 (Set_Actual_Subtypes): Generate null-excluding subtype if the
30658 null-excluding part was present; it is not required to be done here in
30659 case of anonymous access types.
30660 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
30661 value.
30662
30663 * sem_res.adb (Resolve_Actuals): Carry out some static check
30664 (Resolve_Null): Allow null in anonymous access
30665
30666 * sinfo.adb: New subprogram Null_Exclusion_Present
30667 All_Present and Constant_Present available on access_definition nodes
30668
30669 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
30670 object_declaration, derived_type_definition, component_definition,
30671 discriminant_specification, access_to_object_definition,
30672 access_function_definition, allocator, access_procedure_definition,
30673 access_definition, parameter_specification, All_Present and
30674 Constant_Present flags available on access_definition nodes.
30675
30676 2004-03-29 Robert Dewar <dewar@gnat.com>
30677
30678 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
30679 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
30680 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
30681 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
30682 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
30683 sem_prag.adb: Updates to handle multiple units/file
30684
30685 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
30686
30687 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
30688 sem_util.adb: Minor reformatting
30689
30690 * sem_ch12.adb: Add comment for previous change
30691
30692 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
30693
30694 * osint.adb (Executable_Prefix): Set Exec_Name to the current
30695 executable name when not initialized. Otherwise, use its current value.
30696
30697 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
30698 initialize it to another executable name than the current one. This
30699 allows to configure paths for an executable name (gnatmake) different
30700 from the current one (gnatdist).
30701
30702 2004-03-29 Ed Schonberg <schonberg@gnat.com>
30703
30704 * exp_ch6.adb (Expand_Call): A call to a function declared in the
30705 current unit cannot be inlined if it appears in the body of a withed
30706 unit, to avoid order of elaboration problems in gigi.
30707
30708 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
30709 information for protected (wrapper) operation as well, to simplify gdb
30710 use.
30711
30712 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
30713 protected body, indicate that the entity for the generated spec comes
30714 from source, to ensure that references are properly generated for it.
30715 (Build_Body_To_Inline): Do not inline a function that returns a
30716 controlled type.
30717
30718 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
30719 apply convention to homonyms that are declared explicitly.
30720
30721 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
30722 that renames an equality operator and the operands are overloaded,
30723 resolve them with the declared formal types, before rewriting as an
30724 operator.
30725
30726 2004-03-29 GNAT Script <nobody@gnat.com>
30727
30728 * Make-lang.in: Makefile automatically updated
30729
30730 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30731
30732 * memtrack.adb: Log realloc calls, which are treated as free followed
30733 by alloc.
30734
30735 2004-03-25 Vincent Celier <celier@gnat.com>
30736
30737 * prj-makr.adb (Process_Directories): Detect when a file contains
30738 several units. Do not include such files in the config pragmas or
30739 in the naming scheme.
30740
30741 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
30742 Resolve links only when not in Trusted_Mode.
30743 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
30744 Do not resolve links for the display names.
30745
30746 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
30747 resolve links when computing the display names.
30748
30749 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
30750
30751 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
30752 attribute reference does not denote a subtype, it can be any
30753 expression that has a classwide type, potentially after an implicit
30754 dereference. In particular, the prefix can be a view conversion for
30755 a classwide type (for which Is_Object_Reference holds), but it can
30756 also be a value conversion for an access-to-classwide type. In the
30757 latter case, there is an implicit dereference, and the original node
30758 for the prefix does not verify Is_Object_Reference.
30759
30760 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
30761 conversion of a discriminant-dependent component of a mutable object
30762 is one itself.
30763
30764 2004-03-25 Ed Schonberg <schonberg@gnat.com>
30765
30766 * freeze.adb (Freeze_Entity): When an inherited subprogram is
30767 inherited, has convention C, and has unconstrained array parameters,
30768 place the corresponding warning on the derived type declaration rather
30769 than the original subprogram.
30770
30771 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
30772 indication on renaming declaration, if formal has a box and actual
30773 is absent.
30774
30775 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
30776 determine whether to generate an implicit or explicit reference to
30777 the renamed entity.
30778
30779 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
30780 subprogram renaming comes from a defaulted formal subprogram in an
30781 instance.
30782
30783 2004-03-25 Gary Dismukes <dismukes@gnat.com>
30784
30785 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
30786 value expressions to ensure that calls within a component definition
30787 will be checked (since those are evaluated during the record type's
30788 elaboration).
30789
30790 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
30791
30792 * s-tpobop.adb: Code clean up:
30793 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
30794 code.
30795 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
30796
30797 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
30798
30799 * Makefile.in: Clean up in the ravenscar run time.
30800
30801 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30802
30803 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
30804 of No_Strict_Aliasing to build_pointer_type_for_mode.
30805 * utils.c (update_pointer_to): Walk pointer and ref chains.
30806
30807 2004-03-22 Cyrille Comar <comar@act-europe.fr>
30808
30809 * ali.ads: Fix Comment about Dynamic_Elab.
30810
30811 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
30812 Has_RACW, Is_Generic, etc.)
30813 (Output_Object, Gnatls): Take into account ALI files not attached to
30814 an object.
30815
30816 2004-03-22 Vincent Celier <celier@gnat.com>
30817
30818 * gprep.adb: Change all String_Access to Name_Id
30819 (Is_ASCII_Letter): new function
30820 (Double_File_Name_Buffer): New procedure
30821 (Preprocess_Infile_Name): New procedure
30822 (Process_Files): New procedure
30823 (Gnatprep): Check if output and input are existing directories.
30824 Call Process_Files to do the real job.
30825
30826 2004-03-22 Robert Dewar <dewar@gnat.com>
30827
30828 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
30829 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
30830
30831 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
30832
30833 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
30834 case when the source contains only comments.
30835
30836 2004-03-22 Ed Schonberg <schonberg@gnat.com>
30837
30838 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
30839 declaration for a child subprogram body that acts as a spec, indicate
30840 that the entity in the declaration needs debugging information.
30841
30842 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
30843 full view if the subtype is created for a constrained record component;
30844 gigi has enough information to construct the record, and there is no
30845 place in the tree for the declaration.
30846
30847 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
30848 serial number for the dummy body that is built for analysis, to avoid
30849 inconsistencies in the generation of internal names when compiling
30850 with -gnatN.
30851
30852 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
30853
30854 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
30855 object.
30856
30857 2004-03-22 GNAT Script <nobody@gnat.com>
30858
30859 * Make-lang.in: Makefile automatically updated
30860
30861 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30862
30863 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
30864 * trans.c (tree_transform, emit_index_check): Likewise.
30865 * utils.c (build_template): Likewise.
30866 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
30867 (maybe_unconstrained_array, unchecked_convert): Likewise.
30868 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
30869 (build_unary_op): Likewise.
30870 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
30871 (fill_vms_descriptor): Likewise.
30872 (build_call_alloc_dealloc): Likewise.
30873 ALIGN is unsigned.
30874 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
30875
30876 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
30877
30878 PR other/14630
30879 * gnat_ug.texi: Add info directory category and entry.
30880 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30881 gnat_ug_wnt.texi: Regenerate.
30882
30883 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
30884
30885 * ada-tree.h: Update copyright notice.
30886 Minor reformatting.
30887
30888 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
30889
30890 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
30891 as regular exception objects and not as mere integers representing the
30892 condition code. The latter approach required some dynamics to mask off
30893 severity bits, which did not fit well into the GCC table based model.
30894 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
30895 exception data objects. We don't it and it would conflict with the other
30896 external symbol we have to generate for such exceptions.
30897
30898 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
30899 the special code for VMS exceptions, since these are now represented
30900 as regular exceptions objects.
30901
30902 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30903
30904 * decl.c (debug_no_type_hash): Remove.
30905 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
30906 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
30907
30908 2004-03-19 Laurent Guerby <laurent@guerby.net>
30909
30910 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
30911 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
30912
30913 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30914
30915 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
30916 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
30917 (TYPE_RM_SIZE_INT): Directly use type.values.
30918 (TREE_LOOP_ID): Clean up check.
30919 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
30920 TYPE_VALUES, not TYPE_FIELDS.
30921 * trans.c (convert_with_check): Delay access of bounds of basetype
30922 until sure is numeric.
30923
30924 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
30925
30926 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
30927
30928 Code clean up:
30929 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
30930 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
30931 Specific.Set instead of direct call to e.g pthread_setspecific.
30932
30933 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
30934
30935 * adaint.c: Update comments.
30936
30937 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
30938 GNATLIB_SHARED for FreeBSD.
30939
30940 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
30941
30942 * init.c [VxWorks]: Do not fix the stack size for the environment task.
30943 When needed (stack checking) the stack size is retrieved
30944 from the VxWorks kernel.
30945
30946 * Makefile.in: Flag -nostdinc is required when building the run time
30947 for avoiding looking for files in the base compiler.
30948 Add the VxWorks specific version of the package body for
30949 System.Stack_checking.Operations (5zstchop.adb).
30950
30951 * Make-lang.in: Add the object file for
30952 System.Stack_Checking.Operations.
30953
30954 * Makefile.rtl: Add object file for the package
30955 System.Stack_Checking.Operations.
30956
30957 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
30958
30959 * s-stache.ads, s-stache.adb: Move the operations related to stack
30960 checking from this package to package System.Stack_Checking.Operations.
30961 This way, stack checking operations are only linked in the final
30962 executable when using the -fstack-check flag.
30963
30964 2004-03-18 Doug Rupp <rupp@gnat.com>
30965
30966 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
30967 Reorganize ifeq's.
30968
30969 * 5qsystem.ads, 5xcrtl.ads: New files.
30970
30971 2004-03-18 Vincent Celier <celier@gnat.com>
30972
30973 * prj.adb (Reset): Reset hash table Files_Htable
30974
30975 * prj-env.adb (Source_Paths, Object_Paths): New tables.
30976 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
30977 the procedures Add_To_Path_File.
30978 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
30979 making sure that each directory is present only once and, for object
30980 dirs, when a directory already present is added, the duplicate is
30981 removed and the directory is always put as the last in the table.
30982 Write the path files at the end of these accumulations.
30983
30984 * prj-nmsc.adb (Record_Source): Add source file name in hash table
30985 Files_Htable for all sources.
30986
30987 * prj-proc.adb (Process): Remove restrictions between not directly
30988 related extending projects.
30989
30990 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
30991
30992 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
30993 (Find_Sources): Minor speed optimization.
30994
30995 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
30996 parameter Trusted_Mode.
30997
30998 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
30999
31000 * scn.adb (Determine_License): Take into account a degenerated case
31001 when the source contains only comments.
31002
31003 2004-03-18 Ed Schonberg <schonberg@gnat.com>
31004
31005 * sem_warn.adb (Check_References): For a warning on a selected
31006 component that does not come from source, locate an uninitialized
31007 component of the record type to produce a more precise error message.
31008
31009 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
31010
31011 * 3zsoccon.ads: Fix multicast options.
31012
31013 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
31014 in the spec.
31015
31016 2004-03-15 Robert Dewar <dewar@gnat.com>
31017
31018 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
31019 pragma used for a private type.
31020
31021 * lib-xref.adb (Generate_Reference): Do not generate warning if
31022 reference is in a different unit from the pragma Unreferenced.
31023
31024 * 5vtpopde.adb: Minor reformatting
31025 Fix casing of To_Task_ID
31026
31027 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
31028 flag if we have an unchecked conversion to an access type in the same
31029 unit.
31030
31031 2004-03-15 Geert Bosch <bosch@gnat.com>
31032
31033 * a-ngcoty.adb (Modulus): In alternate formula for large real or
31034 imaginary parts, use Double precision throughout.
31035
31036 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
31037 we want to be able to compile run-time with -gnata for testing, but
31038 this may also be instantiated in user code that is compiled with -gnata.
31039
31040 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
31041
31042 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
31043 codes. Having a separate type for this is useful to enforce consistency
31044 throughout the various run-time units.
31045 (Exception_Data): Use Exception_Code for Import_Code.
31046
31047 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
31048 Natural and Integer in various places.
31049 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
31050 with the severity bits masked off.
31051 (Register_VMS_Exception): Handle the additional exception data pointer
31052 argument.
31053
31054 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
31055 component, now reflected by an exported accessor.
31056 (is_handled_by): New routine to compute whether the propagated
31057 occurrence matches some handler choice specification. Extracted out of
31058 get_action_description_for, and expanded to take care of the VMS
31059 specifities.
31060 (get_action_description_for): Use is_handled_by instead of an explicit
31061 complex condition to decide if the current choice at hand catches the
31062 propagated occurrence.
31063
31064 * raise.h (Exception_Code): New type for C.
31065
31066 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
31067 System.Standard_Library.Exception_Code, to allow references from the
31068 pragma import/export expander.
31069
31070 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
31071 New accessors to allow easy access to GNAT exception data
31072 characteristics.
31073 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
31074 redundant Handled_By_Others component, helper for the personality
31075 routine which will now be able to call the appropriate exception data
31076 accessor instead.
31077
31078 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
31079 component of Standard_Exception_Type to be the closest possible to
31080 Exception_Code in System.Standard_Library, that we cannot get at this
31081 point. Expand a ??? comment to notify that this type node should
31082 probably be rewritten later on.
31083
31084 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
31085 registration call to include a pointer to the exception object in the
31086 arguments.
31087
31088 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
31089 instead of int and explicit bitmasks.
31090
31091 2004-03-15 Vincent Celier <celier@gnat.com>
31092
31093 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
31094 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
31095
31096 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
31097 longer needed now that it is in the spec of
31098 System.Tasking.Task_Attributes.
31099
31100 * adaint.h, adaint.c: (__gnat_create_output_file): New function
31101
31102 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
31103
31104 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
31105
31106 * make.adb (Gnatmake): Do not check the executable suffix; it is being
31107 taken care of in Scan_Make_Arg.
31108 (Scan_Make_Arg): Add the executable suffix only if the argument
31109 following -o, in canonical case, does not end with the executable
31110 suffix. When in verbose mode and executable file name does not end
31111 with executable suffix, output the executable name, in canonical case.
31112
31113 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
31114 to avoid warnings when instantiating Ada.Task_Attributes.
31115 Minor reformating.
31116
31117 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
31118 in the correct order.
31119
31120 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
31121 redirect standard output and error to a file for the invocation of the
31122 compiler, then read the file.
31123
31124 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
31125 directory, instead of the Value.
31126 (Find_Source_Dirs): Remove useless code & comments.
31127
31128 2004-03-15 Ed Schonberg <schonberg@gnat.com>
31129
31130 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
31131 tagged type is inherited, and the parent operation is not frozen yet,
31132 force generation of a freeze node for the inherited operation, so the
31133 corresponding dispatch entry is properly initialized.
31134 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
31135 when looking for user-defined equality operation.
31136
31137 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
31138 boolean when locating primitive equality of tagged component.
31139
31140 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
31141 bit-aligned field and the right-hand side a string literal, introduce
31142 a temporary before expanding assignment into a loop.
31143
31144 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
31145 priority in full, to ensure that any expanded subepxressions of it are
31146 elaborated in the scope of the init_proc.
31147
31148 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
31149 after object declaration, skipping over code that may have been
31150 generated for validity checks.
31151
31152 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
31153 discriminants, ignore the known discriminants of its full view, if
31154 any, to check legality.
31155
31156 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
31157 component if type has unknown discriminants.
31158 (Analyze_Private_Extension_Declaration): Discriminant constraint is
31159 null if type has unknown discriminants.
31160
31161 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
31162 for end label when present.
31163
31164 * s-fileio.adb (Open): When called with a C_Stream, use given name for
31165 temporary file, rather than an empty string.
31166
31167 2004-03-15 Ed Falis <falis@gnat.com>
31168
31169 * s-thread.adb: Removed, no longer used.
31170
31171 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31172
31173 * decl.c (target.h): Now include.
31174 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
31175 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
31176 (validate_size): For POINTER_TYPE, get smallest size permitted on
31177 machine.
31178
31179 * fe.h: Sort Einfo decls and add Set_Mechanism.
31180
31181 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
31182 (ada/decl.o): Depends on target.h.
31183
31184 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
31185 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
31186
31187 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
31188
31189 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
31190
31191 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
31192 Insert_Dereference_Action when rewriting an implicit dereference into
31193 an explicit one, this will be taken care of during expansion of the
31194 explicit dereference.
31195 (Expand_N_Slice): Same. Always do the rewriting, even for the case
31196 of non-packed slices, since the dereference action generated by
31197 expansion of the explicit dereference is needed in any case.
31198 (Expand_N_Selected_Component): When rewriting an implicit dereference,
31199 analyze and resolve the rewritten explicit dereference so it is seen
31200 by the expander.
31201 (Insert_Dereference_Action): This procedure is now called only for the
31202 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
31203 dereferences that do not come from source (including explicit
31204 dereferences resulting from rewriting implicit ones), but do not
31205 recursively insert a check for the dereference nodes contained within
31206 the check.
31207 (Insert_Dereference_Action): Clarify and correct comment.
31208
31209 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
31210
31211 PR ada/14131
31212 Move language detection to the top level.
31213 * config-lang.in: Build by default.
31214
31215 2004-03-05 Robert Dewar <dewar@gnat.com>
31216
31217 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
31218
31219 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
31220 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
31221 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
31222 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
31223 unchecked conversion to spec to avoid warnings.
31224
31225 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
31226 to Task_ID
31227
31228 * 7stpopsp.adb: Correct casing in To_Task_ID call
31229
31230 * a-strsea.ads, a-strsea.adb: Minor reformatting
31231
31232 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
31233
31234 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
31235 Adjust Max_Msg_Length to be clearly large enough.
31236
31237 * fe.h: Define In_Same_Source_Unit
31238
31239 * osint.adb: Add pragma Warnings Off to suppress warnings
31240 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
31241 aliasing warnings.
31242
31243 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
31244
31245 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
31246
31247 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
31248
31249 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
31250
31251 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
31252
31253 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
31254 node. We now do generate them for gcc back end.
31255
31256 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
31257 warning.
31258
31259 * sinput-c.adb: Fix bad name in header.
31260 Add pragma Warnings Off to suppress aliasing warning.
31261
31262 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
31263
31264 * snames.h, snames.ads, snames.adb: Add entry for pragma
31265 No_Strict_Aliasing.
31266
31267 2004-03-05 Vincent Celier <celier@gnat.com>
31268
31269 * prj-com.ads: Add hash table Files_Htable to check when a file name
31270 is already a source of another project.
31271
31272 * prj-nmsc.adb (Record_Source): Before recording a new source, check
31273 if its file name is not already a source of another project. Report an
31274 error if it is.
31275
31276 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
31277 source file name, call gnatpp with all the sources of the main project.
31278
31279 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
31280 of file names.
31281
31282 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
31283 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
31284 /RUNTIME_SYSTEM=, converted to --RTS=
31285 /NOTABS, converted to -notabs
31286
31287 2004-03-05 Pascal Obry <obry@gnat.com>
31288
31289 * make.adb: Minor reformatting.
31290
31291 2004-03-05 Ed Schonberg <schonberg@gnat.com>
31292
31293 Part of implemention of AI-262.
31294 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
31295
31296 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
31297 procedure.
31298
31299 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
31300 when component type is a partially constrained class-wide subtype.
31301 (Constrain_Discriminated_Type): If parent type has unknown
31302 discriminants, a constraint is illegal, even if full view has
31303 discriminants.
31304 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
31305 with unknown discriminants whose full view is a discriminated record.
31306
31307 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
31308 flag, to handle properly derivations of tagged types with unknown
31309 discriminants.
31310 (Analyze_Package_Spec, Analyze_Package_Body): Install
31311 Private_With_Clauses before analyzing private part or body.
31312
31313 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
31314 Has_Discriminants can be true for a given type (documentation).
31315
31316 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
31317
31318 * s-restri.ads: Fix license (GPL->GMGPL).
31319
31320 * s-tassta.adb: Minor reformatting.
31321
31322 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31323 by calls to Exit_One_ATC_Level, since additional clean up is performed
31324 by this function.
31325
31326 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31327 by calls to Exit_One_ATC_Level, since additional clean up is performed
31328 by this function.
31329
31330 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31331
31332 * trans.c: Reflect GCC changes to fix bootstrap problem.
31333 Add warning for suspicious aliasing unchecked conversion.
31334
31335 2004-03-05 GNAT Script <nobody@gnat.com>
31336
31337 * Make-lang.in: Makefile automatically updated
31338
31339 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
31340
31341 * ali.adb (Read_Instantiation_Instance): Do not modify the
31342 current_file_num when reading information about instantiations, since
31343 this corrupts files in later references.
31344
31345 2004-03-02 Vincent Celier <celier@gnat.com>
31346
31347 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
31348 before checking if it is read-only.
31349
31350 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
31351 of SRC_DIRS and eliminate duplicates.
31352
31353 * gprcmd.adb: Replace command "path" with command "path_sep" to return
31354 the path separator.
31355 (Usage): Document path_sep
31356
31357 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
31358 C++ compiler. No need for a script.
31359 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
31360 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
31361 subst.
31362
31363 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
31364 where there are Ada sources.
31365 (Set_Ada_Paths): Only add to the include path the source dirs of project
31366 with Ada sources.
31367 (Add_To_Path): Add the Display_Values of the directories, not their
31368 Values.
31369
31370 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
31371 data.
31372
31373 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
31374 is not No_Name.
31375 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
31376 Value is canonicalized.
31377 (Language_Independent_Check): Do not copy Value to Display_Value when
31378 canonicalizing Value.
31379
31380 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
31381 path to find limited with cycles.
31382 (Parse_Single_Project): Use canonical cased path to find the end of a
31383 with cycle.
31384
31385 2004-03-02 Ed Schonberg <schonberg@gnat.com>
31386
31387 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
31388 and not a child unit.
31389
31390 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
31391 appear in a with_clause.
31392
31393 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
31394 only happen in type_annotate mode, do not try to elaborate it.
31395
31396 * exp_util.adb (Force_Evaluation): If expression is a selected
31397 component on the left of an assignment, use a renaming rather than a
31398 temporary to remove side effects.
31399
31400 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
31401 inlined instance body, which is analyzed before the end of the
31402 enclosing scope.
31403
31404 2004-03-02 Robert Dewar <dewar@gnat.com>
31405
31406 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
31407 sem_ch4.adb: Use new feature for substitution of keywords in VMS
31408
31409 * errout.ads, errout.adb: Implement new circuit for substitution of
31410 keywords in VMS.
31411
31412 * sem_case.adb (Analyze_Choices): Place message properly when case is
31413 a subtype reference rather than an explicit range.
31414
31415 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
31416
31417 2004-03-02 Doug Rupp <rupp@gnat.com>
31418
31419 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
31420
31421 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
31422
31423 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
31424
31425 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31426
31427 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
31428 BLKmode bitfield.
31429
31430 2004-02-25 Robert Dewar <dewar@gnat.com>
31431
31432 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31433 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
31434 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
31435 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
31436 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
31437 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
31438 the defining instance of the type to avoid aliasing problems.
31439 Fix copyright header. Fix bad comments in package header.
31440
31441 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
31442
31443 2004-02-25 Ed Schonberg <schonberg@gnat.com>
31444
31445 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
31446 rewritten as references when aliased through an address clause.
31447
31448 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
31449 whether call can be interpreted as an indirect call to the result of a
31450 parameterless function call returning an access subprogram.
31451
31452 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
31453
31454 Code clean up:
31455 * exp_ch7.adb (Make_Clean): Remove generation of calls to
31456 Unlock[_Entries], since this is now done by Service_Entries directly.
31457
31458 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
31459
31460 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
31461 Requeue_Call for better code readability. Change spec and update calls:
31462 PO_Service_Entries now unlock the PO on exit.
31463 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
31464 PO_Service_Entries.
31465
31466 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
31467
31468 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
31469
31470 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
31471
31472 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
31473 protected subprogram call and analyzing the result of such expanding
31474 in case when the called protected subprogram is eliminated.
31475
31476 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
31477 names.
31478
31479 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
31480
31481 * Makefile.in: Clean ups.
31482
31483 2004-02-23 Ed Schonberg <schonberg@gnat.com>
31484
31485 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
31486 protected operations if original subprogram is flagged as eliminated.
31487 (Expand_N_Subprogram_Body): For a protected operation, create
31488 discriminals for next operation before checking whether the operation
31489 is eliminated.
31490
31491 * exp_ch9.adb (Expand_N_Protected_Body,
31492 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
31493 for internal protected operations if the original subprogram is
31494 eliminated.
31495
31496 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
31497 declared in a single protected object.
31498
31499 2004-02-23 Vincent Celier <celier@gnat.com>
31500
31501 * prj-attr.adb: Make attribute Builder'Executable an associative array,
31502 case insensitive if file names are case insensitive, instead of a
31503 standard associative array.
31504
31505 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
31506 them as case insensitive on platforms where the file names are case
31507 sensitive.
31508
31509 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
31510 project file has already been parsed that canonical path are compared.
31511
31512 2004-02-23 Robert Dewar <dewar@gnat.com>
31513
31514 * sinput-c.ads: Correct bad unit title in header
31515
31516 * freeze.adb: Minor reformatting
31517
31518 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31519
31520 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
31521 nonaddressable COMPONENT_REF that is removing padding that we are
31522 taking the address of, take the address of the padded record instead
31523 if item is variable size.
31524
31525 2004-02-20 Robert Dewar <dewar@gnat.com>
31526
31527 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
31528
31529 2004-02-20 Ed Schonberg <schonberg@gnat.com>
31530
31531 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
31532 itype references for the constrained designated type of a component
31533 whose base type is already frozen.
31534
31535 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
31536
31537 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
31538 avoid GCC warnings.
31539
31540 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
31541
31542 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
31543 identifier for a phantom package that rewrites the formal package
31544 declaration with a box. The Add semantic decorations for the defining
31545 identifier from the original node (that represents the formal package).
31546
31547 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
31548
31549 * Make-lang.in (ada/stamp-sdefault): Use the top level
31550 move-if-change.
31551
31552 2004-02-19 Richard Henderson <rth@redhat.com>
31553
31554 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
31555
31556 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
31557
31558 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
31559 Scan_ALI can be used for multiple ALI files without reinitializing
31560 between calls.
31561
31562 2004-02-18 Robert Dewar <dewar@gnat.com>
31563
31564 * debug.adb: Minor reformatting.
31565
31566 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31567
31568 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
31569 to zero if there is an address clause.
31570
31571 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
31572
31573 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
31574
31575 2004-02-18 Gary Dismukes <dismukes@gnat.com>
31576
31577 * layout.adb (Layout_Component_List): Revise generation of call to
31578 discriminant-checking function to pass selections of all of the type's
31579 discriminants rather than just the variant-controlling discriminant.
31580
31581 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
31582
31583 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
31584 fail in the current setup and triggers spurious system error messages.
31585 Pretend it occurred and failed instead.
31586
31587 2004-02-18 Vincent Celier <celier@gnat.com>
31588
31589 * bld.adb: Mark FLDFLAGS as saved
31590 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
31591 it is not the root project. Put each directory to be
31592 extended between double quotes to prevent it to be expanded on Windows.
31593 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
31594 the project file. Set them back to their initial values if they have not
31595 been set in the project file.
31596
31597 * gprcmd.adb: (Gprdebug, Debug): New global variables
31598 (Display_Command): New procedure
31599 (Usage): Document new command "linkopts"
31600 Call Display_Command when env var GPRDEBUG has the value "TRUE"
31601 Implement new command "linkopts"
31602 Remove quotes that may be around arguments for "extend"
31603 Always call Normalize_Pathname with arguments formatted for the platform
31604
31605 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
31606 Change @echo to @$(display) in target clean to be able to clean silently
31607
31608 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
31609
31610 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
31611 canonical case.
31612
31613 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
31614 = Extending_All when current project is an extending all project.
31615
31616 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
31617 set to True only for LINK command, after Unix switch -o.
31618 (Process_Arguments): Set Output_File_Expected to True for LINK command
31619 after Unix switch -o. When Output_File_Expected is True, never add an
31620 extension to a file name.
31621
31622 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
31623 option file name, only to the --for-linker= switch.
31624 (Option_File_Name): If option file name do not end with ".opt", append
31625 "/OPTIONS".
31626
31627 2004-02-18 GNAT Script <nobody@gnat.com>
31628
31629 * Make-lang.in: Makefile automatically updated
31630
31631 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
31632
31633 * Make-lang.in (stamp-sdefault): Do not depend on
31634 move-if-change.
31635
31636 2004-02-12 Zack Weinberg <zack@codesourcery.com>
31637
31638 * config-lang.in: Disable Ada by default until probe logic for
31639 a bootstrap Ada compiler can be moved to the top level configure
31640 script.
31641
31642 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
31643
31644 * decl.c (components_to_record): Don't claim that the internal fields
31645 we make to hold the variant parts are semantically addressable, because
31646 they are not.
31647
31648 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
31649 adjust the comment describing the modular type form when we can use it.
31650 (Install_PAT): Account for the Esiz renaming.
31651
31652 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
31653 sc_onstack context indication before raising the exception to which
31654 the signal is mapped. Allows better handling of later signals possibly
31655 triggered by the resumed user code if the exception is handled.
31656
31657 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
31658
31659 * 5zinit.adb: Removed, no longer used.
31660
31661 2004-02-12 Robert Dewar <dewar@gnat.com>
31662
31663 * ali.adb: Remove separating space between parameters on R line. Makes
31664 format consistent with format used by the binder for Set_Globals call.
31665
31666 * atree.ads, atree.adb: Minor reformatting (new function header format)
31667
31668 * bindgen.adb: Add Run-Time Globals documentation section containing
31669 detailed documentation of the globals passed from the binder file to
31670 the run time.
31671
31672 * gnatls.adb: Minor reformatting
31673
31674 * init.c (__gnat_set_globals): Add note pointing to documentation in
31675 bindgen.
31676
31677 * lib-writ.ads, lib-writ.adb: Remove separating space between
31678 parameters on R line.
31679 Makes format consistent with format used by the binder for Set_Globals
31680 call.
31681
31682 * osint.ads: Add 2004 to copyright notice
31683 Minor reformatting
31684
31685 * snames.ads: Correct capitalization of FIFO_Within_Priorities
31686 Noticed during code reading, documentation issue only
31687
31688 * usage.adb: Remove junk line for obsolete C switch
31689 Noticed during code reading
31690
31691 2004-02-12 Vincent Celier <celier@gnat.com>
31692
31693 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
31694 extend for each directory, so that multiple /** directories are
31695 extended individually.
31696 (Recursive_Process): Set the default for LANGUAGES to ada
31697
31698 * gprcmd.adb: Define new command "ignore", to do nothing.
31699 Implement new comment "path".
31700
31701 * Makefile.generic: Suppress output when SILENT is set
31702 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
31703 used, so that the correct compiler is invoked.
31704 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
31705 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
31706
31707 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
31708
31709 * Makefile.in: Clean ups and remove obsolete targets.
31710
31711 2004-02-12 Ed Schonberg <schonberg@gnat.com>
31712
31713 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
31714 predicate declared in exp_util.
31715
31716 * exp_util.adb: Add comments.
31717
31718 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
31719 visibility before compiling context of the subunit.
31720
31721 * sem_res.adb (Check_Parameterless_Call): If the context expects a
31722 value but the name is a procedure, do not attempt to analyze as a call,
31723 in order to obtain more telling diagnostics.
31724
31725 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
31726 'Access on parameterless function calls.
31727 (Normalize_Actuals): For a parameterless function call with missing
31728 actuals, defer diagnostic until resolution of enclosing call.
31729
31730 * sem_util.adb (Wrong_Type): If the context type is an access to
31731 subprogram and the expression is a procedure name, suggest a missing
31732 'attribute.
31733
31734 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
31735 Nathanael Nerode <neroden@gcc.gnu.org>
31736
31737 PR ada/6637
31738 PR ada/5911
31739 Merge with libada-branch:
31740 * config-lang.in: Build libada only when ada is built.
31741
31742 2004-02-09 Ed Schonberg <schonberg@gnat.com>
31743
31744 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
31745 for a tagged type, verify that both formals have the same type.
31746
31747 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
31748 temporary when the formal is an in-parameter and the actual a possibly
31749 unaligned slice.
31750
31751 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
31752 when expansion is disabled, to ensure proper name capture with
31753 overloaded literals. Condition can be of any boolean type, resolve
31754 accordingly.
31755
31756 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
31757 renaming is for a formal subprogram with a default operator name, and
31758 there is a usable operator that is visible at the point of
31759 instantiation.
31760
31761 2004-02-09 Robert Dewar <dewar@gnat.com>
31762
31763 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
31764 rewrite to ignore errors in ali files, intended to allow tools downward
31765 compatibility with new versions of ali files.
31766
31767 * ali.ads: Add new parameter Ignore_Errors
31768
31769 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
31770 duplicating the error message giving the file with restrictions.
31771
31772 * debug.adb: Add debug flag I for gnatbind
31773
31774 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
31775 operators for the case where the operator is a defining operator.
31776
31777 * exp_ch3.adb: Minor reformatting (new function spec format).
31778
31779 * exp_ch4.adb: Add comment for previous change, and make minor
31780 adjustment to loop to always check for improper loop termination.
31781 Minor reformatting throughout (new function spec format).
31782
31783 * gnatbind.adb: Implement -di debug flag for gnatbind
31784
31785 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
31786
31787 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
31788
31789 * lib-load.adb: Fix bad assertion.
31790 Found by testing and code reading.
31791 Minor reformatting.
31792
31793 * lib-load.ads: Minor reformatting.
31794
31795 * lib-writ.adb: There is only one R line now.
31796
31797 * lib-writ.ads: Add documentation on making downward compatible changes
31798 to ali files so old tools work with new ali files.
31799 There is only one R line now.
31800 Add documentation on format incompatibilities (with special GPS note)
31801
31802 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
31803
31804 * par-load.adb: Minor reformatting
31805
31806 * sem_ch8.adb: Fix to error message from last update
31807 Minor reformatting and restructuring of code from last update
31808
31809 * par-prag.adb, snames.adb, snames.ads, snames.h,
31810 sem_prag.adb: Implement pragma Profile.
31811
31812 * stylesw.adb: Implement -gnatyN switch to turn off all style check
31813 options.
31814
31815 * usage.adb: Add line for -gnatyN switch
31816
31817 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
31818
31819 2004-02-09 Albert Lee <lee@gnat.com>
31820
31821 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
31822
31823 2004-02-09 Ed Schonberg <schonberg@gnat.com>
31824
31825 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
31826 slices.
31827
31828 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
31829 is nested in an instance that is not frozen yet, to avoid
31830 order-of-elaboration problems in gigi.
31831
31832 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
31833 body the attribute is legal.
31834
31835 2004-02-09 Robert Dewar <dewar@gnat.com>
31836
31837 * s-rident.ads: Minor comment correction
31838
31839 * targparm.adb: Remove dependence on uintp completely. There was
31840 always a bug in Make in that it called Targparm before initializing
31841 the Uint package. The old code appeared to get away with this, but
31842 the new code did not! This caused an assertion error in gnatmake.
31843
31844 * targparm.ads: Fix bad comment, restriction pragmas with parameters
31845 are indeed fully supported.
31846
31847 2004-02-06 Alan Modra <amodra@bigpond.net.au>
31848
31849 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
31850
31851 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
31852
31853 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
31854 with targetm.calls.promote_prototypes.
31855
31856 2004-02-04 Robert Dewar <dewar@gnat.com>
31857
31858 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
31859 ali.ads, gprcmd.adb: Minor reformatting
31860
31861 * bindgen.adb: Output restrictions string for new style restrictions
31862 handling
31863
31864 * impunit.adb: Add s-rident.ads (System.Rident) and
31865 s-restri (System.Restrictions)
31866
31867 * lib-writ.adb: Fix bug in writing restrictions string (last few
31868 entries wrong)
31869
31870 * s-restri.ads, s-restri.adb: Change name Restrictions to
31871 Run_Time_Restrictions to avoid conflict with package name.
31872 Add circuit to read and acquire run time restrictions.
31873
31874 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
31875
31876 * restrict.ads, restrict.adb: Use the new restriction
31877 No_Task_Attributes_Package instead of the old No_Task_Attributes.
31878
31879 * sem_prag.adb: No_Task_Attributes is a synonym of
31880 No_Task_Attributes_Package.
31881
31882 * snames.ads, snames.adb: New entry for proper handling of
31883 No_Task_Attributes.
31884
31885 * s-rident.ads: Adding restriction No_Task_Attributes_Package
31886 (AI-00249) that supersedes the GNAT specific restriction
31887 No_Task_Attributes.
31888
31889 2004-02-04 Ed Schonberg <schonberg@gnat.com>
31890
31891 * sem_prag.adb:
31892 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
31893 body, an identifier may be wrapped in an unchecked conversion.
31894
31895 2004-02-04 Vincent Celier <celier@gnat.com>
31896
31897 * lib-writ.ads: Comment update for the W lines
31898
31899 * bld.adb: (Expression): An empty string list is static
31900
31901 * fname-uf.adb: Minor comment update
31902
31903 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
31904
31905 * gnatbind.adb: Initialize Cumulative_Restrictions with the
31906 restrictions on the target.
31907
31908 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
31909
31910 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
31911 gen_rtx.
31912
31913 2004-02-02 Arnaud Charlet <charlet@gnat.com>
31914
31915 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
31916
31917 2004-02-02 Vincent Celier <celier@gnat.com>
31918
31919 * gprcmd.adb (Check_Args): If condition is false, print the invoked
31920 comment before the usage.
31921 Gprcmd: Fail when command is not recognized.
31922 (Usage): Document command "prefix"
31923
31924 * g-md5.adb (Digest): Process last block.
31925 (Update): Do not process last block. Store remaining characters and
31926 length in Context.
31927
31928 * g-md5.ads (Update): Document that several call to update are
31929 equivalent to one call with the concatenated string.
31930 (Context): Add fields to allow new Update behaviour.
31931
31932 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
31933 defaulted to False.
31934 When May_Fail is True and no existing file can be found, return No_File.
31935
31936 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
31937 functions.
31938
31939 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
31940 spec file name instead on the W line.
31941
31942 2004-02-02 Robert Dewar <dewar@gnat.com>
31943
31944 * ali.adb: Read and acquire info from new format restrictions lines
31945
31946 * bcheck.adb: Add circuits for checking restrictions with parameters
31947
31948 * bindgen.adb: Output dummy restrictions data
31949 To be changed later
31950
31951 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
31952 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
31953 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
31954 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
31955 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
31956
31957 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
31958 the warning message on access to possibly uninitialized variable S)
31959 Minor changes for new restrictions handling.
31960
31961 * gnatbind.adb: Minor reformatting
31962 Minor changes for new restrictions handling
31963 Move circuit for -r processing here from bcheck (cleaner)
31964
31965 * gnatcmd.adb, gnatlink.adb: Minor reformatting
31966
31967 * lib-writ.adb: Output new format restrictions lines
31968
31969 * lib-writ.ads: Document new R format lines for new restrictions
31970 handling.
31971
31972 * s-restri.ads/adb: New files
31973
31974 * Makefile.rtl: Add entry for s-restri.ads/adb
31975
31976 * par-ch3.adb: Fix bad error messages starting with upper case letter
31977 Minor reformatting
31978
31979 * restrict.adb: Major rewrite throughout for new restrictions handling
31980 Major point is to handle restrictions with parameters
31981
31982 * restrict.ads: Major changes in interface to handle restrictions with
31983 parameters. Also generally simplifies setting of restrictions.
31984
31985 * snames.ads/adb: New entry for proper handling of No_Requeue
31986
31987 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
31988 restriction counting.
31989 Other minor changes for new restrictions handling
31990
31991 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
31992 Restriction_Warnings now allows full parameter notation
31993 Major rewrite of Restrictions for new restrictions handling
31994
31995 2004-02-02 Javier Miranda <miranda@gnat.com>
31996
31997 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
31998 syntax rule for object renaming declarations.
31999 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
32000 component definitions.
32001
32002 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
32003 components.
32004 (Array_Type_Declaration): Give support to access components. In addition
32005 it was also modified to reflect the name of the object in anonymous
32006 array types. The old code did not take into account that it is possible
32007 to have an unconstrained anonymous array with an initial value.
32008 (Check_Or_Process_Discriminants): Allow access discriminant in
32009 non-limited types.
32010 (Process_Discriminants): Allow access discriminant in non-limited types
32011 Initialize the new Access_Definition field in N_Object_Renaming_Decl
32012 node. Change Ada0Y to Ada 0Y in comments
32013
32014 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
32015 equality operators.
32016 Change Ada0Y to Ada 0Y in comments
32017
32018 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
32019 renamings Change Ada0Y to Ada 0Y in comments
32020
32021 * sem_type.adb (Find_Unique_Type): Give support to the equality
32022 operators for universal access types
32023 Change Ada0Y to Ada 0Y in comments
32024
32025 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
32026
32027 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
32028 field.
32029 (N_Object_Renaming_Declaration): Addition of Access_Definition field
32030 Change Ada0Y to Ada 0Y in comments
32031
32032 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
32033 component definition and object renaming nodes
32034 Change Ada0Y to Ada 0Y in comments
32035
32036 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
32037
32038 * restrict.adb: Use the new restriction identifier
32039 No_Requeue_Statements instead of the old No_Requeue for defining the
32040 restricted profile.
32041
32042 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
32043 No_Requeue_Statements.
32044
32045 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
32046 that supersedes the GNAT specific restriction No_Requeue. The later is
32047 kept for backward compatibility.
32048
32049 2004-02-02 Ed Schonberg <schonberg@gnat.com>
32050
32051 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
32052 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
32053 pragma and fix incorrect ones.
32054
32055 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
32056 warning if the pragma is redundant.
32057
32058 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
32059
32060 * 5staprop.adb: Add missing 'constant' keywords.
32061
32062 * Makefile.in: use consistent value for SYMLIB on
32063 platforms where libaddr2line is supported.
32064
32065 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32066
32067 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
32068 annotating types.
32069
32070 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
32071
32072 * init.c (__gnat_install_handler): Setup an alternate stack for signal
32073 handlers in the environment thread. This allows proper propagation of
32074 an exception on stack overflows in this thread even when the builtin
32075 ABI stack-checking scheme is used without support for a stack reserve
32076 region.
32077
32078 * utils.c (create_field_decl): Augment the head comment about bitfield
32079 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
32080 here, because the former is not accurate enough at this point.
32081 Let finish_record_type decide instead.
32082 Don't make a bitfield if the field is to be addressable.
32083 Always set a size for the field if the record is packed, to ensure the
32084 checks for bitfield creation are triggered.
32085 (finish_record_type): During last pass over the fields, clear
32086 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
32087 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
32088 from DECL_BIT_FIELD.
32089
32090 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
32091
32092 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
32093 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
32094 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
32095
32096 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32097
32098 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
32099
32100 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
32101 (ZCX_By_Default): Likewise.
32102 (Front_End_ZCX_Support): Likewise.
32103
32104 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
32105 (Initialize_Lock): Mark Level unreferenced.
32106 (Sleep): Mark Reason unreferenced.
32107 (Timed_Sleep): Likewise.
32108 (Wakeup): Likewise.
32109 (Exit_Task): Use Result.
32110 (Check_No_Locks): Mark Self_ID unreferenced.
32111
32112 * 5gtasinf.adb (New_Sproc): Make Attr constant.
32113 (Bound_Thread_Attributes): Make Sproc constant.
32114 (New_Bound_Thread_Attributes): Likewise.
32115
32116 2004-01-26 Ed Schonberg <schonberg@gnat.com>
32117
32118 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
32119 one-dimensional array an slice assignments, when component type is
32120 controlled.
32121
32122 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
32123 component type is controlled, and control_actions are in effect, use
32124 TSS procedure rather than generating inline code.
32125
32126 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
32127 arrays with controlled components.
32128
32129 2004-01-26 Vincent Celier <celier@gnat.com>
32130
32131 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
32132 command line for the non VMS case.
32133
32134 * gnatlink.adb (Process_Binder_File): When building object file, if
32135 GNU linker is used, put all object paths between quotes, to prevent ld
32136 error when there are unusual characters (such as '!') in the paths.
32137
32138 * Makefile.generic: When there are sources in Ada and the main is in
32139 C/C++, invoke gnatmake with -B, instead of -z.
32140
32141 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
32142 from VMS_Conversion.
32143 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
32144 specification of argument file on the command line.
32145
32146 2004-01-26 Bernard Banner <banner@gnat.com>
32147
32148 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
32149
32150 2004-01-26 Ed Schonberg <schonberg@gnat.com>
32151
32152 * snames.adb: Update copyright notice.
32153 Add info on slice assignment for controlled arrays.
32154
32155 2004-01-23 Robert Dewar <dewar@gnat.com>
32156
32157 * exp_aggr.adb: Minor reformatting
32158
32159 * exp_ch9.adb: Minor code clean up
32160 Minor reformatting
32161 Fix bad character in comment
32162
32163 PR ada/13471
32164 * targparm.adb (Get_Target_Parameters): Give clean abort error on
32165 unexpected end of file, along with more detailed message.
32166
32167 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32168
32169 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
32170 PAT.
32171
32172 * decl.c (copy_alias_set): New function.
32173 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
32174
32175 2004-01-23 Doug Rupp <rupp@gnat.com>
32176
32177 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
32178 lib$${file} in case subsequent character is not a separator.
32179
32180 2004-01-23 Vincent Celier <celier@gnat.com>
32181
32182 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
32183 when the GCC version is at least 3.
32184
32185 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
32186 Remove all "Opt.", to prepare for opt split
32187
32188 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
32189 Extends_All. Set to True when the project parsed is an extending all
32190 project. Fails for importing an extending all project only when the
32191 imported project is an extending all project.
32192 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
32193 depending on the value of Extends_All returned.
32194
32195 * prj-proc.adb (Process): Check that no project shares its object
32196 directory with a project that extends it, directly or indirectly,
32197 including a virtual project.
32198 Check that no project extended by another project shares its object
32199 directory with another also extended project.
32200
32201 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
32202 Kind = N_With_Clause
32203
32204 * prj-tree.ads: Minor reformatting
32205 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
32206
32207 2004-01-23 Ed Schonberg <schonberg@gnat.com>
32208
32209 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
32210 applies to a type with an incomplete view, use full view in Name of
32211 clause, for consistency with uses of Get_Attribute_Definition_Clause.
32212
32213 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
32214
32215 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
32216 SCHED_RR, since other values are not supported by this policy.
32217 (Initialize): Move initialization of mutex attribute to package
32218 elaboration, to prevent early access to this variable.
32219
32220 * Makefile.in: Remove mention of Makefile.adalib, unused.
32221
32222 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32223 1ssecsta.ads: Removed, unused.
32224
32225 2004-01-21 Javier Miranda <miranda@gnat.com>
32226
32227 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
32228 entity if already built in the current scope.
32229
32230 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
32231 reminder in internal scopes. Required for nested limited aggregates.
32232
32233 2004-01-21 Doug Rupp <rupp@gnat.com>
32234
32235 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
32236 VMS. Replace all occurences of libgnat- and libgnarl- with
32237 libgnat$(hyphen) and libgnarl$(hyphen).
32238 Fixed shared library build problem on VMS.
32239
32240 2004-01-21 Robert Dewar <dewar@gnat.com>
32241
32242 * mlib-prj.adb: Minor reformatting
32243
32244 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
32245
32246 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
32247 'constant' keywords for declaration of pointers that are not modified.
32248
32249 * exp_pakd.adb: Fix English in comment.
32250
32251 2004-01-21 Ed Schonberg <schonberg@gnat.com>
32252
32253 PR ada/10889
32254 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
32255 copy all attributes of the parent, including the foreign language
32256 convention.
32257
32258 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
32259
32260 PR ada/10565
32261 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
32262 for 'delay until' statement.
32263
32264 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
32265
32266 * Make-lang.in: Replace $(docdir) with doc.
32267 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
32268 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
32269 to use consistent MAKEINFO rule.
32270 (ada.man, ada.srcman): Dummy entry.
32271 (ADA_INFOFILES): Define.
32272 (ada.info, ada.srcinfo): New rules.
32273
32274 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
32275
32276 * utils.c: Update copyright notice, missed in previous change.
32277
32278 2004-01-19 Vincent Celier <celier@gnat.com>
32279
32280 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
32281 args if Bind is True. Set First_ALI, if not already done.
32282 (Build_Library): For Stand Alone Libraries, extract from one ALI file
32283 an eventual --RTS switch, for gnatbind, and all backend switches +
32284 --RTS, for linking.
32285
32286 2004-01-19 Robert Dewar <dewar@gnat.com>
32287
32288 * sem_attr.adb, memtrack.adb: Minor reformatting
32289
32290 2004-01-19 Ed Schonberg <schonberg@gnat.com>
32291
32292 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
32293 that rename enumeration literals. This is properly done in sem_eval.
32294
32295 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
32296 to functions that rename enumeration literals.
32297
32298 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
32299 functions that rename enumeration literals.
32300
32301 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
32302
32303 * Make-lang.in (utils.o): Depend on target.h.
32304 * utils.c: Include target.h.
32305 (process_attributes): Use targetm.have_named_sections instead
32306 of ASM_OUTPUT_SECTION_NAME.
32307
32308 2004-01-16 Andreas Jaeger <aj@suse.de>
32309
32310 * Makefile.in: Add $(DESTDIR).
32311
32312 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
32313
32314 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
32315 also when not defining if a Size clause applies. That information is
32316 not to be ignored.
32317
32318 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
32319
32320 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
32321 symbolic links for the shared gnat run time when needed.
32322
32323 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
32324
32325 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
32326 for writing, and terminate with an error message if not.
32327
32328 2004-01-15 Ed Schonberg <schonberg@gnat.com>
32329
32330 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
32331 warning on an access to subprogram in an instance, when the target
32332 type is declared in the same generic unit.
32333 (Eval_Attribute): If 'access is known to fail accessibility check,
32334 rewrite as a raise statement.
32335
32336 2004-01-15 GNAT Script <nobody@gnat.com>
32337
32338 * Make-lang.in: Makefile automatically updated
32339
32340 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
32341
32342 * Make-lang.in (ada.srcextra): Dummy entry.
32343
32344 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
32345
32346 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
32347
32348 2004-01-13 Ed Schonberg <schonberg@gnat.com>
32349
32350 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
32351 components that are initialized with aggregates.
32352
32353 2004-01-13 Vincent Celier <celier@gnat.com>
32354
32355 * gnatlink.adb (Process_Binder_File): To find directory of shared
32356 libgcc, if "gcc-lib" is not a subdirectory, look for the last
32357 subdirectory "lib" in the path of the shared libgnat or libgnarl.
32358
32359 * make.adb (Gnatmake): If GCC version is at least 3, link with
32360 -shared-libgcc, when there is at least one shared library project.
32361
32362 * opt.ads (GCC_Version): New integer constant.
32363
32364 * adaint.c (get_gcc_version): New function.
32365
32366 2004-01-13 Robert Dewar <dewar@gnat.com>
32367
32368 * sem_dist.adb, sem_res.adb, sem_util.adb,
32369 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
32370 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
32371
32372 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
32373
32374 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
32375 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
32376 declarations.
32377
32378 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
32379
32380 * misc.c: Remove trailing spaces.
32381 Update copyright notice missed in previous change.
32382
32383 PR ada/13572
32384 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
32385 prefix/share/make
32386
32387 * Makefile.generic: Update copyright.
32388 Add license notice.
32389
32390 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
32391 of prefix/share/make.
32392
32393 * Makefile.prolog: Update copyright.
32394 Add license notice.
32395
32396 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
32397
32398 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
32399 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
32400 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
32401 instead of String.
32402
32403 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
32404 signature.
32405
32406 2004-01-12 Javier Miranda <miranda@gnat.com>
32407
32408 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
32409 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
32410 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
32411 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
32412 Component_Definition node.
32413
32414 2004-01-12 Ed Falis <falis@gnat.com>
32415
32416 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
32417
32418 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
32419
32420 * link.c: Change default libgnat kind to STATIC for FreeBSD.
32421
32422 2004-01-12 Bernard Banner <banner@gnat.com>
32423
32424 * Makefile.in: map 86numaux to a-numaux for x86_64
32425
32426 2004-01-12 Ed Schonberg <schonberg@gnat.com>
32427
32428 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
32429 generated to rename a generic actual, go to the actual itself, the
32430 subtype is not a user-visible entity.
32431
32432 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
32433 part is a private subtype, reset the visibility of its full view, if
32434 any, to be consistent.
32435
32436 PR ada/13417
32437 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
32438 to use a generic package G as a formal package for another generic
32439 declared within G.
32440
32441 2004-01-12 Robert Dewar <dewar@gnat.com>
32442
32443 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
32444
32445 * usage.adb: Remove mention of obsolete -gnatwb switch
32446 Noticed during code reading
32447
32448 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
32449
32450 * 1ssecsta.adb: Minor changes for -gnatwa warnings
32451
32452 2004-01-12 GNAT Script <nobody@gnat.com>
32453
32454 * Make-lang.in: Makefile automatically updated
32455
32456 2004-01-09 Mark Mitchell <mark@codesourcery.com>
32457
32458 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
32459
32460 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32461
32462 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
32463
32464 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
32465
32466 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
32467 Update comment and copyright date.
32468 * stamp-xgnatug: Delete.
32469
32470 2004-01-05 Robert Dewar <dewar@gnat.com>
32471
32472 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
32473 be modified by the binder generated main program if the -D switch is
32474 used.
32475
32476 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
32477 imported functions (since now we expect this to be done for imported
32478 functions)
32479
32480 * 5vtaprop.adb: Add several ??? for sections requiring more comments
32481 Minor reformatting throughout
32482
32483 * 5zinit.adb: Minor reformatting
32484 Add 2004 to copyright date
32485 Minor changes to avoid -gnatwa warnings
32486 Correct some instances of using OR instead of OR ELSE (noted while
32487 doing reformatting)
32488
32489 * sprint.adb: Minor updates to avoid -gnatwa warnings
32490
32491 * s-secsta.ads, s-secsta.adb:
32492 (SS_Get_Max): New function to obtain high water mark for ss stack
32493 Default_Secondary_Stack is not a constant since it may be modified by
32494 the binder generated main program if the -D switch is used.
32495
32496 * switch-b.adb: New -Dnnn switch for binder
32497
32498 * switch-c.adb:
32499 Make -gnatg imply all warnings currently in -gnatwa
32500
32501 * vms_conv.adb: Minor reformatting
32502 Add 2004 to copyright notice
32503 Add 2004 to printed copyright notice
32504
32505 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
32506 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
32507 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
32508 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
32509 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
32510 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
32511 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
32512 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
32513 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
32514 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
32515 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
32516 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
32517 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
32518 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
32519 checks.adb, clean.adb, cstand.adb, einfo.ads,
32520 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
32521 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
32522 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
32523 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
32524 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
32525 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
32526 Minor reformatting and code clean ups.
32527 Minor changes to prevent -gnatwa warnings
32528
32529 * ali.adb: Minor reformatting and cleanup of code
32530 Acquire new SS indication of secondary stack use from ali files
32531
32532 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
32533 (since now we expect this to be done for imported functions)
32534
32535 * bindgen.adb: Generate call to modify default secondary stack size if
32536 -Dnnn switch given
32537
32538 * bindusg.adb: Add line for new -D switch
32539
32540 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
32541 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
32542 Add circuitry for both records and arrays to avoid gigi
32543 processing if the type involved has non-bit-aligned components
32544
32545 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
32546 N_String_Literal node always references an E_String_Literal_Subtype
32547 entity. This may not be true in the future.
32548 (Possible_Bit_Aligned_Component): Move processing of
32549 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
32550
32551 * exp_ch6.adb (Expand_Thread_Body): Pick up
32552 Default_Secondary_Stack_Size as variable so that we get value modified
32553 by possible -Dnnn binder parameter.
32554
32555 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
32556 (Type_May_Have_Bit_Aligned_Components): New function.
32557
32558 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
32559 (Type_May_Have_Bit_Aligned_Components): New function.
32560
32561 * fe.h: (Set_Identifier_Casing): Fix prototype.
32562 Add declaration for Sem_Elim.Eliminate_Error_Msg.
32563 Minor reformatting.
32564
32565 * freeze.adb (Freeze_Entity): Add RM reference to error message about
32566 importing constant atomic/volatile objects.
32567 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
32568 unless explicit Pure_Function pragma given, to avoid insidious bug of
32569 call to non-pure imported function getting eliminated.
32570
32571 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
32572 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
32573 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
32574 Add 2004 to printed copyright notice
32575
32576 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
32577 stack used.
32578
32579 * Makefile.rtl: Add entry for g-sestin.o
32580 g-sestin.ads: New file.
32581
32582 * mdll.adb: Minor changes to avoid -gnatwa warnings
32583
32584 * mlib-tgt.adb: Minor reformatting
32585
32586 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
32587 New switch Sec_Stack_Used (GNAT, GNATBIND)
32588 Make Default_Secondary_Stack_Size a variable instead of a constant,
32589 so that it can be modified by the new -Dnnn bind switch.
32590
32591 * rtsfind.adb (Load_Fail): Give full error message in configurable
32592 run-time mode if all_errors mode is set. This was not done in the case
32593 of a file not found, which was an oversight.
32594 Note if secondary stack unit is used by compiler.
32595
32596 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
32597 ineffective elaborate all pragmas on non-visible packages (this
32598 happened when a renamed subprogram was called). Now the elaborate all
32599 always goes on the package containing the renaming rather than the one
32600 containing the renamed subprogram.
32601
32602 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
32603 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
32604
32605 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
32606 has an Etype that references an E_String_Literal.
32607 (Eval_String_Literal): Avoid assumption that N_String_Literal node
32608 always references an E_String_Literal_Subtype entity. This may not
32609 be true in the future.
32610
32611 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
32612 pragma location.
32613
32614 * sem_res.adb (Resolve): Specialize msg for function name used in proc
32615 call.
32616
32617 2004-01-05 Ed Falis <falis@gnat.com>
32618
32619 * g-debuti.adb: Replaced direct boolean operator with short-circuit
32620 form.
32621
32622 2004-01-05 Vincent Celier <celier@gnat.com>
32623
32624 * bld.adb: Minor comment updates
32625 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
32626 of Item_Name).
32627
32628 * make.adb (Gnatmake): Special process for files to compile/check when
32629 -B is specified. Fail when there are only foreign mains in attribute
32630 Main of the project file and -B is not specified. Do not skip bind/link
32631 steps when -B is specified.
32632
32633 * makeusg.adb: Document new switch -B
32634
32635 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
32636
32637 * switch-m.adb: (Scan_Make_Switches): Process -B switch
32638
32639 * vms_data.ads: Add new GNAT PRETTY qualifier
32640 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
32641
32642 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32643
32644 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
32645 case.
32646
32647 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
32648 Set_Identifier_Casing.
32649
32650 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
32651 has size that overflows.
32652
32653 2004-01-05 Gary Dismukes <dismukes@gnat.com>
32654
32655 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
32656 -gnatwa warning on static condition.
32657
32658 2004-01-05 Doug Rupp <rupp@gnat.com>
32659
32660 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
32661
32662 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
32663
32664 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
32665 all attributes, including read-only attribute.
32666
32667 2004-01-05 Pascal Obry <obry@gnat.com>
32668
32669 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
32670 library naming scheme.
32671
32672 * mlib-prj.adb (Build_Library): Generate different names for the static
32673 or dynamic version of the GNAT runtime. This is needed to support the
32674 new shared library naming scheme.
32675 (Process_Binder_File): Add detection of shared library in binder file
32676 based on the new naming scheme.
32677
32678 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
32679 scheme for the shared runtime libraries.
32680
32681 * Makefile.in:
32682 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
32683 scheme.
32684 (install-gnatlib): Do not create symlinks for shared libraries.
32685 (gnatlib-shared-default): Idem.
32686 (gnatlib-shared-dual-win32): New target. Not used for now as the
32687 auto-import feature does not support arrays/records.
32688 (gnatlib-shared-win32): Do not create copy for the shared libraries.
32689 (gnatlib-shared-vms): Fix shared runtime libraries names.
32690
32691 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
32692 dependent runtime shared library name.
32693
32694 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
32695
32696 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
32697 than the object.
32698
32699 2004-01-05 Ed Schonberg <schonberg@gnat.com>
32700
32701 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
32702 protected objects when allocator has a subtype indication, not a
32703 qualified expression. Note that qualified expressions may have to be
32704 checked when limited aggregates are implemented.
32705
32706 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
32707 pure, emit warning.
32708 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
32709 subprogram is imported, remove warning.
32710
32711 2004-01-05 Geert Bosch <bosch@gnat.com>
32712
32713 * s-poosiz.adb: Update copyright notice.
32714 (Allocate): Use Task_Lock to protect against concurrent access.
32715 (Deallocate): Likewise.
32716
32717 2004-01-05 Joel Brobecker <brobecker@gnat.com>
32718
32719 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
32720 comment.
32721
32722 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
32723
32724 * gnat_ug.texi: Force a CVS commit by updating copyright.
32725 * gnat_ug_vxw.texi: Regenerate.
32726 * gnat_ug_wnt.texi: Regenerate.
32727 * gnat_ug_vms.texi: Regenerate.
32728 * gnat_ug_unx.texi: Regenerate.
32729
32730 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
32731
32732 * trans.c: Remove uses of "register" specifier in
32733 declarations of local variables.
32734
32735 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
32736
32737 * stamp-xgnatug: New stamp file.
32738 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
32739 (ada/doctools/xgnatug): Add $(build_exeext).
32740 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
32741 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
32742
32743 2003-12-17 Ed Falis <falis@gnat.com>
32744
32745 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
32746 eliminate warning.
32747
32748 * a-exextr.adb: Add context clause for
32749 Ada.Exceptions.Last_Chance_Handler.
32750
32751 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
32752
32753 * cstand.adb (Create_Standard): Change the way how the declaration of
32754 the Duration type is created (making it the same way as it is for all
32755 the other standard types).
32756
32757 2003-12-17 Robert Dewar <dewar@gnat.com>
32758
32759 * s-crtl.ads: Fix header format
32760 Change Pure to Preelaborate
32761
32762 2003-12-17 Ed Schonberg <schonberg@gnat.com>
32763
32764 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
32765 the expression type only if it is declared in the current unit.
32766
32767 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
32768 are universal and already analyzed, as can occur in constrained
32769 subcomponents that depend on discriminants, when one constraint is a
32770 subtype mark.
32771
32772 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
32773 type Any_Fixed is legal as the argument of a conversion, if only one
32774 fixed-point type is in context.
32775
32776 2003-12-17 GNAT Script <nobody@gnat.com>
32777
32778 * Make-lang.in: Makefile automatically updated
32779
32780 2003-12-15 Robert Dewar <dewar@gnat.com>
32781
32782 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
32783 sec stack size.
32784
32785 2003-12-15 Vincent Celier <celier@gnat.com>
32786
32787 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
32788 (Gnatchop): Do not set failure status when reporting the number of
32789 warnings.
32790
32791 2003-12-15 Doug Rupp <rupp@gnat.com>
32792
32793 * s-ctrl.ads: New file.
32794
32795 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
32796
32797 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
32798 (GNATBIND_OBJS): Add ada/s-crtl.o.
32799
32800 * Makefile.in [VMS]: Clean up ifeq rules.
32801
32802 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
32803 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
32804 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
32805 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
32806 s-tasdeb.adb: Update copyright.
32807 Import System.CRTL.
32808 Make minor modifications to use System.CRTL declared functions instead
32809 of importing locally.
32810
32811 2003-12-15 GNAT Script <nobody@gnat.com>
32812
32813 * Make-lang.in: Makefile automatically updated
32814
32815 2003-12-11 Ed Falis <falis@gnat.com>
32816
32817 * 5zinit.adb: Clean up.
32818
32819 * 5zintman.adb (Notify_Exception): replaced case statement with a call
32820 to __gnat_map_signal, imported from init.c to support
32821 signal -> exception mappings that depend on the vxWorks version.
32822
32823 * init.c:
32824 Created and exported __gnat_map_signal to support signal -> exception
32825 mapping that is dependent on the VxWorks version.
32826 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
32827
32828 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
32829
32830 * 5wosinte.ads: Link with -mthreads switch.
32831
32832 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
32833
32834 * init.c (__gnat_install_handler [NetBSD]): Set
32835 __gnat_handler_installed, as done on all other platforms.
32836 Remove duplicated code.
32837
32838 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
32839
32840 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
32841
32842 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
32843
32844 * sinfo.ads: Fix inconsistent example code in comment.
32845
32846 2003-12-11 Robert Dewar <dewar@gnat.com>
32847
32848 * a-tiinau.adb: Add a couple of comments
32849
32850 * sem_ch3.adb: Minor reformatting
32851
32852 * sem_prag.adb:
32853 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
32854 Minor reformatting throughout
32855
32856 2003-12-11 Ed Schonberg <schonberg@gnat.com>
32857
32858 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
32859 bounds of a loop, create a separate block in order to generate proper
32860 cleanup actions to prevent memory leaks.
32861
32862 * sem_res.adb (Resolve_Call): After a call to
32863 Establish_Transient_Scope, the call may be rewritten and relocated, in
32864 which case no further processing is needed.
32865
32866 * sem_util.adb: (Wrong_Type): Refine previous fix.
32867 Fixes ACATS regressions.
32868
32869 PR ada/13353
32870 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
32871 be inlined.
32872
32873 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
32874
32875 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
32876 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
32877 obsolete files.
32878
32879 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
32880 (rts-zfp): Ditto.
32881
32882 2003-12-08 Robert Dewar <dewar@gnat.com>
32883
32884 * 7sintman.adb: Minor reformatting
32885
32886 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
32887 standard linker options to get standard libraries linked. We now plan
32888 to provide dummy versions of these libraries to match the appropriate
32889 configurable run-time (e.g. if a library is not needed at all, provide
32890 a dummy empty library).
32891
32892 * targparm.ads: Configurable_Run_Time mode no longer affects linker
32893 options (-L parameters and standard libraries). What we plan to do is
32894 to provide dummy libraries where the libraries are not required.
32895
32896 * gnatbind.adb: Minor comment improvement
32897
32898 2003-12-08 Javier Miranda <miranda@gnat.com>
32899
32900 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
32901 aggregate in the parent. Otherwise constants with limited aggregates
32902 are not supported. Add new formal to pass the component type (Ctype).
32903 It is required to call the corresponding IP subprogram in case of
32904 default initialized components.
32905 (Gen_Assign): In case of default-initialized component, generate a
32906 call to the IP subprogram associated with the component.
32907 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
32908 of aggregate with default initialized components.
32909 (Has_Default_Init_Comps): Improve implementation to recursively check
32910 all the present expressions.
32911
32912 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
32913 to indicate that the initialization call corresponds to a
32914 default-initialized component of an aggregate.
32915 In case of default initialized aggregate with tasks this parameter is
32916 used to generate a null string (this is just a workaround that must be
32917 improved later). In case of discriminants, this parameter is used to
32918 generate a selected component node that gives access to the discriminant
32919 value.
32920
32921 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
32922 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
32923 allocated aggregates with default-initialized components.
32924
32925 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
32926 the box notation is used in positional aggregates.
32927
32928 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
32929
32930 * lib.ads: Fix typo in comment
32931
32932 2003-12-08 Vincent Celier <celier@gnat.com>
32933
32934 * prj.adb (Project_Empty): New component Unkept_Comments
32935 (Scan): Remove procedure; moved to Prj.Err.
32936
32937 * prj.ads (Project_Data): New Boolean component Unkept_Comments
32938 (Scan): Remove procedure; moved to Prj.Err.
32939
32940 * prj-dect.adb: Manage comments for the different declarations.
32941
32942 * prj-part.adb (With_Record): New component Node
32943 (Parse): New Boolean parameter Store_Comments, defaulted to False.
32944 Set the scanner to return ends of line and comments as tokens, if
32945 Store_Comments is True.
32946 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
32947 comments are associated with these nodes. Store the node IDs in the
32948 With_Records.
32949 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
32950 With_Records.
32951 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
32952 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
32953 current project. Call Tree.Restore afterwards. Set the various nodes
32954 for comment storage (Next_End, End_Of_Line, Previous_Line,
32955 Previous_End).
32956
32957 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
32958 defaulted to False.
32959
32960 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
32961 to False. When Truncated is True, truncate the string, never go to the
32962 next line.
32963 (Write_End_Of_Line_Comment): New procedure
32964 (Print): Process comments for nodes N_With_Clause,
32965 N_Package_Declaration, N_String_Type_Declaration,
32966 N_Attribute_Declaration, N_Typed_Variable_Declaration,
32967 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
32968 Process nodes N_Comment.
32969
32970 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
32971 without comments and there are some comments, set the flag
32972 Unkept_Comments to True.
32973 (Scan): If there are comments, set the flag Unkept_Comments to True and
32974 clear the comments.
32975 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
32976 (Next_End_Nodes: New table
32977 (Comment_Zones_Of): New function
32978 (Scan): New procedure; moved from Prj. Accumulate comments in the
32979 Comments table and set end of line comments, comments after, after end
32980 and before end.
32981 (Add_Comments): New procedure
32982 (Save, Restore, Seset_State): New procedures
32983 (There_Are_Unkept_Comments): New function
32984 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
32985 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
32986 procedures.
32987 (First_Comment_After, First_Comment_After_End): New functions
32988 (First_Comment_Before, First_Comment_Before_End): New functions
32989 (Next_Comment): New function
32990 (End_Of_Line_Comment, Follows_Empty_Line,
32991 Is_Followed_By_Empty_Line): New functions
32992 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
32993 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
32994 (Set_Next_Comment): New procedure
32995 (Default_Project_Node): Associate comment before if the node can store
32996 comments.
32997
32998 * scans.ads (Token_Type): New enumeration value Tok_Comment
32999 (Comment_Id): New global variable
33000
33001 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
33002 defaulted to False.
33003 (Scan): Store position of start of comment. If comments are tokens, set
33004 Comment_Id and set Token to Tok_Comment when scanning a comment.
33005 (Set_Comment_As_Token): New procedure
33006
33007 * sinput-p.adb: Update Copyright notice
33008 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
33009 that no longer exists.
33010
33011 2003-12-08 Javier Miranda <miranda@gnat.com>
33012
33013 * sem_aggr.adb: Add dependence on Exp_Tss package
33014 Correct typo in comment
33015 (Resolve_Aggregate): In case of array aggregates set the estimated
33016 type of the aggregate before calling resolve. This is needed to know
33017 the name of the corresponding IP in case of limited array aggregates.
33018 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
33019 in case of default initialized array components.
33020
33021 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
33022 types. Required to give support to limited aggregates in generic
33023 formals.
33024
33025 2003-12-08 Ed Schonberg <schonberg@gnat.com>
33026
33027 * sem_ch3.adb (Check_Initialization): For legality purposes, an
33028 inlined body functions like an instantiation.
33029 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
33030 until bounds are analyzed, to diagnose premature use of type.
33031
33032 * sem_util.adb (Wrong_Type): Improve error message when the type of
33033 the expression is used prematurely.
33034
33035 2003-12-08 GNAT Script <nobody@gnat.com>
33036
33037 * Make-lang.in: Makefile automatically updated
33038
33039 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
33040
33041 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
33042 they are automatically generated by Make-lang.in and cause nothing but
33043 maintenance troubles.
33044
33045 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
33046
33047 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
33048 version of this unit).
33049
33050 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
33051
33052 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
33053 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
33054 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
33055 the body of System.Interrupt_Management common to several targets.
33056 Update copyright notice when appropriate.
33057
33058 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
33059 constant.
33060
33061 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
33062 to ensure that the kernel fills in the interrupted context structure
33063 before calling a signal handler, which is necessary to be able to
33064 unwind past it. Update the copyright notice.
33065
33066 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
33067
33068 * a-elchha.ads: New file.
33069
33070 * a-elchha.adb: New default last chance handler. Contents taken from
33071 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
33072
33073 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
33074 is moved to a-elchha.adb to provide a target-independent default last
33075 chance handler.
33076
33077 * Makefile.rtl: Add a-elchha.o
33078
33079 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
33080
33081 2003-12-05 Ed Schonberg <schonberg@gnat.com>
33082
33083 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
33084 declared in an instance, do not inline the call if the instance is not
33085 frozen yet, to prevent order of elaboration problems.
33086
33087 * sem_prag.adb: Add comments for previous fix.
33088
33089 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
33090
33091 * g-table.adb: Use the right variable in Set_Item.
33092 Update copyright notice.
33093
33094 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
33095
33096 * Makefile.in: Remove unused rules.
33097
33098 2003-12-05 Vincent Celier <celier@gnat.com>
33099
33100 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
33101 -nostdlib. Not needed here after all.
33102
33103 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
33104
33105 PR ada/11724
33106 * adaint.h, adaint.c, g-os_lib.ads:
33107 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
33108 on some platforms (including FreeBSD), it is a 64 bit value.
33109 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
33110
33111 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
33112
33113 * gnatvsn.ads (Library_Version): Now contain only the relevant
33114 version info.
33115 (Verbose_Library_Version): New constant.
33116
33117 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
33118 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
33119 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
33120
33121 * gnatlbr.adb: Clean up: replace Library_Version by
33122 Verbose_Library_Version.
33123
33124 * make.adb, lib-writ.adb, exp_attr.adb:
33125 Clean up: replace Library_Version by Verbose_Library_Version.
33126
33127 * 5lintman.adb: Removed.
33128
33129 * Makefile.in:
33130 Update and simplify computation of LIBRARY_VERSION.
33131 Fix computation of GSMATCH_VERSION.
33132 5lintman.adb is no longer used: replaced by 7sintman.adb.
33133
33134 2003-12-03 Robert Dewar <dewar@gnat.com>
33135
33136 * exp_ch5.adb:
33137 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
33138 name. Modified to consider small non-bit-packed arrays as troublesome
33139 and in need of component-by-component assigment expansion.
33140
33141 2003-12-03 Vincent Celier <celier@gnat.com>
33142
33143 * lang-specs.h: Process nostdlib as nostdinc
33144
33145 * back_end.adb: Update Copyright notice
33146 (Scan_Compiler_Arguments): Process -nostdlib directly.
33147
33148 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
33149
33150 * Makefile.in:
33151 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
33152 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
33153 included in HIE_NONE_TARGET_PAIRS.
33154
33155 2003-12-03 Ed Schonberg <schonberg@gnat.com>
33156
33157 * sem_attr.adb:
33158 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
33159 is legal in an instance, because legality is cheched in the template.
33160
33161 * sem_prag.adb:
33162 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
33163 appplied to an unchecked conversion of a formal parameter.
33164
33165 * sem_warn.adb:
33166 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
33167 variables.
33168
33169 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
33170
33171 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
33172 routines. The second one is new functionality to deal with backtracing
33173 through signal handlers.
33174 (unwind): Split into the two separate subroutines above.
33175 Update the documentation, and deal properly with sizeof (REG) different
33176 from sizeof (void*).
33177
33178 2003-12-01 Nicolas Setton <setton@act-europe.fr>
33179
33180 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
33181 so that the debugger can reliably access the value of the parameter,
33182 and therefore is able to display the exception name when an exception
33183 breakpoint is reached.
33184
33185 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
33186
33187 * fmap.adb: Fix typo in warning message.
33188
33189 * g-socket.ads, g-socket.adb: Make Free a visible instance of
33190 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
33191
33192 2003-12-01 Vincent Celier <celier@gnat.com>
33193
33194 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
33195 ther is no Afile.
33196 (Build_Library): Get the switches only if Default_Switches is declared
33197 in package Binder.
33198
33199 2003-12-01 Ed Schonberg <schonberg@gnat.com>
33200
33201 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
33202 actuals that are indexed components, reanalyze actual to ensure that
33203 packed array references are properly expanded.
33204
33205 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
33206 attempted assignment to a discriminant.
33207
33208 2003-12-01 Robert Dewar <dewar@gnat.com>
33209
33210 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
33211 reformatting.
33212
33213 * switch-c.adb: Minor reformatting of comments
33214
33215 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
33216
33217 * Makefile.in: Clean ups.
33218
33219 2003-12-01 GNAT Script <nobody@gnat.com>
33220
33221 * Make-lang.in: Makefile automatically updated
33222
33223 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
33224
33225 * 5wsystem.ads: Disable zero cost exception, not ready yet.
33226
33227 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
33228
33229 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
33230 to force serialization.
33231
33232 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
33233
33234 * g-socket.ads, g-socket.adb:
33235 Clarify documentation of function Stream. Introduce a Free procedure
33236 to release the returned Stream once it becomes unused.
33237
33238 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
33239
33240 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
33241
33242 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
33243 since NT 4 cannot handle timeout values that are too large,
33244 e.g. DWORD'Last - 1.
33245
33246 2003-11-26 Ed Schonberg <schonberg@gnat.com>
33247
33248 * exp_ch4.adb:
33249 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
33250 in procedure calls and whose expansion must be deferred.
33251
33252 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
33253 is in exp_ch4.
33254
33255 * sem_ch3.adb:
33256 (Build_Derived_Array_Type): Create operator for unconstrained type
33257 if ancestor is unconstrained.
33258
33259 2003-11-26 Vincent Celier <celier@gnat.com>
33260
33261 * make.adb (Project_Object_Directory): New global variable
33262 (Change_To_Object_Directory): New procedure
33263 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
33264 of Change_Dir directly. Do not change working directory to object
33265 directory of main project after each compilation.
33266 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
33267 directly.
33268 Change to object directory of main project before binding step.
33269 (Initialize): Initialize Project_Object_Directory to No_Project
33270
33271 * mlib-prj.adb:
33272 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
33273 binding a Stand-Alone Library.
33274
33275 * output.adb: Update Copyright notice
33276 (Write_Char): Output buffer when full
33277
33278 2003-11-26 Robert Dewar <dewar@gnat.com>
33279
33280 * sem_ch13.adb: (Check_Size): Reset size if size is too small
33281
33282 * sem_ch13.ads:
33283 (Check_Size): Fix documentation to include bit-packed array case
33284
33285 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
33286
33287 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
33288
33289 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
33290
33291 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
33292
33293 PR ada/13142
33294 * utils.c (init_gigi_decls): Change name of built-in setjmp to
33295 __builtin_setjmp, since this is apparently needed by recent
33296 non Ada changes.
33297
33298 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33299
33300 * adadecode.c: Only include ctype.h if not IN_GCC.
33301 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
33302
33303 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
33304
33305 * Makefile.in:
33306 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
33307 signals and interrupts.
33308
33309 * 5zintman.ads: New File.
33310
33311 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
33312 add exception signals to the set of unmasked signals.
33313
33314 * 5ztaprop.adb:
33315 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
33316 between signals and interrupts.
33317 Add to Unblocked_Signal_Mask the set of signals that are in
33318 Keep_Unmasked.
33319
33320 * 7sinmaop.adb:
33321 Adding a check to see whether the Interrupt_ID we want to unmask is in
33322 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
33323 reason is that the index type of the Keep_Unmasked array is not always
33324 Interrupt_ID; it may be a subtype of Interrupt_ID.
33325
33326 2003-11-24 Gary Dismukes <dismukes@gnat.com>
33327
33328 * exp_util.adb:
33329 (Remove_Side_Effects): Condition constantness of object created for a
33330 an unchecked type conversion on the constantness of the expression
33331 to ensure the correct value for 'Constrained when passing components
33332 of view-converted class-wide objects.
33333
33334 2003-11-24 Robert Dewar <dewar@gnat.com>
33335
33336 * par-load.adb (Load): Improve handling of misspelled and missing units
33337 Removes several cases of compilation abandoned messages
33338
33339 * lib.adb: (Remove_Unit): New procedure
33340
33341 * lib.ads: (Remove_Unit): New procedure
33342
33343 * lib-load.adb: Minor reformatting
33344
33345 2003-11-24 Vincent Celier <celier@gnat.com>
33346
33347 * make.adb:
33348 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
33349 (Marking_Label): Label to mark processed source files. Incremented for
33350 each executable.
33351 (Gnatmake): Increase Marking_Labet for each executable
33352 (Is_Marked): Compare against marking label
33353 (Mark): Mark with marking label
33354
33355 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
33356
33357 * s-thread.ads:
33358 Move the declaration of the TSD for System.Threads to System.Soft_Links.
33359 Add some comments.
33360
33361 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
33362 (rts-cert): build a single relocatable object for the run-time lib.
33363 Fix perms.
33364
33365 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
33366
33367 * Make-lang.in:
33368 Use gnatls rather than gcc to obtain the location of GNAT RTL for
33369 crosstools build.
33370
33371 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
33372
33373 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
33374 can not use it as before (that is, as a variable) when dumping it into
33375 the tree file. Add a local variable to store the result of this
33376 function and to be used as the string to be written into the tree.
33377
33378 * scn.adb (Initialize_Scanner): Add comments explaining the recent
33379 changes.
33380
33381 * sinput.adb (Source_First, Source_Last): In case of
33382 Internal_Source_File, replace returning attributes of
33383 Internal_Source_Ptr (which is wrong) with returning attributes of
33384 Internal_Source.
33385
33386 2003-11-24 Ed Schonberg <schonberg@gnat.com>
33387
33388 * sem_ch3.adb:
33389 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
33390 used for implicit concatenation operators.
33391 Code cleanup.
33392
33393 * sem_elab.adb:
33394 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
33395 task bodies that are in the scope of a Suppress pragma.
33396 (Check_A Call): Use the flag to prevent spurious elaboration checks.
33397
33398 * sinfo.ads, sinfo.adb:
33399 New flag No_Elaboration_Check on function/procedure calls, to properly
33400 suppress checks on calls in task bodies that are within a local suppress
33401 pragma.
33402
33403 * exp_ch4.adb:
33404 (Expand_Concatenate_Other): Use the proper integer type for the
33405 expression for the upper bound, to avoid universal_integer computations
33406 when possible.
33407
33408 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
33409
33410 * .cvsignore: Delete.
33411
33412 2003-11-21 Andreas Schwab <schwab@suse.de>
33413
33414 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
33415
33416 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
33417
33418 * 5wsystem.ads: Enable zero cost exception.
33419
33420 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
33421
33422 * 5ztiitho.adb: Remove an unreferenced variable.
33423
33424 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
33425
33426 * adaint.c: For FreeBSD, use mkstemp.
33427
33428 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
33429
33430 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
33431
33432 2003-11-21 Robert Dewar <dewar@gnat.com>
33433
33434 * bld.adb: Remove useless USE of gnatvsn
33435
33436 * gnatchop.adb: Minor reformatting
33437 Clean up version handling to be more consistent
33438
33439 * gnatxref.adb: Minor reformatting
33440
33441 * gprcmd.adb: Minor reformatting
33442 Fix output of copyright to be more consistent with other tools
33443
33444 2003-11-21 Vincent Celier <celier@gnat.com>
33445
33446 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
33447
33448 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
33449
33450 * atree.adb (Initialize): Add initializations for global variables
33451 used in New_Copy_Tree.
33452
33453 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
33454 Internal_Source_File as the actual).
33455 Put the set of statements creating Any_Character before the set of
33456 statements creating Any_Array to have Any_Character fully initialized
33457 when it is used in creating Any_Array.
33458
33459 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
33460 not call Scan in case if the actual is Internal_Source_File
33461 Add 2003 to copyright note.
33462
33463 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
33464 processing Internal_Source_File.
33465
33466 * types.ads: Add the constant Internal_Source_File representing the
33467 source buffer for artificial source-code-like strings created within
33468 the compiler (the definition of Source_File_Index is changed).
33469
33470 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
33471
33472 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
33473 56system.ads: New file, FreeBSD version.
33474
33475 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
33476
33477 * Make-lang.in (ada.extraclean): Delete.
33478
33479 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
33480
33481 * gnatmem.adb: Clean up verbose output.
33482
33483 * gprcmd.adb: Change copyright to FSF.
33484
33485 2003-11-19 Vincent Celier <celier@gnat.com>
33486
33487 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
33488 and Version (ignored).
33489
33490 * symbols.ads: (Policy): New type
33491 (Initialize): New parameter Reference, Symbol_Policy and
33492 Library_Version.
33493 Remove parameter Force.
33494 Minor reformatting.
33495
33496 * snames.ads, snames.adbadb: New standard names
33497 Library_Reference_Symbol_File and Library_Symbol_Policy
33498
33499 * mlib-prj.adb:
33500 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
33501 project.
33502
33503 * mlib-tgt.adb:
33504 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
33505
33506 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
33507
33508 * prj.adb: (Project_Empty): New component Symbol_Data
33509
33510 * prj.ads: (Policy, Symbol_Record): New types
33511 (Project_Data): New component Symbol_Data
33512
33513 * prj-attr.adb:
33514 New attributes Library_Symbol_File, Library_Symbol_Policy and
33515 Library_Reference_Symbol_File.
33516
33517 * prj-nmsc.adb:
33518 (Ada_Check): When project is a Stand-Alone library project, process
33519 attribute Library_Symbol_File, Library_Symbol_Policy and
33520 Library_Reference_Symbol_File.
33521
33522 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33523 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
33524 5sml-tgt.adb (Build_Dynamic_Library): New parameter
33525 Symbol_Data (ignored).
33526
33527 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
33528 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
33529 functions Option_File_Name and Version_String. Set new options of
33530 gnatsym related to symbol file, symbol policy and reference symbol
33531 file.
33532
33533 * 5vsymbol.adb:
33534 Extensive modifications to take into account the reference symbol file,
33535 the symbol policy, the library version and to put in the symbol file the
33536 minor and major IDs.
33537
33538 * bld.adb (Process_Declarative_Items): Put second argument of
33539 gprcmd to_absolute between single quotes, to avoid problems with
33540 Windows.
33541
33542 * bld-io.adb: Update Copyright notice.
33543 (Flush): Remove last character of a line, if it is a back slash, to
33544 avoid make problems.
33545
33546 * gnatsym.adb:
33547 Implement new scheme with reference symbol file and symbol policy.
33548
33549 * g-os_lib.ads: (Is_Directory): Clarify comment
33550
33551 2003-11-19 Robert Dewar <dewar@gnat.com>
33552
33553 * atree.adb: Move New_Copy_Tree global variables to head of package
33554
33555 * errout.adb: Minor reformatting
33556
33557 2003-11-19 Javier Miranda <miranda@gnat.com>
33558
33559 * sem_ch4.adb: (Diagnose_Call): Improve error message.
33560 Add reference to Ada0Y (AI-50217)
33561
33562 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
33563 sem_util.adb: Add reference to AI-50217
33564
33565 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
33566
33567 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
33568
33569 * sem_aggr.adb: Complete documentation of AI-287 changes
33570
33571 * par-ch4.adb: Document previous changes.
33572
33573 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
33574 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
33575 Ada0Y (AI-50217)
33576
33577 * exp_aggr.adb: Add references to AI-287 in previous changes
33578
33579 2003-11-19 Ed Schonberg <schonberg@gnat.com>
33580
33581 * exp_ch6.adb:
33582 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
33583 in the rewriting is the result of an inlined call.
33584
33585 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
33586 parameter is a type conversion, use original node to construct the
33587 post-call assignment, because expression may have been rewritten, e.g.
33588 if it is a packed array.
33589
33590 * sem_attr.adb:
33591 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
33592 body, just as it is in an instance.
33593 Categorization routines
33594
33595 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
33596 Instantiate_Object): Set proper sloc reference for message on missing
33597 actual.
33598
33599 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
33600
33601 * Makefile.in: Add FreeBSD libgnat pairs.
33602
33603 * usage.adb: Fix typo in usage message.
33604
33605 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
33606
33607 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
33608 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
33609 pragma Thread_Body.
33610 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
33611
33612 * s-thread.adb: This file is now a dummy implementation of
33613 System.Thread.
33614
33615 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
33616
33617 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
33618
33619 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
33620
33621 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33622 instanciation references in the parent type description.
33623
33624 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33625
33626 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
33627
33628 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
33629 TYPE_PRECISION directly from esize.
33630
33631 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
33632
33633 * cstreams.c:
33634 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
33635
33636 * init.c: Initialization routines for FreeBSD
33637
33638 * link.c: Link info for FreeBSD
33639
33640 * sysdep.c: Add the case of FreeBSD
33641
33642 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
33643
33644 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
33645 already called in System.Threads.
33646
33647 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
33648 environment task, as it has been moved to System.Threads.Initialization.
33649
33650 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
33651
33652 * adaint.c (__gnatlib_install_locks): Only reference
33653 __gnat_install_locks on VMS, since other platforms can avoid using
33654 --enable-threads=gnat
33655
33656 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33657
33658 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
33659
33660 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
33661 TYPE_PACKED_ARRAY_TYPE_P.
33662 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
33663
33664 Part of PR ada/12806
33665 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
33666 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
33667
33668 2003-11-17 Vincent Celier <celier@gnat.com>
33669
33670 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
33671 to False.
33672 Do not set exit status to Failure when Warning is True.
33673 (Gnatchop): Make errors "no compilation units found" and
33674 "no source files written" warnings only.
33675
33676 * make.adb (Gnatmake): When using a project file, set
33677 Look_In_Primary_Dir to False.
33678 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
33679 and Local_Configuration_Pragmas in the project where they are declared
33680 not an extending project which might have inherited them.
33681
33682 * osint.adb (Locate_File): If Name is already an absolute path, do not
33683 look for a directory.
33684
33685 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
33686 -gnats (Check_Syntax) is used, issue only a warning, not an error.
33687
33688 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
33689 in objects of type Variable_Value.
33690
33691 * prj.ads: (Variable_Value): New component Project
33692
33693 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
33694 is in a project extended by Project.
33695
33696 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
33697 Project of Variable_Values to this new parameter value.
33698 (Expression): Set component Project of Variable_Values.
33699 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
33700 Set the component Project in array elements.
33701
33702 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
33703
33704 * errout.adb: (Initialize): Add initialization for error nodes.
33705
33706 * sem_ch12.adb (Initialize): Add missing initializations for
33707 Exchanged_Views and Hidden_Entities.
33708
33709 2003-11-17 Ed Schonberg <schonberg@gnat.com>
33710
33711 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
33712 already instantiated tree for use in subsequent inlining.
33713 (Analyze_Associations, Instantiate_Formal_Subprogram,
33714 Instantiate_Object): improve error message for mismatch in
33715 instantiations.
33716
33717 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
33718 instantiations of subprograms declared in instances.
33719
33720 2003-11-17 Javier Miranda <miranda@gnat.com>
33721
33722 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
33723 executed only under the Extensions_Allowed flag.
33724
33725 2003-11-17 Robert Dewar <dewar@gnat.com>
33726
33727 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
33728 zeroes suppressed.
33729 (Address_Image): Fix bug of returning 0x instead of 0x0
33730 Minor reformatting (function specs).
33731
33732 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
33733 (missed case of 33-63)
33734
33735 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
33736
33737 * s-thread.adb: Add comments for pragma Restriction
33738
33739 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
33740 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
33741
33742 2003-11-17 Ed Falis <falis@gnat.com>
33743
33744 * s-thread.adb: Added No_Tasking restriction for this implementation.
33745
33746 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
33747
33748 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33749 instanciation references in the parent type description.
33750
33751 2003-11-17 GNAT Script <nobody@gnat.com>
33752
33753 * Make-lang.in: Makefile automatically updated
33754
33755 2003-11-16 Jason Merrill <jason@redhat.com>
33756
33757 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
33758 and TAGS files that include them for each front end.
33759
33760 2003-11-14 Andreas Jaeger <aj@suse.de>
33761
33762 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
33763 is the canonical version.
33764 * misc.c (gnat_handle_option): Likewise.
33765
33766 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
33767
33768 * 5nsystem.ads: New file for x86_64-linux-gnu.
33769
33770 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
33771
33772 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
33773
33774 * comperr.adb: Fix logic in previous change.
33775
33776 2003-11-13 Vincent Celier <celier@gnat.com>
33777
33778 * 5bml-tgt.adb (Build_Dynamic_Library): Use
33779 Osint.Include_Dir_Default_Prefix instead of
33780 Sdefault.Include_Dir_Default_Name.
33781
33782 * gnatlbr.adb: Update Copyright notice
33783 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
33784 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
33785 instead of Sdefault.Object_Dir_Default_Name
33786
33787 * gnatlink.adb:
33788 (Process_Binder_File): Never suppress the option following -Xlinker
33789
33790 * mdll-utl.adb:
33791 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
33792 Sdefault.Object_Dir_Default_Name.
33793
33794 * osint.ads, osint.adb:
33795 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
33796 Minor reformatting.
33797
33798 * vms_conv.ads: Minor reformating
33799 Remove GNAT STANDARD and GNAT PSTA
33800
33801 * vms_conv.adb:
33802 Allow GNAT MAKE to have several files on the command line.
33803 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
33804 Sdefault.Object_Dir_Default_Name.
33805 Minor Reformating
33806 Remove data for GNAT STANDARD
33807
33808 * vms_data.ads:
33809 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
33810 Remove data for GNAT STANDARD
33811 Remove options and documentation for -gnatwb/-gnatwB: these warning
33812 options no longer exist.
33813
33814 2003-11-13 Ed Falis <falis@gnat.com>
33815
33816 * 5zthrini.adb: (Init_RTS): Made visible
33817
33818 * 5zthrini.adb:
33819 (Register): Removed unnecessary call to taskVarGet that checked whether
33820 an ATSD was already set as a task var for the argument thread.
33821
33822 * s-thread.adb:
33823 Updated comment to reflect that this is a VxWorks version
33824 Added context clause for System.Threads.Initialization
33825 Added call to System.Threads.Initialization.Init_RTS
33826
33827 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
33828
33829 * 5zthrini.adb:
33830 (Init_RTS): New procedure, for the initialization of the run-time lib.
33831
33832 * s-thread.adb:
33833 Remove dependancy on System.Init, so that this file can be used in the
33834 AE653 sequential run-time lib.
33835
33836 2003-11-13 Robert Dewar <dewar@gnat.com>
33837
33838 * bindgen.adb: Minor reformatting
33839
33840 2003-11-13 Ed Schonberg <schonberg@gnat.com>
33841
33842 * checks.adb:
33843 (Apply_Discriminant_Check): Do no apply check if target type is derived
33844 from source type with no applicable constraint.
33845
33846 * lib-writ.adb:
33847 (Ensure_System_Dependency): Do not apply the style checks that may have
33848 been specified for the main unit.
33849
33850 * sem_ch8.adb:
33851 (Find_Selected_Component): Further improvement in error message, with
33852 RM reference.
33853
33854 * sem_res.adb:
33855 (Resolve): Handle properly the case of an illegal overloaded protected
33856 procedure.
33857
33858 2003-11-13 Javier Miranda <miranda@gnat.com>
33859
33860 * exp_aggr.adb:
33861 (Has_Default_Init_Comps): New function to check the presence of
33862 default initialization in an aggregate.
33863 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
33864 extension aggregate of a limited record. In addition, a new formal
33865 was added to do not initialize the record controller (if any) during
33866 this recursive expansion of ancestors.
33867 (Init_Controller): Add support for limited record components.
33868 (Expand_Record_Aggregate): In case of default initialized components
33869 convert the aggregate into a set of assignments.
33870
33871 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
33872 describing the new syntax.
33873 Nothing else needed to be done because this subprogram delegates part of
33874 its work to P_Precord_Or_Array_Component_Association.
33875 (P_Record_Or_Array_Component_Association): Give support to the new
33876 syntax for default initialization of components.
33877
33878 * sem_aggr.adb:
33879 (Resolve_Aggregate): Relax the strictness of the frontend in case of
33880 limited aggregates.
33881 (Resolve_Record_Aggregate): Give support to default initialized
33882 components.
33883 (Get_Value): In case of default initialized components, duplicate
33884 the corresponding default expression (from the record type
33885 declaration). In case of default initialization in the *others*
33886 choice, do not check that all components have the same type.
33887 (Resolve_Extension_Aggregate): Give support to limited extension
33888 aggregates.
33889
33890 * sem_ch3.adb:
33891 (Check_Initialization): Relax the strictness of the front-end in case
33892 of aggregate and extension aggregates. This test is now done in
33893 Get_Value in a per-component manner.
33894
33895 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
33896 expression corresponds to a limited aggregate. This test is now done
33897 in Get_Value.
33898
33899 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
33900 Box_Present flag.
33901
33902 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
33903 present in an N_Component_Association node
33904
33905 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
33906
33907 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
33908 type-conformant entry only if they are homographs.
33909
33910 2003-11-13 GNAT Script <nobody@gnat.com>
33911
33912 * Make-lang.in: Makefile automatically updated
33913
33914 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33915
33916 * adadecode.c: Use <> form of include for ctype.h.
33917 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
33918
33919 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33920
33921 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
33922 Works around PR middle-end/6552.
33923
33924 2003-11-10 Ed Falis <falis@gnat.com>
33925
33926 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
33927
33928 * 5zinit.adb: (Install_Handler): Moved back to spec
33929 (Install_Signal_Handlers): Deleted
33930
33931 * 5zthrini.adb: Added context clause for System.Storage_Elements
33932 (Register): Only handles creation of taskVar; initialization moved to
33933 Thread_Body_Enter.
33934 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
33935 Added declaration of environment task secondary stack and
33936 initialization.
33937
33938 * s-thread.adb: Implement bodies for thread body processing
33939
33940 * s-thread.ads:
33941 Added comment identifying supported targets for pragma Thread_Body.
33942
33943 2003-11-10 Pascal Obry <obry@gnat.com>
33944
33945 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
33946 GNAT_MAX_PATH_LEN.
33947
33948 * s-fileio.adb:
33949 (Open): Properly check for string length before copying into the buffer.
33950 Raises Name_Error if buffer is too small. Note that this was a potential
33951 buffer overflow.
33952
33953 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
33954
33955 * bindgen.adb, comperr.adb: Code clean ups.
33956 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
33957
33958 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
33959
33960 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
33961
33962 2003-11-10 Vincent Celier <celier@gnat.com>
33963
33964 * gprcmd.adb:
33965 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
33966 installation.
33967
33968 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
33969
33970 * prj.adb: (Project_Empty): Add new boolean component Virtual
33971
33972 * prj.ads: (Virtual_Prefix): New constant string
33973 (Project_Data): New boolean component Virtual
33974
33975 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
33976 a library project is extended by a virtual extending project.
33977
33978 * prj-part.adb:
33979 Modifications throughout to implement extending-all project, including:
33980 (Virtual_Hash, Processed_Hash): New hash tables
33981 (Create_Virtual_Extending_Project): New procedure
33982 (Look_For_Virtual_Projects_For): New procedure
33983
33984 * prj-proc.adb:
33985 (Process): After checking the projects, if main project is an
33986 extending-all project, set the object directory of all virtual extending
33987 project to the object directory of the main project.
33988 Adjust error message when a virtual extending project has the same
33989 object directory as an project being extended.
33990 (Recursive_Process): If name starts with the virtual prefix, set Virtual
33991 to True in the project data.
33992
33993 * prj-tree.adb:
33994 (Default_Project_Node): Add new boolean component Extending_All
33995 (Is_Extending_All): New function
33996 (Set_Is_Extending_All): New procedure
33997
33998 * prj-tree.ads: (Is_Extending_All): New function
33999 (Set_Is_Extending_All): New procedure
34000 (Project_Node_Record): New boolean component Extending_All
34001
34002 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
34003
34004 * vms_data.ads:
34005 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
34006
34007 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
34008 "gprcmd prefix" to define it.
34009
34010 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
34011
34012 * einfo.ads: Fix a typo and remove an extraneous word in comments.
34013
34014 * lib-load.adb:
34015 (Create_Dummy_Package_Unit): Set the scope of the entity for the
34016 created dummy package to Standard_Standard, not to itself, to
34017 defend other parts of the front-end against encoutering a cycle in
34018 the scope chain.
34019
34020 * sem_ch10.adb:
34021 (Analyze_With_Clause): When setting the entities for the successive
34022 N_Expanded_Names that constitute the name of a child unit, do not
34023 attempt to go further than Standard_Standard in the chain of scopes.
34024 This case arises from the placeholder units created by
34025 Create_Dummy_Package_Unit in the case of a with_clause for a
34026 nonexistent child unit.
34027
34028 2003-11-10 Ed Schonberg <schonberg@gnat.com>
34029
34030 * exp_ch6.adb:
34031 (Expand_Thread_Body): Place subprogram on scope stack, so that new
34032 declarations are given the proper scope.
34033
34034 * sem_ch13.adb:
34035 (Check_Expr_Constants): Reject an expression that contains a constant
34036 created during expansion, and that appears after the object to which
34037 the address clause applies.
34038
34039 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
34040 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
34041 that uses 'Range of a function call with controlled components, so
34042 that the function result can be finalized before starting the loop.
34043
34044 * sem_ch8.adb:
34045 (Find_Selected_Component): Improve error message when prefix is
34046 an implicit dereference of an incomplete type.
34047
34048 2003-11-10 Robert Dewar <dewar@gnat.com>
34049
34050 * opt.ads: New Print_Standard flag for -gnatS switch
34051
34052 * sem_ch13.adb: Remove some additional checks for unaligned arrays
34053
34054 * cstand.adb (Create_Standard): Print out package standard if -gnatS
34055 switch set
34056
34057 * debug.adb: Update doc for -gnatds to discuss relationship with new
34058 -gnatS flag
34059
34060 * sinfo.adb: Add new field Entity_Or_Associated_Node
34061
34062 * sinfo.ads: Add new field Entity_Or_Associated_Node
34063 Update documentation for Associated_Node and Entity fields to clarify
34064 relationship and usage.
34065
34066 * sprint.adb:
34067 (Write_Id): Properly process Associated_Node field in generic template
34068
34069 * switch-c.adb:
34070 Recognize new -gnatS switch for printing package Standard
34071 This replaces gnatpsta
34072
34073 * usage.adb:
34074 Add line for new -gnatS switch for printing package Standard
34075 This replaces gnatpsta
34076
34077 2003-11-10 Andreas Jaeger <aj@suse.de>
34078
34079 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
34080 integer.
34081
34082 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34083
34084 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
34085 by gnat1.
34086
34087 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34088
34089 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
34090 no longer needed.
34091
34092 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
34093
34094 * sysdep.c: Add handling of cygwin.
34095
34096 2003-11-10 GNAT Script <nobody@gnat.com>
34097
34098 * Make-lang.in: Makefile automatically updated
34099
34100 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34101
34102 PR 12950
34103 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
34104 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
34105 Replace GNAT_ROOT by GCC_ROOT.
34106
34107 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
34108
34109 2003-11-06 Zack Weinberg <zack@codesourcery.com>
34110
34111 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
34112 and update for changed meaning of GET_MODE_BITSIZE.
34113
34114 2003-11-04 Doug Rupp <rupp@gnat.com>
34115
34116 * sysdep.c: Problem discovered during IA64 VMS port.
34117 [VMS] #include <unixio.h> to get proper prototypes.
34118
34119 * adaint.c:
34120 Issues discovered/problems fixed during IA64 VMS port.
34121 [VMS] #define _POSIX_EXIT for proper semantics.
34122 [VMS] #include <unixio.h> for proper prototypes.
34123 [VMS] (fork): #define IA64 version.
34124 (__gnat_os_exit): Remove unnecessary VMS specific code.
34125
34126 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34127
34128 Part of PR ada/12806
34129 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
34130 tree, not integer.
34131
34132 * decl.c:
34133 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
34134 not integer.
34135
34136 * targtyps.c, decl.c, misc.c,
34137 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
34138 routines to work around change in FP sizing semantics in GCC.
34139
34140 * utils.c:
34141 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
34142
34143 * gigi.h: (enumerate_modes): New function.
34144
34145 * Make-lang.in: (ada/misc.o): Add real.h.
34146
34147 * misc.c: (enumerate_modes): New function.
34148
34149 2003-11-04 Robert Dewar <dewar@gnat.com>
34150
34151 * 3vtrasym.adb: Minor reformatting
34152 Use terminology encoded/decoded name, rather than C++ specific notion
34153 of mangling (this is the terminology used throughout GNAT).
34154
34155 * einfo.h: Regenerated
34156
34157 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
34158
34159 * exp_ch6.adb:
34160 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
34161
34162 * par-prag.adb: Add dummy entry for Thread_Body pragma
34163
34164 * rtsfind.ads:
34165 Add entries for System.Threads entities for thread body processing
34166
34167 * sem_attr.adb:
34168 (Analyze_Pragma, Access attributes): Check these are not applied to a
34169 thread body, since this is not permitted
34170
34171 * sem_prag.adb: Add processing for Thread_Body pragma.
34172 Minor comment fix.
34173
34174 * sem_res.adb:
34175 (Resolve_Call): Check for incorrect attempt to call a thread body
34176 procedure with a direct call.
34177
34178 * snames.ads, snames.adb: Add entry for Thread_Body pragma
34179 Add names associated with thread body expansion
34180
34181 * snames.h: Add entry for Thread_Body pragma
34182
34183 * s-thread.adb: Add entries for thread body processing
34184 These are dummy bodies so far
34185
34186 * s-thread.ads: Add documentation on thread body handling.
34187 Add entries for thread body processing.
34188
34189 2003-11-04 Javier Miranda <miranda@gnat.com>
34190
34191 * sem_ch10.adb:
34192 (Build_Limited_Views): Return after posting an error in case of limited
34193 with_clause on subprograms, generics, instances or generic renamings
34194 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
34195 on subprograms, generics, instances or generic renamings
34196
34197 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
34198
34199 * raise.c (setup_to_install): Correct mistake in last revision; two
34200 arguments out of order.
34201
34202 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
34203 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
34204 notice, missed in previous change.
34205 Remove trailing blanks and other style errors introduced in previous
34206 change.
34207
34208 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
34209
34210 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
34211 rid of the wrapper for a LJM type, ensuring we don't do that if the
34212 field is addressable. This avoids potential low level type view
34213 mismatches later on, for instance in a by-reference argument passing
34214 process.
34215
34216 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34217
34218 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
34219 aligned at byte boundary.
34220
34221 2003-11-04 Joel Brobecker <brobecker@gnat.com>
34222
34223 * decl.c (components_to_record): Do not delete the empty variants from
34224 the end of the union type.
34225
34226 2003-11-04 Ed Schonberg <schonberg@gnat.com>
34227
34228 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
34229 operation for a derived type, an explicit declaration may use a local
34230 subtype of Boolean.
34231
34232 2003-11-04 Vincent Celier <celier@gnat.com>
34233
34234 * make.adb (Gnatmake): Allow main sources on the command line with a
34235 library project when it is only for compilation (no binding or
34236 linking).
34237
34238 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34239
34240 * Makefile.in: Remove many duplicate variables.
34241
34242 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
34243
34244 * Make-lang.in (dvi): Move targets to $(docobjdir).
34245 (gnat_ug_vms.dvi): Simplify rule and adjust target.
34246 (gnat_ug_wnt.dvi): Likewise.
34247 (gnat_ug_unx.dvi): Likewise.
34248 (gnat_ug_vxw.dvi): Likewise.
34249 (gnat_rm.dvi): Likewise.
34250 (gnat-style.dvi): Likewise.
34251
34252 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
34253
34254 * gigi.h: Missed commit from update for C90.
34255
34256 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
34257
34258 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
34259
34260 2003-10-31 Andreas Schwab <schwab@suse.de>
34261
34262 * raise.c (get_action_description_for): Fix typo in last change.
34263
34264 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
34265
34266 PR ada/12761
34267 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
34268 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
34269
34270 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
34271
34272 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
34273 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
34274 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
34275 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
34276 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
34277
34278 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
34279
34280 * 3vtrasym.adb:
34281 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
34282 numbers when symbol name is too long.
34283
34284 2003-10-30 Ed Falis <falis@gnat.com>
34285
34286 * g-signal.ads, g-signal.adb: New files
34287
34288 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
34289
34290 * Makefile.rtl: Introduce GNAT.Signals
34291
34292 2003-10-30 Robert Dewar <dewar@gnat.com>
34293
34294 * freeze.adb: Minor reformatting
34295
34296 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
34297
34298 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
34299 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
34300 New handling of Id_Check parameter to improve recognition of keywords
34301 used as identifiers.
34302 Update copyright notice to include 2003
34303
34304 2003-10-29 Robert Dewar <dewar@gnat.com>
34305
34306 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
34307 sem_ch10.adb: Minor reformatting
34308
34309 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
34310 (Expand_Assign_Record): Test right hand side for bit unaligned as well
34311
34312 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
34313
34314 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
34315 Support for TBK$SYMBOLIZE-based symbolic traceback.
34316
34317 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
34318
34319 * exp_disp.adb:
34320 Revert previous change, that did not work well when pragma No_Run_Time
34321 was used in conjunction with a run-time other than ZFP.
34322
34323 2003-10-29 Vincent Celier <celier@gnat.com>
34324
34325 * make.adb:
34326 (Gnatmake): When there are no Ada mains in attribute Main, disable the
34327 bind and link steps only is switch -z is not used.
34328
34329 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
34330
34331 * Makefile.generic: Remove duplicated setting of CC.
34332
34333 * Makefile.prolog: Set CC to gcc by default, to override make's
34334 default (cc).
34335
34336 * einfo.h: Regenerated.
34337
34338 2003-10-29 Ed Schonberg <schonberg@gnat.com>
34339
34340 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
34341 current body, after compiling subunit.
34342
34343 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
34344 when in deleted code, because gigi needs properly ordered freeze
34345 actions to annotate types.
34346
34347 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
34348 prevent the premature freezing of record type that contains
34349 subcomponents with a private type that does not yet have a completion.
34350
34351 2003-10-29 Javier Miranda <miranda@gnat.com>
34352
34353 * sem_ch12.adb:
34354 (Analyze_Package_Instantiation): Check that instances can not be used in
34355 limited with_clauses.
34356
34357 * sem_ch8.adb:
34358 (Analyze_Package_Renaming): Check that limited withed packages cannot
34359 be renamed. Improve text on error messages related to limited
34360 with_clauses.
34361
34362 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
34363
34364 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
34365 Update copyright notice.
34366
34367 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
34368 (Install_Limited_Context_Clauses): New subprogram that isolates all the
34369 checks required for limited context_clauses and installs the limited
34370 view.
34371 (Install_Limited_Withed_Unit): Complete its documentation.
34372 (Analyze_Context): Check that limited with_clauses are only allowed in
34373 package specs.
34374 (Install_Context): Call Install_Limited_Context_Clauses after the
34375 parents have been installed.
34376 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
34377 package as 'From_With_Type'; this mark indicates that the limited view
34378 is installed. Used to check bad usages of limited with_clauses.
34379 (Build_Limited_Views): Do not add shadow entities to the scope's list
34380 of entities. Do not add real entities to the Non_Limited_Views chain.
34381 Improve error notification.
34382 (Remove_Context_Clauses): Remove context clauses in two phases:
34383 limited views first and regular views later (to maintain the
34384 stack model).
34385 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
34386 its visible entities.
34387
34388 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
34389
34390 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
34391 with any type that Is_Fixed_Point_Type.
34392
34393 * sinfo.ads: Fix documentation for Associated_Node attribute.
34394
34395 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
34396
34397 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
34398 both '-gnatc' and '-gnatt' are specified.
34399
34400 * atree.adb (Initialize): Add initialization for Node_Count (set to
34401 zero).
34402
34403 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34404
34405 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
34406 do not consider as Pure.
34407
34408 Part of implementation of function-at-a-time:
34409
34410 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
34411 (tree_transform): Add new argument to build_component_ref.
34412 (tree_transform, case N_Assignment_Statement): Make and return an
34413 EXPR_STMT.
34414 (tree_transform): If result IS_STMT, set flags and return it.
34415 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34416
34417 * utils2.c (build_simple_component_ref, build_component_ref): Add new
34418 arg, NO_FOLD_P.
34419 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
34420 (build_allocator): Likewise.
34421
34422 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
34423 Add new arg to build_component_ref.
34424 (maybe_unconstrained_array, unchecked_convert): Likewise.
34425
34426 * ada-tree.def (EXPR_STMT): New code.
34427
34428 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
34429
34430 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
34431 build_component_ref calls.
34432
34433 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
34434
34435 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34436 (build_component_ref): Add new argument, NO_FOLD_P.
34437
34438 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
34439
34440 * Makefile.generic: Add missing substitution on object_deps handling.
34441
34442 PR ada/5909
34443 * Make-lang.in (check-ada): Enable ACATS test suite.
34444
34445 2003-10-27 Robert Dewar <dewar@gnat.com>
34446
34447 * exp_ch3.adb:
34448 (Freeze_Array_Type): We do not need an initialization routine for types
34449 derived from String or Wide_String. They should be treated the same
34450 as String and Wide_String themselves. This caused problems with the
34451 use of Initialize_Scalars.
34452
34453 * exp_ch5.adb:
34454 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
34455 composites. This allows use of component clauses that are not byte
34456 aligned.
34457
34458 * sem_prag.adb:
34459 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
34460 is an attempt to pack an array of atomic objects.
34461
34462 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
34463
34464 2003-10-27 Pascal Obry <obry@gnat.com>
34465
34466 * g-dirope.adb:
34467 (Basename): Check for drive letters in a pathname only on DOS based OS.
34468
34469 2003-10-27 Vincent Celier <celier@gnat.com>
34470
34471 * make.adb:
34472 (Gnatmake): When unable to change dir to the object dir, display the
34473 content of the parent dir of the obj dir, to try to understand why this
34474 happens.
34475
34476 2003-10-27 GNAT Script <nobody@gnat.com>
34477
34478 * Make-lang.in: Makefile automatically updated
34479
34480 2003-10-27 Ed Schonberg <schonberg@gnat.com>
34481
34482 * sem_ch12.adb:
34483 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
34484 should not be done in Save/Restore_Scope_Stack, because it is performed
34485 locally.
34486
34487 * sem_ch8.adb:
34488 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34489 whether use clauses should be removed/restored.
34490
34491 * sem_ch8.ads:
34492 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34493 whether use clauses should be removed/restored.
34494
34495 2003-10-26 Andreas Jaeger <aj@suse.de>
34496
34497 * Makefile.in: Remove duplicated lines.
34498
34499 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34500
34501 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
34502 minimize the differences with ACT tree.
34503
34504 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
34505 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
34506 Gnatvsn.Gnat_Static_Version_String to reduce differences between
34507 ACT and FSF trees.
34508
34509 2003-10-24 Pascal Obry <obry@gnat.com>
34510
34511 PR ada/12014
34512 * adadecode.c (ostrcpy): New function.
34513 (__gnat_decode): Use ostrcpy of strcpy.
34514 (has_prefix): Set first parameter a const.
34515 (has_suffix): Set first parameter a const.
34516 Update copyright notice. Fix source name in header.
34517 Removes a trailing space.
34518
34519 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
34520
34521 * exp_disp.adb:
34522 Remove the test against being in No_Run_Time_Mode before generating a
34523 call to Register_Tag. It is redundant with the test against the
34524 availability of the function Register_Tag.
34525
34526 2003-10-24 Vincent Celier <celier@gnat.com>
34527
34528 * g-catiio.adb: (Month_Name): Correct spelling of February
34529
34530 * make.adb: (Mains): New package
34531 (Initialize): Call Mains.Delete
34532 (Gnatmake): Check that each main on the command line is a source of a
34533 project file and, if there are several mains, each of them is a source
34534 of the same project file.
34535 (Gnatmake): When a foreign language is specified in attribute Languages,
34536 no main is specified on the command line and attribute Mains is not
34537 empty, only build the Ada main. If there is no Ada main, just compile
34538 the Ada sources and their closure.
34539 (Gnatmake): If a main is specified on the command line with directory
34540 information, check that the source exists and, if it does, that the path
34541 is the actual path of a source of a project.
34542
34543 * prj-env.adb:
34544 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
34545 Full_Path is True, return the full path instead of the simple file name.
34546 (Project_Of): New function
34547
34548 * prj-env.ads:
34549 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
34550 defaulted to False.
34551 (Project_Of): New function
34552
34553 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34554
34555 * Makefile.generic:
34556 Ensure objects of main project are always checked and rebuilt if needed.
34557 Set CC to gcc by default.
34558 Prepare new handling of link by creating a global archive (not activated
34559 yet).
34560
34561 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34562 stringt.h: Update copyright notice. Remove trailing blanks.
34563 Fix source name in header.
34564
34565 2003-10-24 Robert Dewar <dewar@gnat.com>
34566
34567 * sem_ch12.adb: Minor reformatting
34568
34569 * sem_ch3.adb:
34570 Minor reformatting (including new function return style throughout)
34571
34572 * sem_ch3.ads:
34573 Minor reformatting (including new function return style throughout)
34574
34575 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34576
34577 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34578 stringt.h: Update copyright notice. Remove trailing blanks.
34579 Fix source name in header.
34580
34581 2003-10-24 GNAT Script <nobody@gnat.com>
34582
34583 * Make-lang.in: Makefile automatically updated
34584
34585 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
34586
34587 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
34588 stringt.h: Convert to ISO C90 declarations and definitions.
34589
34590 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
34591
34592 PR ada/11978
34593 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
34594 External_Tag attribute definition clauses.
34595
34596 2003-10-23 Ed Schonberg <schonberg@gnat.com>
34597
34598 PR ada/7613
34599 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
34600 child unit, generate a fully qualified name to avoid spurious errors
34601 when the context contains renamings of different child units with
34602 the same simple name.
34603
34604 * exp_dbug.ads: Add documentation on name qualification for renamings
34605 of child units.
34606
34607 2003-10-23 Robert Dewar <dewar@gnat.com>
34608
34609 * g-regpat.ads, g-regpat.adb: Minor reformatting
34610
34611 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
34612
34613 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
34614
34615 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34616
34617 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
34618 Machine call.
34619
34620 * urealp.h: (Machine): Update to proper definition.
34621
34622 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
34623
34624 * init.c, adaint.c: Minor reformatting.
34625
34626 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
34627
34628 * adaint.c (w32_epoch_offset): Define static const at file level.
34629 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
34630 rather than t_create, t_access in call to GetFileTime. Use union
34631 to convert between FILETIME and unsigned long long.
34632 (__gnat_file_time_name): Test for invalid file handle.
34633 (__gnat_set_filetime_name): Support win32 targets using
34634 w32api SetFileTime.
34635
34636 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
34637
34638 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
34639
34640 * ctrl_c.c (__gnat_int_handler): Remove declaration.
34641
34642 * decl.c (creat_concat_name): Const-ify prefix.
34643
34644 * adaint.c: Include ctype.h if __MINGW32__.
34645 (__gnat_readlink): Mark arguments as possibly unused.
34646 (__gnat_symlink): Likewise.
34647 (__gnat_is_symbolic_link): Likewise.
34648 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
34649 declaration
34650 (__gnat_file_time_name): Don't declare struct stat statbuf when
34651 not needed.
34652 (__gnat_is_absolute_path): Add parenthesis around condition of
34653 'if' statement to avoid warning.
34654 (__gnat_plist_init): Specify void as parameter.
34655 (plist_enter): Likewise.
34656 (plist_leave): Likewise.
34657 (remove_handle): Make static. Initialize prev.
34658
34659 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
34660
34661 PR ada/10110
34662 * Makefile.in: Disable build of gnatpsta.
34663 * cstreams.c (__gnat_full_name): Minor improvements and clean up
34664 of previous change.
34665
34666 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34667
34668 * tracebak.c (MAX): Avoid redefinition warning.
34669
34670 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
34671 Change msg to const char *.
34672 (__gnat_install_handler): Remove ss, unused.
34673 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
34674 to const char *.
34675 * cstreams.c (__gnat_full_name): Declare p only when used.
34676 (__gnat_full_name) [sgi] Return buffer.
34677
34678 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
34679
34680 * mingw32.h: New file.
34681 * gnat_wrapper.adb: New file.
34682
34683 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
34684
34685 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
34686 string match a pre compiled regular expression (the corresponding
34687 version of the function working on a raw regular expression)
34688 Fix typos in various comments
34689 Update copyright notice in spec
34690
34691 2003-10-21 Gary Dismukes <dismukes@gnat.com>
34692
34693 * exp_ch3.adb:
34694 (Component_Needs_Simple_Initialization): Return False when the type is a
34695 packed bit array. Revise spec comments to document this case.
34696
34697 * exp_prag.adb:
34698 (Expand_Pragma_Import): Set any expression on the imported object to
34699 empty to avoid initializing imported objects (in particular this
34700 covers the case of zero-initialization of bit arrays).
34701 Update copyright notice.
34702
34703 2003-10-21 Ed Schonberg <schonberg@gnat.com>
34704
34705 * sem_ch12.adb:
34706 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
34707 a subunit is missing.
34708 (Instantiate_Subprogram_Body): If body of function is missing, set type
34709 of return expression explicitly in dummy body, to prevent cascaded
34710 errors when a subunit is missing.
34711 Fixes PR 5677.
34712
34713 * sem_ch3.adb:
34714 (Access_Subprogram_Declaration): Verify that return type is valid.
34715 Fixes PR 8693.
34716
34717 * sem_elab.adb:
34718 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
34719 generic.
34720 Fixes PR 12318.
34721
34722 * sem_util.adb:
34723 (Corresponding_Discriminant): If the scope of the discriminant is a
34724 private type without discriminant, use its full view.
34725 Fixes PR 8247.
34726
34727 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
34728
34729 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
34730 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
34731 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
34732 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
34733 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
34734 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
34735 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
34736 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
34737 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
34738 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
34739 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
34740 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
34741 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
34742 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
34743 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
34744 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
34745 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
34746 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
34747 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
34748 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
34749 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
34750 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
34751 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
34752 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
34753 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
34754 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
34755 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
34756 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
34757 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
34758 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
34759 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
34760 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
34761 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
34762 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
34763 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
34764 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
34765 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
34766 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
34767 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
34768 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
34769 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
34770 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
34771 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
34772 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
34773 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
34774 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
34775 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
34776 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
34777 vms_conv.ads, vms_conv.adb, vms_data.ads,
34778 vxaddr2line.adb: Files added. Merge with ACT tree.
34779
34780 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
34781 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
34782 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
34783 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
34784 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
34785 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
34786 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
34787 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
34788 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
34789 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
34790
34791 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
34792 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
34793 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
34794 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
34795 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
34796 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
34797 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
34798 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
34799 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
34800 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
34801 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
34802 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
34803 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
34804 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
34805 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
34806 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
34807 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
34808 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
34809 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
34810 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
34811 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
34812 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
34813 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
34814 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
34815 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
34816 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
34817 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
34818 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
34819 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
34820 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
34821 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
34822 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
34823 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34824 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
34825 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
34826 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
34827 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
34828 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
34829 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
34830 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
34831 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
34832 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
34833 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
34834 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
34835 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
34836 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
34837 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
34838 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
34839 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
34840 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
34841 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
34842 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
34843 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
34844 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
34845 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
34846 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
34847 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
34848 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
34849 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
34850 checks.adb, checks.ads, cio.c, comperr.adb,
34851 comperr.ads, csets.adb, cstand.adb, cstreams.c,
34852 debug_a.adb, debug_a.ads, debug.adb, decl.c,
34853 einfo.adb, einfo.ads, errout.adb, errout.ads,
34854 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
34855 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
34856 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
34857 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34858 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
34859 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
34860 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
34861 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
34862 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
34863 fe.h, fmap.adb, fmap.ads, fname.adb,
34864 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
34865 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
34866 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
34867 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
34868 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
34869 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
34870 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
34871 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
34872 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
34873 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
34874 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
34875 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
34876 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
34877 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
34878 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
34879 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
34880 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
34881 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
34882 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
34883 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
34884 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
34885 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
34886 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
34887 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
34888 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
34889 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
34890 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
34891 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
34892 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
34893 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
34894 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
34895 layout.adb, lib.adb, lib.ads, lib-list.adb,
34896 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
34897 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
34898 link.c, live.adb, make.adb, make.ads,
34899 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
34900 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
34901 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
34902 misc.c, mkdir.c, mlib.adb, mlib.ads,
34903 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
34904 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
34905 namet.adb, namet.ads, namet.h, nlists.ads,
34906 nlists.h, nmake.adt, opt.adb, opt.ads,
34907 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
34908 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
34909 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
34910 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
34911 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
34912 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
34913 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
34914 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
34915 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
34916 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
34917 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
34918 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
34919 prj-util.adb, prj-util.ads, raise.c, raise.h,
34920 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
34921 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
34922 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
34923 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
34924 scans.ads, scn.adb, scn.ads, s-crc32.adb,
34925 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
34926 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34927 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
34928 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
34929 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
34930 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
34931 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
34932 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
34933 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
34934 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
34935 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
34936 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
34937 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
34938 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
34939 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
34940 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
34941 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
34942 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
34943 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
34944 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
34945 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
34946 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
34947 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
34948 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
34949 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
34950 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
34951 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
34952 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
34953 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
34954 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
34955 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
34956 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
34957 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
34958 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
34959 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
34960 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
34961 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
34962 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
34963 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
34964 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
34965 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
34966 stringt.adb, stringt.ads, stringt.h, style.ads,
34967 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
34968 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
34969 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
34970 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
34971 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
34972 table.adb, table.ads, targparm.adb, targparm.ads,
34973 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
34974 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
34975 ttypes.ads, types.ads, types.h, uintp.adb,
34976 uintp.ads, uintp.h, uname.adb, urealp.adb,
34977 urealp.ads, urealp.h, usage.adb, utils2.c,
34978 utils.c, validsw.adb, validsw.ads, widechar.adb,
34979 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
34980 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
34981 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
34982 gnatvsn.ads: Merge with ACT tree.
34983
34984 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
34985
34986 2003-10-20 Mark Mitchell <mark@codesourcery.com>
34987
34988 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
34989 (gnat_ug_vmx.info): Likewise.
34990 (gnat_ug_vxw.info): Likewise.
34991 (gnat_ug_wnt.info): Likewise.
34992 (gnat_rm.info): Likewise.
34993 (gnat-style.info): Likewise.
34994
34995 * Make-lang.in (ada.install-info): Remove target.
34996 (info): New target.
34997 (install-info): Likewise.
34998 (gnat_ug_unx.info): Simplify rule.
34999 (gnat_ug_vmx.info): Likewise.
35000 (gnat_ug_vxw.info): Likewise.
35001 (gnat_ug_wnt.info): Likewise.
35002 (gnat_rm.info): Likewise.
35003 (gnat-style.info): Likewise.
35004
35005 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
35006
35007 * Make-lang.in: Replace uses of $(target_alias) with
35008 $(target_noncanonical).
35009 * ada/Makefile.in: Remove unused mention of $(target_alias).
35010
35011 2003-10-06 Mark Mitchell <mark@codesourcery.com>
35012
35013 * Make-lang.in (ada.info): Replace with ...
35014 (info): ... this.
35015 (ada.dvi): Replace with ...
35016 (dvi): ... this.
35017
35018 2003-09-29 Zack Weinberg <zack@codesourcery.com>
35019
35020 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
35021 initialize dconstp5 and dconstmp5.
35022
35023 2003-09-28 Richard Henderson <rth@redhat.com>
35024
35025 * trans.c (tree_transform): Update call to expand_asm_operands.
35026
35027 2003-09-21 Richard Henderson <rth@redhat.com>
35028
35029 * trans.c, utils.c: Revert.
35030
35031 2003-09-21 Richard Henderson <rth@redhat.com>
35032
35033 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
35034 change to const.
35035
35036 2003-09-04 Michael Matz <matz@suse.de>
35037
35038 * misc.c: Include "target.h".
35039 * Make-lang.in (misc.o): Add dependency on target.h.
35040
35041 2003-09-03 DJ Delorie <dj@redhat.com>
35042
35043 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
35044 hook.
35045
35046 2003-08-30 Zack Weinberg <zack@codesourcery.com>
35047
35048 * Makefile.in: Update substitutions to match changes to
35049 configure. Use include directives instead of @-insertions
35050 to read in host and target fragments. Add a rule to
35051 regenerate ada/Makefile.
35052
35053 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
35054
35055 * lang-options.h: Remove.
35056 * lang.opt: Add help text.
35057
35058 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
35059
35060 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
35061 calls.
35062
35063 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
35064
35065 * misc.c (gnat_handle_option): Don't handle filenames.
35066
35067 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
35068
35069 * Make-lang.in: Replace PWD with PWD_COMMAND.
35070 * Makefile.adalib: Likewise.
35071 * Makefile.in: Likewise.
35072
35073 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
35074
35075 * misc.c (gnat_argv): Revert last change.
35076 (gnat_handle_option, gnat_init_options): Copy arguments.
35077
35078 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
35079
35080 * misc.c (gnat_argv): Make const.
35081
35082 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
35083
35084 * misc.c (save_argc, save_argv): Keep non-static!
35085
35086 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
35087
35088 * misc.c (save_argc, save_argv): Make static.
35089 (gnat_init_options): New prototype.
35090 (gnat_init_options): Update.
35091
35092 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
35093
35094 * gnat_ug.texi: Remove unlikely characters from @vars.
35095 * gnat_ug_vms.texi: Regenerate.
35096
35097 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
35098
35099 * misc.c (record_code_position): Adjust emit_note call.
35100
35101 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
35102
35103 * misc.c (gnat_handle_option): Don't check for missing arguments.
35104
35105 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
35106
35107 * utils.c (end_subprog_body): Adjust expand_function_end call.
35108
35109 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
35110
35111 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
35112 Bind_Main_Program.
35113
35114 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
35115
35116 * lang.opt: Declare Ada.
35117 * misc.c (gnat_init_options): Update.
35118
35119 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
35120
35121 * utils.c (begin_subprog_body): Adjust init_function_start call.
35122
35123 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
35124
35125 * Make-lang.in: Update to use options.c and options.h.
35126 * misc.c: Include options.h not aoptions.h.
35127 (gnat_handle_option): Abort on unrecognized switch.
35128 (gnat_init_options): Request Ada switches.
35129
35130 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
35131
35132 * lang.opt: Add -Wall.
35133 * misc.c (gnat_handle_option): Handle it.
35134
35135 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
35136
35137 * misc.c (gnat_handle_option): Fix warnings.
35138
35139 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
35140
35141 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
35142
35143 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
35144
35145 * Make-lang.in: Update to handle command-line options.
35146 * lang.opt: New file.
35147 * misc.c: Include aoptions.h.
35148 (cl_options_count, cl_options): Remove.
35149 (gnat_handle_option): New.
35150 (gnat_decode_option): Remove.
35151 (LANG_HOOKS_DECODE_OPTION): Remove.
35152 (LANG_HOOKS_HANDLE_OPTION): Override.
35153
35154 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
35155
35156 * init.c, misc.c, trans.c, utils.c: Remove dead code.
35157
35158 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
35159
35160 * Makefile.in: Replace "host_canonical" with "host" for autoconf
35161 substitution.
35162
35163 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
35164
35165 * Make-lang.in: Update.
35166 * misc.c: Include opts.h. Define cl_options_count and cl_options.
35167
35168 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
35169
35170 * misc.c (gnat_init_options): Update.
35171
35172 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
35173
35174 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
35175 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
35176 __attribute__ ((__unused__)).
35177
35178 2003-06-05 Jan Hubicka <jh@suse.cz>
35179
35180 * Make-lang.in: Add support for stageprofile and stagefeedback
35181
35182 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
35183
35184 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
35185 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
35186
35187 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
35188
35189 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
35190 Remove non-VMS directive.
35191 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
35192 alternatives.
35193 (Examples of gnatls Usage): Remove VMS alternative.
35194
35195 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
35196
35197 PR ada/9953
35198 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
35199 and turn ZCX_By_Default back to False since the underlying support
35200 is not quite there yet.
35201
35202 2003-06-01 Andreas Jaeger <aj@suse.de>
35203
35204 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
35205 and ROUND_TYPE_SIZE_UNIT.
35206
35207 2003-05-22 Geert Bosch <bosch@gnat.com>
35208
35209 * gnat_rm.texi : Remove reference to Ada Core Technologies.
35210
35211 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
35212
35213 * trans.c (tree_transform): Use location_t and input_location
35214 directly.
35215 (build_unit_elab): Likewise.
35216 * utils.c (create_label_decl): Likewise.
35217
35218 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
35219
35220 * trans.c (tree_transform, build_unit_elab,
35221 set_lineno): Rename lineno to input_line.
35222 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
35223 end_subprog_body): Likewise.
35224 * utils2.c (build_call_raise): Likewise.
35225
35226 2003-05-01 Laurent Guerby <guerby@acm.org>
35227
35228 PR ada/10546
35229 * 5iosinte.ads: Increase pthread_cond_t size to match recent
35230 LinuxThread and NPTL version, merge from ACT.
35231
35232 2003-04-28 Zack Weinberg <zack@codesourcery.com>
35233
35234 * utils.c (convert): No need to clear TREE_CST_RTL.
35235
35236 2003-04-23 Geert Bosch <bosch@gnat.com>
35237
35238 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35239 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35240 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35241 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35242 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35243 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
35244 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
35245 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
35246 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35247 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
35248 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
35249 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
35250 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
35251 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
35252 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
35253 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
35254 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
35255 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
35256 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
35257 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
35258 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
35259 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
35260 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35261 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
35262 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
35263 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
35264 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
35265 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
35266 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
35267 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
35268 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
35269 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
35270 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
35271 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
35272 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
35273 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
35274 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
35275 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
35276 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
35277 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
35278 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
35279 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
35280 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
35281 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
35282 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
35283 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
35284 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
35285 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
35286 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
35287 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
35288 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
35289 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
35290 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
35291 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
35292 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
35293 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
35294 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
35295 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
35296 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
35297 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
35298 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
35299 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
35300 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
35301 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
35302 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
35303 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
35304 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
35305 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
35306 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
35307 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
35308 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
35309 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
35310 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
35311 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
35312 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
35313 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
35314 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
35315 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
35316 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
35317 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
35318 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
35319 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
35320 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
35321 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
35322 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
35323 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
35324 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
35325 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
35326 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
35327 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
35328 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
35329 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
35330 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
35331 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
35332 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
35333 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
35334 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
35335 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
35336 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
35337 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
35338 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
35339 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
35340 ali.adb, ali.ads, alloc.ads, argv.c,
35341 atree.adb, atree.ads, atree.h, aux-io.c,
35342 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
35343 binde.adb, binde.ads, binderr.adb, binderr.ads,
35344 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
35345 butil.adb, butil.ads, cal.c, calendar.ads,
35346 casing.adb, casing.ads, ceinfo.adb, checks.adb,
35347 checks.ads, cio.c, comperr.adb, comperr.ads,
35348 config-lang.in, csets.adb, csets.ads, csinfo.adb,
35349 cstand.adb, cstand.ads, cuintp.c, debug.adb,
35350 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
35351 dec-io.ads, dec.ads, deftarg.c, directio.ads,
35352 einfo.adb, einfo.ads, elists.adb, elists.ads,
35353 elists.h, errno.c, errout.adb, errout.ads,
35354 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
35355 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
35356 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
35357 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
35358 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
35359 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
35360 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
35361 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
35362 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
35363 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
35364 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
35365 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
35366 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
35367 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
35368 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
35369 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
35370 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
35371 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
35372 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
35373 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
35374 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35375 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35376 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35377 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
35378 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
35379 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
35380 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
35381 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
35382 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
35383 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
35384 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
35385 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
35386 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
35387 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
35388 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
35389 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
35390 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
35391 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
35392 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
35393 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
35394 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
35395 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
35396 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
35397 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
35398 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
35399 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
35400 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
35401 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
35402 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
35403 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
35404 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
35405 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
35406 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
35407 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
35408 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
35409 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
35410 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
35411 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
35412 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
35413 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35414 lib.adb, lib.ads, live.adb, live.ads,
35415 machcode.ads, make.adb, make.ads, makeusg.adb,
35416 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
35417 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
35418 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
35419 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
35420 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
35421 mlib.ads, namet.adb, namet.ads, nlists.adb,
35422 nlists.ads, opt.adb, opt.ads, osint-b.adb,
35423 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
35424 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
35425 osint.ads, output.adb, output.ads, par-ch10.adb,
35426 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
35427 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35428 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
35429 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
35430 par-tchk.adb, par-util.adb, par.adb, par.ads,
35431 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
35432 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
35433 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
35434 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
35435 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
35436 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
35437 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
35438 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
35439 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
35440 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
35441 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
35442 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
35443 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
35444 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
35445 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
35446 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
35447 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
35448 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35449 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
35450 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
35451 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
35452 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
35453 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35454 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
35455 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
35456 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
35457 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
35458 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
35459 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
35460 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
35461 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
35462 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
35463 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
35464 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
35465 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
35466 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
35467 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
35468 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
35469 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
35470 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
35471 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
35472 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
35473 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
35474 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
35475 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
35476 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
35477 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
35478 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
35479 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
35480 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
35481 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
35482 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
35483 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
35484 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
35485 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
35486 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
35487 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
35488 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
35489 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
35490 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
35491 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
35492 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
35493 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
35494 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
35495 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
35496 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
35497 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
35498 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
35499 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
35500 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
35501 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
35502 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
35503 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
35504 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
35505 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
35506 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
35507 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
35508 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
35509 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
35510 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
35511 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
35512 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
35513 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
35514 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
35515 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
35516 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
35517 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
35518 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
35519 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
35520 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
35521 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
35522 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
35523 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
35524 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
35525 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
35526 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
35527 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
35528 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
35529 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
35530 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
35531 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
35532 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
35533 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
35534 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
35535 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
35536 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
35537 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
35538 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
35539 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
35540 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
35541 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35542 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35543 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
35544 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
35545 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
35546 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
35547 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
35548 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
35549 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
35550 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
35551 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
35552 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
35553 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
35554 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
35555 snames.ads, sprint.adb, sprint.ads, stand.adb,
35556 stand.ads, stringt.adb, stringt.ads, style.adb,
35557 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
35558 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
35559 switch-m.ads, switch.adb, switch.ads, system.ads,
35560 table.adb, table.ads, targparm.adb, targparm.ads,
35561 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
35562 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
35563 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
35564 ttypef.ads, ttypes.ads, types.adb, types.ads,
35565 uintp.adb, uintp.ads, uname.adb, uname.ads,
35566 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
35567 usage.adb, usage.ads, validsw.adb, validsw.ads,
35568 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
35569 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
35570 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
35571 formatting and other trivial changes from ACT.
35572
35573 2003-04-12 Zack Weinberg <zack@codesourcery.com>
35574
35575 * gigi.h, utils2.c (build_constructor):
35576 Rename gnat_build_constructor. Use build_constructor.
35577 * decl.c (gnat_to_gnu_entity)
35578 * trans.c (tree_transform, pos_to_constructor, extract_values)
35579 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
35580 (unchecked_convert)
35581 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
35582 (fill_vms_descriptor):
35583 Update to match.
35584
35585 2003-04-06 Zack Weinberg <zack@codesourcery.com>
35586
35587 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
35588 * misc.c (gnat_tree_size): New function.
35589 (LANG_HOOKS_TREE_SIZE): Override.
35590
35591 2003-04-03 Jason Merrill <jason@redhat.com>
35592
35593 * misc.c (gnat_adjust_rli): #if 0.
35594
35595 2003-03-31 Geert Bosch <bosch@gnat.com>
35596
35597 PR ada/10020
35598 * link.c : Fix misspelled "const" keyword
35599
35600 2003-03-23 Mark Mitchell <mark@codesourcery.com>
35601
35602 PR c++/7086
35603 * utils2.c: Adjust calls to put_var_into_stack.
35604
35605 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
35606
35607 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
35608
35609 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
35610
35611 * misc.c (gnat_init): Update for new prototype.
35612
35613 2003-03-05 Olivier Hainque <hainque@gnat.com>
35614
35615 ada/9961
35616 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
35617 warning, and fix return type for the IN_RTS && !SJLJ case.
35618
35619 2003-03-04 Tom Tromey <tromey@redhat.com>
35620
35621 * Make-lang.in (ada.tags): New target.
35622
35623 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
35624
35625 ada/9911
35626 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
35627 wrapper, which name remains constant whatever underlying GCC
35628 scheme.
35629
35630 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
35631 the stable interface needed for a-except.
35632
35633 2003-03-02 Andreas Jaeger <aj@suse.de>
35634
35635 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35636 gnat_ug_wnt.texi: Regenerate.
35637
35638 2003-03-02 Laurent Guerby <guerby@acm.org>
35639
35640 * Makefile.in (install-gnatlib): Match previous change there
35641 so it works.
35642
35643 2003-02-28 Andreas Schwab <schwab@suse.de>
35644
35645 * Make-lang.in (install-gnatlib): Change to ada directory before
35646 running make instead of using ada/Makefile directly.
35647
35648 2003-02-18 Ben Elliston <bje@redhat.com>
35649
35650 Part of PR ada/9406
35651 * gnat_ug.texi (Binder output file): Grammar fix.
35652
35653 2003-02-18 Ben Elliston <bje@redhat.com>
35654
35655 PR other/7350
35656 * 5qtaprop.adb (Sleep): Fix typo in comment.
35657
35658 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
35659
35660 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
35661 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35662 gnat_ug_wnt.texi: Regenerate.
35663
35664 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
35665
35666 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
35667 be created if necessary.
35668 (ada.install-common): Let $(DESTDIR)$(bindir) be created
35669 if necessary. Remove erroneous and redundant gnatchop
35670 installation commands. Test for gnatdll before attempting
35671 to install it.
35672 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
35673 and gnatdll from all plausible locations.
35674
35675 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
35676
35677 * utils2.c (build_unary_op): Don't check flag_volatile.
35678 * gnat_ug.texi: Remove -fvolatile from example.
35679 * gnat_ug_vxw.texi: Likewise.
35680
35681 2003-01-29 Laurent Guerby <guerby@acm.org>
35682
35683 PR ada/8344
35684 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
35685 * Makefile.in: match previous change.
35686 * Make-lang.in: match previous change.
35687
35688 2003-01-29 Joel Sherrill <joel@OARcorp.com>
35689
35690 * 5rosinte.ads: Add SIGXCPU.
35691 * 5rtpopsp.adb: New file.
35692 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
35693 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
35694 specific file 5rtpopsp.adb.
35695 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
35696 is likely needed for all newlib targets.
35697 * init.c: Add RTEMS specific version of __gnat_initialize().
35698
35699 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35700
35701 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
35702
35703 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35704
35705 * init.c (__gnat_error_handler): Make msg const.
35706
35707 * gmem.c (convert_addresses): Move declaration ...
35708 * adaint.h: ... here.
35709 * adaint.c (convert_addresses): Adapt addrs type to match
35710 prototype.
35711
35712 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
35713
35714 2003-01-24 Andreas Schwab <schwab@suse.de>
35715
35716 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
35717 size_t to avoid warning.
35718
35719 2003-01-21 Zack Weinberg <zack@codesourcery.com>
35720
35721 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
35722
35723 2003-01-09 Geoffrey Keating <geoffk@apple.com>
35724
35725 * gnat_rm.texi: Remove RCS version number.
35726
35727 * ada-tree.h (union lang_tree_node): Add chain_next option.
35728
35729 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
35730
35731 * Make-lang.in (ada.install-info, ada.install-common,
35732 ada.uninstall): Prepend $(DESTDIR) to the destination
35733 directory in all (un)installation commands.
35734 * Makefile.in (install-gnatlib, install-rts): Ditto.
35735
35736 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
35737
35738 * gnat_rm.texi, gnat_ug.texi: Use @copying.
35739 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35740 gnat_ug_wnt.texi: Regenerate.
35741
35742 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
35743
35744 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
35745 only.
35746 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
35747 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
35748 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
35749 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
35750 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
35751 $(srcdir)/doc/include/gcc-common.texi.
35752
35753 2002-12-15 Geert Bosch <bosch@gnat.com>
35754
35755 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
35756
35757 2002-12-14 Geert Bosch <bosch@gnat.com>
35758
35759 PR ada/5690
35760 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
35761 case of a body created for a Renaming_As_Body, on which
35762 conformance checks are not performed.
35763
35764 2002-11-30 Zack Weinberg <zack@codesourcery.com>
35765
35766 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
35767 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
35768 not already included.
35769 * Make-lang.in: Update dependencies.
35770
35771 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
35772 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
35773 solution to buffer overflow bug on GNU/Linux.
35774
35775 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
35776
35777 PR ada/5856
35778 PR ada/6919
35779 * bindgen.adb: Remove all references to Public_Version.
35780 * comperr.adb: Remove all references to Public_Version and
35781 GNATPRO_Version; correct bug reporting instructions.
35782 * comperr.ads: Change to match bug box.
35783 * gnatvsn.ads: Remove all references to Public version and
35784 GNATPRO version.
35785
35786 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
35787
35788 PR ada/6919
35789 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
35790 GNU/Linux.
35791
35792 PR ada/6558
35793 * config-lang.in: Remove diff_excludes.
35794
35795 2002-11-05 Graham Stott <graham.stott@btinternet.com>
35796
35797 PR ada/8358
35798 * trans.c (gnu_pending_elaboration_lists): New GC root.
35799 (build_unit_elab): Use..
35800
35801 2002-10-30 Geert Bosch <bosch@gnat.com>
35802
35803 PR ada/6558
35804 * misc.c : Include optabs.h
35805
35806 * Make-lang.in (misc.o): Add dependency on optabs.h
35807
35808 2002-10-29 Geert Bosch <bosch@gnat.com>
35809
35810 PR ada/6558
35811 * Make-lang.in (gnatbind): Depend on CONFIG_H
35812
35813 2002-10-29 Geert bosch <bosch@gnat.com>
35814
35815 PR ada/6558
35816 * misc.c: Unrevert misc.c (1.13)
35817
35818 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
35819
35820 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
35821 maintainership comments.
35822
35823 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
35824
35825 PR ada/5904
35826 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
35827 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
35828 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
35829 7staprop.adb: Correct statements in comments about
35830 maintainership of GNAT.
35831
35832 PR ada/5904
35833 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
35834 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
35835 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
35836 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
35837 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
35838 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
35839 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
35840 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
35841 comments about maintainership of GNAT.
35842
35843 PR ada/6919 (forward port of patch for PR ada/5904)
35844 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
35845 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
35846 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
35847 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
35848 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
35849 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
35850 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
35851 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
35852 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
35853 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
35854 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
35855 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
35856 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
35857 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
35858 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
35859 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
35860 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
35861 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
35862 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
35863 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
35864 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
35865 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
35866 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
35867 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
35868 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
35869 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
35870 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
35871 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
35872 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
35873 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
35874 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
35875 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
35876 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
35877 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
35878 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
35879 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
35880 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
35881 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
35882 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
35883 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
35884 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
35885 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
35886 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
35887 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
35888 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
35889 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
35890 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
35891 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
35892 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
35893 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
35894 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
35895 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
35896 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
35897 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
35898 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
35899 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
35900 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
35901 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
35902 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
35903 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
35904 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
35905 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
35906 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
35907 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
35908 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
35909 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
35910 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
35911 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
35912 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
35913 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
35914 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
35915 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
35916 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
35917 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
35918 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
35919 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
35920 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
35921 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
35922 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
35923 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
35924 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
35925 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
35926 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
35927 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
35928 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
35929 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
35930 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
35931 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
35932 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
35933 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
35934 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
35935 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
35936 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
35937 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
35938 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
35939 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
35940 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
35941 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
35942 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
35943 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
35944 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
35945 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
35946 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
35947 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
35948 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
35949 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
35950 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
35951 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
35952 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
35953 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
35954 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
35955 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
35956 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
35957 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
35958 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
35959 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
35960 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
35961 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
35962 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
35963 par-endh.adb par-labl.adb par-load.adb par-prag.adb
35964 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
35965 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
35966 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
35967 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
35968 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
35969 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
35970 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
35971 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
35972 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
35973 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
35974 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
35975 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
35976 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
35977 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
35978 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
35979 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
35980 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
35981 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
35982 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
35983 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
35984 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
35985 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
35986 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
35987 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
35988 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
35989 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
35990 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
35991 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
35992 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
35993 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
35994 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
35995 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
35996 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
35997 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
35998 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
35999 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
36000 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
36001 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
36002 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
36003 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
36004 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
36005 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
36006 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
36007 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
36008 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
36009 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
36010 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
36011 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
36012 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
36013 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
36014 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
36015 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
36016 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
36017 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
36018 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
36019 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
36020 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
36021 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
36022 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
36023 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
36024 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
36025 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
36026 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
36027 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
36028 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
36029 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
36030 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
36031 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
36032 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
36033 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
36034 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
36035 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
36036 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
36037 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
36038 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
36039 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
36040 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
36041 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
36042 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
36043 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
36044 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
36045 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
36046 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
36047 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
36048 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
36049 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
36050 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
36051 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
36052 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
36053 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
36054 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
36055 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
36056 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
36057 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
36058 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
36059 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
36060 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
36061 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
36062 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
36063 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
36064 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
36065 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
36066 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
36067 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
36068 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
36069 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
36070 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
36071 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
36072 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
36073 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
36074 stringt.ads stringt.h style.adb style.ads stylesw.adb
36075 stylesw.ads switch.adb switch.ads sysdep.c system.ads
36076 table.adb table.ads targparm.adb targparm.ads targtyps.c
36077 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
36078 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
36079 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
36080 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
36081 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
36082 usage.ads utils.c utils2.c validsw.adb validsw.ads
36083 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
36084 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
36085 xtreeprs.adb: Correct statements in comments about maintainership
36086 of GNAT.
36087
36088 2002-09-23 Zack Weinberg <zack@codesourcery.com>
36089
36090 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
36091 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
36092 * gnatvsn.ads: Gnat_Version_String is now a function.
36093 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
36094 copy the C version_string into a String and return it.
36095 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
36096 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
36097 Remove pragma Ident (Gnat_Version_String). If this was the
36098 sole use of package Gnatvsn, remove the with statement too.
36099 * gnat1drv.adb: Tweak -gnatv output.
36100
36101 2002-09-17 Richard Henderson <rth@redhat.com>
36102
36103 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
36104 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
36105 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
36106 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
36107 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
36108 and real_2expN instead of a loop.
36109 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
36110 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
36111
36112 2002-08-25 Andre Leis <a.leis@gmx.net>
36113 David Billinghurst <David.Billinghurst@riotinto.com>
36114
36115 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
36116
36117 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36118
36119 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
36120 Remove $(CONFIG_H) dependency.
36121
36122 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
36123
36124 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
36125
36126 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36127
36128 * adadecode.c (ada_demangle): Use xstrdup in lieu of
36129 xmalloc/strcpy.
36130 * misc.c (gnat_decode_option): Likewise.
36131
36132 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
36133
36134 * make.adb (Add_Switch): Make Generic_Position a procedure. The
36135 function approach did not work well because of a side effect (the
36136 function call could reallocate the table which was being indexed
36137 using its result). Fixes ada/4851. [RESURRECTED]
36138
36139 2002-07-01 Roger Sayle <roger@eyesopen.com>
36140
36141 * ada/utils.c (builtin_function): Accept an additional parameter.
36142
36143 2002-06-28 Andreas Jaeger <aj@suse.de>
36144
36145 PR ada/7144
36146 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
36147 <adi@thur.de>.
36148
36149 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36150
36151 * Makefile.in (SHELL): Set to @SHELL@.
36152
36153 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36154
36155 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
36156 array size calculation.
36157
36158 2002-06-04 Andreas Jaeger <aj@suse.de>
36159
36160 * Make-lang.in (gnatbind): Readd rule that has been lost in last
36161 patch.
36162
36163 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
36164
36165 Merge from pch-branch:
36166
36167 * config-lang.in (gtfiles): Add ada-tree.h.
36168 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
36169 (SET_TYPE_MODULUS): New.
36170 (SET_TYPE_INDEX): New.
36171 (SET_TYPE_DIGITS_VALUE): New.
36172 (SET_TYPE_RM_SIZE): New.
36173 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
36174 (SET_TYPE_ADA_SIZE): New.
36175 (SET_TYPE_ACTUAL_BOUNDS): New.
36176 (SET_DECL_CONST_CORRESPONDING_VAR): New.
36177 (SET_DECL_ORIGINAL_FIELD): New.
36178 (TREE_LOOP_ID): Correct typo.
36179 * decl.c: Use new macros.
36180 * utils.c: Include debug.h, use new macros.
36181 * utils2.c: Use new macros.
36182
36183 * ada-tree.h: Update all macros for new tree description.
36184 (struct tree_loop_id): New.
36185 (union lang_tree_node): New.
36186 (struct lang_decl): New.
36187 (struct lang_type): New.
36188 * misc.c (gnat_mark_tree): Delete.
36189 (LANG_HOOKS_MARK_TREE): Delete.
36190 * trans.c (tree_transform): No longer any need to cast
36191 for TREE_LOOP_ID.
36192
36193 * utils.c (struct language_function): New dummy structure.
36194
36195 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
36196 (misc.o): Likewise.
36197 (utils.o): Likewise; also gtype-ada.h.
36198 * Make-lang.in (gnat1): Add dependency on s-gtype.
36199 (gnatbind): Add dependency on $(CONFIG_H).
36200 * utils.c: Correct last #include.
36201 (stuct e_stack): Remove unnecessary 'static'.
36202 (mark_e_stack): Remove unused prototype.
36203
36204 * scn-nlit.adb: Remove whitespace after version number to
36205 keep lines under 80 chars.
36206 * snames.adb: Likewise.
36207 * treepr.ads: Likewise.
36208
36209 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
36210 (misc.o): Likewise.
36211 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
36212 * config-lang.in (gtfiles): New.
36213 * decl.c: Use gengtype for roots.
36214 * gigi.h: Use gengtype for roots.
36215 * trans.c: Use gengtype for roots.
36216 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
36217
36218 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
36219
36220 * misc.c (gnat_init): Adjust setting of internal_error_function.
36221
36222 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
36223
36224 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
36225 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36226 gnat_ug_wnt.texi: Regenerate.
36227
36228 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
36229
36230 * 5ntaprop.adb (with System.OS_Primitives): Remove.
36231
36232 * cstreams.c (max_path_len): Move from here ...
36233 * adaint.c (__gnat_max_path_len): ... to here.
36234 * adaint.c (__gnat_max_path_len): Declare.
36235 * g-dirope.adb (Max_Path): Adjust.
36236 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
36237 * i-cstrea.ads (max_path_len): Adjust.
36238 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
36239 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
36240
36241 * Makefile.in, Make-lang.in: Documentation is now built in
36242 Make-lang.in. Store Info and generated Texinfo files in the
36243 source directory.
36244 * gnat_ug.texi: Remove CVS keywords, correct version number.
36245 Set file name correctly.
36246
36247 * gnat_ug_*.texi: Add.
36248 * .cvsignore: Ignore generated Texinfo files.
36249
36250 2002-05-30 Zack Weinberg <zack@codesourcery.com>
36251
36252 * ada.h: Add MI guard macro.
36253 (SUBTYPE): Define constants with an anonymous enum, not static
36254 const variables.
36255 (IN): Cast constants to appropriate type before use.
36256
36257 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
36258
36259 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
36260 (experimental)".
36261
36262 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36263
36264 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
36265 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
36266 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
36267 (ALL_ADA_CFLAGS): Likewise.
36268 (ADA_INCLUDES): Likewise.
36269 Adapt for new working dir.
36270 (GNATBIND): Use Makefile.in version.
36271 (.SUFFIXES): Copy from Makefile.in.
36272 (ada-warn): Define.
36273 (.adb.o, .ads.o): Copy from Makefile.in.
36274 Added $(OUTPUT_OPTION).
36275 (GNAT1_C_OBJS): Moved from Makefile.in.
36276 Prefix with ada subdir.
36277 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
36278 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
36279 Adapt for new working dir.
36280 (EXTRA_GNATBIND_OBJS): Likewise.
36281 (ADA_BACKEND): Moved from Makefile.in.
36282 Renamed to avoid conflict with global BACKEND.
36283 Use that one.
36284 (TARGET_ADA_SRCS): Moved from Makefile.in.
36285 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
36286 Use ADA_BACKEND.
36287 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
36288 (ada_extra_files): Moved from Makefile.in.
36289 Prefix with ada subdir.
36290 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
36291 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
36292 (ada/nmake.ads): Likewise.
36293 (update-sources): Moved from Makefile.in.
36294 Prefix with ada subdir.
36295 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
36296 (ADA_TREE_H): Likewise.
36297 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
36298 (ada/memtrack.o): Likewise.
36299 (ada/adadecode.o): Likewise.
36300 Update dependencies.
36301 (ada/adaint.o): New.
36302 (ada/argv.o): Moved from Makefile.in.
36303 Prefix with ada subdir.
36304 Update dependencies.
36305 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
36306 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
36307 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
36308 Prefix with ada subdir.
36309 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
36310 (GNAT DEPENDENCIES): Regenerate.
36311 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
36312 toplevel Makefile.in.
36313 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
36314 (TARGET_ADA_SRCS): Removed.
36315 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
36316 (GNATBIND_OBJS): Likewise.
36317 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
36318 (BACKEND): Removed.
36319 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
36320 (TREE_H): Likewise.
36321 (ada_extra_files): Likewise.
36322 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
36323 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
36324 (update-sources): Likewise.
36325 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
36326 (ADA_TREE_H): Likewise.
36327 (adadecoce.o): Likewise.
36328 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
36329 (GNAT DEPENDENCIES): Likewise.
36330
36331 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36332
36333 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
36334 * Makefile.in: Likewise.
36335
36336 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36337
36338 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
36339 Restore $(CONFIG_H) and prefix.o dependencies.
36340 (ada.stage[1-4]): Depend on stage?-start.
36341
36342 * Makefile.in (b_gnatb.c): Depend on interfac.o.
36343
36344 2002-05-02 Jim Wilson <wilson@redhat.com>
36345
36346 * utils.c (finish_record_type): Change record_size to record_type.
36347
36348 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
36349
36350 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
36351 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
36352 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
36353
36354 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
36355
36356 * misc.c (gnat_parse_file): Update.
36357
36358 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
36359
36360 * misc.c (gnat_init): Don't set lang_attribute_common.
36361
36362 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
36363
36364 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
36365
36366 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
36367
36368 * gnat_ug.texi: New file.
36369
36370 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
36371 instead of gfdl.texi
36372
36373 * xgnatug.adb, ug_words: New files.
36374
36375 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
36376 gnat_rm and gnat-style manuals.
36377
36378 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
36379
36380 * gigi.h (incomplete_type_error): Remove.
36381 * utils.c (incomplete_type_error): Remove.
36382
36383 2002-04-16 Mark Mitchell <mark@codesourcery.com>
36384
36385 * trans.c (tree_transform): Add has_scope argument to
36386 expand_start_stmt_expr.
36387
36388 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
36389
36390 * gigi.h (truthvalue_conversion): Rename.
36391 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
36392 * trans.c (tree_transform): Update.
36393 * utils2.c (truthvalue_conversion): Rename, update.
36394 (build_binary_op, build_unary_op): Update.
36395
36396 2002-04-04 Laurent Guerby <guerby@acm.org>
36397
36398 * make.adb: Implement -margs, remove restriction about file name placement.
36399 * makeusg.adb: Documentation update.
36400 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
36401 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
36402
36403 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
36404
36405 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
36406 (builtin_function): Similarly.
36407
36408 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
36409
36410 * decl.c (gnat_to_gnu_entity): Update.
36411 * gigi.h (mark_addressable): Rename.
36412 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
36413 * trans.c (tree_transform): Update.
36414 * utils.c (create_var_decl): Update.
36415 * util2.c (build_binary_op, build_unary_op,
36416 fill_vms_descriptor): Update.
36417 (mark_addressable): Rename, update.
36418
36419 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
36420
36421 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
36422 Rename.
36423 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
36424 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
36425 * trans.c (tree_transform, convert_with_check): Update.
36426 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
36427 Rename.
36428
36429 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
36430
36431 * gigi.h (finish_incomplete_decl): Rename.
36432 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
36433 * utils.c (gnat_init_decl_processing): Don't set hook.
36434 (finish_incomplete_decl): Rename.
36435
36436 2002-03-29 Andreas Schwab <schwab@suse.de>
36437
36438 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
36439 directory.
36440
36441 2001-03-28 Robert Dewar <dewar@gnat.com>
36442
36443 * checks.ads:
36444 (Remove_Checks): New procedure
36445
36446 * checks.adb:
36447 (Remove_Checks): New procedure
36448
36449 * exp_util.adb:
36450 Use new Duplicate_Subexpr functions
36451 (Duplicate_Subexpr_No_Checks): New procedure
36452 (Duplicate_Subexpr_No_Checks_Orig): New procedure
36453 (Duplicate_Subexpr): Restore original form (checks duplicated)
36454 (Duplicate_Subexpr): Call Remove_Checks
36455
36456 * exp_util.ads:
36457 (Duplicate_Subexpr_No_Checks): New procedure
36458 (Duplicate_Subexpr_No_Checks_Orig): New procedure
36459 Add 2002 to copyright notice
36460
36461 * sem_util.adb: Use new Duplicate_Subexpr functions
36462
36463 * sem_eval.adb:
36464 (Eval_Indexed_Component): This is the place to call
36465 Constant_Array_Ref and to replace the value. We simply merge
36466 the code of this function in here, since it is now no longer
36467 used elsewhere. This fixes the problem of the back end not
36468 realizing we were clever enough to see that this was
36469 constant.
36470 (Expr_Val): Remove call to Constant_Array_Ref
36471 (Expr_Rep_Val): Remove call to Constant_Array_Ref
36472 Minor reformatting
36473 (Constant_Array_Ref): Deal with string literals (patch
36474 suggested by Zack Weinberg on the gcc list)
36475
36476 2001-03-28 Ed Schonberg <schonber@gnat.com>
36477
36478 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
36479 Duplicate_Subexpr_Move_Checks.
36480
36481 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
36482 Duplicate_Subexpr_Move_Checks.
36483
36484 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
36485 value of array exists before retrieving it (it may a private
36486 protected component in a function).
36487
36488 2002-03-28 Geert Bosch <bosch@gnat.com>
36489
36490 * prj-pp.adb : New file.
36491
36492 * prj-pp.ads : New file.
36493
36494 2002-03-28 Andreas Jaeger <aj@suse.de>
36495
36496 * Makefile.in (stamp-sdefault): Fix path for Makefile.
36497
36498 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
36499
36500 * misc.c (gnat_expand_expr): Move prototype.
36501
36502 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36503
36504 * misc.c (insert_default_attributes): Remove.
36505
36506 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36507
36508 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
36509 (gnat_init): Don't set hook.
36510 (gnat_expand_expr): Fix prototype.
36511
36512 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36513
36514 * misc.c (ggc_p): Remove.
36515
36516 2002-03-27 Geert Bosch <bosch@gnat.com>
36517
36518 * prj-makr.ads, prj-makr.adb : New files.
36519
36520 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
36521
36522 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
36523 (lang_mark_tree): Make static, rename.
36524
36525 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
36526
36527 * misc.c (maybe_build_cleanup): Remove.
36528
36529 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
36530
36531 * gigi.h (yyparse): Remove.
36532
36533 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
36534
36535 From Ben Brosgol <brosgol@gnat.com>
36536 * gnat_rm.texi: Sync with ACT version.
36537
36538 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
36539
36540 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
36541 (gnat_init): Remove old hook.
36542
36543 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
36544
36545 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
36546 (yyparse): Rename gnat_parse_file.
36547
36548 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
36549
36550 Delete all lines containing "$Revision:".
36551 * xeinfo.adb: Don't look for revision numbers.
36552 * xnmake.adb: Likewise.
36553 * xsinfo.adb: Likewise.
36554 * xsnames.adb: Likewise.
36555 * xtreeprs.adb: Likewise.
36556
36557 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36558
36559 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
36560 gnat_tree_code_name): Delete.
36561 (tree_code_type, tree_code_length, tree_code_name): Define.
36562 (gnat_init): Don't try to copy into the various tree_code
36563 arrays.
36564
36565 2002-03-11 Richard Henderson <rth@redhat.com>
36566
36567 * Makefile.in (.NOTPARALLEL): Add fake tag.
36568
36569 2002-03-07 Geert Bosch <bosch@gnat.com>
36570
36571 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
36572 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
36573 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
36574 switch-m.adb, switch-m.ads : New files.
36575
36576 2002-03-07 Geert Bosch <bosch@gnat.com>
36577
36578 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
36579 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
36580 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
36581 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
36582 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
36583 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
36584 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
36585 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
36586 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
36587 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
36588 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
36589 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
36590 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
36591 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
36592 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
36593 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
36594 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
36595 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
36596 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36597 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
36598 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
36599 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
36600 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
36601 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
36602 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
36603 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
36604 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
36605 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
36606 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
36607 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
36608 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
36609 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
36610 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
36611 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
36612 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36613 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
36614 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36615 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
36616 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
36617 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
36618 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
36619 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
36620 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
36621 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
36622 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
36623 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
36624 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
36625 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
36626 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
36627 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
36628 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
36629 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
36630 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
36631 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
36632 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
36633 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
36634 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
36635 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
36636 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
36637 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
36638 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
36639 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
36640 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
36641 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
36642 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
36643 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
36644 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
36645 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
36646 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
36647 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
36648 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
36649 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
36650 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
36651 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36652 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36653 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
36654 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
36655 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36656 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
36657 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36658 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
36659 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
36660 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
36661 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
36662 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
36663 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
36664 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
36665 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
36666 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
36667 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
36668 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
36669 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
36670 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
36671 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
36672 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
36673 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
36674 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
36675
36676 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
36677 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
36678 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
36679 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
36680
36681 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
36682 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
36683
36684 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
36685 to mdll-fil.ad[bs] and mdll-util.ad[bs]
36686
36687 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
36688 from mdllfile.ad[bs] and mdlltool.ad[bs]
36689
36690 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36691
36692 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
36693 lieu of explicit sizeof/sizeof.
36694
36695 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
36696
36697 * misc.c (copy_lang_decl): Remove.
36698
36699 2002-02-27 Zack Weinberg <zack@codesourcery.com>
36700
36701 * misc.c: Delete traditional-mode-related code copied from the
36702 C front end but not used, or used only to permit the compiler
36703 to link.
36704
36705 2002-02-07 Richard Henderson <rth@redhat.com>
36706
36707 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
36708 * adaint.h (__gnat_to_gm_time): Update prototype.
36709
36710 2002-01-30 Richard Henderson <rth@redhat.com>
36711
36712 * trans.c (tree_transform) [N_Loop_Statement]: Use
36713 expand_exit_loop_top_cond.
36714
36715 2001-12-23 Richard Henderson <rth@redhat.com>
36716
36717 * utils.c (end_subprog_body): Push GC context around
36718 rest_of_compilation for nested functions.
36719
36720 2001-12-23 Richard Henderson <rth@redhat.com>
36721
36722 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
36723
36724 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
36725
36726 * gnat-style.texi (Declarations and Types): Remove ancient style
36727 rule which was mandated by code generation issues.
36728
36729 * gnat-style.texi (header): Add @dircategory, @direntry.
36730 (title page): Remove date.
36731 (general) Add @./@: where approriate, and two spaces after the
36732 full stop at the end of a sentence. Use @samp markup when
36733 referring concrete lexical entities (keywords, attribute names
36734 etc.), and @syntax for ARM grammar elements. Use @r for English
36735 text in comments. Use @emph for emphasis. Change "if-statements"
36736 etc. to "if statements" (without @samp). Break long lines. Make
36737 casing of section names consistent.
36738 (Identifiers): Use @samp markup for variable names.
36739 (Comments): Use @samp markup for comment characters. Line-end
36740 comments may follow any Ada code, not just statements. Fix
36741 misspelling of "Integer" as "integer".
36742 (Loop statements): Do not use variable name "I", use "J".
36743 (Subprogram Declarations): Document alignment.
36744 (Subprogram Bodies, Block statements): Document empty line before
36745 "begin".
36746
36747 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
36748
36749 * make.adb (Add_Switch): Make Generic_Position a procedure. The
36750 function approach did not work well because of a side effect (the
36751 function call could reallocate the table which was being indexed
36752 using its result). Fixes ada/4851.
36753
36754 2001-12-19 Robert Dewar <dewar@gnat.com>
36755
36756 * bindgen.adb: Minor reformatting
36757
36758 * cstand.adb: Minor reformatting
36759
36760 * fmap.adb: Minor reformatting
36761 Change name from Add for Add_To_File_Map (Add is much too generic)
36762 Change Path_Name_Of to Mapped_Path_Name
36763 Change File_Name_Of to Mapped_File_Name
36764 Fix copyright dates in header
36765
36766 * fmap.ads:
36767 Change name from Add for Add_To_File_Map (Add is much too generic)
36768 Change Path_Name_Of to Mapped_Path_Name
36769 Change File_Name_Of to Mapped_File_Name
36770 Fix copyright dates in header
36771
36772 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
36773 Add use clause for Fmap.
36774
36775 * make.adb: Minor reformatting
36776
36777 * osint.adb: Minor reformatting. Change of names in Fmap.
36778 Add use clause for Fmap.
36779
36780 * prj-env.adb: Minor reformatting
36781
36782 * prj-env.ads: Minor reformatting
36783
36784 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
36785 error found (there were odd exceptions to this general rule in
36786 -gnatec/-gnatem processing)
36787
36788 2001-12-19 Olivier Hainque <hainque@gnat.com>
36789
36790 * raise.c (__gnat_eh_personality): Exception handling personality
36791 routine for Ada. Still in rough state, inspired from the C++ version
36792 and still containing a bunch of debugging artifacts.
36793 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
36794 inspired from the C++ library.
36795
36796 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
36797 exception handling integration.
36798
36799 2001-12-19 Arnaud Charlet <charlet@gnat.com>
36800
36801 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
36802 (HIE_SOURCES): Add s-secsta.ad{s,b}.
36803 (HIE_OBJS): Add s-fat*.o
36804 (RAVEN_SOURCES): Remove files that are no longer required. Add
36805 interrupt handling files.
36806 (RAVEN_MOD): Removed, no longer needed.
36807
36808 2001-12-19 Robert Dewar <dewar@gnat.com>
36809
36810 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
36811 Add 2001 to copyright date
36812
36813 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
36814 need to force universal inlining for these cases.
36815
36816 2001-12-19 Arnaud Charlet <charlet@gnat.com>
36817
36818 * s-taprob.adb: Minor clean ups so that this unit can be used in
36819 Ravenscar HI.
36820
36821 * exp_ch7.adb: Allow use of secondary stack in HI mode.
36822 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
36823
36824 2001-12-19 Vincent Celier <celier@gnat.com>
36825
36826 * prj-tree.ads (Project_Node_Record): Add comments for components
36827 Pkg_Id and Case_Insensitive.
36828
36829 2001-12-19 Pascal Obry <obry@gnat.com>
36830
36831 * g-socket.adb: Minor reformatting. Found while reading code.
36832
36833 2001-12-19 Robert Dewar <dewar@gnat.com>
36834
36835 * prj-tree.ads: Minor reformatting
36836
36837 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
36838
36839 * config-lang.in (diff_excludes): Remove.
36840
36841 2001-12-17 Ed Schonberg <schonber@gnat.com>
36842
36843 * sem_res.adb (Resolve_Selected_Component): do not generate a
36844 discriminant check if the selected component is a component of
36845 the argument of an initialization procedure.
36846
36847 * trans.c (tree_transform, case of arithmetic operators): If result
36848 type is private, the gnu_type is the base type of the full view,
36849 given that the full view itself may be a subtype.
36850
36851 2001-12-17 Robert Dewar <dewar@gnat.com>
36852
36853 * sem_res.adb: Minor reformatting
36854
36855 * trans.c (tree_transform, case N_Real_Literal): Add missing third
36856 parameter in call to Machine (unknown horrible effects from this
36857 omission).
36858
36859 * urealp.h: Add definition of Round_Even for call to Machine
36860 Add third parameter for Machine
36861
36862 2001-12-17 Ed Schonberg <schonber@gnat.com>
36863
36864 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
36865 predefined units in No_Run_Time mode.
36866
36867 2001-12-17 Richard Kenner <kenner@gnat.com>
36868
36869 * misc.c (insn-codes.h): Now include.
36870
36871 2001-12-17 Olivier Hainque <hainque@gnat.com>
36872
36873 * a-except.adb: Preparation work for future integration of the GCC 3
36874 exception handling mechanism
36875 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
36876 to factorize previous code sequences and make them externally callable,
36877 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
36878 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
36879 Use the new notification routines.
36880
36881 2001-12-17 Emmanuel Briot <briot@gnat.com>
36882
36883 * prj-tree.ads (First_Choice_Of): Document the when others case
36884
36885 2001-12-17 Arnaud Charlet <charlet@gnat.com>
36886
36887 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
36888 HI-E mode, in order to support Ravenscar profile properly.
36889
36890 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
36891 mode on 32 bits targets.
36892
36893 2001-12-17 Vincent Celier <celier@gnat.com>
36894
36895 * fmap.adb: Initial version.
36896
36897 * fmap.ads: Initial version.
36898
36899 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
36900 If search is successfully done, add to mapping.
36901
36902 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
36903
36904 * make.adb:
36905 (Gnatmake): Add new local variable Mapping_File_Name.
36906 Create mapping file when using project file(s).
36907 Delete mapping file before exiting.
36908
36909 * opt.ads (Mapping_File_Name): New variable
36910
36911 * osint.adb (Find_File): Use path name found in mapping, if any.
36912
36913 * prj-env.adb (Create_Mapping_File): New procedure
36914
36915 * prj-env.ads (Create_Mapping_File): New procedure.
36916
36917 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
36918 (Mapping_File)
36919
36920 * usage.adb: Add entry for new switch -gnatem.
36921
36922 * Makefile.in: Add dependencies for fmap.o.
36923
36924 2001-12-17 Ed Schonberg <schonber@gnat.com>
36925
36926 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
36927 is a package instantiation rewritten as a package body.
36928 (Install_Withed_Unit): Undo previous change, now redundant.
36929
36930 2001-12-17 Gary Dismuke <dismukes@gnat.com>
36931
36932 * layout.adb:
36933 (Compute_Length): Move conversion to Unsigned to callers.
36934 (Get_Max_Size): Convert Len expression to Unsigned after calls to
36935 Compute_Length and Determine_Range.
36936 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
36937 Compute_Length and Determine_Range.
36938 Above changes fix problem with length computation for supernull arrays
36939 where Max (Len, 0) wasn't getting applied due to the Unsigned
36940 conversion used by Compute_Length.
36941
36942 2001-12-17 Arnaud Charlet <charlet@gnat.com>
36943
36944 * rtsfind.ads:
36945 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
36946 System.Secondary_Stack.
36947 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
36948 in HI-E mode.
36949 Remove unused entity RE_Exception_Data.
36950
36951 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
36952
36953 * rident.ads (No_Secondary_Stack): New restriction.
36954
36955 2001-12-17 Joel Brobecker <brobecke@gnat.com>
36956
36957 * gnat_rm.texi: Fix minor typos. Found while reading the section
36958 regarding "Bit_Order Clauses" that was sent to a customer.
36959 Very interesting documentation!
36960
36961 2001-12-17 Robert Dewar <dewar@gnat.com>
36962
36963 * sem_case.adb (Choice_Image): Avoid creating improper character
36964 literal names by using the routine Set_Character_Literal_Name. This
36965 fixes bombs in certain error message cases.
36966
36967 2001-12-17 Arnaud Charlet <charlet@gnat.com>
36968
36969 * a-reatim.adb: Minor reformatting.
36970
36971 2001-12-17 Ed Schonberg <schonber@gnat.com>
36972
36973 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
36974 case where the formal is an extension of another formal in the current
36975 unit or in a parent generic unit.
36976
36977 2001-12-17 Arnaud Charlet <charlet@gnat.com>
36978
36979 * s-tposen.adb: Update comments. Minor reformatting.
36980 Minor code clean up.
36981
36982 * s-tarest.adb: Update comments. Minor code reorganization.
36983
36984 2001-12-17 Gary Dismukes <dismukes@gnat.com>
36985
36986 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
36987 when Java_VM.
36988
36989 2001-12-17 Robert Dewa <dewar@gnat.com>
36990
36991 * exp_attr.adb: Minor reformatting
36992
36993 2001-12-17 Ed Schonberg <schonber@gnat.com>
36994
36995 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
36996 derivations nested within a child unit: verify that the parent
36997 type is declared in an outer scope.
36998
36999 2001-12-17 Robert Dewar <dewar@gnat.com>
37000
37001 * sem_ch12.adb: Minor reformatting
37002
37003 2001-12-17 Ed Schonberg <schonber@gnat.com>
37004
37005 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
37006 warning if current unit is a predefined one, from which bodies may
37007 have been deleted.
37008
37009 2001-12-17 Robert Dewar <dewar@gnat.com>
37010
37011 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
37012 Fix header format. Add 2001 to copyright date.
37013
37014 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
37015 which caused CE during compilation if checks were enabled.
37016
37017 2001-12-17 Vincent Celier <celier@gnat.com>
37018
37019 * make.adb:
37020 (Switches_Of): New function
37021 (Test_If_Relative_Path): New procedure
37022 (Add_Switches): Use new function Switches_Of
37023 (Collect_Arguments_And_Compile): Use new function Switches_Of.
37024 When using a project file, test if there are any relative
37025 search path. Fail if there are any.
37026 (Gnatmake): Only add switches for the primary directory when not using
37027 a project file. When using a project file, change directory to the
37028 object directory of the main project file. When using a project file,
37029 test if there are any relative search path. Fail if there are any.
37030 When using a project file, fail if specified executable is relative
37031 path with directory information, and prepend executable, if not
37032 specified as an absolute path, with the exec directory. Make sure
37033 that only one -o switch is transmitted to the linker.
37034
37035 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
37036
37037 * prj-nmsc.adb:
37038 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
37039 when using a non standard naming scheme.
37040 (Check_Ada_Naming_Scheme): Make sure that error messages
37041 do not raise exceptions.
37042 (Is_Illegal_Append): Return True if there is no dot in the suffix.
37043 (Language_Independent_Check): Check the exec directory.
37044
37045 * prj.adb (Project_Empty): Add new component Exec_Directory
37046
37047 * prj.ads:
37048 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
37049 (Project_Data): Add component Exec_Directory
37050
37051 * snames.adb: Updated to match snames.ads revision 1.215
37052
37053 * snames.ads: Added Exec_Dir
37054
37055 2001-12-17 Robert Dewar <dewar@gnat.com>
37056
37057 * make.adb: Minor reformatting
37058
37059 * prj-nmsc.adb: Minor reformatting
37060
37061 * snames.adb: Updated to match snames.ads
37062
37063 * snames.ads: Alphebetize entries for project file
37064
37065 2001-12-17 Ed Schonberg <schonber@gnat.com>
37066
37067 * trans.c (process_freeze_entity): Do nothing if the entity is a
37068 subprogram that was already elaborated.
37069
37070 2001-12-17 Richard Kenner <kenner@gnat.com>
37071
37072 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
37073 and Esize if object is referenced via pointer.
37074
37075 2001-12-17 Ed Schonberg <schonber@gnat.com>
37076
37077 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
37078 is discrete before analyzing choices.
37079
37080 2001-12-17 Joel Brobecker <brobecke@gnat.com>
37081
37082 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
37083 containing the name of the Ada Main Program. This string is mainly
37084 intended for the debugger.
37085 (Gen_Output_File_C): Do the equivalent change when generating a C file.
37086
37087 2001-12-17 Robert Dewar <dewar@gnat.com>
37088
37089 * ali.adb: Set new Dummy_Entry field in dependency entry
37090
37091 * ali.ads: Add Dummy_Entry field to source dependency table
37092
37093 * bcheck.adb (Check_Consistency): Ignore dummy D lines
37094
37095 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
37096
37097 * lib-writ.ads: Document dummy D lines for missing files.
37098
37099 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
37100
37101 2001-12-17 Robert Dewar <dewar@gnat.com>
37102
37103 * ali.adb: Type reference does not reset current file.
37104
37105 * ali.adb: Recognize and scan renaming reference
37106
37107 * ali.ads: Add spec for storing renaming references.
37108
37109 * lib-xref.ads: Add documentation for handling of renaming references
37110
37111 * lib-xref.adb: Implement output of renaming reference.
37112
37113 * checks.adb:
37114 (Determine_Range): Document local variables
37115 (Determine_Range): Make sure Hbound is initialized. It looks as though
37116 there could be a real problem here with an uninitialized reference
37117 to Hbound, but no actual example of failure has been found.
37118
37119 2001-12-17 Laurent Pautet <pautet@gnat.com>
37120
37121 * g-socket.ads:
37122 Fix comment of Shutdown_Socket and Close_Socket. These functions
37123 should not fail silently because if they are called twice, this
37124 probably means that there is a race condition in the user program.
37125 Anyway, this behaviour is consistent with the rest of this unit.
37126 When an error occurs, an exception is raised with the error message
37127 as exception message.
37128
37129 2001-12-17 Robert Dewar <dewar@gnat.com>
37130
37131 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
37132 that it happens before modification of Sloc values for -gnatD.
37133
37134 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
37135 so that it happens before modification of Sloc values for -gnatD.
37136
37137 * switch.adb: Minor reformatting
37138
37139 2001-12-15 Richard Henderson <rth@redhat.com>
37140
37141 * sem_ch7.adb: Wrap comment.
37142
37143 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
37144
37145 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
37146 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
37147 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
37148 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
37149 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
37150 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
37151 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
37152 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
37153 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
37154 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
37155 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
37156 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
37157 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
37158 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
37159 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
37160 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
37161 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
37162 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
37163 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
37164 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
37165 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
37166 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
37167 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
37168 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
37169 spelling errors.
37170
37171 2001-12-14 Vincent Celier <celier@gnat.com>
37172
37173 * osint.adb(Create_Debug_File): When an object file is specified,
37174 put the .dg file in the same directory as the object file.
37175
37176 2001-12-14 Robert Dewar <dewar@gnat.com>
37177
37178 * osint.adb: Minor reformatting
37179
37180 * lib-xref.adb (Output_Instantiation): New procedure to generate
37181 instantiation references.
37182
37183 * lib-xref.ads: Add documentation of handling of generic references.
37184
37185 * ali.adb (Read_Instantiation_Ref): New procedure to read
37186 instantiation references
37187
37188 * ali.ads: Add spec for storing instantiation references
37189
37190 * bindusg.adb: Minor reformatting
37191
37192 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37193
37194 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37195
37196 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37197
37198 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37199
37200 * csets.ads:
37201 Fix header format
37202 Add 2001 to copyright date
37203 Add entry for Latin-5 (Cyrillic ISO-8859-5)
37204
37205 2001-12-14 Matt Gingell <gingell@gnat.com>
37206
37207 * adaint.c: mktemp is a macro on Lynx and can not be used as an
37208 expression.
37209
37210 2001-12-14 Richard Kenner <kenner@gnat.com>
37211
37212 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
37213 if operand is CONSTRUCTOR.
37214
37215 2001-12-14 Ed Schonberg <schonber@gnat.com>
37216
37217 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
37218 before emiting check on right-hand side, so that exception information
37219 is correct.
37220
37221 2001-12-14 Richard Kenner <kenner@gnat.com>
37222
37223 * utils.c (create_var_decl): Throw away initializing expression
37224 if just annotating types and non-constant.
37225
37226 2001-12-14 Vincent Celier <celier@gnat.com>
37227
37228 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
37229 Default_Ada_...
37230
37231 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37232 Remove functions.
37233 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
37234
37235 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37236 Remove functions.
37237 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
37238
37239 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
37240
37241 * ChangeLog: Remove piece of diff output.
37242
37243 2001-12-14 Geert Bosch <bosch@gnat.com>
37244
37245 * config-lang.in: Update copyright notice
37246
37247 * layout.adb: Remove commented out code.
37248
37249 * mdllfile.ads: Update copyright notice. Fix header format.
37250
37251 * sem_case.ads: Likewise.
37252
37253 * sem_ch3.adb: Minor reformatting.
37254
37255 2001-12-12 Geert Bosch <bosch@gnat.com>
37256
37257 * freeze.ads: Update copyright date.
37258
37259 * g-comlin.ads: Minor reformatting.
37260
37261 * gnat-style.texi: Fix typo.
37262
37263 2001-12-12 Geert Bosch <bosch@gnat.com>
37264
37265 * einfo.h: Regenerate.
37266
37267 2001-12-12 Ed Schonberg <schonber@gnat.com>
37268
37269 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
37270 on known node types, rather than untyped fields. Further cleanups.
37271
37272 2001-12-12 Robert Dewar <dewar@gnat.com>
37273
37274 * sem_ch12.adb:
37275 (Save_Entity_Descendant): Minor comment update.
37276 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
37277 of an N_Attribute_Reference node. As per note below, this does not
37278 eliminate need for Associated_Node in attribute ref nodes.
37279 (Associated_Node): Documentation explicitly mentions attribute
37280 reference nodes, since this field is used in such nodes.
37281
37282 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
37283
37284 2001-12-12 Robert Dewar <dewar@gnat.com>
37285
37286 * s-stalib.adb: Add more comments on with statements being needed
37287
37288 * par-ch12.adb: Minor reformatting
37289
37290 * prj-dect.ads: Fix copyright header
37291
37292 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
37293 inputs fit in 32 bits, but the result still overflows.
37294
37295 * s-fatgen.ads: Minor comment improvement
37296
37297 2001-12-12 Ed Schonberg <schonber@gnat.com>
37298
37299 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
37300 formal derived type, look for an inherited component from the full
37301 view of the parent, if any.
37302
37303 2001-12-12 Robert Dewar <dewar@gnat.com>
37304
37305 * checks.ads (Apply_Alignment_Check): New procedure.
37306
37307 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
37308 ensure that the alignment of objects with address clauses is
37309 appropriate, and raise PE if not.
37310
37311 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
37312 Exp_Pakd.Known_Aligned_Enough
37313
37314 * mdllfile.ads: Minor reformatting
37315
37316 * mlib-fil.ads: Minor reformatting
37317
37318 2001-12-12 Ed Schonberg <schonber@gnat.com>
37319
37320 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
37321 fix to any component reference if enclosing record has non-standard
37322 representation.
37323
37324 2001-12-12 Vincent Celier <celier@gnat.com>
37325
37326 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
37327 Iteration
37328
37329 2001-12-12 Ed Schonberg <schonber@gnat.com>
37330
37331 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
37332 sem_attr.
37333
37334 2001-12-12 Robert Dewar <dewar@gnat.com>
37335
37336 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
37337
37338 2001-12-12 Emmanuel Briot <briot@gnat.com>
37339
37340 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
37341 and it adds dependencies to system.io.
37342
37343 2001-12-12 Pascal Obry <obry@gnat.com>
37344
37345 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
37346 variable name.
37347
37348 2001-12-11 Ed Schonberg <schonber@gnat.com>
37349
37350 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
37351 that is the parent of other generics, the instance body replaces the
37352 instance node. Retrieve the instance of the spec, which is the one
37353 that is visible in clients and within the body.
37354
37355 2001-12-11 Vincent Celier <celier@gnat.com>
37356
37357 * gnatmain.adb: Initial version.
37358
37359 * gnatmain.ads: Initial version.
37360
37361 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
37362
37363 * snames.adb: Updated to match snames.ads.
37364
37365 * snames.ads: Added Gnatstub.
37366
37367 2001-12-11 Vincent Celier <celier@gnat.com>
37368
37369 * prj-attr.adb (Initialization_Data): Change name from
37370 Initialisation_Data.
37371
37372 2001-12-11 Emmanuel Briot <briot@gnat.com>
37373
37374 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
37375 + and * applied to backslashed expressions like \r.
37376
37377 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
37378
37379 * g-os_lib.ads: String_List type added, Argument_List type is now
37380 subtype of String_List.
37381
37382 2001-12-11 Robert Dewar <dewar@gnat.com>
37383
37384 * g-os_lib.ads: Change copyright to FSF
37385 Add comments for String_List type
37386
37387 2001-12-11 Vincent Celier <celier@gnat.com>
37388
37389 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
37390 string to the buffer).
37391
37392 2001-12-11 Ed Schonberg <schonber@gnat.com>
37393
37394 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
37395 sem_attr.
37396
37397 * sem_attr.adb: Simplify previous fix for Address.
37398 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
37399 to avoid anomalies where the bound of the type appears to raise
37400 constraint error.
37401
37402 2001-12-11 Robert Dewar <dewar@gnat.com>
37403
37404 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
37405 handled.
37406
37407 2001-12-11 Ed Schonber <schonber@gnat.com>
37408
37409 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
37410 renamed unit before checking for recursive instantiations.
37411
37412 2001-12-11 Emmanuel Briot <briot@gnat.com>
37413
37414 * prj.ads: Add comments for some of the fields.
37415
37416 2001-12-11 Robert Dewar <dewar@gnat.com>
37417
37418 * lib-xref.adb (Output_Refs): Don't output type references outside
37419 the main unit if they are not otherwise referenced.
37420
37421 2001-12-11 Ed Schonberg <schonber@gnat.com>
37422
37423 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
37424 code and diagnose additional illegal uses
37425
37426 * sem_util.adb (Is_Object_Reference): An indexed component is an
37427 object only if the prefix is.
37428
37429 2001-12-11 Vincent Celier <celier@gnat.com>
37430
37431 * g-diopit.adb: Initial version.
37432
37433 * g-diopit.ads: Initial version.
37434
37435 * g-dirope.adb:
37436 (Expand_Path): Avoid use of Unbounded_String
37437 (Find, Wildcard_Iterator): Moved to child package Iteration
37438
37439 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
37440
37441 2001-12-11 Robert Dewar <dewar@gnat.com>
37442
37443 * sem_attr.adb: Minor reformatting
37444
37445 2001-12-11 Ed Schonberg <schonber@gnat.com>
37446
37447 * sem_ch3.adb: Clarify some ???.
37448
37449 2001-12-11 Robert Dewar <dewar@gnat.com>
37450
37451 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
37452 Exp_Pakd.Known_Aligned_Enough
37453
37454 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
37455 version is moved to Exp_Ch13.
37456
37457 2001-12-11 Robert Dewar <dewar@gnat.com>
37458
37459 * einfo.ads: Minor reformatting
37460
37461 * exp_ch5.adb: Add comment for previous.change
37462
37463 * ali.adb: New interface for extended typeref stuff.
37464
37465 * ali.ads: New interface for typeref stuff.
37466
37467 * checks.adb (Apply_Alignment_Check): New procedure.
37468
37469 * debug.adb: Add -gnatdM for modified ALI output
37470
37471 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
37472
37473 * lib-xref.adb: Extend generation of <..> notation to cover
37474 subtype/object types. Note that this is a complete rewrite,
37475 getting rid of the very nasty quadratic algorithm previously
37476 used for derived type output.
37477
37478 * lib-xref.ads: Extend description of <..> notation to cover
37479 subtype/object types. Uses {..} for these other cases.
37480 Also use (..) for pointer types.
37481
37482 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
37483
37484 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
37485 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
37486
37487 2001-12-11 Vincent Celier <celier@gnat.com>
37488
37489 * gnatcmd.adb:
37490 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
37491 Changed /BIND_ONLY to /ACTIONS=BIND
37492 Changed /LINK_ONLY to /ACTIONS=LINK
37493
37494 2001-12-11 Ed Schonberg <schonber@gnat.com>
37495
37496 * sem_ch8.adb (Find_Selected_Component): improved search for a
37497 candidate package in case of error.
37498
37499 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
37500 chain back on scope stack before reinstalling use clauses.
37501
37502 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
37503 is enabled, do not kill the code for the condition, to preserve
37504 warning.
37505
37506 2001-12-11 Robert Dewar <dewar@gnat.com>
37507
37508 * checks.adb (Insert_Valid_Check): Apply validity check to expression
37509 of conversion, not to result of conversion.
37510
37511 2001-12-11 Ed Schonberg <schonber@gnat.com>
37512
37513 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
37514 before freezing parent. If the declarations are mutually recursive,
37515 an access to the current record type may be frozen before the
37516 derivation is complete.
37517
37518 2001-12-05 Vincent Celier <celier@gnat.com>
37519
37520 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
37521 -c /COMPILE_ONLY, -l /LINK_ONLY
37522
37523 * opt.ads:
37524 (Bind_Only): New Flag
37525 (Link_Only): New flag
37526
37527 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
37528 and -l (Link_Only)
37529
37530 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
37531
37532 * make.adb:
37533 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
37534 (Gnatmake): Set the step flags. Only perform a step if the
37535 corresponding step flag is True.
37536 (Scan_Make_Arg): Reset the bind and link step flags when -u
37537 or -gnatc has been specified.
37538
37539 2001-12-05 Ed Schonberg <schonber@gnat.com>
37540
37541 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
37542 get bounds from right operand.
37543
37544 * sem_eval.adb: Minor reformatting
37545
37546 * exp_util.adb (Make_Literal_Range): use bound of literal rather
37547 than Index'First, its lower bound may be different from 1.
37548
37549 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
37550 and C48009J
37551
37552 2001-12-05 Vincent Celier <celier@gnat.com>
37553
37554 * prj-nmsc.adb Minor reformatting
37555
37556 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
37557 set and libraries are not supported.
37558
37559 2001-12-05 Ed Schonberg <schonber@gnat.com>
37560
37561 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
37562 private view explicitly, so the back-end can treat as a global
37563 when appropriate.
37564
37565 2001-12-05 Ed Schonberg <schonber@gnat.com>
37566
37567 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
37568 unit, always replace instance node with new body, for ASIS use.
37569
37570 2001-12-05 Vincent Celier <celier@gnat.com>
37571
37572 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
37573 libraries are not supported and both attributes Library_Name and
37574 Library_Dir are specified.
37575
37576 * prj-proc.adb (Expression): Set location of Result to location of
37577 first term.
37578
37579 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
37580 (prj-nmsc is now importing MLib.Tgt)
37581
37582 * prj-proc.adb: Put the change indicated above that was forgotten.
37583
37584 2001-12-05 Robert Dewar <dewar@gnat.com>
37585
37586 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
37587
37588 2001-12-05 Ed Schonberg <schonber@gnat.com>
37589
37590 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
37591 constraint, introduce explicit subtype declaration and derive from it.
37592
37593 * sem_ch3.adb: Minor reformatting
37594
37595 2001-12-05 Robert Dewar <dewar@gnat.com>
37596
37597 * checks.adb (Determine_Range): Increase cache size for checks.
37598 Minor reformatting
37599
37600 * exp_ch6.adb: Minor reformatting
37601 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
37602 a parameter whose root type is System.Address, since treating such
37603 subprograms as pure in the code generator is almost surely a mistake
37604 that will lead to unexpected results.
37605
37606 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
37607 change handling of conversions.
37608
37609 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
37610
37611 2001-12-05 Ed Schonberg <schonber@gnat.com>
37612
37613 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
37614 aggregate with static wrong size, attach generated Raise node to
37615 declaration.
37616
37617 2001-12-05 Robert Dewar <dewar@gnat.com>
37618
37619 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
37620 Fixes compilation abandoned bomb in B24009B.
37621
37622 2001-12-05 Ed Schonberg <schonber@gnat.com>
37623
37624 * sem_ch12.adb:
37625 Document use of Associated_Node on Selected_Components.
37626 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
37627 to clarify use of untyped descendant fields.
37628
37629 2001-12-05 Robert Dewar <dewar@gnat.com>
37630
37631 * prj-dect.ads: Add ??? comment
37632 Add 2001 to copyright notice (was not done in after all)
37633
37634 * prj-part.adb: Minor reformatting. Reword one awkward error message.
37635
37636 * prj.ads: Minor reformatting throughout, and add some ??? comments
37637
37638 * snames.ads: Minor reformatting
37639
37640 2001-12-05 Geert Bosch <bosch@gnat.com>
37641
37642 * snames.adb: Autoupdate
37643
37644 2001-12-05 Vincent Celier <celier@gnat.com>
37645
37646 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
37647
37648 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
37649
37650 * prj-env.adb: Minor comment changes (modifying -> extends).
37651
37652 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
37653
37654 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
37655 Tok_Extends.
37656
37657 * prj.adb (Initialize): Change Modifying to Extends.
37658
37659 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
37660
37661 * prj.ads: Minor comment change (Modifying -> extending).
37662
37663 * snames.ads: Change modifying to extends.
37664
37665 2001-12-05 Robert Dewar <dewar@gnat.com>
37666
37667 * sem_warn.adb: Remove stuff for conditionals, we are not going to
37668 do this after all.
37669
37670 * sem_warn.ads: Remove stuff for conditionals, we are not going to
37671 do this after all. Add 2001 to copyright notice
37672
37673 2001-12-04 Geert Bosch <bosch@gnat.com>
37674
37675 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
37676
37677 2001-12-04 Robert Dewar <dewar@gnat.com>
37678
37679 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
37680 location if we already have errors. Stops some cases of cascaded
37681 errors.
37682
37683 * errout.adb: Improve comment.
37684
37685 2001-12-04 Robert Dewar <dewar@gnat.com>
37686
37687 * sem_ch12.adb:
37688 (Analyze_Formal_Type_Definition): Defend against Error.
37689 (Analyze_Formal_Subprogram): Defend against Error.
37690
37691 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
37692 remove following semicolon if present. Removes cascaded error.
37693
37694 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
37695
37696 * bindgen.adb:
37697 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
37698 exceptions equals 0.
37699 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
37700 Fixes PIWG E tests (which have to be run with -gnatL).
37701
37702 2001-12-04 Robert Dewar <dewar@gnat.com>
37703
37704 * einfo.ads: Minor reformatting
37705
37706 2001-12-04 Ed Schonberg <schonber@gnat.com>
37707
37708 * einfo.ads: Block_Node points to the identifier of the block, not to
37709 the block node itself, to preserve the link when the block is
37710 rewritten, e.g. within an if-statement with a static condition.
37711
37712 * inline.adb (Cleanup_Scopes): recover block statement from block
37713 entity using new meaning of Block_Node.
37714
37715 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
37716 identifier of block node, rather than to node itself.
37717
37718 2001-12-04 Gary Dismukes <dismukes@gnat.com>
37719
37720 * layout.adb:
37721 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
37722 (Discrimify): Go back to setting the Etypes of the selected component
37723 because the Vname component does not exist at this point and will
37724 fail name resolution. Also set Analyzed.
37725 Remove with and use of Sem_Res.
37726
37727 2001-12-04 Arnaud Charlet <charlet@gnat.com>
37728
37729 * Makefile.in: (HIE_SOURCES): add s-fat*.
37730
37731 2001-12-04 Robert Dewar <dewar@gnat.com>
37732
37733 * sem_attr.adb:
37734 (Compile_Time_Known_Attribute): New procedure.
37735 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
37736 proper range check.
37737
37738 2001-12-04 Ed Schonberg <schonber@gnat.com>
37739
37740 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
37741 processing discriminants to diagnose illegal default values.
37742
37743 2001-12-04 Ed Schonberg <schonber@gnat.com>
37744
37745 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
37746 access discriminant within a type extension that constrains its
37747 parent discriminants.
37748
37749 2001-12-04 Ed Schonberg <schonber@gnat.com>
37750
37751 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
37752 is malformed, use instance of Any_Id to allow analysis to proceed.
37753
37754 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
37755 type definition is illegal.
37756 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
37757 misplaced.
37758
37759 2001-12-04 Ed Schonberg <schonber@gnat.com>
37760
37761 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
37762 constants.
37763
37764 2001-12-04 Robert Dewar <dewar@gnat.com>
37765
37766 * errout.adb: Minor reformatting
37767
37768 2001-12-04 Robert Dewar <dewar@gnat.com>
37769
37770 * exp_util.adb: Minor reformatting from last change
37771
37772 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
37773 which is a rewriting of an expression, traverse the original
37774 expression to remove warnings that may have been posted on it.
37775
37776 2001-12-04 Ed Schonberg <schonber@gnat.com>
37777
37778 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
37779 record that has other packed components.
37780
37781 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
37782
37783 * adaint.c: Minor cleanups.
37784
37785 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
37786
37787 * adaint.c: Do not use utime.h on vxworks.
37788
37789 2001-12-04 Arnaud Charlet <charlet@gnat.com>
37790
37791 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
37792 more confusion than it solves.
37793
37794 2001-12-04 Geert bosch <bosch@gnat.com>
37795
37796 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
37797
37798 2001-12-04 Geert Bosch <bosch@gnat.com>
37799
37800 * Makefile.in (update-sources): New target.
37801 For use by gcc_release script.
37802
37803 2001-12-04 Ed Schonberg <schonber@gnat.com>
37804
37805 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
37806 a configuration pragma, it is now legal wherever a pragma can appear.
37807
37808 2001-12-04 Zack Weinberg <zack@codesourcery.com>
37809
37810 * Makefile.in: Don't set ALL. Delete @cross_defines@,
37811 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
37812 is now @CROSS@ -DIN_GCC; update comment.
37813
37814 2001-12-04 Robert Dewar <dewar@gnat.com>
37815
37816 * einfo.adb (Has_Pragma_Pure_Function): New flag.
37817 Fix problem that stopped ceinfo from working
37818
37819 * einfo.ads (Has_Pragma_Pure_Function): New flag.
37820
37821 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
37822
37823 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
37824
37825 * gnatchop.adb:
37826 (File_Time_Stamp): New procedure.
37827 (Preserve_Mode): New boolean.
37828 (Write_Unit): Pass time stamp.
37829 Implement -p switch (preserve time stamps).
37830
37831 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
37832
37833 * gnatchop.adb: Do usage info for -p switch
37834
37835 * adaint.h (__gnat_set_file_time_name): New function
37836
37837 * adaint.c (__gnat_set_file_time_name): Implement
37838
37839 * adaint.h: Fix typo
37840
37841 2001-12-03 Robert Dewar <dewar@gnat.com>
37842
37843 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
37844 have Associated_Node.
37845
37846 2001-12-03 Robert Dewar <dewar@gnat.com>
37847
37848 * prj-proc.adb: Minor reformatting
37849
37850 * make.adb: Minor reformatting
37851
37852 2001-12-03 Geert Bosch <bosch@gnat.com>
37853
37854 * make.adb: Minor reformatting.
37855
37856 2001-12-03 Robert Dewar <dewar@gnat.com>
37857
37858 * sem_ch12.adb: Minor reformatting
37859
37860 2001-12-03 Ed Schonberg <schonber@gnat.com>
37861
37862 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
37863 push Standard on the stack before analyzing the instance body,
37864 in order to have a clean visibility environment.
37865
37866 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
37867
37868 2001-12-03 Ed Schonberg <schonber@gnat.com>
37869
37870 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
37871 instantiation of a body that contains an inlined body.
37872
37873 2001-12-03 Ed Schonberg <schonber@gnat.com>
37874
37875 * sem_ch12.adb:
37876 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
37877 to prevent freezing within formal packages.
37878 (Freeze_Subprogram_Body): If body comes from another instance that
37879 appeared before its own body, place freeze node at end of current
37880 declarative part, to prevent a back-end crash.
37881 (Inline_Instance_Body): Handle properly a package instance within
37882 a subprogram instance that is a child unit.
37883
37884 2001-12-01 Graham Stott <grahams@redhat.com>
37885
37886 * Makefile.in (misc.o): Add missing $(srcdir) prefix
37887 and add optabs.h dependency.
37888
37889 * misc.c: Include optabs.h
37890 (gnat_tree_code_type): Make static and const.
37891 (gnat_tree_code_length): Likewise.
37892 (gnat_tree_code_name): Likewise.
37893 (update_setjmp_buf): Obtain operands mode from insn_data.
37894
37895 2001-11-29 Richard Henderson <rth@redhat.com>
37896
37897 * init.c: Remove obsolete dwarf2 frame.h section.
37898
37899 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
37900
37901 * Make-lang.in (ada.generated-manpages): New dummy target.
37902
37903 2001-11-29 Ed Schonberg <schonber@gnat.com>
37904
37905 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
37906 into Command, an array conversion is illegal here. Uncovered by
37907 ACATS B460005.
37908
37909 2001-11-28 Geert Bosch <bosch@gnat.com>
37910
37911 * init.c: Minor whitespace changes.
37912
37913 2001-11-28 Doug Rupp <rupp@gnat.com>
37914
37915 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
37916 signal stack.
37917
37918 2001-11-28 Zack Weinberg <zack@codesourcery.com>
37919
37920 * misc.c (gnat_expand_constant): Move declaration above
37921 definition of lang_hooks.
37922 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
37923 (gnat_init): lang_expand_constant no longer exists.
37924
37925 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
37926 always have vprintf.
37927 (gnat_init): Always call set_internal_error_function.
37928
37929 2001-11-27 Andreas Jaeger <aj@suse.de>
37930
37931 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
37932
37933 2001-11-27 Laurent Guerby <guerby@acm.org>
37934
37935 * Makefile.in: Regenerate Ada dependencies.
37936
37937 2001-11-26 Richard Henderson <rth@redhat.com>
37938
37939 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
37940 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
37941 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
37942
37943 2001-11-25 Laurent Guerby <guerby@acm.org>
37944
37945 * sysdep.c (rts_get_*): Fix style.
37946
37947 2001-11-19 Laurent Guerby <guerby@acm.org>
37948
37949 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
37950 since it is of no apparent use and cause warnings.
37951
37952 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
37953
37954 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
37955 static too.
37956 (gnat_init): Don't return NULL.
37957 (finish_parse): Remove.
37958
37959 2001-11-17 Laurent Guerby <guerby@acm.org>
37960
37961 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
37962 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
37963 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
37964 * lang-spec.h: Add missing struct field to silence warnings.
37965 * sysdep.c (rts_get_*): Provide K&R prototype.
37966 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
37967 * traceback.c (Unlock_Task, Lock_Task): Likewise.
37968 * tracebak.c (__gnat_backtrace): Remove unused variable.
37969 * utils.c (end_subprog_body): Move to K&R style.
37970
37971 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37972
37973 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
37974
37975 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
37976
37977 * misc.c (gnat_init): Change prototype. Include the
37978 functionality of the old init_parse and init_decl_processing.
37979 (gnat_init_decl_processing): New prototype.
37980 (init_parse): Remove.
37981 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
37982
37983 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
37984
37985 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
37986 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
37987 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
37988 set_yydebug): Remove.
37989
37990 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
37991
37992 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
37993 (struct lang_hooks): Constify.
37994 (language_string, lang_identify): Remove.
37995 * utils.c (init_decl_processing): Update.
37996
37997 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
37998
37999 * misc.c: Include langhooks-def.h.
38000 * Makefile.in: Update.
38001
38002 2001-10-30 Robert Dewar <dewar@gnat.com>
38003
38004 * style.adb:
38005 (Check_Identifier): Rewrite circuit to be compatible with use of letters
38006 in the upper half of ASCII.
38007 (Check_Identifier): Minor reformatting
38008
38009 2001-10-30 Geert Bosch <bosch@gnat.com>
38010
38011 * (Associated_Node, Set_Associated_Node): Do not check for
38012 Freeze_Entity.
38013
38014 2001-10-30 Robert Dewar <dewar@gnat.com>
38015
38016 * a-reatim.ads: Minor reformatting
38017
38018 2001-10-30 Robert Dewar <dewar@gnat.com>
38019
38020 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
38021 undocumented declarations.
38022
38023 2001-10-30 Pascal Obry <obry@gnat.com>
38024
38025 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
38026 to the binder and linker.
38027 Minor style fix.
38028
38029 * mdll.ads: Fix layout. Update copyright notice.
38030
38031 * mdll.adb: Fix layout. Update copyright notice.
38032
38033 2001-10-30 Robert Dewar <dewar@gnat.com>
38034
38035 * usage.adb: Minor fix to output for -gnaty.
38036
38037 2001-10-30 Ed Schonberg <schonber@gnat.com>
38038
38039 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
38040 to accommodate all its possible values.
38041
38042 * a-reatim.adb (Split): Special-case handling of Time_Span_First
38043 and of small absolute values of T.
38044
38045 2001-10-30 Richard Kenner <kenner@gnat.com>
38046
38047 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
38048 set_mem_attributes since not needed and wrong if RESULT if a REG;
38049 fixes ACATS failures.
38050
38051 2001-10-30 Geert Bosch <bosch@gnat.com>
38052
38053 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
38054 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
38055
38056 2001-10-30 Robert Dewar <dewar@gnat.com>
38057
38058 * bindusg.adb: Undocument -f switch.
38059
38060 * gnatcmd.adb: Remove /FULL_ELABORATION.
38061
38062 * opt.ads (Force_RM_Elaboration_Order): Document that this is
38063 obsolescent.
38064
38065 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
38066
38067 * gnatbind.adb: Minor update of warning msg.
38068
38069 2001-10-30 Vincent Celier <celier@gnat.com>
38070
38071 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
38072 for project file switches (-P (/PROJECT_FILE=),
38073 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
38074 or MEDIUM or HIGH)
38075
38076 2001-10-30 Geert Bosch <bosch@gnat.com>
38077
38078 * decl.c: Minor whitespace fixes.
38079
38080 2001-10-30 Richard Kenner <kenner@gnat.com>
38081
38082 * utils2.c (build_allocator): Test for SIZE overflow in array case too
38083
38084 2001-10-30 Geert Bosch <bosch@gnat.com>
38085
38086 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
38087 Found due to GCC 3.0 warning of using uninitialized value.
38088
38089 * layout.adb:
38090 (Get_Max_Size): Use variant record for tracking value/expression.
38091 Makes logic clearer and prevents warnings for uninitialized variables.
38092 (Layout_Array_Type): Use variant record for tracking value/expression.
38093 Makes logic clearer and prevents warnings for uninitialized variables.
38094
38095 2001-10-30 Robert Dewar <dewar@gnat.com>
38096
38097 * lib.adb: Minor reformatting
38098
38099 * s-taprop.ads: Minor reformatting
38100
38101 2001-10-29 Laurent Guerby <guerby@acm.org>
38102
38103 * init.c:
38104 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
38105 const.
38106 (_gnat_error_handler): Make MSG const.
38107
38108 2001-10-29 Richard Kenner <kenner@gnat.com>
38109
38110 * sysdep.c: Fix localtime_r problem on LynxOS.
38111 Also remove #elif to avoid warnings.
38112
38113 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
38114 used by this.
38115
38116 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
38117
38118 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
38119
38120 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
38121 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
38122 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
38123 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
38124 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
38125 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
38126 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
38127 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
38128 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
38129 types.ads, urealp.adb: Fix spelling errors.
38130
38131 2001-10-27 Laurent Guerby <guerby@acm.org>
38132
38133 * trans.c (gigi): Fix non determinism leading to bootstrap
38134 comparison failures for debugging information.
38135
38136 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
38137
38138 * gnat_rm.texi: Use @./@: where appropriate.
38139
38140 2001-10-26 Robert Dewar <dewar@gnat.com>
38141
38142 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
38143
38144 2001-10-26 Richard Kenner <kenner@gnat.com>
38145
38146 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
38147
38148 2001-10-26 Richard Kenner <kenner@gnat.com>
38149
38150 * decl.c (validate_size): Modify message for bad size to avoid
38151 implication that compiler is modifying the size.
38152
38153 2001-10-26 Robert Dewar <dewar@gnat.com>
38154
38155 * prj-util.adb: Minor reformatting. Fix bad header format.
38156
38157 2001-10-26 Robert Dewar <dewar@gnat.com>
38158
38159 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
38160
38161 * sinfo.ads: Clarify use of Associated_Node (documentation only).
38162
38163 * sem_ch12.adb: Change Node4 to Associated_Node. Change
38164 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
38165 much more narrowly in places where needed. These are cleanups.
38166
38167 2001-10-26 Joel Brobecker <brobecke@gnat.com>
38168
38169 * 5zosinte.ads (null_pthread): new constant.
38170
38171 * 5ztaprop.adb:
38172 (Initialize_TCB): Initialize thread ID to null, to be able to verify
38173 later that this field has been set.
38174 (Finalize_TCB): ditto.
38175 (Suspend_Task): Verify that the thread ID is not null before using it.
38176 (Resume_Task): ditto.
38177
38178 * s-tasdeb.adb:
38179 (Resume_All_Tasks): Lock the tasks list before using it.
38180 (Suspend_All_Tasks): ditto.
38181
38182 2001-10-26 Richard Kenner <kenner@gnat.com>
38183
38184 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
38185 Make constant variant of designated type for Is_Access_Constant.
38186 Call update_pointer_to with main variant.
38187
38188 * trans.c (process_freeze_entity, process_type):
38189 Call update_pointer_to on main variant.
38190
38191 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
38192 If main variant, update all other variants.
38193
38194 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
38195 TREE_STATIC.
38196
38197 2001-10-26 Robert Dewar <dewar@gnat.com>
38198
38199 * prj-util.adb: Minor reformatting
38200
38201 2001-10-26 Robert Dewar <dewar@gnat.com>
38202
38203 * prj-util.adb: Minor reformatting
38204
38205 2001-10-26 Robert Dewar <dewar@gnat.com>
38206
38207 * prj-attr.adb: Minor reformatting throughout
38208
38209 2001-10-26 Robert Dewar <dewar@gnat.com>
38210
38211 * prj-attr.ads: Minor reformatting
38212 Add ??? comment (this whole spec has almost no comments)
38213
38214 2001-10-26 Vincent Celier <celier@gnat.com>
38215
38216 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
38217 ("//") that precede the drive letter on Interix.
38218
38219 2001-10-26 Geert Bosch <bosch@gnat.com>
38220
38221 * gnat_rm.texi: Add GNAT Reference Manual.
38222
38223 2001-10-25 Robert Dewar <dewar@gnat.com>
38224
38225 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
38226 is Error. Similar change for other renaming cases.
38227
38228 2001-10-25 Robert Dewar <dewar@gnat.com>
38229
38230 * s-atacco.ads: Add pragma Inline_Always for functions.
38231 Fix header format. Add copyright 2001
38232
38233 2001-10-25 Ed Schonberg <schonber@gnat.com>
38234
38235 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
38236 return Error rather than Empty so that analysis can proceed.
38237
38238 2001-10-25 Ed Schonberg <schonber@gnat.com>
38239
38240 * sem_util.adb (Enter_Name): better handling of cascaded error
38241 messages when a unit appears in its own context.
38242
38243 2001-10-25 Ed Schonberg <schonber@gnat.com>
38244
38245 * sem_util.adb (Defining_Entity): in case of error, attach created
38246 entity to specification, so that semantic analysis can proceed.
38247
38248 2001-10-25 Robert Dewar <dewar@gnat.com>
38249
38250 * sem_util.adb
38251 (Defining_Entity): Deal with Error.
38252 (Process_End_Label): Deal with bad end label for.
38253
38254 2001-10-25 Ed Schonberg <schonber@gnat.com>
38255
38256 * sem_elab.adb (Check_A_Call): refine message when call is in an
38257 instance but callee is not declared in the generic unit.
38258
38259 2001-10-25 Ed Schonberg <schonber@gnat.com>
38260
38261 * sem_elab.adb (Check_A_Call): check for renaming before finding the
38262 enclosing unit, which may already be different from the calling unit.
38263
38264 2001-10-25 Geert Bosch <bosch@gnat.com>
38265
38266 * 4gintnam.ads: fix header format.
38267
38268 2001-10-25 Ed Schonberg <schonber@gnat.com>
38269
38270 * sem_res.adb (Resolve_Call): if the call is actually an indexing
38271 operation on the result of a parameterless call, perform elaboration
38272 check after the node has been properly rewritten.
38273
38274 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
38275 inlined within the generic tree, the defining identifier is not a
38276 compilation_unit.
38277
38278 2001-10-25 Ed Schonberg <schonber@gnat.com>
38279
38280 * sem_res.adb (Resolve): special-case resolution of Null in an
38281 instance or an inlined body to avoid view conflicts.
38282
38283 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
38284 compatibility by retrieving the access type of the generic copy.
38285
38286 2001-10-25 Robert Dewar <dewar@gnat.com>
38287
38288 * sem_ch3.adb:
38289 (Analyze_Number_Declaration): Handle error expression.
38290 (Signed_Integer_Type_Declaration): Handle error bound.
38291 (Analyze_Subtype_Indication): Handle error range.
38292
38293 * sem_util.adb (Get_Index_Bounds): Check for Error.
38294
38295 2001-10-25 Robert Dewar <dewar@gnat.com>
38296
38297 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
38298 in no run time mode.
38299
38300 2001-10-25 Pascal Obry <obry@gnat.com>
38301
38302 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
38303 mode case for ALLOC case.
38304
38305 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
38306 all platforms. Improvement of last change.
38307
38308 2001-10-25 Robert Dewar <dewar@gnat.com>
38309
38310 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
38311
38312 2001-10-25 Geert Bosch <bosch@gnat.com>
38313
38314 * osint.adb (Is_Relative): Remove duplicate.
38315
38316 2001-10-25 Pascal Obry <obry@gnat.com>
38317
38318 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
38319 pathnames in UNIX and DOS style with drive letter.
38320 (Is_Relative): new routine.
38321
38322 * osint.adb: Minor reformatting
38323
38324 * osint.adb (Is_Relative): implementation using
38325 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
38326
38327 2001-10-25 Pascal Obry <obry@gnat.com>
38328
38329 * g-dirope.adb (Basename): correctly compute offset between the
38330 original Path and the translated one.
38331
38332 * g-dirope.adb: (Base_Name): add some comments.
38333
38334 2001-10-25 Robert Dewar <dewar@gnat.com>
38335
38336 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
38337 in HIE mode, avoids compilation abandoned message
38338
38339 * exp_imgv.adb: Correct typo in previous change
38340
38341 * exp_imgv.adb: Correct typo in previous change (not my day!)
38342
38343 2001-10-25 Robert Dewar <dewar@gnat.com>
38344
38345 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
38346
38347 2001-10-25 Pascal Obry <obry@gnat.com>
38348
38349 * g-awk.ads: Move all pragma inlines next to the routine
38350 declarations. This is more uniform with other GNAT spec.
38351
38352 2001-10-22 Geert Bosch <bosch@gnat.com>
38353
38354 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
38355
38356 2001-10-19 Geert Bosch <bosch@gnat.com>
38357
38358 * Makefile.in (tools, gnattools): Remove gnatmem.
38359
38360 2001-10-17 Richard Henderson <rth@redhat.com>
38361
38362 * Makefile.in (misc.o): Depend on langhooks.h.
38363 * misc.c: Include it.
38364 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
38365 (LANG_HOOKS_DECODE_OPTION): New.
38366 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
38367
38368 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
38369
38370 * trans.c (tree_transform): Adjust to recent change in
38371 expand_asm_operands to implement named asm operands.
38372
38373 2001-10-11 Ed Schonberg <schonber@gnat.com>
38374
38375 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
38376 renaming of discriminant for mutable record type.
38377
38378 2001-10-11 Robert Dewar <dewar@gnat.com>
38379
38380 * validsw.adb: Properly save -gnatVn status.
38381
38382 2001-10-11 Robert Dewar <dewar@gnat.com>
38383
38384 * usage.adb: Add lines for V switch.
38385
38386 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
38387 (/VALIDITY_CHECKING).
38388
38389 2001-10-11 Ed Schonberg <schonber@gnat.com>
38390
38391 * sem_type.adb (Add_One_Interp): an operator for a type declared in
38392 an extension of System is known to be visible.
38393
38394 2001-10-11 Ed Schonberg <schonber@gnat.com>
38395
38396 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
38397 properly. Fixes regression on ACATS C34005G.
38398
38399 2001-10-11 Robert Dewar <dewar@gnat.com>
38400
38401 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
38402 loop in generic instance, since this is likely not very useful.
38403
38404 2001-10-11 Robert Dewar <dewar@gnat.com>
38405
38406 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
38407 the error message for high integrity mode.
38408
38409 * rtsfind.adb (RTE): Give message if we try to find an entity that
38410 is not available in high integrity mode.
38411
38412 * rtsfind.ads:
38413 (OK_To_Use_In_HIE_Mode): New array.
38414 (RTE): May return Empty in high integrity mode.
38415
38416 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
38417 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
38418
38419 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
38420 unit if not inlined always and in no runtime mode. Fixes problem
38421 caused by new Rtsfind changes.
38422
38423 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
38424 body is deleted.
38425
38426 * rtsfind.adb (RTE): Make sure we do not try to load unit after
38427 giving message for entity not available in high integrity mode.
38428
38429 2001-10-11 Pascal Obry <obry@gnat.com>
38430
38431 * impunit.adb: Add GNAT.CRC32.
38432
38433 2001-10-11 Ed Schonberg <schonber@gnat.com>
38434
38435 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
38436 properly the case where one universal operand in a non-static
38437 exponentiation of a real literal.
38438
38439 2001-10-11 Ed Schonberg <schonber@gnat.com>
38440
38441 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
38442 clause, return the gobal finalization list, for lack of anthing else.
38443
38444 2001-10-11 Ed Schonberg <schonber@gnat.com>
38445
38446 * exp_ch7.adb (Make_Transient_Block): if statement is within
38447 exception handler, always use new transient scope to place Clean
38448 procedure.
38449
38450 2001-10-11 Pascal Obry <obry@gnat.com>
38451
38452 * Makefile.in:
38453 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38454 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38455 (GNATLS_RTL_OBJS): add g-crc32.o
38456 (GNATMAKE_RTL_OBJS): add g-crc32.o
38457
38458 * ali-util.adb:
38459 (CRC_Match): new function.
38460 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
38461 instead of the previous simple checksum algorithm.
38462 (Time_Stamp_Mismatch): use CRC_Match for comparison.
38463 (Set_Source_Table): idem.
38464
38465 * ali-util.ads:
38466 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
38467 instead of simple checksum.
38468 (CRC_Match): new function.
38469 (CRC_Error): new constant.
38470
38471 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
38472 a CRC now and not a simple checksum. A CRC uses lower-case hex
38473 letters, fixes ambiguity in parsing.
38474
38475 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
38476 is what this variable will store.
38477
38478 * bcheck.adb: Change reference to chechsum in comments by CRC.
38479 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
38480 rename All_Checksum_Match to All_CRC_Match. Change due to API
38481 renaming since now GNAT does not use a simple checksum but a
38482 CRC using GNAT.CRC32.
38483
38484 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
38485 now and not anymore a simple checksum.
38486
38487 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
38488 places.
38489
38490 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
38491
38492 * scans.adb:
38493 (Restore_Scan_State): rename Checksum to CRC.
38494 (Save_Scan_State): idem.
38495
38496 * scans.ads:
38497 With GNAT.CRC32.
38498 (Checksum): rename to CRC.
38499 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
38500
38501 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
38502 GNAT.CRC32). Update copyright notice.
38503
38504 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
38505 GNAT.CRC32). Update copyright notice.
38506
38507 * scn.adb:
38508 (Accumulate_Checksum): removed.
38509 (Update): new procedure. Add a wide-character into the CRC.
38510
38511 * sinput-l.adb:
38512 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
38513 (Load_File): fix initialization of S (change Source_Checksum to
38514 Source_CRC)
38515
38516 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
38517 Source_CRC in S initialization.
38518
38519 * sinput.adb (Source_Checksum): renamed to Source_CRC.
38520
38521 * sinput.ads (Source_Checksum): renamed to Source_CRC.
38522 Update comments for the CRC.
38523
38524 * types.adb (Hex): Use lowercase for the letter part.
38525
38526 * types.ads (Get_Hex_String): Returns the hexadecimal representation
38527 for a word. This is currently used only for CRC. In previous version,
38528 the checksum was using a representation with all letter being
38529 upper-case. With the new implementation (using CRC) we do not remove
38530 the 32th bit of the CRC, so we can have an upper-case starting letter
38531 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
38532 It is ambigous since the CRC was optional and could be followed by
38533 options like EB, EE. So now this routines uses lower-case letter for
38534 the hexadecimal representation. Strange enough only lower case letters
38535 where checked in Scan_ALI (even if this was not a possible case).
38536
38537 * gnatvsn.ads (Library_Version): changed to 3.15a.
38538
38539 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
38540 for the compiler.
38541
38542 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
38543 for the compiler.
38544
38545 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
38546 Add 2001 to copyright notice
38547 (Accumulate_Checksum): Modify to use System.CRC32.
38548
38549 * ali-util.ads: Redo changes of previous revision to continue to use
38550 the word Checksum. Add 2001 to copyright notice.
38551
38552 * ali.adb: Undo some of previous changes, not needed.
38553 Keep the change for lower case letters in the checksum.
38554
38555 * ali.ads: Undo previous change not needed.
38556
38557 * bcheck.adb: Undo most of previous change, not needed.
38558 But do use Checksums_Match for checksum comparison.
38559
38560 * gnatls.adb: Undo most of previous change, not needed.
38561 But do use Checksums_Match for comparing checksums.
38562
38563 * lib-load.adb: Undo previous change, not needed.
38564
38565 * lib-writ.adb: Undo previous change, not needed.
38566
38567 * lib-writ.ads: Document that checksums use lower case,
38568 not upper case letters.
38569
38570 * scans.adb: Undo previous change, not needed
38571
38572 * scans.ads: Undo previous change, not needed.
38573
38574 * scn-nlit.adb: Undo previous changes, not needed.
38575
38576 * scn-slit.adb: Undo previous change, not needed. Fix header format.
38577
38578 * scn.adb:
38579 (Accumulate_Checksum): Use System.CRC32.
38580 (Initialize_Checksum): New procedure.
38581 Remove other changes of previous revision.
38582
38583 * sinput-p.adb: Undo previous change, not needed.
38584
38585 * sinput.adb: Undo previous change, not needed.
38586
38587 * sinput-l.adb: Undo previous change, not needed.
38588
38589 * sinput.ads: Undo previous change, not needed. Keep only comment
38590 on new checksum algorithm
38591
38592 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
38593 Also remove a-tags and a-stream from GNAT sources.
38594
38595 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
38596
38597 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
38598
38599 2001-10-11 Geert Bosch <bosch@gnat.com>
38600
38601 * einfo.h: Regenerate.
38602
38603 * nmake.ads: Regenerate.
38604
38605 * nmake.adb: Regenerate.
38606
38607 * sinfo.h: Regenerate.
38608
38609 * treeprs.adb: Regenerate.
38610
38611 2001-10-10 Geert Bosch <bosch@gnat.com>
38612
38613 * gnat-style.texi: New file describing coding guidelines for Ada.
38614
38615 2001-10-10 Ed Schonberg <schonber@gnat.com>
38616
38617 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
38618 is Flag174.
38619
38620 2001-10-10 Geert Bosch <bosch@gnat.com>
38621
38622 * snames.ads: Add new names for project facility.
38623
38624 * snames.adb: Update to reflect snames.ads changes.
38625
38626 * snames.h: Update to reflect snames.ads changes.
38627
38628 2001-10-10 Vincent Celier <celier@gnat.com>
38629
38630 * make.adb:
38631 (Add_Switches): reflect the changes for the switches attributes
38632 Default_Switches indexed by the programming language,
38633 Switches indexed by the file name.
38634 (Collect_Arguments_And_Compile): Idem.
38635 Reflect the attribute name changes.
38636
38637 * prj-attr.adb:
38638 (Initialisation_Data): Change the names of some packages and
38639 attributes.
38640 (Initialize): process case insensitive associative arrays.
38641
38642 * prj-attr.ads:
38643 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
38644
38645 * prj-dect.adb:
38646 (Parse_Attribute_Declaration): For case insensitive associative
38647 arrays, set the index string to lower case.
38648
38649 * prj-env.adb:
38650 Reflect the changes of the project attributes.
38651
38652 * prj-nmsc.adb:
38653 Replace Check_Naming_Scheme by Ada_Check and
38654 Language_Independent_Check.
38655
38656 * prj-nmsc.ads:
38657 Replaced Check_Naming_Scheme by 2 procedures:
38658 Ada_Check and Language_Independent_Check.
38659
38660 * prj-proc.adb:
38661 (Process_Declarative_Items): For case-insensitive associative
38662 arrays, set the index string to lower case.
38663 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
38664 Prj.Nmsc.Check_Naming_Scheme.
38665
38666 * prj-tree.adb:
38667 (Case_Insensitive): New function
38668 (Set_Case_Insensitive): New procedure
38669
38670 * prj-tree.ads:
38671 (Case_Insensitive): New function
38672 (Set_Case_Insensitive): New procedure
38673 (Project_Node_Record): New flag Case_Insensitive.
38674
38675 * prj-util.adb:
38676 (Value_Of): new function to get the string value of a single
38677 string variable or attribute.
38678
38679 * prj-util.ads:
38680 (Value_Of): new function to get the string value of a single
38681 string variable or attribute.
38682
38683 * prj.adb:
38684 (Ada_Default_Spec_Suffix): New function
38685 (Ada_Default_Impl_Suffix): New function
38686 Change definitions of several constants to reflect
38687 new components of record types.
38688
38689 * prj.ads:
38690 (Naming_Data): Change several components to reflect new
38691 elements of naming schemes.
38692 (Project_Data): New flags Sources_Present and
38693 Language_Independent_Checked.
38694 (Ada_Default_Spec_Suffix): New function.
38695 (Ada_Default_Impl_Suffix): New function.
38696
38697 * snames.ads:
38698 Modification of predefined names for project manager: added
38699 Implementation, Specification_Exceptions, Implementation_Exceptions,
38700 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
38701 Default_Switches, _Languages, Builder, Cross_Reference,
38702 Finder. Removed Body_Part, Specification_Append, Body_Append,
38703 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
38704 Gnatlink.
38705
38706 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
38707 Add comments.
38708
38709 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
38710 not that it is Nil_Variable_Value.
38711
38712 * prj.ads: Add ??? for uncommented declarations
38713
38714 2001-10-10 Ed Schonberg <schonber@gnat.com>
38715
38716 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
38717 constant, do not indicate possible modification, so that gigi can
38718 treat it as a bona fide constant.
38719
38720 2001-10-10 Robert Dewar <dewar@gnat.com>
38721
38722 * sem_prag.adb: Add processing for pragma External.
38723
38724 * snames.ads: Add entry for pragma External.
38725
38726 * par-prag.adb: Add pragma External.
38727
38728 * snames.adb: Updated to match snames.ads.
38729
38730 2001-10-10 Ed Schonberg <schonber@gnat.com>
38731
38732 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
38733 a dynamic task if the allocator appears in an indexed assignment
38734 or selected component assignment.
38735
38736 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
38737 For a dynamic task in an assignment statement, use target of
38738 assignment to generate meaningful name.
38739
38740 2001-10-10 Ed Schonberg <schonber@gnat.com>
38741
38742 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
38743 a generic package.
38744
38745 * einfo.ads: Body_Entity is also defined for generic package.
38746 Documentation change only
38747
38748 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
38749 others_choice for a discriminated component initialization,
38750 convert discriminant references into the corresponding discriminals.
38751
38752 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
38753 only if original type is private and expression has to be wrapped
38754 in a conversion.
38755
38756 * checks.adb:
38757 (Apply_Constraint_Check): Do not perform length check
38758 if expression is an aggregate with only an others_choice.
38759 (Length_N_Cond): two references to the same in_parameter
38760 (typically the discriminal in an init_proc) denote the same value.
38761 Two useful optimization uncovered by bugfixes above.
38762
38763 2001-10-10 Robert Dewar <dewar@gnat.com>
38764
38765 * xeinfo.adb: Change int to char in translation of enumeration types.
38766 This fixes a problem in the C representation of component alignment.
38767 Add 2001 to copyright notice
38768
38769 2001-10-10 Richard Kenner <kenner@gnat.com>
38770
38771 * decl.c: (validate_size): Do check size of object of integral type
38772 if it is a packed array type.
38773
38774 2001-10-10 Richard Kenner <kenner@gnat.com>
38775
38776 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
38777 VAR_DECL for constant if not Is_Public but -O0.
38778
38779 2001-10-10 Richard Kenner <kenner@gnat.com>
38780
38781 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
38782
38783 2001-10-10 Geert Bosch <bosch@gnat.com>
38784
38785 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
38786 use '/' as switch character, allowing for absolute file names.
38787
38788 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
38789
38790 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
38791 FSF address.
38792
38793 2001-10-08 Geert Bosch <bosch@gnat.com>
38794
38795 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
38796 Automatically build utilities when files need to be regenerated.
38797
38798 2001-10-08 Geert Bosch <bosch@gnat.com>
38799
38800 * xsnames.adb: New utility for updating snames.ads and snames.adb
38801
38802 2001-10-08 Zack Weinberg <zack@codesourcery.com>
38803
38804 * Make-lang.in (ADAFLAGS): Add -W -Wall.
38805 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
38806 (gnat1): Also depend on attribs.o.
38807 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
38808 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
38809 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
38810 (ADAFLAGS): Add -W -Wall.
38811 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
38812 take out CFLAGS.
38813
38814 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
38815 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
38816 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
38817 Use $(ADAC), not $(CC), as compilation command.
38818
38819 (gnattools): Depend directly on tools to build, don't use
38820 recursive make.
38821 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
38822
38823 * einfo.h, sinfo.h: New files (autogenerated).
38824
38825 2001-10-08 Richard Henderson <rth@redhat.com>
38826
38827 * comperr.adb (Abort_In_Progress): New.
38828 (Compiler_Abort): Use it to prevent recursion.
38829
38830 2001-10-08 Robert Dewar <dewar@gnat.com>
38831
38832 * atree.adb: Set Error_Posted in Error node, helps error recovery.
38833
38834 * par-endh.adb (Output_End_Expected): We should also not test
38835 Error_Posted on the Error node, since now it is always set.
38836
38837 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
38838 to help error recovery. Part of general work on 9407-004.
38839
38840 * par.adb: Add ??? for misuse of error
38841
38842 * sem_res.adb:
38843 (Resolve): Defend against Error, fixes 9407-003.
38844 (Resolve_Discrete_Subtype_Indication): Defend against Error.
38845
38846 * sinfo.ads (N_Error): Now has Etype field (which will be set
38847 to Any_Type to help error recovery).
38848
38849 2001-10-08 Richard Kenner <kenner@gnat.com>
38850
38851 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
38852 Consistently set MEM attributes from expression; fixes
38853 bootstrap failure on x86.
38854
38855 2001-10-08 Geert Bosch <bosch@gnat.com>
38856
38857 * 5oosinte.adb: Add 2001 to copyright notice.
38858
38859 2001-10-08 Geert Bosch <bosch@gnat.com>
38860
38861 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
38862
38863 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
38864
38865 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
38866
38867 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
38868
38869 2001-10-05 Geert Bosch <bosch@gnat.com>
38870
38871 * adaint.h: Small formatting fix.
38872
38873 2001-10-04 Geert Bosch <bosch@gnat.com>
38874
38875 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
38876 Arg is int, not FILE *, in dummy version of functions.
38877
38878 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
38879 Arg is int, not FILE *.
38880
38881 2001-10-04 Geert Bosch <bosch@gnat.com>
38882
38883 * 3lsoccon.ads: Added file, missed with initial check ins.
38884
38885 * 4lintnam.ads: Fix header format.
38886 Change Linux to GNU/Linux.
38887
38888 * 5iosinte.adb: Change Linux to GNU/Linux.
38889
38890 * 5iosinte.ads: Change Linux to GNU/Linux.
38891
38892 * 5itaprop.adb: Change Linux to GNU/Linux.
38893
38894 * 5itaspri.ads: Change Linux to GNU/Linux.
38895 Update copyright notice.
38896
38897 * 5lintman.adb: Change Linux to GNU/Linux.
38898
38899 * 5lml-tgt.adb: Change Linux to GNU/Linux.
38900
38901 * 5losinte.ads: Change Linux to GNU/Linux.
38902
38903 * 5lsystem.ads: Change Linux to GNU/Linux.
38904
38905 * 5qosinte.adb: Change Linux to GNU/Linux.
38906
38907 * 5qosinte.ads: Change Linux to GNU/Linux.
38908
38909 * 5qparame.ads: Change Linux to GNU/Linux.
38910
38911 * 5qtaprop.adb: Change Linux to GNU/Linux.
38912
38913 * 5qtaspri.ads: Change Linux to GNU/Linux.
38914 Add 2001 to copyright notice.
38915
38916 * 5vintman.ads: Change Linux to GNU/Linux.
38917 Fix header format. Add 2001 to copyright notice.
38918
38919 * g-soccon.ads: Change Linux to GNU/Linux.
38920
38921 * g-trasym.ads: Change Linux to GNU/Linux.
38922 Add 2001 to copyright notice.
38923
38924 * memtrack.adb: Change Linux to GNU/Linux.
38925
38926 * s-intman.ads: Change Linux to GNU/Linux.
38927 Add 2001 to copyright notice. Fix header format.
38928
38929 * s-stache.adb: Change Linux to GNU/Linux.
38930
38931 * adaint.c: Change Linux to GNU/Linux.
38932
38933 * cio.c: Change Linux to GNU/Linux.
38934
38935 * cstreams.c: Change Linux to GNU/Linux.
38936
38937 * init.c: Change Linux to GNU/Linux.
38938
38939 * gmem.c: Change Linux to GNU/Linux.
38940
38941 * tracebak.c: Change Linux to GNU/Linux.
38942
38943
38944 2001-10-02 Geert Bosch <bosch@gnat.com>
38945
38946 * misc.c (insert_default_attributes): Add dummy version.