]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/ChangeLog
basic-block.h, [...]: Don't include errors.h and include toplev.h if necessary.
[thirdparty/gcc.git] / gcc / ada / ChangeLog
1 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * misc.c: Don't include errors.h.
4
5 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6
7 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
8
9 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
10
11 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
12 comment typos.
13 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
14
15 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
16
17 PR ada/20270
18 * Makefile.in: Make TGT_LIB behave correctly.
19
20 2005-04-23 DJ Delorie <dj@redhat.com>
21
22 * misc.c: Adjust warning() callers.
23
24 2005-04-16 Laurent GUERBY <laurent@guerby.net>
25
26 PR ada/18847
27 * a-nudira.adb (Value): Check for valid string.
28 * a-nuflra.adb (Value): Likewise.
29
30 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
31
32 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
33
34 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
35
36 * adaint.c, init.c, tracebak.c: Fix comment typos.
37 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
38
39 2005-04-07 Laurent GUERBY <laurent@guerby.net>
40 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
41
42 * Makefile.in: Add make ifeq define for hppa linux tasking support.
43 * system-hpux.ads: Define Signed_Zeros to be True.
44 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
45
46 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
47
48 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
49 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
50 typos.
51
52 2005-03-30 Tom Tromey <tromey@redhat.com>
53
54 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
55
56 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
57
58 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
59
60 2005-03-29 Robert Dewar <dewar@adacore.com>
61
62 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
63 fixed-point expression has value that is not a multiple of the Small
64 value.
65
66 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
67
68 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
69 nanoseconds.
70
71 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
72
73 2005-03-29 Vincent Celier <celier@adacore.com>
74
75 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
76 (Build_Dynamic_Library.Version_String): Return the empty string when
77 Lib_Version is empty or when the symbol policy is not Autonomous.
78
79 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
80 a symbol is not in the reference symbol file, increase the Major ID
81 and set the Minor ID to 0.
82 Use gsmatch=lequal instead of gsmatch=equal
83
84 2005-03-29 Doug Rupp <rupp@adacore.com>
85
86 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
87 name and translate.
88
89 2005-03-29 Javier Miranda <miranda@adacore.com>
90
91 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
92 (Inherit_DT): The first formal has been redefined as a Tag.
93 This allows us the removal of the subprogram Get_TSD.
94 (TSD): Replace the call to Get_TSD by the actual code.
95
96 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
97 (Make_DT): Upgrade the call to Inherit_TSD according to the
98 new interface: the first formal is now a Tag.
99
100 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
101 redefined as a Tag.
102 This change allows us to remove the subprogram Get_TSD.
103 (CPP_Get_TSD): Subprogram removed.
104 (TSD): Replace the call to CPP_Get_TSD by the actual code.
105
106 * rtsfind.ads: Remove support to call the run-time
107 subprogram Get_TSD
108
109 2005-03-29 Robert Dewar <dewar@adacore.com>
110
111 * errutil.adb, errout.adb:
112 Minor comment updates on Line_Terminator references
113
114 * par-ch10.adb: Add ??? comment about line terminator
115
116 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
117 (check dos line terminator).
118 (Check_Line_Max_Length): New procedure, split off from the existing
119 Check_Line_Terminator routine. Separating this out allows -gnatyf to
120 be properly recognized.
121
122 * styleg.adb: Add ??? comment for line terminator reference
123
124 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
125 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
126
127 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
128 (check dos line terminator).
129 (Check_Line_Max_Length): New procedure, split off from the existing
130 Check_Line_Terminator routine. Separating this out allows -gnatyf to
131 be properly recognized.
132
133 * stylesw.ads, stylesw.adb:
134 Add handling for new -gnatyd switch (check dos line terminator)
135
136 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
137 Recognize -gnatwb/-gnatwB switches
138 Include Warn_On_Bad_Fixed_Value for -gnatg
139
140 * usage.adb:
141 Add line for new -gnatyd switch (check dos line terminator)
142
143 * usage.adb: Add lines for -gnatwb/-gnatwB
144
145 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
146
147 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
148
149 * gnat_ugn.texi: Fix overlong lines
150 Document new -gnatyd switch
151 Document new -gnatwb/-gnatwB switches
152
153 2005-03-29 Ed Schonberg <schonberg@adacore.com>
154
155 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
156 order to retrieve the component list of the type, before examining
157 individual components.
158
159 * sem_type.adb (Covers): Types are compatible if one is the base type
160 of the other, even though their base types might differ when private
161 views are involved.
162
163 2005-03-29 Thomas Quinot <quinot@adacore.com>
164
165 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
166 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
167 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
168 analyzed if expansion is disabled (which could otherwise cause spurious
169 error messages if expansion has been disabled due to previous
170 (unrelated) errors).
171
172 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
173 is disabled, the entity denoted by the argument is the access type
174 itself, not an underlying record type, so there is no need to go back
175 to the Corresponding_Remote_Type.
176
177 2005-03-29 Gary Dismukes <dismukes@adacore.com>
178 Robert Dewar <dewar@adacore.com>
179
180 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
181 expand a call to an instance of
182 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
183 Constructor actual of the instance. A class-wide membership
184 check is also generated, to ensure that the tag passed to the instance
185 denotes a type in the class.
186 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
187 of Name_Generic_Dispatching_Constructor.
188
189 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
190 05 unit for AI-260-02).
191
192 * a-tgdico.ads: New file.
193
194 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
195 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
196
197 * snames.ads, snames.adb (Preset_Names): Add entry for
198 Generic_Dispatching_Constructor.
199
200 PR ada/20300
201
202 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
203 character type cases.
204 (Analyze_Subprogram_Renaming): Add special handling for
205 the case of renaming of stream attributes when the renaming denotes a
206 generic formal subprogram association for an abstract formal subprogram.
207 Check that the attribute is a primitive stream attribute (and not
208 a class-wide stream attribute) and then rewrite the attribute name
209 as the name of the appropriate compiler-generated stream primitive.
210
211 2005-03-29 Robert Dewar <dewar@adacore.com>
212
213 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
214 recursive calls.
215 (Is_Possibly_Unaligned_Object): Correct typo that
216 resulted in inaccurate result for unaligned scalars within records.
217
218 2005-03-29 Ed Schonberg <schonberg@adacore.com>
219
220 * freeze.adb (Freeze_Record_Type): If the type of the component is an
221 itype whose parent is controlled and not yet frozen, do not create a
222 freeze node for the itype if expansion is disabled.
223
224 2005-03-29 Vincent Celier <celier@adacore.com>
225
226 * make.adb (Gnatmake): Don't fail if the main project file is declared
227 as having no Ada sources. Do not display message "no sources to
228 compile" in quiet output.
229
230 2005-03-29 Doug Rupp <rupp@adacore.com>
231
232 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
233 extra tools.
234
235 2005-03-29 Robert Dewar <dewar@adacore.com>
236
237 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
238 child.
239
240 2005-03-29 Robert Dewar <dewar@adacore.com>
241
242 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
243 missing TYPE Improve the error message generated when compiling a
244 limited interface in Ada83 or Ada95 mode.
245
246 2005-03-29 Robert Dewar <dewar@adacore.com>
247
248 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
249 rather than proceed ahead using a junk attribute name.
250
251 2005-03-29 Vincent Celier <celier@adacore.com>
252
253 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
254
255 * prj-part.adb (Parse_Single_Project): Set the location of a project
256 on its defining identifier, rather than on the reserved word "project".
257
258 * prj-proc.adb (Expression): Adapt to the fact that default of external
259 references may be string expressions, not always literal strings.
260 (Recursive_Process): Set Display_Name equal to Name
261 when Location is No_Location, that is when there is no actual file.
262 Get the Display_Name of the project from the source, when it is not a
263 virtual project.
264 (Process): Use the Display_Name in error messages
265
266 * prj-strt.adb (External_Reference): Allow default to be string
267 expressions, not only literal strings.
268
269 2005-03-29 Vincent Celier <celier@adacore.com>
270
271 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
272 file and the reference symbol file to be the same file.
273
274 2005-03-29 Thomas Quinot <quinot@adacore.com>
275
276 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
277 forbid conversion of a local access-to-subprogram type to a remote one.
278
279 * sem_util.adb (Wrong_Type): For a record type that is the expanded
280 equivalent type for a remote access-to-subprogram type, go back to the
281 original RAS entity when displaying an error message, so the casing is
282 the original source casing.
283
284 2005-03-29 Robert Dewar <dewar@adacore.com>
285
286 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
287 on param update.
288
289 2005-03-29 Ed Schonberg <schonberg@adacore.com>
290
291 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
292 subtype if code is being pre-analyzed, to prevent un-expanded
293 references to protected formals, among others.
294 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
295 interpretation that can be a call, include the result of the call as a
296 possible interpretation of the dereference.
297
298 * sem_ch5.adb (Process_Bounds): Determine type of range by
299 pre-analyzing a copy of the original range, and then analyze the range
300 with the expected type.
301
302 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
303 with an overloaded prefix where not all interpretations yield an
304 access to subprogram, do not rewrite node as a call.
305 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
306 the node as a call once the context identifies the interpretation of
307 the prefix whose call yields the context type.
308 (Valid_Conversion): For the case of a conversion between
309 local access-to-subprogram types, check subtype conformance using
310 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
311 detailed error message.
312
313 2005-03-29 Ed Schonberg <schonberg@adacore.com>
314
315 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
316 indicator, indicate that the formal can never be null.
317 (Process_Formals): If a formal has a non_null indicator, insert the
318 resulting subtype immediately before the enclosing subprogram decl,
319 and not at the beginning of the corresponding declarative part, to
320 prevent access before elaboration (Ada2005).
321
322 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
323
324 PR ada/19956
325 * utils.c (finish_record_type): Use variable_size when setting sizes.
326
327 2005-03-29 Robert Dewar <dewar@adacore.com>
328
329 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
330 guarantee Unix style line terminators for the output files, even when
331 running on windows.
332
333 2005-03-29 Robert Dewar <dewar@adacore.com>
334
335 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
336 buffer if an exception is raised.
337
338 2005-03-29 Ed Falis <falis@adacore.com>
339
340 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
341 VxWorks 653 1.4
342
343 2005-03-29 Robert Dewar <dewar@adacore.com>
344
345 * sem_util.ads: Minor reformatting
346 * gnat_rm.texi: Minor editing.
347
348 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
349
350 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
351 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
352
353 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
354
355 * adaint.c (__gnat_portable_spawn): Adjust cast.
356
357 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
358
359 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
360
361 2005-03-17 Pascal Obry <obry@adacore.com>
362
363 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
364 used.
365
366 * expect.c (__gnat_waitpid): Moved here from adaint.c.
367 Reimplement under Win32 using Win32 API.
368
369 (__gnat_kill) [Win32]: Properly close the process handle before leaving
370 this routine.
371
372 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
373
374 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
375 (DECL_RENAMED_OBJECT): New accessor macro.
376 (SET_DECL_RENAMED_OBJECT): New setter macro.
377
378 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
379 object in all cases. Attach the renamed object to the VAR_DECL.
380 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
381 field is not prescribed.
382
383 * misc.c (gnat_handle_option): Handle -gnatO separately.
384 (gnat_print_decl) <VAR_DECL>: New case.
385 Print the DECL_RENAMED_OBJECT node.
386
387 * lang.opt: Declare separate -gnatO option.
388
389 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
390 pointer, replace it with the renamed object.
391 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
392 pointer type if the source is not a fat pointer type whose underlying
393 array has the same non-zero alias set as that of the destination array.
394
395 2005-03-17 Javier Miranda <miranda@adacore.com>
396
397 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
398 (Get_Inheritance_Depth): Removed.
399 (Set_Inheritance_Depth): Removed.
400
401 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
402 subprogram Get_Expanded_Name because it is not referenced by the
403 frontend.
404
405 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
406 (CPP_Get_Inheritance_Depth): Removed.
407 (CPP_Set_Inheritance_Depth): Removed.
408
409 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
410
411 2005-03-17 Robert Dewar <dewar@adacore.com>
412
413 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
414 3, since we now expect GCC 3 to do all the work.
415
416 2005-03-17 Javier Miranda <miranda@adacore.com>
417
418 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
419 of one barrier to avoid wrong usage of this attribute.
420
421 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
422 First_Private_Entity.
423
424 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
425 the subprogram against wrong usage.
426 Adapt the code to traverse the entities in the
427 scope of a record_type because in addition to its usage regarding
428 packages, this subprogram is also called by Expand_N_Freeze_Entity
429 to install the visible declarations of the enclosing scope of a
430 record_type_with_private to establish the proper visibility before
431 freezing the entity and related subprograms.
432
433 2005-03-17 Ed Schonberg <schonberg@adacore.com>
434
435 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
436 entry formals.
437
438 2005-03-17 Thomas Quinot <quinot@adacore.com>
439
440 * exp_ch3.adb (Check_Attr): New subprogram.
441 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
442 into a new Check_Attr subprogram, in order to provide a more
443 explanatory error message (including the name of the missing attribute).
444 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
445 subprogram determines whether a default implementation exists for a
446 given stream attribute.
447 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
448 Determine whether to generate a default implementation for each stream
449 attribute separately, as this depends on the specific attribute.
450
451 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
452 limited extension where a stream attribute is missing for a limited
453 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
454 generate a bogus reference to the missing attribute to prevent
455 cascaded errors. Instead, generate a null statement.
456
457 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
458 available for a limited type if it has been specified for an ancestor
459 of the type.
460
461 2005-03-17 Ed Schonberg <schonberg@adacore.com>
462
463 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
464 entity is an operator.
465
466 2005-03-17 Thomas Quinot <quinot@adacore.com>
467
468 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
469 spec, to make this predicate available to other units.
470
471 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
472 reimplementing it.
473
474 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
475 when no distribution runtime library is available.
476
477 * sem_res.adb, sem_dist.adb: Disable expansion of remote
478 access-to-subprogram types when no distribution runtime library is
479 available.
480 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
481 predicate available to other units.
482
483 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
484 spec, to make this predicate available to other units.
485
486 2005-03-17 Vincent Celier <celier@adacore.com>
487
488 * make.adb (Insert_Project_Sources): Make sure the Q is always
489 initialized.
490
491 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
492 the default for the tree, not the global default naming.
493
494 * prj-proc.adb (Recursive_Process): No need to put the default naming
495 in the project data, it's already there.
496
497 2005-03-17 Doug Rupp <rupp@adacore.com>
498
499 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
500
501 * 5xcrtl.ads: Renamed to...
502 * s-crtl-vms64.ads: ...this new file
503
504 2005-03-17 Robert Dewar <dewar@adacore.com>
505
506 PR ada/19519
507
508 * namet.adb (Copy_One_Character): Set proper wide character encoding
509 for upper half character if we have upper half encoding.
510
511 2005-03-17 Robert Dewar <dewar@adacore.com>
512
513 * par.adb (Par): Improved msg for attempt to recompile predefined unit
514
515 2005-03-17 Thomas Quinot <quinot@adacore.com>
516
517 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
518 tagged limited type, the TSS is a newly built renaming declaration:
519 insert it using Set_TSS, not Copy_TSS.
520
521 2005-03-17 Javier Miranda <miranda@adacore.com>
522
523 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
524 Try_Object_Operation): Analyze the object that is accessible
525 through the prefix of the subprogram call before we apply
526 the transformation of the object-operation notation.
527
528 2005-03-17 Jose Ruiz <ruiz@adacore.com>
529
530 * s-taprob.adb (Initialize_Protection): Initialize the protected
531 object's owner to Null_Task.
532 (Lock): If pragma Detect_Blocking is in effect and the caller of this
533 procedure is already the protected object's owner then Program_Error
534 is raised. In addition the protected object's owner is updated.
535 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
536 of this procedure is already the protected object's owner then
537 Program_Error is raised.
538 In addition the protected object's owner is updated.
539 (Unlock): Remove the ownership of the protected object.
540
541 * s-taprob.ads (Protection): Add the field Owner, used to store the
542 protected object's owner.
543 This component is needed for detecting one type of potentially blocking
544 operations (external calls on a protected subprogram with the same
545 target object as that of the protected action). Document the rest of
546 the components.
547
548 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
549 Initialize the protected object's owner to Null_Task.
550 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
551 caller of this procedure is already the protected object's owner then
552 Program_Error is raised.
553 Do not raise Program_Error when this procedure is called from a
554 protected action.
555 (Unlock_Entries): Remove the ownership of the protected object.
556 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
557 of this procedure is already the protected object's owner then
558 Program_Error is raised.
559 Do not raise Program_Error when this procedure is called from
560 a protected action.
561
562 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
563 used to store the protected object's owner.
564
565 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
566 effect and this procedure (a potentially blocking operation) is called
567 from whithin a protected action, Program_Error is raised.
568 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
569 and this procedure (a potentially blocking operation) is called from
570 whithin a protected action, Program_Error is raised.
571
572 2005-03-17 Vincent Celier <celier@adacore.com>
573 Nicolas Setton <setton@adacore.com>
574
575 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
576 switch, not supported by the linker on Darwin. Add '_' before
577 <library>init, as this character is added unconditionally by the
578 compiler.
579 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
580 correct one ".dylib". This fixes detection of the archive files when
581 building library projects.
582
583 2005-03-17 Vincent Celier <celier@adacore.com>
584
585 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
586 -gnat83, -gnat95 and -gnat05.
587
588 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
589
590 * gnat_ugn.texi: Document gnatmem restriction
591
592 2005-03-17 Thomas Quinot <quinot@adacore.com>
593
594 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
595 cleanup
596
597 2005-03-17 Robert Dewar <dewar@adacore.com>
598
599 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
600 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
601 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
602
603 * casing.adb: Comment improvements
604
605 2005-03-17 Pascal Obry <obry@adacore.com>
606
607 * g-expect.adb: Minor reformatting.
608
609 2005-03-15 Zack Weinberg <zack@codesourcery.com>
610
611 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
612 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
613 to dependencies.
614
615 2005-03-15 Vincent Celier <celier@adacore.com>
616
617 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
618 Add new parameter In_Tree to specify the project tree: needed
619 by the project manager. Adapt to changes in project manager
620 using new parameter In_Tree.
621
622 2005-03-15 Jakub Jelinek <jakub@redhat.com>
623
624 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
625 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
626 ada/bldtools to avoid make -jN failures.
627
628 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
629
630 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
631 to NULL_TREE on entry.
632
633 2005-03-15 Robert Dewar <dewar@adacore.com>
634
635 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
636 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
637 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
638 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
639 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
640 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
641 system-interix.ads, system-solaris-sparc.ads,
642 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
643 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
644 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
645 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
646 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
647 Compiler_System_Version to be False.
648
649 * opt.ads: Add new flag Opt.Address_Is_Private
650
651 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
652 Add new parameter Compiler_System_Version to avoid checking for
653 completeness of parameters when compiler is compiling itself.
654 Allows old versions of GNAT to be compiled with new compiler.
655
656 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
657
658 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
659 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
660 calling thread.
661 (Stack_Base_Available): New flag.
662 (Get_Page_Size): New overloaded functions imported from C.
663 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
664 PROT_ON, PROT_OFF): New constants.
665 (mprotect): New function imported from C.
666 (pthread_teb_t): New record type.
667
668 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
669 (Create_Task): Account for the Yellow Zone and the guard page.
670
671 2005-03-15 Vincent Celier <celier@adacore.com>
672
673 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
674 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
675 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
676 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
677 Library_File_Name_For): Add new parameter In_Tree
678 to specify the project tree: needed by the project manager.
679 Adapt to changes in project manager using new parameter In_Tree.
680 Remove local imports, use functions in System.CRTL.
681
682 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
683 to use the project manager.
684
685 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
686 In_Tree to designate the project tree. Adapt to changes in the project
687 manager, using In_Tree.
688
689 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
690 Copy_Interface_Sources): Add new parameter In_Tree to specify the
691 project tree: needed by the project manager.
692 (Build_Library): Check that Arg'Length >= 6 before checking if it
693 contains "--RTS=...".
694
695 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
696 Library_File_Name_For): Add new parameter In_Tree to specify the
697 project tree: needed by the project manager.
698
699 * prj.ads, prj.adb: Major modifications to allow several project trees
700 in memory at the same time.
701 Change tables to dynamic tables and hash tables to dynamic hash
702 tables. Move tables and hash tables from Prj.Com (in the visible part)
703 and Prj.Env (in the private part). Move some constants from the visible
704 part to the private part. Make other constants deferred.
705 (Project_Empty): Make it a variable, not a function
706 (Empty_Project): Add parameter Tree. Returns the data with the default
707 naming data of the project tree Tree.
708 (Initialize): After updating Std_Naming_Data, copy its value to the
709 component Naming of Project Empty.
710 (Register_Default_Naming_Scheme): Use and update the default naming
711 component of the project tree, instead of the global variable
712 Std_Naming_Data.
713 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
714 Tree is not defaulted, return the default naming data of the Tree.
715 (Initial_Buffer_Size): Constant moved from private part
716 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
717 variables initialized in procedure Initialize.
718 (Add_To_Buffer): Add two in out parameters to replace global variables
719 Buffer and Buffer_Last.
720 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
721 functions.
722 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
723 hash tables.
724 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
725 for the project tree.
726 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
727 constant at the beginning of the package spec, so that they cane be used
728 in subprograms before their full declarations.
729 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
730 (Empty_Project): Add parameter of type Project_Node_Ref
731 (Private_Project_Tree_Data): Add component Default_Naming of type
732 Naming_Data.
733 (Buffer, Buffer_Last): remove global variables
734 (Add_To_Buffer): Add two in out parameters to replace global variables
735 Buffer and Buffer_Last.
736 (Current_Packages_To_Check): Remove global variable
737 (Empty_Name): Move to private part
738 (No-Symbols): Make it a constant
739 (Private_Project_Tree_Data): New type for the private part of the
740 project tree data.
741 (Project_Tree_Data): New type for the data of a project tree
742 (Project_Tree_Ref): New type to designate a project tree
743 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
744 for the project tree.
745
746 * prj-attr.ads: Add with Table; needed, as package Prj no longer
747 imports package Table.
748
749 * prj-com.adb: Remove empty, no longer needed body
750
751 * prj-com.ads: Move most of the content of this package to package Prj.
752
753 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
754 designate the project node tree and Packages_To_Check to replace
755 global variable Current_Packages_To_Check.
756 Add new parameters In_Tree and Packages_To_Check to local subprograms,
757 when needed. Adapt to changes in project manager with project node tree
758 In_Tree.
759
760 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
761 project tree to most subprograms. Move tables and hash tables to
762 private part of package Prj.
763 Adapt to changes in project manager using project tree In_Tree.
764
765 * prj-makr.adb (Tree): New constant to designate the project node tree
766 Adapt to change in project manager using project node tree Tree
767
768 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
769 display the Library_Src_Dir and the Library_Dir.
770 Add new parameter In_Tree to designate the project node tree to most
771 subprograms. Adapt to changes in the project manager, using project tree
772 In_Tree.
773 (Check_Naming_Scheme): Do not alter the casing on platforms where
774 the casing of file names is not significant.
775 (Check): Add new parameter In_Tree to designate the
776
777 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
778 designate the project tree.
779 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
780
781 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
782 to replace those that were in the private part of package Prj.
783 Add new parameter In__Tree to designate the project node tree to most
784 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
785 (Post_Parse_Context_Clause): When specifying the project node of a with
786 clause, indicate that it is a limited with only if there is "limited"
787 in the with clause, not necessarily when In_Limited is True.
788 (Parse): Add new parameter In_Tree to designate the project node tree
789
790 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
791 designate the project node tree. Adapt to change in Prj.Tree with
792 project node tree In_Tree.
793
794 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
795 tree In_Tree in the call to function Empty_Process to give its initial
796 value to the project data Processed_Data.
797 Add new parameters In_Tree to designate the project tree and
798 From_Project_Node_Tree to designate the project node tree to several
799 subprograms. Adapt to change in project manager with project tree
800 In_Tree and project node tree From_Project_Node_Tree.
801
802 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
803 to replace those that were in the private part of package Prj.
804 Add new parameter In_Tree to designate the project node tree to most
805 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
806
807 * prj-tree.ads, prj-tree.adb: Add new parameter of type
808 Project_Node_Tree_Ref to most subprograms.
809 Use this new parameter to store project nodes in the designated project
810 node tree.
811 (Project_Node_Tree_Ref): New type to designate a project node tree
812 (Tree_Private_Part): Change table to dynamic table and hash tables to
813 dynamic hash tables.
814
815 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
816 the project tree to most subprograms. Adapt to changes in project
817 manager using project tree In_Tree.
818
819 * makegpr.adb (Project_Tree): New constant needed to use project
820 manager.
821
822 2005-03-15 Olivier Hainque <hainque@adacore.com>
823
824 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
825 for sigactions with SA_SIGINFO set. Call
826 __gnat_adjust_context_for_raise before raising, to perform the
827 potentially required adjustments to the machine context for the GCC
828 unwinder.
829
830 * raise.h (__gnat_adjust_context_for_raise): New prototype.
831
832 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
833 Adjust PC by one in the provided machine context.
834 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
835 so that the handler is passed the context structure to adjust prior to
836 the raise.
837 (__gnat_error_handler) HPUX: Adjust the signature to match what an
838 SA_SIGINFO sigaction should look like. Call
839 __gnat_adjust_context_for_raise before actually raising.
840 (__gnat_adjust_context_for_raise): Default noop to help PC
841 adjustments before raise from signal handlers.
842 (__gnat_error_handler): Indirectly call a predicate function to
843 determine if a condition should be resignaled or not.
844 (__gnat_set_resignal_predicate): User interface to modify the predicate.
845 (__gnat_default_resignal_p): Default GNAT predicate.
846
847 2005-03-15 Doug Rupp <rupp@adacore.com>
848
849 * adaint.c: Prefix #include of VMS system header files with vms/
850 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
851 Do not define a dummy function "convert_addresses" under Darwin,
852 not needed.
853
854 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
855 with vms/
856
857 2005-03-15 Nicolas Setton <setton@adacore.com>
858
859 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
860 PPC/AIX.
861
862 2005-03-15 Robert Dewar <dewar@adacore.com>
863
864 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
865 AI-386.
866
867 * a-retide.ads: Minor comment changes
868
869 2005-03-15 Robert Dewar <dewar@adacore.com>
870
871 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
872 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
873 Realloc_For_Chunk to private part of package.
874 New subprograms for AI-301
875
876 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
877 Get_Line procedure.
878 Avoid unnecessary use of Get/Set_Wide_String
879
880 2005-03-15 Robert Dewar <dewar@adacore.com>
881
882 PR ada/13470
883
884 * a-stunau.ads, a-stunau.adb:
885 Change interface to allow efficient (and correct) implementation
886 The previous changes to allow extra space in unbounded strings had
887 left this interface a bit broken.
888
889 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
890
891 * g-spipat.ads, g-spipat.adb: New interface for Get_String
892 Minor reformatting (function specs)
893
894 * g-spitbo.adb: New interface for Get_String
895
896 * g-spitbo.ads: Minor reformatting
897
898 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
899
900 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
901
902 2005-03-15 Javier Miranda <miranda@adacore.com>
903 Robert Dewar <dewar@adacore.com>
904 Thomas Quinot <quinot@adacore.com>
905 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
906
907 * atree.ads, atree.adb: Add support for Elist24 field
908
909 * atree.h: Fix wrong definition of Field27
910 Add support for Elist16 field
911 Add support for Elist24 field
912
913 * einfo.ads, einfo.adb (Abstract_Interfaces,
914 Set_Abstract_Interfaces): New subprograms.
915 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
916 subprograms.
917 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
918 entities rather than a single node.
919 (Is_Interface, Set_Is_Interface): New subprogram
920 (First_Tag_Component): New syntesized attribute
921 (Next_Tag_Component): New synthesized attribute
922 (Write_Entity_Flags): Upgraded to write Is_Interface
923 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
924 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
925 (Task_Body_Procedure): New subprogram to read this attribute.
926 (Set_Task_Body_Procedure): New subprogram to set this attribute.
927 (Has_Controlled_Component): Now applies to all entities.
928 This is only a documentation change, since it always worked to apply
929 this to other than composite types (yielding false), but now this is
930 official.
931 Update documentation on Must_Be_Byte_Aligned for new spec
932
933 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
934 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
935 uses of the Access_Disp_Table attribute to reference the first dispatch
936 table associated with a tagged type. As
937 part of the implementation of abstract interface types,
938 Access_Disp_Table has been redefined to contain a list of dispatch
939 tables (rather than a single dispatch table).
940 Similarly, upgrade all the references to Tag_Component by the
941 new attribute First_Tag_Component.
942 (Find_Inherited_TSS): Moved to exp_tss.
943 Clean up test in Expand_N_Object_Declaration for cases
944 where we need to do a separate assignment of the initial value.
945 (Expand_N_Object_Declaration): If the expression in the
946 declaration of a tagged type is an aggregate, no need to generate an
947 additional tag assignment.
948 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
949 is to be deleted.
950 Bit packed array ops are only called if operands are known to be
951 aligned.
952 (Component_Equality): When returning an N_Raise_Program_Error statement,
953 ensure that its Etype is set to Empty to avoid confusing GIGI (which
954 expects that only expressions have a bona fide type).
955 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
956 determine the amount of data to be copied.
957
958 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
959 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
960 INTERFACE_TYPE_DEFINITION ::=
961 [limited | task | protected | synchronized] interface
962 [AND interface_list]
963
964 * par-ch3.adb (P_Type_Declaration): Modified to give support to
965 interfaces.
966 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
967 interfaces.
968 (P_Interface_Type_Definition): New subprogram that parses the new
969 syntax rule of Ada 2005 interfaces
970 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
971 messages by the correct RENAMES (quotes removed).
972
973 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
974 attribute First_Tag_Component.
975
976 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
977 (Interface_List, Set_Interface_List): New subprograms.
978 (Interface_Present, Set_Interface_Present): New subprograms.
979 (Limited_Present, Set_Limited_Present): Available also in derived
980 type definition nodes.
981 (Protected_Present, Set_Protected_Present): Available also in
982 record type definition and
983 derived type definition nodes.
984 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
985 (Task_Present, Set_Task_Present): New subprogram.
986 (Task_Body_Procedure): Removed.
987 (Set_Task_Body_Procedure): Removed.
988 These subprogram have been removed because the attribute
989 Task_Body_Procedure has been moved to the corresponding task type
990 or task subtype entity to leave a field free to store the list
991 of interfaces implemented by a task (for AI-345)
992 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
993 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
994 expression flag Do_Range_Check
995 (Exception_Junk): Change to Flag7 to accomodate above change
996 (Box_Present, Default_Name, Specification, Set_Box_Present,
997 Set_Default_Name, Set_Specification): Expand the expression
998 "X in N_Formal_Subprogram_Declaration" into the corresponding
999 two comparisons. Required to use the csinfo tool.
1000
1001 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
1002 "with string" given.
1003
1004 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
1005 expression given.
1006
1007 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
1008 in 2005 mode
1009
1010 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
1011 attribute Task_Body_Procedure rather than the old semantic field that
1012 was available in the task_type_declaration node.
1013
1014 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
1015 interface type definitions.
1016 (P_Formal_Derived_Type_Definition): Modified to handle the list of
1017 interfaces.
1018
1019 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
1020 task type declaration.
1021 (P_Protected): Modified to handle the list of interfaces in a
1022 protected type declaration.
1023
1024 2005-03-15 Doug Rupp <rupp@adacore.com>
1025 Vincent Celier <celier@adacore.com>
1026
1027 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
1028 (Gen_Output_File_C): Likewise.
1029 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
1030
1031 2005-03-15 Thomas Quinot <quinot@adacore.com>
1032
1033 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
1034 is an N_Raise_Constraint_Error node, create a new copy of it without
1035 going through a call to Duplicate_Subexpr.
1036
1037 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
1038 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1039 Nicolas Setton <setton@adacore.com>
1040 Ed Schonberg <schonberg@adacore.com>
1041
1042 PR ada/19900
1043 PR ada/19408
1044 PR ada/19140
1045 PR ada/20255
1046
1047 * decl.c (gnat_to_gnu_field): Reject aliased components with a
1048 representation clause that prescribes a size not equal to the rounded
1049 size of their types.
1050 (gnat_to_gnu_entity, case E_Component): Always look at
1051 Original_Record_Component if Present and not the entity.
1052 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
1053 of tagged extension types by not making field for components that are
1054 inside the parent.
1055 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
1056 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
1057 expression to the type of the object when the object is constant.
1058 Reverse defer_debug_incomplete_list before traversing it, so that trees
1059 are processed in the order at which they were added to the list. This
1060 order is important when using the stabs debug format.
1061 If we are deferring the output of debug information, also defer this
1062 output for a function return type.
1063 When adding fields to a record, prevent emitting debug information
1064 for incomplete records, emit the information only when the record is
1065 complete.
1066 (components_to_record): New parameter defer_debug.
1067 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
1068 (gnat_to_gnu_field_decl): New function.
1069 (substitution_list, annotate_rep): Call it.
1070 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
1071 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
1072 No longer update discriminants to not be a COMPONENT_REF.
1073 (copy_alias_set): Strip padding from input type; also handle
1074 unconstrained arrays properly.
1075
1076 * gigi.h (write_record_type_debug_info): New function.
1077 Convert to use ANSI-style prototypes. Remove unused
1078 declarations for emit_stack_check, elab_all_gnat and
1079 set_second_error_entity.
1080 (gnat_to_gnu_field_decl): New decl.
1081
1082 * utils.c (write_record_type_debug_info): New function.
1083 (finish_record_type): Delegate generation of debug information to
1084 write_record_type_debug_info.
1085 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
1086 (update_pointer_to): Fix pasto.
1087 (convert) <UNION_TYPE>: Accept slight type variations when
1088 converting to an unchecked union type.
1089
1090 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
1091 replace the N_Freeze_Entity with a null statement.
1092
1093 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
1094 within a constrained subcomponent of an enclosing record, place the
1095 freeze nodes in the scope stack entry for the enclosing record.
1096 (Undelay_Type): New Subprogram.
1097 (Set_Small_Size): Pass T, the type to modify; all callers changed.
1098 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
1099 within records; allow them to have freeze nodes if their base types
1100 aren't frozen yet.
1101
1102 * exp_util.adb (Remove_Side_Effects): Properly test for
1103 Expansion_Delayed and handle case when it's inside an
1104 N_Qualified_Expression.
1105
1106 * sem_ch3.adb (Derived_Type_Declaration): New predicate
1107 Comes_From_Generic, to recognize accurately that the parent type in a
1108 derived type declaration can be traced back to a formal type, because
1109 it is one or is derived from one, or because its completion is derived
1110 from one.
1111 (Constrain_Component_Type): If component comes from source and has no
1112 explicit constraint, no need to constrain in in a subtype of the
1113 enclosing record.
1114 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
1115 Minor change to propagate Is_Ada_2005 flag
1116
1117 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
1118 Expansion_Delayed is False.
1119 (assoc_to_constructor): Ignore fields that have a
1120 Corresponding_Discriminant.
1121 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
1122 function returns "by target", dereference the target pointer using the
1123 type of the actual return value.
1124 <all>: Be prepared for a null gnu_result.
1125 (processed_inline_subprograms): Check flag_really_no_inline
1126 instead of flag_no_inline.
1127 (set_second_error_entity): Remove unused function.
1128 (gnat_to_gnu, case N_Selected_Component): Call
1129 gnat_to_gnu_field_decl.
1130 (assoc_to_constructor): Likewise.
1131
1132 2005-03-15 Robert Dewar <dewar@adacore.com>
1133 Ed Schonberg <schonberg@adacore.com>
1134 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1135
1136 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
1137 Must_Be_Byte_Aligned for cases where we do not need to use a
1138 System.Pack_nn unit.
1139
1140 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
1141 as procedures.
1142 Needed now that we do some processing for IN parameters as well. This
1143 may well fix some unrelated errors.
1144 (Expand_Call): Handle case of unaligned objects (in particular those
1145 that come from packed arrays).
1146 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
1147 renamed entity is an inherited operation, re-expand the call using the
1148 original operation, which is the one to call.
1149 Detect attempt to inline parameterless recursive subprogram.
1150 (Represented_As_Scalar): Fix to work properly with private types
1151 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
1152 accurate estimate. Yields True in far fewer cases than before,
1153 improving the quality of code that depends on this test.
1154
1155 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
1156 over both visible and private declarations to remove them from tree,
1157 and mark subprograms declared in package as eliminated, to prevent
1158 spurious use in subsequent compilation of generic units in the context.
1159
1160 * exp_util.ads: Minor cleanup in variable names
1161
1162 * sem_eval.ads, sem_eval.adb: Minor reformatting
1163 (Compile_Time_Known_Bounds): New function
1164
1165 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1166
1167 * exp_ch7.adb (Convert_View): Use base types of underlying types when
1168 determining whether an unchecked conversion is needed for the argument
1169 of an initialization call.
1170
1171 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1172
1173 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
1174 that appears in the instantiation rather than the internal subtype
1175 generated in the wrapper package, to avoid anomalies in gigi when the
1176 target is derived from a private type whose full view is an access type.
1177
1178 2005-03-15 Robert Dewar <dewar@adacore.com>
1179
1180 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
1181 not needed.
1182 Add documentation to replace the use of this flag
1183 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
1184 the x86_64.
1185
1186 2005-03-15 Thomas Quinot <quinot@adacore.com>
1187
1188 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
1189 here from exp_attr so it can be shared between exp_attr and exp_dist.
1190 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
1191 all TSS names, not a subset thereof, and the previous name introduced
1192 an unnecessarily confusion that a distinction might exist between
1193 "OK" TSS names and some "not OK" TSS names.
1194
1195 2005-03-15 Doug Rupp <rupp@adacore.com>
1196
1197 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
1198 Command_Name.
1199
1200 2005-03-15 Pascal Obry <obry@adacore.com>
1201 Eric Botcazou <ebotcazou@adacore.com>
1202
1203 PR ada/20226
1204 PR ada/20344
1205
1206 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
1207 when IN_RTS. This is to work around a bootstrap path problem.
1208
1209 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
1210 table and pass it to __gnat_install_SEH_handler().
1211 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
1212
1213 * lang.opt: Fix specification of -fRTS=.
1214
1215 2005-03-15 Doug Rupp <rupp@adacore.com>
1216 Bernard Banner <banner@adacore.com>
1217 Vincent Celier <celier@adacore.com>
1218 Arnaud Charlet <charlet@adacore.com>
1219
1220 PR ada/6852
1221 This change works fine when gnatlib is built from the gcc directory,
1222 but does not work when using the libada Makefile, since GCC_FOR_TARGET
1223 is not passed to ada/Makefile.in, so more work is needed by a
1224 Makefile/configure expert.
1225
1226 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
1227 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
1228 Setup gnatlink switch -M for x86_64 linux, as it is already setup
1229 for Linux x86.
1230 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
1231 Run ranlib on libgccprefix.a
1232 Define PREFIX_OBJS for Darwin, to build libgccprefix.
1233 (ADA_INCLUDE_SRCS): Split Ada packages.
1234
1235 2005-03-15 Robert Dewar <dewar@adacore.com>
1236
1237 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
1238
1239 * impunit.adb: Add GNAT.UTF_32
1240
1241 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
1242
1243 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
1244 now uses GNAT.UTF_32).
1245
1246 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
1247 capabilities for categorizing characters using Unicode categories
1248
1249 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1250
1251 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
1252 instantiation that has been rewritten as a package body, retrieve spec
1253 to generate proper name for implicit_with_clause.
1254 (Install_Parents): Recognize a parent that is an instantiation but has
1255 been rewritten as a package declaration during analysis.
1256
1257 2005-03-15 Javier Miranda <miranda@adacore.com>
1258 Ed Schonberg <schonberg@adacore.com>
1259
1260 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
1261 parameter reported some error we immediately return. This improves the
1262 behaviour of the frontend in case of errors.
1263 (Install_Parent, Remove_Parent): Introduce new flag
1264 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
1265 ancestor of a generic child unit, when the child is being instantiated.
1266 (Inline_Instance_Body): If we are compiling the private
1267 part or the body of a child unit, restore the proper visibility of the
1268 parents after compiling the instance body.
1269
1270 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1271 Javier Miranda <miranda@adacore.com>
1272
1273 PR ada/15608
1274 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
1275 of a private type, in which case it is underlying_type that denotes
1276 the proper task. Also modified to use the new entity attribute
1277 that is directly available in the task type and task subtype entities
1278 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
1279 arrays when other dimensions than the first are constrained by
1280 discriminants of an enclosing record.
1281 (Insert_Explicit_Dereference): If the prefix is an indexed component or
1282 a combination of indexed and selected components, find ultimate entity
1283 and generate the appropriate reference for it, to suppress spurious
1284 warnings.
1285 (Note_Possible_Modification): If an entity name has no entity, return.
1286 (Is_Variable): A function call never denotes a variable.
1287 (Requires_Transient_Scope): For record types, recurse only on
1288 components, not on internal subtypes that may have been generated for
1289 constrained components.
1290
1291 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1292
1293 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
1294 Eliminated as candidates for resolution. Both efficient, and avoids
1295 anomalies with operators declared in deleted code.
1296 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
1297 expansion is disabled (as when compiling a generic) to prevent spurious
1298 warnings on prefixes of selected components.
1299
1300 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1301
1302 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
1303 attached to a list before checking whether it appears in the private
1304 declarations of the current package.
1305 (Make_Inequality_Operator): Insert declaration in proper declarative
1306 list rather than just setting the Parent field, so that
1307 Is_Private_Declaration can handle it properly.
1308
1309 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1310
1311 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
1312 a renaming a body, check that the renamed subprogram in not intrinsic.
1313 (Find_Direct_Name): If several use_visible entities hide
1314 each other, and the context is a predefined file compiled through
1315 rtsfind, keep only the entity that comes from a predefined file.
1316
1317 2005-03-15 Geert Bosch <bosch@adacore.com>
1318
1319 * s-fatgen.adb (Valid): Extend special exceptions to account for long
1320 long float padding to also cover AMD64 and IA64.
1321
1322 2005-03-15 Gary Dismukes <dismukes@adacore.com>
1323
1324 * s-imgwch.adb: Add with and use of Interfaces.
1325 (Img_Wide_Character): Change type of Val to Unsigned_16.
1326 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
1327
1328 2005-03-15 Matthew Gingell <gingell@adacore.com>
1329
1330 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
1331
1332 2005-03-15 Robert Dewar <dewar@adacore.com>
1333
1334 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
1335
1336 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
1337
1338 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
1339
1340 2005-03-15 Robert Dewar <dewar@adacore.com>
1341
1342 * s-bitops.adb, s-bitops.ads,
1343 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
1344 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
1345 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
1346 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
1347 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
1348 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
1349 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
1350 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
1351 reformatting.
1352
1353 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
1354
1355 * utils2.c (build_binary_op): Fix typo.
1356
1357 2005-03-15 Doug Rupp <rupp@adacore.com>
1358
1359 * s-crtl.ads (popen,pclose): New imports.
1360
1361 2005-03-15 Cyrille Comar <comar@adacore.com>
1362
1363 * comperr.adb (Compiler_Abort): remove references to obsolete
1364 procedures in the bug boxes for various GNAT builds.
1365
1366 2005-03-15 Vincent Celier <celier@adacore.com>
1367
1368 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
1369
1370 2005-03-15 Geert Bosch <bosch@adacore.com>
1371 Arnaud Charlet <charlet@adacore.com>
1372 Robert Dewar <dewar@adacore.com>
1373 Cyrille Comar <comar@adacore.com>
1374 Sergey Rybin <rybin@adacore.com>
1375
1376 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
1377 too specific and long-winded to be appropriate for the GNAT User's
1378 Guide.
1379 Warn about use of GCC switches not documented in the GNAT User's Guide,
1380 as these may cause generated code to not conform to Ada semantics.
1381 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
1382 Add documentation for -gnat95 and -gnat05 switches
1383 Remove paragraph documenting obsolete way to refer to third party
1384 libraries.
1385 Add a few references to Ada_05 that were missing.
1386 Update documentation on -gnatZ/-gnatL.
1387 Document limitation when using -m64 under Solaris.
1388 Change the "Name Casing" subsection of the pretty-printer section
1389 according to the changes in the dictionary processing.
1390
1391 * gnat_rm.texi: Document the Ada_05 pragma.
1392 Section on record representation clauses describes the new more
1393 relaxed rules about placement of large packed bit array components.
1394 Add documentation of GNAT.UTF_32
1395
1396 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
1397
1398 * misc.c (gnat_post_options): Turn off structural
1399 aliasing for now.
1400
1401 2005-03-08 Laurent Guerby <laurent@guerby.net>
1402
1403 * system-linux-sparc.ads: Fix typo in previous commit.
1404
1405 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
1406 Laurent Guerby <laurent@guerby.net>
1407
1408 PR ada/20035
1409 * system-linux-sparc.ads: New.
1410 * Makefile.in: Add sparc linux entry.
1411
1412 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
1413
1414 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
1415 parameters as unused.
1416
1417 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
1418 Partial merge from libada-gnattools-branch:
1419
1420 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
1421 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
1422 into code in gnattools/Makefile.in. Remove direct dependencies on
1423 stamp-tools by tools clauses.
1424 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
1425 * config-lang.in: Add gnattools to $lang_dirs.
1426
1427 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
1428
1429 PR ada/19942
1430 * utils.c (gnat_type_for_mode): Return null instead of ICE because
1431 we asked for an unknown mode.
1432
1433 2005-02-12 Richard Henderson <rth@redhat.com>
1434
1435 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
1436 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
1437
1438 2005-02-10 Andreas Jaeger <aj@suse.de>
1439
1440 * init.c (__gnat_initialize): Mark parameter as unused.
1441
1442 2005-02-09 Doug Rupp <rupp@adacore.com>
1443
1444 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
1445 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
1446
1447 2005-02-09 Doug Rupp <rupp@adacore.com>
1448
1449 * gnatchop.adb (dup, dup2),
1450 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
1451
1452 * gnatlbr.adb (mkdir),
1453 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
1454
1455 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
1456
1457 2005-02-09 Doug Rupp <rupp@adacore.com>
1458
1459 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
1460
1461 2005-02-09 Robert Dewar <dewar@adacore.com>
1462 Thomas Quinot <quinot@adacore.com>
1463 Javier Miranda <miranda@adacore.com>
1464 Pascal Obry <obry@adacore.com>
1465 Ed Schonberg <schonberg@adacore.com>
1466 Doug Rupp <rupp@adacore.com>
1467 Gary Dismukes <dismukes@adacore.com>
1468 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1469
1470 * g-zstspl.ads: New file.
1471
1472 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
1473
1474 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
1475 Ada 95 mode
1476 Add definition of Wide_Wide_Space for AI-285
1477
1478 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
1479 interface (to support Ada 95 and Ada 2005 units).
1480 Add Unbounded_IO files
1481 Add entries for Wide_Wide packages for AI-285
1482 Add list of containers packages to Ada 2005 unit list
1483
1484 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
1485 support new Unbounded_IO package cleanly.
1486
1487 * g-utf_32.ads, g-utf_32.adb: New files.
1488
1489 * Makefile.rtl: Add entry for g-utf_32
1490 Add new files for Unbounded_IO
1491 Adjust make file for new AI-285 wide wide packages
1492 Add AI-302 containers to the run time.
1493
1494 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
1495 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
1496 subprograms for AI-301.
1497
1498 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
1499
1500 * a-stunau.ads: Minor comment correction
1501
1502 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
1503 etc.
1504 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
1505 (Check_RPC): Update to match changes in expanded code.
1506 Clean up unused entity.
1507
1508 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
1509 was not taken into account.
1510 This includes proper initialization with Normalize_Scalars.
1511 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
1512 normalize scalars cases (particularly the latter) to do a better job
1513 of finding invalid representations.
1514
1515 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
1516
1517 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
1518 used
1519
1520 * exp_dist.adb: Add support for wide wide character type
1521 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
1522 private part, generate stub bodies at the end of the private part,
1523 not the visible part.
1524 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
1525 PolyORB support.
1526 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
1527 generic wrapper to execute final processing after completing the
1528 expansion of the RPC receiver for an RACW.
1529
1530 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
1531 packages and attributes.
1532 (Preset_Names): Addition of the new reserved words of Ada 2005,
1533 that is interface, overriding and synchronized.
1534 (Get_Pragma_Id): Give support to the use of the new reserved word
1535 "interface" as a pragma name.
1536 (Is_Pragma_Name): Give support to the use of the new reserved word
1537 "interface" as a pragma name.
1538 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
1539 attribute implementation.
1540
1541 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
1542 checks to entities that are output parameters of Asm operations.
1543 Handle the Stream_Size attribute.
1544 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
1545
1546 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
1547
1548 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
1549 for second parameter being 0.0.
1550 Add support for wide wide character type.
1551 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
1552
1553 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
1554 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
1555 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
1556 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
1557 for wide wide character cases.
1558
1559 * cstand.adb: Create entities for Wide_Wide_Character and
1560 Wide_Wide_String.
1561
1562 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
1563 accordance with AI-258.
1564 Add new declarations for 16/32 bit C character types (Part of AI285)
1565
1566 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
1567 (Obsolescent_Warning): New field
1568 (Rep_Clause): New local subprogram used to share code. Returns the rep
1569 clause for which the name is given in parameter.
1570 (Has_Stream_Size_Clause): New routine.
1571 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
1572 (Address_Clause): Implementation is now using Rep_Clause.
1573 (Alignment_Clause): Idem.
1574 (Size_Clause): Idem.
1575
1576 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
1577 entity in non-Ada 2005 mode and generate warning.
1578
1579 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
1580 (Prag): Code cleanup. Remove old gnat pragma "overriding"
1581
1582 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
1583 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
1584 on the named unit if the pragma is not in the current compilation unit,
1585 so that elaboration calls in the current unit can set up an elaboration
1586 dependency on the named unit, as needed.
1587 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
1588 subprogram as well as for subprograms declared within a package.
1589 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
1590 pragma overriding.
1591
1592 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
1593 to z) to avoid some instances of duplication for Wide_Wide packages.
1594
1595 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
1596 characters.
1597
1598 * scn.adb: Char_Literal_Value field is now a Uint
1599
1600 * scng.adb: Significant rewrite to handle new Ada 2005 features
1601 allowing wide and wide wide characters in program text, e.g. for
1602 identifiers, as described in AI-285.
1603 (Set_Reserved): New procedure, makes setting up keywords cleaner.
1604 (Initialize_Scanner): Register the new reserved words of Ada 2005.
1605 (Scan): Give support to the new reserved words.
1606
1607 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
1608 warning notifying that interface, overriding, and synchronized are
1609 new reserved words.
1610 (P_Pragma): Allow the use of the new reserved word "interface" as
1611 a pragma name.
1612
1613 * gnatls.adb, gnatbind.adb,
1614 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
1615 identifiers named "interface" to "SAL_Interface".
1616
1617 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
1618 (Structured Exception handling).
1619 (Gen_Main_C): Idem.
1620
1621 * bindgen.adb:
1622 (Gen_Main_Ada): Set the default exit code if specified.
1623 (Gen_Main_C): Likewise.
1624 Part of *DC20-006.
1625 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
1626 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
1627
1628 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
1629 new -Xnnn switch.
1630
1631 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
1632 has a collision with the new Ada 2005 "interface" reserved word.
1633
1634 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
1635 generate a warning notifying that interface, overriding, and
1636 synchronized are new reserved words.
1637
1638 * scans.ads (Token_Type): Addition of the tokens corresponding to the
1639 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
1640 and Tok_Synchronized.
1641
1642 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
1643 "dispatching" rather than "primitive" operations, since dispatching
1644 calls are now allowed to abstract formal subprograms (which are not
1645 primitive).
1646 Char_Literal_Value field is now a Uint
1647 (Resolve_Slice): If the prefix is an access to an unconstrained array,
1648 compute the actual subtype of the designated object to impose the proper
1649 index constraints.
1650 (Resolve_Selected_Component): Do not insert an access check if the
1651 prefix is an access type: such a node is expanded into an explicit
1652 dereference, on which the access check is performed anyway. Removes
1653 expensive duplicate checks.
1654 (Resolve_Call): Use new flag Is_Obsolescent and field
1655 Obsolescent_Warning so that pragma Obsolescent works on library
1656 subprograms.
1657 Add support for wide wide character type
1658 (Resolve_Allocator): Replace the error message on wrong null-exclusion
1659 value by a warning message.
1660 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
1661 as fixed-point, and one of the operands is non-static and universal, it
1662 can only be an illegal exponentiation operation, in which case there is
1663 no real value to retrieve.
1664
1665 * exp_strm.adb: Add support for wide wide character type
1666 (Build_Elementary_Input_Call): Compute the size of the stream element by
1667 querying the rep chain to find the Stream_Attribute attribute value.
1668 (Build_Elementary_Write_Call): Ditto.
1669
1670 * sem_aggr.adb: Char_Literal_Value field is now a Uint
1671 Add support for wide wide character type
1672 Replace the error messages on wrong null-exclusion value by warnings
1673 as described in Ada 2005.
1674 (Resolve_Extension_Aggregate): Document the fact that the error
1675 message on class-wide expressions in extensions aggregates.
1676
1677 * sem_case.adb: Add support for wide wide character type
1678
1679 * sem_ch13.adb: Add support for wide wide character type
1680 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
1681
1682 * sem_ch3.adb: Add support for wide wide character type
1683 (Process_Subtype): If constraint is illegal for the type, set Ekind of
1684 now-useless Itype, to prevent cascaded errors on a compiler built
1685 without -gnatp.
1686
1687 * sem_ch8.adb: Add with and use of Sem_Disp.
1688 (Analyze_Subprogram_Renaming): Replace unclean uses of
1689 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
1690 of Corresponding_Spec to Empty).
1691 (Attribute_Renaming): Replace use of Corresponding_Spec with
1692 Corresponding_ Formal_Spec and simplify condition.
1693 (Use_One_Package): Check that scope of homonym of identifier is defined,
1694 before checking whether it is a wrapper package.
1695 Add support for wide wide character type
1696
1697 * sem_eval.adb: Add support for wide wide character type.
1698 (Eval_Arithmetic_Op): Check for compile time known signed integer
1699 overflow in the non-static case.
1700 (Subtypes_Statically_Match): A formal scalar type and its base type do
1701 not statically match.
1702
1703 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
1704 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
1705 subtype).
1706 (Unit_Declaration_Node): Ditto.
1707 (Is_Variable_Prefix): For the case of an indexed component whose prefix
1708 has a packed array type, the prefix has been rewritten into a type
1709 conversion. Determine variable-ness from the converted expression.
1710 Handle wide wide character cases.
1711
1712 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
1713
1714 * stringt.ads, stringt.adb: Handle full UTF-32 range.
1715 Remove ["0A"] from comment, since it can look like a line terminator.
1716 Currently we don't permit this, but this is under discussion by the
1717 ARG, and it is easy enough to use a different example.
1718
1719 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
1720 handling UTF-32 encoding for wide wide character.
1721 Implement new brackets coding ["hhhhhhhh"]
1722 Add UTF-8 encodings for full UTF-32 range
1723
1724 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
1725
1726 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
1727 bit range Add full UTF-32 support.
1728 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
1729 notify that constraint error will be raised at run-time
1730 because a null value is assigned to a null-excluding object.
1731 Remove some obsolete declarations and make Char_Code
1732 unsigned.
1733
1734 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
1735 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
1736 Rcheck subprograms.
1737
1738 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
1739 wrong null-exclusion value by a warning message.
1740 (Enable_Range_Check): Do range check if the prefix is an
1741 explicit dereference whose designated object is an unconstrained array.
1742 Current algorithm for removing duplicate checks is over-eager in this
1743 case.
1744
1745 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
1746 null-exclusion value by a warning message
1747
1748 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
1749 completely. Add support for Uint2 field
1750
1751 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
1752 exp_prag.adb: Char_Literal_Value field is now a Uint.
1753
1754 * exp_util.adb (Insert_Actions): Replace
1755 N_Formal_Subprogram_Declaration by
1756 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
1757 Char_Literal_Value field is now a Uint.
1758
1759 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
1760 defined for subprogram renaming declarations. When set, the field
1761 indicates the defining entity of a corresponding formal subprogram
1762 when the renaming corresponds to a formal subprogram association in an
1763 instantiation.
1764 (Set_Corresponding_Formal_Spec): New procedure to return
1765 Corresponding_Formal_Spec field.
1766 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
1767 (which is now a subtype).
1768 Char_Literal_Value field is now a Uint
1769
1770 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
1771 pointer to the base of the dispatch table.
1772 Minor changes to comments.
1773 (Controlling_Type): New function for determining the tagged type
1774 associated with a tagged primitive subprogram.
1775 (Expand_Dispatching_Call): Add support for a controlling actual that is
1776 directly a value of type Ada.Tag rather than a tagged object.
1777
1778 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
1779 describing the new layout.
1780 (Dispatch_Table): The expander computes the actual array size, allocates
1781 the Dispatch_Table record accordingly, and generates code that displaces
1782 the base of the record after the Typeinfo_Ptr component. The access to
1783 these components is done by means of local functions.
1784 (Offset_To_Top): New function.
1785 (Typeinfo_Ptr): New function.
1786 (Get_TSD): Modified to access the new position of the TSD.
1787 (Set_TSD): Modified to save the TSD in its new position.
1788
1789 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
1790 case of formal abstract subprograms. Add check and message for -gnat05.
1791 Update comments.
1792
1793 * sem_ch12.adb: Add with and use for Sem_Disp.
1794 (Analyze_Associations): Minor change from "=" to "in" for use of
1795 N_Formal_Subtype_Declaration (which is now a subtype).
1796 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
1797 N_Formal_Subtype_Declaration (which is now a subtype).
1798 (Analyze_Formal_Subprogram): Add handling for
1799 N_Formal_Abstract_Subprogram, marking the formal as abstract and
1800 dispatching, setting the controlling status of the formal parameters
1801 and result, and issuing an error if there is no controlling type for
1802 the formal subprogram.
1803 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
1804 which is an unclean use of that field, we set the new field
1805 Corresponding_Formal_Spec to make the formal subprogram available to
1806 processing in Analyze_Subprogram_Declaration.
1807 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
1808 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
1809 Constrained, so that it is is does not statically match its anonymous
1810 base type.
1811
1812 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
1813 abstract formal subprograms in error check for functions returning
1814 abstract types. Set scope of new designator for
1815 a parameterless subprogram, so that it is available when checking the
1816 body for nested subprograms, before full analysis of said body.
1817 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
1818 subprogram only if inner one comes from source.
1819 (Analyze_Function_Call): If the call is given in object notation, the
1820 analysis of the name rewrites the node and analyzes it with the proper
1821 argument list. After analyzing the name, if the call has been rewritten
1822 and the result type is set, no further analysis is needed.
1823 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
1824 mark in function specification, in a context where the formals are
1825 visible and hide outer homographs.
1826
1827 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
1828 as the tagged type for the cases of abstract formal subprograms and
1829 renamings of those. Clean up spec comments.
1830 (Check_Dispatching_Context): Add error message to indicate "abstract
1831 procedure", covering the case of a call to a formal abstract procedure
1832 that has statically tagged operands.
1833 (Check_Dispatching_Call): Check for the case of an actual given by
1834 a tag-indeterminate function call whose type is an ancestor of the
1835 containing call's associated tagged type. This situation can occur
1836 for inherited primitives with function defaults. In this case we
1837 use the tagged type's tag directly as the controlling argument for
1838 the calls.
1839 (Expand_Call): Name change on call to Expand_Dispatch_Call.
1840
1841 * sprint.adb (Sprint_Node_Actual): Split
1842 N_Formal_Subprogram_Declaration into two alternatives for the new
1843 cases N_Formal_Abstract_Subprogram_Declaration and
1844 N_Formal_Concrete_Subprogram_Declaration.
1845 Char_Literal_Value field is now a Uint.
1846
1847 * trans.c: Get rid of junk Uint2 reference.
1848 Char_Literal_Value field is now a Uint.
1849 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
1850 (gigi): Correct third arg to gimplify_body.
1851
1852 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
1853 (TYPE_LANG_FLAG_0): Check for record or union.
1854
1855 * treepr.adb: Char_Literal_Value field is now a Uint
1856
1857 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
1858 UI_From_CC.
1859
1860 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
1861 Add full UTF-32 support
1862 Char_Code is now 32 bits
1863
1864 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
1865 wide character UTF_32 line terminators.
1866 Initialize Main_Source_File to avoid error when no main
1867 source is loaded.
1868
1869 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
1870 (Main_Source_File) when no main source has been loaded, to avoid
1871 potential crash.
1872
1873 2005-02-09 Robert Dewar <dewar@adacore.com>
1874
1875 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
1876 Fix name of Set routine
1877
1878 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
1879 fixed packages.
1880
1881 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
1882 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
1883 fixed packages
1884
1885 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
1886 forms of Get_Line subprograms for AI-301.
1887
1888 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
1889 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
1890 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
1891 a-stwima.ads: Minor reformatting.
1892
1893 2005-02-09 Doug Rupp <rupp@adacore.com>
1894 Thomas Quinot <quinot@adacore.com>
1895
1896 * adaint.c, adaint.h
1897 [VMS] (to_ptr32): New function.
1898 (MAYBE_TO_PTR32): New macro.
1899 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
1900 for pointer size.
1901 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
1902 [VMS] (#define fork()): Remove since unneccessary.
1903 (__gnat_set_close_on_exec): New routine to support
1904 GNAT.OS_Lib.Set_Close_On_Exec.
1905
1906 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
1907 the parent side as close-on-exec so that they are not inherited by the
1908 child.
1909
1910 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
1911 set or clear the FD_CLOEXEC flag on a file descriptor.
1912
1913 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
1914 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1915
1916 Fix for c330001 - PR ada/19386
1917
1918 * decl.c:
1919 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
1920 on the field if Pragma Component_Alignment (Storage_Unit).
1921 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
1922 side-effects as if it were a constant; also make SAVE_EXPR to protect
1923 side-effects.
1924 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
1925 UNION_TYPE.
1926 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
1927 (components_to_record): Test it.
1928 Fix improper usage of REFERENCE_CLASS_P.
1929
1930 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
1931 RECORD_TYPE.
1932
1933 * utils2.c: Minor reformatting.
1934
1935 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
1936 handle other cases like RECORD_TYPE.
1937
1938 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
1939
1940 2005-02-09 Ed Schonberg <schonberg@adacore.com>
1941
1942 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
1943 component of an array of arrays in an assignment context, and the
1944 aggregate has component associations that require sliding on
1945 assignment, force reanalysis of the aggregate to generate a temporary
1946 before the assignment.
1947 (Must_Slide): Make global to the package, for use in Gen_Assign.
1948
1949 2005-02-09 Ed Schonberg <schonberg@adacore.com>
1950
1951 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
1952 unchecked union with no inferable discriminants, return a
1953 Raise_Program_Error node, rather than inserting it at the point the
1954 type is frozen.
1955 (Expand_Record_Equality, Component_Equality): Handle properly the case
1956 where some subcomponent is an unchecked union whose generated equality
1957 code raises program error.
1958
1959 2005-02-09 Doug Rupp <rupp@adacore.com>
1960
1961 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
1962 [VMS] (#define exit hack): Remove.
1963
1964 2005-02-09 Pascal Obry <obry@adacore.com>
1965 Arnaud Charlet <charlet@adacore.com>
1966
1967 * init.c (__gnat_initialize): Add a new parameter eh which contains the
1968 address of the exception registration. The Win32 version of this
1969 routine calls __gnat_install_SEH_handler() to initialize the SEH
1970 (Structured Exception Handling) handler.
1971 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
1972 SEH (Structured Exception Handling) now.
1973 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
1974 (__gnat_initialize for ppc-vxworks): Adjust comments and the
1975 preprocessor condition protecting the call to the extra eh setup
1976 subprogram, which is only available for the ppc target.
1977 (__gnat_clear_exception_count): replaced reference to
1978 variable taskIdCurrent by call to taskIdSelf(), cleaner.
1979
1980 * seh_init.c: New file.
1981
1982 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
1983 (GNATBIND_OBJS): Idem.
1984
1985 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
1986 routine takes a new parameter (a pointer to the exception registration
1987 for the SEH (Structured Exception Handling) support.
1988
1989 * raise.h: (__gnat_install_SEH_handler): New prototype.
1990 Update copyright notice.
1991
1992 * s-tassta.adb (Task_Wrapper): Declare the exception registration
1993 record and initialize it by calling __gnat_install_SEH_handler.
1994
1995 2005-02-09 Vincent Celier <celier@adacore.com>
1996
1997 * make.adb (Gnatmake): Do not fail when the main project has no object
1998 directory.
1999
2000 2005-02-09 Doug Rupp <rupp@adacore.com>
2001
2002 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
2003 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
2004 [VMS]: Add translations for g-enblsp.adb.
2005
2006 * s-asthan-vms.adb: Removed.
2007 * s-asthan-vms-alpha.adb: Added.
2008
2009 2005-02-09 Pascal Obry <obry@adacore.com>
2010
2011 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
2012 (LIBGNAT_OBJS): Add seh_init.o.
2013
2014 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2015
2016 PR ada/16592
2017
2018 * Makefile.in: Link all gnat tools with -static-libgcc, since
2019 -shared-libgcc is now used by default on some systems (e.g. linux with
2020 recent binutils).
2021 Remove references to Makefile.prolog/generic, no longer used.
2022
2023 2005-02-09 Vincent Celier <celier@adacore.com>
2024
2025 * prj-makr.adb (Process_Directory): Put file name in canonical case
2026 before matching against the patterns.
2027 If gnatname has been invoked as <prefix>-gnatname
2028 then invoke the compiler as <prefix>-gcc, not just "gcc".
2029
2030 2005-02-09 Ed Schonberg <schonberg@adacore.com>
2031
2032 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
2033 with expansion disabled. The actual subtype is needed among other
2034 places when the selected component appears in the context of a loop
2035 bound, and denotes a packed array.
2036 (Operator_Check): Always use the first subtype in the
2037 error message, to avoid the appearance of internal base types.
2038 (Transform_Object_Operation): Copy each actual in full
2039 to the parameter associations of the constructed call, rather than
2040 using the shallow copy mechanism of New_Copy_List. This ensures that
2041 the chaining of named associations is done properly.
2042 (Complete_Object_Operation): Rewrite node, rather than
2043 replacing it, so that we can trace back to the original selected
2044 component.
2045
2046 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
2047 and calls that use object notation, if the called function is not
2048 declared in a withed unit, place the elaboration constraint on the
2049 unit in the context that makes the function accessible.
2050 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
2051 imposes an elaboration constraint between two packages.
2052
2053 2005-02-09 Ed Schonberg <schonberg@adacore.com>
2054
2055 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
2056 views of a private type after handling its private dependents, to
2057 maintain proper stack discipline between entry and exit from the
2058 package.
2059
2060 2005-02-09 Cyrille Comar <comar@adacore.com>
2061
2062 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
2063 Minor reformatting.
2064
2065 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2066
2067 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
2068 fields for foreign threads.
2069
2070 2005-02-09 Doug Rupp <rupp@adacore.com>
2071
2072 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
2073 recursion warnings when compiled with -gnatdm.
2074
2075 2005-02-09 Robert Dewar <dewar@adacore.com>
2076
2077 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
2078 Slight fix to documentation of -gnaty with no parameters
2079
2080 * xr_tabls.ads: Add ??? comment for missing overall comment
2081
2082 * xsinfo.adb: Make default file name be sinfo.h, since this is what
2083 we now use by default.
2084
2085 * xsnames.adb: Adjust end of file test to look for five space followed
2086 by '#' instead of six spaces. The format of xsnames.adb was modified
2087 in the last update.
2088
2089 * a-numeri.ads: Add reference to AI-388 for greek letter pi
2090 identifier.
2091
2092 * clean.adb: Minor reformatting.
2093
2094 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
2095 gnatname.adb: Minor reformatting
2096 Add 2005 to copyright output when utility is run
2097
2098 * csets.adb: Eliminate obsolete comment
2099
2100 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
2101 Update comments.
2102
2103 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
2104
2105 2005-02-09 Sergey Rybin <rybin@adacore.com>
2106
2107 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
2108 the difference between compact and incompact layout and add the record
2109 representation clause to the example illustrating different layouts.
2110 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
2111 component clauses").
2112
2113 2005-02-09 Florian Villoing <villoing@adacore.com>
2114
2115 * gnat_ugn.texi: Fix typos.
2116 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
2117 @file.
2118 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
2119 in the generated documentation.
2120
2121 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2122
2123 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
2124 longer supported.
2125 Update linker wrapper when linking with non GNU C++.
2126
2127 2005-02-09 Pascal Obry <obry@adacore.com>
2128
2129 * gnat_ugn.texi:
2130 Document the procedure to debug the DllMain routine on Windows.
2131 Add note about -funwind-tables and mixed Ada and C/C++ programming in
2132 ZCX mode.
2133 Document new BIND qualifer /RETURN_CODES=VMS.
2134
2135 2005-02-09 Ben Brosgol <brosgol@adacore.com>
2136
2137 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2138 Edited gnatmetric chapter
2139
2140 2005-02-09 Robert Dewar <dewar@adacore.com>
2141
2142 * gnat_rm.texi:
2143 Changes to document new wide wide character support
2144 For AI-285
2145 Update documentation on Normalize_Scalars and Initialize_Scalars
2146
2147 2005-02-09 Pascal Obry <obry@adacore.com>
2148
2149 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
2150
2151 2005-02-09 Jose Ruiz <ruiz@adacore.com>
2152
2153 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
2154 from the VxWorks kernel) that is needed for getting the active
2155 priority of the different tasks.
2156
2157 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
2158 Use a pragma Elaborate_Body in the spec file instead.
2159 Noticed by code reading.
2160
2161 2005-02-09 Thomas Quinot <quinot@adacore.com>
2162
2163 * exp_util.ads: Minor correction in comment.
2164
2165 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2166
2167 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
2168 since this procedure is now too complex to be worth inlining.
2169
2170 2005-02-09 Richard Henderson <rth@redhat.com>
2171
2172 * utils.c (gnat_define_builtin): Remove.
2173 (gnat_install_builtins): Use build_common_builtin_nodes.
2174
2175 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2176
2177 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
2178 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
2179 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
2180 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
2181 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
2182 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
2183 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
2184 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
2185 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
2186 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
2187 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
2188 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
2189 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
2190 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
2191 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
2192 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
2193 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
2194 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
2195 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
2196 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
2197 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
2198 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
2199 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
2200 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
2201 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
2202 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
2203 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
2204 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
2205 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
2206 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
2207 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
2208 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
2209 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
2210 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
2211 library.
2212
2213 2005-01-27 Laurent GUERBY <laurent@guerby.net>
2214
2215 * Makefile.in: Fix a-intnam.ads from previous commit,
2216 add 2005 to copyright.
2217 * a-intman-rtems.ads: Renamed to...
2218 * a-intnam-rtems.ads:
2219
2220 2005-01-27 Laurent GUERBY <laurent@guerby.net>
2221
2222 * Makefile.in: Rename GNAT RTEMS specific files.
2223 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
2224 5rosinte.ads, 5rparame.adb: Replaced by files below.
2225 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
2226 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
2227
2228 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
2229 Laurent GUERBY <laurent@guerby.net>
2230
2231 PR ada/19488
2232 * 5rosinte.ads: Add No_Key constant.
2233 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
2234 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
2235
2236 2005-01-26 Laurent GUERBY <laurent@guerby.net>
2237
2238 PR ada/19414
2239 * i-cobol.adb (Valid_Numeric): Handle zero length case.
2240
2241 2005-01-20 Richard Henderson <rth@redhat.com>
2242
2243 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
2244 a-intnam-linux.ads and system-linux-alpha.ads.
2245 * a-intnam-linux-alpha.ads: Remove file.
2246 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
2247 * system-linux-alpha.ads: New file.
2248
2249 2005-01-18 Jakub Jelinek <jakub@redhat.com>
2250
2251 PR ada/13470
2252 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
2253 set to the new string.
2254
2255 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
2256
2257 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
2258 to True.
2259
2260 2005-01-18 Richard Henderson <rth@redhat.com>
2261
2262 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
2263 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
2264 for alpha-linux.
2265 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
2266
2267 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
2268
2269 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
2270 (GCC_ZCX_Support): Likewise.
2271
2272 2005-01-11 Bastian Blank <waldi@debian.org>
2273
2274 * system-linux-s390.ads: Define Preallocated_Stacks.
2275 * system-linux-s390x.ads: Likewise.
2276
2277 2005-01-04 Arnaud Charlet <charlet@adacore.com>
2278
2279 * gnat_ugn.texi: Fix texi errors with null variables.
2280
2281 2005-01-03 Thomas Quinot <quinot@adacore.com>
2282
2283 * gen-soccon.c: New utility program to generate g-soccon.ads
2284 automatically.
2285
2286 * socket.c, gsocket.h: Split inclusion of system header files into a
2287 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
2288
2289 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
2290 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2291 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
2292 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
2293 should not be edited by hand anymore, but should be regenerated using
2294 gen-soccon.
2295
2296 2005-01-03 Robert Dewar <dewar@adacore.com>
2297 Ed Schonberg <schonberg@adacore.com>
2298 Vincent Celier <celier@adacore.com>
2299
2300 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
2301 on/off, since this is an obsolescent feature, for which we now generate
2302 a warning.
2303
2304 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
2305 warning mode is set and obsolescent usage of this attribute occurs.
2306 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
2307 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
2308 predates, and partly motivates, the adoption of the AI.
2309 Implement new Ada 2005 attribute Mod
2310
2311 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
2312 attribute Mod.
2313
2314 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
2315
2316 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
2317 pragma restrictions.
2318 New entry for Ada 2005 attribute Mod.
2319
2320 * par-prag.adb:
2321 Add recognition of new pragma Restrictions No_Dependence
2322 Recognize restriction No_Obsolescent_Features at parse time
2323
2324 * bcheck.adb: Add circuitry for checking for consistency of
2325 No_Dependence restrictions.
2326
2327 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
2328 restrictions.
2329
2330 * restrict.ads, restrict.adb: Add subprograms to deal with
2331 No_Dependence restrictions.
2332
2333 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
2334 restrictions.
2335
2336 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
2337 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
2338
2339 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
2340 dummy parameter to scng instantiation.
2341 Needed for new restriction No_Obsolescent_Features
2342
2343 * scn.adb: (Obsolescent_Check): New procedure
2344 Needed for new restriction No_Obsolescent_Features
2345
2346 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
2347 specified by AI-285, needed for implementation of AI-388 (adding greek
2348 pi to Ada.Numerics).
2349 Add new generic formal to scng, needed for new restriction
2350 No_Obsolescent_Features.
2351
2352 * s-rident.ads: Add new restriction No_Obsolescent_Features.
2353
2354 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
2355 restrictions lines.
2356 (Scan_ALI): When finding an unexpected character on an R line, raise
2357 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
2358 Ignore_Errors is True, default restrictions are set and scanning of the
2359 ALI file continues with the next line. Also, when Bad_R_Line is raised
2360 and Ignore_Errors is True, skip to the end of le line.
2361
2362 * sem_ch10.adb: Check that explicit with's do not violate
2363 No_Dependence restrictions.
2364 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
2365 illegal context clauses containing child units of instance.
2366
2367 * sem_prag.adb: Processing and checking for new No_Dependence
2368 restrictions.
2369 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
2370 analyze and check the External argument.
2371
2372 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
2373
2374 2005-01-03 Robert Dewar <dewar@adacore.com>
2375
2376 * atree.adb: Add a fifth component to entities
2377 This allows us to add 32 flags and four new fields
2378
2379 * atree.ads: Add a fifth component to entities
2380 This allows us to add 32 flags and four new fields
2381
2382 * einfo.ads, einfo.adb: Document new fields and new flags now available
2383 Add routines for printing new fields
2384
2385 * treepr.adb: Call routines to print out additional fields if present
2386
2387 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2388
2389 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
2390 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
2391
2392 * Makefile.in: Add support to build shared Ada libraries on solaris x86
2393 Remove gpr2make, replaced by gprmake.
2394 Remove references to gnatmem and libaddr2line.
2395 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
2396 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
2397 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
2398 a-numaux-darwin.ads and a-numaux-darwin.adb
2399 Enable mlib-tgt-lynxos.adb on lynxos.
2400
2401 * Make-lang.in: Remove rules for gpr2make.
2402 When generating sdefault.adb, do not call Relocate_Path
2403 on S3 for function Target_Name, as it is not a path.
2404 Remove references to gnatmem and libaddr2line.
2405
2406 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
2407 files.
2408
2409 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
2410
2411 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
2412 address is incompatible with its base type alignment constraints when
2413 this can be decided statically.
2414
2415 2005-01-03 Olivier Hainque <hainque@adacore.com>
2416
2417 * decl.c (compatible_signatures_p): New function. The intended purpose
2418 is to check if two function signatures for a call-site and a callee are
2419 compatible enough for the call to be valid. The underlying purpose is
2420 to check if a call to a mapped builtin is using the right interface.
2421 The current code actually does not check antyhing - this a placeholder
2422 for future refinements.
2423 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
2424 builtin calls for convention Intrinsic.
2425
2426 * gigi.h (builtin_decl_for): Declare (new function).
2427
2428 * utils.c (gnat_install_builtins): Install the target specific builtins.
2429 (builtin_decl_for): New function, provide a dummy body for now.
2430
2431 2005-01-03 Geert Bosch <bosch@adacore.com>
2432
2433 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
2434 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
2435 (Pred): Implement in terms of Succ.
2436
2437 * trans.c (convert_with_check): Reimplement conversion of float to
2438 integer.
2439
2440 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2441 Vincent Celier <celier@adacore.com>
2442
2443 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
2444 bounds can be negative, and must be declared Int, not Nat.
2445
2446 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
2447 array is checked after using the index in the array.
2448
2449 * makegpr.adb (Add_Switches): Check if there is a package for the
2450 processor. If there is no package, do not look for switches.
2451
2452 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2453
2454 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
2455 generation of predefined stream operations (specs and bodies) should
2456 proceed. Under various restrictions these subprograms must not be
2457 generated.
2458
2459 2005-01-03 Thomas Quinot <quinot@adacore.com>
2460
2461 * exp_dist.adb:
2462 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
2463 amount of PCS-specific code in RACW stubs generation.
2464 (Copy_Specification): Set Etype on copied formal parameter entities, as
2465 this information is needed for PolyORB stubs generation.
2466 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
2467 variable Dynamic_Async.
2468 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
2469 (Build_RPC_Receiver_Specification): Make generic again, as recent
2470 changes have allowed RPC receivers to have the same profile for both
2471 variants of the PCS.
2472 Reorganise RPC receiver generation to reduce differences between the
2473 structure of GARLIC and PolyORB RPC receivers.
2474 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
2475 PCS-specific.
2476 Simplify elaboration code for RCI packages.
2477
2478 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
2479 generation to reduce differences between the structure of GARLIC and
2480 PolyORB RPC receivers.
2481
2482 * s-stratt.adb: Fix typo in comment.
2483
2484 2005-01-03 Thomas Quinot <quinot@adacore.com>
2485
2486 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
2487 copied from Make_Init_Call).
2488
2489 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
2490 reads and assignments on a temporary variable declared with appropriate
2491 discriminants.
2492
2493 2005-01-03 Robert Dewar <dewar@adacore.com>
2494
2495 * i-c.adb (To_C): Raise CE if string is null and Append_Null
2496
2497 2005-01-03 Robert Dewar <dewar@adacore.com>
2498
2499 * i-cstrin.adb (Update): Do not append a null in form called with a
2500 String. This avoids unintended behavior.
2501
2502 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2503
2504 PR ada/17527
2505 * init.c: Fix warnings on Free BSD section.
2506
2507 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2508
2509 PR ada/16949
2510 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
2511 xsinfo.adb).
2512
2513 2005-01-03 Vincent Celier <celier@adacore.com>
2514
2515 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
2516 libraries when Unique_Compile is True (-u switch).
2517 (Gnatmake): ditto.
2518
2519 2005-01-03 Robert Dewar <dewar@adacore.com>
2520
2521 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
2522 upper case letter or underscore after W, as allowed by spec.
2523
2524 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2525
2526 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
2527 darwin port by using proper type definitions from header files.
2528 Use SIGTERM instead of SIGABRT for SIGADAABORT.
2529
2530 2005-01-03 Robert Dewar <dewar@adacore.com>
2531
2532 * par.adb: Enhance error message handling for configuration file
2533 pragmas.
2534
2535 2005-01-03 Robert Dewar <dewar@adacore.com>
2536
2537 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
2538 removed during the previous update (test properly for case of dividing
2539 largest negative number by -1, which generates overflow).
2540
2541 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2542 Sergey Rybin <rybin@adacore.com>
2543
2544 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
2545 to use as the defining identifier for a formal package.
2546 (Remove_Parent): If the instance takes place within (an instance of)
2547 a sibling, preserve private declarations of common parent.
2548
2549 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2550
2551 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
2552 to determine whether one of the operands is a fixed-point type for
2553 which a user-defined multiplication or division operation might be
2554 defined.
2555
2556 * sem_res.adb (Valid_Conversion): The legality rules for conversions
2557 of access types are symmetric in Ada 2005: either designated type can
2558 be unconstrained.
2559
2560 2005-01-03 Vincent Celier <celier@adacore.com>
2561
2562 * s-fileio.adb (Temp_File_Record): Change length of string component
2563 Name from L_tmpnam + 1 to max_path_len + 1.
2564
2565 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2566
2567 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
2568 Self_Id.Deferral_Level = 0.
2569 (Do_Pending_Action): Move this function to the spec.
2570
2571 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
2572 Do_Pending_Action explicitely when needed, in case we're using
2573 No_Abort restrictions.
2574
2575 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
2576 deferral level since it will not get changed by the generated code.
2577 Keeping a default value of 1 would prevent some operations (e.g.
2578 select or delay) to proceed successfully.
2579
2580 2005-01-03 Ben Brosgol <brosgol@adacore.com>
2581 Robert Dewar <dewar@adacore.com>
2582 Cyrille Comar <comar@adacore.com>
2583
2584 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
2585 porting guide chapter (vms version).
2586 Revised doc title (removed "for native platforms") and subtitle.
2587 Add discussion on warning flag for obsolescent features. First we
2588 note that it applies to obsolete GNAT features, which was previously
2589 omitted. Second we contrast the behavior with that of the new
2590 Ada 2005 AI-368 restriction No_Obsolescent_Features.
2591 Preliminary rewriting of GNAT & libraries chapter in order to take
2592 into account default project locations & new project manager
2593 capabilities.
2594
2595 2005-01-03 Robert Dewar <dewar@adacore.com>
2596
2597 * cstand.adb (Create_Operators): Clean up format and documentation of
2598 unary and binary operator result tables. No change in code, just
2599 reformatting and addition of comments.
2600
2601 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
2602 sem_ch2.adb: Minor reformatting
2603
2604 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
2605 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
2606 comments for Tree_Read and Tree_Write.
2607
2608 2005-01-03 Pascal Obry <obry@adacore.com>
2609
2610 * exp_attr.ads: Minor reformatting.
2611
2612 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
2613
2614 * comperr.adb (Compiler_Abort): Add specialized message for GAP
2615 versions.
2616
2617 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2618
2619 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
2620 whether the ancestor type is private, as may be the case with nested
2621 instantiations.
2622
2623 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
2624
2625 PR ada/19128
2626 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
2627
2628 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2629
2630 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
2631 * utils2.c (build_unary_op): Likewise.
2632
2633 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2634
2635 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
2636
2637 2004-12-19 Richard Henderson <rth@redhat.com>
2638
2639 * trans.c (gigi): Update gimplify_body call.
2640
2641 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
2642
2643 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
2644
2645 2004-12-07 Ed Falis <falis@adacore.com>
2646
2647 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
2648 current task being suspended.
2649
2650 * init.c (__gnat_clear_exception): added to reset VxWorks exception
2651 count.
2652 (__gnat_map_signal): removed test for current task being suspended.
2653
2654 2004-12-07 Gary Dismukes <dismukes@adacore.com>
2655
2656 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
2657 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
2658 targets (such as AAMP).
2659
2660 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2661
2662 * atree.adb (Visit_Itype): Create a new name for the generated itype,
2663 because the back-end may otherwise treat it as a redefinition of the
2664 old symbol.
2665
2666 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
2667
2668 * back_end.adb (Scan_Back_End_Switches): Accept --param.
2669
2670 * lang-specs.h: Accept --param.
2671
2672 2004-12-07 Vincent Celier <celier@adacore.com>
2673
2674 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
2675 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
2676 Current_Body_Suffix => Ada_Body_Suffix).
2677 Take into account Externally_Built attribute.
2678
2679 * clean.adb (In_Extension_Chain): Always return False when one of the
2680 parameter is No_Project.
2681 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
2682 Ada_Language_Index).
2683 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
2684 Process_Languages for procedure Parse).
2685
2686 * gnatcmd.adb (Carg_Switches): New table.
2687 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
2688 Adapt to name changes in package Prj (Current_Spec_Suffix =>
2689 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
2690
2691 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
2692 Header_Num and function Hash are now declared in package Prj,
2693 not Prj.Com.
2694
2695 * prj.adb (Suffix_Of): New function.
2696 (Set (Suffix)): New procedure.
2697 (Hash): One function moved from Prj.Com
2698 (Is_Present, Language_Processing_Data_Of): New functions
2699 (Set): Two new procedures
2700 (Add_Language_Name, Display_Language_Name): New procedures
2701
2702 * prj.ads: (Suffix_Of): New function
2703 (Set (Suffix)): New procedure
2704 Add several types and tables for multi-language support.
2705 (Header_Num): Type moved from Prj.Com
2706 (Hash): Two functions moved from Prj.Com
2707 (Is_Present, Language_Processing_Data_Of): New functions
2708 (Set): Two new procedures
2709 (Add_Language_Name, Display_Language_Name): New procedures
2710 (Naming): Component name changes:
2711 Current_Spec_Suffix => Ada_Spec_Suffix,
2712 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
2713 Impl_Suffixes, Supp_Suffixes.
2714 (Project_Data): New components: Externally_Built, Supp_Languages,
2715 First_Language_Processing, Supp_Language_Processing, Default_Linker,
2716 Default_Linker_Path.
2717
2718 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
2719 new package Language_Processing with its attributes (Compiler_Driver,
2720 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
2721 Binder_Driver, Default_Linker).
2722
2723 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
2724 (Header_Num): Type moved to package Prj
2725
2726 * prj-env.adb: Adapt to name changes in package Prj
2727 (Current_Spec_Suffix => Ada_Spec_Suffix,
2728 Current_Body_Suffix => Ada_Body_Suffix).
2729
2730 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
2731 default to the project path, except the "-" is one of the directories
2732 in env var ADA_PROJECT_PATH.
2733 (Current_Project_Path): Global variable, replacing Project_Path
2734 that was in the body of Prj.Part.
2735 (Project_Path): New function
2736 (Set_Project_Path): New procedure
2737 Initialize Current_Project_Path during elaboration of the package
2738 Remove dependency on Prj.Com, no longer needed
2739
2740 * prj-ext.ads (Project_Path): New function
2741 (Set_Project_Path): New procedure
2742
2743 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
2744 suffix is defined for language <lang>.
2745 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
2746 accessing directly the components of Naming.
2747 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
2748 Reorganise of this package.
2749 Break procedure Check in several procedures.
2750
2751 * prj-nmsc.ads: Replace all procedures (Ada_Check,
2752 Other_Languages_Check and Language_Independent_Check) with a single
2753 procedure Check.
2754
2755 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
2756 Process_Languages, no longer needed.
2757
2758 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
2759 Current_Project_Path.
2760 Remove elaboration code, moved to the body of Prj.Ext
2761 Use new function Prj.Ext.Project_Path instead of old variable
2762 Project_Path.
2763 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
2764 When comparing with project paths on the stack, first put the resolved
2765 path in canonical case.
2766 (Parse_Single_Project): Set the path name of the project file in the
2767 tree to the normalized path.
2768
2769 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
2770 parameter Process_Languages, no longer needed.
2771 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
2772 Other_Languages_Check.
2773
2774 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
2775 to store the resolved canonical path of the project file.
2776 Remove dependency to Prj.Com, no longer needed
2777
2778 * prj-util.adb: Adapt to name changes in package Prj
2779 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
2780 Ada_Body_Suffix).
2781
2782 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
2783 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
2784 Externally_Built, Include_Option, Language_Processing.
2785
2786 * makegpr.adb: Numerous changes due to changes in packages
2787 Prj and Prj.Nmsc.
2788
2789 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
2790 default to the project path, except whe "-" is one of the directories
2791 in env var ADA_PROJECT_PATH.
2792 (Gnatls): In verbose mode, add the new section "Project Search Path:"
2793
2794 2004-12-07 Robert Dewar <dewar@adacore.com>
2795
2796 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
2797
2798 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
2799 set -gnatR3m mode.
2800
2801 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
2802 flag. No longer needed now that we handle this in gnat1drv.adb.
2803
2804 * repinfo.ads: Minor reformatting
2805
2806 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2807 Olivier Hainque <hainque@adacore.com>
2808 Eric Botcazou <ebotcazou@adacore.com>
2809
2810 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
2811 TYPE_SIZE_UNIT of result type if SIZE is not specified.
2812 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
2813 of a bitfield, which we know is useless and causes trouble because of
2814 alignment implications.
2815
2816 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
2817 BSS sections.
2818 (process_attributes): Clear DECL_COMMON again when a section attribute
2819 is present.
2820 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
2821 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
2822 (create_field_decl): Special case ADDRESSABLE negative to mean
2823 "no bitfield creation", to be used by make_aligning_type. Don't
2824 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
2825 fields claimed addressable still have to be bitfields. Use
2826 value_factor_p instead of a raw binop construction to check for the
2827 position's alignment.
2828
2829 2004-12-07 Geert Bosch <bosch@adacore.com>
2830
2831 * eval_fat.adb: Revert previous change.
2832
2833 2004-12-07 Thomas Quinot <quinot@adacore.com>
2834 Ed Schonberg <schonberg@adacore.com>
2835
2836 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
2837 with an implicit dereference as its prefix, use
2838 Insert_Explicit_Dereference instead of merely rewriting the prefix into
2839 an explicit dereference. This ensures that a reference to the original
2840 prefix is generated, if appropriate.
2841
2842 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
2843 dereference is rewritten to an explicit one, generate a reference to
2844 the entity denoted by its prefix using the original prefix node, so
2845 the dereference can be properly recorded as a read of the denoted
2846 access value, if appropriate.
2847
2848 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
2849 emitting 'assigned but never read' warning on a variable on the basis
2850 that it has an access type.
2851 (Check_References): Emit unreferenced warning when the scope is a
2852 subprogram body.
2853
2854 2004-12-07 Robert Dewar <dewar@adacore.com>
2855 Ed Schonberg <schonberg@adacore.com>
2856
2857 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
2858 intrinsic
2859
2860 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
2861 leaving call unchanged.
2862 This deals with the case where the pragma Import specified
2863 an external name, to be handled by the back end.
2864
2865 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
2866 subprogram which is Imported with convention Intrinsic if an
2867 External_Name argument is specified.
2868 (Process_Import_Or_Interface): Properly diagnose link name argument.
2869 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
2870 with Sem_Ch6.Cannot_Inline.
2871 (Process_Inline): Provide separate warning for inapplicable inline
2872 pragma.
2873 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
2874 treatment is uniform on different targets.
2875
2876 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2877
2878 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
2879 construct is rewritten, preserve end label to permit source navigation.
2880
2881 2004-12-07 Thomas Quinot <quinot@adacore.com>
2882
2883 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
2884 Specific_Build_Stub_Target): New subprograms.
2885 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
2886 the PCS implementation used, using the above PCS-customized subprograms.
2887 Minor reformatting.
2888 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
2889 for generation of DSA code targeted to the PolyORB PCS.
2890 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
2891 implementation of the partition communication subsystem in ancillary
2892 subprograms.
2893 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
2894 PolyORB_Support.Build_Stub_Type): New subrograms containing the
2895 PCS-specific part of Add_Stub_Type.
2896 (Insert_Partition_Check): Use runtime library function to perform
2897 E.4(19) check.
2898
2899 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
2900 (RE_Same_Partition): New entity, from s-parint.
2901
2902 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
2903
2904 2004-12-07 Gary Dismukes <dismukes@adacore.com>
2905
2906 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
2907 Output the copyright message on a separate line from the version
2908 message.
2909
2910 2004-12-07 Joel Brobecker <brobecker@adacore.com>
2911
2912 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
2913 compile-time warning.
2914
2915 2004-12-07 Robert Dewar <dewar@adacore.com>
2916
2917 * g-regpat.adb: (Match): Change a misuse of or to or else
2918
2919 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2920
2921 * lib-xref.adb:
2922 (Generate_Reference): Handle properly a reference to an entry formal,
2923 when an accept statement has a pragma Unreferenced for it.
2924
2925 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
2926 and the Has_Pragma_Unreferenced flag for each formal before analyzing
2927 the body, to ensure that warnings are properly emitted for each accept
2928 statement of a given task entry.
2929
2930 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
2931
2932 * Makefile.in: Add support for foreign threads on VMS.
2933
2934 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2935
2936 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
2937 Remove.
2938 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
2939
2940 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
2941
2942 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
2943 exception.
2944 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
2945
2946 2004-12-07 Robert Dewar <dewar@adacore.com>
2947
2948 * nlists.adb (Prepend_Debug): Remove parameters and nest within
2949 Prepend.
2950 (Remove_Next_Debug): Same fix
2951
2952 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
2953 maintain back pointers now, though we did not used to, and comments
2954 were out of date).
2955 (Prepend): Remove pragma Inline.
2956 (Remove_Next): Same cleanup
2957
2958 2004-12-07 Thomas Quinot <quinot@adacore.com>
2959
2960 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
2961 used to record an implicit dereference as a read operation on its
2962 prefix when operating under -gnatc. Necessary to avoid spurious
2963 'variable assigned but never read' warnings in that mode.
2964 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
2965 is a non-overloaded implicit dereference, call the above subprogram to
2966 ensure proper recording of references.
2967
2968 2004-12-07 Gary Dismukes <dismukes@adacore.com>
2969
2970 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
2971 to be resolved later as part of Analyze_Iteration_Scheme's call to
2972 Make_Index.
2973
2974 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2975
2976 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
2977 prefix is not a scalar type, place error message on prefix, not on
2978 type entity.
2979
2980 2004-12-07 Bernard Banner <banner@adacore.com>
2981
2982 * vxaddr2line.adb: Add support for x86 vxworks
2983
2984 2004-12-07 Thomas Quinot <quinot@adacore.com>
2985
2986 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
2987 documentation of the behaviour of these functions when passed an IP
2988 address that has no record in the system hosts database and no reverse
2989 record in the DNS.
2990
2991 * cstand.adb, a-tags.ads: Fix typos in comment.
2992
2993 2004-12-07 Robert Dewar <dewar@adacore.com>
2994
2995 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
2996 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
2997 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
2998 s-poosiz.ads: Minor reformatting
2999
3000 * make.adb: Minor reformatting
3001 Add some ??? comments asking for more comments
3002
3003 * s-poosiz.adb: Minor reformatting
3004 Add comments on alignment requirement
3005
3006 * sinfo.ads: Remove obsolete comment and fix typo.
3007
3008 2004-12-07 Vincent Celier <celier@adacore.com>
3009 Sergey Rybin <rybin@adacore.com>
3010
3011 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
3012 Files" with the new tool and package names.
3013 Reformatting to suppress most of the warnings for line too long
3014 Document the new section "Project Search Path:" in the output of
3015 gnatls -v.
3016 Add gnatmetric section
3017
3018 2004-12-07 Vincent Celier <celier@adacore.com>
3019
3020 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
3021 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
3022 and -eit to -ept. Added qualifier
3023 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
3024
3025 2004-11-27 Andreas Schwab <schwab@suse.de>
3026
3027 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
3028
3029 2004-11-25 Arnaud Charlet <charlet@adacore.com>
3030
3031 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
3032 internal implementation unit GNAT.Sockets.Thin,
3033 as their usage for sockets is non-portable (using the read and write
3034 functions from the system runtime library is fine on UNIX but won't
3035 work under Windows).
3036
3037 * mingw32.h: Update copyright notice.
3038
3039 2004-11-25 Arnaud Charlet <charlet@adacore.com>
3040
3041 * ada-tree.h: Minor reformatting of previous change to avoid lines
3042 longer than 79 characters.
3043
3044 2004-11-25 Olivier Hainque <hainque@adacore.com>
3045
3046 * tb-gcc.c: GCC infrastructure based implementation of
3047 __gnat_backtrace.
3048
3049 2004-11-24 Steven Bosscher <stevenb@suse.de>
3050
3051 * misc.c (gnat_post_options): Don't clear
3052 flag_inline_functions.
3053
3054 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3055
3056 PR ada/17986
3057 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
3058 tree.
3059
3060 2004-11-21 Andreas Jaeger <aj@suse.de>
3061
3062 * stylesw.adb: Change Style_Check_Subprogram_Order to
3063 Style_Check_Order_Subprograms.
3064
3065 2004-11-18 Arnaud Charlet <charlet@adacore.com>
3066
3067 * adaint.h, adaint.c
3068 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
3069 to avoid warnings.
3070 Add also a cast to kill another warning.
3071 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
3072 parameter with the priority class of the parent process instead of
3073 always using the NORMAL_PRIORITY_CLASS.
3074 (__gnat_dup): New function.
3075 (__gnat_dup2): New function.
3076 (__gnat_is_symbolic_link): Enable the effective body of this
3077 function when __APPLE__ is defined.
3078
3079 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
3080 Update comments.
3081
3082 2004-11-18 Olivier Hainque <hainque@adacore.com>
3083
3084 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
3085 address of which may be used to represent "others" and "all others"
3086 choices in exception tables, instead of the current harcoded
3087 (void *)0 and (void *)1.
3088 (Setup_Exception): Do nothing in the GNAT SJLJ case.
3089
3090 * gigi.h (others_decl, all_others_decl): New decls representing the
3091 new Others_Value and All_Others_Value objects.
3092 (struct attrib): Rename "arg" component as "args", since GCC expects a
3093 list of arguments in there.
3094
3095 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
3096 corresponding objects exported by a-exexpr, instead of hardcoded dummy
3097 addresses.
3098
3099 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
3100 others_decl and all_others_decl instead of hardcoded dummy addresses
3101 to represent "others" and "all others" choices, which is cleaner and
3102 more flexible with respect to the possible eh pointer encoding policies.
3103
3104 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
3105 (process_attributes): Account for the naming change of the "args"
3106 attribute list entry component.
3107
3108 * decl.c (build_attr_list): Rename into prepend_attributes to allow
3109 cumulating attributes for different entities into a single list.
3110 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
3111 attributes for the current entity and propagate first subtype
3112 attributes to other subtypes.
3113 <E_Procedure>: Attribute arguments are attr->args and not
3114 attr->arg any more.
3115 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
3116 argument provided, as this is what GCC expects. Use NULL_TREE instead
3117 of 0 for trees.
3118
3119 2004-11-18 Robert Dewar <dewar@adacore.com>
3120
3121 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
3122 Minor reformatting througout (including new function specs)
3123 Add ??? comments asking for clarification.
3124
3125 2004-11-18 Thomas Quinot <quinot@adacore.com>
3126
3127 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
3128 incomplete duplicate implementation of this subprogram from butil.
3129
3130 2004-11-18 Thomas Quinot <quinot@adacore.com>
3131
3132 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
3133 procedures factors the common processing for building an RPC receiver
3134 for an RCI package or an RACW type.
3135 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
3136 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
3137 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
3138 in use.
3139 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
3140 Add_RACW_Features.
3141 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
3142 Add_RAST_Features.
3143 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
3144 distribution subprogram identifiers that are either subprogram numbers
3145 or strings.
3146 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
3147 string distribution identifiers assigned to a given subprogram.
3148 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
3149 (Add_RAS_Dereference_TSS): Add comments.
3150 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
3151 is not referenced yet because it will be used by the PolyORB DSA
3152 implementation.
3153 (Insert_Partition_Check): Remove fossile code.
3154 (First_RCI_Subprogram_Id): Document this constant.
3155 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
3156 RAS_Access TSS.
3157 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
3158 replaced with calls to Get_Library_Unit_Name_String. Previously there
3159 were several instances of the same code in different locations in the
3160 compiler; this checkin completes the replacement of all of these
3161 instances with calls to a common subprogram.
3162 Minor reformatting.
3163
3164 * sem_dist.adb: Remove comment noting that RPC receiver generation
3165 should be disabled for RACWs that implement RASs.
3166 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
3167
3168 * sem_util.ads, sem_util.adb (Has_Stream): New function
3169 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
3170 qualified name of a library unit into the name buffer.
3171 (Note_Possible_Modification): Generate a reference only
3172 if the context comes from source.
3173
3174 * snames.ads (PCS_Names): New subtype corresponding to names of
3175 supported implementations of the Partition Communication Subsystem
3176 (PCS) (i.e. the runtime library support modules for the distributed
3177 systems annex).
3178
3179 2004-11-18 Robert Dewar <dewar@adacore.com>
3180 Ed Schonberg <schonberg@adacore.com>
3181
3182 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
3183 (Has_Rep_Pragma): New function
3184 (Has_Attribute_Definition_Clause): New function
3185 (Record_Rep_Pragma): Moved here from sem_ch13.adb
3186 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
3187
3188 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
3189
3190 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
3191 (Expand_Pragma_Psect_Object): New procedure
3192 These procedures contain the revised and cleaned up processing for
3193 these two pragmas. This processing was formerly in Sem_Prag, but
3194 is more appropriately moved here. The cleanup involves making sure
3195 that the pragmas are properly attached to the tree, and that no
3196 nodes are improperly shared.
3197
3198 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
3199 pragmas to Exp_Prag, which is more appropriate.
3200 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
3201 check for duplicates Remove use of Is_Psected flag, no longer needed.
3202 Use new Make_String_Literal function with string.
3203
3204 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
3205 that are functions return universal values, that have to be converted
3206 to the context type.
3207 Use new Make_String_Literal function with string.
3208 (Get_Stream_Convert_Pragma): New function, replaces the use of
3209 Get_Rep_Pragma, which had to be kludged to work in this case.
3210
3211 * freeze.adb: Use new Has_Rep_Pragma function
3212
3213 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
3214 function with string.
3215 Use new Has_Rep_Pragma function.
3216
3217 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
3218 string argument.
3219
3220 2004-11-18 Robert Dewar <dewar@adacore.com>
3221
3222 * errout.ads, errout.adb: (First_Sloc): New function
3223
3224 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
3225 check (-gnatyx) instead of being included as a redundant construct
3226 warning.
3227
3228 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
3229 Style_Check_Order_Subprograms.
3230
3231 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
3232 stylesw.adb: Add Style_Check_Xtra_Parens
3233
3234 * usage.adb: Add line for -gnatyx (check extra parens)
3235
3236 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
3237
3238 2004-11-18 Ed Schonberg <schonberg@adacore.com>
3239 Robert Dewar <dewar@adacore.com>
3240
3241 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
3242 discriminant of a constrained subtype, analyze the copy of the
3243 corresponding constraint, because in some cases it may be only
3244 partially analyzed.
3245 Removes long-lived ??? comments.
3246
3247 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
3248 handled controlled or secondary-stack expressions within the
3249 iteration_scheme of a loop.
3250
3251 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
3252 bounds that may contain functions calls, to prevent memory leaks when
3253 the bound contains a call to a function that uses the secondary stack.
3254 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
3255 generate temporaries for loop bounds that might contain function calls
3256 that require secondary stack and/or finalization actions.
3257
3258 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
3259 selected component and the selector is overloadable (not just a
3260 function) treat as function call, Analyze_Call will disambiguate if
3261 necessary.
3262 (Analyze_Selected_Component): Do not generate an actual subtype for the
3263 selected component if expansion is disabled. The actual subtype is only
3264 needed for constraint checks.
3265 (Analyze_Allocator): If restriction No_Streams is set, then do
3266 not permit objects to be declared of a stream type, or of a
3267 composite type containing a stream.
3268
3269 * restrict.ads: Remove the a-stream entry from Unit_Array, since
3270 No_Streams no longer prohibits with'ing this package.
3271
3272 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
3273 discriminants, but the parent base has unknown discriminants, there is
3274 no discriminant constraint to inherit. Such a discrepancy can arise
3275 when the actual for a formal type with unknown discriminants is a
3276 similar private type whose full view has discriminants.
3277 (Analyze_Object_Declaration): If restriction No_Streams is set, then
3278 do not permit objects to be declared of a stream type, or of a
3279 composite type containing a stream.
3280
3281 2004-11-18 Ed Schonberg <schonberg@adacore.com>
3282
3283 * exp_dbug.ads: Update documentation to reflect simpler encoding for
3284 protected operations.
3285
3286 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
3287 generated name, it complicates decoding in gdb and hinders debugging
3288 of protected operations.
3289 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
3290 flag for the protected entry barrier function.
3291 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
3292 flag for the protected entry function.
3293
3294 2004-11-18 Nicolas Setton <setton@adacore.com>
3295
3296 * expect.c: Define __unix__ when __APPLE__ is defined.
3297
3298 * Makefile.in: Inform the value of the variable GMEM_LIB in the
3299 Darwin-specific section.
3300
3301 * lang-specs.h: Change the placement of the %1 marker.
3302 Works around the fact that gcc adds -fPIC by default under Darwin.
3303
3304 2004-11-18 Ed Schonberg <schonberg@adacore.com>
3305
3306 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
3307 type of the object with the packed array type, set the Analyzed flag
3308 on the object if it is an entity or simple indexed component, to avoid
3309 spurious type errors.
3310
3311 2004-11-18 Gary Dismukes <dismukes@adacore.com>
3312
3313 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
3314 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
3315 separate line from the version message.
3316
3317 2004-11-18 Ed Falis <falis@adacore.com>
3318
3319 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
3320 vthreads.
3321 (init_float): Eliminate initialization of floating point status for
3322 AE653. The instructions have no effect for vThreads.
3323
3324 2004-11-18 Vincent Celier <celier@adacore.com>
3325
3326 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
3327 gnatbind is invoked with -shared.
3328
3329 2004-11-18 Jose Ruiz <ruiz@adacore.com>
3330
3331 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
3332 for Detect_Blocking which is redundant with the check done within the
3333 procedure Protected_Single_Entry_Call.
3334 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
3335 Detect_Blocking which is redundant with the check done within the
3336 procedure Protected_Single_Entry_Call.
3337
3338 2004-11-18 Vincent Celier <celier@adacore.com>
3339
3340 * makegpr.adb (Compile): Put the compiling switches (in package
3341 Compiler and on the command line) immediately after "-c", instead of
3342 at the end of the command line invocation of the compiler, when
3343 compiling a non-Ada file.
3344 (Build_Global_Archive): When there is no need to rebuild the archive,
3345 set Global_Archive_Exists, so that the archive is passed to the linker
3346 if one is needed.
3347
3348 2004-11-18 Robert Dewar <dewar@adacore.com>
3349 Sergey Rybin <rybin@adacore.com>
3350
3351 * gnat_ugn.texi:
3352 Remove extra paren check from list of checks for redundant constructs
3353 Add documentation of new -gnatyx style check (check extra parens)
3354 Remove paragraph about gnatelim debug options.
3355
3356 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
3357 objects rather than forbidding dependencies on the package Ada.Streams.
3358
3359 * sinfo.ads: Add ??? note that we should document pragmas passed to
3360 back end.
3361
3362 * g-expect.ads: Fix a few typos in the comments.
3363
3364 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3365
3366 * misc.c (gnat_handle_option): Use %< and %> for quoting in
3367 warning message.
3368
3369 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3370
3371 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
3372
3373 2004-11-07 Andreas Schwab <schwab@suse.de>
3374
3375 * Makefile.in (install-gnatlib): Remove spurious hyphen.
3376
3377 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
3378
3379 PR ada/18228
3380 * Makefile.in (darwin): Set soext to .dylib.
3381
3382 2004-10-26 Vincent Celier <celier@gnat.com>
3383 Thomas Quinot <quinot@act-europe.fr>
3384
3385 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
3386 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
3387 there is no use of GNAT.Sockets.Constants.
3388 Remove remaining pragma Import for C_Write
3389 Remove C_Read and C_Write from internal implementation unit
3390 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
3391 the read and write functions from the system runtime library is fine
3392 on UNIX but won't work under Windows).
3393
3394 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
3395 (Check_Selector): Use C_Recv instead of C_Read.
3396 Selectors are the GNAT.Sockets abstraction to perform a select()
3397 call on a set of descriptors. To allow abortion of an ongoing
3398 select operation, some data is written to a dedicated socket that
3399 is always monitored.
3400 Under Windows, the write and read library functions cannot operate
3401 on sockets, so we need to use send and recv instead, which is portable
3402 across all supported platforms.
3403
3404 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
3405 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
3406 (using the read and write functions from the system runtime library is
3407 fine on UNIX but won't work under Windows).
3408
3409 2004-10-26 Nicolas Setton <setton@act-europe.fr>
3410
3411 * mlib-tgt-darwin.adb: New file.
3412
3413 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3414 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3415 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3416 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
3417 subprogram body.
3418
3419 * Makefile.in: Add support for building shared libraries under Darwin.
3420 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
3421 the low level EH init subprogram to be called from __gnat_initialize.
3422
3423 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
3424 indicates which options to pass to the archive indexer.
3425
3426 * mlib-utl.adb: Add support for calling ranlib with additional
3427 options. This is needed for instance under Mac OS X.
3428 (Ranlib_Options): New global variable, used to store the potential
3429 options to pass to ranlib.
3430 (Ar): Use Ranlib_Options when spawning ranlib.
3431 (Initialize): Set the value of ranlib option.
3432
3433 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
3434
3435 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
3436 instead of 8K, to reflect the real potential needs for stack-checking
3437 in the ZCX case.
3438
3439 2004-10-26 Pascal Obry <obry@gnat.com>
3440
3441 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
3442
3443 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
3444 Windows only the initial thread stack size can be set so it is good to
3445 start we a low stack size.
3446 The OS will adjust the size as needed.
3447
3448 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
3449 Nicolas Setton <setton@act-europe.fr>
3450
3451 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
3452 "__unix__" instead of "unix".
3453 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
3454 sections were just mistakenly ignored. The former is
3455 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
3456 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
3457 of hpux. This prevents an unwanted definition of the symbol
3458 convert_addresses in adaint.o.
3459
3460 2004-10-26 Gary Dismukes <dismukes@gnat.com>
3461
3462 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
3463 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
3464
3465 2004-10-26 Cyrille Comar <comar@act-europe.fr>
3466
3467 * a-filico.ads, a-filico.adb: fix incorrect header.
3468
3469 2004-10-26 Javier Miranda <miranda@gnat.com>
3470
3471 * a-ststio.ads: Fix typo in identifier
3472
3473 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3474
3475 * sem_ch4.adb: Minor reformatting.
3476
3477 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3478
3479 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
3480 enabled, check the result of unary and binary operations when the
3481 expression is the right-hand side of an assignment.
3482
3483 2004-10-26 Vincent Celier <celier@gnat.com>
3484
3485 * clean.adb (Delete): Do not output warnings when in quiet output and
3486 not in verbose mode.
3487 (Force_Deletions): New Boolean flag, defaulted to False
3488 (Delete): Only delete a file if it is writable, and when
3489 Force_Deletions is True.
3490 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
3491 (Usage): Line for new switch -f
3492 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
3493 own.
3494
3495 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
3496
3497 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
3498 JM type only if its size matches that of the wrapper. When a size is
3499 prescribed and the field is not aliased, remove the wrapper of a JM
3500 type only if the size is not greater than that of the packed array.
3501 (gnat_to_gnu_entity): Change the extension of packed array wrappers
3502 from LJM to JM.
3503
3504 2004-10-26 Geert Bosch <bosch@gnat.com>
3505
3506 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
3507 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
3508 (Pred): Implement in terms of Succ.
3509
3510 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3511
3512 * exp_aggr.adb (Safe_Component): An aggregate component that is an
3513 unchecked conversion is safe for in-place use if the expression of the
3514 conversion is safe.
3515 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
3516 be expandable in place even if the aggregate does not come from source.
3517 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
3518 designated object of an allocator in place, rather than building it
3519 first on the stack. The previous scheme forces a full copy of the array,
3520 and may be altogether unsusable if the size of the array is too large
3521 for stack allocation.
3522
3523 2004-10-26 Robert Dewar <dewar@gnat.com>
3524
3525 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
3526 compares if the component is atomic.
3527
3528 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
3529 array assignment if the component type is atomic.
3530
3531 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3532 Eric Botcazou <ebotcazou@act-europe.fr>
3533
3534 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
3535 is aliased and is a by_reference type, do not pass by copy.
3536 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
3537 detect whether the call is in the right side of an assignment or
3538 the expression of an object declaration. Recurse on component
3539 association within aggregates.
3540 Call it in the condition that determines whether the temporary is
3541 necessary for correct stack-checking.
3542
3543 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3544
3545 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
3546 RACW_Type, used in the PolyORB version.
3547 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
3548 version and the GARLIC version.
3549
3550 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
3551 Rename RCI_Info to RCI_Locator for better consistency between the
3552 GARLIC and PolyORB versions of the distributed systems annex.
3553 (DSA_Implementation_Name): This enumeration lists the possible
3554 implementations of the Partition Communication Subsystem for the
3555 Distributed Systems Annex (DSA). The three available implementations
3556 are the dummy stub implementation (No_DSA), and two versions based on
3557 two different distribution runtime libraries: GARLIC and PolyORB. Both
3558 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
3559 technology.
3560 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
3561 that organization.
3562
3563 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
3564 between the GARLIC and PolyORB versions of the distributed systems
3565 annex.
3566 Remove RE_Unbounded_Reclaim_Pool since it is unused.
3567
3568 2004-10-26 Gary Dismukes <dismukes@gnat.com>
3569
3570 * gnat1drv.adb: Suppress calling the back end when
3571 Frontend_Layout_On_Target is true.
3572
3573 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3574
3575 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
3576 Set_Read_Only): New subprograms.
3577 These new routines allow the user to set or unset the Owner execute
3578 and Owner write permission flags on a file.
3579
3580 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
3581 GNAT.OS_Lib.Set_Executable instead of rolling our own.
3582
3583 2004-10-26 Matthew Gingell <gingell@gnat.com>
3584
3585 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
3586
3587 2004-10-26 Pascal Obry <obry@gnat.com>
3588
3589 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
3590 memory before the faulting page we properly test the process read
3591 access for this address using appropriate Win32 routine.
3592 (HPUX sections): guard with "__hpux__" instead of "hpux".
3593
3594 2004-10-26 Robert Dewar <dewar@gnat.com>
3595
3596 * lib-xref.adb (Generate_Reference): Don't complain about reference to
3597 entry parameter if pragma Unreferenced set, since we do not properly
3598 handle the case of multiple parameters.
3599
3600 2004-10-26 Vincent Celier <celier@gnat.com>
3601
3602 * prj-env.adb: (Contains_ALI_Files): New Boolean function
3603 (Ada_Objects_Path.Add): For a library project, add to the object path
3604 the library directory only if there is no object directory or if the
3605 library directory contains ALI files.
3606 (Set_Ada_Paths.Add.Recursive_Add): Ditto
3607
3608 2004-10-26 Vincent Celier <celier@gnat.com>
3609
3610 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
3611 extension of library projects.
3612
3613 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
3614 path defaults to ".:<prefix>/lib/gnat".
3615 (Parse): For an extending all project, allow direct import of a project
3616 that is virtually extended.
3617
3618 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
3619 the specified name is directly imported, return its ID. Otherwise, if
3620 an extension of this project is imported, return the ID of the
3621 extension.
3622
3623 2004-10-26 Robert Dewar <dewar@gnat.com>
3624
3625 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
3626 (Sub3): New procedure, used by Scaled_Divide
3627 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
3628 correct more than one instance of failure to propagate carries
3629 correctly.
3630 (Double_Divide): Handle overflow case of largest negative number
3631 divided by minus one.
3632
3633 * s-arit64.ads (Double_Divide): Document that overflow can occur in
3634 the case of a quotient value out of range.
3635 Fix comments.
3636
3637 2004-10-26 Robert Dewar <dewar@gnat.com>
3638
3639 * s-bitops.adb (Bit_Eq): Remove redundant check.
3640
3641 * s-bitops.ads: Minor comment updates
3642 Change some occurrences of Address to System.Address
3643
3644 * s-carsi8.ads: Fix minor cut-and-paste error in comments
3645
3646 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3647
3648 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
3649 accessibility check to prefix that is a protected operation.
3650
3651 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3652
3653 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
3654 empty, post message on stub.
3655
3656 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3657 Javier Miranda <miranda@gnat.com>
3658
3659 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
3660 current instance appears within a unit that is directly in the context
3661 of the main unit.
3662 Used to determine whether the body of the instance should be analyzed
3663 immediately after its spec, to make its subprogram bodies available
3664 for front-end inlining.
3665 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
3666 constraint is not allowed on the component type (AARM 12.5.3(3))
3667
3668 2004-10-26 Cyrille Comar <comar@act-europe.fr>
3669
3670 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3671 'Storage_Pool): enhance, document & limit detection of non-sharable
3672 internal pools.
3673
3674 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
3675
3676 * s-pooglo.ads: Add more documentation now that this pool is properly
3677 documented.
3678
3679 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3680
3681 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
3682 or protected type with discriminants, do not constrain the
3683 corresponding record type if the subtype declaration has no
3684 discriminant constraints. This can be the case in source code, or in
3685 the subtype declaration created to rename an actual type within an
3686 instantiation.
3687
3688 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3689
3690 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
3691 different kind of stub (possibly wrong name for file), do not check
3692 for conformance.
3693 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
3694 includes call to some function that returns an unconstrained type, do
3695 not inline.
3696
3697 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3698
3699 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
3700 appear in the code for the main unit. Dependencies among units in the
3701 context of the main unit are established when those other units are
3702 compiled. Otherwise spurious elaboration constraints can generate
3703 incorrect elaboration circularities.
3704
3705 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3706 Ed Schonberg <schonberg@gnat.com>
3707
3708 * sem_util.adb (Is_Aliased_View): Defend against the case where this
3709 subprogram is called with a parameter that is not an object name. This
3710 situation arises for some cases of illegal code, which is diagnosed
3711 later, and in this case it is wrong to call Is_Aliased, as that might
3712 cause a compiler crash.
3713 (Explain_Limited_Type): Refine previous fix to include
3714 inherited components of derived types, to provide complete information.
3715
3716 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
3717 is the prival for a protected object.
3718 It is necessary to mark this entity as a variable, in addition to
3719 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
3720 modified to avoid checking the Aliased flag on entities that are not
3721 objects. (Checking that flag for non-objects is erroneous and could
3722 lead to a compiler crash).
3723
3724 2004-10-26 Robert Dewar <dewar@gnat.com>
3725
3726 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
3727 X_Frac = 0.5, then we know that the number X must be positive.
3728 (Succ): Remove the same redundant test, and also fix the primary test
3729 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
3730 Minor reformatting
3731 (Decompose): Add fuller comments to spec
3732
3733 2004-10-26 Pascal Obry <obry@gnat.com>
3734
3735 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
3736 validity (process must have read access). Set to 0 in all other cases.
3737 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
3738 violation on Win32.
3739 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
3740 segmentation violation.
3741
3742 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
3743
3744 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
3745 whose type is a constructed subtype of an aliased object with an
3746 unconstrained nominal subtype, convert the actual to the constructed
3747 subtype before taking its address.
3748
3749 2004-10-26 Vincent Celier <celier@gnat.com>
3750
3751 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
3752 (Is_Path_Name_Case_Sensitive): New function
3753
3754 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
3755 (Base_Name, Simple_Name, Current_Directory, Compose,
3756 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
3757 the result.
3758
3759 2004-10-26 Cyrille Comar <comar@act-europe.fr>
3760 Vasiliy Fofanov <fofanov@act-europe.fr>
3761 Vincent Celier <celier@gnat.com>
3762
3763 * gnat_ugn.texi: Generalize "finding memory problems" section into a
3764 "memory management issues" section and document some of the useful
3765 memory pools provided as part of the GNAT library.
3766 Remove "virtual" from declaration of A::method2 in
3767 the simple example of Ada/C++ mixed system.
3768 Library Projects may be virtually extended: their virtual extensions
3769 are not Library Projects.
3770 Added section on extending project hierarchies.
3771
3772 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3773
3774 * adaint.c (__gnat_get_libraries_from_registry): Cast value
3775 to LPBYTE.
3776 (__gnat_portable_spawn): Remove const.
3777
3778 * mingw32.h (MAXPATHLEN): Check for previous definition.
3779
3780 2004-10-17 Matthias Klose <doko@debian.org>
3781
3782 * gnatvsn.ads: Set gnat library version to 4.0.
3783
3784 2004-10-05 Vincent Celier <celier@gnat.com>
3785
3786 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
3787
3788 2004-10-04 Laurent GUERBY <laurent@guerby.net>
3789
3790 PR ada/15156
3791 * Makefile.in: Define and use RANLIB_FLAGS.
3792
3793 2004-10-04 Pascal Obry <obry@gnat.com>
3794
3795 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
3796 other x86 platforms).
3797
3798 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
3799
3800 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
3801 in general and triggers stack alignment adjustment for thread entry
3802 points on targets where this is necessary.
3803
3804 2004-10-04 Bernard Banner <banner@gnat.com>
3805
3806 PR ada/13897
3807
3808 * Makefile.in: Add section for powerpc linux
3809 Add variant i-vxwork-x86.ads
3810
3811 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
3812
3813 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
3814
3815 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
3816 table registration calls when need be. Ensures no reference to the crt
3817 ctors symbol are issued in the SJLJ case, which avoids possible
3818 undefined symbol errors in the case of modules to be statically linked
3819 with the kernel.
3820
3821 2004-10-04 Javier Miranda <miranda@gnat.com>
3822
3823 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
3824 in-line the code corresponding to subprogram Analyze_Actuals. In
3825 addition, analyze the actuals only in case of subprogram call.
3826
3827 2004-10-04 Ed Falis <falis@gnat.com>
3828
3829 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
3830
3831 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
3832
3833 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
3834 in the documentation.
3835
3836 2004-10-04 Robert Dewar <dewar@gnat.com>
3837
3838 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
3839 IF and CASE.
3840 (Analyze_Block_Statement): Add circuitry to detect following dead code
3841 (Check_Unreachable_Code): Handle case of block exit
3842
3843 2004-10-04 Robert Dewar <dewar@gnat.com>
3844
3845 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
3846 (XMatchD): Avoid warning for Logic_Error call
3847
3848 2004-10-04 Robert Dewar <dewar@gnat.com>
3849
3850 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
3851 consider expressions buried within a procedure actual to be an actual.
3852 This caused some blowups with uses of packed slices within a procedure
3853 actual.
3854
3855 2004-10-04 Robert Dewar <dewar@gnat.com>
3856
3857 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
3858 longer need to be initialized to zero.
3859 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
3860 initialized to zero.
3861
3862 * checks.adb (Expr_Known_Valid): Packed arrays are now always
3863 considered valid, even if the representation is modular. That's correct
3864 now that we no longer initialize packed modular arrays to zero.
3865
3866 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
3867 suffixes. These are now documented as the only cases in which the
3868 debugger ignores outer records.
3869 Previously, the spec allowed arbitrary suffixes for this purpose.
3870 Change name of LJM to JM for packed array pad records
3871 Create separate section on packed array handling, and add a whole new
3872 set of comments to this section describing the situation with packed
3873 modular types and justification requirements depending on endianness.
3874
3875 2004-10-04 Robert Dewar <dewar@gnat.com>
3876
3877 * a-except.adb: Add a comment for last change
3878
3879 * einfo.ads: Minor spelling correction in comment
3880
3881 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
3882
3883 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
3884 messages.
3885
3886 * sem_util.ads: Minor comment update
3887
3888 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3889
3890 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
3891 Inline_Always when in Configurable_Run_Time mode.
3892
3893 * sem_prag.adb (Process_Convention): If entity is an inherited
3894 subprogram, apply convention to parent subprogram if in same scope.
3895 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
3896 when in Configurable_Run_Time mode.
3897
3898 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3899
3900 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
3901 class_wide type after component list has been inherited.
3902
3903 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3904
3905 * sem_ch12.adb (Check_Generic_Actuals): New predicate
3906 Denotes_Previous_Actual, to handle properly the case of a private
3907 actual that is also the component type of a subsequent array actual.
3908 The visibility status of the first actual is not affected when the
3909 second is installed.
3910 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
3911 make fully recursive the treatment of formals of packages declared
3912 with a box.
3913 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
3914 the above on exit from an instantiation.
3915 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
3916 current instantiation which is now complete.
3917 (Analyze_Package_Instantiation): No instantiated body is needed if the
3918 main unit is generic. Efficient, and avoid anomalies when a instance
3919 appears in a package accessed through rtsfind.
3920
3921 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3922
3923 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
3924 do not generate a declaration for a temporary if the call is part of a
3925 library-level instantiation.
3926
3927 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3928
3929 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
3930 searching for a limited component to flag.
3931
3932 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
3933 expansion of Input, to account for the fact that the implicit call
3934 generated by the attribute reference must freeze the user-defined
3935 stream subprogram. This is only relevant to 'Input, because it can
3936 appear in an object declaration, prior to the body of the subprogram.
3937
3938 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
3939 expansion can proceed and further errors uncovered.
3940 (Minor clean up): Fix cases of using | instead of \ for continuation
3941 messages.
3942
3943 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3944
3945 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
3946
3947 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
3948 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
3949 Use gcc_assert and gcc_unreachable.
3950
3951 * decl.c (gnat_to_gnu_entity, case object): Check and process a
3952 specified alignment before validating size.
3953 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
3954 stripped-down declaration for the type of the inner field when making
3955 a JM type.
3956
3957 * utils.c (finish_record_type): Do not compute the size in units
3958 incrementally. Instead compute it once for the rep clause case.
3959 Use gcc_assert and gcc_unreachable.
3960
3961 2004-10-04 Vincent Celier <celier@gnat.com>
3962
3963 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
3964 in file name.
3965 (Is_Valid_Path_Name): Take '/' as a directory separator.
3966
3967 2004-10-04 Vincent Celier <celier@gnat.com>
3968
3969 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
3970 (Extended_Project) only if Extended_Project is defined, to avoid
3971 assertion error.
3972 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
3973 resolved path.
3974 (Parse_Single_Project): Ditto.
3975
3976 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
3977 Add_To_Project_Path for virtual projects.
3978
3979 2004-10-04 Vincent Celier <celier@gnat.com>
3980
3981 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3982 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3983 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
3984 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
3985 parameter Options_2.
3986
3987 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
3988 Build_Dynamic_Library with an empty Options_2.
3989
3990 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
3991 default anymore.
3992
3993 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
3994 directory separator, if any.
3995 (Gprmake): Do not allow mains on the command line for library projects.
3996 Do not attempt to link when the project is a library project.
3997 (Library_Opts): New table to store Library_Options.
3998 (Build_Library): If Library_Options is specified, pass these options
3999 when building a shared library.
4000
4001 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
4002
4003 * s-tposen.adb (Service_Entry): The object must be always unlocked at
4004 the end of this procedure now that the unlock operation was inserted
4005 by the expander.
4006
4007 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
4008
4009 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
4010 corresponding to the Preallocated_Stacks flags in System.
4011 (Get_Target_Parameters): Including the processing for
4012 Preallocated_Stacks.
4013
4014 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
4015 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
4016 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
4017 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
4018 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
4019 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
4020 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
4021 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
4022 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4023 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4024 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
4025 used to signal whether the compiler creates the required stacks and
4026 descriptors for the different tasks (when True) or it is done by the
4027 underlying operating system at run time (when False).
4028 It is initially set to False in all targets.
4029
4030 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
4031 if it is supported by the target.
4032 (Make_Task_Create_Call): Pass the stack address if it has been
4033 previously created. Otherwise pass a Null_Address.
4034
4035 * snames.adb: Add _stack.
4036
4037 * snames.ads: Add Name_uStack. Required to allow the expander to
4038 statically allocated task stacks.
4039
4040 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
4041 Stack_Address argument.
4042 Check that its value is equal to Null_Address because this target does
4043 not support the static stack allocation.
4044
4045 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
4046
4047 * usage.adb: Change "pragma inline" to "pragma Inline" in information
4048 and error messages
4049
4050 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
4051
4052 * exp_dist.adb: Split declaration of asynchronous flag out of
4053 Add_RACW_Read_Attribute.
4054 Minor reformatting for better alignment with PolyORB version.
4055 Store the entity for the asynchronous flag of an RACW, rather than the
4056 expression, in the asynchronous flags table. This will allow this flag
4057 to be used in other subprograms beside Add_RACW_Read_Attribute.
4058
4059 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
4060
4061 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
4062 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4063 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
4064 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
4065 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
4066 sockets constant MSG_NOSIGNAL (Linux-specific).
4067 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
4068 all Send operations.
4069 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
4070 from trigerring SIGPIPE.
4071 Rename components to avoid clash with Ada 2005 possible reserved
4072 word 'interface'.
4073 (Check_Selector): When the select system call returns with an error
4074 condition, propagate Socket_Error to the caller.
4075
4076 2004-10-01 Jan Hubicka <jh@suse.cz>
4077
4078 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
4079
4080 2004-09-23 Robert Dewar <dewar@gnat.com>
4081
4082 PR ada/17540
4083
4084 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
4085 instead do this at freeze time (we won't do it if there is an address
4086 clause).
4087 Change "pragma inline" to "pragma Inline" in information and error
4088 messages.
4089 Minor reformatting.
4090
4091 * freeze.adb (Check_Address_Clause): Remove previous change, not the
4092 right way of doing things after all.
4093 (Freeze_Entity): For object, set Is_Public for imported entities
4094 unless there is an address clause present.
4095
4096 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
4097
4098 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
4099 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
4100 ensures proper handling of types with rep clauses, which might have
4101 their TYPE_SIZE set already.
4102
4103 2004-09-21 Robert Dewar <dewar@gnat.com>
4104
4105 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
4106 packed array types in both little- and big-endian cases. This change
4107 ensures that we no longer count on the unused bits being initialized
4108 for such types (and in particular ensures that equality testing will
4109 only read the relevant bits).
4110 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
4111 These changes mean that we no longer need to initialize small packed
4112 arrays.
4113 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
4114 optimization to an LJM field as to its parent field.
4115
4116 * ada-tree.h, trans.c, utils.c, utils2.c:
4117 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
4118
4119 2004-09-20 Jan Hubicka <jh@suse.cz>
4120
4121 * utils.c (gnat_finalize): Remove.
4122 (end_subprog_body): Directly call cgraph_finalize_function;
4123 do not lower the nested functions.
4124
4125 2004-09-20 Robert Dewar <dewar@gnat.com>
4126
4127 PR ada/17540
4128
4129 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
4130 if an address clause is present, since that means that the Import
4131 should be ignored.
4132
4133 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
4134
4135 * 5tsystem.ads: Removed, no longer used.
4136
4137 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
4138 Zack Weinberg <zack@codesourcery.com>
4139
4140 * ada-tree.def: Use tree_code_class enumeration constants
4141 instead of code letters.
4142 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
4143 Update for new tree-class enumeration constants.
4144
4145 2004-09-17 Vincent Celier <celier@gnat.com>
4146
4147 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
4148 capabilities of the general project manager.
4149
4150 2004-09-09 Vincent Celier <celier@gnat.com>
4151
4152 * a-direct.ads: Add pragma Ada_05
4153 (Directory_Entry_Type): Give default value to component Kind to avoid
4154 not initialized warnings.
4155
4156 * a-direct.adb (Current_Directory): Remove directory separator at the
4157 end.
4158 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
4159 an existing directory.
4160 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
4161 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
4162 Convert the result to File_Size.
4163
4164 * prj.ads: (Project_Error): New exception
4165
4166 * prj-attr.adb: Except in procedure Initialize, Fail comes from
4167 Prj.Com, not from Osint.
4168 (Attrs, Package_Attributes): Tables moved to private part of spec
4169 (Add_Attribute, Add_Unknown_Package): Moved to new child package
4170 Prj.Attr.PM.
4171 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
4172 Prj.Project_Error after call to Fail.
4173 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
4174 Fail. Check that package name is not already in use.
4175
4176 * prj-attr.ads: Comment updates to indicate that all subprograms may be
4177 used by tools, not only by the project manager, and to indicate that
4178 exception Prj.Prj_Error may be raised in case of problem.
4179 (Add_Unknown_Package, Add_Attribute): Moved to new child package
4180 Prj.Attr.PM.
4181 (Attrs, Package_Attributes): Table instantiations moved from the body to
4182 the private part to be accessible from Prj.Attr.PM body.
4183
4184 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
4185 from new package Prj.Attr.PM.
4186 (Parse_Attribute_Declaration): Call Add_Attribute from new package
4187 Prj.Attr.PM.
4188
4189 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
4190
4191 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
4192 instead of Elaboration_Checks).
4193
4194 * a-calend.adb: Minor reformatting
4195
4196 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4197
4198 * gigi.h (maybe_pad_type): New declaration.
4199 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
4200
4201 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
4202
4203 * cuintp.c: Convert to use buildN.
4204
4205 * decl.c (maybe_pad_type): No longer static.
4206 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
4207 target pointer.
4208 Convert to use buildN.
4209
4210 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
4211 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
4212 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
4213 RHS.
4214 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
4215 (gnat_gimplify_expr, case ADDR_EXPR): New case.
4216 Convert to use buildN.
4217
4218 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
4219 TREE_READONLY for const.
4220 Convert to use buildN.
4221
4222 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
4223 (create_var_decl): Refine when TREE_STATIC is set.
4224 Convert to use buildN.
4225
4226 2004-09-09 Gary Dismukes <dismukes@gnat.com>
4227
4228 * gnat_ugn.texi: Delete text relating to checking of ali and object
4229 consistency.
4230
4231 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
4232 routines.
4233
4234 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
4235
4236 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
4237 pragmas recognized by GNAT.
4238
4239 * gnat_rm.texi: Document pragma Detect_Blocking.
4240
4241 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
4242 raise Program_Error if called from a protected operation.
4243
4244 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
4245 the protected action nesting level.
4246 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
4247 protected action nesting level.
4248 (Unlock): When pragma Detect_Blocking is active decrease the protected
4249 action nesting level.
4250
4251 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
4252 Protected_Action_Nesting.
4253
4254 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
4255 Common_ATCB record. It contains the dynamic level of protected action
4256 nesting for each task. It is needed for checking whether potentially
4257 blocking operations are called from protected operations.
4258 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
4259 Detect_Blocking is active or not in the partition.
4260
4261 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
4262 raise Program_Error if called from a protected operation.
4263 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
4264 Program_Error if called from a protected operation.
4265 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
4266 Program_Error if called from a protected operation.
4267
4268 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
4269 raise Program_Error if called from a protected operation.
4270
4271 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
4272 raise Program_Error if called from a protected operation, and increase
4273 the protected action nesting level.
4274 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
4275 Program_Error if called from a protected operation, and increase the
4276 protected action nesting level.
4277 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
4278 protected action nesting level.
4279
4280 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
4281 raise Program_Error if called from a protected operation, and increase
4282 the protected action nesting level.
4283 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
4284 Program_Error if called from a protected operation, and increase the
4285 protected action nesting level.
4286 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
4287 raise Program_Error if called from a protected operation.
4288 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
4289 active, raise Program_Error if called from a protected operation.
4290 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
4291 protected action nesting level.
4292
4293 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
4294 insertion of the statement raising Program_Error. The run time
4295 contains the required machinery for handling that.
4296
4297 * sem_util.ads: Change comment associated to procedure
4298 Check_Potentially_Blocking_Operation.
4299 This procedure does not insert a call for raising the exception because
4300 that is currently done by the run time.
4301
4302 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
4303
4304 * init.c: Add the global variable __gl_detect_blocking that indicates
4305 whether pragma Detect_Blocking is active (1) or not (0). Needed for
4306 making the pragma available at run time.
4307 (__gnat_set_globals): Pass and update the detect_blocking parameter.
4308
4309 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
4310 pragma Detect_Blocking is active.
4311
4312 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
4313
4314 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
4315 DB is found in the ali file. Any unit compiled with pragma
4316 Detect_Blocking active forces its effect in the whole partition.
4317
4318 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
4319 Detect_Blocking is active and delay is called from a protected
4320 operation.
4321
4322 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
4323 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
4324 Detect_Blocking is active (0 otherwise).
4325 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
4326 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
4327 otherwise).
4328
4329 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
4330
4331 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
4332 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
4333 package.
4334
4335 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
4336 (Register_Receiving_Stub): Add Subp_Info formal parameter.
4337 Update API in placeholder implemetation of s-parint to reflect changes
4338 in distribution runtime library.
4339
4340 * sem_ch3.adb (Expand_Derived_Record): Rename to
4341 Expand_Record_Extension.
4342
4343 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
4344 primitive operations of potentially distributed object types that have
4345 non-controlling anonymous access formals.
4346
4347 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
4348 subprogram.
4349 New implementation of expansion for remote access-to-subprogram types,
4350 based on the RACW infrastructure.
4351 This version of sem_dist is compatible with PolyORB/DSA as well as
4352 GLADE.
4353
4354 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
4355 Asynchrronous that applies to a remote access-to-subprogram type, mark
4356 the underlying RACW type as asynchronous.
4357
4358 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
4359 __gnat_using_gnu_linker to 1.
4360
4361 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
4362 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
4363 GNAT.Perfect_Hash_Generators, and remove the empty
4364 GNAT.Perfect_Hash package.
4365
4366 * atree.adb: Minor reformatting
4367
4368 * exp_ch3.adb (Expand_Derived_Record): Rename to
4369 Expand_Record_Extension.
4370 (Build_Record_Init_Proc.Build_Assignment): The default expression in
4371 a component declaration must remain attached at that point in the
4372 tree so New_Copy_Tree copies it if the enclosing record type is derived.
4373 It is therefore necessary to take a copy of the expression when building
4374 the corresponding assignment statement in the init proc.
4375 As a side effect, in the case of a derived record type, we now see the
4376 original expression, without any rewriting that could have occurred
4377 during expansion of the ancestor type's init proc, and we do not need
4378 to go back to Original_Node.
4379
4380 * exp_ch3.ads (Expand_Derived_Record): Rename to
4381 Expand_Record_Extension.
4382
4383 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
4384 Returns the RACW type used to implement a remote access-to-subprogram
4385 type.
4386 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
4387 New subprograms. Used to create a proxy tagged object for a remote
4388 subprogram. The proxy object is used as the designated object
4389 for RAS values on the same partition (unless All_Calls_Remote applies).
4390 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
4391 System.Partition_Interface.Get_Unique_Remote_Pointer.
4392 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
4393 Renamed from Add_RAS_*_Attribute.
4394 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
4395 subprograms.
4396 New implementation of expansion for remote access-to-subprogram types,
4397 based on the RACW infrastructure.
4398
4399 * exp_dist.ads (Copy_Specification): Update comment to note that this
4400 function can copy the specification from either a subprogram
4401 specification or an access-to-subprogram type definition.
4402
4403 2004-09-09 Ed Schonberg <schonberg@gnat.com>
4404
4405 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
4406 in an instance, between an explicit subprogram an one inherited from a
4407 type derived from an actual.
4408
4409 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
4410 add a polling call if the subprogram is to be inlined by the back-end,
4411 to avoid repeated calls with multiple inlinings.
4412
4413 * checks.adb (Apply_Alignment_Check): If the expression in the address
4414 clause is a call whose name is not a static entity (e.g. a dispatching
4415 call), treat as dynamic.
4416
4417 2004-09-09 Robert Dewar <dewar@gnat.com>
4418
4419 * g-trasym.ads: Minor reformatting
4420
4421 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
4422 packed arrays, since unused bits are expected to be zero for a
4423 comparison.
4424
4425 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
4426
4427 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
4428 comment.
4429
4430 2004-09-09 Pascal Obry <obry@gnat.com>
4431
4432 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
4433 enable map file generation. Add the right option to generate the map
4434 file if Map_File is set to True.
4435
4436 * gnatdll.adb (Gen_Map_File): New variable.
4437 (Syntax): Add info about new -m (Map_File) option.
4438 (Parse_Command_Line): Add support for -m option.
4439 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
4440 Minor reformatting.
4441
4442 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
4443
4444 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
4445 new gnatdist implementation.
4446 Define a subpackage isolating the output routines specific to this
4447 verbose mode.
4448
4449 2004-09-09 Joel Brobecker <brobecker@gnat.com>
4450
4451 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
4452
4453 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
4454
4455 2004-09-09 Cyrille Comar <comar@act-europe.fr>
4456
4457 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
4458 internal unit.
4459
4460 * opt.ads: Add Ada_Version_Runtime constant used to decide which
4461 version of the language is used to compile the run time.
4462
4463 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
4464
4465 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
4466 of variable length temporaries for function return now that the
4467 back-end and gigi support it.
4468
4469 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4470
4471 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
4472
4473 * trans.c (struct stmt_group): Delete field GLOBAL.
4474 (gnat_init_stmt_group): Do not initialize it.
4475 (call_to_gnu): Use save_expr, not protect_multiple_eval.
4476 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
4477 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
4478 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
4479 (start_stmt_group): Likewise.
4480 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
4481
4482 * utils2.c (ggc.h): Include.
4483 (build_call_raise): Call build_int_cst, not build_int_2.
4484
4485 * utils.c (gnat_init_decl_processing): Fix arg to
4486 build_common_tree_nodes.
4487 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
4488 (gnat_define_builtin): Set built_in_decls.
4489 (init_gigi_decls): Call build_int_cst, not build_int_2.
4490
4491 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
4492 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
4493 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
4494 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
4495 SET_TYPE_MODULE): Use them.
4496 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
4497 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
4498 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
4499 SET_TYPE_ADA_SIZE): Likewise.
4500 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
4501 (DECL_CONST_CORRESPONDING_VAR,
4502 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
4503 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
4504 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
4505 (TYPE_RM_SIZE_NUM): New macro.
4506 (TYPE_RM_SIZE): Modified to use above.
4507
4508 * cuintp.c: (build_cst_from_int): New function.
4509 (UI_To_gnu): Use it.
4510
4511 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
4512 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
4513 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
4514 MIN_EXPR for the size, copy it into new.
4515
4516 2004-09-01 Robert Dewar <dewar@gnat.com>
4517
4518 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
4519 packed indexed component where array is an IN OUT formal. This
4520 generated garbage code previously.
4521
4522 * gnat_ugn.texi: Document -fverbose-asm
4523
4524 * gnat-style.texi: Minor updates (note that boolean constants and
4525 variables are joined with AND/OR rather than short circuit forms).
4526
4527 2004-09-01 Ed Schonberg <schonberg@gnat.com>
4528
4529 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
4530 it is an upward conversion of an untagged type with no representation
4531 change.
4532
4533 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
4534
4535 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
4536 System.Partition_Interface.
4537
4538 * checks.adb (Apply_Access_Checks): Do not generate checks when
4539 expander is not active (but check for unset reference to prefix of
4540 dereference).
4541
4542 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
4543 pragma Debug as an if statement with a constant condition, for
4544 consistent treatment of entity references contained within the
4545 enclosed procedure call.
4546
4547 2004-09-01 Vincent Celier <celier@gnat.com>
4548
4549 * bindgen.adb: (Set_EA_Last): New procedure
4550 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
4551 Set_EA_Last.
4552 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
4553 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
4554 linked without errors.
4555 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
4556 ST and EA.
4557 (Gen_Exception_Table_C): Correct same bugs
4558
4559 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
4560
4561 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
4562 on Windows, make sure that the drive letter is in upper case.
4563
4564 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
4565 Windows, when the drive letter is added and Case_Sensitive is True, the
4566 drive letter is forced to upper case.
4567
4568 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
4569 to Options_2 for the call to MLib.Utl.Gcc.
4570
4571 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
4572 directory separator when defining BASE_DIR.
4573
4574 2004-09-01 Pascal Obry <obry@gnat.com>
4575
4576 * gprcmd.adb (Extend): Do not output trailing directory separator. This
4577 is not needed and it confuses Windows GNU/make which does not report
4578 directory terminated by a slash as a directory.
4579 (gprcmd): Idem for "pwd" internal command.
4580
4581 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
4582 target names rewrite to fix regressions with recent version of
4583 GNU/make. Starting with GNU/make 3.80 the pipe character was not
4584 handled properly anymore.
4585
4586 2004-09-01 Andreas Schwab <schwab@suse.de>
4587
4588 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
4589 * raise.c [!IN_RTS]: Undef abort.
4590
4591 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
4592
4593 * utils2.c (build_allocator): Use ssize_int.
4594
4595 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
4596
4597 2004-08-27 Andreas Schwab <schwab@suse.de>
4598
4599 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
4600
4601 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
4602 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4603
4604 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
4605
4606 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
4607
4608 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
4609 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
4610 * utils.c (init_gigi_decls): Likewise.
4611 * utils2.c (build_call_raise, build_allocator): Likewise.
4612
4613 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
4614
4615 * utils.c (gnat_init_decl_processing): Adjust
4616 build_common_tree_nodes call.
4617
4618 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
4619
4620 * utils2.c (build_allocator): Use build_int_cst for negative
4621 size types.
4622
4623 2004-08-18 Richard Henderson <rth@redhat.com>
4624
4625 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
4626
4627 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
4628
4629 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
4630 call.s
4631 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
4632 (gnat_to_gnu): Likewise.
4633
4634 2004-08-16 Pascal Obry <obry@gnat.com>
4635
4636 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
4637 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
4638 option and not mdll anymore. Update comment.
4639
4640 2004-08-16 Pascal Obry <obry@gnat.com>
4641
4642 * bld.adb (Put_Include_Project): Properly handle directory separators
4643 on Windows.
4644
4645 2004-08-16 Ed Schonberg <schonberg@gnat.com>
4646
4647 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
4648 decreasing the number of allocated junk nodes while searching for the
4649 appropriate subprogram.
4650
4651 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
4652
4653 * cuintp.c (UI_To_gnu): Use build_int_cst..
4654 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
4655 * utils.c (init_gigi_decls): Likewise.
4656 * utils2.c (build_call_raise): Likewise.
4657
4658 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
4659
4660 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
4661 for a global aliased object with a variable size and an unconstrained
4662 nominal subtype, pretend there is no initializer if the one we have is
4663 incomplete, and avoid referencing an inexistant component in there. The
4664 part we have will be rebuilt anyway and the reference may confuse
4665 further operations.
4666
4667 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
4668
4669 * einfo.ads: Minor reformatting
4670
4671 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
4672 restrictions in the ALI if we only want to warn about violations.
4673
4674 2004-08-13 Vincent Celier <celier@gnat.com>
4675
4676 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
4677 when creating a new Unit_Record in table Units.
4678
4679 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
4680 that are violated, if any.
4681
4682 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
4683 add directory separator if path already ends with a directory separator.
4684
4685 2004-08-13 Ed Schonberg <schonberg@gnat.com>
4686
4687 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
4688 unit, this is an attempt to inline a construct that is not available in
4689 the current restricted mode, so abort rather than trying to continue.
4690
4691 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
4692 discriminants that rename those of the parent, recover names of
4693 original discriminants for the constraint on the full view of the
4694 parent.
4695 (Complete_Private_Subtype): Do not create a subtype declaration if the
4696 subtype is an itype.
4697
4698 * gnat_rm.texi: Added section on implementation of discriminated
4699 records with default values for discriminants.
4700
4701 2004-08-13 Ed Schonberg <schonberg@gnat.com>
4702
4703 PR ada/15601
4704 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
4705 the second operand is overloaded.
4706
4707 2004-08-10 Richard Henderson <rth@redhat.com>
4708
4709 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
4710 add __builtin_alloca.
4711
4712 2004-08-10 Richard Henderson <rth@redhat.com>
4713
4714 * config-lang.in (boot_language): Yes.
4715
4716 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
4717
4718 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
4719 from complaining on potential uninitialized reference.
4720 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
4721 new specification and test explicitly for non-zero return value.
4722
4723 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
4724 returning C.int, to avoid using a derived boolean type.
4725
4726 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
4727 Duplicate_Subexpr_No_Checks in preference to direct use of
4728 Remove_Side_Effects and New_Copy_Tree.
4729 Clear Comes_From_Source on prefix of 'Size attribute reference.
4730
4731 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
4732 g-socthi-vxworks.adb: Change calls to
4733 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
4734 and test explicitly for non-zero return value.
4735
4736 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
4737 (Is_Socket_In_Set): Declare imported function as returning C.int, to
4738 avoid using a derived boolean type.
4739
4740 2004-08-09 Albert Lee <lee@gnat.com>
4741
4742 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
4743
4744 2004-08-09 Pascal Obry <obry@gnat.com>
4745
4746 * gnat_ugn.texi: Document new way to build DLLs on Windows using
4747 GCC's -shared option.
4748
4749 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
4750 Options_2 parameter (options put after object files).
4751
4752 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
4753
4754 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
4755 ignore overflows on low and high bounds of an index to also account for
4756 differences in signedness between sizetype and gnu_index_subtype.
4757 These are as legitimate as the ones caused by a lower TYPE_PRECISION
4758 on sizetype.
4759
4760 2004-08-09 Robert Dewar <dewar@gnat.com>
4761
4762 * s-solita.ads, s-solita.adb: Minor reformatting
4763
4764 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
4765 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
4766 obsolescent section
4767 Add note that No_Implicit_Conditionals does not suppress
4768 run time constraint checks.
4769
4770 * vms_conv.ads: Minor reformatting
4771
4772 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
4773 and necessary for following change).
4774 (Mark): Return new format Mark_Id containing sec stack address
4775 (Release): Use sec stack address from Mark_Id avoiding Self call
4776
4777 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
4778 pointer (cleanup and necessary for following change).
4779 Define Mark_Id as record containing address of secondary stack, that way
4780 Release does not need to find the stack again, decreasing the number of
4781 calls to Self and improving efficiency.
4782
4783 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
4784
4785 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
4786 case variable into the individual case branches when possible.
4787
4788 * sem_ch11.adb: Minor reformatting
4789
4790 * prj.ads: Correct spelling of suffixs
4791
4792 * prj-nmsc.adb: Minor reformatting
4793 Correct spelling suffixs throughout (also in identifiers)
4794
4795 * freeze.adb: Minor spelling correction
4796
4797 * exp_ch2.adb: Cleanups to handling of Current_Value
4798 (no functional effect).
4799
4800 * bld.adb: Correct spelling of suffixs
4801
4802 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
4803
4804 2004-08-09 Ed Schonberg <schonberg@gnat.com>
4805
4806 PR ada/15408
4807
4808 * sem_ch7.adb (Install_Private_Declarations): In the body of the
4809 package or of a child, private entities are both immediately_visible
4810 and not hidden.
4811
4812 2004-08-09 Ed Schonberg <schonberg@gnat.com>
4813
4814 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
4815 there are no range checks on the value of the literal.
4816
4817 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
4818 wrapped is the triggering alternative of an asynchronous select, action
4819 statements mustbe inserted before the select itself.
4820
4821 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
4822 case where the prefix is a protected function call.
4823 (Resolve_Attribute, case 'Access): The attribute reference on a
4824 subprogram is legal in a generic body if the subprogram is declared
4825 elsewhere.
4826
4827 2004-08-09 Vincent Celier <celier@gnat.com>
4828
4829 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
4830 languages, otherwise building the library may fail with unresolved
4831 symbols.
4832 (Compile_Sources): Do not build libraries if -c switch is used
4833
4834 * gnatlink.adb (Process_Args): New switches -M and -Mmap
4835 (Write_Usage): If map file creation is supported, output new switches
4836 -M and -Mmap.
4837 (Gnatlink): When -M is specified, add the necessary switch(es) to the
4838 gcc call, when supported.
4839
4840 * Makefile.in: Added indepsw.o to the object list for gnatlink
4841 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
4842
4843 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
4844 indepsw.adb, indepsw.ads: New files.
4845
4846 2004-08-09 Bernard Banner <banner@gnat.com>
4847
4848 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
4849
4850 * Makefile.in: add section for vxworks x86
4851
4852 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
4853
4854 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
4855 per-object constrained components where the discriminant is of an
4856 Access type.
4857 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
4858 the parent initialization procedure for derived Unchecked_Unions.
4859 Instead, derived Unchecked_Unions build their own initialization
4860 procedure.
4861 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
4862 Check the body of the subprogram for details.
4863 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
4864 functions for derived Unchecked_Union types by introducing a condition.
4865 Allow the creation of TSS equality functions for Unchecked_Unions.
4866 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
4867 Add formal parameter Discr to function signature. Discr is used to
4868 control the generated case statement for Unchecked_Union types.
4869 (Make_Eq_If): Rename formal parameter Node to E in function signature.
4870
4871 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
4872 Unchecked_Unions.
4873 Check the body of the subprogram for details.
4874 (Expand_Composite_Equality): Augment composite type equality to include
4875 correct handling of Unchecked_Union components.
4876 (Expand_N_In): Add condition to detect illegal membership tests when the
4877 subtype mark is a constrained Unchecked_Union and the expression lacks
4878 inferable discriminants, and build a Raise_Program_Error node.
4879 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
4880 to detect types that contain components of unconstrained Unchecked_Union
4881 subtype. Add condition to detect equality between types that have an
4882 unconstrained Unchecked_Union component, and build a Raise_Program_Error
4883 node. Add condition to detect equality between Unchecked_Union types
4884 that lack inferable discriminants, and build a Raise_Program_Error node.
4885 Otherwise build a TSS equality function call.
4886 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
4887 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
4888 with the operand lacking inferable discriminants, and build a Raise_
4889 Program_Error node.
4890 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
4891 composite equality.
4892 (Has_Inferable_Discriminants): Implement new predicate for objects and
4893 expressions of Unchecked_Union type. Check the body of subprogram for
4894 details.
4895 (Has_Unconstrained_UU_Components): Add function
4896 Component_Is_Unconstrained_UU. It is used to detect whether a single
4897 component is of an unconstrained Unchecked_Union subtype. Add function
4898 Variant_Is_Unconstrained_UU. It is used to detect whether a single
4899 component inside a variant is of an unconstrained Unchecked_Union type.
4900
4901 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
4902 inferred discriminant values. Add condition to generate a case
4903 statement with an inferred discriminant as the switch.
4904 (Make_Component_List_Assign): Introduce a Boolean flag that determines
4905 the behaviour of the subprogram in the presence of an Unchecked_Union.
4906 Add condition to trigger the usage of the inferred discriminant value
4907 as the generated case statement switch.
4908 (Make_Field_Assign): Introduce a Boolean flag that determines the
4909 behaviour of the subprogram in the presence of an Unchecked_Union. Add
4910 condition to trigger the usage of the inferred discriminant value as
4911 the right-hand side of the generated assignment.
4912
4913 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
4914 parameter generation when dealing with Unchecked_Unions.
4915
4916 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
4917 checks for Unchecked_Unions.
4918
4919 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
4920
4921 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
4922 Raise_Program_Error nodes for the execution of Read and Write
4923 attributes of Unchecked_Union types and the execution of Input and
4924 Output attributes of Unchecked_Union types that lack default
4925 discriminant values.
4926
4927 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
4928 Unchecked_Union. Add procedure Check_Component. It is used to inspect
4929 per-object constrained components of Unchecked_Unions for being
4930 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
4931 check individual components withing a variant.
4932
4933 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
4934 comparison of Unchecked_Unions.
4935 (Resolve_Equality_OP): Remove guard that prevents equality between
4936 Unchecked_Unions.
4937
4938 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
4939 of component subtypes for Unchecked_Union components.
4940 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
4941 since it is the actual subtype.
4942
4943 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
4944 pass of Unchecked_Union subtypes as generic actuals to formal types
4945 that lack known_discriminant_parts or that are derived Unchecked_Union
4946 types, and do nothing. In any other case, produce an error message.
4947
4948 * sem_ch3.adb (Analyze_Component_Declaration): Add function
4949 Contains_POC. It determines whether a constraint uses the discriminant
4950 of an enclosing record type.
4951 Add condition to detect per-object constrained component and set the
4952 appropriate flag.
4953 (Derived_Type_Declaration): Remove guard that prevents derivation from
4954 Unchecked_Union types.
4955 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
4956 Union subtypes.
4957
4958 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
4959 references to Unchecked_Union discriminants.
4960
4961 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
4962 formal generation when dealing with Unchecked_Unions.
4963 (Set_Actual_Subtypes): Add condition to prevent generation of actual
4964 subtypes for Unchecked_Unions.
4965
4966 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
4967 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
4968 completions of discriminated partial views by Unchecked_Unions and
4969 produce an error message.
4970
4971 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4972
4973 * trans.c (struct stmt_group): New field, GLOBAL.
4974 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
4975 (struct elab_info): New struct.
4976 (elab_info_list, gnu_elab_proc_stack): New variables.
4977 (Compilation_Unit_to_gnu): New procedure.
4978 (gigi): Call it and also handle elaboration procs we've saved.
4979 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
4980 global field from parent.
4981 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
4982 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
4983 (start_stmt_group): Initialize global field from parent.
4984 (add_decl_expr): Set to global for current statement group.
4985 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
4986 post.
4987
4988 * utils.c (global_bindings_p): True when no current_function_decl; no
4989 longer check current_binding_level.
4990
4991 2004-08-09 Ben Brosgol <brosgol@gnat.com>
4992
4993 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
4994 choice.
4995
4996 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
4997
4998 2004-08-06 Andreas Schwab <schwab@suse.de>
4999
5000 * utils.c (gnat_define_builtin): Remove second parameter of
5001 make_decl_rtl.
5002 (begin_subprog_body): Likewise.
5003
5004 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
5005
5006 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
5007 optimization, not supported by the tree-ssa back-end.
5008
5009 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
5010
5011 * s-mastop-irix.adb: Update comments.
5012
5013 * a-except.adb (Exception_Information): Raise Constraint_Error if
5014 exception Id is Null_Id.
5015 This is required behavior, which is more reliably and clearly checked
5016 at the top level interface level.
5017
5018 2004-07-26 Javier Miranda <miranda@gnat.com>
5019
5020 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
5021 call if a component has no default_expression and the box is used.
5022
5023 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
5024 default_expression and you use box, it behaves as if you had declared a
5025 stand-alone object.
5026 (Resolve_Record_Aggregate): If a component has no default_expression and
5027 you use box, it behaves as if you had declared a stand-alone object.
5028
5029 * sem_ch10.adb (Install_Siblings): Do not make visible the private
5030 entities of private-with siblings.
5031
5032 2004-07-26 Ed Schonberg <schonberg@gnat.com>
5033
5034 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
5035 for a component of an itype, set the parent pointer for analysis,
5036 there is no list in which to insert it.
5037
5038 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
5039 bona-fide renamings, not for inherited operations.
5040
5041 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
5042 actual for a formal that is an access parameter, create local
5043 finalization list even if the expression is not an aggregate.
5044
5045 2004-07-26 Ed Schonberg <schonberg@gnat.com>
5046
5047 PR ada/16213
5048 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
5049 Diagnose properly illegal subprogram renamings that are library units.
5050
5051 2004-07-26 Ed Schonberg <schonberg@gnat.com>
5052
5053 PR ada/15588
5054 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
5055 conversion rewritten as an unchecked conversion, check that original
5056 expression is a variable.
5057
5058 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
5059 unchecked_conversion, create new node rather than rewriting in place,
5060 to preserve original construct.
5061
5062 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5063
5064 * gigi.h (gnat_expand_body): Deleted.
5065
5066 * Make-lang.in: (trans.o): Depends on function.h.
5067
5068 * misc.c: (gnat_expand_body): Moved to here.
5069
5070 * trans.c (gnat_expand_body_1): Deleted.
5071 (gnat_expand_body): Moved from here.
5072 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
5073 (add_stmt): Check for marked visited with global_bindings_p.
5074 (gnat_gimplify_expr, case COMPONENT_REF): New case.
5075 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
5076
5077 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
5078 VIEW_CONVERT_EXPR if not operation type.
5079
5080 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
5081 fat pointer.
5082
5083 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
5084 changes: reformatting of negation operators, removing unneeded
5085 inequality comparison with zero, converting equality comparisons with
5086 zero to negations, changing int/0/1 to bool/false/true, replace calls
5087 to gigi_abort with abort, and various other similar changes.
5088
5089 2004-07-26 Vincent Celier <celier@gnat.com>
5090
5091 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
5092 "setup".
5093
5094 * make.adb (Gnatmake): Fail when a library is not present and there is
5095 no object directory.
5096
5097 * mlib-prj.adb (Check_Library): No need to check if the library needs
5098 to be rebuilt if there is no object directory, hence no object files
5099 to build the library.
5100
5101 * opt.ads (Setup_Projects): New Boolean flag.
5102
5103 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
5104 Location.
5105 Create directory when Kind /= "" and in "gnat setup". Report error if
5106 directory cannot be created.
5107 (Ada_Check): Create library interface copy dir if it does not exist
5108 and we are in "gnat setup".
5109 (Find_Sources): No error if in "gnat setup" and no Ada sources were
5110 found.
5111 (Language_Independent_Check): Create object directory, exec directory
5112 and/or library directory if they do not exist and we are in
5113 "gnat setup".
5114
5115 * vms_conv.ads: (Command_Type): New command Setup.
5116
5117 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
5118
5119 * vms_data.ads: Add qualifiers/switches for new built-in command
5120 "setup".
5121
5122 2004-07-25 Richard Henderson <rth@redhat.com>
5123
5124 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
5125 DECL_IGNORED_P on RESULT_DECL.
5126
5127 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
5128
5129 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
5130 allocation and potentially overflowing update with
5131 Tailored_Exception_Information. Use the sec-stack free procedural
5132 interface to output Exception_Information instead.
5133
5134 * a-except.adb (To_Stderr): New subprogram for character, and string
5135 version moved from a-exextr to be visible from other separate units.
5136 (Tailored_Exception_Information): Remove the procedural version,
5137 previously used by the default Last_Chance_Handler and not any more.
5138 Adjust various comments.
5139
5140 * a-exexda.adb: Generalize the exception information procedural
5141 interface, to minimize the use of secondary stack and the need for
5142 local buffers when the info is to be output to stderr:
5143 (Address_Image): Removed.
5144 (Append_Info_Character): New subprogram, checking for overflows and
5145 outputing to stderr if buffer to fill is of length 0.
5146 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
5147 (Append_Info_Address, Append_Info_Exception_Name,
5148 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
5149 Append_Info_Basic_Exception_Traceback,
5150 Append_Info_Exception_Information): New subprograms.
5151 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
5152 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
5153 Exception_Info_Maxlength, Exception_Name_Length,
5154 Exception_Message_Length): New subprograms.
5155 (Exception_Information): Use Append_Info_Exception_Information.
5156 (Tailored_Exception_Information): Use
5157 Append_Info_Basic_Exception_Information.
5158 Export services for the default Last_Chance_Handler.
5159
5160 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
5161 other separate units.
5162
5163 2004-07-20 Vincent Celier <celier@gnat.com>
5164
5165 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
5166
5167 2004-07-20 Ed Schonberg <schonberg@gnat.com>
5168
5169 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
5170 emit itype references for the designated types of component types that
5171 are declared outside of the full record declaration, and that may
5172 denote a partial view of that record type.
5173
5174 2004-07-20 Ed Schonberg <schonberg@gnat.com>
5175
5176 PR ada/15607
5177 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
5178 which is the designated type in an access component declaration, to the
5179 list of incomplete dependents of the parent type, to avoid elaboration
5180 issues with out-of-scope subtypes.
5181 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
5182 full view of the parent.
5183
5184 2004-07-20 Ed Schonberg <schonberg@gnat.com>
5185
5186 PR ada/15610
5187 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
5188 entities that are hidden, such as references to generic actuals
5189 outside an instance.
5190
5191 2004-07-20 Javier Miranda <miranda@gnat.com>
5192
5193 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
5194 support to the new notation.
5195 (Analyze_Selected_Component): Add call to Try_Object_Operation.
5196
5197 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
5198
5199 * s-taprob.adb: Adding the elaboration code required for initializing
5200 the tasking soft links that are common to the full and the restricted
5201 run times.
5202
5203 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
5204 restricted run time has been moved to the package
5205 System.Soft_Links.Tasking.
5206
5207 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
5208 restricted run time has been moved to the package
5209 System.Soft_Links.Tasking.
5210
5211 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
5212
5213 * s-solita.ads, s-solita.adb: New files.
5214
5215 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5216
5217 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
5218 Case_Statement_to_gnu): Split off from gnat_to_gnu.
5219 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
5220 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
5221 Exception_Handler_to_gnu_zcx): Likewise.
5222
5223 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
5224
5225 * gigi.h (builtin_function): Declare.
5226
5227 2004-07-15 Robert Dewar <dewar@gnat.com>
5228
5229 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
5230 reformatting
5231
5232 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
5233 access values as an example of a warning.
5234
5235 * gnat_rm.texi: Document new attribute Has_Access_Values
5236
5237 * gnat-style.texi: Document that box comments belong on nested
5238 subprograms
5239
5240 * sem_util.ads (Has_Access_Values): Improved documentation
5241
5242 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
5243
5244 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
5245 (Process_Interface_Name): Call to this new procedure
5246 (Set_Extended_Import_Export_External_Name): Call to this new procedure
5247
5248 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
5249
5250 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
5251
5252 * einfo.ads: Minor comment typo fixed
5253
5254 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
5255
5256 * snames.adb: Add _atcb.
5257
5258 * snames.ads: Add Name_uATCB.
5259
5260 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
5261 (in the expanded code) when using the restricted run time.
5262
5263 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
5264 a in parameter in order to allow ATCBs to be preallocated (in the
5265 expanded code).
5266
5267 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
5268 order to allow ATCBs to be preallocated. In case of error, the ATCB is
5269 deallocated in System.Tasking.Stages.
5270
5271 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
5272 order to allow ATCBs to be preallocated.
5273
5274 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
5275 here. It was previously done in Initialize_ATCB.
5276
5277 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
5278
5279 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
5280 Restricted run time.
5281
5282 * exp_ch3.adb: When using the Restricted run time, pass the
5283 preallocated Ada_Task_Control_Block when creating a task.
5284
5285 2004-07-15 Ed Schonberg <schonberg@gnat.com>
5286
5287 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
5288 function call that is itself an actual in an enclosing call, diagnose
5289 problem here rather than assuming that resolution will catch it.
5290
5291 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
5292 the local copy of a generic unit for a formal package, and the generic
5293 is a child unit, install private part of ancestors before compiling
5294 private part of spec.
5295
5296 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
5297 use scope entities rather than tree structures, to handle properly
5298 parent units that are instances rewritten as bodies for inlining
5299 purposes.
5300
5301 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
5302 Remove_Parents): Handle properly a parent unit that is an
5303 instantiation, when the unit has been rewritten as a body for inlining
5304 purposes.
5305
5306 * par.adb (Goto_List): Global variable to collect goto statements in a
5307 given unit, for use in detecting natural loops.
5308
5309 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
5310 use in detecting natural loops.
5311
5312 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
5313 backwards goto's, and rewrite as a infinite loop, to improve locality
5314 of temporaries.
5315
5316 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
5317 subcomponent that includes an indexed reference, to prevent the
5318 generation of copies that would miscompile the desired assignment
5319 statement.
5320 (Build_Task_Image_Decls): Add a numeric suffix to
5321 generated name for string variable, to avoid spurious conflicts with
5322 the name of the type of a single protected object.
5323
5324 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
5325 loop with an explicit exit statement, to avoid generating an
5326 out-of-range value with 'Succ leading to spurious constraint_errors
5327 when compiling with -gnatVo.
5328
5329 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
5330
5331 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
5332 might not be analyzed yet, even if its Etype is already set (case of an
5333 unchecked conversion built using Unchecked_Convert_To, for example).
5334 If the prefix has already been analyzed, this will be a nop anyway.
5335
5336 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
5337 controller type, or an assignment of a record type with controlled
5338 components, copy only user data, and leave the finalization chain
5339 pointers untouched.
5340
5341 2004-07-15 Vincent Celier <celier@gnat.com>
5342
5343 * make.adb (Collect_Arguments): Improve error message when attempting
5344 to compile a source not part of any project, when -x is not used.
5345
5346 * prj.ads: (Defined_Variable_Kind): New subtype
5347
5348 * prj-attr.adb (Register_New_Package): Two new procedures to register
5349 a package with or without its attributes.
5350 (Register_New_Attribute): Mew procedure to register a new attribute in a
5351 package.
5352 New attribute oriented subprograms: Attribute_Node_Id_Of,
5353 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
5354 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
5355 Next_Attribute.
5356 New package oriented subprograms: Package_Node_Id_Of,
5357 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
5358
5359 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
5360 type.
5361 (Package_Node_Id): Now a private, self initialized type
5362 (Register_New_Package): New procedure to register a package with its
5363 attributes.
5364 New attribute oriented subprograms: Attribute_Node_Id_Of,
5365 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
5366 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
5367 Next_Attribute.
5368 New package oriented subprograms: Package_Node_Id_Of,
5369 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
5370
5371 * prj-dect.adb (Parse_Attribute_Declaration,
5372 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
5373
5374 * prj-makr.adb (Make): Parse existing project file before creating
5375 other files. Fail if there was an error during parsing.
5376
5377 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
5378 new spec of Prj.Attr.
5379
5380 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
5381 to new spec of Prj.Attr.
5382
5383 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5384
5385 * utils2.c: Fix typo in comment.
5386
5387 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5388
5389 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
5390 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
5391
5392 2004-07-14 Andreas Schwab <schwab@suse.de>
5393
5394 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
5395
5396 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5397
5398 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
5399 object type.
5400 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
5401 TYPE_STUB_DECL.
5402
5403 * misc.c (gnat_types_compatible_p): New function.
5404 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
5405 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
5406
5407 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
5408 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
5409 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
5410 (mark_visited): Don't mark dummy type.
5411 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
5412 parameter, we must remove any LJM building from GNU_NAME.
5413 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
5414 (pos_to_constructor): Use int_const_binop.
5415 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
5416 PARM_DECL.
5417
5418 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
5419 (gnat_pushlevel): Set TREE_USE on BLOCK node.
5420 (gnat_install_builtins): Add __builtin_memset.
5421
5422 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
5423
5424 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
5425 for a renaming, stabilize the initialization expression if we are at a
5426 local level. At the local level, uses of the renaming may be performed
5427 by a direct dereference of the initializing expression, and we don't
5428 want possible variables there to be evaluated for every use.
5429
5430 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
5431 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
5432 them on the way. Account for the fact that we may introduce side
5433 effects in the process.
5434
5435 2004-07-13 Richard Henderson <rth@redhat.com>
5436
5437 * misc.c (default_pass_by_ref): Use pass_by_reference.
5438
5439 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
5440
5441 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
5442 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
5443
5444 2004-07-08 Richard Henderson <rth@redhat.com>
5445
5446 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
5447 commentary.
5448
5449 2004-07-06 Vincent Celier <celier@gnat.com>
5450
5451 * vms_conv.ads: Minor reformatting.
5452 Alphabetical order for enumerated values of type Command_Type, to have
5453 the command in alphabetical order for the usage.
5454
5455 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
5456 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
5457
5458 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
5459
5460 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
5461 (Add_Archive_Path): Only add the global archive if there is one.
5462 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
5463 or not any object file to put in the global archive, and don't build
5464 a global archive if there is none.
5465 (X_Switches): New table
5466 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
5467 in the X_Switches table, if any.
5468 (Initialize): Make sure the X_Switches table is empty
5469 (Scan_Arg): Record -X switches in table X_Switches
5470
5471 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
5472
5473 * make.adb: Minor comment fix
5474
5475 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
5476 invoked with directory information, add the directory in front of the
5477 path.
5478
5479 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
5480 invoked with directory information, add the directory in front of the
5481 path.
5482
5483 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
5484 when Keep_Temporary_Files is False.
5485 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
5486 directory information, add the directory in front of the path.
5487 When not on VMS, handle new switch -dn before the command to set
5488 Keep_Temporary_Files to True.
5489 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
5490 everywhere.
5491
5492 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
5493 invoked with directory information, add the directory in front of the
5494 path.
5495
5496 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
5497
5498 * snames.ads, snames.adb (Name_Stub): New name for the distributed
5499 systems annex.
5500
5501 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
5502 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
5503
5504 * g-socket.adb (To_Timeval): Fix incorrect conversion of
5505 Selector_Duration to Timeval for the case of 0.0.
5506
5507 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
5508 documentation from Evolve_And_Then.
5509
5510 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
5511
5512 * s-taprop-tru64.adb, s-taprop-os2.adb,
5513 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
5514
5515 2004-07-06 Robert Dewar <dewar@gnat.com>
5516
5517 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
5518 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
5519 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
5520 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
5521 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
5522 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
5523 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
5524 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
5525 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
5526 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
5527 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
5528 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
5529 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
5530 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
5531 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
5532 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
5533 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
5534 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
5535 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
5536 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
5537 vms_data.ads: Minor reformatting,
5538 Fix bad box comment format.
5539
5540 * gnat_rm.texi: Fix minor grammatical error
5541
5542 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
5543
5544 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
5545 more cases of discriminated records to be recognized as not needing a
5546 secondary stack.
5547 (Has_Access_Values): New function.
5548
5549 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
5550
5551 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
5552 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
5553 with LRM terminology).
5554 Change terminology in comments primitive type => elementary type.
5555
5556 2004-07-06 Ed Schonberg <schonberg@gnat.com>
5557
5558 PR ada/15602
5559 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
5560 parameters do not impose any requirements on the presence of a body.
5561
5562 2004-07-06 Ed Schonberg <schonberg@gnat.com>
5563
5564 PR ada/15593
5565 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
5566 compilation unit and is in an open scope at the point of instantiation,
5567 assume that a body may be present later.
5568
5569 2004-07-06 Ed Schonberg <schonberg@gnat.com>
5570
5571 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
5572 Improve error message when specified size is not supported.
5573
5574 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
5575 is never a primitive operation.
5576
5577 2004-07-05 Andreas Schwab <schwab@suse.de>
5578
5579 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
5580 RECORD_OR_UNION_CHECK.
5581 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
5582
5583 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
5584
5585 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
5586 dependency on xgnatugn, instead build it via a submake.
5587 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
5588
5589 2004-07-04 Richard Henderson <rth@redhat.com>
5590
5591 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
5592
5593 2004-07-01 Richard Henderson <rth@redhat.com>
5594
5595 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
5596 * utils.c (max_size): Likewise.
5597
5598 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5599
5600 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
5601 and rest_of_type_compilation; add arg to create_*_decl.
5602 (annotate_decl_with_node): Deleted.
5603 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
5604 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
5605 (get_current_block_context, gnat_pushdecl): New declarations.
5606 (gnat_init_stmt_group): Likewise.
5607 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
5608 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
5609 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
5610 (gnat_init): Call gnat_init_stmt_group.
5611 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
5612 (gnu_pending_elaboration_list): Deleted.
5613 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
5614 (gigi): Rearrange initialization calls and move some to last above.
5615 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
5616 Delete calls to add_decl_expr; add arg to create_*_decl.
5617 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
5618 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
5619 begin_subprog_body and call it.
5620 Don't push and pop ggc context.
5621 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
5622 (add_stmt): Remove handling of DECL_EXPR from here.
5623 If not in function, mark visited.
5624 (add_decl_expr): Put global at top level.
5625 Check for cases of DECL_INITIAL we have to handle here.
5626 (process_type): Add extra arg to create_type_decl.
5627 (build_unit_elab): Rework to just gimplify.
5628 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
5629 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
5630 (get_pending_elaborations, pending_elaborations_p): Likewise.
5631 (push_pending_elaborations, pop_pending_elaborations): Likewise.
5632 (get_elaboration_location, insert_elaboration_list): Likewise.
5633 (gnat_binding_level): Renamed from ada_binding_level.
5634 (init_gnat_to_gnu): Don't clear pending_elaborations.
5635 (global_bindings_p): Treat as global if no current_binding_level.
5636 (set_current_block_context): New function.
5637 (gnat_pushdecl): Renamed from pushdecl; major rework.
5638 All callers changed.
5639 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
5640 (finish_record_type): Call call pushdecl for stub decl.
5641 (function_nesting_depth): Deleted.
5642 (begin_subprog_body): Delete obsolete code.
5643 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
5644
5645 2004-06-28 Robert Dewar <dewar@gnat.com>
5646
5647 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5648 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5649 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
5650 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5651 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
5652
5653 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
5654 deal with problem of inefficient slices on machines with strict
5655 alignment, when the slice is a component of a composite.
5656
5657 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
5658 machines, we need the check there as well.
5659
5660 2004-06-28 Ed Schonberg <schonberg@gnat.com>
5661
5662 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
5663 determine safe copying direction for overlapping slice assignments
5664 when component is controlled.
5665
5666 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
5667 formal derived type in the actual for a formal package are visible in
5668 the enclosing instance.
5669
5670 2004-06-28 Ed Schonberg <schonberg@gnat.com>
5671
5672 PR ada/15600
5673 * sem_util.adb (Trace_Components): Diagnose properly an illegal
5674 circularity involving a private type whose completion includes a
5675 self-referential component.
5676 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
5677 renaming or an instantiation from an implicit derived operation.
5678
5679 2004-06-28 Pascal Obry <obry@gnat.com>
5680
5681 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
5682 DLL.
5683 (Library_File_Name_For): Idem.
5684
5685 2004-06-28 Matthew Gingell <gingell@gnat.com>
5686
5687 * g-traceb.ads: Add explanatory note on the format of addresses
5688 expected by addr2line.
5689
5690 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
5691
5692 * Makefile.in: Force debugging information on s-tasdeb.adb,
5693 a-except.adb and s-assert.adb needed by the debugger.
5694
5695 2004-06-28 Vincent Celier <celier@gnat.com>
5696
5697 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
5698 Need_To_Build_Lib.
5699 (Gnatmake): Ditto.
5700
5701 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
5702
5703 * prj.adb: Minor reformatting
5704 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
5705
5706 * prj.ads: Comment updates
5707 Minor reformatting
5708 (Project_Data): Change Flag1 to Need_To_Build_Lib.
5709 Remove Flag2: not used.
5710
5711 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
5712 declaration.
5713
5714 * gnat_ugn.texi: Put a "null;" declaration in one project file example
5715
5716 * gnat_rm.texi: Document Empty declarations "null;".
5717
5718 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
5719 front of the linker options.
5720 (Link_Foreign): Put the global archives and the libraries in front of
5721 the linker options.
5722
5723 2004-06-28 Javier Miranda <miranda@gnat.com>
5724
5725 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
5726 (RTU_Loaded): Code cleanup
5727 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
5728 withed predefined units.
5729
5730 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
5731 explicitly withed predefined units.
5732 Fix typo in comment
5733
5734 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
5735 explicitly withed predefined units.
5736
5737 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5738
5739 * ada-tree.def (DECL_STMT): Deleted.
5740 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
5741 (DECL_STMT_VAR): Deleted.
5742 * decl.c: add_decl_stmt now add_decl_expr.
5743 * gigi.h: Likewise.
5744 * trans.c: Likewise.
5745 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
5746 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
5747 (add_stmt): Only handle padded type here.
5748 (add_stmt_with_node): Allow gnat_node to not be present.
5749 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
5750 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
5751 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
5752 make a SAVE_EXPR for the entire fat pointer.
5753 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
5754 (create_index_type): Make a DECL_EXPR.
5755 (end_subprog_body): Don't call allocate_struct_function here but
5756 do clear cfun.
5757
5758 2004-06-25 Pascal Obry <obry@gnat.com>
5759
5760 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
5761 Relocatable from Build_Dynamic_Library call.
5762
5763 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
5764 Relocatable are now synonym.
5765
5766 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
5767
5768 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
5769 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
5770 call.
5771
5772 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
5773 Lib_Address and Relocatable.
5774 (Default_DLL_Address): Removed.
5775
5776 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5777 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5778 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
5779 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
5780 (Default_DLL_Address): Removed.
5781
5782 * mlib-tgt-mingw.adb: Ditto.
5783 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
5784
5785 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
5786 the initial thread stack size.
5787
5788 * a-strmap.ads: Move package L to private part as it is not used in
5789 the spec. Found while reading code.
5790
5791 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
5792
5793 * tracebak.c: Introduce support for a GCC infrastructure based
5794 implementation of __gnat_backtrace.
5795
5796 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
5797 any more. Use accessors instead. This eases maintenance and relaxes
5798 some alignment constraints.
5799 (_GNAT_Exception structure): Remove the Ada specific fields
5800 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
5801 a-exexpr.adb.
5802 (is_handled_by, __gnat_eh_personality): Replace component references to
5803 exception structure by use of the new accessors.
5804
5805 * init.c (__gnat_initialize): Adjust comments to match the just
5806 reverted meaning of the -static link-time option.
5807
5808 * adaint.c (convert_addresses): Arrange not to define a stub for
5809 mips-irix any more, as we now want to rely on a real version from a
5810 recent libaddr2line.
5811
5812 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
5813 the personality routine can use them and not have to rely on a C
5814 counterpart of the record anymore. This simplifies maintenance and
5815 relaxes the constraint of having Standard'Maximum_Alignment match
5816 BIGGEST_ALIGNMENT.
5817 Update comments, and add a section on the common header alignment issue.
5818
5819 2004-06-25 Geert Bosch <bosch@gnat.com>
5820
5821 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
5822 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
5823
5824 2004-06-25 Robert Dewar <dewar@gnat.com>
5825
5826 * gnat_rm.texi: Fix section on component clauses to indicate that the
5827 restriction on byte boundary placement still applies for bit packed
5828 arrays.
5829 Add comment on stack usage from Initialize_Scalars
5830
5831 * gnat_ugn.texi: Add documentation for -gnatyLnnn
5832
5833 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
5834 limiting nesting level.
5835
5836 * usage.adb: Add line for -gnatyLnnn switch
5837
5838 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
5839 sem_ch13.adb, exp_aggr.adb: Minor reformatting
5840
5841 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
5842 type as well as on the subtype. This corrects a problem in freeze in
5843 setting alignments of atomic types.
5844
5845 * sem_eval.ads: Minor comment typo fixed
5846
5847 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
5848 level. Minor reformatting.
5849
5850 * fname.adb (Is_Predefined_File_Name): Require a letter after the
5851 minus sign. This means that file names like a--b.adb will not be
5852 considered predefined.
5853
5854 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
5855 record Test new flag and give diagnostic for bad component clause.
5856 (Freeze_Entity): Set alignment of array from component alignment in
5857 cases where this is safe to do.
5858
5859 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
5860 arrays.
5861
5862 * cstand.adb: (Create_Standard): Set alignment of String to 1
5863
5864 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
5865
5866 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
5867 code in the common constrained array cases.
5868
5869 * a-storio.adb: Change implementation to avoid possible alignment
5870 problems on machines requiring strict alignment (data should be moved
5871 as type Buffer, not type Elmt).
5872
5873 * checks.adb (Apply_Array_Size_Check): Improve these checks by
5874 killing the overflow checks which we really do not need (64-bits is
5875 enough).
5876
5877 2004-06-25 Vincent Celier <celier@gnat.com>
5878
5879 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
5880 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
5881 inconditionally for the main project.
5882 (Recursive_Add_Archives.Add_Archive_Path): New procedure
5883 (Link_Executables.Check_Time_Stamps): New procedure
5884 (Link_Executables.Link_Foreign): New procedure
5885 Changes made to reduce nesting level of this package
5886 (Check): New procedure
5887 (Add_Switches): When not in quiet output, check that a switch is not
5888 the concatenation of several valid switches. If it is, issue a warning.
5889 (Build_Global_Archive): If the global archive is rebuilt, linking need
5890 to be done.
5891 (Compile_Sources): Rebuilding a library archive does not imply
5892 rebuilding the global archive.
5893 (Build_Global_Archive): New procedure
5894 (Build_Library): New name for Build_Archive, now only for library
5895 project
5896 (Check_Archive_Builder): New procedure
5897 (Create_Global_Archive_Dependency_File): New procedure
5898 (Gprmake): Call Build_Global_Archive before linking
5899 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
5900 throughout.
5901 (Scan_Arg): Display the Copyright notice when -v is used
5902
5903 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
5904 for gnatls.
5905
5906 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
5907 COMPILE.
5908 Add new GNAT LIST qualifier /FILES=
5909 Added qualifier /DIRECTORY= to GNAT METRIC
5910 Added qualifier /FILES= to GNAT METRIC
5911 Added qualifier /FILES to GNAT PRETTY
5912
5913 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
5914 to take into account both versions of the switch.
5915
5916 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
5917 always be the last switch to the gcc driver. Disable switch storing so
5918 that switches automatically added by the gcc driver are not put in the
5919 ALI file.
5920
5921 * prj.adb (Project_Empty): Take into account changes in components of
5922 Project_Data.
5923
5924 * prj.ads (Languages_Processed): New enumaration value All_Languages.
5925
5926 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
5927 used. Split Boolean component Ada_Sources_Present in two Boolean
5928 components Ada_Sources_Present and Other_Sources_Present.
5929 Minor reformatting
5930
5931 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
5932 instead of Sources_Present.
5933 (Set_Ada_Paths.Add.Recursive_Add): Ditto
5934
5935 * prj-nmsc.adb: Minor reformatting
5936 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
5937 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
5938 Check_Ada_Naming_Scheme.
5939 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
5940 throughout.
5941
5942 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
5943 In_Limited.
5944 Make sure that all cycles where there is at least one "limited with"
5945 are detected.
5946 (Parse_Single_Project): New Boolean parameter In_Limited
5947
5948 * prj-proc.adb (Recursive_Check): When Process_Languages is
5949 All_Languages, call first Prj.Nmsc.Ada_Check, then
5950 Prj.Nmsc.Other_Languages_Check.
5951
5952 * prj-proc.adb (Process): Use Ada_Sources_Present or
5953 Other_Sources_Present (instead of Sources_Present) depending on
5954 Process_Languages.
5955
5956 * lang-specs.h: Keep -g and -m switches in the same order, and as the
5957 last switches.
5958
5959 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
5960 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
5961 False.
5962 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
5963 False.
5964
5965 * lib.ads (Disable_Switch_Storing): New procedure.
5966
5967 * make.adb: Modifications to reduce nesting level of this package.
5968 (Check_Standard_Library): New procedure
5969 (Gnatmake.Check_Mains): New procedure
5970 (Gnatmake.Create_Binder_Mapping_File): New procedure
5971 (Compile_Sources.Compile): Add switch -gnatez as the last option
5972 (Display): Never display -gnatez
5973
5974 * Makefile.generic:
5975 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
5976
5977 * gnatcmd.adb (Check_Project): New function
5978 (Process_Link): New procedure to reduce nesting depth
5979 (Check_Files): New procedure to reduce the nesting depth.
5980 For GNAT METRIC, include the inherited sources in extending projects.
5981 (GNATCmd): When GNAT LS is invoked with a project file and no files,
5982 add the list of files from the sources of the project file. If this list
5983 is too long, put it in a temp text files and use switch -files=
5984 (Delete_Temp_Config_Files): Delete the temp text file that contains
5985 a list of source for gnatpp or gnatmetric, if one has been created.
5986 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
5987 in the project file is too large, create a temporary text file that
5988 list them and pass it to the tool with "-files=<temp text file>".
5989 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
5990
5991 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
5992 generated file is in not in Ada.
5993
5994 * gnatls.adb: Remove all parameters And_Save that are no longer used.
5995 (Scan_Ls_Arg): Add processing for -files=
5996 (Usage): Add line for -files=
5997
5998 * g-os_lib.adb (On_Windows): New global constant Boolean flag
5999 (Normalize_Pathname): When on Windows and the path starts with a
6000 directory separator, make sure that the resulting path will start with
6001 a drive letter.
6002
6003 * clean.adb (Clean_Archive): New procedure
6004 (Clean_Project): When there is non-Ada code, delete the global archive,
6005 the archive dependency files, the object files and their dependency
6006 files, if they exist.
6007 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
6008
6009 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
6010
6011 * sinfo.ads: Fix typo in comment.
6012
6013 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
6014 the TSS for remote access-to-subprogram types, since these TSS are
6015 always present once the type has been analyzed.
6016 (RAS_E_Dereference): Same.
6017
6018 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
6019 reference raises Bad_Attribute, mark the reference as analyzed so the
6020 node (and any children resulting from rewrites that could have occurred
6021 during the analysis that ultimately failed) is not analyzed again.
6022
6023 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
6024
6025 * exp_dist.adb: Minor comment fix.
6026
6027 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
6028 type is an anonymous access type, no unchecked deallocation of the
6029 allocated object can occur. If the object is controlled, attach it with
6030 a count of 1. This allows attachment to the Global_Final_List, if
6031 no other relevant list is available.
6032 (Get_Allocator_Final_List): For an anonymous access type that is
6033 the type of a discriminant or record component, the corresponding
6034 finalisation list is the one of the scope of the type.
6035
6036 2004-06-25 Ed Schonberg <schonberg@gnat.com>
6037
6038 * sem_ch3.adb (Replace_Type): When computing the signature of an
6039 inherited subprogram, use the first subtype if the derived type
6040 declaration has no constraint.
6041
6042 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
6043 before applying previous optimization. Minor code cleanup.
6044
6045 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
6046 placed at the beginning of an unpacked record without explicit
6047 alignment, a slice of it will be aligned and does not need a copy when
6048 used as an actual.
6049
6050 2004-06-25 Ed Schonberg <schonberg@gnat.com>
6051
6052 PR ada/15591
6053 PR ada/15592
6054 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
6055 reference is written with expressions mimicking parameters.
6056
6057 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
6058
6059 PR ada/15589
6060 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
6061 STEP 2a. The constraints of a full type declaration of a derived record
6062 type are checked for conformance with those declared in the
6063 corresponding private extension declaration. The message
6064 "not conformant with previous declaration" is emitted if an error is
6065 detected.
6066
6067 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
6068
6069 * g-traceb.ads: Document the need for -E binder switch in the spec.
6070
6071 * g-trasym.ads: Document the need for -E binder switch in the spec.
6072
6073 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
6074
6075 * sem_prag.adb: Add handling of pragma Detect_Blocking.
6076
6077 * snames.h, snames.ads, snames.adb: Add entry for pragma
6078 Detect_Blocking.
6079
6080 * s-rident.ads: Change reference to pragma Detect_Blocking.
6081
6082 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
6083 system.ads.
6084
6085 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
6086 to indicate whether pragma Detect_Blocking is active.
6087
6088 * par-prag.adb: Add entry for pragma Detect_Blocking.
6089
6090 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
6091 of not handling WITH.
6092 Note that this replaces the previous update which was incorrect.
6093
6094 2004-06-25 Javier Miranda <miranda@gnat.com>
6095
6096 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
6097 use-clauses to have a clean environment.
6098
6099 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
6100 the installation of the use-clauses to stablish a clean environment in
6101 case of compilation of a separate unit; otherwise the call to
6102 use_one_package is protected by the barrier Applicable_Use.
6103
6104 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
6105 the installation of the use-clauses to stablish a clean environment in
6106 case of compilation of a separate unit.
6107 (End_Use_Clauses): Minor comment cleanup.
6108
6109 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
6110
6111 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
6112
6113 2004-06-23 Richard Henderson <rth@redhat.com>
6114
6115 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
6116
6117 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6118
6119 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
6120 now bool instead of int.
6121 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
6122 * trans.c (gnu_switch_label_stack): New function.
6123 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
6124 elaboration of renamed entity returns.
6125 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
6126 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
6127 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
6128 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
6129 DECL_SIZE_UNIT and simplify variable-sized case.
6130 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
6131 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
6132 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
6133 (build_unit_elab): Disable for now.
6134 * utils.c (mark_visited): New function.
6135 (pushdecl): Walk tree to call it for global decl.
6136 (update_pointer_to): Update all variants of pointer and ref types.
6137 Add arg to COMPONENT_REF.
6138 (convert): Likewise.
6139 Move check for converting between variants lower down.
6140 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
6141 (build_allocator): Don't force type of MODIFY_EXPR.
6142 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
6143 put_var_into_stack.
6144
6145 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6146
6147 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
6148 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
6149 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
6150 subprograms.
6151 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
6152 all callers changed.
6153 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
6154 the way that EXIT_STMT finds the loop label.
6155 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
6156 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
6157 (add_stmt): Use annotate_with_locus insted of setting directly.
6158 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
6159 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
6160 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
6161 (build_vms_descriptor): Add extra args to ARRAY_REF.
6162 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
6163 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
6164 New cases.
6165 (build_binary_op): Don't make explicit CONVERT_EXPR.
6166 Add extra rgs to ARRAY_REF.
6167
6168 2004-06-14 Pascal Obry <obry@gnat.com>
6169
6170 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
6171 Windows. Fix minor typo.
6172
6173 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
6174 which is now supported on Windows. With this implementation using the
6175 Library Project feature is no different on Windows than on UNIX.
6176
6177 2004-06-14 Vincent Celier <celier@gnat.com>
6178
6179 * makegpr.adb (Compile_Sources): Nothing to do when there are no
6180 non-Ada sources.
6181
6182 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
6183
6184 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
6185 found, show the project name and the path of the previously parsed
6186 project file.
6187
6188 2004-06-14 Ed Schonberg <schonberg@gnat.com>
6189
6190 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
6191 array, avoid copying the actual before the call.
6192
6193 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
6194
6195 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
6196 Instead, allocate memory on worst-case alignment assumptions, and then
6197 return an aligned address within the allocated zone.
6198
6199 2004-06-14 Robert Dewar <dewar@gnat.com>
6200
6201 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
6202 elab entities in predefined units in No_Run_Time_Mode.
6203 (Gen_Adainit_C): Same fix
6204 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
6205 units in No_Run_Time_Mode
6206 (Gen_Elab_Calls_C): Same fix
6207
6208 * symbols-vms-alpha.adb: Minor reformatting
6209
6210 * g-debpoo.ads: Minor reformatting
6211
6212 * lib.adb (In_Same_Extended_Unit): Version working on node id's
6213
6214 * lib.ads (In_Same_Extended_Unit): Version working on node id's
6215
6216 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
6217 working on nodes.
6218
6219 * make.adb: Minor reformatting
6220
6221 * par-ch12.adb: Minor reformatting
6222
6223 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
6224
6225 * prj-strt.adb: Minor reformatting
6226
6227 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
6228 be more general.
6229
6230 * sem_attr.adb: Minor reformatting
6231
6232 * sem_ch7.adb: Minor reformatting
6233
6234 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
6235 for type in the same unit as the object declaration.
6236
6237 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
6238 static string expressions and not just string literals.
6239 Minor reformatting
6240 (Set_Warning): Reset restriction warning flag for restriction pragma
6241 Implement pragma Profile_Warnings
6242 Implement pragma Profile (Restricted)
6243 Give obolescent messages for old restrictions and pragmas
6244
6245 * snames.h, snames.ads, snames.adb: Add new entry for pragma
6246 Profile_Warnings.
6247
6248 * s-rident.ads: Add declarations for restrictions required by profile
6249 Restricted and profile Ravenscar.
6250
6251 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
6252
6253 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
6254 configuration pragmas.
6255
6256 2004-06-11 Vincent Celier <celier@gnat.com>
6257
6258 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
6259 gnatsym, when symbol policy is Restricted.
6260
6261 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
6262 gnatsym, when symbol policy is Restricted.
6263
6264 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
6265 read the symbol file.
6266 (Finalize): Fail in symbol policy Restricted if a symbol in the original
6267 symbol file is not in the object files. Do not create a new symbol file
6268 when symbol policy is Restricted.
6269
6270 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
6271 in Scng.
6272
6273 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
6274 Restricted.
6275 (Usage): Line for new switch -R
6276
6277 * make.adb (Initialize): When the platform is not VMS, add the
6278 directory where gnatmake is invoked in the front of the path, if
6279 gnatmake is invoked with directory information. Change the Scan_Args
6280 while loop to a for loop.
6281 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
6282 if Depth is equal or greater than the proposed depth, there is nothing
6283 to do.
6284 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
6285 instead of 0.
6286
6287 * prj.ads: Add new symbol policy Restricted.
6288
6289 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
6290 with the new parameters Check_All_Labels and Case_Location.
6291
6292 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
6293 (Library_Symbol_File needs to be defined).
6294
6295 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
6296 and Case_Location If Check_All_Labels is True, check that all values of
6297 the string type are used, and output warning(s) if they are not.
6298
6299 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
6300 and Case_Location.
6301
6302 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
6303
6304 * gnat_ugn.texi: Update documentation about the library directory in
6305 Library Projects.
6306
6307 * makegpr.adb (Display_Command): In verbose mode, also display the
6308 value of the CPATH env var, when the compiler is gcc.
6309 (Initialize): Change the Scan_Args while loop to a for loop
6310 (Compile_Individual_Sources): Change directory to object directory
6311 before compilations.
6312
6313 * symbols.ads: New symbol policy Restricted.
6314
6315 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
6316
6317 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
6318 is now taken care of internally in the Exception_Propagation package
6319 and does not require clients assistance any more.
6320
6321 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
6322 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
6323 functions. Helpers to maintain a predicate required in the handling of
6324 occurrence transfer between tasks.
6325 This is now handled internally and does not require clients assistance
6326 for the setup/propagate separation anymore.
6327 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
6328 allocation strategy, handle the Setup_And_Not_Propagated predicate and
6329 document.
6330
6331 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
6332 raise_after_setup, now that everything is handled internally within the
6333 setup/propagation engine.
6334
6335 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
6336
6337 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
6338 Add additional conditions for the case of an actual being a simple
6339 name or literal. Improve inlining by preventing the generation
6340 of temporaries with a short lifetime (one use).
6341
6342 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
6343
6344 PR ada/15587
6345
6346 * einfo.ads: Minor comment updates for Has_Completion and
6347 E_Constant list of flags.
6348
6349 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
6350 and constant redeclarations now set the Has_Completion flag of their
6351 defining identifiers.
6352
6353 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
6354 Inspect_Deferred_Constant_Completion.
6355 Used to detect private deferred constants that have not been completed
6356 either by a constant redeclaration or pragma Import. Emits error message
6357 "constant declaration requires initialization expression".
6358
6359 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
6360 completes a deferred constant.
6361
6362 2004-06-11 Geert Bosch <bosch@gnat.com>
6363
6364 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
6365
6366 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
6367 calculating exponent for scaling denormal numbers.
6368 (Leading_Part): Properly raise Constraint_Error for zero or negative
6369 Adjustment.
6370 (Remainder): Properly raise Constraint_Error for zero divisor.
6371
6372 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
6373
6374 * sem_util.adb: Minor reformatting.
6375
6376 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
6377 dereference when accessing the entry parameter record.
6378 (Check_Array_Type): Always check for possible implicit dereference.
6379 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
6380 Abort if a pointer is still present (denoting that an implicit
6381 dereference was left in the tree by the front-end).
6382
6383 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
6384 dereference when accessing the entry parameter record.
6385 (Check_Array_Type): Always check for possible implicit dereference.
6386 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
6387 Abort if a pointer is still present (denoting that an implicit
6388 dereference was left in the tree by the front-end).
6389
6390 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
6391
6392 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
6393 message, like the compiler itself does. Easier to parse the output.
6394
6395 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
6396
6397 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
6398 be base names, and not includes directories.
6399
6400 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
6401
6402 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
6403 so that dependencies are properly taken into account by make.
6404
6405 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
6406
6407 PR ada/15622
6408 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
6409 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
6410
6411 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
6412
6413 * Makefile.in (install-gnatlib): install target-specific run-time files.
6414
6415 * Make-lang.in: Remove obsolete targets.
6416
6417 2004-06-11 Ed Schonberg <schonberg@gnat.com>
6418
6419 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
6420 specification, to catch misuses of program unit names.
6421
6422 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
6423 superfluous conversions in an instance.
6424
6425 2004-06-11 Ed Schonberg <schonberg@gnat.com>
6426
6427 PR ada/15403
6428
6429 * sem_ch12.adb (Save_References): If operator node has been folded to
6430 enumeration literal, associated_node must be discarded.
6431
6432 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
6433
6434 * s-stchop-vxworks.adb: Add required pragma Convention to
6435 Task_Descriptor because it is updated by a C function.
6436
6437 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
6438
6439 PR ada/15568
6440
6441 * Makefile.in: Remove target specific SO_OPT on IRIX
6442
6443 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6444
6445 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
6446 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
6447 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
6448 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
6449 (STMT_STMT, USE_STMT): New statement codes.
6450 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
6451 * ada-tree.h: Reflect above changes.
6452 (struct tree_loop_id): Deleted.
6453 (union lang_tree_node, struct lang_decl, struct lang_type):
6454 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
6455 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
6456 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
6457 (IS_ADA_STMT): New macro.
6458 * decl.c (annotate_decl_with_node): New function.
6459 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
6460 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
6461 Call add_stmt_with_node to do needed assignments.
6462 Add call to update setjmp buffer directly, not via EXPR_STMT.
6463 (maybe_variable): Argment GNAT_NODE deleted.
6464 * gigi.h (maybe_variable): Likewise.
6465 (make_transform, add_stmt_with_node, set_block_for_group): New.
6466 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
6467 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
6468 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
6469 (set_lineno, set_lineno_from_sloc): Likewise.
6470 (record_code_position, insert_code_for): Likewise.
6471 (gnat_poplevel): Now returns void.
6472 (end_subprog_body): Now takes argument.
6473 * misc.c (cgraph.h, tree-inline.h): New includes.
6474 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
6475 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
6476 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
6477 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
6478 (gnat_parse_file): Don't set immediate_size_expand.
6479 Call cgraph functions.
6480 (gnat_expand_expr): Remove most cases.
6481 (record_code_position, insert_code_for): Remove from here.
6482 * trans.c (toplev.h, tree-gimple.h): Now included.
6483 (discard_file_names): Deleted.
6484 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
6485 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
6486 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
6487 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
6488 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
6489 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
6490 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
6491 (set_block_for_group, add_stmt_list): Likewise.
6492 (start_stmt_group): Renamed from start_block_stmt.
6493 (end_stmt_group): Likewise, from end_block_stmt.
6494 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
6495 (gigi): Don't set discard_file_names or call set_lineno.
6496 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
6497 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
6498 Numerous changes throughout to reflect new names and complete
6499 function-at-a-time implementation.
6500 (gnat_expand_stmt): Delete or comment out all cases.
6501 (process_inlined_subprograms): Use add_stmt.
6502 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
6503 call set_lineno; also remove unneeded block handling.
6504 (process_type): Remove unneeded block handling.
6505 (build_unit_elab): Remove calls to deleted functions.
6506 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
6507 (tree-dump.h): Likewise.
6508 (struct ada_binding_level): Add field jmpbuf_decl.
6509 (gnat_define_builtin, gnat_install_builtins): New.
6510 (gnat_gimplify_function, gnat_finalize): Likewise.
6511 (gnat_poplevel): No longer return BLOCK, set it instead.
6512 Remove code dealing with nested functions.
6513 (gnat_init_decl_processing): Also set size_type_node.
6514 Call gnat_install_builtins.
6515 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
6516 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
6517 Remove special-case for "main".
6518 (end_subprog_body): Add arg and rework for tree-ssa.
6519 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
6520 Add case for BOOLEAN_TYPE.
6521 * utils2.c (rtl.h): Now include.
6522 (build_call_raise): Test Debug_Flag_NN directly.
6523 (build_call_alloc_dealloc): Don't use local stack allocation for now.
6524 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
6525 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
6526
6527 2004-06-07 Robert Dewar <dewar@gnat.com>
6528
6529 * a-direct.ads, einfo.ads: Minor comment updates
6530
6531 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6532 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
6533 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
6534 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6535 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
6536
6537 * s-interr-sigaction.adb: Remove unreferenced variable
6538 (Attached_Interrupts). Minor reformatting.
6539 Avoid use of variable I (replace by J).
6540
6541 * par-ch10.adb: Fix text of one error message
6542
6543 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
6544 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
6545 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
6546 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
6547 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
6548 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6549 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
6550 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
6551 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
6552 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
6553 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
6554 2005 support.
6555
6556 2004-06-07 Doug Rupp <rupp@gnat.com>
6557
6558 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
6559
6560 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
6561
6562 * mlib-tgt-vms-ia64.adb: New file.
6563
6564 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
6565 Add mlib-tgt-vms-ia64.adb
6566 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
6567 Move to alpha specific ifeq section.
6568 Add VMS specific versions of symbols.adb
6569 Renaming of 5q vms files.
6570
6571 * 5qsystem.ads renamed to system-vms_64.ads.
6572
6573 2004-06-07 Vincent Celier <celier@gnat.com>
6574
6575 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
6576 explain that when a time of day corresponding to the non existing hour
6577 on the day switching to DST is specified, Split may return a different
6578 value for Seconds.
6579
6580 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
6581 to GNAT PRETTY.
6582
6583 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
6584 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
6585
6586 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
6587 to False.
6588 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
6589 the linking options.
6590 (Build_Library.Check_Libs): On VMS, if there is a dependency on
6591 g-trasym.ads, set Gtrasymobj_Needed to True.
6592
6593 * prj-attr.adb: Add new package Metrics for gnatmetric
6594
6595 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
6596 canonical case to take into account files with upper case characters on
6597 Windows.
6598 (Ada_Check): Load the reference symbol file name in the name buffer to
6599 check it, not the symbol file name.
6600
6601 * snames.ads, snames.adb: Add standard name Metrics (name of project
6602 file package for gnatmetric).
6603
6604 * vms_conv.ads: Add Metric to Comment_Type
6605
6606 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
6607
6608 * vms_data.ads: Add qualifiers for GNAT METRIC
6609
6610 * makegpr.adb (Link_Executables): Take into account the switches
6611 specified in package Linker of the main project.
6612
6613 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
6614
6615 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
6616 the index of the last element is Units.Last, not Units.Table'Last
6617 (which is usually not a valid index within the actually allocated
6618 storage for the table).
6619
6620 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
6621 determines whether to generate a call to a checked storage pool
6622 Dereference action.
6623 Generate such a call only for a dereference that either comes from
6624 source, or is the result of rewriting a dereference that comes from
6625 source.
6626
6627 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
6628
6629 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
6630
6631 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
6632
6633 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
6634 file level, elaborate the stride for inner dimensions in alignment
6635 units, not bytes.
6636
6637 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
6638 in a comment.
6639
6640 2004-06-07 Javier Miranda <miranda@gnat.com>
6641
6642 * exp_ch6.adb: Correct wrong modification in previous patch
6643
6644 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
6645
6646 * g-trasym.ads: Corrected comment to properly reflect level of support
6647 on VMS.
6648
6649 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
6650
6651 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
6652 includes case of a variable referenced on the left hand side of an
6653 assignment, therefore remove redundant code. Variables and prefixes of
6654 indexed or selected components are now marked as referenced on left
6655 hand side. Warnings are now properly emitted when variables or prefixes
6656 are assigned but not read.
6657
6658 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
6659 left hand side referenced variables. Private access types do not
6660 produce the warning "variable ... is assigned but never read".
6661 Add also additional checks to left hand side referenced variables.
6662 Aliased, renamed objects and access types do not produce the warning
6663 "variable ... is assigned but never read" since other entities may read
6664 the memory location.
6665
6666 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
6667
6668 * Makefile.in: In the powerpc/vxworks-specific section, restore
6669 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
6670 by mistake).
6671
6672 2004-06-07 Ed Schonberg <schonberg@gnat.com>
6673
6674 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
6675 predefined operators.
6676 Removes spurious type errors from g-trasym-vms.adb.
6677
6678 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
6679 distinct from the operator appearing in the source, call appropriate
6680 routine to insert conversions when needed, and complete resolution of
6681 node.
6682 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
6683 interpretations for rewritten right operand.
6684 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
6685 the other operand is overloaded and the context is a type conversion.
6686
6687 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6688
6689 * ada-tree.def (BLOCK_STMT): Now has two operands.
6690 (BREAK_STMT): New.
6691
6692 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
6693
6694 * gigi.h: (gnat_poplevel): Now returns a tree.
6695
6696 * trans.c (end_block_stmt): Add arg; all callers changed.
6697 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
6698 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
6699 (add_stmt): Set TREE_TYPE.
6700 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
6701 (gnat_expand_stmt, case BREAK_STMT): New case.
6702
6703 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
6704
6705 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
6706
6707 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
6708 procedure Set_Stack_Size that is not needed.
6709
6710 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
6711
6712 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
6713 used for gnatpp input file and for the files upon which it depends
6714
6715 2004-06-07 Ben Brosgol <brosgol@gnat.com>
6716
6717 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
6718
6719 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
6720
6721 * gnatvsn.ads: Bump version numbers appropriately.
6722 Add new build type.
6723
6724 2004-06-07 Pascal Obry <obry@gnat.com>
6725
6726 * gnat_ugn.texi: Improve comments about imported names and link names
6727 on Windows. Add a note about the requirement to use -k gnatdll's option
6728 when working with a DLL which has stripped stdcall symbols (no @nn
6729 suffix).
6730
6731 2004-05-27 Vincent Celier <celier@gnat.com>
6732
6733 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
6734 COMMENTS_LAYOUT=UNTOUCHED
6735
6736 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
6737 symbols-vms-alpha.adb
6738
6739 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
6740
6741 * sem.ads: Clarify documentation on checks suppression.
6742
6743 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
6744
6745 2004-05-27 Ed Schonberg <schonberg@gnat.com>
6746
6747 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
6748 the case of multiple derivations.
6749 (Is_Object_Reference): For a selected component, verify that the prefix
6750 is itself an object and not a value.
6751
6752 * sem_ch12.adb (Same_Instantiated_Constant): New name for
6753 Same_Instantiated_Entity.
6754 (Same_Instantiated_Variable): Subsidiary to
6755 Check_Formal_Package_Instance, to recognize actuals for in-out generic
6756 formals that are obtained from a previous formal package.
6757 (Instantiate_Subprogram_Body): Emit proper error when
6758 generating code and the proper body of a stub is missing.
6759
6760 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
6761 has a universal interpretation, do the disambiguation here.
6762
6763 * exp_ch4.adb (Expand_N_Type_Conversion,
6764 Expand_N_Unchecked_Type_Conversion): Special handling when target type
6765 is Address, to avoid typing anomalies when Address is a visible integer
6766 type.
6767
6768 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
6769 to determine whether a subprogram should not be marked Pure, even when
6770 declared in a pure package.
6771
6772 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
6773
6774 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
6775
6776 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
6777 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
6778 Update the documentation about the Ravenscar profile, following the
6779 definition found in AI-249.
6780
6781 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
6782 setting the Profile (Ravenscar). This must be done in addition to
6783 setting the required restrictions.
6784
6785 * rtsfind.ads: Add the set of operations defined in package
6786 Ada.Interrupts.
6787
6788 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
6789 restriction.
6790
6791 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
6792
6793 lang-specs.h: Always require -c or -S and always redirect to /dev/null
6794 if -gnatc or -gnats is passed.
6795
6796 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
6797
6798 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
6799 a significant reference. Warnings are now properly emitted when a
6800 discriminated type is not referenced.
6801
6802 * lib-xref.adb (Generate_Reference): A deferred constant completion,
6803 record representation clause or record type discriminant does not
6804 produce a reference to its corresponding entity. Warnings are now
6805 properly emitted when deferred constants and record types are not
6806 referenced.
6807
6808 2004-05-27 Geert Bosch <bosch@gnat.com>
6809
6810 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
6811 Fixes ACATS Annex G tests.
6812
6813 2004-05-27 Robert Dewar <dewar@gnat.com>
6814
6815 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
6816 handling WITH
6817
6818 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
6819
6820 * s-interr.adb (Server_Task): Take into account case of early return
6821 from sigwait under e.g. linux.
6822
6823 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
6824
6825 * gnat_ugn.texi: Add description for the new gnatpp options:
6826 -rnb - replace the original source without creating its backup copy
6827 -c0 - do not format comments
6828
6829 2004-05-24 Geert Bosch <bosch@gnat.com>
6830
6831 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
6832 with 192 bits of precision, sufficient to reduce a double-extended
6833 arguments X with a maximum relative error of T'Machine_Epsilon, for X
6834 in -2.0**32 .. 2.0**32.
6835 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
6836 reduction by the processor, which only uses a 68-bit approximation of
6837 Pi.
6838 (Tan): Always reduce arguments and compute function either using
6839 the processor's fptan instruction, or by dividing sin and cos as needed.
6840
6841 2004-05-24 Doug Rupp <rupp@gnat.com>
6842
6843 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
6844 gcc error on 32/64 bit VMS.
6845
6846 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
6847
6848 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
6849 since this is what we get for stack overflows although not documented
6850 as such.
6851 Document the issues which may require adjustments to our signal
6852 handlers.
6853
6854 2004-05-24 Ed Schonberg <schonberg@gnat.com>
6855
6856 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
6857 enclosing dynamic scope if the instantiation is within a generic unit.
6858
6859 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
6860
6861 * exp_dbug.ads: Fix typo.
6862
6863 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
6864 Rename it to its proper name: system-linux-ia64.ads
6865 (stamp-gnatlib1): Remove extra target specific run time files when
6866 setting up the rts directory.
6867
6868 2004-05-24 Javier Miranda <miranda@gnat.com>
6869
6870 * einfo.ads, einfo.adb (Limited_Views): Removed.
6871 (Limited_View): New attribute that replaces the previous one. It is
6872 now a bona fide package with the limited-view list through the
6873 first_entity and first_private attributes.
6874
6875 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
6876 limited-private-with clause.
6877 (Install_Limited_Withed_Unit): Install the private declarations of a
6878 limited-private-withed package. Update the installation of the shadow
6879 entities according to the new structure (see Build_Limited_Views)
6880 (Build_Limited_Views): Replace the previous implementation of the
6881 limited view by a package entity that references the first shadow
6882 entity plus the first shadow private entity (required for limited-
6883 private-with clause)
6884 (New_Internal_Shadow_Entity): Code cleanup.
6885 (Remove_Limited_With_Clause): Update the implementation to undo the
6886 new work carried out by Build_Limited_Views.
6887 (Build_Chain): Complete documentation.
6888 Replace Ada0Y by Ada 0Y in comments
6889 Minor reformating
6890
6891 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
6892 types the level of accessibility depends on the enclosing type
6893 declaration.
6894
6895 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
6896 entities. Complete documentation of previous change.
6897
6898 2004-05-24 Robert Dewar <dewar@gnat.com>
6899
6900 * namet.adb: Minor reformatting
6901 Avoid use of name I (replace by J)
6902 Minor code restructuring
6903
6904 * sem_ch6.adb: Minor reformatting
6905
6906 * lib-writ.adb: Do not set restriction as active if this is a
6907 Restriction_Warning case.
6908
6909 * sem_prag.adb: Reset restriction warning flag if real pragma
6910 restriction encountered.
6911
6912 * s-htable.adb: Minor reformatting
6913 Change rotate count to 3 in Hash (improves hash for small strings)
6914
6915 * 5qsystem.ads: Add comments for type Address (no literals allowed).
6916
6917 * gnat_ugn.texi: Add new section of documentation "Code Generation
6918 Control", which describes the use of -m switches.
6919
6920 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
6921
6922 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
6923 through the DECL_INITIAL for renamed variables.
6924
6925 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
6926
6927 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
6928
6929 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6930
6931 * exp_dbug.ads: Correct comments concerning handling of overloading,
6932 since we no longer use $ anymore.
6933
6934 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
6935
6936 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
6937 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
6938 with illegal subunits.
6939
6940 2004-05-19 Ed Schonberg <schonberg@gnat.com>
6941
6942 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
6943 body with front-end inlining enabled, check whether an inline pragma
6944 appears immediately after the body and applies to it.
6945
6946 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
6947 enabled and the pragma appears after the body of the subprogram.
6948
6949 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6950
6951 Part of function-at-a-time conversion
6952
6953 * misc.c (adjust_decl_rtl): Deleted.
6954 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
6955 Define.
6956
6957 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
6958 (add_decl_stmt, add_stmt, block_has_vars): New functions.
6959 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
6960
6961 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
6962 when making a decl.
6963 (gnat_to_gnu_entity): Likewise.
6964 Use add_stmt to update setjmp buffer.
6965 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
6966 flush_addressof.
6967 No longer call adjust_decl_rtl.
6968 (DECL_INIT_BY_ASSIGN_P): New macro.
6969 (DECL_STMT_VAR): Likewise.
6970
6971 * trans.c (gigi): Call start_block_stmt to make the outermost
6972 BLOCK_STMT.
6973 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
6974 Call start_block_stmt and end_block_stmt temporarily.
6975 Use gnat_expand_stmt instead of expand_expr_stmt.
6976 (add_decl_stmt): New function.
6977 (tree_transform): Call it.
6978 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
6979 (end_block_stmt): Set type and NULL_STMT.
6980 (gnat_expand_stmt): Make recursize call instead of calling
6981 expand_expr_stmt.
6982 (gnat_expand_stmt, case DECL_STMT): New case.
6983 (set_lineno_from_sloc): Do nothing if global.
6984 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
6985 (start_block_stmt, add_stmt, end_block_stmt): New functions.
6986 (build_block_stmt): Call them.
6987 (gnat_to_code): Don't expand NULL_STMT.
6988 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
6989 args.
6990 (tree_transform): Likewise.
6991 (tree_transform, case N_Null_Statement): Return NULL_STMT.
6992 (gnat_expand_stmt, case NULL_STMT): New case.
6993 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
6994 IF_STMT_TRUE.
6995
6996 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
6997 TREE_ADDRESSABLE.
6998
6999 * utils.c (create_var_decl): Do not call expand_decl or
7000 expand_decl_init.
7001 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
7002 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
7003 here.
7004 (struct e_stack): Add chain_next to GTY.
7005 (struct binding_level): Deleted.
7006 (struct ada_binding_level): New struct.
7007 (free_block_chain): New.
7008 (global_binding_level, clear_binding_level): Deleted.
7009 (global_bindings_p): Rework to see if no chain.
7010 (kept_level_p, set_block): Deleted.
7011 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
7012 new data structure and work directly on BLOCK node.
7013 (gnat_poplevel): Similarly.
7014 (get_decls): Look at BLOCK_VARS.
7015 (insert_block): Work directly on BLOCK node.
7016 (block_has_var): New function.
7017 (pushdecl): Rework for new binding structures.
7018 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
7019 poplevel.
7020 (build_subprog_body): Likewise.
7021 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
7022
7023 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
7024
7025 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
7026 (DECL_STMT_VAR): Likewise.
7027
7028 2004-05-17 Robert Dewar <dewar@gnat.com>
7029
7030 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
7031 procedure
7032
7033 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
7034 of restriction synonyums by using
7035 Restrict.Process_Restriction_Synonyms.
7036
7037 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
7038
7039 * s-restri.ads (Tasking_Allowed): Correct missing comment
7040
7041 * s-rident.ads: Add entries for restriction synonyms
7042
7043 * ali.adb: Fix some problems with badly formatted ALI files that can
7044 result in infinite loops.
7045
7046 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
7047 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
7048 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
7049 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
7050 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
7051 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
7052 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
7053 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
7054 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
7055 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
7056 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
7057 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
7058 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
7059 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
7060 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
7061 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
7062 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
7063 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
7064 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
7065 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
7066 to Task_Id (minor cleanup).
7067
7068 2004-05-17 Vincent Celier <celier@gnat.com>
7069
7070 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
7071 directory separator.
7072
7073 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
7074 project being extended, if Languages is not declared in extending
7075 project.
7076
7077 2004-05-17 Javier Miranda <miranda@gnat.com>
7078
7079 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
7080 limited view of a visible sibling.
7081
7082 2004-05-14 Robert Dewar <dewar@gnat.com>
7083
7084 * gnat_ugn.texi: Minor change to -gnatS documentation
7085
7086 * sprint.adb: Remove some instances of Assert (False) and for this
7087 purpose replace them by output of a ??? string.
7088
7089 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
7090 Assert (False).
7091
7092 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
7093 flag processing. This was suppressing required dependencies in
7094 No_Run_Time mode and is not needed since the binder does not generate
7095 references for things in libgnat anyway.
7096
7097 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
7098 warning.
7099
7100 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
7101
7102 * gnat_ugn.texi: Document AIX-specific issue with initialization of
7103 resolver library.
7104
7105 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
7106 action for the case of an actual parameter in an init proc call.
7107
7108 2004-05-14 Ed Schonberg <schonberg@gnat.com>
7109
7110 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
7111 subtype, check visible entities in base type.
7112
7113 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
7114 actions if the object is a renaming.
7115
7116 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
7117 Check_Formal_Package_Instance, to determine more precisely when the
7118 formal and the actual denote the same entity.
7119
7120 2004-05-14 Javier Miranda <miranda@gnat.com>
7121
7122 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
7123
7124 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
7125 corresponding to a private_with must be removed from visibility; it
7126 will be made visible later, just before we analyze the private part of
7127 the package.
7128 (Check_Private_Child_Unit): Allow private_with clauses in public
7129 siblings.
7130 (Install_Siblings): Make visible the private entities of private-withed
7131 siblings.
7132 (Install_Withed_Unit): Do not install the private withed unit if we
7133 are compiling a package declaration and the Private_With_OK flag was
7134 not set by the caller. These declarations will be installed later,
7135 just before we analyze the private part of the package.
7136
7137 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
7138 during the evaluation of the expression that initializes the object,
7139 decorate it with the expected type to avoid cascade errors.
7140 Code cleanup.
7141
7142 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
7143 subprogram we have to install the private_with clauses after its
7144 specification has been analyzed (as documented in AI-262.TXT).
7145
7146 * sem_ch8.adb (Has_Private_With): New function. Determines if the
7147 current compilation unit has a private with on a given entity.
7148 (Find_Direct_Name): Detect the Beaujolais problem described in
7149 AI-262.TXT
7150
7151 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
7152 provides the functionality of the function Is_Ancestor that was
7153 previously available in sem_ch10. It has been renamed to avoid
7154 overloading.
7155
7156 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
7157
7158 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7159
7160 * utils.c (build_vms_descriptor): Use SImode pointers.
7161
7162 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
7163
7164 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
7165
7166 2004-05-14 GNAT Script <nobody@gnat.com>
7167
7168 * Make-lang.in: Makefile automatically updated
7169
7170 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
7171
7172 Renaming of target specific files for clarity
7173
7174 * Makefile.in: Rename GNAT target specific files.
7175
7176 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
7177 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
7178 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
7179 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
7180 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
7181 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
7182 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
7183 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
7184 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
7185 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
7186 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
7187 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
7188 51osinte.adb, 51osinte.ads, 51system.ads,
7189 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
7190 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
7191 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
7192 56tpopsp.adb, 57system.ads, 58system.ads,
7193 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
7194 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
7195 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
7196 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
7197 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
7198 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
7199 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
7200 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
7201 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
7202 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
7203 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
7204 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
7205 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
7206 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
7207 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
7208 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
7209 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
7210 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
7211 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
7212 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
7213 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
7214 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
7215 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
7216 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
7217 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
7218 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
7219 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
7220 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
7221 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
7222 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
7223 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
7224 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
7225 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
7226 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
7227 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
7228 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
7229 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
7230 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
7231 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
7232 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
7233
7234 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
7235 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
7236 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
7237 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
7238 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
7239 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
7240 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
7241 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
7242 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
7243 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
7244 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
7245 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
7246 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
7247 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
7248 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
7249 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
7250 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
7251 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
7252 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
7253 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
7254 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
7255 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
7256 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
7257 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
7258 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
7259 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
7260 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
7261 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
7262 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
7263 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
7264 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
7265 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
7266 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
7267 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
7268 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
7269 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
7270 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
7271 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
7272 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
7273 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
7274 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
7275 s-osinte-vms.ads, s-osinte-vxworks.adb,
7276 s-osinte-vxworks.ads, s-osprim-mingw.adb,
7277 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
7278 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
7279 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
7280 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
7281 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
7282 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
7283 s-stchop-vxworks.adb, s-taprop-dummy.adb,
7284 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7285 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7286 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
7287 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7288 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
7289 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
7290 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
7291 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
7292 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
7293 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
7294 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
7295 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
7296 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
7297 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
7298 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
7299 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
7300 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
7301 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
7302 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
7303 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
7304 system-irix-o32.ads, system-linux-x86_64.ads,
7305 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
7306 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
7307 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
7308 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
7309 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
7310 system-vxworks-mips.ads, system-vxworks-ppc.ads,
7311 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
7312 above.
7313
7314 2004-05-13 Zack Weinberg <zack@codesourcery.com>
7315
7316 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
7317
7318 2004-05-13 Diego Novillo <dnovillo@redhat.com>
7319
7320 Merge from tree-ssa-20020619-branch.
7321
7322 * config-lang.in (boot_language, build_by_default): Set
7323 to no.
7324 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
7325 (max_size): Add static chain op for call_expr.
7326
7327 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
7328
7329 PR target/15331
7330 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
7331
7332 2004-05-11 Roger Sayle <roger@eyesopen.com>
7333
7334 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
7335 COND_EXPR.
7336
7337 2004-05-10 Doug Rupp <rupp@gnat.com>
7338
7339 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
7340 system.aux_dec.
7341
7342 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
7343
7344 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
7345
7346 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
7347 Fixes undefined symbols in IA64 gnatlib.
7348
7349 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
7350
7351 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
7352 Short_Address). This will be moved to system.auxdec.
7353
7354 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
7355
7356 * sem_util.adb: Replace test for presence of a node that is always
7357 present with a call to Discard_Node.
7358
7359 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
7360 Analyze on the library unit node after generation of distribution stub
7361 constructs. The call was a no-op because Unit_Node has already been
7362 Analyzed, and the tree fragments for the distribution stubs are
7363 analyzed as they are inserted in Exp_Dist.
7364 Update comment regarding to distribution stubs to reflect that we
7365 do not generate stub in separate files anymore.
7366
7367 * einfo.ads: Clarify the fact that a tagged private type has the
7368 E_Record_Type_With_Private Ekind.
7369
7370 * erroutc.adb: Minor reformatting
7371
7372 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
7373 values if line length is increased using -gnatyM (noticed during code
7374 reading).
7375
7376 * eval_fat.adb: Minor reformatting
7377 Put spaces around exponentiation operator
7378
7379 2004-05-10 Ed Schonberg <schonberg@gnat.com>
7380
7381 PR ada/15005
7382 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
7383 has been rewritten as an explicit dereference, retrieve type of
7384 original node to check for possibly unconstrained record type.
7385
7386 2004-05-10 Ed Schonberg <schonberg@gnat.com>
7387
7388 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
7389 overriding, use the operation of the parent unconditionally.
7390
7391 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
7392 operation when either operand is a literal, to avoid further
7393 ambiguities.
7394
7395 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
7396 overridden by a previous explicit declaration, mark the previous entity
7397 as overriding.
7398
7399 * sem_disp.adb (Check_Dispatching_Operation): New predicate
7400 Is_Visibly_Controlled, to determine whether a declaration of a
7401 primitive control operation for a derived type overrides an inherited
7402 one. Add warning if the explicit declaration does not override.
7403
7404 2004-05-10 Vincent Celier <celier@gnat.com>
7405
7406 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
7407 some cases when the sources are no longer present.
7408
7409 * make.adb (Collect_Arguments): Fail if an external source, not part
7410 of any project need to be compiled, when switch -x has not been
7411 specified.
7412
7413 * makeusg.adb: Document new switch -x
7414
7415 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
7416 defaulted to False.
7417
7418 * switch-m.adb (Scan_Make_Switches): New switch -x
7419
7420 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
7421 gnatmake switch -x.
7422
7423 * gnat_ugn.texi: Document new gnatmake switch -x
7424
7425 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
7426
7427 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
7428
7429 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
7430 (process_attributes): Likewise.
7431
7432 2004-05-10 Joel Brobecker <brobecker@gnat.com>
7433
7434 * s-inmaop.ads: Fix spelling mistake in one of the comments.
7435
7436 2004-05-10 Robert Dewar <dewar@gnat.com>
7437
7438 * gnat_ugn.texi: Document that for config pragma files, the maximum
7439 line length is always 32767.
7440
7441 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
7442 literals is now allowed.
7443
7444 * gnat-style.texi: Remove statement about splitting long lines before
7445 an operator rather than after, since we do not follow this rule at all.
7446 Clarify rule (really lack of rule) for spaces around exponentiation
7447
7448 * sem_elim.adb: Allow concatenation of string literals as well as a
7449 single string literal for pragma arguments.
7450
7451 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
7452
7453 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
7454 written for append case.
7455
7456 * frontend.adb: Changes to avoid checking max line length in config
7457 pragma files.
7458
7459 * g-os_lib.ads: Minor reformatting
7460
7461 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
7462 wrong in any case. Instead use standard value. Noticed during code
7463 reading.
7464
7465 * opt.ads (Max_Line_Length): New field, used to implement removal of
7466 limitation on length of lines when scanning config pragma files.
7467
7468 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
7469 makeutl.ads, makeutl.adb: Minor reformatting
7470
7471 * scn.adb: Do not check line length while scanning config pragma files
7472 Do not check line length while scanning out license information
7473
7474 * scng.adb: Changes to avoid line length checks while parsing config
7475 pragma files.
7476
7477 2004-05-10 GNAT Script <nobody@gnat.com>
7478
7479 * Make-lang.in: Makefile automatically updated
7480
7481 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
7482
7483 * osint.adb (Find_Program_Name): Fix handling of VMS version
7484 number.
7485
7486 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
7487
7488 * g-os_lib.ads (Invalid_Time): New constant
7489
7490 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
7491 return OS_Time instead of time_t to match what is imported by Ada.
7492 Now return -1 if the file doesn't exist, instead of a random value
7493
7494 2004-05-05 Robert Dewar <dewar@gnat.com>
7495
7496 * usage.adb: Add line for -gnatR?s switch
7497
7498 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
7499
7500 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
7501 and for Match (Data_First, Data_last)
7502
7503 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
7504 written when we are dealing with multi-unit files.
7505
7506 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
7507
7508 * Makefile.in: Remove unused targets and variables.
7509
7510 2004-05-05 Vincent Celier <celier@gnat.com>
7511
7512 * switch-m.adb: New gnatmake switch -eI
7513
7514 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
7515 of new gnatmake switch -eInnn.
7516
7517 * makegpr.adb: Take into account new parameters Index and Src_Index in
7518 Prj.Util.
7519
7520 * clean.adb: Implement support for multi-unit sources, including new
7521 switch -i.
7522
7523 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
7524 Src_Index.
7525
7526 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
7527 (Extract_From_Q): New out parameter Index
7528 (Mark, Is_Marked): Subprograms moved to Makeutl
7529 (Switches_Of): New parameter Source_Index
7530 (Add_Switch): New parameter Index
7531 (Check): New parameter Source_Index
7532 (Collect_Arguments): New parameter Source_Index
7533 (Collect_Arguments_And_Compile): New parameter Source_Index
7534 (Compile): New parameter Source_Index
7535 Put subprograms in alphabetical order
7536 Add support for multi-source sources, including in project files.
7537
7538 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
7539 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
7540 Make.
7541
7542 * makeusg.adb: New gnatmake switch -eInnn
7543
7544 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
7545 Prj.Util.Value_Of.
7546
7547 * opt.ads (Main_Index): New variable, defaulted to 0.
7548
7549 * osint.ads, osinte.adb (Add_File): New parameter Index
7550 (Current_Source_Index): New function
7551
7552 * prj.adb: Take into account new components Index and Src_Index
7553
7554 * prj.ads (String_Element): New component Index
7555 (Variable_Value): New component Index
7556 (Array_Element): New component Src_Index
7557
7558 * prj-attr.adb: Indicate that optional index may be specified for
7559 attributes Main, Executable, Spec, Body and some of Switches.
7560
7561 * prj-attr.ads (Attribute_Kind): New values for optional indexes
7562 (Attribute_Record): New component Optional_Index
7563
7564 * prj-com.ads (File_Name_Data): New component Index
7565
7566 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
7567
7568 * prj-env.adb (Put): Output optional index
7569
7570 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
7571 attributes Spec and Body.
7572
7573 * prj-nmsc.adb: Process optional indexes
7574
7575 * prj-pp.adb: Ouput "at" for optional indexes
7576
7577 * prj-proc.adb: Take into account optional indexes
7578
7579 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
7580 Optional_Index. For string literal,
7581 process optional index when Optional_Index is True.
7582 (Parse_Expresion): New Boolean parameter Optional_Index
7583
7584 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
7585 (Set_Source_Index_Of): New procedure
7586
7587 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
7588 index.
7589
7590 * prj-util.ads (Executable_Of): New parameter Index
7591 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
7592 New parameter Src_Index, defaulted to 0.
7593
7594 2004-05-05 Ed Schonberg <schonberg@gnat.com>
7595
7596 PR ada/15257
7597 * sem_ch3.adb (Access_Definition): If this is an access parameter
7598 whose designated type is imported through a limited_with clause, do
7599 not add the enclosing subprogram to the list of private dependents of
7600 the type.
7601
7602 2004-05-05 Ed Schonberg <schonberg@gnat.com>
7603
7604 PR ada/15258
7605 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
7606 a limited_with clause, and the other is its non-limited view.
7607
7608 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
7609
7610 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
7611
7612 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
7613 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
7614 Stand.Boolean_Literals to produce references to entities
7615 Standard_False and Standard_True from compile-time computed boolean
7616 values.
7617
7618 * stand.ads (Boolean_Literals): New variable, provides the entity
7619 values for False and True, for use by the expander.
7620
7621 2004-05-05 Doug Rupp <rupp@gnat.com>
7622
7623 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
7624 5vinmaop.adb: Unchecked convert Short_Address vice Address
7625
7626 * adaint.c, raise.c: Caste CRTL function return value
7627 to avoid gcc error on 32/64 bit IVMS.
7628
7629 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
7630 target = IA64/VMS.
7631
7632 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
7633
7634 * 5qsystem.ads (Address): Declare as Long_Integer
7635 (Short_Address): Declare as 32 bit subtype of Address
7636 Declare abstract address operations to avoid gratuitous ambiguities.
7637
7638 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
7639
7640 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
7641 instead of the old Boolean_Entry_Barriers.
7642 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
7643
7644 2004-05-05 GNAT Script <nobody@gnat.com>
7645
7646 * Make-lang.in: Makefile automatically updated
7647
7648 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
7649
7650 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
7651
7652 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
7653
7654 PR ada/15152
7655
7656 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
7657 alone. Replacing object references by literals is inappropriate in a
7658 so low level context.
7659
7660 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
7661
7662 * a-exexpr.adb: Add comments
7663
7664 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7665
7666 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
7667 declare the Ancestor_Tags array in Type_Specific_Data with a small size
7668 without risking a bounds check error when accessing one of its
7669 components.
7670 (Type_Specific_Data): Define Ancestor_Tags as a small array.
7671 This prevents us from hitting a limitation during the debug info
7672 generation when using stabs.
7673
7674 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
7675 small array.
7676 This prevents us from hitting a limitation during the debug info
7677 generation when using stabs.
7678
7679 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
7680
7681 lang-specs.h: Remove -gnatz* from specs.
7682
7683 2004-05-03 Vincent Celier <celier@gnat.com>
7684
7685 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
7686
7687 * Make-lang.in, Makefile.in: Add gprmake
7688
7689 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
7690
7691 * sem_aggr.adb: Fix typo in comment.
7692
7693 2004-05-03 Robert Dewar <dewar@gnat.com>
7694
7695 * make.adb: Minor reformatting
7696
7697 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
7698
7699 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
7700 so that it works when address is not a private type.
7701
7702 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
7703 properly with rewritten unchecked conversions. This prevents
7704 order-of-elaboration issues that can otherwise arise.
7705 (Minimum_Size): Don't check size of access types under VMS
7706
7707 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
7708 interpretations of integer literals as type System.Address.
7709
7710 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
7711 (Is_Descendent_Of): New function
7712
7713 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
7714
7715 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
7716 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
7717 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
7718
7719 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
7720 of the old Max_Entry_Queue_Depth.
7721
7722 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
7723 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
7724 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
7725
7726 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
7727 New entry for proper handling of Max_Entry_Queue_Depth.
7728 New entry for proper handling of No_Dynamic_Interrupts.
7729
7730 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
7731 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
7732 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
7733 the GNAT specific restriction Max_Entry_Queue_Depth.
7734 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
7735 the GNAT specific restriction No_Dynamic_Interrupts.
7736
7737 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
7738 instead of the old Boolean_Entry_Barriers.
7739 Use the new restriction No_Dynamic_Attachment instead of the old
7740 No_Dynamic_Interrupts.
7741
7742 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
7743 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
7744
7745 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
7746 of the old Max_Entry_Queue_Depth.
7747
7748 2004-05-03 GNAT Script <nobody@gnat.com>
7749
7750 * Make-lang.in: Makefile automatically updated
7751
7752 2004-04-29 Ed Schonberg <schonberg@gnat.com>
7753
7754 * checks.adb (Enable_Range_Check): If the prefix of an index component
7755 is an access to an unconstrained array, perform check unconditionally.
7756
7757 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7758
7759 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
7760 Component_Clause.
7761
7762 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
7763
7764 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
7765 alternate stack setting. There was no support for the tasking cases
7766 and the changes eventually caused a number of side-effect failures in
7767 the non-tasking case too.
7768
7769 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
7770
7771 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
7772 -gnats is passed.
7773
7774 2004-04-29 Vincent Celier <celier@gnat.com>
7775
7776 * make.adb (Gnatmake): Increase max size of argument array for
7777 gnatbind for the potential addition of -F.
7778 If there are Stand-Alone Library projects, invoke gnatbind with -F to
7779 be sure that elaboration flags will be checked.
7780
7781 * switch-c.adb: Correct call to Scan_Pos for -gnateI
7782
7783 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
7784
7785 * sem_warn.adb (Check_References): Move '<access-variable> may be
7786 null' warning out of under Warn_On_No_Value_Assigned.
7787
7788 2004-04-29 Ed Falis <falis@gnat.com>
7789
7790 * gnat_ugn.texi: Fixed texi error
7791
7792 2004-04-29 Robert Dewar <dewar@gnat.com>
7793
7794 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
7795 abstract operations if they come from predefined files.
7796
7797 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
7798 Dynamic, not RM).
7799
7800 * s-addope.adb: Correct obvious error in mod function
7801
7802 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
7803
7804 * Makefile.in: Add target pairs for powerpc darwin*
7805 tasking support.
7806
7807 * a-intnam-darwin.ads, s-osinte-darwin.adb,
7808 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
7809
7810 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7811
7812 * Makefile.in: Add target macro definitions for s390*-linux*.
7813 * system-linux-s390.ads: New file.
7814 * system-linux-s390x.ads: New file.
7815
7816 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
7817
7818 * gnat_ugn.texi: Correct argument to @setfilename.
7819
7820 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7821
7822 * a-exexpr.adb (Unwind_Word): New data type.
7823 (Unwind_Exception): Use it as type of Private1 and Private2.
7824
7825 * raise.c (db_action_for): Fix debug printf.
7826
7827 2004-04-27 Ed Schonberg <schonberg@gnat.com>
7828
7829 * a-wtmoio.ads: Formal type must be a modular type, not a signed
7830 integer type.
7831
7832 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7833
7834 * decl.c (gnat_to_gnu_entity, case object): Call
7835 __builtin_update_setjmp_buf.
7836
7837 * gigi.h (update_setjmp_buf): Deleted.
7838 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
7839
7840 * misc.c: (update_setjmp_buf): Deleted.
7841
7842 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
7843 around block of RTL.
7844
7845 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
7846
7847 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
7848
7849 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
7850 subprogram for which no pragma All_Calls_Remote applies, store the
7851 address of the real subprogram in the underlying record type, so local
7852 dereferences do not go through the PCS.
7853
7854 2004-04-26 Robert Dewar <dewar@gnat.com>
7855
7856 * i-c.ads: Add some type qualifications to avoid ambiguities when
7857 compiling with s-auxdec.ads and a non-private address type.
7858
7859 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
7860
7861 * Makefile.rtl: Fix error in previous check-in:
7862 Add s-addope.o to non tasking object list (rather than tasking object
7863 list).
7864
7865 2004-04-26 Javier Miranda <miranda@gnat.com>
7866
7867 * sem_aggr.adb: Fix typo in comments
7868 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
7869 Required to check the null-exclusion attribute.
7870
7871 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
7872 case of anonymous access types in record and array components. For a
7873 component definition the level is the same of the enclosing composite
7874 type.
7875
7876 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
7877 that are anonymous access types the level of accessibility depends on
7878 the enclosing type declaration. In order to have this information, set
7879 the scope of the anonymous access type to the enclosing record type
7880 declaration.
7881 (Array_Type_Declaration): In case of components that are anonymous
7882 access types the level of accessibility depends on the enclosing type
7883 declaration. In order to have this information, set the scope of the
7884 anonymous access type to the enclosing array type declaration.
7885
7886 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
7887 access type.
7888
7889 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
7890 renaming of anonymous access-to-constant types allowed if and only if
7891 the renamed object is access-to-constant.
7892
7893 * sem_util.adb (Type_Access_Level): In case of anonymous access types
7894 that are component_definition or discriminants of a nonlimited type,
7895 the level is the same as that of the enclosing component type.
7896
7897 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
7898
7899 * sem_elim.adb: Some minor code reorganization from code reading. Fix
7900 misprint in the function name (File_Name_Match).
7901
7902 2004-04-23 Laurent GUERBY <laurent@guerby.net>
7903
7904 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
7905 install.
7906
7907 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7908
7909 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
7910
7911 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
7912
7913 * adaint.c (__gnat_try_lock): No longer requires that the parent
7914 directory be writable, the directory itself is enough.
7915 (gnat_is_absolute_path): Change profile, so that the call from
7916 GNAT.OS_Lib can be made more efficient.
7917
7918 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
7919 from GNAT.OS_Lib can be made more efficient.
7920
7921 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
7922 one copy of the file name. Found by code reading.
7923
7924 2004-04-23 Vincent Celier <celier@gnat.com>
7925
7926 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
7927 Correct documentation on gnatmake switches transmitted to the compiler
7928
7929 * ali.ads: Minor comment fix
7930
7931 2004-04-23 Javier Miranda <miranda@gnat.com>
7932
7933 * sem_ch6.adb: (Confirming Types): Code cleanup
7934
7935 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
7936 subprogram types: E_Anonymous_Access_Subprogram_Type and
7937 E_Anonymous_Access_Protected_Subprogram_Type.
7938
7939 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
7940
7941 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
7942 whether a pragma All_Calls_Remote applies to the subprogram on which
7943 'Access is taken.
7944 No functional change is introduced by this revision; the new parameter
7945 will be used to allow calls to local RCI subprograms to be optimized
7946 to not use the PCS in the case where no pragma All_Calls_Remote applies,
7947 as is already done in the PolyORB implementation of the DSA.
7948
7949 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
7950 whether a pragma All_Calls_Remote applies to the subprogram on which
7951 'Access is taken.
7952 No functional change is introduced by this revision; the new parameter
7953 will be used to allow calls to local RCI subprograms to be optimized
7954 to not use the PCS in the case where no pragma All_Calls_Remote applies,
7955 as is already done in the PolyORB implementation of the DSA.
7956
7957 2004-04-23 Robert Dewar <dewar@gnat.com>
7958
7959 * Makefile.rtl: Add entry for s-addope.o in run time library list
7960 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
7961 * s-addope.ads, s-addope.adb: New files.
7962
7963 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
7964 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7965 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
7966 System.Address to be non-private and signed.
7967
7968 * sem_elim.adb: Minor reformatting (fairly extensive)
7969 Some minor code reorganization from code reading
7970 Add a couple of ??? comments
7971
7972 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7973
7974 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
7975 (tree_transform, case N_If_Statement): Remove non-determinism.
7976
7977 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
7978
7979 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
7980
7981 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
7982 Eliminate' section.
7983
7984 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
7985 no longer used as a parameter name for Eliminate pragma).
7986
7987 2004-04-22 Laurent GUERBY <laurent@guerby.net>
7988
7989 PR optimization/14984
7990 PR optimization/14985
7991 * trans.c (gigi): Fix non determinism leading to bootstrap
7992 comparison failures.
7993
7994 2004-04-21 Pascal Obry <obry@gnat.com>
7995
7996 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
7997 passed to spawnvp() to properly handle program pathname with spaces on
7998 Win32.
7999
8000 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
8001
8002 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
8003 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
8004 unlocked in case of exceptions.
8005
8006 2004-04-21 Joel Brobecker <brobecker@gnat.com>
8007
8008 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
8009 This function does not exist anymore.
8010
8011 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
8012
8013 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
8014
8015 * link.c: Move variables to the __gnat name space.
8016
8017 * Makefile.in: list link.o explicitly when needed.
8018
8019 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
8020
8021 2004-04-21 Javier Miranda <miranda@gnat.com>
8022
8023 * einfo.adb (Original_Access_Type): New subprogram
8024 (Set_Original_Access_Type): New subprogram
8025 (Write_Field21_Name): Write the name of the new field
8026
8027 * einfo.ads (Original_Access_Type): New field present in access to
8028 subprogram types.
8029 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
8030 E_Anonymous_Access_Protected_Subprogram_Type.
8031
8032 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
8033 subprogram types.
8034
8035 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
8036 to anonymous access to subprogram types.
8037
8038 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
8039 to subprogram types.
8040
8041 * sem_ch3.adb (Access_Definition): Complete decoration of entities
8042 corresponding to anonymous access to subprogram types.
8043 (Analyze_Component_Declaration): Add new actual to the call to
8044 subprogram replace_anonymous_access_to_protected_subprogram.
8045 (Array_Type_Declaration): Add new actual to the call to subprogram
8046 replace_anonymous_access_to_protected_subprogram.
8047 (Process_Discriminants): Add new actual to the call to subprogram
8048 replace_anonymous_access_to_protected_subprogram.
8049 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
8050
8051 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
8052 formal.
8053
8054 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
8055 access to subprogram types.
8056
8057 * sem_util.adb (Has_Declarations): Addition of package_specification
8058 nodes.
8059
8060 2004-04-21 Ed Schonberg <schonberg@gnat.com>
8061
8062 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
8063 inlined flags to renamed entity only if in current unit.
8064
8065 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
8066
8067 * s-parint.ads: Add DSA implementation marker.
8068
8069 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
8070 value of System.Partition_Interface.DSA_Implementation to determine
8071 what version of the distributed systems annex is available (no
8072 implementation, GLADE, or PolyORB).
8073
8074 2004-04-21 Joel Brobecker <brobecker@gnat.com>
8075
8076 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
8077
8078 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8079
8080 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
8081 with new type if alias sets differ.
8082 Fixes ACATS c41103b.
8083
8084 2004-04-21 Vincent Celier <celier@gnat.com>
8085
8086 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
8087 Add array Lang_Args for the language specific compiling argument
8088 switches.
8089
8090 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
8091
8092 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
8093
8094 * gnat_rm.texi: Update the descripton of the Eliminate pragma
8095 according to the recent changes in the format of the parameters of the
8096 pragma (replacing Homonym_Number with Source_Location).
8097
8098 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
8099
8100 * 5isystem.ads: Removed, unused.
8101
8102 * gnat_rm.texi: Redo 1.13 change.
8103
8104 2004-04-19 Robert Dewar <dewar@gnat.com>
8105
8106 * s-stoele.ads: Clean up definition of Storage_Offset (the new
8107 definition is cleaner, avoids the kludge of explicit Standard operator
8108 references, and also is consistent with a visible System.Address with
8109 no visible operations.
8110
8111 * s-geveop.adb: Add declarations to avoid assumption of visible
8112 operations on type System.Address (since these might not be available
8113 if Address is a non-private type for which the operations
8114 are made abstract).
8115
8116 * sem_eval.adb: Minor reformatting
8117
8118 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
8119 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
8120 reformatting (new function spec format).
8121
8122 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
8123 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
8124 s-caun64.adb: Add declarations to avoid assumption of visible
8125 operations on type System.Address (since these might not be available
8126 if Address is a non-private type for which the operations are made
8127 abstract).
8128
8129 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
8130
8131 * exp_intr.adb: Minor comment update
8132
8133 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
8134
8135 * 5omastop.adb: Add declarations to avoid assumption of visible
8136 operations on type System.Address (since these might not be available
8137 if Address is a non-private type for which the operations
8138 are made abstract).
8139
8140 2004-04-19 Vincent Celier <celier@gnat.com>
8141
8142 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
8143
8144 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
8145 defaulted to Ada.
8146
8147 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
8148 defaulted to Ada.
8149 Call Check with Process_Languages.
8150 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
8151 with Process_Languages.
8152 (Recursive_Check): New Boolean parameter Process_Languages. Call
8153 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
8154 Process_Languages.
8155
8156 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
8157
8158 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
8159 parameter Ada_Main, defaulted to True.
8160 Check for Ada specific characteristics only when Ada_Main is True.
8161
8162 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
8163
8164 * prj.adb: (Project_Empty): Add new Project_Data components.
8165
8166 * prj.ads: New types and tables for non Ada languages.
8167 (Project_Data): New components Languages, Impl_Suffixes,
8168 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
8169 Include_Path, Include_Data_Set.
8170
8171 * prj-env.ads, prj-env.adb: Minor reformatting
8172
8173 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
8174 Put subprograms in alphabetical order
8175
8176 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
8177 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
8178 Opt.Follow_Links.
8179
8180 * mlib-prj.adb: Back out modification in last version, as they are
8181 incorrect.
8182 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
8183
8184 * make.adb: (Mains): Moved to package Makeutl
8185 (Linker_Opts): Moved to package Makeutl
8186 (Is_External_Assignment): Moved to package Makeutl
8187 (Test_If_Relative_Path): Moved to package Makeutl
8188 (Gnatmake): Move sorting of linker options to function
8189 Makeutl.Linker_Options_Switches.
8190
8191 * makeutl.ads, makeutl.adb: New files.
8192
8193 * Makefile.in: Add makeutl.o to the object files for gnatmake
8194
8195 * makeusg.adb: Add line for new switch -eL.
8196
8197 * gnatls.adb (Image): New function.
8198 (Output_Unit): If in verbose mode, output the list of restrictions
8199 specified by pragmas Restrictions.
8200
8201 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
8202 Text_IO.
8203
8204 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
8205 needed, to put it in the range 1970 (included) - 2026 (excluded).
8206 (Time_Of): Do not shift Unix_Min_Year (1970).
8207 Shift the date by multiple of 56 years, if needed, to put it in the
8208 range 1970 (included) - 2026 (excluded).
8209
8210 * adaint.h, adaint.c (__gnat_set_executable): New function.
8211
8212 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8213
8214 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
8215 and pop GC context.
8216 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
8217 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
8218 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
8219 (tree_transform, case N_Code_Statement): Likewise.
8220 (gnat_expand_stmt, case LABEL_STMT): Don't look at
8221 LABEL_STMT_FIRST_IN_EH.
8222 (gnat_expand_stmt, case ASM_STMT): New case.
8223
8224 * utils2.c (build_unary_op): Properly set TREE_READONLY of
8225 UNCONSTRAINED_ARRAY_REF.
8226
8227 * utils.c (poplevel): Temporarily push/pop GC context around inline
8228 function expansion.
8229
8230 * decl.c (maybe_variable): Properly set TREE_READONLY of
8231 UNCONSTRAINED_ARRAY_REF.
8232 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
8233
8234 * ada-tree.def: (ASM_STMT): New.
8235
8236 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
8237 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
8238 ASM_STMT_INPUT): New.
8239 (ASM_STMT_CLOBBER): Likewise.
8240
8241 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
8242
8243 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
8244 general rcheck mechanism to raise Program_Error for E.4(18), instead
8245 of a custom raiser in System.Partition_Interface.
8246 Part of general cleanup work before PolyORB integration.
8247
8248 * snames.ads, snames.adb: Add new runtime library entities and names
8249 for PolyORB DSA.
8250
8251 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
8252 exp_dist.
8253 (Build_Subprogram_Id): New subprogram provided by exp_dist
8254 Code reorganisation in preparation for PolyORB integration.
8255
8256 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
8257 exp_dist.
8258 (Build_Subprogram_Id): New subprogram provided by exp_dist
8259
8260 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
8261 actual parameter types for call to dereference of an
8262 access-to-subprogram type.
8263
8264 * rtsfind.ads: Add new runtime library entities and names for PolyORB
8265 DSA.
8266
8267 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
8268 instead, which has the same behaviour here since we never pass it a
8269 NULL pointer.
8270
8271 * link.c (run_path_option, Solaris case): Use -Wl, as for other
8272 platforms.
8273
8274 * Makefile.in: adjust object file lists for gnatlink and gnatmake
8275 to account for new dependency upon Interfaces.C.Strings + link.o
8276 For x86 FreeBSD, use 86numaux.
8277
8278 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
8279 from Mlib.Tgt to Mlib.
8280
8281 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
8282 target-independent.
8283
8284 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
8285 target-specific versions of this subprogram, now implemented as a
8286 target-independent function in Mlib.
8287
8288 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
8289 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
8290 (Linker_Library_Path_Option): Remove target-specific versions of this
8291 subprogram, now implemented as a target-independent function in Mlib.
8292
8293 * atree.adb: (Allocate_Initialize_Node): New subprogram.
8294 Factors out node table slots allocation.
8295 (Fix_Parents): New subprogram.
8296 Encapsulate the pattern of fixing up parent pointers for syntactic
8297 children of a rewritten node.
8298 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
8299 (Rewrite): Use New_Copy when creating saved copy of original node.
8300 (Replace): Use Copy_Node to copy nodes.
8301
8302 2004-04-19 Javier Miranda <miranda@gnat.com>
8303
8304 * sprint.adb (Sprint_Node_Actual): Give support to the new
8305 Access_To_Subprogram node available in Access_Definition nodes. In
8306 addition, give support to the AI-231 node fields: null-exclusion,
8307 all-present, constant-present.
8308
8309 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
8310
8311 * sinfo.ads, sinfo.adb:
8312 New field Access_To_Subprogram_Definition in Access_Definition nodes
8313
8314 * sem_ch6.adb (Process_Formals): Move here the code that creates and
8315 decorates internal subtype declaration corresponding to the
8316 null-excluding formal. This code was previously in Set_Actual_Subtypes.
8317 In addition, carry out some code cleanup on this code. In case of
8318 access to protected subprogram call
8319 Replace_Anonymous_Access_To_Protected_Subprogram.
8320 (Set_Actual_Subtypes): Code cleanup.
8321
8322 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
8323 Find_Type in case of anonymous access renamings. Add warning in case of
8324 null-excluding attribute used in anonymous access renaming.
8325
8326 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
8327 subprogram
8328
8329 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
8330 subprogram.
8331 (Access_Definition): In case of anonymous access to subprograms call
8332 the corresponding semantic routine to decorate the node.
8333 (Access_Subprogram_Declaration): Addition of some comments indicating
8334 some code that probably should be added here. Detected by comparison
8335 with the access_definition subprogram.
8336 (Analyze_Component_Declaration): In case of access to protected
8337 subprogram call Replace_Anonymous_Access_To_Protected.
8338 (Array_Type_Declaration): In case of access to protected subprogram call
8339 Replace_Anonymous_Access_To_Protected_Subprogram.
8340 (Process_Discriminants): In case of access to protected subprogram call
8341 Replace_Anonymous_Access_To_Protected_Subprogram.
8342
8343 * par.adb (P_Access_Definition): New formal that indicates if the
8344 null-exclusion part was present.
8345 (P_Access_Type_Definition): New formal that indicates if the caller has
8346 already parsed the null-excluding part.
8347
8348 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
8349 (P_Identifier_Declarations): Code cleanup and give support to renamings
8350 of anonymous access to subprogram types.
8351 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
8352 (P_Array_Type_Definition): Give support to AI-254.
8353 (P_Component_Items): Give support to AI-254.
8354 (P_Access_Definition): New formal that indicates if the header was
8355 already parsed by the caller.
8356 (P_Access_Type_Definition): New formal that indicates if the caller has
8357 already parsed the null-excluding part.
8358
8359 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
8360 call to P_Access_Definition.
8361
8362 2004-04-19 Geert Bosch <bosch@gnat.com>
8363
8364 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
8365 the delicate semantics of floating-point to integer conversion.
8366 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
8367
8368 * eval_fat.adb (Machine_Mantissa): Moved to spec.
8369 (Machine_Radix): New function.
8370
8371 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
8372 conversion checks.
8373 (Machine_Radix): New function also for use in conversion checks.
8374
8375 2004-04-19 Ed Schonberg <schonberg@gnat.com>
8376
8377 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
8378
8379 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
8380 to decorate the access-to-protected subprogram and the equivalent type.
8381
8382 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
8383 to anonymous access to subprogram types.
8384
8385 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
8386 constant-folding, for legality checks in contexts that require an RM
8387 static expression.
8388
8389 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
8390 temporary but stack checking is not enabled, increment serial number
8391 to so that symbol generation is consistent with and without stack
8392 checking.
8393
8394 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
8395 independent on whether stack checking is enabled, caller must check
8396 the corresponding flag.
8397
8398 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
8399 range checks.
8400 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
8401 parent if it has discriminants.
8402 (Build_Derived_Private_Type): Constructed full view does
8403 not come from source.
8404 (Process_Discriminants): Default discriminants on a tagged type are
8405 legal if this is the internal completion of a private untagged
8406 derivation.
8407
8408 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
8409 no constraint checks, because it corresponds to an existing object.
8410
8411 * sem_prag.adb (Process_Convention): Pragma applies
8412 only to subprograms in the same declarative part, i.e. the same unit,
8413 not the same scope.
8414
8415 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
8416 ignore type mismatch on a numeric conversion if expression comes from
8417 expansion.
8418
8419 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
8420
8421 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
8422 Homonym_Number parameter, add processing for Source_Location parameter
8423 corresponding.
8424 (Check_Eliminated): Remove the check for homonym numbers, add the check
8425 for source location traces.
8426
8427 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
8428 with Arg_Source_Location corresponding to the changes in the format of
8429 the pragma.
8430
8431 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
8432 Eliminate pragma corresponding to the changes in the format of the
8433 pragma: Homonym_Number is replaced with Source_Location, two ways of
8434 distinguishing homonyms are mutially-exclusive.
8435
8436 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8437
8438 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
8439
8440 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
8441 No_Dollar_In_Label, no longer necessary, as it is always True.
8442 (Strip_Suffixes): Likewise.
8443
8444 2004-04-19 Gary Dismukes <dismukes@gnat.com>
8445
8446 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
8447 modulus for compatibility with size clause on targets with 16-bit
8448 Integer.
8449
8450 * layout.adb (Discrimify): In the case of private types, set Vtyp to
8451 full type to fix type mismatches on calls to size functions for
8452 discriminant-dependent array components.
8453
8454 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
8455
8456 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
8457 lib.
8458
8459 2004-04-19 Pascal Obry <obry@gnat.com>
8460
8461 * mdll-utl.adb (Locate): New version is idempotent.
8462
8463 2004-04-17 Laurent Guerby <laurent@guerby.net>
8464
8465 PR ada/14988 (partial)
8466 * impunit.adb: Fix typo.
8467
8468 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
8469
8470 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
8471 and install-rts-cert targets. Remove all gnatlib and gnattools
8472 targets and all other rts-* targets (moved to libada). Remove (now)
8473 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
8474 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
8475
8476 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8477
8478 * trans.c (tree_transform): Shortcut returning error_mark_node for
8479 statements in annotate_only_mode.
8480 (tree_transform, case N_Label, case N_Return_Statement,
8481 N_Goto_Statement): Make statement tree instead of generating code.
8482 (tree_transform, case N_Assignment_Statement): No longer check
8483 type_annotate_only.
8484 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
8485 RETURN_STMT): New.
8486 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
8487 New fcns.
8488 (gnat_to_gnu): Collect any RTL generated and deal with it.
8489 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
8490 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
8491 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
8492
8493 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
8494
8495 * ada-tree.def (EXPR_STMT): Fix typo in name.
8496 (BLOCK_STMT, IF_STMT): New nodes.
8497
8498 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
8499 LABEL_STMT_FIRST_IN_EH): New macros.
8500 (RETURN_STMT_EXPR): Likewise.
8501
8502 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
8503 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
8504
8505 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
8506
8507 * atree.ads: Correct documentation on extended nodes.
8508
8509 * link.c: Set run_path_option for FreeBSD.
8510
8511 2004-04-08 Vincent Celier <celier@gnat.com>
8512
8513 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
8514 one of the ALI file, do not link with DEC lib.
8515
8516 * par.adb Remove the last two characters ("%s" or "%b") when checking
8517 if a language defined unit may be recompiled.
8518
8519 2004-04-08 Ed Schonberg <schonberg@gnat.com>
8520
8521 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
8522 removal of abstract operation leaves no possible interpretation for
8523 expression.
8524
8525 * sem_eval.adb (Eval_Qualified_Expression): Use
8526 Set_Raises_Constraint_Error on node when needed, so that it does not
8527 get optimized away by subsequent optimizations.
8528
8529 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
8530 operands even when they are not wrapped in a type conversion.
8531
8532 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
8533
8534 * sem_prag.adb (Set_Exported): Warn about making static as result of
8535 export only when the export is coming from source. This may be not
8536 be true e.g. on VMS where we expand export pragmas for exception codes
8537 together with imported or exported exceptions, and we don't want the
8538 user to be warned about something he didn't write.
8539
8540 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
8541
8542 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
8543 duplication between normal entities and those declared as renamings.
8544 No functional change.
8545
8546 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
8547 inline functions returning an unconstrained result.
8548
8549 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
8550
8551 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
8552 conform to what other front-ends do.
8553
8554 2004-04-08 Doug Rupp <rupp@gnat.com>
8555
8556 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
8557 libraries.
8558
8559 2004-04-06 Pascal Obry <obry@gnat.com>
8560
8561 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
8562
8563 * osint.adb (Program_Name): Do not look past a directory separator.
8564
8565 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
8566
8567 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
8568
8569 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
8570 requirement for preserving a copy of the original assignment node.
8571
8572 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
8573
8574 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
8575
8576 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
8577 when supported.
8578
8579 2004-04-06 Ed Schonberg <schonberg@gnat.com>
8580
8581 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
8582 operator calls in functional notation, and apply
8583 Universal_Interpretation to operands, not to their type.
8584
8585 2004-04-06 Robert Dewar <dewar@gnat.com>
8586
8587 * 5wdirval.adb: Minor reformatting
8588
8589 2004-04-06 Ed Falis <falis@gnat.com>
8590
8591 * gnat_rm.texi: Improve a reference to the GCC manual
8592
8593 2004-04-05 Vincent Celier <celier@gnat.com>
8594
8595 * adaint.h, adaint.c: Add function __gnat_named_file_length
8596
8597 * impunit.adb: Add Ada.Directories to the list
8598
8599 * Makefile.in: Add VMS and Windows versions of
8600 Ada.Directories.Validity package body.
8601
8602 * Makefile.rtl: Add a-direct and a-dirval
8603
8604 * mlib-tgt.ads: Minor comment update.
8605
8606 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
8607 a-direct.ads, a-direct.adb: New files.
8608
8609 2004-04-05 Vincent Celier <celier@gnat.com>
8610
8611 PR ada/13620
8612 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
8613 just to the compiler.
8614
8615 2004-04-05 Robert Dewar <dewar@gnat.com>
8616
8617 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
8618 returned string is 1.
8619
8620 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
8621
8622 * eval_fat.ads: Minor reformatting
8623
8624 * g-curexc.ads: Document that lower bound of returned string values
8625 is always one.
8626
8627 * gnatlink.adb: Add ??? comment for previous change
8628 (need to document why this is VMS specific)
8629
8630 * s-stoele.ads: Minor reformatting
8631
8632 * tbuild.ads: Minor reformatting throughout (new function specs)
8633
8634 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
8635 after WITH.
8636
8637 * scng.adb: Minor reformatting
8638
8639 2004-04-05 Geert Bosch <bosch@gnat.com>
8640
8641 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
8642 (Leading_Part): Still perform truncation to machine number if the
8643 specified radix_digits is greater or equal to machine_mantissa.
8644
8645 2004-04-05 Javier Miranda <miranda@gnat.com>
8646
8647 * par-ch3.adb: Complete documentation of previous change
8648 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
8649 (aliased must appear before constant).
8650
8651 * par-ch4.adb: Complete documentation of previous change.
8652
8653 * par-ch6.adb: Complete documentation of previous change.
8654
8655 * sinfo.ads: Fix typo in commment.
8656
8657 2004-04-05 Ed Schonberg <schonberg@gnat.com>
8658
8659 * sem_ch3.adb (Inherit_Components): If derived type is private and has
8660 stored discriminants, use its discriminants to constrain parent type,
8661 as is done for non-private derived record types.
8662
8663 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
8664 Ada 2005 AI-310: an abstract non-dispatching operation is not a
8665 candidate interpretation in an overloaded call.
8666
8667 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
8668 expression is Null and target type is not an access type (e.g. a
8669 non-private address type).
8670
8671 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
8672
8673 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
8674 statement whose right-hand side is an inlined call, save a copy of the
8675 original assignment subtree to preserve enough consistency for
8676 Analyze_Assignment to proceed.
8677
8678 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
8679 complete assignment subtree which is now unnecessary, as the expansion
8680 of inlined call has been improved to preserve a consistent assignment
8681 tree. Note_Possible_Modification must be called only
8682 after checks have been applied, or else unnecessary checks will
8683 be generated.
8684
8685 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
8686 of explicit dereferences that do not Come_From_Source:
8687 - be selective on cases where we must go back to the dereferenced
8688 pointer (an assignment to an implicit dereference must not be
8689 recorded as modifying the pointer);
8690 - do not rely on Original_Node being present (Analyze_Assignment
8691 calls Note_Possible_Modification on a copied tree).
8692
8693 * sem_warn.adb (Check_References): When an unset reference to a pointer
8694 that is never assigned is encountered, prefer '<pointer> may be null'
8695 warning over '<pointer> is never assigned a value'.
8696
8697 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
8698
8699 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
8700 the ABI.
8701
8702 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
8703
8704 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
8705 libexc. We currently don't reference anything in this library and
8706 linking it in triggers linker warnings we don't want to see.
8707
8708 * init.c: Update comments.
8709
8710 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8711
8712 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
8713 * utils.c (create_field_decl): Likewise.
8714 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
8715
8716 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
8717
8718 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
8719 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
8720 Add info directory entry and category.
8721
8722 2004-04-02 Jan Hubicka <jh@suse.cz>
8723
8724 * utils.c: Include function.h
8725 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
8726
8727 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
8728
8729 PR ada/14150
8730 * Make-lang.in: Clean up generation of documentation
8731
8732 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
8733
8734 * xgnatug.adb: Removed, replaced by xgnatugn.adb
8735
8736 * xgnatugn.adb: Replaces xgnatug.adb
8737
8738 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
8739
8740 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
8741
8742 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8743 gnat_ug_wnt.texi: Removed.
8744
8745 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
8746
8747 * utils2.c: Update copyright notice.
8748
8749 2004-04-01 Robert Dewar <dewar@gnat.com>
8750
8751 * checks.adb: Minor reformatting throughout
8752 Note that prev checkin added RM reference to alignment warning
8753
8754 2004-04-01 Ed Schonberg <schonberg@gnat.com>
8755
8756 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
8757 non-static when building aggregate for bit-packed array.
8758
8759 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
8760 function call that is itself the actual in a procedure call, build
8761 temporary for it.
8762
8763 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
8764 a string literal, create a temporary for it, constant folding only
8765 handles scalars here.
8766
8767 2004-04-01 Vincent Celier <celier@gnat.com>
8768
8769 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
8770 Error_Msg_SP): New empty procedures to instantiate the Scanner.
8771 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
8772 tokens.
8773 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
8774 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
8775 and get the checksum.
8776
8777 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
8778 already in the Q.
8779 Increase the Marking_Label at the end of the Multiple_Main_Loop,
8780 instead of at the beginning.
8781
8782 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
8783 directly.
8784 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
8785 on VMS.
8786
8787 * osint.ads (Multi_Unit_Index_Character): New Character global variable
8788
8789 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
8790 not '~' directly.
8791
8792 * par.adb: Remove test on file name to detect language defined units.
8793 Add test on unit name, after parsing, to detect language defined units
8794 that are not compiled with -gnatg (except System.RPC and its children)
8795
8796 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
8797 following units without style checking.
8798
8799 * switch-c.adb: Change -gnatC to -gnateI
8800
8801 * usage.adb: Document new switch -gnateInnn
8802
8803 * scng.adb (Accumulate_Token_Checksum): New procedure
8804 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
8805 word or literal number.
8806 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
8807 numbers.
8808
8809 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
8810
8811 * a-tasatt.adb,
8812 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
8813 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
8814 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
8815 5vtpopde.adb: Add missing 'constant' keywords.
8816
8817 2004-04-01 Javier Miranda <miranda@gnat.com>
8818
8819 * par-ch4.adb: (P_Allocator): Code cleanup
8820
8821 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
8822 attribute.
8823
8824 * sinfo.ads: Complete documentation of previous change
8825
8826 2004-04-01 Pascal Obry <obry@gnat.com>
8827
8828 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
8829 only on VMS. This special handling was done because an old GNU/ld bug
8830 on Windows which has been fixed.
8831
8832 2004-04-01 GNAT Script <nobody@gnat.com>
8833
8834 * Make-lang.in: Makefile automatically updated
8835
8836 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8837
8838 * decl.c (gnat_to_gnu_entity, make_type_from_size):
8839 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
8840 * trans.c (tree_transform, convert_with_check): Likewise.
8841 * utils.c (gnat_signed_or_unsigned_type): Likewise.
8842 (build_vms_descriptor, unchecked_convert): Likewise.
8843 * utils2.c (nonbinary_modular_operation): Likewise.
8844
8845 2004-03-29 Javier Miranda <miranda@gnat.com>
8846
8847 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
8848 (Install_Null_Excluding_Check): Local subprogram that determines whether
8849 an access node requires a runtime access check and if so inserts the
8850 appropriate run-time check.
8851 (Apply_Access_Check): Call Install_Null_Excluding check if required
8852 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
8853
8854 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
8855
8856 * einfo.ads: Fix typo in comment
8857
8858 * exp_ch3.adb (Build_Assignment): Generate conversion to the
8859 null-excluding type to force the corresponding run-time check.
8860 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
8861 type to force the corresponding run-time check.
8862
8863 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
8864 the null-excluding type to force the corresponding run-time check.
8865
8866 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
8867 case of access types unless they have the null-excluding attribute.
8868
8869 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
8870 part.
8871
8872 * exp_util.ads: Fix typo in comment
8873
8874 * par.adb (P_Null_Exclusion): New subprogram
8875 (P_Subtype_Indication): New formal that indicates if the null-excluding
8876 part has been scanned-out and it was present
8877
8878 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
8879
8880 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
8881 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
8882 type to force the corresponding run-time check
8883 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
8884 components
8885 (Resolve_Array_Aggregate): Carry out some static checks
8886 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
8887
8888 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
8889 attribute must be set only if specified by means of the null-excluding
8890 part. In addition, we must also propagate the access-constant attribute
8891 if present.
8892 (Access_Subprogram_Declaration, Access_Type_Declaration,
8893 Analyze_Component_Declaration, Analyze_Object_Declaration,
8894 Array_Type_Declaration, Process_Discriminants,
8895 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
8896 and carry out some static checks.
8897 (Build_Derived_Access_Type): Set the null-excluding attribute
8898 (Derived_Type_Declaration, Process_Subtype): Carry out some static
8899 checks.
8900
8901 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
8902
8903 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
8904
8905 * sem_ch6.adb (Process_Formals): Carry out some static checks.
8906 (Set_Actual_Subtypes): Generate null-excluding subtype if the
8907 null-excluding part was present; it is not required to be done here in
8908 case of anonymous access types.
8909 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
8910 value.
8911
8912 * sem_res.adb (Resolve_Actuals): Carry out some static check
8913 (Resolve_Null): Allow null in anonymous access
8914
8915 * sinfo.adb: New subprogram Null_Exclusion_Present
8916 All_Present and Constant_Present available on access_definition nodes
8917
8918 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
8919 object_declaration, derived_type_definition, component_definition,
8920 discriminant_specification, access_to_object_definition,
8921 access_function_definition, allocator, access_procedure_definition,
8922 access_definition, parameter_specification, All_Present and
8923 Constant_Present flags available on access_definition nodes.
8924
8925 2004-03-29 Robert Dewar <dewar@gnat.com>
8926
8927 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
8928 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
8929 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
8930 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
8931 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
8932 sem_prag.adb: Updates to handle multiple units/file
8933
8934 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
8935
8936 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
8937 sem_util.adb: Minor reformatting
8938
8939 * sem_ch12.adb: Add comment for previous change
8940
8941 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
8942
8943 * osint.adb (Executable_Prefix): Set Exec_Name to the current
8944 executable name when not initialized. Otherwise, use its current value.
8945
8946 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
8947 initialize it to another executable name than the current one. This
8948 allows to configure paths for an executable name (gnatmake) different
8949 from the current one (gnatdist).
8950
8951 2004-03-29 Ed Schonberg <schonberg@gnat.com>
8952
8953 * exp_ch6.adb (Expand_Call): A call to a function declared in the
8954 current unit cannot be inlined if it appears in the body of a withed
8955 unit, to avoid order of elaboration problems in gigi.
8956
8957 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
8958 information for protected (wrapper) operation as well, to simplify gdb
8959 use.
8960
8961 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
8962 protected body, indicate that the entity for the generated spec comes
8963 from source, to ensure that references are properly generated for it.
8964 (Build_Body_To_Inline): Do not inline a function that returns a
8965 controlled type.
8966
8967 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
8968 apply convention to homonyms that are declared explicitly.
8969
8970 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
8971 that renames an equality operator and the operands are overloaded,
8972 resolve them with the declared formal types, before rewriting as an
8973 operator.
8974
8975 2004-03-29 GNAT Script <nobody@gnat.com>
8976
8977 * Make-lang.in: Makefile automatically updated
8978
8979 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
8980
8981 * memtrack.adb: Log realloc calls, which are treated as free followed
8982 by alloc.
8983
8984 2004-03-25 Vincent Celier <celier@gnat.com>
8985
8986 * prj-makr.adb (Process_Directories): Detect when a file contains
8987 several units. Do not include such files in the config pragmas or
8988 in the naming scheme.
8989
8990 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
8991 Resolve links only when not in Trusted_Mode.
8992 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
8993 Do not resolve links for the display names.
8994
8995 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
8996 resolve links when computing the display names.
8997
8998 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
8999
9000 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
9001 attribute reference does not denote a subtype, it can be any
9002 expression that has a classwide type, potentially after an implicit
9003 dereference. In particular, the prefix can be a view conversion for
9004 a classwide type (for which Is_Object_Reference holds), but it can
9005 also be a value conversion for an access-to-classwide type. In the
9006 latter case, there is an implicit dereference, and the original node
9007 for the prefix does not verify Is_Object_Reference.
9008
9009 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
9010 conversion of a discriminant-dependent component of a mutable object
9011 is one itself.
9012
9013 2004-03-25 Ed Schonberg <schonberg@gnat.com>
9014
9015 * freeze.adb (Freeze_Entity): When an inherited subprogram is
9016 inherited, has convention C, and has unconstrained array parameters,
9017 place the corresponding warning on the derived type declaration rather
9018 than the original subprogram.
9019
9020 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
9021 indication on renaming declaration, if formal has a box and actual
9022 is absent.
9023
9024 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
9025 determine whether to generate an implicit or explicit reference to
9026 the renamed entity.
9027
9028 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
9029 subprogram renaming comes from a defaulted formal subprogram in an
9030 instance.
9031
9032 2004-03-25 Gary Dismukes <dismukes@gnat.com>
9033
9034 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
9035 value expressions to ensure that calls within a component definition
9036 will be checked (since those are evaluated during the record type's
9037 elaboration).
9038
9039 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
9040
9041 * s-tpobop.adb: Code clean up:
9042 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
9043 code.
9044 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
9045
9046 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
9047
9048 * Makefile.in: Clean up in the ravenscar run time.
9049
9050 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9051
9052 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
9053 of No_Strict_Aliasing to build_pointer_type_for_mode.
9054 * utils.c (update_pointer_to): Walk pointer and ref chains.
9055
9056 2004-03-22 Cyrille Comar <comar@act-europe.fr>
9057
9058 * ali.ads: Fix Comment about Dynamic_Elab.
9059
9060 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
9061 Has_RACW, Is_Generic, etc.)
9062 (Output_Object, Gnatls): Take into account ALI files not attached to
9063 an object.
9064
9065 2004-03-22 Vincent Celier <celier@gnat.com>
9066
9067 * gprep.adb: Change all String_Access to Name_Id
9068 (Is_ASCII_Letter): new function
9069 (Double_File_Name_Buffer): New procedure
9070 (Preprocess_Infile_Name): New procedure
9071 (Process_Files): New procedure
9072 (Gnatprep): Check if output and input are existing directories.
9073 Call Process_Files to do the real job.
9074
9075 2004-03-22 Robert Dewar <dewar@gnat.com>
9076
9077 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
9078 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
9079
9080 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
9081
9082 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
9083 case when the source contains only comments.
9084
9085 2004-03-22 Ed Schonberg <schonberg@gnat.com>
9086
9087 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
9088 declaration for a child subprogram body that acts as a spec, indicate
9089 that the entity in the declaration needs debugging information.
9090
9091 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
9092 full view if the subtype is created for a constrained record component;
9093 gigi has enough information to construct the record, and there is no
9094 place in the tree for the declaration.
9095
9096 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
9097 serial number for the dummy body that is built for analysis, to avoid
9098 inconsistencies in the generation of internal names when compiling
9099 with -gnatN.
9100
9101 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
9102
9103 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
9104 object.
9105
9106 2004-03-22 GNAT Script <nobody@gnat.com>
9107
9108 * Make-lang.in: Makefile automatically updated
9109
9110 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9111
9112 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9113 * trans.c (tree_transform, emit_index_check): Likewise.
9114 * utils.c (build_template): Likewise.
9115 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
9116 (maybe_unconstrained_array, unchecked_convert): Likewise.
9117 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
9118 (build_unary_op): Likewise.
9119 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9120 (fill_vms_descriptor): Likewise.
9121 (build_call_alloc_dealloc): Likewise.
9122 ALIGN is unsigned.
9123 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
9124
9125 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9126
9127 PR other/14630
9128 * gnat_ug.texi: Add info directory category and entry.
9129 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9130 gnat_ug_wnt.texi: Regenerate.
9131
9132 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
9133
9134 * ada-tree.h: Update copyright notice.
9135 Minor reformatting.
9136
9137 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
9138
9139 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
9140 as regular exception objects and not as mere integers representing the
9141 condition code. The latter approach required some dynamics to mask off
9142 severity bits, which did not fit well into the GCC table based model.
9143 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
9144 exception data objects. We don't it and it would conflict with the other
9145 external symbol we have to generate for such exceptions.
9146
9147 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
9148 the special code for VMS exceptions, since these are now represented
9149 as regular exceptions objects.
9150
9151 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9152
9153 * decl.c (debug_no_type_hash): Remove.
9154 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
9155 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
9156
9157 2004-03-19 Laurent Guerby <laurent@guerby.net>
9158
9159 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
9160 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
9161
9162 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9163
9164 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
9165 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
9166 (TYPE_RM_SIZE_INT): Directly use type.values.
9167 (TREE_LOOP_ID): Clean up check.
9168 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
9169 TYPE_VALUES, not TYPE_FIELDS.
9170 * trans.c (convert_with_check): Delay access of bounds of basetype
9171 until sure is numeric.
9172
9173 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
9174
9175 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
9176
9177 Code clean up:
9178 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
9179 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
9180 Specific.Set instead of direct call to e.g pthread_setspecific.
9181
9182 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
9183
9184 * adaint.c: Update comments.
9185
9186 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
9187 GNATLIB_SHARED for FreeBSD.
9188
9189 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
9190
9191 * init.c [VxWorks]: Do not fix the stack size for the environment task.
9192 When needed (stack checking) the stack size is retrieved
9193 from the VxWorks kernel.
9194
9195 * Makefile.in: Flag -nostdinc is required when building the run time
9196 for avoiding looking for files in the base compiler.
9197 Add the VxWorks specific version of the package body for
9198 System.Stack_checking.Operations (5zstchop.adb).
9199
9200 * Make-lang.in: Add the object file for
9201 System.Stack_Checking.Operations.
9202
9203 * Makefile.rtl: Add object file for the package
9204 System.Stack_Checking.Operations.
9205
9206 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
9207
9208 * s-stache.ads, s-stache.adb: Move the operations related to stack
9209 checking from this package to package System.Stack_Checking.Operations.
9210 This way, stack checking operations are only linked in the final
9211 executable when using the -fstack-check flag.
9212
9213 2004-03-18 Doug Rupp <rupp@gnat.com>
9214
9215 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
9216 Reorganize ifeq's.
9217
9218 * 5qsystem.ads, 5xcrtl.ads: New files.
9219
9220 2004-03-18 Vincent Celier <celier@gnat.com>
9221
9222 * prj.adb (Reset): Reset hash table Files_Htable
9223
9224 * prj-env.adb (Source_Paths, Object_Paths): New tables.
9225 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
9226 the procedures Add_To_Path_File.
9227 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
9228 making sure that each directory is present only once and, for object
9229 dirs, when a directory already present is added, the duplicate is
9230 removed and the directory is always put as the last in the table.
9231 Write the path files at the end of these accumulations.
9232
9233 * prj-nmsc.adb (Record_Source): Add source file name in hash table
9234 Files_Htable for all sources.
9235
9236 * prj-proc.adb (Process): Remove restrictions between not directly
9237 related extending projects.
9238
9239 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
9240
9241 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
9242 (Find_Sources): Minor speed optimization.
9243
9244 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
9245 parameter Trusted_Mode.
9246
9247 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
9248
9249 * scn.adb (Determine_License): Take into account a degenerated case
9250 when the source contains only comments.
9251
9252 2004-03-18 Ed Schonberg <schonberg@gnat.com>
9253
9254 * sem_warn.adb (Check_References): For a warning on a selected
9255 component that does not come from source, locate an uninitialized
9256 component of the record type to produce a more precise error message.
9257
9258 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
9259
9260 * 3zsoccon.ads: Fix multicast options.
9261
9262 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
9263 in the spec.
9264
9265 2004-03-15 Robert Dewar <dewar@gnat.com>
9266
9267 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
9268 pragma used for a private type.
9269
9270 * lib-xref.adb (Generate_Reference): Do not generate warning if
9271 reference is in a different unit from the pragma Unreferenced.
9272
9273 * 5vtpopde.adb: Minor reformatting
9274 Fix casing of To_Task_ID
9275
9276 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
9277 flag if we have an unchecked conversion to an access type in the same
9278 unit.
9279
9280 2004-03-15 Geert Bosch <bosch@gnat.com>
9281
9282 * a-ngcoty.adb (Modulus): In alternate formula for large real or
9283 imaginary parts, use Double precision throughout.
9284
9285 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
9286 we want to be able to compile run-time with -gnata for testing, but
9287 this may also be instantiated in user code that is compiled with -gnata.
9288
9289 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
9290
9291 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
9292 codes. Having a separate type for this is useful to enforce consistency
9293 throughout the various run-time units.
9294 (Exception_Data): Use Exception_Code for Import_Code.
9295
9296 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
9297 Natural and Integer in various places.
9298 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
9299 with the severity bits masked off.
9300 (Register_VMS_Exception): Handle the additional exception data pointer
9301 argument.
9302
9303 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
9304 component, now reflected by an exported accessor.
9305 (is_handled_by): New routine to compute whether the propagated
9306 occurrence matches some handler choice specification. Extracted out of
9307 get_action_description_for, and expanded to take care of the VMS
9308 specifities.
9309 (get_action_description_for): Use is_handled_by instead of an explicit
9310 complex condition to decide if the current choice at hand catches the
9311 propagated occurrence.
9312
9313 * raise.h (Exception_Code): New type for C.
9314
9315 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
9316 System.Standard_Library.Exception_Code, to allow references from the
9317 pragma import/export expander.
9318
9319 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
9320 New accessors to allow easy access to GNAT exception data
9321 characteristics.
9322 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
9323 redundant Handled_By_Others component, helper for the personality
9324 routine which will now be able to call the appropriate exception data
9325 accessor instead.
9326
9327 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
9328 component of Standard_Exception_Type to be the closest possible to
9329 Exception_Code in System.Standard_Library, that we cannot get at this
9330 point. Expand a ??? comment to notify that this type node should
9331 probably be rewritten later on.
9332
9333 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
9334 registration call to include a pointer to the exception object in the
9335 arguments.
9336
9337 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
9338 instead of int and explicit bitmasks.
9339
9340 2004-03-15 Vincent Celier <celier@gnat.com>
9341
9342 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
9343 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
9344
9345 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
9346 longer needed now that it is in the spec of
9347 System.Tasking.Task_Attributes.
9348
9349 * adaint.h, adaint.c: (__gnat_create_output_file): New function
9350
9351 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
9352
9353 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
9354
9355 * make.adb (Gnatmake): Do not check the executable suffix; it is being
9356 taken care of in Scan_Make_Arg.
9357 (Scan_Make_Arg): Add the executable suffix only if the argument
9358 following -o, in canonical case, does not end with the executable
9359 suffix. When in verbose mode and executable file name does not end
9360 with executable suffix, output the executable name, in canonical case.
9361
9362 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
9363 to avoid warnings when instantiating Ada.Task_Attributes.
9364 Minor reformating.
9365
9366 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
9367 in the correct order.
9368
9369 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
9370 redirect standard output and error to a file for the invocation of the
9371 compiler, then read the file.
9372
9373 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
9374 directory, instead of the Value.
9375 (Find_Source_Dirs): Remove useless code & comments.
9376
9377 2004-03-15 Ed Schonberg <schonberg@gnat.com>
9378
9379 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
9380 tagged type is inherited, and the parent operation is not frozen yet,
9381 force generation of a freeze node for the inherited operation, so the
9382 corresponding dispatch entry is properly initialized.
9383 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
9384 when looking for user-defined equality operation.
9385
9386 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
9387 boolean when locating primitive equality of tagged component.
9388
9389 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
9390 bit-aligned field and the right-hand side a string literal, introduce
9391 a temporary before expanding assignment into a loop.
9392
9393 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
9394 priority in full, to ensure that any expanded subepxressions of it are
9395 elaborated in the scope of the init_proc.
9396
9397 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
9398 after object declaration, skipping over code that may have been
9399 generated for validity checks.
9400
9401 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
9402 discriminants, ignore the known discriminants of its full view, if
9403 any, to check legality.
9404
9405 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
9406 component if type has unknown discriminants.
9407 (Analyze_Private_Extension_Declaration): Discriminant constraint is
9408 null if type has unknown discriminants.
9409
9410 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
9411 for end label when present.
9412
9413 * s-fileio.adb (Open): When called with a C_Stream, use given name for
9414 temporary file, rather than an empty string.
9415
9416 2004-03-15 Ed Falis <falis@gnat.com>
9417
9418 * s-thread.adb: Removed, no longer used.
9419
9420 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9421
9422 * decl.c (target.h): Now include.
9423 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
9424 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
9425 (validate_size): For POINTER_TYPE, get smallest size permitted on
9426 machine.
9427
9428 * fe.h: Sort Einfo decls and add Set_Mechanism.
9429
9430 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
9431 (ada/decl.o): Depends on target.h.
9432
9433 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
9434 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
9435
9436 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
9437
9438 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
9439
9440 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
9441 Insert_Dereference_Action when rewriting an implicit dereference into
9442 an explicit one, this will be taken care of during expansion of the
9443 explicit dereference.
9444 (Expand_N_Slice): Same. Always do the rewriting, even for the case
9445 of non-packed slices, since the dereference action generated by
9446 expansion of the explicit dereference is needed in any case.
9447 (Expand_N_Selected_Component): When rewriting an implicit dereference,
9448 analyze and resolve the rewritten explicit dereference so it is seen
9449 by the expander.
9450 (Insert_Dereference_Action): This procedure is now called only for the
9451 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
9452 dereferences that do not come from source (including explicit
9453 dereferences resulting from rewriting implicit ones), but do not
9454 recursively insert a check for the dereference nodes contained within
9455 the check.
9456 (Insert_Dereference_Action): Clarify and correct comment.
9457
9458 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
9459
9460 PR ada/14131
9461 Move language detection to the top level.
9462 * config-lang.in: Build by default.
9463
9464 2004-03-05 Robert Dewar <dewar@gnat.com>
9465
9466 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
9467
9468 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
9469 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
9470 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
9471 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
9472 unchecked conversion to spec to avoid warnings.
9473
9474 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
9475 to Task_ID
9476
9477 * 7stpopsp.adb: Correct casing in To_Task_ID call
9478
9479 * a-strsea.ads, a-strsea.adb: Minor reformatting
9480
9481 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
9482
9483 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
9484 Adjust Max_Msg_Length to be clearly large enough.
9485
9486 * fe.h: Define In_Same_Source_Unit
9487
9488 * osint.adb: Add pragma Warnings Off to suppress warnings
9489 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
9490 aliasing warnings.
9491
9492 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
9493
9494 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
9495
9496 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
9497
9498 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
9499
9500 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
9501
9502 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
9503 node. We now do generate them for gcc back end.
9504
9505 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
9506 warning.
9507
9508 * sinput-c.adb: Fix bad name in header.
9509 Add pragma Warnings Off to suppress aliasing warning.
9510
9511 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
9512
9513 * snames.h, snames.ads, snames.adb: Add entry for pragma
9514 No_Strict_Aliasing.
9515
9516 2004-03-05 Vincent Celier <celier@gnat.com>
9517
9518 * prj-com.ads: Add hash table Files_Htable to check when a file name
9519 is already a source of another project.
9520
9521 * prj-nmsc.adb (Record_Source): Before recording a new source, check
9522 if its file name is not already a source of another project. Report an
9523 error if it is.
9524
9525 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
9526 source file name, call gnatpp with all the sources of the main project.
9527
9528 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
9529 of file names.
9530
9531 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
9532 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
9533 /RUNTIME_SYSTEM=, converted to --RTS=
9534 /NOTABS, converted to -notabs
9535
9536 2004-03-05 Pascal Obry <obry@gnat.com>
9537
9538 * make.adb: Minor reformatting.
9539
9540 2004-03-05 Ed Schonberg <schonberg@gnat.com>
9541
9542 Part of implemention of AI-262.
9543 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
9544
9545 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
9546 procedure.
9547
9548 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
9549 when component type is a partially constrained class-wide subtype.
9550 (Constrain_Discriminated_Type): If parent type has unknown
9551 discriminants, a constraint is illegal, even if full view has
9552 discriminants.
9553 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
9554 with unknown discriminants whose full view is a discriminated record.
9555
9556 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
9557 flag, to handle properly derivations of tagged types with unknown
9558 discriminants.
9559 (Analyze_Package_Spec, Analyze_Package_Body): Install
9560 Private_With_Clauses before analyzing private part or body.
9561
9562 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
9563 Has_Discriminants can be true for a given type (documentation).
9564
9565 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
9566
9567 * s-restri.ads: Fix license (GPL->GMGPL).
9568
9569 * s-tassta.adb: Minor reformatting.
9570
9571 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
9572 by calls to Exit_One_ATC_Level, since additional clean up is performed
9573 by this function.
9574
9575 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
9576 by calls to Exit_One_ATC_Level, since additional clean up is performed
9577 by this function.
9578
9579 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9580
9581 * trans.c: Reflect GCC changes to fix bootstrap problem.
9582 Add warning for suspicious aliasing unchecked conversion.
9583
9584 2004-03-05 GNAT Script <nobody@gnat.com>
9585
9586 * Make-lang.in: Makefile automatically updated
9587
9588 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
9589
9590 * ali.adb (Read_Instantiation_Instance): Do not modify the
9591 current_file_num when reading information about instantiations, since
9592 this corrupts files in later references.
9593
9594 2004-03-02 Vincent Celier <celier@gnat.com>
9595
9596 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
9597 before checking if it is read-only.
9598
9599 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
9600 of SRC_DIRS and eliminate duplicates.
9601
9602 * gprcmd.adb: Replace command "path" with command "path_sep" to return
9603 the path separator.
9604 (Usage): Document path_sep
9605
9606 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
9607 C++ compiler. No need for a script.
9608 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
9609 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
9610 subst.
9611
9612 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
9613 where there are Ada sources.
9614 (Set_Ada_Paths): Only add to the include path the source dirs of project
9615 with Ada sources.
9616 (Add_To_Path): Add the Display_Values of the directories, not their
9617 Values.
9618
9619 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
9620 data.
9621
9622 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
9623 is not No_Name.
9624 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
9625 Value is canonicalized.
9626 (Language_Independent_Check): Do not copy Value to Display_Value when
9627 canonicalizing Value.
9628
9629 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
9630 path to find limited with cycles.
9631 (Parse_Single_Project): Use canonical cased path to find the end of a
9632 with cycle.
9633
9634 2004-03-02 Ed Schonberg <schonberg@gnat.com>
9635
9636 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
9637 and not a child unit.
9638
9639 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
9640 appear in a with_clause.
9641
9642 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
9643 only happen in type_annotate mode, do not try to elaborate it.
9644
9645 * exp_util.adb (Force_Evaluation): If expression is a selected
9646 component on the left of an assignment, use a renaming rather than a
9647 temporary to remove side effects.
9648
9649 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
9650 inlined instance body, which is analyzed before the end of the
9651 enclosing scope.
9652
9653 2004-03-02 Robert Dewar <dewar@gnat.com>
9654
9655 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
9656 sem_ch4.adb: Use new feature for substitution of keywords in VMS
9657
9658 * errout.ads, errout.adb: Implement new circuit for substitution of
9659 keywords in VMS.
9660
9661 * sem_case.adb (Analyze_Choices): Place message properly when case is
9662 a subtype reference rather than an explicit range.
9663
9664 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
9665
9666 2004-03-02 Doug Rupp <rupp@gnat.com>
9667
9668 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
9669
9670 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
9671
9672 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
9673
9674 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9675
9676 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
9677 BLKmode bitfield.
9678
9679 2004-02-25 Robert Dewar <dewar@gnat.com>
9680
9681 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
9682 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
9683 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
9684 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
9685 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
9686 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
9687 the defining instance of the type to avoid aliasing problems.
9688 Fix copyright header. Fix bad comments in package header.
9689
9690 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
9691
9692 2004-02-25 Ed Schonberg <schonberg@gnat.com>
9693
9694 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
9695 rewritten as references when aliased through an address clause.
9696
9697 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
9698 whether call can be interpreted as an indirect call to the result of a
9699 parameterless function call returning an access subprogram.
9700
9701 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
9702
9703 Code clean up:
9704 * exp_ch7.adb (Make_Clean): Remove generation of calls to
9705 Unlock[_Entries], since this is now done by Service_Entries directly.
9706
9707 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
9708
9709 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
9710 Requeue_Call for better code readability. Change spec and update calls:
9711 PO_Service_Entries now unlock the PO on exit.
9712 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
9713 PO_Service_Entries.
9714
9715 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
9716
9717 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
9718
9719 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
9720
9721 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
9722 protected subprogram call and analyzing the result of such expanding
9723 in case when the called protected subprogram is eliminated.
9724
9725 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
9726 names.
9727
9728 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
9729
9730 * Makefile.in: Clean ups.
9731
9732 2004-02-23 Ed Schonberg <schonberg@gnat.com>
9733
9734 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
9735 protected operations if original subprogram is flagged as eliminated.
9736 (Expand_N_Subprogram_Body): For a protected operation, create
9737 discriminals for next operation before checking whether the operation
9738 is eliminated.
9739
9740 * exp_ch9.adb (Expand_N_Protected_Body,
9741 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
9742 for internal protected operations if the original subprogram is
9743 eliminated.
9744
9745 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
9746 declared in a single protected object.
9747
9748 2004-02-23 Vincent Celier <celier@gnat.com>
9749
9750 * prj-attr.adb: Make attribute Builder'Executable an associative array,
9751 case insensitive if file names are case insensitive, instead of a
9752 standard associative array.
9753
9754 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
9755 them as case insensitive on platforms where the file names are case
9756 sensitive.
9757
9758 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
9759 project file has already been parsed that canonical path are compared.
9760
9761 2004-02-23 Robert Dewar <dewar@gnat.com>
9762
9763 * sinput-c.ads: Correct bad unit title in header
9764
9765 * freeze.adb: Minor reformatting
9766
9767 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9768
9769 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
9770 nonaddressable COMPONENT_REF that is removing padding that we are
9771 taking the address of, take the address of the padded record instead
9772 if item is variable size.
9773
9774 2004-02-20 Robert Dewar <dewar@gnat.com>
9775
9776 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
9777
9778 2004-02-20 Ed Schonberg <schonberg@gnat.com>
9779
9780 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
9781 itype references for the constrained designated type of a component
9782 whose base type is already frozen.
9783
9784 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
9785
9786 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
9787 avoid GCC warnings.
9788
9789 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
9790
9791 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
9792 identifier for a phantom package that rewrites the formal package
9793 declaration with a box. The Add semantic decorations for the defining
9794 identifier from the original node (that represents the formal package).
9795
9796 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
9797
9798 * Make-lang.in (ada/stamp-sdefault): Use the top level
9799 move-if-change.
9800
9801 2004-02-19 Richard Henderson <rth@redhat.com>
9802
9803 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
9804
9805 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
9806
9807 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
9808 Scan_ALI can be used for multiple ALI files without reinitializing
9809 between calls.
9810
9811 2004-02-18 Robert Dewar <dewar@gnat.com>
9812
9813 * debug.adb: Minor reformatting.
9814
9815 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9816
9817 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
9818 to zero if there is an address clause.
9819
9820 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
9821
9822 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
9823
9824 2004-02-18 Gary Dismukes <dismukes@gnat.com>
9825
9826 * layout.adb (Layout_Component_List): Revise generation of call to
9827 discriminant-checking function to pass selections of all of the type's
9828 discriminants rather than just the variant-controlling discriminant.
9829
9830 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
9831
9832 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
9833 fail in the current setup and triggers spurious system error messages.
9834 Pretend it occurred and failed instead.
9835
9836 2004-02-18 Vincent Celier <celier@gnat.com>
9837
9838 * bld.adb: Mark FLDFLAGS as saved
9839 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
9840 it is not the root project. Put each directory to be
9841 extended between double quotes to prevent it to be expanded on Windows.
9842 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
9843 the project file. Set them back to their initial values if they have not
9844 been set in the project file.
9845
9846 * gprcmd.adb: (Gprdebug, Debug): New global variables
9847 (Display_Command): New procedure
9848 (Usage): Document new command "linkopts"
9849 Call Display_Command when env var GPRDEBUG has the value "TRUE"
9850 Implement new command "linkopts"
9851 Remove quotes that may be around arguments for "extend"
9852 Always call Normalize_Pathname with arguments formatted for the platform
9853
9854 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
9855 Change @echo to @$(display) in target clean to be able to clean silently
9856
9857 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
9858
9859 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
9860 canonical case.
9861
9862 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
9863 = Extending_All when current project is an extending all project.
9864
9865 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
9866 set to True only for LINK command, after Unix switch -o.
9867 (Process_Arguments): Set Output_File_Expected to True for LINK command
9868 after Unix switch -o. When Output_File_Expected is True, never add an
9869 extension to a file name.
9870
9871 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
9872 option file name, only to the --for-linker= switch.
9873 (Option_File_Name): If option file name do not end with ".opt", append
9874 "/OPTIONS".
9875
9876 2004-02-18 GNAT Script <nobody@gnat.com>
9877
9878 * Make-lang.in: Makefile automatically updated
9879
9880 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
9881
9882 * Make-lang.in (stamp-sdefault): Do not depend on
9883 move-if-change.
9884
9885 2004-02-12 Zack Weinberg <zack@codesourcery.com>
9886
9887 * config-lang.in: Disable Ada by default until probe logic for
9888 a bootstrap Ada compiler can be moved to the top level configure
9889 script.
9890
9891 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
9892
9893 * decl.c (components_to_record): Don't claim that the internal fields
9894 we make to hold the variant parts are semantically addressable, because
9895 they are not.
9896
9897 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
9898 adjust the comment describing the modular type form when we can use it.
9899 (Install_PAT): Account for the Esiz renaming.
9900
9901 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
9902 sc_onstack context indication before raising the exception to which
9903 the signal is mapped. Allows better handling of later signals possibly
9904 triggered by the resumed user code if the exception is handled.
9905
9906 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
9907
9908 * 5zinit.adb: Removed, no longer used.
9909
9910 2004-02-12 Robert Dewar <dewar@gnat.com>
9911
9912 * ali.adb: Remove separating space between parameters on R line. Makes
9913 format consistent with format used by the binder for Set_Globals call.
9914
9915 * atree.ads, atree.adb: Minor reformatting (new function header format)
9916
9917 * bindgen.adb: Add Run-Time Globals documentation section containing
9918 detailed documentation of the globals passed from the binder file to
9919 the run time.
9920
9921 * gnatls.adb: Minor reformatting
9922
9923 * init.c (__gnat_set_globals): Add note pointing to documentation in
9924 bindgen.
9925
9926 * lib-writ.ads, lib-writ.adb: Remove separating space between
9927 parameters on R line.
9928 Makes format consistent with format used by the binder for Set_Globals
9929 call.
9930
9931 * osint.ads: Add 2004 to copyright notice
9932 Minor reformatting
9933
9934 * snames.ads: Correct capitalization of FIFO_Within_Priorities
9935 Noticed during code reading, documentation issue only
9936
9937 * usage.adb: Remove junk line for obsolete C switch
9938 Noticed during code reading
9939
9940 2004-02-12 Vincent Celier <celier@gnat.com>
9941
9942 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
9943 extend for each directory, so that multiple /** directories are
9944 extended individually.
9945 (Recursive_Process): Set the default for LANGUAGES to ada
9946
9947 * gprcmd.adb: Define new command "ignore", to do nothing.
9948 Implement new comment "path".
9949
9950 * Makefile.generic: Suppress output when SILENT is set
9951 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
9952 used, so that the correct compiler is invoked.
9953 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
9954 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
9955
9956 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
9957
9958 * Makefile.in: Clean ups and remove obsolete targets.
9959
9960 2004-02-12 Ed Schonberg <schonberg@gnat.com>
9961
9962 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
9963 predicate declared in exp_util.
9964
9965 * exp_util.adb: Add comments.
9966
9967 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
9968 visibility before compiling context of the subunit.
9969
9970 * sem_res.adb (Check_Parameterless_Call): If the context expects a
9971 value but the name is a procedure, do not attempt to analyze as a call,
9972 in order to obtain more telling diagnostics.
9973
9974 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
9975 'Access on parameterless function calls.
9976 (Normalize_Actuals): For a parameterless function call with missing
9977 actuals, defer diagnostic until resolution of enclosing call.
9978
9979 * sem_util.adb (Wrong_Type): If the context type is an access to
9980 subprogram and the expression is a procedure name, suggest a missing
9981 'attribute.
9982
9983 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
9984 Nathanael Nerode <neroden@gcc.gnu.org>
9985
9986 PR ada/6637, PR ada/5911
9987 Merge with libada-branch:
9988 * config-lang.in: Build libada only when ada is built.
9989
9990 2004-02-09 Ed Schonberg <schonberg@gnat.com>
9991
9992 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
9993 for a tagged type, verify that both formals have the same type.
9994
9995 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
9996 temporary when the formal is an in-parameter and the actual a possibly
9997 unaligned slice.
9998
9999 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
10000 when expansion is disabled, to ensure proper name capture with
10001 overloaded literals. Condition can be of any boolean type, resolve
10002 accordingly.
10003
10004 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
10005 renaming is for a formal subprogram with a default operator name, and
10006 there is a usable operator that is visible at the point of
10007 instantiation.
10008
10009 2004-02-09 Robert Dewar <dewar@gnat.com>
10010
10011 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
10012 rewrite to ignore errors in ali files, intended to allow tools downward
10013 compatibility with new versions of ali files.
10014
10015 * ali.ads: Add new parameter Ignore_Errors
10016
10017 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
10018 duplicating the error message giving the file with restrictions.
10019
10020 * debug.adb: Add debug flag I for gnatbind
10021
10022 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
10023 operators for the case where the operator is a defining operator.
10024
10025 * exp_ch3.adb: Minor reformatting (new function spec format).
10026
10027 * exp_ch4.adb: Add comment for previous change, and make minor
10028 adjustment to loop to always check for improper loop termination.
10029 Minor reformatting throughout (new function spec format).
10030
10031 * gnatbind.adb: Implement -di debug flag for gnatbind
10032
10033 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
10034
10035 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
10036
10037 * lib-load.adb: Fix bad assertion.
10038 Found by testing and code reading.
10039 Minor reformatting.
10040
10041 * lib-load.ads: Minor reformatting.
10042
10043 * lib-writ.adb: There is only one R line now.
10044
10045 * lib-writ.ads: Add documentation on making downward compatible changes
10046 to ali files so old tools work with new ali files.
10047 There is only one R line now.
10048 Add documentation on format incompatibilities (with special GPS note)
10049
10050 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
10051
10052 * par-load.adb: Minor reformatting
10053
10054 * sem_ch8.adb: Fix to error message from last update
10055 Minor reformatting and restructuring of code from last update
10056
10057 * par-prag.adb, snames.adb, snames.ads, snames.h,
10058 sem_prag.adb: Implement pragma Profile.
10059
10060 * stylesw.adb: Implement -gnatyN switch to turn off all style check
10061 options.
10062
10063 * usage.adb: Add line for -gnatyN switch
10064
10065 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
10066
10067 2004-02-09 Albert Lee <lee@gnat.com>
10068
10069 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
10070
10071 2004-02-09 Ed Schonberg <schonberg@gnat.com>
10072
10073 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
10074 slices.
10075
10076 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
10077 is nested in an instance that is not frozen yet, to avoid
10078 order-of-elaboration problems in gigi.
10079
10080 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
10081 body the attribute is legal.
10082
10083 2004-02-09 Robert Dewar <dewar@gnat.com>
10084
10085 * s-rident.ads: Minor comment correction
10086
10087 * targparm.adb: Remove dependence on uintp completely. There was
10088 always a bug in Make in that it called Targparm before initializing
10089 the Uint package. The old code appeared to get away with this, but
10090 the new code did not! This caused an assertion error in gnatmake.
10091
10092 * targparm.ads: Fix bad comment, restriction pragmas with parameters
10093 are indeed fully supported.
10094
10095 2004-02-06 Alan Modra <amodra@bigpond.net.au>
10096
10097 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
10098
10099 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
10100
10101 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
10102 with targetm.calls.promote_prototypes.
10103
10104 2004-02-04 Robert Dewar <dewar@gnat.com>
10105
10106 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
10107 ali.ads, gprcmd.adb: Minor reformatting
10108
10109 * bindgen.adb: Output restrictions string for new style restrictions
10110 handling
10111
10112 * impunit.adb: Add s-rident.ads (System.Rident) and
10113 s-restri (System.Restrictions)
10114
10115 * lib-writ.adb: Fix bug in writing restrictions string (last few
10116 entries wrong)
10117
10118 * s-restri.ads, s-restri.adb: Change name Restrictions to
10119 Run_Time_Restrictions to avoid conflict with package name.
10120 Add circuit to read and acquire run time restrictions.
10121
10122 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
10123
10124 * restrict.ads, restrict.adb: Use the new restriction
10125 No_Task_Attributes_Package instead of the old No_Task_Attributes.
10126
10127 * sem_prag.adb: No_Task_Attributes is a synonym of
10128 No_Task_Attributes_Package.
10129
10130 * snames.ads, snames.adb: New entry for proper handling of
10131 No_Task_Attributes.
10132
10133 * s-rident.ads: Adding restriction No_Task_Attributes_Package
10134 (AI-00249) that supersedes the GNAT specific restriction
10135 No_Task_Attributes.
10136
10137 2004-02-04 Ed Schonberg <schonberg@gnat.com>
10138
10139 * sem_prag.adb:
10140 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
10141 body, an identifier may be wrapped in an unchecked conversion.
10142
10143 2004-02-04 Vincent Celier <celier@gnat.com>
10144
10145 * lib-writ.ads: Comment update for the W lines
10146
10147 * bld.adb: (Expression): An empty string list is static
10148
10149 * fname-uf.adb: Minor comment update
10150
10151 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
10152
10153 * gnatbind.adb: Initialize Cumulative_Restrictions with the
10154 restrictions on the target.
10155
10156 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
10157
10158 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
10159 gen_rtx.
10160
10161 2004-02-02 Arnaud Charlet <charlet@gnat.com>
10162
10163 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
10164
10165 2004-02-02 Vincent Celier <celier@gnat.com>
10166
10167 * gprcmd.adb (Check_Args): If condition is false, print the invoked
10168 comment before the usage.
10169 Gprcmd: Fail when command is not recognized.
10170 (Usage): Document command "prefix"
10171
10172 * g-md5.adb (Digest): Process last block.
10173 (Update): Do not process last block. Store remaining characters and
10174 length in Context.
10175
10176 * g-md5.ads (Update): Document that several call to update are
10177 equivalent to one call with the concatenated string.
10178 (Context): Add fields to allow new Update behaviour.
10179
10180 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
10181 defaulted to False.
10182 When May_Fail is True and no existing file can be found, return No_File.
10183
10184 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
10185 functions.
10186
10187 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
10188 spec file name instead on the W line.
10189
10190 2004-02-02 Robert Dewar <dewar@gnat.com>
10191
10192 * ali.adb: Read and acquire info from new format restrictions lines
10193
10194 * bcheck.adb: Add circuits for checking restrictions with parameters
10195
10196 * bindgen.adb: Output dummy restrictions data
10197 To be changed later
10198
10199 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
10200 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
10201 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
10202 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
10203 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
10204
10205 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
10206 the warning message on access to possibly uninitialized variable S)
10207 Minor changes for new restrictions handling.
10208
10209 * gnatbind.adb: Minor reformatting
10210 Minor changes for new restrictions handling
10211 Move circuit for -r processing here from bcheck (cleaner)
10212
10213 * gnatcmd.adb, gnatlink.adb: Minor reformatting
10214
10215 * lib-writ.adb: Output new format restrictions lines
10216
10217 * lib-writ.ads: Document new R format lines for new restrictions
10218 handling.
10219
10220 * s-restri.ads/adb: New files
10221
10222 * Makefile.rtl: Add entry for s-restri.ads/adb
10223
10224 * par-ch3.adb: Fix bad error messages starting with upper case letter
10225 Minor reformatting
10226
10227 * restrict.adb: Major rewrite throughout for new restrictions handling
10228 Major point is to handle restrictions with parameters
10229
10230 * restrict.ads: Major changes in interface to handle restrictions with
10231 parameters. Also generally simplifies setting of restrictions.
10232
10233 * snames.ads/adb: New entry for proper handling of No_Requeue
10234
10235 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
10236 restriction counting.
10237 Other minor changes for new restrictions handling
10238
10239 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
10240 Restriction_Warnings now allows full parameter notation
10241 Major rewrite of Restrictions for new restrictions handling
10242
10243 2004-02-02 Javier Miranda <miranda@gnat.com>
10244
10245 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
10246 syntax rule for object renaming declarations.
10247 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
10248 component definitions.
10249
10250 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
10251 components.
10252 (Array_Type_Declaration): Give support to access components. In addition
10253 it was also modified to reflect the name of the object in anonymous
10254 array types. The old code did not take into account that it is possible
10255 to have an unconstrained anonymous array with an initial value.
10256 (Check_Or_Process_Discriminants): Allow access discriminant in
10257 non-limited types.
10258 (Process_Discriminants): Allow access discriminant in non-limited types
10259 Initialize the new Access_Definition field in N_Object_Renaming_Decl
10260 node. Change Ada0Y to Ada 0Y in comments
10261
10262 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
10263 equality operators.
10264 Change Ada0Y to Ada 0Y in comments
10265
10266 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
10267 renamings Change Ada0Y to Ada 0Y in comments
10268
10269 * sem_type.adb (Find_Unique_Type): Give support to the equality
10270 operators for universal access types
10271 Change Ada0Y to Ada 0Y in comments
10272
10273 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
10274
10275 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
10276 field.
10277 (N_Object_Renaming_Declaration): Addition of Access_Definition field
10278 Change Ada0Y to Ada 0Y in comments
10279
10280 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
10281 component definition and object renaming nodes
10282 Change Ada0Y to Ada 0Y in comments
10283
10284 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
10285
10286 * restrict.adb: Use the new restriction identifier
10287 No_Requeue_Statements instead of the old No_Requeue for defining the
10288 restricted profile.
10289
10290 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
10291 No_Requeue_Statements.
10292
10293 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
10294 that supersedes the GNAT specific restriction No_Requeue. The later is
10295 kept for backward compatibility.
10296
10297 2004-02-02 Ed Schonberg <schonberg@gnat.com>
10298
10299 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
10300 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
10301 pragma and fix incorrect ones.
10302
10303 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
10304 warning if the pragma is redundant.
10305
10306 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
10307
10308 * 5staprop.adb: Add missing 'constant' keywords.
10309
10310 * Makefile.in: use consistent value for SYMLIB on
10311 platforms where libaddr2line is supported.
10312
10313 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10314
10315 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
10316 annotating types.
10317
10318 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
10319
10320 * init.c (__gnat_install_handler): Setup an alternate stack for signal
10321 handlers in the environment thread. This allows proper propagation of
10322 an exception on stack overflows in this thread even when the builtin
10323 ABI stack-checking scheme is used without support for a stack reserve
10324 region.
10325
10326 * utils.c (create_field_decl): Augment the head comment about bitfield
10327 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
10328 here, because the former is not accurate enough at this point.
10329 Let finish_record_type decide instead.
10330 Don't make a bitfield if the field is to be addressable.
10331 Always set a size for the field if the record is packed, to ensure the
10332 checks for bitfield creation are triggered.
10333 (finish_record_type): During last pass over the fields, clear
10334 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
10335 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
10336 from DECL_BIT_FIELD.
10337
10338 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
10339
10340 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
10341 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
10342 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
10343
10344 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10345
10346 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
10347
10348 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
10349 (ZCX_By_Default): Likewise.
10350 (Front_End_ZCX_Support): Likewise.
10351
10352 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
10353 (Initialize_Lock): Mark Level unreferenced.
10354 (Sleep): Mark Reason unreferenced.
10355 (Timed_Sleep): Likewise.
10356 (Wakeup): Likewise.
10357 (Exit_Task): Use Result.
10358 (Check_No_Locks): Mark Self_ID unreferenced.
10359
10360 * 5gtasinf.adb (New_Sproc): Make Attr constant.
10361 (Bound_Thread_Attributes): Make Sproc constant.
10362 (New_Bound_Thread_Attributes): Likewise.
10363
10364 2004-01-26 Ed Schonberg <schonberg@gnat.com>
10365
10366 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
10367 one-dimensional array an slice assignments, when component type is
10368 controlled.
10369
10370 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
10371 component type is controlled, and control_actions are in effect, use
10372 TSS procedure rather than generating inline code.
10373
10374 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
10375 arrays with controlled components.
10376
10377 2004-01-26 Vincent Celier <celier@gnat.com>
10378
10379 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
10380 command line for the non VMS case.
10381
10382 * gnatlink.adb (Process_Binder_File): When building object file, if
10383 GNU linker is used, put all object paths between quotes, to prevent ld
10384 error when there are unusual characters (such as '!') in the paths.
10385
10386 * Makefile.generic: When there are sources in Ada and the main is in
10387 C/C++, invoke gnatmake with -B, instead of -z.
10388
10389 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
10390 from VMS_Conversion.
10391 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
10392 specification of argument file on the command line.
10393
10394 2004-01-26 Bernard Banner <banner@gnat.com>
10395
10396 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
10397
10398 2004-01-26 Ed Schonberg <schonberg@gnat.com>
10399
10400 * snames.adb: Update copyright notice.
10401 Add info on slice assignment for controlled arrays.
10402
10403 2004-01-23 Robert Dewar <dewar@gnat.com>
10404
10405 * exp_aggr.adb: Minor reformatting
10406
10407 * exp_ch9.adb: Minor code clean up
10408 Minor reformatting
10409 Fix bad character in comment
10410
10411 PR ada/13471
10412 * targparm.adb (Get_Target_Parameters): Give clean abort error on
10413 unexpected end of file, along with more detailed message.
10414
10415 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10416
10417 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
10418 PAT.
10419
10420 * decl.c (copy_alias_set): New function.
10421 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
10422
10423 2004-01-23 Doug Rupp <rupp@gnat.com>
10424
10425 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
10426 lib$${file} in case subsequent character is not a separator.
10427
10428 2004-01-23 Vincent Celier <celier@gnat.com>
10429
10430 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
10431 when the GCC version is at least 3.
10432
10433 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
10434 Remove all "Opt.", to prepare for opt split
10435
10436 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
10437 Extends_All. Set to True when the project parsed is an extending all
10438 project. Fails for importing an extending all project only when the
10439 imported project is an extending all project.
10440 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
10441 depending on the value of Extends_All returned.
10442
10443 * prj-proc.adb (Process): Check that no project shares its object
10444 directory with a project that extends it, directly or indirectly,
10445 including a virtual project.
10446 Check that no project extended by another project shares its object
10447 directory with another also extended project.
10448
10449 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
10450 Kind = N_With_Clause
10451
10452 * prj-tree.ads: Minor reformatting
10453 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
10454
10455 2004-01-23 Ed Schonberg <schonberg@gnat.com>
10456
10457 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
10458 applies to a type with an incomplete view, use full view in Name of
10459 clause, for consistency with uses of Get_Attribute_Definition_Clause.
10460
10461 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
10462
10463 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
10464 SCHED_RR, since other values are not supported by this policy.
10465 (Initialize): Move initialization of mutex attribute to package
10466 elaboration, to prevent early access to this variable.
10467
10468 * Makefile.in: Remove mention of Makefile.adalib, unused.
10469
10470 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10471 1ssecsta.ads: Removed, unused.
10472
10473 2004-01-21 Javier Miranda <miranda@gnat.com>
10474
10475 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
10476 entity if already built in the current scope.
10477
10478 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
10479 reminder in internal scopes. Required for nested limited aggregates.
10480
10481 2004-01-21 Doug Rupp <rupp@gnat.com>
10482
10483 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
10484 VMS. Replace all occurences of libgnat- and libgnarl- with
10485 libgnat$(hyphen) and libgnarl$(hyphen).
10486 Fixed shared library build problem on VMS.
10487
10488 2004-01-21 Robert Dewar <dewar@gnat.com>
10489
10490 * mlib-prj.adb: Minor reformatting
10491
10492 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
10493
10494 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
10495 'constant' keywords for declaration of pointers that are not modified.
10496
10497 * exp_pakd.adb: Fix English in comment.
10498
10499 2004-01-21 Ed Schonberg <schonberg@gnat.com>
10500
10501 PR ada/10889
10502 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
10503 copy all attributes of the parent, including the foreign language
10504 convention.
10505
10506 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
10507
10508 PR ada/10565
10509 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
10510 for 'delay until' statement.
10511
10512 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
10513
10514 * Make-lang.in: Replace $(docdir) with doc.
10515 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
10516 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
10517 to use consistent MAKEINFO rule.
10518 (ada.man, ada.srcman): Dummy entry.
10519 (ADA_INFOFILES): Define.
10520 (ada.info, ada.srcinfo): New rules.
10521
10522 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
10523
10524 * utils.c: Update copyright notice, missed in previous change.
10525
10526 2004-01-19 Vincent Celier <celier@gnat.com>
10527
10528 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
10529 args if Bind is True. Set First_ALI, if not already done.
10530 (Build_Library): For Stand Alone Libraries, extract from one ALI file
10531 an eventual --RTS switch, for gnatbind, and all backend switches +
10532 --RTS, for linking.
10533
10534 2004-01-19 Robert Dewar <dewar@gnat.com>
10535
10536 * sem_attr.adb, memtrack.adb: Minor reformatting
10537
10538 2004-01-19 Ed Schonberg <schonberg@gnat.com>
10539
10540 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
10541 that rename enumeration literals. This is properly done in sem_eval.
10542
10543 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
10544 to functions that rename enumeration literals.
10545
10546 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
10547 functions that rename enumeration literals.
10548
10549 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
10550
10551 * Make-lang.in (utils.o): Depend on target.h.
10552 * utils.c: Include target.h.
10553 (process_attributes): Use targetm.have_named_sections instead
10554 of ASM_OUTPUT_SECTION_NAME.
10555
10556 2004-01-16 Andreas Jaeger <aj@suse.de>
10557
10558 * Makefile.in: Add $(DESTDIR).
10559
10560 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
10561
10562 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
10563 also when not defining if a Size clause applies. That information is
10564 not to be ignored.
10565
10566 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
10567
10568 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
10569 symbolic links for the shared gnat run time when needed.
10570
10571 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
10572
10573 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
10574 for writing, and terminate with an error message if not.
10575
10576 2004-01-15 Ed Schonberg <schonberg@gnat.com>
10577
10578 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
10579 warning on an access to subprogram in an instance, when the target
10580 type is declared in the same generic unit.
10581 (Eval_Attribute): If 'access is known to fail accessibility check,
10582 rewrite as a raise statement.
10583
10584 2004-01-15 GNAT Script <nobody@gnat.com>
10585
10586 * Make-lang.in: Makefile automatically updated
10587
10588 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
10589
10590 * Make-lang.in (ada.srcextra): Dummy entry.
10591
10592 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10593
10594 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
10595
10596 2004-01-13 Ed Schonberg <schonberg@gnat.com>
10597
10598 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
10599 components that are initialized with aggregates.
10600
10601 2004-01-13 Vincent Celier <celier@gnat.com>
10602
10603 * gnatlink.adb (Process_Binder_File): To find directory of shared
10604 libgcc, if "gcc-lib" is not a subdirectory, look for the last
10605 subdirectory "lib" in the path of the shared libgnat or libgnarl.
10606
10607 * make.adb (Gnatmake): If GCC version is at least 3, link with
10608 -shared-libgcc, when there is at least one shared library project.
10609
10610 * opt.ads (GCC_Version): New integer constant.
10611
10612 * adaint.c (get_gcc_version): New function.
10613
10614 2004-01-13 Robert Dewar <dewar@gnat.com>
10615
10616 * sem_dist.adb, sem_res.adb, sem_util.adb,
10617 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
10618 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
10619
10620 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
10621
10622 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
10623 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
10624 declarations.
10625
10626 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
10627
10628 * misc.c: Remove trailing spaces.
10629 Update copyright notice missed in previous change.
10630
10631 PR ada/13572
10632 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
10633 prefix/share/make
10634
10635 * Makefile.generic: Update copyright.
10636 Add license notice.
10637
10638 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
10639 of prefix/share/make.
10640
10641 * Makefile.prolog: Update copyright.
10642 Add license notice.
10643
10644 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
10645
10646 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
10647 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
10648 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
10649 instead of String.
10650
10651 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
10652 signature.
10653
10654 2004-01-12 Javier Miranda <miranda@gnat.com>
10655
10656 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
10657 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
10658 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
10659 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
10660 Component_Definition node.
10661
10662 2004-01-12 Ed Falis <falis@gnat.com>
10663
10664 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
10665
10666 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
10667
10668 * link.c: Change default libgnat kind to STATIC for FreeBSD.
10669
10670 2004-01-12 Bernard Banner <banner@gnat.com>
10671
10672 * Makefile.in: map 86numaux to a-numaux for x86_64
10673
10674 2004-01-12 Ed Schonberg <schonberg@gnat.com>
10675
10676 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
10677 generated to rename a generic actual, go to the actual itself, the
10678 subtype is not a user-visible entity.
10679
10680 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
10681 part is a private subtype, reset the visibility of its full view, if
10682 any, to be consistent.
10683
10684 PR ada/13417
10685 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
10686 to use a generic package G as a formal package for another generic
10687 declared within G.
10688
10689 2004-01-12 Robert Dewar <dewar@gnat.com>
10690
10691 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
10692
10693 * usage.adb: Remove mention of obsolete -gnatwb switch
10694 Noticed during code reading
10695
10696 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
10697
10698 * 1ssecsta.adb: Minor changes for -gnatwa warnings
10699
10700 2004-01-12 GNAT Script <nobody@gnat.com>
10701
10702 * Make-lang.in: Makefile automatically updated
10703
10704 2004-01-09 Mark Mitchell <mark@codesourcery.com>
10705
10706 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
10707
10708 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10709
10710 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
10711
10712 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
10713
10714 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
10715 Update comment and copyright date.
10716 * stamp-xgnatug: Delete.
10717
10718 2004-01-05 Robert Dewar <dewar@gnat.com>
10719
10720 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
10721 be modified by the binder generated main program if the -D switch is
10722 used.
10723
10724 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
10725 imported functions (since now we expect this to be done for imported
10726 functions)
10727
10728 * 5vtaprop.adb: Add several ??? for sections requiring more comments
10729 Minor reformatting throughout
10730
10731 * 5zinit.adb: Minor reformatting
10732 Add 2004 to copyright date
10733 Minor changes to avoid -gnatwa warnings
10734 Correct some instances of using OR instead of OR ELSE (noted while
10735 doing reformatting)
10736
10737 * sprint.adb: Minor updates to avoid -gnatwa warnings
10738
10739 * s-secsta.ads, s-secsta.adb:
10740 (SS_Get_Max): New function to obtain high water mark for ss stack
10741 Default_Secondary_Stack is not a constant since it may be modified by
10742 the binder generated main program if the -D switch is used.
10743
10744 * switch-b.adb: New -Dnnn switch for binder
10745
10746 * switch-c.adb:
10747 Make -gnatg imply all warnings currently in -gnatwa
10748
10749 * vms_conv.adb: Minor reformatting
10750 Add 2004 to copyright notice
10751 Add 2004 to printed copyright notice
10752
10753 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
10754 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
10755 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
10756 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
10757 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
10758 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
10759 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
10760 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
10761 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
10762 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
10763 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
10764 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
10765 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
10766 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
10767 checks.adb, clean.adb, cstand.adb, einfo.ads,
10768 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
10769 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
10770 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
10771 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
10772 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
10773 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
10774 Minor reformatting and code clean ups.
10775 Minor changes to prevent -gnatwa warnings
10776
10777 * ali.adb: Minor reformatting and cleanup of code
10778 Acquire new SS indication of secondary stack use from ali files
10779
10780 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
10781 (since now we expect this to be done for imported functions)
10782
10783 * bindgen.adb: Generate call to modify default secondary stack size if
10784 -Dnnn switch given
10785
10786 * bindusg.adb: Add line for new -D switch
10787
10788 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
10789 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
10790 Add circuitry for both records and arrays to avoid gigi
10791 processing if the type involved has non-bit-aligned components
10792
10793 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
10794 N_String_Literal node always references an E_String_Literal_Subtype
10795 entity. This may not be true in the future.
10796 (Possible_Bit_Aligned_Component): Move processing of
10797 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
10798
10799 * exp_ch6.adb (Expand_Thread_Body): Pick up
10800 Default_Secondary_Stack_Size as variable so that we get value modified
10801 by possible -Dnnn binder parameter.
10802
10803 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
10804 (Type_May_Have_Bit_Aligned_Components): New function.
10805
10806 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
10807 (Type_May_Have_Bit_Aligned_Components): New function.
10808
10809 * fe.h: (Set_Identifier_Casing): Fix prototype.
10810 Add declaration for Sem_Elim.Eliminate_Error_Msg.
10811 Minor reformatting.
10812
10813 * freeze.adb (Freeze_Entity): Add RM reference to error message about
10814 importing constant atomic/volatile objects.
10815 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
10816 unless explicit Pure_Function pragma given, to avoid insidious bug of
10817 call to non-pure imported function getting eliminated.
10818
10819 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
10820 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
10821 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
10822 Add 2004 to printed copyright notice
10823
10824 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
10825 stack used.
10826
10827 * Makefile.rtl: Add entry for g-sestin.o
10828 g-sestin.ads: New file.
10829
10830 * mdll.adb: Minor changes to avoid -gnatwa warnings
10831
10832 * mlib-tgt.adb: Minor reformatting
10833
10834 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
10835 New switch Sec_Stack_Used (GNAT, GNATBIND)
10836 Make Default_Secondary_Stack_Size a variable instead of a constant,
10837 so that it can be modified by the new -Dnnn bind switch.
10838
10839 * rtsfind.adb (Load_Fail): Give full error message in configurable
10840 run-time mode if all_errors mode is set. This was not done in the case
10841 of a file not found, which was an oversight.
10842 Note if secondary stack unit is used by compiler.
10843
10844 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
10845 ineffective elaborate all pragmas on non-visible packages (this
10846 happened when a renamed subprogram was called). Now the elaborate all
10847 always goes on the package containing the renaming rather than the one
10848 containing the renamed subprogram.
10849
10850 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
10851 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
10852
10853 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
10854 has an Etype that references an E_String_Literal.
10855 (Eval_String_Literal): Avoid assumption that N_String_Literal node
10856 always references an E_String_Literal_Subtype entity. This may not
10857 be true in the future.
10858
10859 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
10860 pragma location.
10861
10862 * sem_res.adb (Resolve): Specialize msg for function name used in proc
10863 call.
10864
10865 2004-01-05 Ed Falis <falis@gnat.com>
10866
10867 * g-debuti.adb: Replaced direct boolean operator with short-circuit
10868 form.
10869
10870 2004-01-05 Vincent Celier <celier@gnat.com>
10871
10872 * bld.adb: Minor comment updates
10873 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
10874 of Item_Name).
10875
10876 * make.adb (Gnatmake): Special process for files to compile/check when
10877 -B is specified. Fail when there are only foreign mains in attribute
10878 Main of the project file and -B is not specified. Do not skip bind/link
10879 steps when -B is specified.
10880
10881 * makeusg.adb: Document new switch -B
10882
10883 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
10884
10885 * switch-m.adb: (Scan_Make_Switches): Process -B switch
10886
10887 * vms_data.ads: Add new GNAT PRETTY qualifier
10888 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
10889
10890 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10891
10892 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
10893 case.
10894
10895 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
10896 Set_Identifier_Casing.
10897
10898 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
10899 has size that overflows.
10900
10901 2004-01-05 Gary Dismukes <dismukes@gnat.com>
10902
10903 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
10904 -gnatwa warning on static condition.
10905
10906 2004-01-05 Doug Rupp <rupp@gnat.com>
10907
10908 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
10909
10910 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
10911
10912 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
10913 all attributes, including read-only attribute.
10914
10915 2004-01-05 Pascal Obry <obry@gnat.com>
10916
10917 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
10918 library naming scheme.
10919
10920 * mlib-prj.adb (Build_Library): Generate different names for the static
10921 or dynamic version of the GNAT runtime. This is needed to support the
10922 new shared library naming scheme.
10923 (Process_Binder_File): Add detection of shared library in binder file
10924 based on the new naming scheme.
10925
10926 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
10927 scheme for the shared runtime libraries.
10928
10929 * Makefile.in:
10930 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
10931 scheme.
10932 (install-gnatlib): Do not create symlinks for shared libraries.
10933 (gnatlib-shared-default): Idem.
10934 (gnatlib-shared-dual-win32): New target. Not used for now as the
10935 auto-import feature does not support arrays/records.
10936 (gnatlib-shared-win32): Do not create copy for the shared libraries.
10937 (gnatlib-shared-vms): Fix shared runtime libraries names.
10938
10939 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
10940 dependent runtime shared library name.
10941
10942 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
10943
10944 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
10945 than the object.
10946
10947 2004-01-05 Ed Schonberg <schonberg@gnat.com>
10948
10949 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
10950 protected objects when allocator has a subtype indication, not a
10951 qualified expression. Note that qualified expressions may have to be
10952 checked when limited aggregates are implemented.
10953
10954 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
10955 pure, emit warning.
10956 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
10957 subprogram is imported, remove warning.
10958
10959 2004-01-05 Geert Bosch <bosch@gnat.com>
10960
10961 * s-poosiz.adb: Update copyright notice.
10962 (Allocate): Use Task_Lock to protect against concurrent access.
10963 (Deallocate): Likewise.
10964
10965 2004-01-05 Joel Brobecker <brobecker@gnat.com>
10966
10967 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
10968 comment.
10969
10970 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
10971
10972 * gnat_ug.texi: Force a CVS commit by updating copyright.
10973 * gnat_ug_vxw.texi: Regenerate.
10974 * gnat_ug_wnt.texi: Regenerate.
10975 * gnat_ug_vms.texi: Regenerate.
10976 * gnat_ug_unx.texi: Regenerate.
10977
10978 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
10979
10980 * trans.c: Remove uses of "register" specifier in
10981 declarations of local variables.
10982
10983 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
10984
10985 * stamp-xgnatug: New stamp file.
10986 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
10987 (ada/doctools/xgnatug): Add $(build_exeext).
10988 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
10989 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
10990
10991 2003-12-17 Ed Falis <falis@gnat.com>
10992
10993 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
10994 eliminate warning.
10995
10996 * a-exextr.adb: Add context clause for
10997 Ada.Exceptions.Last_Chance_Handler.
10998
10999 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
11000
11001 * cstand.adb (Create_Standard): Change the way how the declaration of
11002 the Duration type is created (making it the same way as it is for all
11003 the other standard types).
11004
11005 2003-12-17 Robert Dewar <dewar@gnat.com>
11006
11007 * s-crtl.ads: Fix header format
11008 Change Pure to Preelaborate
11009
11010 2003-12-17 Ed Schonberg <schonberg@gnat.com>
11011
11012 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
11013 the expression type only if it is declared in the current unit.
11014
11015 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
11016 are universal and already analyzed, as can occur in constrained
11017 subcomponents that depend on discriminants, when one constraint is a
11018 subtype mark.
11019
11020 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
11021 type Any_Fixed is legal as the argument of a conversion, if only one
11022 fixed-point type is in context.
11023
11024 2003-12-17 GNAT Script <nobody@gnat.com>
11025
11026 * Make-lang.in: Makefile automatically updated
11027
11028 2003-12-15 Robert Dewar <dewar@gnat.com>
11029
11030 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
11031 sec stack size.
11032
11033 2003-12-15 Vincent Celier <celier@gnat.com>
11034
11035 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
11036 (Gnatchop): Do not set failure status when reporting the number of
11037 warnings.
11038
11039 2003-12-15 Doug Rupp <rupp@gnat.com>
11040
11041 * s-ctrl.ads: New file.
11042
11043 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
11044
11045 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
11046 (GNATBIND_OBJS): Add ada/s-crtl.o.
11047
11048 * Makefile.in [VMS]: Clean up ifeq rules.
11049
11050 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
11051 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
11052 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
11053 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
11054 s-tasdeb.adb: Update copyright.
11055 Import System.CRTL.
11056 Make minor modifications to use System.CRTL declared functions instead
11057 of importing locally.
11058
11059 2003-12-15 GNAT Script <nobody@gnat.com>
11060
11061 * Make-lang.in: Makefile automatically updated
11062
11063 2003-12-11 Ed Falis <falis@gnat.com>
11064
11065 * 5zinit.adb: Clean up.
11066
11067 * 5zintman.adb (Notify_Exception): replaced case statement with a call
11068 to __gnat_map_signal, imported from init.c to support
11069 signal -> exception mappings that depend on the vxWorks version.
11070
11071 * init.c:
11072 Created and exported __gnat_map_signal to support signal -> exception
11073 mapping that is dependent on the VxWorks version.
11074 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
11075
11076 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
11077
11078 * 5wosinte.ads: Link with -mthreads switch.
11079
11080 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
11081
11082 * init.c (__gnat_install_handler [NetBSD]): Set
11083 __gnat_handler_installed, as done on all other platforms.
11084 Remove duplicated code.
11085
11086 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
11087
11088 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
11089
11090 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
11091
11092 * sinfo.ads: Fix inconsistent example code in comment.
11093
11094 2003-12-11 Robert Dewar <dewar@gnat.com>
11095
11096 * a-tiinau.adb: Add a couple of comments
11097
11098 * sem_ch3.adb: Minor reformatting
11099
11100 * sem_prag.adb:
11101 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
11102 Minor reformatting throughout
11103
11104 2003-12-11 Ed Schonberg <schonberg@gnat.com>
11105
11106 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
11107 bounds of a loop, create a separate block in order to generate proper
11108 cleanup actions to prevent memory leaks.
11109
11110 * sem_res.adb (Resolve_Call): After a call to
11111 Establish_Transient_Scope, the call may be rewritten and relocated, in
11112 which case no further processing is needed.
11113
11114 * sem_util.adb: (Wrong_Type): Refine previous fix.
11115 Fixes ACATS regressions.
11116
11117 PR ada/13353
11118
11119 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
11120 be inlined.
11121
11122 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
11123
11124 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
11125 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
11126 obsolete files.
11127
11128 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
11129 (rts-zfp): Ditto.
11130
11131 2003-12-08 Robert Dewar <dewar@gnat.com>
11132
11133 * 7sintman.adb: Minor reformatting
11134
11135 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
11136 standard linker options to get standard libraries linked. We now plan
11137 to provide dummy versions of these libraries to match the appropriate
11138 configurable run-time (e.g. if a library is not needed at all, provide
11139 a dummy empty library).
11140
11141 * targparm.ads: Configurable_Run_Time mode no longer affects linker
11142 options (-L parameters and standard libraries). What we plan to do is
11143 to provide dummy libraries where the libraries are not required.
11144
11145 * gnatbind.adb: Minor comment improvement
11146
11147 2003-12-08 Javier Miranda <miranda@gnat.com>
11148
11149 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
11150 aggregate in the parent. Otherwise constants with limited aggregates
11151 are not supported. Add new formal to pass the component type (Ctype).
11152 It is required to call the corresponding IP subprogram in case of
11153 default initialized components.
11154 (Gen_Assign): In case of default-initialized component, generate a
11155 call to the IP subprogram associated with the component.
11156 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
11157 of aggregate with default initialized components.
11158 (Has_Default_Init_Comps): Improve implementation to recursively check
11159 all the present expressions.
11160
11161 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
11162 to indicate that the initialization call corresponds to a
11163 default-initialized component of an aggregate.
11164 In case of default initialized aggregate with tasks this parameter is
11165 used to generate a null string (this is just a workaround that must be
11166 improved later). In case of discriminants, this parameter is used to
11167 generate a selected component node that gives access to the discriminant
11168 value.
11169
11170 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
11171 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
11172 allocated aggregates with default-initialized components.
11173
11174 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
11175 the box notation is used in positional aggregates.
11176
11177 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
11178
11179 * lib.ads: Fix typo in comment
11180
11181 2003-12-08 Vincent Celier <celier@gnat.com>
11182
11183 * prj.adb (Project_Empty): New component Unkept_Comments
11184 (Scan): Remove procedure; moved to Prj.Err.
11185
11186 * prj.ads (Project_Data): New Boolean component Unkept_Comments
11187 (Scan): Remove procedure; moved to Prj.Err.
11188
11189 * prj-dect.adb: Manage comments for the different declarations.
11190
11191 * prj-part.adb (With_Record): New component Node
11192 (Parse): New Boolean parameter Store_Comments, defaulted to False.
11193 Set the scanner to return ends of line and comments as tokens, if
11194 Store_Comments is True.
11195 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
11196 comments are associated with these nodes. Store the node IDs in the
11197 With_Records.
11198 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
11199 With_Records.
11200 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
11201 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
11202 current project. Call Tree.Restore afterwards. Set the various nodes
11203 for comment storage (Next_End, End_Of_Line, Previous_Line,
11204 Previous_End).
11205
11206 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
11207 defaulted to False.
11208
11209 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
11210 to False. When Truncated is True, truncate the string, never go to the
11211 next line.
11212 (Write_End_Of_Line_Comment): New procedure
11213 (Print): Process comments for nodes N_With_Clause,
11214 N_Package_Declaration, N_String_Type_Declaration,
11215 N_Attribute_Declaration, N_Typed_Variable_Declaration,
11216 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
11217 Process nodes N_Comment.
11218
11219 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
11220 without comments and there are some comments, set the flag
11221 Unkept_Comments to True.
11222 (Scan): If there are comments, set the flag Unkept_Comments to True and
11223 clear the comments.
11224 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
11225 (Next_End_Nodes: New table
11226 (Comment_Zones_Of): New function
11227 (Scan): New procedure; moved from Prj. Accumulate comments in the
11228 Comments table and set end of line comments, comments after, after end
11229 and before end.
11230 (Add_Comments): New procedure
11231 (Save, Restore, Seset_State): New procedures
11232 (There_Are_Unkept_Comments): New function
11233 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
11234 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
11235 procedures.
11236 (First_Comment_After, First_Comment_After_End): New functions
11237 (First_Comment_Before, First_Comment_Before_End): New functions
11238 (Next_Comment): New function
11239 (End_Of_Line_Comment, Follows_Empty_Line,
11240 Is_Followed_By_Empty_Line): New functions
11241 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
11242 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
11243 (Set_Next_Comment): New procedure
11244 (Default_Project_Node): Associate comment before if the node can store
11245 comments.
11246
11247 * scans.ads (Token_Type): New enumeration value Tok_Comment
11248 (Comment_Id): New global variable
11249
11250 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
11251 defaulted to False.
11252 (Scan): Store position of start of comment. If comments are tokens, set
11253 Comment_Id and set Token to Tok_Comment when scanning a comment.
11254 (Set_Comment_As_Token): New procedure
11255
11256 * sinput-p.adb: Update Copyright notice
11257 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
11258 that no longer exists.
11259
11260 2003-12-08 Javier Miranda <miranda@gnat.com>
11261
11262 * sem_aggr.adb: Add dependence on Exp_Tss package
11263 Correct typo in comment
11264 (Resolve_Aggregate): In case of array aggregates set the estimated
11265 type of the aggregate before calling resolve. This is needed to know
11266 the name of the corresponding IP in case of limited array aggregates.
11267 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
11268 in case of default initialized array components.
11269
11270 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
11271 types. Required to give support to limited aggregates in generic
11272 formals.
11273
11274 2003-12-08 Ed Schonberg <schonberg@gnat.com>
11275
11276 * sem_ch3.adb (Check_Initialization): For legality purposes, an
11277 inlined body functions like an instantiation.
11278 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
11279 until bounds are analyzed, to diagnose premature use of type.
11280
11281 * sem_util.adb (Wrong_Type): Improve error message when the type of
11282 the expression is used prematurely.
11283
11284 2003-12-08 GNAT Script <nobody@gnat.com>
11285
11286 * Make-lang.in: Makefile automatically updated
11287
11288 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
11289
11290 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
11291 they are automatically generated by Make-lang.in and cause nothing but
11292 maintenance troubles.
11293
11294 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
11295
11296 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
11297 version of this unit).
11298
11299 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
11300
11301 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
11302 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
11303 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
11304 the body of System.Interrupt_Management common to several targets.
11305 Update copyright notice when appropriate.
11306
11307 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
11308 constant.
11309
11310 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
11311 to ensure that the kernel fills in the interrupted context structure
11312 before calling a signal handler, which is necessary to be able to
11313 unwind past it. Update the copyright notice.
11314
11315 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
11316
11317 * a-elchha.ads: New file.
11318
11319 * a-elchha.adb: New default last chance handler. Contents taken from
11320 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
11321
11322 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
11323 is moved to a-elchha.adb to provide a target-independent default last
11324 chance handler.
11325
11326 * Makefile.rtl: Add a-elchha.o
11327
11328 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
11329
11330 2003-12-05 Ed Schonberg <schonberg@gnat.com>
11331
11332 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
11333 declared in an instance, do not inline the call if the instance is not
11334 frozen yet, to prevent order of elaboration problems.
11335
11336 * sem_prag.adb: Add comments for previous fix.
11337
11338 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
11339
11340 * g-table.adb: Use the right variable in Set_Item.
11341 Update copyright notice.
11342
11343 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
11344
11345 * Makefile.in: Remove unused rules.
11346
11347 2003-12-05 Vincent Celier <celier@gnat.com>
11348
11349 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
11350 -nostdlib. Not needed here after all.
11351
11352 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
11353
11354 PR ada/11724
11355
11356 * adaint.h, adaint.c, g-os_lib.ads:
11357 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
11358 on some platforms (including FreeBSD), it is a 64 bit value.
11359 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
11360
11361 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
11362
11363 * gnatvsn.ads (Library_Version): Now contain only the relevant
11364 version info.
11365 (Verbose_Library_Version): New constant.
11366
11367 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
11368 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
11369 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
11370
11371 * gnatlbr.adb: Clean up: replace Library_Version by
11372 Verbose_Library_Version.
11373
11374 * make.adb, lib-writ.adb, exp_attr.adb:
11375 Clean up: replace Library_Version by Verbose_Library_Version.
11376
11377 * 5lintman.adb: Removed.
11378
11379 * Makefile.in:
11380 Update and simplify computation of LIBRARY_VERSION.
11381 Fix computation of GSMATCH_VERSION.
11382 5lintman.adb is no longer used: replaced by 7sintman.adb.
11383
11384 2003-12-03 Robert Dewar <dewar@gnat.com>
11385
11386 * exp_ch5.adb:
11387 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
11388 name. Modified to consider small non-bit-packed arrays as troublesome
11389 and in need of component-by-component assigment expansion.
11390
11391 2003-12-03 Vincent Celier <celier@gnat.com>
11392
11393 * lang-specs.h: Process nostdlib as nostdinc
11394
11395 * back_end.adb: Update Copyright notice
11396 (Scan_Compiler_Arguments): Process -nostdlib directly.
11397
11398 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
11399
11400 * Makefile.in:
11401 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
11402 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
11403 included in HIE_NONE_TARGET_PAIRS.
11404
11405 2003-12-03 Ed Schonberg <schonberg@gnat.com>
11406
11407 * sem_attr.adb:
11408 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
11409 is legal in an instance, because legality is cheched in the template.
11410
11411 * sem_prag.adb:
11412 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
11413 appplied to an unchecked conversion of a formal parameter.
11414
11415 * sem_warn.adb:
11416 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
11417 variables.
11418
11419 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
11420
11421 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
11422 routines. The second one is new functionality to deal with backtracing
11423 through signal handlers.
11424 (unwind): Split into the two separate subroutines above.
11425 Update the documentation, and deal properly with sizeof (REG) different
11426 from sizeof (void*).
11427
11428 2003-12-01 Nicolas Setton <setton@act-europe.fr>
11429
11430 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
11431 so that the debugger can reliably access the value of the parameter,
11432 and therefore is able to display the exception name when an exception
11433 breakpoint is reached.
11434
11435 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
11436
11437 * fmap.adb: Fix typo in warning message.
11438
11439 * g-socket.ads, g-socket.adb: Make Free a visible instance of
11440 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
11441
11442 2003-12-01 Vincent Celier <celier@gnat.com>
11443
11444 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
11445 ther is no Afile.
11446 (Build_Library): Get the switches only if Default_Switches is declared
11447 in package Binder.
11448
11449 2003-12-01 Ed Schonberg <schonberg@gnat.com>
11450
11451 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
11452 actuals that are indexed components, reanalyze actual to ensure that
11453 packed array references are properly expanded.
11454
11455 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
11456 attempted assignment to a discriminant.
11457
11458 2003-12-01 Robert Dewar <dewar@gnat.com>
11459
11460 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
11461 reformatting.
11462
11463 * switch-c.adb: Minor reformatting of comments
11464
11465 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
11466
11467 * Makefile.in: Clean ups.
11468
11469 2003-12-01 GNAT Script <nobody@gnat.com>
11470
11471 * Make-lang.in: Makefile automatically updated
11472
11473 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
11474
11475 * 5wsystem.ads: Disable zero cost exception, not ready yet.
11476
11477 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
11478
11479 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
11480 to force serialization.
11481
11482 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
11483
11484 * g-socket.ads, g-socket.adb:
11485 Clarify documentation of function Stream. Introduce a Free procedure
11486 to release the returned Stream once it becomes unused.
11487
11488 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
11489
11490 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
11491
11492 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
11493 since NT 4 cannot handle timeout values that are too large,
11494 e.g. DWORD'Last - 1.
11495
11496 2003-11-26 Ed Schonberg <schonberg@gnat.com>
11497
11498 * exp_ch4.adb:
11499 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
11500 in procedure calls and whose expansion must be deferred.
11501
11502 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
11503 is in exp_ch4.
11504
11505 * sem_ch3.adb:
11506 (Build_Derived_Array_Type): Create operator for unconstrained type
11507 if ancestor is unconstrained.
11508
11509 2003-11-26 Vincent Celier <celier@gnat.com>
11510
11511 * make.adb (Project_Object_Directory): New global variable
11512 (Change_To_Object_Directory): New procedure
11513 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
11514 of Change_Dir directly. Do not change working directory to object
11515 directory of main project after each compilation.
11516 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
11517 directly.
11518 Change to object directory of main project before binding step.
11519 (Initialize): Initialize Project_Object_Directory to No_Project
11520
11521 * mlib-prj.adb:
11522 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
11523 binding a Stand-Alone Library.
11524
11525 * output.adb: Update Copyright notice
11526 (Write_Char): Output buffer when full
11527
11528 2003-11-26 Robert Dewar <dewar@gnat.com>
11529
11530 * sem_ch13.adb: (Check_Size): Reset size if size is too small
11531
11532 * sem_ch13.ads:
11533 (Check_Size): Fix documentation to include bit-packed array case
11534
11535 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
11536
11537 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
11538
11539 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
11540
11541 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
11542
11543 PR ada/13142
11544 * utils.c (init_gigi_decls): Change name of built-in setjmp to
11545 __builtin_setjmp, since this is apparently needed by recent
11546 non Ada changes.
11547
11548 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11549
11550 * adadecode.c: Only include ctype.h if not IN_GCC.
11551 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
11552
11553 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
11554
11555 * Makefile.in:
11556 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
11557 signals and interrupts.
11558
11559 * 5zintman.ads: New File.
11560
11561 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
11562 add exception signals to the set of unmasked signals.
11563
11564 * 5ztaprop.adb:
11565 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
11566 between signals and interrupts.
11567 Add to Unblocked_Signal_Mask the set of signals that are in
11568 Keep_Unmasked.
11569
11570 * 7sinmaop.adb:
11571 Adding a check to see whether the Interrupt_ID we want to unmask is in
11572 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
11573 reason is that the index type of the Keep_Unmasked array is not always
11574 Interrupt_ID; it may be a subtype of Interrupt_ID.
11575
11576 2003-11-24 Gary Dismukes <dismukes@gnat.com>
11577
11578 * exp_util.adb:
11579 (Remove_Side_Effects): Condition constantness of object created for a
11580 an unchecked type conversion on the constantness of the expression
11581 to ensure the correct value for 'Constrained when passing components
11582 of view-converted class-wide objects.
11583
11584 2003-11-24 Robert Dewar <dewar@gnat.com>
11585
11586 * par-load.adb (Load): Improve handling of misspelled and missing units
11587 Removes several cases of compilation abandoned messages
11588
11589 * lib.adb: (Remove_Unit): New procedure
11590
11591 * lib.ads: (Remove_Unit): New procedure
11592
11593 * lib-load.adb: Minor reformatting
11594
11595 2003-11-24 Vincent Celier <celier@gnat.com>
11596
11597 * make.adb:
11598 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
11599 (Marking_Label): Label to mark processed source files. Incremented for
11600 each executable.
11601 (Gnatmake): Increase Marking_Labet for each executable
11602 (Is_Marked): Compare against marking label
11603 (Mark): Mark with marking label
11604
11605 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
11606
11607 * s-thread.ads:
11608 Move the declaration of the TSD for System.Threads to System.Soft_Links.
11609 Add some comments.
11610
11611 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
11612 (rts-cert): build a single relocatable object for the run-time lib.
11613 Fix perms.
11614
11615 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
11616
11617 * Make-lang.in:
11618 Use gnatls rather than gcc to obtain the location of GNAT RTL for
11619 crosstools build.
11620
11621 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
11622
11623 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
11624 can not use it as before (that is, as a variable) when dumping it into
11625 the tree file. Add a local variable to store the result of this
11626 function and to be used as the string to be written into the tree.
11627
11628 * scn.adb (Initialize_Scanner): Add comments explaining the recent
11629 changes.
11630
11631 * sinput.adb (Source_First, Source_Last): In case of
11632 Internal_Source_File, replace returning attributes of
11633 Internal_Source_Ptr (which is wrong) with returning attributes of
11634 Internal_Source.
11635
11636 2003-11-24 Ed Schonberg <schonberg@gnat.com>
11637
11638 * sem_ch3.adb:
11639 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
11640 used for implicit concatenation operators.
11641 Code cleanup.
11642
11643 * sem_elab.adb:
11644 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
11645 task bodies that are in the scope of a Suppress pragma.
11646 (Check_A Call): Use the flag to prevent spurious elaboration checks.
11647
11648 * sinfo.ads, sinfo.adb:
11649 New flag No_Elaboration_Check on function/procedure calls, to properly
11650 suppress checks on calls in task bodies that are within a local suppress
11651 pragma.
11652
11653 * exp_ch4.adb:
11654 (Expand_Concatenate_Other): Use the proper integer type for the
11655 expression for the upper bound, to avoid universal_integer computations
11656 when possible.
11657
11658 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
11659
11660 * .cvsignore: Delete.
11661
11662 2003-11-21 Andreas Schwab <schwab@suse.de>
11663
11664 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
11665
11666 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
11667
11668 * 5wsystem.ads: Enable zero cost exception.
11669
11670 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
11671
11672 * 5ztiitho.adb: Remove an unreferenced variable.
11673
11674 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
11675
11676 * adaint.c: For FreeBSD, use mkstemp.
11677
11678 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
11679
11680 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
11681
11682 2003-11-21 Robert Dewar <dewar@gnat.com>
11683
11684 * bld.adb: Remove useless USE of gnatvsn
11685
11686 * gnatchop.adb: Minor reformatting
11687 Clean up version handling to be more consistent
11688
11689 * gnatxref.adb: Minor reformatting
11690
11691 * gprcmd.adb: Minor reformatting
11692 Fix output of copyright to be more consistent with other tools
11693
11694 2003-11-21 Vincent Celier <celier@gnat.com>
11695
11696 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
11697
11698 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
11699
11700 * atree.adb (Initialize): Add initializations for global variables
11701 used in New_Copy_Tree.
11702
11703 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
11704 Internal_Source_File as the actual).
11705 Put the set of statements creating Any_Character before the set of
11706 statements creating Any_Array to have Any_Character fully initialized
11707 when it is used in creating Any_Array.
11708
11709 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
11710 not call Scan in case if the actual is Internal_Source_File
11711 Add 2003 to copyright note.
11712
11713 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
11714 processing Internal_Source_File.
11715
11716 * types.ads: Add the constant Internal_Source_File representing the
11717 source buffer for artificial source-code-like strings created within
11718 the compiler (the definition of Source_File_Index is changed).
11719
11720 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
11721
11722 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
11723 56system.ads: New file, FreeBSD version.
11724
11725 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
11726
11727 * Make-lang.in (ada.extraclean): Delete.
11728
11729 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
11730
11731 * gnatmem.adb: Clean up verbose output.
11732
11733 * gprcmd.adb: Change copyright to FSF.
11734
11735 2003-11-19 Vincent Celier <celier@gnat.com>
11736
11737 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
11738 and Version (ignored).
11739
11740 * symbols.ads: (Policy): New type
11741 (Initialize): New parameter Reference, Symbol_Policy and
11742 Library_Version.
11743 Remove parameter Force.
11744 Minor reformatting.
11745
11746 * snames.ads, snames.adbadb: New standard names
11747 Library_Reference_Symbol_File and Library_Symbol_Policy
11748
11749 * mlib-prj.adb:
11750 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
11751 project.
11752
11753 * mlib-tgt.adb:
11754 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
11755
11756 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
11757
11758 * prj.adb: (Project_Empty): New component Symbol_Data
11759
11760 * prj.ads: (Policy, Symbol_Record): New types
11761 (Project_Data): New component Symbol_Data
11762
11763 * prj-attr.adb:
11764 New attributes Library_Symbol_File, Library_Symbol_Policy and
11765 Library_Reference_Symbol_File.
11766
11767 * prj-nmsc.adb:
11768 (Ada_Check): When project is a Stand-Alone library project, process
11769 attribute Library_Symbol_File, Library_Symbol_Policy and
11770 Library_Reference_Symbol_File.
11771
11772 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
11773 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
11774 5sml-tgt.adb (Build_Dynamic_Library): New parameter
11775 Symbol_Data (ignored).
11776
11777 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
11778 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
11779 functions Option_File_Name and Version_String. Set new options of
11780 gnatsym related to symbol file, symbol policy and reference symbol
11781 file.
11782
11783 * 5vsymbol.adb:
11784 Extensive modifications to take into account the reference symbol file,
11785 the symbol policy, the library version and to put in the symbol file the
11786 minor and major IDs.
11787
11788 * bld.adb (Process_Declarative_Items): Put second argument of
11789 gprcmd to_absolute between single quotes, to avoid problems with
11790 Windows.
11791
11792 * bld-io.adb: Update Copyright notice.
11793 (Flush): Remove last character of a line, if it is a back slash, to
11794 avoid make problems.
11795
11796 * gnatsym.adb:
11797 Implement new scheme with reference symbol file and symbol policy.
11798
11799 * g-os_lib.ads: (Is_Directory): Clarify comment
11800
11801 2003-11-19 Robert Dewar <dewar@gnat.com>
11802
11803 * atree.adb: Move New_Copy_Tree global variables to head of package
11804
11805 * errout.adb: Minor reformatting
11806
11807 2003-11-19 Javier Miranda <miranda@gnat.com>
11808
11809 * sem_ch4.adb: (Diagnose_Call): Improve error message.
11810 Add reference to Ada0Y (AI-50217)
11811
11812 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
11813 sem_util.adb: Add reference to AI-50217
11814
11815 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
11816
11817 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
11818
11819 * sem_aggr.adb: Complete documentation of AI-287 changes
11820
11821 * par-ch4.adb: Document previous changes.
11822
11823 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
11824 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
11825 Ada0Y (AI-50217)
11826
11827 * exp_aggr.adb: Add references to AI-287 in previous changes
11828
11829 2003-11-19 Ed Schonberg <schonberg@gnat.com>
11830
11831 * exp_ch6.adb:
11832 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
11833 in the rewriting is the result of an inlined call.
11834
11835 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
11836 parameter is a type conversion, use original node to construct the
11837 post-call assignment, because expression may have been rewritten, e.g.
11838 if it is a packed array.
11839
11840 * sem_attr.adb:
11841 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
11842 body, just as it is in an instance.
11843 Categorization routines
11844
11845 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
11846 Instantiate_Object): Set proper sloc reference for message on missing
11847 actual.
11848
11849 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
11850
11851 * Makefile.in: Add FreeBSD libgnat pairs.
11852
11853 * usage.adb: Fix typo in usage message.
11854
11855 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
11856
11857 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
11858 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
11859 pragma Thread_Body.
11860 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
11861
11862 * s-thread.adb: This file is now a dummy implementation of
11863 System.Thread.
11864
11865 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
11866
11867 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
11868
11869 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
11870
11871 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
11872 instanciation references in the parent type description.
11873
11874 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11875
11876 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
11877
11878 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
11879 TYPE_PRECISION directly from esize.
11880
11881 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
11882
11883 * cstreams.c:
11884 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
11885
11886 * init.c: Initialization routines for FreeBSD
11887
11888 * link.c: Link info for FreeBSD
11889
11890 * sysdep.c: Add the case of FreeBSD
11891
11892 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
11893
11894 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
11895 already called in System.Threads.
11896
11897 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
11898 environment task, as it has been moved to System.Threads.Initialization.
11899
11900 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
11901
11902 * adaint.c (__gnatlib_install_locks): Only reference
11903 __gnat_install_locks on VMS, since other platforms can avoid using
11904 --enable-threads=gnat
11905
11906 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11907
11908 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
11909
11910 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
11911 TYPE_PACKED_ARRAY_TYPE_P.
11912 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
11913
11914 Part of PR ada/12806
11915 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
11916 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
11917
11918 2003-11-17 Vincent Celier <celier@gnat.com>
11919
11920 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
11921 to False.
11922 Do not set exit status to Failure when Warning is True.
11923 (Gnatchop): Make errors "no compilation units found" and
11924 "no source files written" warnings only.
11925
11926 * make.adb (Gnatmake): When using a project file, set
11927 Look_In_Primary_Dir to False.
11928 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
11929 and Local_Configuration_Pragmas in the project where they are declared
11930 not an extending project which might have inherited them.
11931
11932 * osint.adb (Locate_File): If Name is already an absolute path, do not
11933 look for a directory.
11934
11935 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
11936 -gnats (Check_Syntax) is used, issue only a warning, not an error.
11937
11938 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
11939 in objects of type Variable_Value.
11940
11941 * prj.ads: (Variable_Value): New component Project
11942
11943 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
11944 is in a project extended by Project.
11945
11946 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
11947 Project of Variable_Values to this new parameter value.
11948 (Expression): Set component Project of Variable_Values.
11949 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
11950 Set the component Project in array elements.
11951
11952 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
11953
11954 * errout.adb: (Initialize): Add initialization for error nodes.
11955
11956 * sem_ch12.adb (Initialize): Add missing initializations for
11957 Exchanged_Views and Hidden_Entities.
11958
11959 2003-11-17 Ed Schonberg <schonberg@gnat.com>
11960
11961 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
11962 already instantiated tree for use in subsequent inlining.
11963 (Analyze_Associations, Instantiate_Formal_Subprogram,
11964 Instantiate_Object): improve error message for mismatch in
11965 instantiations.
11966
11967 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
11968 instantiations of subprograms declared in instances.
11969
11970 2003-11-17 Javier Miranda <miranda@gnat.com>
11971
11972 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
11973 executed only under the Extensions_Allowed flag.
11974
11975 2003-11-17 Robert Dewar <dewar@gnat.com>
11976
11977 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
11978 zeroes suppressed.
11979 (Address_Image): Fix bug of returning 0x instead of 0x0
11980 Minor reformatting (function specs).
11981
11982 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
11983 (missed case of 33-63)
11984
11985 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
11986
11987 * s-thread.adb: Add comments for pragma Restriction
11988
11989 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
11990 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
11991
11992 2003-11-17 Ed Falis <falis@gnat.com>
11993
11994 * s-thread.adb: Added No_Tasking restriction for this implementation.
11995
11996 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
11997
11998 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
11999 instanciation references in the parent type description.
12000
12001 2003-11-17 GNAT Script <nobody@gnat.com>
12002
12003 * Make-lang.in: Makefile automatically updated
12004
12005 2003-11-16 Jason Merrill <jason@redhat.com>
12006
12007 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
12008 and TAGS files that include them for each front end.
12009
12010 2003-11-14 Andreas Jaeger <aj@suse.de>
12011
12012 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
12013 is the canonical version.
12014 * misc.c (gnat_handle_option): Likewise.
12015
12016 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
12017
12018 * 5nsystem.ads: New file for x86_64-linux-gnu.
12019
12020 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
12021
12022 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
12023
12024 * comperr.adb: Fix logic in previous change.
12025
12026 2003-11-13 Vincent Celier <celier@gnat.com>
12027
12028 * 5bml-tgt.adb (Build_Dynamic_Library): Use
12029 Osint.Include_Dir_Default_Prefix instead of
12030 Sdefault.Include_Dir_Default_Name.
12031
12032 * gnatlbr.adb: Update Copyright notice
12033 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
12034 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
12035 instead of Sdefault.Object_Dir_Default_Name
12036
12037 * gnatlink.adb:
12038 (Process_Binder_File): Never suppress the option following -Xlinker
12039
12040 * mdll-utl.adb:
12041 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
12042 Sdefault.Object_Dir_Default_Name.
12043
12044 * osint.ads, osint.adb:
12045 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
12046 Minor reformatting.
12047
12048 * vms_conv.ads: Minor reformating
12049 Remove GNAT STANDARD and GNAT PSTA
12050
12051 * vms_conv.adb:
12052 Allow GNAT MAKE to have several files on the command line.
12053 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
12054 Sdefault.Object_Dir_Default_Name.
12055 Minor Reformating
12056 Remove data for GNAT STANDARD
12057
12058 * vms_data.ads:
12059 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
12060 Remove data for GNAT STANDARD
12061 Remove options and documentation for -gnatwb/-gnatwB: these warning
12062 options no longer exist.
12063
12064 2003-11-13 Ed Falis <falis@gnat.com>
12065
12066 * 5zthrini.adb: (Init_RTS): Made visible
12067
12068 * 5zthrini.adb:
12069 (Register): Removed unnecessary call to taskVarGet that checked whether
12070 an ATSD was already set as a task var for the argument thread.
12071
12072 * s-thread.adb:
12073 Updated comment to reflect that this is a VxWorks version
12074 Added context clause for System.Threads.Initialization
12075 Added call to System.Threads.Initialization.Init_RTS
12076
12077 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
12078
12079 * 5zthrini.adb:
12080 (Init_RTS): New procedure, for the initialization of the run-time lib.
12081
12082 * s-thread.adb:
12083 Remove dependancy on System.Init, so that this file can be used in the
12084 AE653 sequential run-time lib.
12085
12086 2003-11-13 Robert Dewar <dewar@gnat.com>
12087
12088 * bindgen.adb: Minor reformatting
12089
12090 2003-11-13 Ed Schonberg <schonberg@gnat.com>
12091
12092 * checks.adb:
12093 (Apply_Discriminant_Check): Do no apply check if target type is derived
12094 from source type with no applicable constraint.
12095
12096 * lib-writ.adb:
12097 (Ensure_System_Dependency): Do not apply the style checks that may have
12098 been specified for the main unit.
12099
12100 * sem_ch8.adb:
12101 (Find_Selected_Component): Further improvement in error message, with
12102 RM reference.
12103
12104 * sem_res.adb:
12105 (Resolve): Handle properly the case of an illegal overloaded protected
12106 procedure.
12107
12108 2003-11-13 Javier Miranda <miranda@gnat.com>
12109
12110 * exp_aggr.adb:
12111 (Has_Default_Init_Comps): New function to check the presence of
12112 default initialization in an aggregate.
12113 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
12114 extension aggregate of a limited record. In addition, a new formal
12115 was added to do not initialize the record controller (if any) during
12116 this recursive expansion of ancestors.
12117 (Init_Controller): Add support for limited record components.
12118 (Expand_Record_Aggregate): In case of default initialized components
12119 convert the aggregate into a set of assignments.
12120
12121 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
12122 describing the new syntax.
12123 Nothing else needed to be done because this subprogram delegates part of
12124 its work to P_Precord_Or_Array_Component_Association.
12125 (P_Record_Or_Array_Component_Association): Give support to the new
12126 syntax for default initialization of components.
12127
12128 * sem_aggr.adb:
12129 (Resolve_Aggregate): Relax the strictness of the frontend in case of
12130 limited aggregates.
12131 (Resolve_Record_Aggregate): Give support to default initialized
12132 components.
12133 (Get_Value): In case of default initialized components, duplicate
12134 the corresponding default expression (from the record type
12135 declaration). In case of default initialization in the *others*
12136 choice, do not check that all components have the same type.
12137 (Resolve_Extension_Aggregate): Give support to limited extension
12138 aggregates.
12139
12140 * sem_ch3.adb:
12141 (Check_Initialization): Relax the strictness of the front-end in case
12142 of aggregate and extension aggregates. This test is now done in
12143 Get_Value in a per-component manner.
12144
12145 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
12146 expression corresponds to a limited aggregate. This test is now done
12147 in Get_Value.
12148
12149 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
12150 Box_Present flag.
12151
12152 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
12153 present in an N_Component_Association node
12154
12155 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
12156
12157 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
12158 type-conformant entry only if they are homographs.
12159
12160 2003-11-13 GNAT Script <nobody@gnat.com>
12161
12162 * Make-lang.in: Makefile automatically updated
12163
12164 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12165
12166 * adadecode.c: Use <> form of include for ctype.h.
12167 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
12168
12169 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12170
12171 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
12172 Works around PR middle-end/6552.
12173
12174 2003-11-10 Ed Falis <falis@gnat.com>
12175
12176 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
12177
12178 * 5zinit.adb: (Install_Handler): Moved back to spec
12179 (Install_Signal_Handlers): Deleted
12180
12181 * 5zthrini.adb: Added context clause for System.Storage_Elements
12182 (Register): Only handles creation of taskVar; initialization moved to
12183 Thread_Body_Enter.
12184 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
12185 Added declaration of environment task secondary stack and
12186 initialization.
12187
12188 * s-thread.adb: Implement bodies for thread body processing
12189
12190 * s-thread.ads:
12191 Added comment identifying supported targets for pragma Thread_Body.
12192
12193 2003-11-10 Pascal Obry <obry@gnat.com>
12194
12195 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
12196 GNAT_MAX_PATH_LEN.
12197
12198 * s-fileio.adb:
12199 (Open): Properly check for string length before copying into the buffer.
12200 Raises Name_Error if buffer is too small. Note that this was a potential
12201 buffer overflow.
12202
12203 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
12204
12205 * bindgen.adb, comperr.adb: Code clean ups.
12206 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
12207
12208 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
12209
12210 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
12211
12212 2003-11-10 Vincent Celier <celier@gnat.com>
12213
12214 * gprcmd.adb:
12215 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
12216 installation.
12217
12218 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
12219
12220 * prj.adb: (Project_Empty): Add new boolean component Virtual
12221
12222 * prj.ads: (Virtual_Prefix): New constant string
12223 (Project_Data): New boolean component Virtual
12224
12225 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
12226 a library project is extended by a virtual extending project.
12227
12228 * prj-part.adb:
12229 Modifications throughout to implement extending-all project, including:
12230 (Virtual_Hash, Processed_Hash): New hash tables
12231 (Create_Virtual_Extending_Project): New procedure
12232 (Look_For_Virtual_Projects_For): New procedure
12233
12234 * prj-proc.adb:
12235 (Process): After checking the projects, if main project is an
12236 extending-all project, set the object directory of all virtual extending
12237 project to the object directory of the main project.
12238 Adjust error message when a virtual extending project has the same
12239 object directory as an project being extended.
12240 (Recursive_Process): If name starts with the virtual prefix, set Virtual
12241 to True in the project data.
12242
12243 * prj-tree.adb:
12244 (Default_Project_Node): Add new boolean component Extending_All
12245 (Is_Extending_All): New function
12246 (Set_Is_Extending_All): New procedure
12247
12248 * prj-tree.ads: (Is_Extending_All): New function
12249 (Set_Is_Extending_All): New procedure
12250 (Project_Node_Record): New boolean component Extending_All
12251
12252 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
12253
12254 * vms_data.ads:
12255 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
12256
12257 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
12258 "gprcmd prefix" to define it.
12259
12260 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
12261
12262 * einfo.ads: Fix a typo and remove an extraneous word in comments.
12263
12264 * lib-load.adb:
12265 (Create_Dummy_Package_Unit): Set the scope of the entity for the
12266 created dummy package to Standard_Standard, not to itself, to
12267 defend other parts of the front-end against encoutering a cycle in
12268 the scope chain.
12269
12270 * sem_ch10.adb:
12271 (Analyze_With_Clause): When setting the entities for the successive
12272 N_Expanded_Names that constitute the name of a child unit, do not
12273 attempt to go further than Standard_Standard in the chain of scopes.
12274 This case arises from the placeholder units created by
12275 Create_Dummy_Package_Unit in the case of a with_clause for a
12276 nonexistent child unit.
12277
12278 2003-11-10 Ed Schonberg <schonberg@gnat.com>
12279
12280 * exp_ch6.adb:
12281 (Expand_Thread_Body): Place subprogram on scope stack, so that new
12282 declarations are given the proper scope.
12283
12284 * sem_ch13.adb:
12285 (Check_Expr_Constants): Reject an expression that contains a constant
12286 created during expansion, and that appears after the object to which
12287 the address clause applies.
12288
12289 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
12290 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
12291 that uses 'Range of a function call with controlled components, so
12292 that the function result can be finalized before starting the loop.
12293
12294 * sem_ch8.adb:
12295 (Find_Selected_Component): Improve error message when prefix is
12296 an implicit dereference of an incomplete type.
12297
12298 2003-11-10 Robert Dewar <dewar@gnat.com>
12299
12300 * opt.ads: New Print_Standard flag for -gnatS switch
12301
12302 * sem_ch13.adb: Remove some additional checks for unaligned arrays
12303
12304 * cstand.adb (Create_Standard): Print out package standard if -gnatS
12305 switch set
12306
12307 * debug.adb: Update doc for -gnatds to discuss relationship with new
12308 -gnatS flag
12309
12310 * sinfo.adb: Add new field Entity_Or_Associated_Node
12311
12312 * sinfo.ads: Add new field Entity_Or_Associated_Node
12313 Update documentation for Associated_Node and Entity fields to clarify
12314 relationship and usage.
12315
12316 * sprint.adb:
12317 (Write_Id): Properly process Associated_Node field in generic template
12318
12319 * switch-c.adb:
12320 Recognize new -gnatS switch for printing package Standard
12321 This replaces gnatpsta
12322
12323 * usage.adb:
12324 Add line for new -gnatS switch for printing package Standard
12325 This replaces gnatpsta
12326
12327 2003-11-10 Andreas Jaeger <aj@suse.de>
12328
12329 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
12330 integer.
12331
12332 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
12333
12334 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
12335 by gnat1.
12336
12337 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
12338
12339 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
12340 no longer needed.
12341
12342 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
12343
12344 * sysdep.c: Add handling of cygwin.
12345
12346 2003-11-10 GNAT Script <nobody@gnat.com>
12347
12348 * Make-lang.in: Makefile automatically updated
12349
12350 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
12351
12352 PR 12950
12353 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
12354 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
12355 Replace GNAT_ROOT by GCC_ROOT.
12356
12357 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
12358
12359 2003-11-06 Zack Weinberg <zack@codesourcery.com>
12360
12361 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
12362 and update for changed meaning of GET_MODE_BITSIZE.
12363
12364 2003-11-04 Doug Rupp <rupp@gnat.com>
12365
12366 * sysdep.c: Problem discovered during IA64 VMS port.
12367 [VMS] #include <unixio.h> to get proper prototypes.
12368
12369 * adaint.c:
12370 Issues discovered/problems fixed during IA64 VMS port.
12371 [VMS] #define _POSIX_EXIT for proper semantics.
12372 [VMS] #include <unixio.h> for proper prototypes.
12373 [VMS] (fork): #define IA64 version.
12374 (__gnat_os_exit): Remove unnecessary VMS specific code.
12375
12376 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12377
12378 Part of PR ada/12806
12379
12380 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
12381 tree, not integer.
12382
12383 * decl.c:
12384 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
12385 not integer.
12386
12387 * targtyps.c, decl.c, misc.c,
12388 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
12389 routines to work around change in FP sizing semantics in GCC.
12390
12391 * utils.c:
12392 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
12393
12394 * gigi.h: (enumerate_modes): New function.
12395
12396 * Make-lang.in: (ada/misc.o): Add real.h.
12397
12398 * misc.c: (enumerate_modes): New function.
12399
12400 2003-11-04 Robert Dewar <dewar@gnat.com>
12401
12402 * 3vtrasym.adb: Minor reformatting
12403 Use terminology encoded/decoded name, rather than C++ specific notion
12404 of mangling (this is the terminology used throughout GNAT).
12405
12406 * einfo.h: Regenerated
12407
12408 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
12409
12410 * exp_ch6.adb:
12411 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
12412
12413 * par-prag.adb: Add dummy entry for Thread_Body pragma
12414
12415 * rtsfind.ads:
12416 Add entries for System.Threads entities for thread body processing
12417
12418 * sem_attr.adb:
12419 (Analyze_Pragma, Access attributes): Check these are not applied to a
12420 thread body, since this is not permitted
12421
12422 * sem_prag.adb: Add processing for Thread_Body pragma.
12423 Minor comment fix.
12424
12425 * sem_res.adb:
12426 (Resolve_Call): Check for incorrect attempt to call a thread body
12427 procedure with a direct call.
12428
12429 * snames.ads, snames.adb: Add entry for Thread_Body pragma
12430 Add names associated with thread body expansion
12431
12432 * snames.h: Add entry for Thread_Body pragma
12433
12434 * s-thread.adb: Add entries for thread body processing
12435 These are dummy bodies so far
12436
12437 * s-thread.ads: Add documentation on thread body handling.
12438 Add entries for thread body processing.
12439
12440 2003-11-04 Javier Miranda <miranda@gnat.com>
12441
12442 * sem_ch10.adb:
12443 (Build_Limited_Views): Return after posting an error in case of limited
12444 with_clause on subprograms, generics, instances or generic renamings
12445 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
12446 on subprograms, generics, instances or generic renamings
12447
12448 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
12449
12450 * raise.c (setup_to_install): Correct mistake in last revision; two
12451 arguments out of order.
12452
12453 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
12454 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
12455 notice, missed in previous change.
12456 Remove trailing blanks and other style errors introduced in previous
12457 change.
12458
12459 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
12460
12461 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
12462 rid of the wrapper for a LJM type, ensuring we don't do that if the
12463 field is addressable. This avoids potential low level type view
12464 mismatches later on, for instance in a by-reference argument passing
12465 process.
12466
12467 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12468
12469 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
12470 aligned at byte boundary.
12471
12472 2003-11-04 Joel Brobecker <brobecker@gnat.com>
12473
12474 * decl.c (components_to_record): Do not delete the empty variants from
12475 the end of the union type.
12476
12477 2003-11-04 Ed Schonberg <schonberg@gnat.com>
12478
12479 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
12480 operation for a derived type, an explicit declaration may use a local
12481 subtype of Boolean.
12482
12483 2003-11-04 Vincent Celier <celier@gnat.com>
12484
12485 * make.adb (Gnatmake): Allow main sources on the command line with a
12486 library project when it is only for compilation (no binding or
12487 linking).
12488
12489 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12490
12491 * Makefile.in: Remove many duplicate variables.
12492
12493 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
12494
12495 * Make-lang.in (dvi): Move targets to $(docobjdir).
12496 (gnat_ug_vms.dvi): Simplify rule and adjust target.
12497 (gnat_ug_wnt.dvi): Likewise.
12498 (gnat_ug_unx.dvi): Likewise.
12499 (gnat_ug_vxw.dvi): Likewise.
12500 (gnat_rm.dvi): Likewise.
12501 (gnat-style.dvi): Likewise.
12502
12503 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
12504
12505 * gigi.h: Missed commit from update for C90.
12506
12507 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
12508
12509 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
12510
12511 2003-10-31 Andreas Schwab <schwab@suse.de>
12512
12513 * raise.c (get_action_description_for): Fix typo in last change.
12514
12515 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
12516
12517 PR ada/12761
12518 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
12519 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
12520
12521 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
12522
12523 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
12524 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
12525 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
12526 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
12527 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
12528
12529 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
12530
12531 * 3vtrasym.adb:
12532 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
12533 numbers when symbol name is too long.
12534
12535 2003-10-30 Ed Falis <falis@gnat.com>
12536
12537 * g-signal.ads, g-signal.adb: New files
12538
12539 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
12540
12541 * Makefile.rtl: Introduce GNAT.Signals
12542
12543 2003-10-30 Robert Dewar <dewar@gnat.com>
12544
12545 * freeze.adb: Minor reformatting
12546
12547 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
12548
12549 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
12550 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
12551 New handling of Id_Check parameter to improve recognition of keywords
12552 used as identifiers.
12553 Update copyright notice to include 2003
12554
12555 2003-10-29 Robert Dewar <dewar@gnat.com>
12556
12557 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
12558 sem_ch10.adb: Minor reformatting
12559
12560 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
12561 (Expand_Assign_Record): Test right hand side for bit unaligned as well
12562
12563 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
12564
12565 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
12566 Support for TBK$SYMBOLIZE-based symbolic traceback.
12567
12568 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
12569
12570 * exp_disp.adb:
12571 Revert previous change, that did not work well when pragma No_Run_Time
12572 was used in conjunction with a run-time other than ZFP.
12573
12574 2003-10-29 Vincent Celier <celier@gnat.com>
12575
12576 * make.adb:
12577 (Gnatmake): When there are no Ada mains in attribute Main, disable the
12578 bind and link steps only is switch -z is not used.
12579
12580 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
12581
12582 * Makefile.generic: Remove duplicated setting of CC.
12583
12584 * Makefile.prolog: Set CC to gcc by default, to override make's
12585 default (cc).
12586
12587 * einfo.h: Regenerated.
12588
12589 2003-10-29 Ed Schonberg <schonberg@gnat.com>
12590
12591 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
12592 current body, after compiling subunit.
12593
12594 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
12595 when in deleted code, because gigi needs properly ordered freeze
12596 actions to annotate types.
12597
12598 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
12599 prevent the premature freezing of record type that contains
12600 subcomponents with a private type that does not yet have a completion.
12601
12602 2003-10-29 Javier Miranda <miranda@gnat.com>
12603
12604 * sem_ch12.adb:
12605 (Analyze_Package_Instantiation): Check that instances can not be used in
12606 limited with_clauses.
12607
12608 * sem_ch8.adb:
12609 (Analyze_Package_Renaming): Check that limited withed packages cannot
12610 be renamed. Improve text on error messages related to limited
12611 with_clauses.
12612
12613 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
12614
12615 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
12616 Update copyright notice.
12617
12618 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
12619 (Install_Limited_Context_Clauses): New subprogram that isolates all the
12620 checks required for limited context_clauses and installs the limited
12621 view.
12622 (Install_Limited_Withed_Unit): Complete its documentation.
12623 (Analyze_Context): Check that limited with_clauses are only allowed in
12624 package specs.
12625 (Install_Context): Call Install_Limited_Context_Clauses after the
12626 parents have been installed.
12627 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
12628 package as 'From_With_Type'; this mark indicates that the limited view
12629 is installed. Used to check bad usages of limited with_clauses.
12630 (Build_Limited_Views): Do not add shadow entities to the scope's list
12631 of entities. Do not add real entities to the Non_Limited_Views chain.
12632 Improve error notification.
12633 (Remove_Context_Clauses): Remove context clauses in two phases:
12634 limited views first and regular views later (to maintain the
12635 stack model).
12636 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
12637 its visible entities.
12638
12639 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
12640
12641 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
12642 with any type that Is_Fixed_Point_Type.
12643
12644 * sinfo.ads: Fix documentation for Associated_Node attribute.
12645
12646 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
12647
12648 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
12649 both '-gnatc' and '-gnatt' are specified.
12650
12651 * atree.adb (Initialize): Add initialization for Node_Count (set to
12652 zero).
12653
12654 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12655
12656 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
12657 do not consider as Pure.
12658
12659 Part of implementation of function-at-a-time:
12660
12661 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
12662 (tree_transform): Add new argument to build_component_ref.
12663 (tree_transform, case N_Assignment_Statement): Make and return an
12664 EXPR_STMT.
12665 (tree_transform): If result IS_STMT, set flags and return it.
12666 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
12667
12668 * utils2.c (build_simple_component_ref, build_component_ref): Add new
12669 arg, NO_FOLD_P.
12670 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
12671 (build_allocator): Likewise.
12672
12673 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
12674 Add new arg to build_component_ref.
12675 (maybe_unconstrained_array, unchecked_convert): Likewise.
12676
12677 * ada-tree.def (EXPR_STMT): New code.
12678
12679 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
12680
12681 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
12682 build_component_ref calls.
12683
12684 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
12685
12686 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
12687 (build_component_ref): Add new argument, NO_FOLD_P.
12688
12689 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
12690
12691 * Makefile.generic: Add missing substitution on object_deps handling.
12692
12693 PR ada/5909:
12694 * Make-lang.in (check-ada): Enable ACATS test suite.
12695
12696 2003-10-27 Robert Dewar <dewar@gnat.com>
12697
12698 * exp_ch3.adb:
12699 (Freeze_Array_Type): We do not need an initialization routine for types
12700 derived from String or Wide_String. They should be treated the same
12701 as String and Wide_String themselves. This caused problems with the
12702 use of Initialize_Scalars.
12703
12704 * exp_ch5.adb:
12705 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
12706 composites. This allows use of component clauses that are not byte
12707 aligned.
12708
12709 * sem_prag.adb:
12710 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
12711 is an attempt to pack an array of atomic objects.
12712
12713 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
12714
12715 2003-10-27 Pascal Obry <obry@gnat.com>
12716
12717 * g-dirope.adb:
12718 (Basename): Check for drive letters in a pathname only on DOS based OS.
12719
12720 2003-10-27 Vincent Celier <celier@gnat.com>
12721
12722 * make.adb:
12723 (Gnatmake): When unable to change dir to the object dir, display the
12724 content of the parent dir of the obj dir, to try to understand why this
12725 happens.
12726
12727 2003-10-27 GNAT Script <nobody@gnat.com>
12728
12729 * Make-lang.in: Makefile automatically updated
12730
12731 2003-10-27 Ed Schonberg <schonberg@gnat.com>
12732
12733 * sem_ch12.adb:
12734 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
12735 should not be done in Save/Restore_Scope_Stack, because it is performed
12736 locally.
12737
12738 * sem_ch8.adb:
12739 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
12740 whether use clauses should be removed/restored.
12741
12742 * sem_ch8.ads:
12743 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
12744 whether use clauses should be removed/restored.
12745
12746 2003-10-26 Andreas Jaeger <aj@suse.de>
12747
12748 * Makefile.in: Remove duplicated lines.
12749
12750 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
12751
12752 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
12753 minimize the differences with ACT tree.
12754
12755 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
12756 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
12757 Gnatvsn.Gnat_Static_Version_String to reduce differences between
12758 ACT and FSF trees.
12759
12760 2003-10-24 Pascal Obry <obry@gnat.com>
12761
12762 * adadecode.c (ostrcpy): New function.
12763 (__gnat_decode): Use ostrcpy of strcpy.
12764 (has_prefix): Set first parameter a const.
12765 (has_suffix): Set first parameter a const.
12766 Update copyright notice. Fix source name in header.
12767 Removes a trailing space.
12768 PR ada/12014.
12769
12770 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
12771
12772 * exp_disp.adb:
12773 Remove the test against being in No_Run_Time_Mode before generating a
12774 call to Register_Tag. It is redundant with the test against the
12775 availability of the function Register_Tag.
12776
12777 2003-10-24 Vincent Celier <celier@gnat.com>
12778
12779 * g-catiio.adb: (Month_Name): Correct spelling of February
12780
12781 * make.adb: (Mains): New package
12782 (Initialize): Call Mains.Delete
12783 (Gnatmake): Check that each main on the command line is a source of a
12784 project file and, if there are several mains, each of them is a source
12785 of the same project file.
12786 (Gnatmake): When a foreign language is specified in attribute Languages,
12787 no main is specified on the command line and attribute Mains is not
12788 empty, only build the Ada main. If there is no Ada main, just compile
12789 the Ada sources and their closure.
12790 (Gnatmake): If a main is specified on the command line with directory
12791 information, check that the source exists and, if it does, that the path
12792 is the actual path of a source of a project.
12793
12794 * prj-env.adb:
12795 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
12796 Full_Path is True, return the full path instead of the simple file name.
12797 (Project_Of): New function
12798
12799 * prj-env.ads:
12800 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
12801 defaulted to False.
12802 (Project_Of): New function
12803
12804 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
12805
12806 * Makefile.generic:
12807 Ensure objects of main project are always checked and rebuilt if needed.
12808 Set CC to gcc by default.
12809 Prepare new handling of link by creating a global archive (not activated
12810 yet).
12811
12812 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
12813 stringt.h: Update copyright notice. Remove trailing blanks.
12814 Fix source name in header.
12815
12816 2003-10-24 Robert Dewar <dewar@gnat.com>
12817
12818 * sem_ch12.adb: Minor reformatting
12819
12820 * sem_ch3.adb:
12821 Minor reformatting (including new function return style throughout)
12822
12823 * sem_ch3.ads:
12824 Minor reformatting (including new function return style throughout)
12825
12826 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
12827
12828 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
12829 stringt.h: Update copyright notice. Remove trailing blanks.
12830 Fix source name in header.
12831
12832 2003-10-24 GNAT Script <nobody@gnat.com>
12833
12834 * Make-lang.in: Makefile automatically updated
12835
12836 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
12837
12838 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
12839 stringt.h: Convert to ISO C90 declarations and definitions.
12840
12841 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
12842
12843 PR ada/11978:
12844 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
12845 External_Tag attribute definition clauses.
12846
12847 2003-10-23 Ed Schonberg <schonberg@gnat.com>
12848
12849 PR ada/7613:
12850 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
12851 child unit, generate a fully qualified name to avoid spurious errors
12852 when the context contains renamings of different child units with
12853 the same simple name.
12854
12855 * exp_dbug.ads: Add documentation on name qualification for renamings
12856 of child units.
12857
12858 2003-10-23 Robert Dewar <dewar@gnat.com>
12859
12860 * g-regpat.ads, g-regpat.adb: Minor reformatting
12861
12862 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
12863
12864 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
12865
12866 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12867
12868 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
12869 Machine call.
12870
12871 * urealp.h: (Machine): Update to proper definition.
12872
12873 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
12874
12875 * init.c, adaint.c: Minor reformatting.
12876
12877 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
12878
12879 * adaint.c (w32_epoch_offset): Define static const at file level.
12880 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
12881 rather than t_create, t_access in call to GetFileTime. Use union
12882 to convert between FILETIME and unsigned long long.
12883 (__gnat_file_time_name): Test for invalid file handle.
12884 (__gnat_set_filetime_name): Support win32 targets using
12885 w32api SetFileTime.
12886
12887 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
12888
12889 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
12890
12891 * ctrl_c.c (__gnat_int_handler): Remove declaration.
12892
12893 * decl.c (creat_concat_name): Const-ify prefix.
12894
12895 * adaint.c: Include ctype.h if __MINGW32__.
12896 (__gnat_readlink): Mark arguments as possibly unused.
12897 (__gnat_symlink): Likewise.
12898 (__gnat_is_symbolic_link): Likewise.
12899 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
12900 declaration
12901 (__gnat_file_time_name): Don't declare struct stat statbuf when
12902 not needed.
12903 (__gnat_is_absolute_path): Add parenthesis around condition of
12904 'if' statement to avoid warning.
12905 (__gnat_plist_init): Specify void as parameter.
12906 (plist_enter): Likewise.
12907 (plist_leave): Likewise.
12908 (remove_handle): Make static. Initialize prev.
12909
12910 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
12911
12912 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
12913 * cstreams.c (__gnat_full_name): Minor improvements and clean up
12914 of previous change.
12915
12916 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12917
12918 * tracebak.c (MAX): Avoid redefinition warning.
12919
12920 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
12921 Change msg to const char *.
12922 (__gnat_install_handler): Remove ss, unused.
12923 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
12924 to const char *.
12925 * cstreams.c (__gnat_full_name): Declare p only when used.
12926 (__gnat_full_name) [sgi] Return buffer.
12927
12928 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
12929
12930 * mingw32.h: New file.
12931 * gnat_wrapper.adb: New file.
12932
12933 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
12934
12935 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
12936 string match a pre compiled regular expression (the corresponding
12937 version of the function working on a raw regular expression)
12938 Fix typos in various comments
12939 Update copyright notice in spec
12940
12941 2003-10-21 Gary Dismukes <dismukes@gnat.com>
12942
12943 * exp_ch3.adb:
12944 (Component_Needs_Simple_Initialization): Return False when the type is a
12945 packed bit array. Revise spec comments to document this case.
12946
12947 * exp_prag.adb:
12948 (Expand_Pragma_Import): Set any expression on the imported object to
12949 empty to avoid initializing imported objects (in particular this
12950 covers the case of zero-initialization of bit arrays).
12951 Update copyright notice.
12952
12953 2003-10-21 Ed Schonberg <schonberg@gnat.com>
12954
12955 * sem_ch12.adb:
12956 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
12957 a subunit is missing.
12958 (Instantiate_Subprogram_Body): If body of function is missing, set type
12959 of return expression explicitly in dummy body, to prevent cascaded
12960 errors when a subunit is missing.
12961 Fixes PR 5677.
12962
12963 * sem_ch3.adb:
12964 (Access_Subprogram_Declaration): Verify that return type is valid.
12965 Fixes PR 8693.
12966
12967 * sem_elab.adb:
12968 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
12969 generic.
12970 Fixes PR 12318.
12971
12972 * sem_util.adb:
12973 (Corresponding_Discriminant): If the scope of the discriminant is a
12974 private type without discriminant, use its full view.
12975 Fixes PR 8247.
12976
12977 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
12978
12979 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
12980 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
12981 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
12982 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
12983 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
12984 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
12985 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
12986 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
12987 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
12988 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
12989 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
12990 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
12991 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
12992 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
12993 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
12994 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
12995 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
12996 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
12997 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
12998 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12999 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
13000 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
13001 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
13002 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
13003 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
13004 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
13005 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
13006 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
13007 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
13008 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
13009 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
13010 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
13011 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
13012 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
13013 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
13014 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
13015 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
13016 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
13017 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
13018 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
13019 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
13020 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
13021 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
13022 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
13023 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
13024 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
13025 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
13026 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
13027 vms_conv.ads, vms_conv.adb, vms_data.ads,
13028 vxaddr2line.adb: Files added. Merge with ACT tree.
13029
13030 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
13031 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
13032 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
13033 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
13034 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
13035 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
13036 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
13037 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
13038 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
13039 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
13040
13041 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
13042 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
13043 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
13044 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
13045 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
13046 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
13047 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
13048 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
13049 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
13050 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
13051 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
13052 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
13053 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
13054 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
13055 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
13056 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
13057 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
13058 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
13059 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
13060 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
13061 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
13062 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
13063 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
13064 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
13065 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
13066 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
13067 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
13068 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
13069 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
13070 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
13071 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
13072 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
13073 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
13074 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
13075 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
13076 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
13077 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
13078 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
13079 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
13080 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
13081 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
13082 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
13083 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
13084 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
13085 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
13086 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
13087 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
13088 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
13089 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
13090 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
13091 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
13092 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
13093 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
13094 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
13095 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
13096 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
13097 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
13098 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
13099 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
13100 checks.adb, checks.ads, cio.c, comperr.adb,
13101 comperr.ads, csets.adb, cstand.adb, cstreams.c,
13102 debug_a.adb, debug_a.ads, debug.adb, decl.c,
13103 einfo.adb, einfo.ads, errout.adb, errout.ads,
13104 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
13105 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
13106 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
13107 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
13108 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
13109 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
13110 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
13111 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
13112 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
13113 fe.h, fmap.adb, fmap.ads, fname.adb,
13114 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
13115 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
13116 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
13117 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
13118 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
13119 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
13120 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
13121 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
13122 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
13123 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
13124 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
13125 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
13126 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
13127 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
13128 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
13129 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
13130 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
13131 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
13132 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
13133 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
13134 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
13135 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
13136 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
13137 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
13138 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
13139 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
13140 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
13141 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
13142 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
13143 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
13144 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
13145 layout.adb, lib.adb, lib.ads, lib-list.adb,
13146 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
13147 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
13148 link.c, live.adb, make.adb, make.ads,
13149 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
13150 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
13151 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
13152 misc.c, mkdir.c, mlib.adb, mlib.ads,
13153 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
13154 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
13155 namet.adb, namet.ads, namet.h, nlists.ads,
13156 nlists.h, nmake.adt, opt.adb, opt.ads,
13157 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
13158 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
13159 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
13160 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
13161 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
13162 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
13163 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
13164 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
13165 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
13166 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
13167 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
13168 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
13169 prj-util.adb, prj-util.ads, raise.c, raise.h,
13170 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
13171 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
13172 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
13173 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
13174 scans.ads, scn.adb, scn.ads, s-crc32.adb,
13175 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
13176 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
13177 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
13178 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
13179 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
13180 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13181 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
13182 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
13183 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
13184 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
13185 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
13186 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
13187 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
13188 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
13189 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
13190 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
13191 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
13192 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
13193 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
13194 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
13195 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
13196 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
13197 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
13198 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
13199 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
13200 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
13201 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
13202 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
13203 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
13204 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
13205 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
13206 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
13207 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
13208 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
13209 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
13210 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
13211 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
13212 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
13213 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
13214 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
13215 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
13216 stringt.adb, stringt.ads, stringt.h, style.ads,
13217 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
13218 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
13219 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
13220 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
13221 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
13222 table.adb, table.ads, targparm.adb, targparm.ads,
13223 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
13224 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
13225 ttypes.ads, types.ads, types.h, uintp.adb,
13226 uintp.ads, uintp.h, uname.adb, urealp.adb,
13227 urealp.ads, urealp.h, usage.adb, utils2.c,
13228 utils.c, validsw.adb, validsw.ads, widechar.adb,
13229 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
13230 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
13231 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
13232 gnatvsn.ads: Merge with ACT tree.
13233
13234 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
13235
13236 2003-10-20 Mark Mitchell <mark@codesourcery.com>
13237
13238 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
13239 (gnat_ug_vmx.info): Likewise.
13240 (gnat_ug_vxw.info): Likewise.
13241 (gnat_ug_wnt.info): Likewise.
13242 (gnat_rm.info): Likewise.
13243 (gnat-style.info): Likewise.
13244
13245 * Make-lang.in (ada.install-info): Remove target.
13246 (info): New target.
13247 (install-info): Likewise.
13248 (gnat_ug_unx.info): Simplify rule.
13249 (gnat_ug_vmx.info): Likewise.
13250 (gnat_ug_vxw.info): Likewise.
13251 (gnat_ug_wnt.info): Likewise.
13252 (gnat_rm.info): Likewise.
13253 (gnat-style.info): Likewise.
13254
13255 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
13256
13257 * Make-lang.in: Replace uses of $(target_alias) with
13258 $(target_noncanonical).
13259 * ada/Makefile.in: Remove unused mention of $(target_alias).
13260
13261 2003-10-06 Mark Mitchell <mark@codesourcery.com>
13262
13263 * Make-lang.in (ada.info): Replace with ...
13264 (info): ... this.
13265 (ada.dvi): Replace with ...
13266 (dvi): ... this.
13267
13268 2003-09-29 Zack Weinberg <zack@codesourcery.com>
13269
13270 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
13271 initialize dconstp5 and dconstmp5.
13272
13273 2003-09-28 Richard Henderson <rth@redhat.com>
13274
13275 * trans.c (tree_transform): Update call to expand_asm_operands.
13276
13277 2003-09-21 Richard Henderson <rth@redhat.com>
13278
13279 * trans.c, utils.c: Revert.
13280
13281 2003-09-21 Richard Henderson <rth@redhat.com>
13282
13283 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
13284 change to const.
13285
13286 2003-09-04 Michael Matz <matz@suse.de>
13287
13288 * misc.c: Include "target.h".
13289 * Make-lang.in (misc.o): Add dependency on target.h.
13290
13291 2003-09-03 DJ Delorie <dj@redhat.com>
13292
13293 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
13294 hook.
13295
13296 2003-08-30 Zack Weinberg <zack@codesourcery.com>
13297
13298 * Makefile.in: Update substitutions to match changes to
13299 configure. Use include directives instead of @-insertions
13300 to read in host and target fragments. Add a rule to
13301 regenerate ada/Makefile.
13302
13303 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
13304
13305 * lang-options.h: Remove.
13306 * lang.opt: Add help text.
13307
13308 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
13309
13310 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
13311 calls.
13312
13313 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
13314
13315 * misc.c (gnat_handle_option): Don't handle filenames.
13316
13317 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
13318
13319 * Make-lang.in: Replace PWD with PWD_COMMAND.
13320 * Makefile.adalib: Likewise.
13321 * Makefile.in: Likewise.
13322
13323 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
13324
13325 * misc.c (gnat_argv): Revert last change.
13326 (gnat_handle_option, gnat_init_options): Copy arguments.
13327
13328 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
13329
13330 * misc.c (gnat_argv): Make const.
13331
13332 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
13333
13334 * misc.c (save_argc, save_argv): Keep non-static!
13335
13336 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
13337
13338 * misc.c (save_argc, save_argv): Make static.
13339 (gnat_init_options): New prototype.
13340 (gnat_init_options): Update.
13341
13342 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
13343
13344 * gnat_ug.texi: Remove unlikely characters from @vars.
13345 * gnat_ug_vms.texi: Regenerate.
13346
13347 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
13348
13349 * misc.c (record_code_position): Adjust emit_note call.
13350
13351 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
13352
13353 * misc.c (gnat_handle_option): Don't check for missing arguments.
13354
13355 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
13356
13357 * utils.c (end_subprog_body): Adjust expand_function_end call.
13358
13359 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
13360
13361 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
13362 Bind_Main_Program.
13363
13364 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
13365
13366 * lang.opt: Declare Ada.
13367 * misc.c (gnat_init_options): Update.
13368
13369 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
13370
13371 * utils.c (begin_subprog_body): Adjust init_function_start call.
13372
13373 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
13374
13375 * Make-lang.in: Update to use options.c and options.h.
13376 * misc.c: Include options.h not aoptions.h.
13377 (gnat_handle_option): Abort on unrecognized switch.
13378 (gnat_init_options): Request Ada switches.
13379
13380 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
13381
13382 * lang.opt: Add -Wall.
13383 * misc.c (gnat_handle_option): Handle it.
13384
13385 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
13386
13387 * misc.c (gnat_handle_option): Fix warnings.
13388
13389 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
13390
13391 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
13392
13393 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
13394
13395 * Make-lang.in: Update to handle command-line options.
13396 * lang.opt: New file.
13397 * misc.c: Include aoptions.h.
13398 (cl_options_count, cl_options): Remove.
13399 (gnat_handle_option): New.
13400 (gnat_decode_option): Remove.
13401 (LANG_HOOKS_DECODE_OPTION): Remove.
13402 (LANG_HOOKS_HANDLE_OPTION): Override.
13403
13404 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
13405
13406 * init.c, misc.c, trans.c, utils.c: Remove dead code.
13407
13408 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
13409
13410 * Makefile.in: Replace "host_canonical" with "host" for autoconf
13411 substitution.
13412
13413 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
13414
13415 * Make-lang.in: Update.
13416 * misc.c: Include opts.h. Define cl_options_count and cl_options.
13417
13418 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
13419
13420 * misc.c (gnat_init_options): Update.
13421
13422 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
13423
13424 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
13425 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
13426 __attribute__ ((__unused__)).
13427
13428 2003-06-05 Jan Hubicka <jh@suse.cz>
13429
13430 * Make-lang.in: Add support for stageprofile and stagefeedback
13431
13432 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
13433
13434 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
13435 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
13436
13437 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
13438
13439 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
13440 Remove non-VMS directive.
13441 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
13442 alternatives.
13443 (Examples of gnatls Usage): Remove VMS alternative.
13444
13445 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
13446
13447 PR ada/9953:
13448 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
13449 and turn ZCX_By_Default back to False since the underlying support
13450 is not quite there yet.
13451
13452 2003-06-01 Andreas Jaeger <aj@suse.de>
13453
13454 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
13455 and ROUND_TYPE_SIZE_UNIT.
13456
13457 2003-05-22 Geert Bosch <bosch@gnat.com>
13458
13459 * gnat_rm.texi : Remove reference to Ada Core Technologies.
13460
13461 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
13462
13463 * trans.c (tree_transform): Use location_t and input_location
13464 directly.
13465 (build_unit_elab): Likewise.
13466 * utils.c (create_label_decl): Likewise.
13467
13468 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
13469
13470 * trans.c (tree_transform, build_unit_elab,
13471 set_lineno): Rename lineno to input_line.
13472 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
13473 end_subprog_body): Likewise.
13474 * utils2.c (build_call_raise): Likewise.
13475
13476 2003-05-01 Laurent Guerby <guerby@acm.org>
13477
13478 PR ada/10546
13479 * 5iosinte.ads: Increase pthread_cond_t size to match recent
13480 LinuxThread and NPTL version, merge from ACT.
13481
13482 2003-04-28 Zack Weinberg <zack@codesourcery.com>
13483
13484 * utils.c (convert): No need to clear TREE_CST_RTL.
13485
13486 2003-04-23 Geert Bosch <bosch@gnat.com>
13487
13488 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
13489 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
13490 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
13491 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
13492 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
13493 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
13494 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
13495 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
13496 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
13497 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
13498 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
13499 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
13500 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
13501 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
13502 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
13503 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
13504 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
13505 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
13506 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
13507 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
13508 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
13509 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
13510 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
13511 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
13512 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
13513 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
13514 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
13515 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
13516 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
13517 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
13518 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
13519 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
13520 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
13521 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
13522 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
13523 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
13524 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
13525 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
13526 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
13527 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
13528 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
13529 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
13530 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
13531 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
13532 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
13533 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
13534 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
13535 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
13536 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
13537 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
13538 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
13539 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
13540 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
13541 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
13542 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
13543 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
13544 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
13545 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
13546 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
13547 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
13548 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
13549 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
13550 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
13551 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
13552 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
13553 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
13554 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
13555 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
13556 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
13557 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
13558 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
13559 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
13560 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
13561 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
13562 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
13563 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
13564 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
13565 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
13566 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
13567 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
13568 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
13569 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
13570 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
13571 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
13572 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
13573 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
13574 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
13575 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
13576 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
13577 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
13578 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
13579 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
13580 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
13581 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
13582 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
13583 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
13584 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
13585 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
13586 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
13587 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
13588 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
13589 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
13590 ali.adb, ali.ads, alloc.ads, argv.c,
13591 atree.adb, atree.ads, atree.h, aux-io.c,
13592 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
13593 binde.adb, binde.ads, binderr.adb, binderr.ads,
13594 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
13595 butil.adb, butil.ads, cal.c, calendar.ads,
13596 casing.adb, casing.ads, ceinfo.adb, checks.adb,
13597 checks.ads, cio.c, comperr.adb, comperr.ads,
13598 config-lang.in, csets.adb, csets.ads, csinfo.adb,
13599 cstand.adb, cstand.ads, cuintp.c, debug.adb,
13600 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
13601 dec-io.ads, dec.ads, deftarg.c, directio.ads,
13602 einfo.adb, einfo.ads, elists.adb, elists.ads,
13603 elists.h, errno.c, errout.adb, errout.ads,
13604 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
13605 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
13606 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
13607 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
13608 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
13609 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
13610 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
13611 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
13612 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
13613 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
13614 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
13615 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
13616 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
13617 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
13618 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
13619 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
13620 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
13621 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
13622 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
13623 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
13624 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
13625 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
13626 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
13627 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
13628 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
13629 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
13630 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
13631 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
13632 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
13633 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
13634 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
13635 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
13636 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
13637 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
13638 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
13639 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
13640 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
13641 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
13642 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
13643 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
13644 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
13645 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
13646 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
13647 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
13648 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
13649 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
13650 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
13651 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
13652 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
13653 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
13654 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
13655 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
13656 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
13657 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
13658 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
13659 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
13660 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
13661 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
13662 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
13663 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
13664 lib.adb, lib.ads, live.adb, live.ads,
13665 machcode.ads, make.adb, make.ads, makeusg.adb,
13666 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
13667 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
13668 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
13669 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
13670 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
13671 mlib.ads, namet.adb, namet.ads, nlists.adb,
13672 nlists.ads, opt.adb, opt.ads, osint-b.adb,
13673 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
13674 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
13675 osint.ads, output.adb, output.ads, par-ch10.adb,
13676 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
13677 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
13678 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
13679 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
13680 par-tchk.adb, par-util.adb, par.adb, par.ads,
13681 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
13682 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
13683 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
13684 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
13685 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
13686 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
13687 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
13688 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
13689 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
13690 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
13691 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
13692 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
13693 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
13694 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
13695 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
13696 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
13697 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
13698 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
13699 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
13700 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
13701 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
13702 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
13703 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
13704 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
13705 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
13706 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
13707 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
13708 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
13709 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
13710 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
13711 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
13712 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
13713 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
13714 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
13715 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
13716 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
13717 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
13718 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
13719 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
13720 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
13721 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
13722 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
13723 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
13724 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
13725 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
13726 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
13727 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
13728 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
13729 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
13730 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
13731 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
13732 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
13733 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
13734 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
13735 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
13736 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
13737 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
13738 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
13739 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
13740 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
13741 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
13742 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
13743 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
13744 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
13745 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
13746 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
13747 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
13748 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
13749 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
13750 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
13751 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
13752 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
13753 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
13754 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
13755 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
13756 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
13757 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
13758 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
13759 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
13760 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
13761 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
13762 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
13763 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
13764 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
13765 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
13766 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
13767 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
13768 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
13769 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
13770 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
13771 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
13772 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
13773 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13774 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
13775 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
13776 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
13777 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
13778 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
13779 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
13780 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
13781 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
13782 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
13783 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
13784 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
13785 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
13786 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
13787 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
13788 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
13789 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
13790 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
13791 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13792 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
13793 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
13794 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
13795 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
13796 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13797 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
13798 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
13799 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
13800 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
13801 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
13802 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
13803 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
13804 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
13805 snames.ads, sprint.adb, sprint.ads, stand.adb,
13806 stand.ads, stringt.adb, stringt.ads, style.adb,
13807 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
13808 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
13809 switch-m.ads, switch.adb, switch.ads, system.ads,
13810 table.adb, table.ads, targparm.adb, targparm.ads,
13811 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
13812 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
13813 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
13814 ttypef.ads, ttypes.ads, types.adb, types.ads,
13815 uintp.adb, uintp.ads, uname.adb, uname.ads,
13816 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
13817 usage.adb, usage.ads, validsw.adb, validsw.ads,
13818 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
13819 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
13820 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
13821 formatting and other trivial changes from ACT.
13822
13823 2003-04-12 Zack Weinberg <zack@codesourcery.com>
13824
13825 * gigi.h, utils2.c (build_constructor):
13826 Rename gnat_build_constructor. Use build_constructor.
13827 * decl.c (gnat_to_gnu_entity)
13828 * trans.c (tree_transform, pos_to_constructor, extract_values)
13829 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
13830 (unchecked_convert)
13831 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
13832 (fill_vms_descriptor):
13833 Update to match.
13834
13835 2003-04-06 Zack Weinberg <zack@codesourcery.com>
13836
13837 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
13838 * misc.c (gnat_tree_size): New function.
13839 (LANG_HOOKS_TREE_SIZE): Override.
13840
13841 2003-04-03 Jason Merrill <jason@redhat.com>
13842
13843 * misc.c (gnat_adjust_rli): #if 0.
13844
13845 2003-03-31 Geert Bosch <bosch@gnat.com>
13846
13847 PR ada/10020
13848 * link.c : Fix misspelled "const" keyword
13849
13850 2003-03-23 Mark Mitchell <mark@codesourcery.com>
13851
13852 PR c++/7086
13853 * utils2.c: Adjust calls to put_var_into_stack.
13854
13855 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
13856
13857 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
13858
13859 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13860
13861 * misc.c (gnat_init): Update for new prototype.
13862
13863 2003-03-05 Olivier Hainque <hainque@gnat.com>
13864
13865 ada/9961
13866 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
13867 warning, and fix return type for the IN_RTS && !SJLJ case.
13868
13869 2003-03-04 Tom Tromey <tromey@redhat.com>
13870
13871 * Make-lang.in (ada.tags): New target.
13872
13873 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
13874
13875 ada/9911
13876 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
13877 wrapper, which name remains constant whatever underlying GCC
13878 scheme.
13879
13880 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
13881 the stable interface needed for a-except.
13882
13883 2003-03-02 Andreas Jaeger <aj@suse.de>
13884
13885 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13886 gnat_ug_wnt.texi: Regenerate.
13887
13888 2003-03-02 Laurent Guerby <guerby@acm.org>
13889
13890 * Makefile.in (install-gnatlib): Match previous change there
13891 so it works.
13892
13893 2003-02-28 Andreas Schwab <schwab@suse.de>
13894
13895 * Make-lang.in (install-gnatlib): Change to ada directory before
13896 running make instead of using ada/Makefile directly.
13897
13898 2003-02-18 Ben Elliston <bje@redhat.com>
13899
13900 Part of fix for PR ada/9406
13901 * gnat_ug.texi (Binder output file): Grammar fix.
13902
13903 2003-02-18 Ben Elliston <bje@redhat.com>
13904
13905 PR other/7350
13906 * 5qtaprop.adb (Sleep): Fix typo in comment.
13907
13908 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
13909
13910 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
13911 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13912 gnat_ug_wnt.texi: Regenerate.
13913
13914 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
13915
13916 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
13917 be created if necessary.
13918 (ada.install-common): Let $(DESTDIR)$(bindir) be created
13919 if necessary. Remove erroneous and redundant gnatchop
13920 installation commands. Test for gnatdll before attempting
13921 to install it.
13922 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
13923 and gnatdll from all plausible locations.
13924
13925 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
13926
13927 * utils2.c (build_unary_op): Don't check flag_volatile.
13928 * gnat_ug.texi: Remove -fvolatile from example.
13929 * gnat_ug_vxw.texi: Likewise.
13930
13931 2003-01-29 Laurent Guerby <guerby@acm.org>
13932
13933 PR ada/8344
13934 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
13935 * Makefile.in: match previous change.
13936 * Make-lang.in: match previous change.
13937
13938 2003-01-29 Joel Sherrill <joel@OARcorp.com>
13939
13940 * 5rosinte.ads: Add SIGXCPU.
13941 * 5rtpopsp.adb: New file.
13942 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
13943 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
13944 specific file 5rtpopsp.adb.
13945 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
13946 is likely needed for all newlib targets.
13947 * init.c: Add RTEMS specific version of __gnat_initialize().
13948
13949 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13950
13951 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
13952
13953 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13954
13955 * init.c (__gnat_error_handler): Make msg const.
13956
13957 * gmem.c (convert_addresses): Move declaration ...
13958 * adaint.h: ... here.
13959 * adaint.c (convert_addresses): Adapt addrs type to match
13960 prototype.
13961
13962 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
13963
13964 2003-01-24 Andreas Schwab <schwab@suse.de>
13965
13966 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
13967 size_t to avoid warning.
13968
13969 2003-01-21 Zack Weinberg <zack@codesourcery.com>
13970
13971 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
13972
13973 2003-01-09 Geoffrey Keating <geoffk@apple.com>
13974
13975 * gnat_rm.texi: Remove RCS version number.
13976
13977 * ada-tree.h (union lang_tree_node): Add chain_next option.
13978
13979 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
13980
13981 * Make-lang.in (ada.install-info, ada.install-common,
13982 ada.uninstall): Prepend $(DESTDIR) to the destination
13983 directory in all (un)installation commands.
13984 * Makefile.in (install-gnatlib, install-rts): Ditto.
13985
13986 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
13987
13988 * gnat_rm.texi, gnat_ug.texi: Use @copying.
13989 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13990 gnat_ug_wnt.texi: Regenerate.
13991
13992 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
13993
13994 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
13995 only.
13996 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
13997 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
13998 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
13999 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
14000 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
14001 $(srcdir)/doc/include/gcc-common.texi.
14002
14003 2002-12-15 Geert Bosch <bosch@gnat.com>
14004
14005 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
14006
14007 2002-12-14 Geert Bosch <bosch@gnat.com>
14008
14009 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
14010 case of a body created for a Renaming_As_Body, on which
14011 conformance checks are not performed. Fixes PR ada/5690.
14012
14013 2002-11-30 Zack Weinberg <zack@codesourcery.com>
14014
14015 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
14016 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
14017 not already included.
14018 * Make-lang.in: Update dependencies.
14019
14020 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
14021 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
14022 solution to buffer overflow bug on GNU/Linux.
14023
14024 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
14025 Closes PR ada/5856 and PR ada/6919 !
14026 * bindgen.adb: Remove all references to Public_Version.
14027 * comperr.adb: Remove all references to Public_Version and
14028 GNATPRO_Version; correct bug reporting instructions.
14029 * comperr.ads: Change to match bug box.
14030 * gnatvsn.ads: Remove all references to Public version and
14031 GNATPRO version.
14032
14033 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
14034 PR ada/6919
14035 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
14036 GNU/Linux.
14037
14038 PR ada/6558
14039 * config-lang.in: Remove diff_excludes.
14040
14041 2002-11-05 Graham Stott <graham.stott@btinternet.com>
14042 PR ada/8358
14043 * trans.c (gnu_pending_elaboration_lists): New GC root.
14044 (build_unit_elab): Use..
14045
14046 2002-10-30 Geert Bosch <bosch@gnat.com>
14047 PR ada/6558
14048 * misc.c : Include optabs.h
14049
14050 * Make-lang.in (misc.o): Add dependency on optabs.h
14051
14052 2002-10-29 Geert Bosch <bosch@gnat.com>
14053 PR ada/6558
14054 * Make-lang.in (gnatbind): Depend on CONFIG_H
14055
14056 2002-10-29 Geert bosch <bosch@gnat.com>
14057 PR ada/6558
14058 * misc.c: Unrevert misc.c (1.13)
14059
14060 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
14061
14062 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
14063 maintainership comments.
14064
14065 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
14066 PR ada/5904
14067 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
14068 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
14069 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
14070 7staprop.adb: Correct statements in comments about
14071 maintainership of GNAT.
14072
14073 PR ada/5904
14074 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
14075 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
14076 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
14077 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
14078 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
14079 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
14080 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
14081 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
14082 comments about maintainership of GNAT.
14083
14084 PR ada/6919 (forward port of patch for PR ada/5904)
14085 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
14086 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
14087 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
14088 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
14089 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
14090 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
14091 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
14092 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
14093 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
14094 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
14095 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
14096 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
14097 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
14098 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
14099 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
14100 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
14101 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
14102 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
14103 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
14104 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
14105 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
14106 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
14107 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
14108 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
14109 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
14110 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
14111 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
14112 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
14113 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
14114 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
14115 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
14116 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
14117 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
14118 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
14119 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
14120 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
14121 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
14122 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
14123 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
14124 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
14125 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
14126 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
14127 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
14128 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
14129 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
14130 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
14131 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
14132 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
14133 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
14134 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
14135 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
14136 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
14137 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
14138 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
14139 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
14140 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
14141 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
14142 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
14143 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
14144 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
14145 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
14146 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
14147 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
14148 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
14149 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
14150 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
14151 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
14152 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
14153 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
14154 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
14155 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
14156 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
14157 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
14158 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
14159 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
14160 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
14161 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
14162 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
14163 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
14164 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
14165 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
14166 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
14167 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
14168 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
14169 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
14170 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
14171 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
14172 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
14173 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
14174 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
14175 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
14176 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
14177 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
14178 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
14179 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
14180 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
14181 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
14182 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
14183 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
14184 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
14185 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
14186 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
14187 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
14188 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
14189 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
14190 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
14191 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
14192 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
14193 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
14194 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
14195 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
14196 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
14197 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
14198 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
14199 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
14200 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
14201 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
14202 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
14203 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
14204 par-endh.adb par-labl.adb par-load.adb par-prag.adb
14205 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
14206 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
14207 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
14208 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
14209 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
14210 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
14211 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
14212 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
14213 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
14214 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
14215 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
14216 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
14217 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
14218 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
14219 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
14220 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
14221 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
14222 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
14223 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
14224 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
14225 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
14226 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
14227 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
14228 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
14229 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
14230 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
14231 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
14232 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
14233 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
14234 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
14235 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
14236 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
14237 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
14238 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
14239 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
14240 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
14241 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
14242 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
14243 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
14244 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
14245 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
14246 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
14247 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
14248 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
14249 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
14250 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
14251 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
14252 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
14253 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
14254 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
14255 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
14256 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
14257 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
14258 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
14259 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
14260 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
14261 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
14262 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
14263 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
14264 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
14265 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
14266 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
14267 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
14268 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
14269 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
14270 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
14271 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
14272 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
14273 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
14274 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
14275 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
14276 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
14277 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
14278 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
14279 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
14280 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
14281 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
14282 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
14283 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
14284 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
14285 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
14286 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
14287 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
14288 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
14289 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
14290 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
14291 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
14292 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
14293 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
14294 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
14295 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
14296 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
14297 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
14298 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
14299 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
14300 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
14301 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
14302 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
14303 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
14304 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
14305 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
14306 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
14307 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
14308 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
14309 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
14310 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
14311 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
14312 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
14313 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
14314 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
14315 stringt.ads stringt.h style.adb style.ads stylesw.adb
14316 stylesw.ads switch.adb switch.ads sysdep.c system.ads
14317 table.adb table.ads targparm.adb targparm.ads targtyps.c
14318 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
14319 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
14320 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
14321 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
14322 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
14323 usage.ads utils.c utils2.c validsw.adb validsw.ads
14324 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
14325 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
14326 xtreeprs.adb: Correct statements in comments about maintainership
14327 of GNAT.
14328
14329 2002-09-23 Zack Weinberg <zack@codesourcery.com>
14330
14331 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
14332 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
14333 * gnatvsn.ads: Gnat_Version_String is now a function.
14334 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
14335 copy the C version_string into a String and return it.
14336 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
14337 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
14338 Remove pragma Ident (Gnat_Version_String). If this was the
14339 sole use of package Gnatvsn, remove the with statement too.
14340 * gnat1drv.adb: Tweak -gnatv output.
14341
14342 2002-09-17 Richard Henderson <rth@redhat.com>
14343
14344 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
14345 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
14346 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
14347 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
14348 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
14349 and real_2expN instead of a loop.
14350 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
14351 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
14352
14353 2002-08-25 Andre Leis <a.leis@gmx.net>
14354 David Billinghurst (David.Billinghurst@riotinto.com>
14355
14356 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
14357
14358 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14359
14360 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
14361 Remove $(CONFIG_H) dependency.
14362
14363 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
14364
14365 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
14366
14367 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14368
14369 * adadecode.c (ada_demangle): Use xstrdup in lieu of
14370 xmalloc/strcpy.
14371 * misc.c (gnat_decode_option): Likewise.
14372
14373 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
14374
14375 * make.adb (Add_Switch): Make Generic_Position a procedure. The
14376 function approach did not work well because of a side effect (the
14377 function call could reallocate the table which was being indexed
14378 using its result). Fixes ada/4851. [RESURRECTED]
14379
14380 2002-07-01 Roger Sayle <roger@eyesopen.com>
14381
14382 * ada/utils.c (builtin_function): Accept an additional parameter.
14383
14384 2002-06-28 Andreas Jaeger <aj@suse.de>
14385
14386 PR ada/7144
14387 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
14388 <adi@thur.de>.
14389
14390 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14391
14392 * Makefile.in (SHELL): Set to @SHELL@.
14393
14394 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14395
14396 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
14397 array size calculation.
14398
14399 2002-06-04 Andreas Jaeger <aj@suse.de>
14400
14401 * Make-lang.in (gnatbind): Readd rule that has been lost in last
14402 patch.
14403
14404 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
14405
14406 Merge from pch-branch:
14407
14408 * config-lang.in (gtfiles): Add ada-tree.h.
14409 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
14410 (SET_TYPE_MODULUS): New.
14411 (SET_TYPE_INDEX): New.
14412 (SET_TYPE_DIGITS_VALUE): New.
14413 (SET_TYPE_RM_SIZE): New.
14414 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
14415 (SET_TYPE_ADA_SIZE): New.
14416 (SET_TYPE_ACTUAL_BOUNDS): New.
14417 (SET_DECL_CONST_CORRESPONDING_VAR): New.
14418 (SET_DECL_ORIGINAL_FIELD): New.
14419 (TREE_LOOP_ID): Correct typo.
14420 * decl.c: Use new macros.
14421 * utils.c: Include debug.h, use new macros.
14422 * utils2.c: Use new macros.
14423
14424 * ada-tree.h: Update all macros for new tree description.
14425 (struct tree_loop_id): New.
14426 (union lang_tree_node): New.
14427 (struct lang_decl): New.
14428 (struct lang_type): New.
14429 * misc.c (gnat_mark_tree): Delete.
14430 (LANG_HOOKS_MARK_TREE): Delete.
14431 * trans.c (tree_transform): No longer any need to cast
14432 for TREE_LOOP_ID.
14433
14434 * utils.c (struct language_function): New dummy structure.
14435
14436 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
14437 (misc.o): Likewise.
14438 (utils.o): Likewise; also gtype-ada.h.
14439 * Make-lang.in (gnat1): Add dependency on s-gtype.
14440 (gnatbind): Add dependency on $(CONFIG_H).
14441 * utils.c: Correct last #include.
14442 (stuct e_stack): Remove unnecessary 'static'.
14443 (mark_e_stack): Remove unused prototype.
14444
14445 * scn-nlit.adb: Remove whitespace after version number to
14446 keep lines under 80 chars.
14447 * snames.adb: Likewise.
14448 * treepr.ads: Likewise.
14449
14450 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
14451 (misc.o): Likewise.
14452 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
14453 * config-lang.in (gtfiles): New.
14454 * decl.c: Use gengtype for roots.
14455 * gigi.h: Use gengtype for roots.
14456 * trans.c: Use gengtype for roots.
14457 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
14458
14459 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
14460
14461 * misc.c (gnat_init): Adjust setting of internal_error_function.
14462
14463 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
14464
14465 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
14466 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
14467 gnat_ug_wnt.texi: Regenerate.
14468
14469 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
14470
14471 * 5ntaprop.adb (with System.OS_Primitives): Remove.
14472
14473 * cstreams.c (max_path_len): Move from here ...
14474 * adaint.c (__gnat_max_path_len): ... to here.
14475 * adaint.c (__gnat_max_path_len): Declare.
14476 * g-dirope.adb (Max_Path): Adjust.
14477 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
14478 * i-cstrea.ads (max_path_len): Adjust.
14479 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
14480 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
14481
14482 * Makefile.in, Make-lang.in: Documentation is now built in
14483 Make-lang.in. Store Info and generated Texinfo files in the
14484 source directory.
14485 * gnat_ug.texi: Remove CVS keywords, correct version number.
14486 Set file name correctly.
14487
14488 * gnat_ug_*.texi: Add.
14489 * .cvsignore: Ignore generated Texinfo files.
14490
14491 2002-05-30 Zack Weinberg <zack@codesourcery.com>
14492
14493 * ada.h: Add MI guard macro.
14494 (SUBTYPE): Define constants with an anonymous enum, not static
14495 const variables.
14496 (IN): Cast constants to appropriate type before use.
14497
14498 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
14499
14500 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
14501 (experimental)".
14502
14503 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14504
14505 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
14506 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
14507 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
14508 (ALL_ADA_CFLAGS): Likewise.
14509 (ADA_INCLUDES): Likewise.
14510 Adapt for new working dir.
14511 (GNATBIND): Use Makefile.in version.
14512 (.SUFFIXES): Copy from Makefile.in.
14513 (ada-warn): Define.
14514 (.adb.o, .ads.o): Copy from Makefile.in.
14515 Added $(OUTPUT_OPTION).
14516 (GNAT1_C_OBJS): Moved from Makefile.in.
14517 Prefix with ada subdir.
14518 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
14519 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
14520 Adapt for new working dir.
14521 (EXTRA_GNATBIND_OBJS): Likewise.
14522 (ADA_BACKEND): Moved from Makefile.in.
14523 Renamed to avoid conflict with global BACKEND.
14524 Use that one.
14525 (TARGET_ADA_SRCS): Moved from Makefile.in.
14526 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
14527 Use ADA_BACKEND.
14528 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
14529 (ada_extra_files): Moved from Makefile.in.
14530 Prefix with ada subdir.
14531 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
14532 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
14533 (ada/nmake.ads): Likewise.
14534 (update-sources): Moved from Makefile.in.
14535 Prefix with ada subdir.
14536 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
14537 (ADA_TREE_H): Likewise.
14538 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
14539 (ada/memtrack.o): Likewise.
14540 (ada/adadecode.o): Likewise.
14541 Update dependencies.
14542 (ada/adaint.o): New.
14543 (ada/argv.o): Moved from Makefile.in.
14544 Prefix with ada subdir.
14545 Update dependencies.
14546 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
14547 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
14548 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
14549 Prefix with ada subdir.
14550 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
14551 (GNAT DEPENDENCIES): Regenerate.
14552 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
14553 toplevel Makefile.in.
14554 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
14555 (TARGET_ADA_SRCS): Removed.
14556 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
14557 (GNATBIND_OBJS): Likewise.
14558 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
14559 (BACKEND): Removed.
14560 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
14561 (TREE_H): Likewise.
14562 (ada_extra_files): Likewise.
14563 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
14564 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
14565 (update-sources): Likewise.
14566 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
14567 (ADA_TREE_H): Likewise.
14568 (adadecoce.o): Likewise.
14569 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
14570 (GNAT DEPENDENCIES): Likewise.
14571
14572 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14573
14574 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
14575 * Makefile.in: Likewise.
14576
14577 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14578
14579 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
14580 Restore $(CONFIG_H) and prefix.o dependencies.
14581 (ada.stage[1-4]): Depend on stage?-start.
14582
14583 * Makefile.in (b_gnatb.c): Depend on interfac.o.
14584
14585 2002-05-02 Jim Wilson <wilson@redhat.com>
14586
14587 * utils.c (finish_record_type): Change record_size to record_type.
14588
14589 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14590
14591 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
14592 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
14593 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
14594
14595 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
14596
14597 * misc.c (gnat_parse_file): Update.
14598
14599 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
14600
14601 * misc.c (gnat_init): Don't set lang_attribute_common.
14602
14603 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
14604
14605 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
14606
14607 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
14608
14609 * gnat_ug.texi: New file.
14610
14611 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
14612 instead of gfdl.texi
14613
14614 * xgnatug.adb, ug_words: New files.
14615
14616 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
14617 gnat_rm and gnat-style manuals.
14618
14619 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
14620
14621 * gigi.h (incomplete_type_error): Remove.
14622 * utils.c (incomplete_type_error): Remove.
14623
14624 2002-04-16 Mark Mitchell <mark@codesourcery.com>
14625
14626 * trans.c (tree_transform): Add has_scope argument to
14627 expand_start_stmt_expr.
14628
14629 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
14630
14631 * gigi.h (truthvalue_conversion): Rename.
14632 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14633 * trans.c (tree_transform): Update.
14634 * utils2.c (truthvalue_conversion): Rename, update.
14635 (build_binary_op, build_unary_op): Update.
14636
14637 2002-04-04 Laurent Guerby <guerby@acm.org>
14638
14639 * make.adb: Implement -margs, remove restriction about file name placement.
14640 * makeusg.adb: Documentation update.
14641 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
14642 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
14643
14644 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
14645
14646 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
14647 (builtin_function): Similarly.
14648
14649 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14650
14651 * decl.c (gnat_to_gnu_entity): Update.
14652 * gigi.h (mark_addressable): Rename.
14653 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14654 * trans.c (tree_transform): Update.
14655 * utils.c (create_var_decl): Update.
14656 * util2.c (build_binary_op, build_unary_op,
14657 fill_vms_descriptor): Update.
14658 (mark_addressable): Rename, update.
14659
14660 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14661
14662 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
14663 Rename.
14664 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14665 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14666 * trans.c (tree_transform, convert_with_check): Update.
14667 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
14668 Rename.
14669
14670 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14671
14672 * gigi.h (finish_incomplete_decl): Rename.
14673 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
14674 * utils.c (gnat_init_decl_processing): Don't set hook.
14675 (finish_incomplete_decl): Rename.
14676
14677 2002-03-29 Andreas Schwab <schwab@suse.de>
14678
14679 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
14680 directory.
14681
14682 2001-03-28 Robert Dewar <dewar@gnat.com>
14683
14684 * checks.ads:
14685 (Remove_Checks): New procedure
14686
14687 * checks.adb:
14688 (Remove_Checks): New procedure
14689
14690 * exp_util.adb:
14691 Use new Duplicate_Subexpr functions
14692 (Duplicate_Subexpr_No_Checks): New procedure
14693 (Duplicate_Subexpr_No_Checks_Orig): New procedure
14694 (Duplicate_Subexpr): Restore original form (checks duplicated)
14695 (Duplicate_Subexpr): Call Remove_Checks
14696
14697 * exp_util.ads:
14698 (Duplicate_Subexpr_No_Checks): New procedure
14699 (Duplicate_Subexpr_No_Checks_Orig): New procedure
14700 Add 2002 to copyright notice
14701
14702 * sem_util.adb: Use new Duplicate_Subexpr functions
14703
14704 * sem_eval.adb:
14705 (Eval_Indexed_Component): This is the place to call
14706 Constant_Array_Ref and to replace the value. We simply merge
14707 the code of this function in here, since it is now no longer
14708 used elsewhere. This fixes the problem of the back end not
14709 realizing we were clever enough to see that this was
14710 constant.
14711 (Expr_Val): Remove call to Constant_Array_Ref
14712 (Expr_Rep_Val): Remove call to Constant_Array_Ref
14713 Minor reformatting
14714 (Constant_Array_Ref): Deal with string literals (patch
14715 suggested by Zack Weinberg on the gcc list)
14716
14717 2001-03-28 Ed Schonberg <schonber@gnat.com>
14718
14719 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
14720 Duplicate_Subexpr_Move_Checks.
14721
14722 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
14723 Duplicate_Subexpr_Move_Checks.
14724
14725 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
14726 value of array exists before retrieving it (it may a private
14727 protected component in a function).
14728
14729 2002-03-28 Geert Bosch <bosch@gnat.com>
14730
14731 * prj-pp.adb : New file.
14732
14733 * prj-pp.ads : New file.
14734
14735 2002-03-28 Andreas Jaeger <aj@suse.de>
14736
14737 * Makefile.in (stamp-sdefault): Fix path for Makefile.
14738
14739 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
14740
14741 * misc.c (gnat_expand_expr): Move prototype.
14742
14743 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14744
14745 * misc.c (insert_default_attributes): Remove.
14746
14747 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14748
14749 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14750 (gnat_init): Don't set hook.
14751 (gnat_expand_expr): Fix prototype.
14752
14753 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14754
14755 * misc.c (ggc_p): Remove.
14756
14757 2002-03-27 Geert Bosch <bosch@gnat.com>
14758
14759 * prj-makr.ads, prj-makr.adb : New files.
14760
14761 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14762
14763 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
14764 (lang_mark_tree): Make static, rename.
14765
14766 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14767
14768 * misc.c (maybe_build_cleanup): Remove.
14769
14770 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14771
14772 * gigi.h (yyparse): Remove.
14773
14774 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
14775
14776 * gnat_rm.texi: Sync with ACT version.
14777 (From Ben Brosgol <brosgol@gnat.com>)
14778
14779 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
14780
14781 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
14782 (gnat_init): Remove old hook.
14783
14784 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
14785
14786 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
14787 (yyparse): Rename gnat_parse_file.
14788
14789 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
14790
14791 Delete all lines containing "$Revision:".
14792 * xeinfo.adb: Don't look for revision numbers.
14793 * xnmake.adb: Likewise.
14794 * xsinfo.adb: Likewise.
14795 * xsnames.adb: Likewise.
14796 * xtreeprs.adb: Likewise.
14797
14798 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14799
14800 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
14801 gnat_tree_code_name): Delete.
14802 (tree_code_type, tree_code_length, tree_code_name): Define.
14803 (gnat_init): Don't try to copy into the various tree_code
14804 arrays.
14805
14806 2002-03-11 Richard Henderson <rth@redhat.com>
14807
14808 * Makefile.in (.NOTPARALLEL): Add fake tag.
14809
14810 2002-03-07 Geert Bosch <bosch@gnat.com>
14811
14812 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
14813 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
14814 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
14815 switch-m.adb, switch-m.ads : New files.
14816
14817 2002-03-07 Geert Bosch <bosch@gnat.com>
14818
14819 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
14820 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
14821 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
14822 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
14823 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
14824 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
14825 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
14826 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
14827 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
14828 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
14829 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
14830 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
14831 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
14832 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
14833 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
14834 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
14835 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
14836 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
14837 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
14838 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
14839 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
14840 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
14841 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
14842 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
14843 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
14844 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
14845 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
14846 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
14847 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
14848 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
14849 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
14850 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
14851 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
14852 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
14853 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
14854 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
14855 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
14856 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
14857 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
14858 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
14859 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
14860 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
14861 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
14862 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
14863 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
14864 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
14865 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
14866 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
14867 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
14868 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
14869 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
14870 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
14871 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
14872 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
14873 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
14874 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
14875 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
14876 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
14877 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
14878 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
14879 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
14880 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
14881 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
14882 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
14883 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
14884 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
14885 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
14886 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
14887 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
14888 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
14889 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
14890 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
14891 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
14892 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
14893 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
14894 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
14895 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
14896 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
14897 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
14898 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
14899 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
14900 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
14901 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
14902 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
14903 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
14904 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
14905 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
14906 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
14907 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
14908 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
14909 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
14910 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
14911 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
14912 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
14913 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
14914 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
14915 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
14916
14917 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
14918 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
14919 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
14920 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
14921
14922 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
14923 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
14924
14925 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
14926 to mdll-fil.ad[bs] and mdll-util.ad[bs]
14927
14928 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
14929 from mdllfile.ad[bs] and mdlltool.ad[bs]
14930
14931 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14932
14933 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
14934 lieu of explicit sizeof/sizeof.
14935
14936 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14937
14938 * misc.c (copy_lang_decl): Remove.
14939
14940 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14941
14942 * misc.c: Delete traditional-mode-related code copied from the
14943 C front end but not used, or used only to permit the compiler
14944 to link.
14945
14946 2002-02-07 Richard Henderson <rth@redhat.com>
14947
14948 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
14949 * adaint.h (__gnat_to_gm_time): Update prototype.
14950
14951 2002-01-30 Richard Henderson <rth@redhat.com>
14952
14953 * trans.c (tree_transform) [N_Loop_Statement]: Use
14954 expand_exit_loop_top_cond.
14955
14956 2001-12-23 Richard Henderson <rth@redhat.com>
14957
14958 * utils.c (end_subprog_body): Push GC context around
14959 rest_of_compilation for nested functions.
14960
14961 2001-12-23 Richard Henderson <rth@redhat.com>
14962
14963 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
14964
14965 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
14966
14967 * gnat-style.texi (Declarations and Types): Remove ancient style
14968 rule which was mandated by code generation issues.
14969
14970 * gnat-style.texi (header): Add @dircategory, @direntry.
14971 (title page): Remove date.
14972 (general) Add @./@: where approriate, and two spaces after the
14973 full stop at the end of a sentence. Use @samp markup when
14974 referring concrete lexical entities (keywords, attribute names
14975 etc.), and @syntax for ARM grammar elements. Use @r for English
14976 text in comments. Use @emph for emphasis. Change "if-statements"
14977 etc. to "if statements" (without @samp). Break long lines. Make
14978 casing of section names consistent.
14979 (Identifiers): Use @samp markup for variable names.
14980 (Comments): Use @samp markup for comment characters. Line-end
14981 comments may follow any Ada code, not just statements. Fix
14982 misspelling of "Integer" as "integer".
14983 (Loop statements): Do not use variable name "I", use "J".
14984 (Subprogram Declarations): Document alignment.
14985 (Subprogram Bodies, Block statements): Document empty line before
14986 "begin".
14987
14988 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
14989
14990 * make.adb (Add_Switch): Make Generic_Position a procedure. The
14991 function approach did not work well because of a side effect (the
14992 function call could reallocate the table which was being indexed
14993 using its result). Fixes ada/4851.
14994
14995 2001-12-19 Robert Dewar <dewar@gnat.com>
14996
14997 * bindgen.adb: Minor reformatting
14998
14999 * cstand.adb: Minor reformatting
15000
15001 * fmap.adb: Minor reformatting
15002 Change name from Add for Add_To_File_Map (Add is much too generic)
15003 Change Path_Name_Of to Mapped_Path_Name
15004 Change File_Name_Of to Mapped_File_Name
15005 Fix copyright dates in header
15006
15007 * fmap.ads:
15008 Change name from Add for Add_To_File_Map (Add is much too generic)
15009 Change Path_Name_Of to Mapped_Path_Name
15010 Change File_Name_Of to Mapped_File_Name
15011 Fix copyright dates in header
15012
15013 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
15014 Add use clause for Fmap.
15015
15016 * make.adb: Minor reformatting
15017
15018 * osint.adb: Minor reformatting. Change of names in Fmap.
15019 Add use clause for Fmap.
15020
15021 * prj-env.adb: Minor reformatting
15022
15023 * prj-env.ads: Minor reformatting
15024
15025 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
15026 error found (there were odd exceptions to this general rule in
15027 -gnatec/-gnatem processing)
15028
15029 2001-12-19 Olivier Hainque <hainque@gnat.com>
15030
15031 * raise.c (__gnat_eh_personality): Exception handling personality
15032 routine for Ada. Still in rough state, inspired from the C++ version
15033 and still containing a bunch of debugging artifacts.
15034 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
15035 inspired from the C++ library.
15036
15037 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
15038 exception handling integration.
15039
15040 2001-12-19 Arnaud Charlet <charlet@gnat.com>
15041
15042 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
15043 (HIE_SOURCES): Add s-secsta.ad{s,b}.
15044 (HIE_OBJS): Add s-fat*.o
15045 (RAVEN_SOURCES): Remove files that are no longer required. Add
15046 interrupt handling files.
15047 (RAVEN_MOD): Removed, no longer needed.
15048
15049 2001-12-19 Robert Dewar <dewar@gnat.com>
15050
15051 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
15052 Add 2001 to copyright date
15053
15054 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
15055 need to force universal inlining for these cases.
15056
15057 2001-12-19 Arnaud Charlet <charlet@gnat.com>
15058
15059 * s-taprob.adb: Minor clean ups so that this unit can be used in
15060 Ravenscar HI.
15061
15062 * exp_ch7.adb: Allow use of secondary stack in HI mode.
15063 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
15064
15065 2001-12-19 Vincent Celier <celier@gnat.com>
15066
15067 * prj-tree.ads (Project_Node_Record): Add comments for components
15068 Pkg_Id and Case_Insensitive.
15069
15070 2001-12-19 Pascal Obry <obry@gnat.com>
15071
15072 * g-socket.adb: Minor reformatting. Found while reading code.
15073
15074 2001-12-19 Robert Dewar <dewar@gnat.com>
15075
15076 * prj-tree.ads: Minor reformatting
15077
15078 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
15079
15080 * config-lang.in (diff_excludes): Remove.
15081
15082 2001-12-17 Ed Schonberg <schonber@gnat.com>
15083
15084 * sem_res.adb (Resolve_Selected_Component): do not generate a
15085 discriminant check if the selected component is a component of
15086 the argument of an initialization procedure.
15087
15088 * trans.c (tree_transform, case of arithmetic operators): If result
15089 type is private, the gnu_type is the base type of the full view,
15090 given that the full view itself may be a subtype.
15091
15092 2001-12-17 Robert Dewar <dewar@gnat.com>
15093
15094 * sem_res.adb: Minor reformatting
15095
15096 * trans.c (tree_transform, case N_Real_Literal): Add missing third
15097 parameter in call to Machine (unknown horrible effects from this
15098 omission).
15099
15100 * urealp.h: Add definition of Round_Even for call to Machine
15101 Add third parameter for Machine
15102
15103 2001-12-17 Ed Schonberg <schonber@gnat.com>
15104
15105 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
15106 predefined units in No_Run_Time mode.
15107
15108 2001-12-17 Richard Kenner <kenner@gnat.com>
15109
15110 * misc.c (insn-codes.h): Now include.
15111
15112 2001-12-17 Olivier Hainque <hainque@gnat.com>
15113
15114 * a-except.adb: Preparation work for future integration of the GCC 3
15115 exception handling mechanism
15116 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
15117 to factorize previous code sequences and make them externally callable,
15118 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
15119 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
15120 Use the new notification routines.
15121
15122 2001-12-17 Emmanuel Briot <briot@gnat.com>
15123
15124 * prj-tree.ads (First_Choice_Of): Document the when others case
15125
15126 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15127
15128 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
15129 HI-E mode, in order to support Ravenscar profile properly.
15130
15131 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
15132 mode on 32 bits targets.
15133
15134 2001-12-17 Vincent Celier <celier@gnat.com>
15135
15136 * fmap.adb: Initial version.
15137
15138 * fmap.ads: Initial version.
15139
15140 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
15141 If search is successfully done, add to mapping.
15142
15143 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
15144
15145 * make.adb:
15146 (Gnatmake): Add new local variable Mapping_File_Name.
15147 Create mapping file when using project file(s).
15148 Delete mapping file before exiting.
15149
15150 * opt.ads (Mapping_File_Name): New variable
15151
15152 * osint.adb (Find_File): Use path name found in mapping, if any.
15153
15154 * prj-env.adb (Create_Mapping_File): New procedure
15155
15156 * prj-env.ads (Create_Mapping_File): New procedure.
15157
15158 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
15159 (Mapping_File)
15160
15161 * usage.adb: Add entry for new switch -gnatem.
15162
15163 * Makefile.in: Add dependencies for fmap.o.
15164
15165 2001-12-17 Ed Schonberg <schonber@gnat.com>
15166
15167 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
15168 is a package instantiation rewritten as a package body.
15169 (Install_Withed_Unit): Undo previous change, now redundant.
15170
15171 2001-12-17 Gary Dismukes <dismukes@gnat.com>
15172
15173 * layout.adb:
15174 (Compute_Length): Move conversion to Unsigned to callers.
15175 (Get_Max_Size): Convert Len expression to Unsigned after calls to
15176 Compute_Length and Determine_Range.
15177 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
15178 Compute_Length and Determine_Range.
15179 Above changes fix problem with length computation for supernull arrays
15180 where Max (Len, 0) wasn't getting applied due to the Unsigned
15181 conversion used by Compute_Length.
15182
15183 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15184
15185 * rtsfind.ads:
15186 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
15187 System.Secondary_Stack.
15188 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
15189 in HI-E mode.
15190 Remove unused entity RE_Exception_Data.
15191
15192 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
15193
15194 * rident.ads (No_Secondary_Stack): New restriction.
15195
15196 2001-12-17 Joel Brobecker <brobecke@gnat.com>
15197
15198 * gnat_rm.texi: Fix minor typos. Found while reading the section
15199 regarding "Bit_Order Clauses" that was sent to a customer.
15200 Very interesting documentation!
15201
15202 2001-12-17 Robert Dewar <dewar@gnat.com>
15203
15204 * sem_case.adb (Choice_Image): Avoid creating improper character
15205 literal names by using the routine Set_Character_Literal_Name. This
15206 fixes bombs in certain error message cases.
15207
15208 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15209
15210 * a-reatim.adb: Minor reformatting.
15211
15212 2001-12-17 Ed Schonberg <schonber@gnat.com>
15213
15214 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
15215 case where the formal is an extension of another formal in the current
15216 unit or in a parent generic unit.
15217
15218 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15219
15220 * s-tposen.adb: Update comments. Minor reformatting.
15221 Minor code clean up.
15222
15223 * s-tarest.adb: Update comments. Minor code reorganization.
15224
15225 2001-12-17 Gary Dismukes <dismukes@gnat.com>
15226
15227 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
15228 when Java_VM.
15229
15230 2001-12-17 Robert Dewar <dewar@gnat.com>
15231
15232 * exp_attr.adb: Minor reformatting
15233
15234 2001-12-17 Ed Schonberg <schonber@gnat.com>
15235
15236 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
15237 derivations nested within a child unit: verify that the parent
15238 type is declared in an outer scope.
15239
15240 2001-12-17 Robert Dewar <dewar@gnat.com>
15241
15242 * sem_ch12.adb: Minor reformatting
15243
15244 2001-12-17 Ed Schonberg <schonber@gnat.com>
15245
15246 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
15247 warning if current unit is a predefined one, from which bodies may
15248 have been deleted.
15249
15250 2001-12-17 Robert Dewar <dewar@gnat.com>
15251
15252 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
15253 Fix header format. Add 2001 to copyright date.
15254
15255 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
15256 which caused CE during compilation if checks were enabled.
15257
15258 2001-12-17 Vincent Celier <celier@gnat.com>
15259
15260 * make.adb:
15261 (Switches_Of): New function
15262 (Test_If_Relative_Path): New procedure
15263 (Add_Switches): Use new function Switches_Of
15264 (Collect_Arguments_And_Compile): Use new function Switches_Of.
15265 When using a project file, test if there are any relative
15266 search path. Fail if there are any.
15267 (Gnatmake): Only add switches for the primary directory when not using
15268 a project file. When using a project file, change directory to the
15269 object directory of the main project file. When using a project file,
15270 test if there are any relative search path. Fail if there are any.
15271 When using a project file, fail if specified executable is relative
15272 path with directory information, and prepend executable, if not
15273 specified as an absolute path, with the exec directory. Make sure
15274 that only one -o switch is transmitted to the linker.
15275
15276 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
15277
15278 * prj-nmsc.adb:
15279 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
15280 when using a non standard naming scheme.
15281 (Check_Ada_Naming_Scheme): Make sure that error messages
15282 do not raise exceptions.
15283 (Is_Illegal_Append): Return True if there is no dot in the suffix.
15284 (Language_Independent_Check): Check the exec directory.
15285
15286 * prj.adb (Project_Empty): Add new component Exec_Directory
15287
15288 * prj.ads:
15289 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
15290 (Project_Data): Add component Exec_Directory
15291
15292 * snames.adb: Updated to match snames.ads revision 1.215
15293
15294 * snames.ads: Added Exec_Dir
15295
15296 2001-12-17 Robert Dewar <dewar@gnat.com>
15297
15298 * make.adb: Minor reformatting
15299
15300 * prj-nmsc.adb: Minor reformatting
15301
15302 * snames.adb: Updated to match snames.ads
15303
15304 * snames.ads: Alphebetize entries for project file
15305
15306 2001-12-17 Ed Schonberg <schonber@gnat.com>
15307
15308 * trans.c (process_freeze_entity): Do nothing if the entity is a
15309 subprogram that was already elaborated.
15310
15311 2001-12-17 Richard Kenner <kenner@gnat.com>
15312
15313 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
15314 and Esize if object is referenced via pointer.
15315
15316 2001-12-17 Ed Schonberg <schonber@gnat.com>
15317
15318 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
15319 is discrete before analyzing choices.
15320
15321 2001-12-17 Joel Brobecker <brobecke@gnat.com>
15322
15323 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
15324 containing the name of the Ada Main Program. This string is mainly
15325 intended for the debugger.
15326 (Gen_Output_File_C): Do the equivalent change when generating a C file.
15327
15328 2001-12-17 Robert Dewar <dewar@gnat.com>
15329
15330 * ali.adb: Set new Dummy_Entry field in dependency entry
15331
15332 * ali.ads: Add Dummy_Entry field to source dependency table
15333
15334 * bcheck.adb (Check_Consistency): Ignore dummy D lines
15335
15336 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
15337
15338 * lib-writ.ads: Document dummy D lines for missing files.
15339
15340 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
15341
15342 2001-12-17 Robert Dewar <dewar@gnat.com>
15343
15344 * ali.adb: Type reference does not reset current file.
15345
15346 * ali.adb: Recognize and scan renaming reference
15347
15348 * ali.ads: Add spec for storing renaming references.
15349
15350 * lib-xref.ads: Add documentation for handling of renaming references
15351
15352 * lib-xref.adb: Implement output of renaming reference.
15353
15354 * checks.adb:
15355 (Determine_Range): Document local variables
15356 (Determine_Range): Make sure Hbound is initialized. It looks as though
15357 there could be a real problem here with an uninitialized reference
15358 to Hbound, but no actual example of failure has been found.
15359
15360 2001-12-17 Laurent Pautet <pautet@gnat.com>
15361
15362 * g-socket.ads:
15363 Fix comment of Shutdown_Socket and Close_Socket. These functions
15364 should not fail silently because if they are called twice, this
15365 probably means that there is a race condition in the user program.
15366 Anyway, this behaviour is consistent with the rest of this unit.
15367 When an error occurs, an exception is raised with the error message
15368 as exception message.
15369
15370 2001-12-17 Robert Dewar <dewar@gnat.com>
15371
15372 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
15373 that it happens before modification of Sloc values for -gnatD.
15374
15375 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
15376 so that it happens before modification of Sloc values for -gnatD.
15377
15378 * switch.adb: Minor reformatting
15379
15380 2001-12-15 Richard Henderson <rth@redhat.com>
15381
15382 * sem_ch7.adb: Wrap comment.
15383
15384 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
15385
15386 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
15387 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
15388 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
15389 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
15390 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
15391 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
15392 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
15393 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
15394 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
15395 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
15396 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
15397 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
15398 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
15399 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
15400 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
15401 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
15402 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
15403 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
15404 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
15405 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
15406 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
15407 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
15408 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
15409 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
15410 spelling errors.
15411
15412 2001-12-14 Vincent Celier <celier@gnat.com>
15413
15414 * osint.adb(Create_Debug_File): When an object file is specified,
15415 put the .dg file in the same directory as the object file.
15416
15417 2001-12-14 Robert Dewar <dewar@gnat.com>
15418
15419 * osint.adb: Minor reformatting
15420
15421 * lib-xref.adb (Output_Instantiation): New procedure to generate
15422 instantiation references.
15423
15424 * lib-xref.ads: Add documentation of handling of generic references.
15425
15426 * ali.adb (Read_Instantiation_Ref): New procedure to read
15427 instantiation references
15428
15429 * ali.ads: Add spec for storing instantiation references
15430
15431 * bindusg.adb: Minor reformatting
15432
15433 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15434
15435 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15436
15437 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15438
15439 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15440
15441 * csets.ads:
15442 Fix header format
15443 Add 2001 to copyright date
15444 Add entry for Latin-5 (Cyrillic ISO-8859-5)
15445
15446 2001-12-14 Matt Gingell <gingell@gnat.com>
15447
15448 * adaint.c: mktemp is a macro on Lynx and can not be used as an
15449 expression.
15450
15451 2001-12-14 Richard Kenner <kenner@gnat.com>
15452
15453 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
15454 if operand is CONSTRUCTOR.
15455
15456 2001-12-14 Ed Schonberg <schonber@gnat.com>
15457
15458 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
15459 before emiting check on right-hand side, so that exception information
15460 is correct.
15461
15462 2001-12-14 Richard Kenner <kenner@gnat.com>
15463
15464 * utils.c (create_var_decl): Throw away initializing expression
15465 if just annotating types and non-constant.
15466
15467 2001-12-14 Vincent Celier <celier@gnat.com>
15468
15469 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
15470 Default_Ada_...
15471
15472 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
15473 Remove functions.
15474 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
15475
15476 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
15477 Remove functions.
15478 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
15479
15480 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
15481
15482 * ChangeLog: Remove piece of diff output.
15483
15484 2001-12-14 Geert Bosch <bosch@gnat.com>
15485
15486 * config-lang.in: Update copyright notice
15487
15488 * layout.adb: Remove commented out code.
15489
15490 * mdllfile.ads: Update copyright notice. Fix header format.
15491
15492 * sem_case.ads: Likewise.
15493
15494 * sem_ch3.adb: Minor reformatting.
15495
15496 2001-12-12 Geert Bosch <bosch@gnat.com>
15497
15498 * freeze.ads: Update copyright date.
15499
15500 * g-comlin.ads: Minor reformatting.
15501
15502 * gnat-style.texi: Fix typo.
15503
15504 2001-12-12 Geert Bosch <bosch@gnat.com>
15505
15506 * einfo.h: Regenerate.
15507
15508 2001-12-12 Ed Schonberg <schonber@gnat.com>
15509
15510 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
15511 on known node types, rather than untyped fields. Further cleanups.
15512
15513 2001-12-12 Robert Dewar <dewar@gnat.com>
15514
15515 * sem_ch12.adb:
15516 (Save_Entity_Descendant): Minor comment update.
15517 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
15518 of an N_Attribute_Reference node. As per note below, this does not
15519 eliminate need for Associated_Node in attribute ref nodes.
15520 (Associated_Node): Documentation explicitly mentions attribute
15521 reference nodes, since this field is used in such nodes.
15522
15523 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
15524
15525 2001-12-12 Robert Dewar <dewar@gnat.com>
15526
15527 * s-stalib.adb: Add more comments on with statements being needed
15528
15529 * par-ch12.adb: Minor reformatting
15530
15531 * prj-dect.ads: Fix copyright header
15532
15533 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
15534 inputs fit in 32 bits, but the result still overflows.
15535
15536 * s-fatgen.ads: Minor comment improvement
15537
15538 2001-12-12 Ed Schonberg <schonber@gnat.com>
15539
15540 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
15541 formal derived type, look for an inherited component from the full
15542 view of the parent, if any.
15543
15544 2001-12-12 Robert Dewar <dewar@gnat.com>
15545
15546 * checks.ads (Apply_Alignment_Check): New procedure.
15547
15548 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
15549 ensure that the alignment of objects with address clauses is
15550 appropriate, and raise PE if not.
15551
15552 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
15553 Exp_Pakd.Known_Aligned_Enough
15554
15555 * mdllfile.ads: Minor reformatting
15556
15557 * mlib-fil.ads: Minor reformatting
15558
15559 2001-12-12 Ed Schonberg <schonber@gnat.com>
15560
15561 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
15562 fix to any component reference if enclosing record has non-standard
15563 representation.
15564
15565 2001-12-12 Vincent Celier <celier@gnat.com>
15566
15567 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
15568 Iteration
15569
15570 2001-12-12 Ed Schonberg <schonber@gnat.com>
15571
15572 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
15573 sem_attr.
15574
15575 2001-12-12 Robert Dewar <dewar@gnat.com>
15576
15577 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
15578
15579 2001-12-12 Emmanuel Briot <briot@gnat.com>
15580
15581 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
15582 and it adds dependencies to system.io.
15583
15584 2001-12-12 Pascal Obry <obry@gnat.com>
15585
15586 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
15587 variable name.
15588
15589 2001-12-11 Ed Schonberg <schonber@gnat.com>
15590
15591 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
15592 that is the parent of other generics, the instance body replaces the
15593 instance node. Retrieve the instance of the spec, which is the one
15594 that is visible in clients and within the body.
15595
15596 2001-12-11 Vincent Celier <celier@gnat.com>
15597
15598 * gnatmain.adb: Initial version.
15599
15600 * gnatmain.ads: Initial version.
15601
15602 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
15603
15604 * snames.adb: Updated to match snames.ads.
15605
15606 * snames.ads: Added Gnatstub.
15607
15608 2001-12-11 Vincent Celier <celier@gnat.com>
15609
15610 * prj-attr.adb (Initialization_Data): Change name from
15611 Initialisation_Data.
15612
15613 2001-12-11 Emmanuel Briot <briot@gnat.com>
15614
15615 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
15616 + and * applied to backslashed expressions like \r.
15617
15618 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
15619
15620 * g-os_lib.ads: String_List type added, Argument_List type is now
15621 subtype of String_List.
15622
15623 2001-12-11 Robert Dewar <dewar@gnat.com>
15624
15625 * g-os_lib.ads: Change copyright to FSF
15626 Add comments for String_List type
15627
15628 2001-12-11 Vincent Celier <celier@gnat.com>
15629
15630 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
15631 string to the buffer).
15632
15633 2001-12-11 Ed Schonberg <schonber@gnat.com>
15634
15635 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
15636 sem_attr.
15637
15638 * sem_attr.adb: Simplify previous fix for Address.
15639 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
15640 to avoid anomalies where the bound of the type appears to raise
15641 constraint error.
15642
15643 2001-12-11 Robert Dewar <dewar@gnat.com>
15644
15645 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
15646 handled.
15647
15648 2001-12-11 Ed Schonberg <schonber@gnat.com>
15649
15650 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
15651 renamed unit before checking for recursive instantiations.
15652
15653 2001-12-11 Emmanuel Briot <briot@gnat.com>
15654
15655 * prj.ads: Add comments for some of the fields.
15656
15657 2001-12-11 Robert Dewar <dewar@gnat.com>
15658
15659 * lib-xref.adb (Output_Refs): Don't output type references outside
15660 the main unit if they are not otherwise referenced.
15661
15662 2001-12-11 Ed Schonberg <schonber@gnat.com>
15663
15664 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
15665 code and diagnose additional illegal uses
15666
15667 * sem_util.adb (Is_Object_Reference): An indexed component is an
15668 object only if the prefix is.
15669
15670 2001-12-11 Vincent Celier <celier@gnat.com>
15671
15672 * g-diopit.adb: Initial version.
15673
15674 * g-diopit.ads: Initial version.
15675
15676 * g-dirope.adb:
15677 (Expand_Path): Avoid use of Unbounded_String
15678 (Find, Wildcard_Iterator): Moved to child package Iteration
15679
15680 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
15681
15682 2001-12-11 Robert Dewar <dewar@gnat.com>
15683
15684 * sem_attr.adb: Minor reformatting
15685
15686 2001-12-11 Ed Schonberg <schonber@gnat.com>
15687
15688 * sem_ch3.adb: Clarify some ???.
15689
15690 2001-12-11 Robert Dewar <dewar@gnat.com>
15691
15692 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
15693 Exp_Pakd.Known_Aligned_Enough
15694
15695 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
15696 version is moved to Exp_Ch13.
15697
15698 2001-12-11 Robert Dewar <dewar@gnat.com>
15699
15700 * einfo.ads: Minor reformatting
15701
15702 * exp_ch5.adb: Add comment for previous.change
15703
15704 * ali.adb: New interface for extended typeref stuff.
15705
15706 * ali.ads: New interface for typeref stuff.
15707
15708 * checks.adb (Apply_Alignment_Check): New procedure.
15709
15710 * debug.adb: Add -gnatdM for modified ALI output
15711
15712 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
15713
15714 * lib-xref.adb: Extend generation of <..> notation to cover
15715 subtype/object types. Note that this is a complete rewrite,
15716 getting rid of the very nasty quadratic algorithm previously
15717 used for derived type output.
15718
15719 * lib-xref.ads: Extend description of <..> notation to cover
15720 subtype/object types. Uses {..} for these other cases.
15721 Also use (..) for pointer types.
15722
15723 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
15724
15725 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
15726 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
15727
15728 2001-12-11 Vincent Celier <celier@gnat.com>
15729
15730 * gnatcmd.adb:
15731 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
15732 Changed /BIND_ONLY to /ACTIONS=BIND
15733 Changed /LINK_ONLY to /ACTIONS=LINK
15734
15735 2001-12-11 Ed Schonberg <schonber@gnat.com>
15736
15737 * sem_ch8.adb (Find_Selected_Component): improved search for a
15738 candidate package in case of error.
15739
15740 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
15741 chain back on scope stack before reinstalling use clauses.
15742
15743 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
15744 is enabled, do not kill the code for the condition, to preserve
15745 warning.
15746
15747 2001-12-11 Robert Dewar <dewar@gnat.com>
15748
15749 * checks.adb (Insert_Valid_Check): Apply validity check to expression
15750 of conversion, not to result of conversion.
15751
15752 2001-12-11 Ed Schonberg <schonber@gnat.com>
15753
15754 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
15755 before freezing parent. If the declarations are mutually recursive,
15756 an access to the current record type may be frozen before the
15757 derivation is complete.
15758
15759 2001-12-05 Vincent Celier <celier@gnat.com>
15760
15761 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
15762 -c /COMPILE_ONLY, -l /LINK_ONLY
15763
15764 * opt.ads:
15765 (Bind_Only): New Flag
15766 (Link_Only): New flag
15767
15768 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
15769 and -l (Link_Only)
15770
15771 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
15772
15773 * make.adb:
15774 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
15775 (Gnatmake): Set the step flags. Only perform a step if the
15776 corresponding step flag is True.
15777 (Scan_Make_Arg): Reset the bind and link step flags when -u
15778 or -gnatc has been specified.
15779
15780 2001-12-05 Ed Schonberg <schonber@gnat.com>
15781
15782 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
15783 get bounds from right operand.
15784
15785 * sem_eval.adb: Minor reformatting
15786
15787 * exp_util.adb (Make_Literal_Range): use bound of literal rather
15788 than Index'First, its lower bound may be different from 1.
15789
15790 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
15791 and C48009J
15792
15793 2001-12-05 Vincent Celier <celier@gnat.com>
15794
15795 * prj-nmsc.adb Minor reformatting
15796
15797 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
15798 set and libraries are not supported.
15799
15800 2001-12-05 Ed Schonberg <schonber@gnat.com>
15801
15802 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
15803 private view explicitly, so the back-end can treat as a global
15804 when appropriate.
15805
15806 2001-12-05 Ed Schonberg <schonber@gnat.com>
15807
15808 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
15809 unit, always replace instance node with new body, for ASIS use.
15810
15811 2001-12-05 Vincent Celier <celier@gnat.com>
15812
15813 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
15814 libraries are not supported and both attributes Library_Name and
15815 Library_Dir are specified.
15816
15817 * prj-proc.adb (Expression): Set location of Result to location of
15818 first term.
15819
15820 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
15821 (prj-nmsc is now importing MLib.Tgt)
15822
15823 * prj-proc.adb: Put the change indicated above that was forgotten.
15824
15825 2001-12-05 Robert Dewar <dewar@gnat.com>
15826
15827 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
15828
15829 2001-12-05 Ed Schonberg <schonber@gnat.com>
15830
15831 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
15832 constraint, introduce explicit subtype declaration and derive from it.
15833
15834 * sem_ch3.adb: Minor reformatting
15835
15836 2001-12-05 Robert Dewar <dewar@gnat.com>
15837
15838 * checks.adb (Determine_Range): Increase cache size for checks.
15839 Minor reformatting
15840
15841 * exp_ch6.adb: Minor reformatting
15842 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
15843 a parameter whose root type is System.Address, since treating such
15844 subprograms as pure in the code generator is almost surely a mistake
15845 that will lead to unexpected results.
15846
15847 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
15848 change handling of conversions.
15849
15850 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
15851
15852 2001-12-05 Ed Schonberg <schonber@gnat.com>
15853
15854 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
15855 aggregate with static wrong size, attach generated Raise node to
15856 declaration.
15857
15858 2001-12-05 Robert Dewar <dewar@gnat.com>
15859
15860 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
15861 Fixes compilation abandoned bomb in B24009B.
15862
15863 2001-12-05 Ed Schonberg <schonber@gnat.com>
15864
15865 * sem_ch12.adb:
15866 Document use of Associated_Node on Selected_Components.
15867 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
15868 to clarify use of untyped descendant fields.
15869
15870 2001-12-05 Robert Dewar <dewar@gnat.com>
15871
15872 * prj-dect.ads: Add ??? comment
15873 Add 2001 to copyright notice (was not done in after all)
15874
15875 * prj-part.adb: Minor reformatting. Reword one awkward error message.
15876
15877 * prj.ads: Minor reformatting throughout, and add some ??? comments
15878
15879 * snames.ads: Minor reformatting
15880
15881 2001-12-05 Geert Bosch <bosch@gnat.com>
15882
15883 * snames.adb: Autoupdate
15884
15885 2001-12-05 Vincent Celier <celier@gnat.com>
15886
15887 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
15888
15889 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
15890
15891 * prj-env.adb: Minor comment changes (modifying -> extends).
15892
15893 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
15894
15895 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
15896 Tok_Extends.
15897
15898 * prj.adb (Initialize): Change Modifying to Extends.
15899
15900 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
15901
15902 * prj.ads: Minor comment change (Modifying -> extending).
15903
15904 * snames.ads: Change modifying to extends.
15905
15906 2001-12-05 Robert Dewar <dewar@gnat.com>
15907
15908 * sem_warn.adb: Remove stuff for conditionals, we are not going to
15909 do this after all.
15910
15911 * sem_warn.ads: Remove stuff for conditionals, we are not going to
15912 do this after all. Add 2001 to copyright notice
15913
15914 2001-12-04 Geert Bosch <bosch@gnat.com>
15915
15916 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
15917
15918 2001-12-04 Robert Dewar <dewar@gnat.com>
15919
15920 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
15921 location if we already have errors. Stops some cases of cascaded
15922 errors.
15923
15924 * errout.adb: Improve comment.
15925
15926 2001-12-04 Robert Dewar <dewar@gnat.com>
15927
15928 * sem_ch12.adb:
15929 (Analyze_Formal_Type_Definition): Defend against Error.
15930 (Analyze_Formal_Subprogram): Defend against Error.
15931
15932 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
15933 remove following semicolon if present. Removes cascaded error.
15934
15935 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
15936
15937 * bindgen.adb:
15938 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
15939 exceptions equals 0.
15940 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
15941 Fixes PIWG E tests (which have to be run with -gnatL).
15942
15943 2001-12-04 Robert Dewar <dewar@gnat.com>
15944
15945 * einfo.ads: Minor reformatting
15946
15947 2001-12-04 Ed Schonberg <schonber@gnat.com>
15948
15949 * einfo.ads: Block_Node points to the identifier of the block, not to
15950 the block node itself, to preserve the link when the block is
15951 rewritten, e.g. within an if-statement with a static condition.
15952
15953 * inline.adb (Cleanup_Scopes): recover block statement from block
15954 entity using new meaning of Block_Node.
15955
15956 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
15957 identifier of block node, rather than to node itself.
15958
15959 2001-12-04 Gary Dismukes <dismukes@gnat.com>
15960
15961 * layout.adb:
15962 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
15963 (Discrimify): Go back to setting the Etypes of the selected component
15964 because the Vname component does not exist at this point and will
15965 fail name resolution. Also set Analyzed.
15966 Remove with and use of Sem_Res.
15967
15968 2001-12-04 Arnaud Charlet <charlet@gnat.com>
15969
15970 * Makefile.in: (HIE_SOURCES): add s-fat*.
15971
15972 2001-12-04 Robert Dewar <dewar@gnat.com>
15973
15974 * sem_attr.adb:
15975 (Compile_Time_Known_Attribute): New procedure.
15976 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
15977 proper range check.
15978
15979 2001-12-04 Ed Schonberg <schonber@gnat.com>
15980
15981 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
15982 processing discriminants to diagnose illegal default values.
15983
15984 2001-12-04 Ed Schonberg <schonber@gnat.com>
15985
15986 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
15987 access discriminant within a type extension that constrains its
15988 parent discriminants.
15989
15990 2001-12-04 Ed Schonberg <schonber@gnat.com>
15991
15992 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
15993 is malformed, use instance of Any_Id to allow analysis to proceed.
15994
15995 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
15996 type definition is illegal.
15997 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
15998 misplaced.
15999
16000 2001-12-04 Ed Schonberg <schonber@gnat.com>
16001
16002 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
16003 constants.
16004
16005 2001-12-04 Robert Dewar <dewar@gnat.com>
16006
16007 * errout.adb: Minor reformatting
16008
16009 2001-12-04 Robert Dewar <dewar@gnat.com>
16010
16011 * exp_util.adb: Minor reformatting from last change
16012
16013 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
16014 which is a rewriting of an expression, traverse the original
16015 expression to remove warnings that may have been posted on it.
16016
16017 2001-12-04 Ed Schonberg <schonber@gnat.com>
16018
16019 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
16020 record that has other packed components.
16021
16022 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
16023
16024 * adaint.c: Minor cleanups.
16025
16026 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
16027
16028 * adaint.c: Do not use utime.h on vxworks.
16029
16030 2001-12-04 Arnaud Charlet <charlet@gnat.com>
16031
16032 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
16033 more confusion than it solves.
16034
16035 2001-12-04 Geert bosch <bosch@gnat.com>
16036
16037 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
16038
16039 2001-12-04 Geert Bosch <bosch@gnat.com>
16040
16041 * Makefile.in (update-sources): New target.
16042 For use by gcc_release script.
16043
16044 2001-12-04 Ed Schonberg <schonber@gnat.com>
16045
16046 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
16047 a configuration pragma, it is now legal wherever a pragma can appear.
16048
16049 2001-12-04 Zack Weinberg <zack@codesourcery.com>
16050
16051 * Makefile.in: Don't set ALL. Delete @cross_defines@,
16052 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
16053 is now @CROSS@ -DIN_GCC; update comment.
16054
16055 2001-12-04 Robert Dewar <dewar@gnat.com>
16056
16057 * einfo.adb (Has_Pragma_Pure_Function): New flag.
16058 Fix problem that stopped ceinfo from working
16059
16060 * einfo.ads (Has_Pragma_Pure_Function): New flag.
16061
16062 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
16063
16064 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
16065
16066 * gnatchop.adb:
16067 (File_Time_Stamp): New procedure.
16068 (Preserve_Mode): New boolean.
16069 (Write_Unit): Pass time stamp.
16070 Implement -p switch (preserve time stamps).
16071
16072 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
16073
16074 * gnatchop.adb: Do usage info for -p switch
16075
16076 * adaint.h (__gnat_set_file_time_name): New function
16077
16078 * adaint.c (__gnat_set_file_time_name): Implement
16079
16080 * adaint.h: Fix typo
16081
16082 2001-12-03 Robert Dewar <dewar@gnat.com>
16083
16084 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
16085 have Associated_Node.
16086
16087 2001-12-03 Robert Dewar <dewar@gnat.com>
16088
16089 * prj-proc.adb: Minor reformatting
16090
16091 * make.adb: Minor reformatting
16092
16093 2001-12-03 Geert Bosch <bosch@gnat.com>
16094
16095 * make.adb: Minor reformatting.
16096
16097 2001-12-03 Robert Dewar <dewar@gnat.com>
16098
16099 * sem_ch12.adb: Minor reformatting
16100
16101 2001-12-03 Ed Schonberg <schonber@gnat.com>
16102
16103 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
16104 push Standard on the stack before analyzing the instance body,
16105 in order to have a clean visibility environment.
16106
16107 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
16108
16109 2001-12-03 Ed Schonberg <schonber@gnat.com>
16110
16111 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
16112 instantiation of a body that contains an inlined body.
16113
16114 2001-12-03 Ed Schonberg <schonber@gnat.com>
16115
16116 * sem_ch12.adb:
16117 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
16118 to prevent freezing within formal packages.
16119 (Freeze_Subprogram_Body): If body comes from another instance that
16120 appeared before its own body, place freeze node at end of current
16121 declarative part, to prevent a back-end crash.
16122 (Inline_Instance_Body): Handle properly a package instance within
16123 a subprogram instance that is a child unit.
16124
16125 2001-12-01 Graham Stott <grahams@redhat.com>
16126
16127 * Makefile.in (misc.o): Add missing $(srcdir) prefix
16128 and add optabs.h dependency.
16129
16130 * misc.c: Include optabs.h
16131 (gnat_tree_code_type): Make static and const.
16132 (gnat_tree_code_length): Likewise.
16133 (gnat_tree_code_name): Likewise.
16134 (update_setjmp_buf): Obtain operands mode from insn_data.
16135
16136 2001-11-29 Richard Henderson <rth@redhat.com>
16137
16138 * init.c: Remove obsolete dwarf2 frame.h section.
16139
16140 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
16141
16142 * Make-lang.in (ada.generated-manpages): New dummy target.
16143
16144 2001-11-29 Ed Schonberg <schonber@gnat.com>
16145
16146 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
16147 into Command, an array conversion is illegal here. Uncovered by
16148 ACATS B460005.
16149
16150 2001-11-28 Geert Bosch <bosch@gnat.com>
16151
16152 * init.c: Minor whitespace changes.
16153
16154 2001-11-28 Doug Rupp <rupp@gnat.com>
16155
16156 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
16157 signal stack.
16158
16159 2001-11-28 Zack Weinberg <zack@codesourcery.com>
16160
16161 * misc.c (gnat_expand_constant): Move declaration above
16162 definition of lang_hooks.
16163 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
16164 (gnat_init): lang_expand_constant no longer exists.
16165
16166 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
16167 always have vprintf.
16168 (gnat_init): Always call set_internal_error_function.
16169
16170 2001-11-27 Andreas Jaeger <aj@suse.de>
16171
16172 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
16173
16174 2001-11-27 Laurent Guerby <guerby@acm.org>
16175
16176 * Makefile.in: Regenerate Ada dependencies.
16177
16178 2001-11-26 Richard Henderson <rth@redhat.com>
16179
16180 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
16181 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
16182 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
16183
16184 2001-11-25 Laurent Guerby <guerby@acm.org>
16185
16186 * sysdep.c (rts_get_*): Fix style.
16187
16188 2001-11-19 Laurent Guerby <guerby@acm.org>
16189
16190 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
16191 since it is of no apparent use and cause warnings.
16192
16193 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
16194
16195 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
16196 static too.
16197 (gnat_init): Don't return NULL.
16198 (finish_parse): Remove.
16199
16200 2001-11-17 Laurent Guerby <guerby@acm.org>
16201
16202 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
16203 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
16204 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
16205 * lang-spec.h: Add missing struct field to silence warnings.
16206 * sysdep.c (rts_get_*): Provide K&R prototype.
16207 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
16208 * traceback.c (Unlock_Task, Lock_Task): Likewise.
16209 * tracebak.c (__gnat_backtrace): Remove unused variable.
16210 * utils.c (end_subprog_body): Move to K&R style.
16211
16212 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16213
16214 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
16215
16216 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
16217
16218 * misc.c (gnat_init): Change prototype. Include the
16219 functionality of the old init_parse and init_decl_processing.
16220 (gnat_init_decl_processing): New prototype.
16221 (init_parse): Remove.
16222 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
16223
16224 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
16225
16226 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
16227 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
16228 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
16229 set_yydebug): Remove.
16230
16231 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
16232
16233 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
16234 (struct lang_hooks): Constify.
16235 (language_string, lang_identify): Remove.
16236 * utils.c (init_decl_processing): Update.
16237
16238 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
16239
16240 * misc.c: Include langhooks-def.h.
16241 * Makefile.in: Update.
16242
16243 2001-10-30 Robert Dewar <dewar@gnat.com>
16244
16245 * style.adb:
16246 (Check_Identifier): Rewrite circuit to be compatible with use of letters
16247 in the upper half of ASCII.
16248 (Check_Identifier): Minor reformatting
16249
16250 2001-10-30 Geert Bosch <bosch@gnat.com>
16251
16252 * (Associated_Node, Set_Associated_Node): Do not check for
16253 Freeze_Entity.
16254
16255 2001-10-30 Robert Dewar <dewar@gnat.com>
16256
16257 * a-reatim.ads: Minor reformatting
16258
16259 2001-10-30 Robert Dewar <dewar@gnat.com>
16260
16261 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
16262 undocumented declarations.
16263
16264 2001-10-30 Pascal Obry <obry@gnat.com>
16265
16266 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
16267 to the binder and linker.
16268 Minor style fix.
16269
16270 * mdll.ads: Fix layout. Update copyright notice.
16271
16272 * mdll.adb: Fix layout. Update copyright notice.
16273
16274 2001-10-30 Robert Dewar <dewar@gnat.com>
16275
16276 * usage.adb: Minor fix to output for -gnaty.
16277
16278 2001-10-30 Ed Schonberg <schonber@gnat.com>
16279
16280 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
16281 to accommodate all its possible values.
16282
16283 * a-reatim.adb (Split): Special-case handling of Time_Span_First
16284 and of small absolute values of T.
16285
16286 2001-10-30 Richard Kenner <kenner@gnat.com>
16287
16288 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
16289 set_mem_attributes since not needed and wrong if RESULT if a REG;
16290 fixes ACATS failures.
16291
16292 2001-10-30 Geert Bosch <bosch@gnat.com>
16293
16294 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
16295 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
16296
16297 2001-10-30 Robert Dewar <dewar@gnat.com>
16298
16299 * bindusg.adb: Undocument -f switch.
16300
16301 * gnatcmd.adb: Remove /FULL_ELABORATION.
16302
16303 * opt.ads (Force_RM_Elaboration_Order): Document that this is
16304 obsolescent.
16305
16306 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
16307
16308 * gnatbind.adb: Minor update of warning msg.
16309
16310 2001-10-30 Vincent Celier <celier@gnat.com>
16311
16312 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
16313 for project file switches (-P (/PROJECT_FILE=),
16314 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
16315 or MEDIUM or HIGH)
16316
16317 2001-10-30 Geert Bosch <bosch@gnat.com>
16318
16319 * decl.c: Minor whitespace fixes.
16320
16321 2001-10-30 Richard Kenner <kenner@gnat.com>
16322
16323 * utils2.c (build_allocator): Test for SIZE overflow in array case too
16324
16325 2001-10-30 Geert Bosch <bosch@gnat.com>
16326
16327 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
16328 Found due to GCC 3.0 warning of using uninitialized value.
16329
16330 * layout.adb:
16331 (Get_Max_Size): Use variant record for tracking value/expression.
16332 Makes logic clearer and prevents warnings for uninitialized variables.
16333 (Layout_Array_Type): Use variant record for tracking value/expression.
16334 Makes logic clearer and prevents warnings for uninitialized variables.
16335
16336 2001-10-30 Robert Dewar <dewar@gnat.com>
16337
16338 * lib.adb: Minor reformatting
16339
16340 * s-taprop.ads: Minor reformatting
16341
16342 2001-10-29 Laurent Guerby <guerby@acm.org>
16343
16344 * init.c:
16345 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
16346 const.
16347 (_gnat_error_handler): Make MSG const.
16348
16349 2001-10-29 Richard Kenner <kenner@gnat.com>
16350
16351 * sysdep.c: Fix localtime_r problem on LynxOS.
16352 Also remove #elif to avoid warnings.
16353
16354 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
16355 used by this.
16356
16357 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
16358
16359 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
16360
16361 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
16362 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
16363 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
16364 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
16365 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
16366 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
16367 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
16368 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
16369 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
16370 types.ads, urealp.adb: Fix spelling errors.
16371
16372 2001-10-27 Laurent Guerby <guerby@acm.org>
16373
16374 * trans.c (gigi): Fix non determinism leading to bootstrap
16375 comparison failures for debugging information.
16376
16377 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
16378
16379 * gnat_rm.texi: Use @./@: where appropriate.
16380
16381 2001-10-26 Robert Dewar <dewar@gnat.com>
16382
16383 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
16384
16385 2001-10-26 Richard Kenner <kenner@gnat.com>
16386
16387 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
16388
16389 2001-10-26 Richard Kenner <kenner@gnat.com>
16390
16391 * decl.c (validate_size): Modify message for bad size to avoid
16392 implication that compiler is modifying the size.
16393
16394 2001-10-26 Robert Dewar <dewar@gnat.com>
16395
16396 * prj-util.adb: Minor reformatting. Fix bad header format.
16397
16398 2001-10-26 Robert Dewar <dewar@gnat.com>
16399
16400 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
16401
16402 * sinfo.ads: Clarify use of Associated_Node (documentation only).
16403
16404 * sem_ch12.adb: Change Node4 to Associated_Node. Change
16405 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
16406 much more narrowly in places where needed. These are cleanups.
16407
16408 2001-10-26 Joel Brobecker <brobecke@gnat.com>
16409
16410 * 5zosinte.ads (null_pthread): new constant.
16411
16412 * 5ztaprop.adb:
16413 (Initialize_TCB): Initialize thread ID to null, to be able to verify
16414 later that this field has been set.
16415 (Finalize_TCB): ditto.
16416 (Suspend_Task): Verify that the thread ID is not null before using it.
16417 (Resume_Task): ditto.
16418
16419 * s-tasdeb.adb:
16420 (Resume_All_Tasks): Lock the tasks list before using it.
16421 (Suspend_All_Tasks): ditto.
16422
16423 2001-10-26 Richard Kenner <kenner@gnat.com>
16424
16425 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
16426 Make constant variant of designated type for Is_Access_Constant.
16427 Call update_pointer_to with main variant.
16428
16429 * trans.c (process_freeze_entity, process_type):
16430 Call update_pointer_to on main variant.
16431
16432 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
16433 If main variant, update all other variants.
16434
16435 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
16436 TREE_STATIC.
16437
16438 2001-10-26 Robert Dewar <dewar@gnat.com>
16439
16440 * prj-util.adb: Minor reformatting
16441
16442 2001-10-26 Robert Dewar <dewar@gnat.com>
16443
16444 * prj-util.adb: Minor reformatting
16445
16446 2001-10-26 Robert Dewar <dewar@gnat.com>
16447
16448 * prj-attr.adb: Minor reformatting throughout
16449
16450 2001-10-26 Robert Dewar <dewar@gnat.com>
16451
16452 * prj-attr.ads: Minor reformatting
16453 Add ??? comment (this whole spec has almost no comments)
16454
16455 2001-10-26 Vincent Celier <celier@gnat.com>
16456
16457 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
16458 ("//") that precede the drive letter on Interix.
16459
16460 2001-10-26 Geert Bosch <bosch@gnat.com>
16461
16462 * gnat_rm.texi: Add GNAT Reference Manual.
16463
16464 2001-10-25 Robert Dewar <dewar@gnat.com>
16465
16466 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
16467 is Error. Similar change for other renaming cases.
16468
16469 2001-10-25 Robert Dewar <dewar@gnat.com>
16470
16471 * s-atacco.ads: Add pragma Inline_Always for functions.
16472 Fix header format. Add copyright 2001
16473
16474 2001-10-25 Ed Schonberg <schonber@gnat.com>
16475
16476 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
16477 return Error rather than Empty so that analysis can proceed.
16478
16479 2001-10-25 Ed Schonberg <schonber@gnat.com>
16480
16481 * sem_util.adb (Enter_Name): better handling of cascaded error
16482 messages when a unit appears in its own context.
16483
16484 2001-10-25 Ed Schonberg <schonber@gnat.com>
16485
16486 * sem_util.adb (Defining_Entity): in case of error, attach created
16487 entity to specification, so that semantic analysis can proceed.
16488
16489 2001-10-25 Robert Dewar <dewar@gnat.com>
16490
16491 * sem_util.adb
16492 (Defining_Entity): Deal with Error.
16493 (Process_End_Label): Deal with bad end label for.
16494
16495 2001-10-25 Ed Schonberg <schonber@gnat.com>
16496
16497 * sem_elab.adb (Check_A_Call): refine message when call is in an
16498 instance but callee is not declared in the generic unit.
16499
16500 2001-10-25 Ed Schonberg <schonber@gnat.com>
16501
16502 * sem_elab.adb (Check_A_Call): check for renaming before finding the
16503 enclosing unit, which may already be different from the calling unit.
16504
16505 2001-10-25 Geert Bosch <bosch@gnat.com>
16506
16507 * 4gintnam.ads: fix header format.
16508
16509 2001-10-25 Ed Schonberg <schonber@gnat.com>
16510
16511 * sem_res.adb (Resolve_Call): if the call is actually an indexing
16512 operation on the result of a parameterless call, perform elaboration
16513 check after the node has been properly rewritten.
16514
16515 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
16516 inlined within the generic tree, the defining identifier is not a
16517 compilation_unit.
16518
16519 2001-10-25 Ed Schonberg <schonber@gnat.com>
16520
16521 * sem_res.adb (Resolve): special-case resolution of Null in an
16522 instance or an inlined body to avoid view conflicts.
16523
16524 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
16525 compatibility by retrieving the access type of the generic copy.
16526
16527 2001-10-25 Robert Dewar <dewar@gnat.com>
16528
16529 * sem_ch3.adb:
16530 (Analyze_Number_Declaration): Handle error expression.
16531 (Signed_Integer_Type_Declaration): Handle error bound.
16532 (Analyze_Subtype_Indication): Handle error range.
16533
16534 * sem_util.adb (Get_Index_Bounds): Check for Error.
16535
16536 2001-10-25 Robert Dewar <dewar@gnat.com>
16537
16538 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
16539 in no run time mode.
16540
16541 2001-10-25 Pascal Obry <obry@gnat.com>
16542
16543 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
16544 mode case for ALLOC case.
16545
16546 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
16547 all platforms. Improvement of last change.
16548
16549 2001-10-25 Robert Dewar <dewar@gnat.com>
16550
16551 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
16552
16553 2001-10-25 Geert Bosch <bosch@gnat.com>
16554
16555 * osint.adb (Is_Relative): Remove duplicate.
16556
16557 2001-10-25 Pascal Obry <obry@gnat.com>
16558
16559 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
16560 pathnames in UNIX and DOS style with drive letter.
16561 (Is_Relative): new routine.
16562
16563 * osint.adb: Minor reformatting
16564
16565 * osint.adb (Is_Relative): implementation using
16566 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
16567
16568 2001-10-25 Pascal Obry <obry@gnat.com>
16569
16570 * g-dirope.adb (Basename): correctly compute offset between the
16571 original Path and the translated one.
16572
16573 * g-dirope.adb: (Base_Name): add some comments.
16574
16575 2001-10-25 Robert Dewar <dewar@gnat.com>
16576
16577 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
16578 in HIE mode, avoids compilation abandoned message
16579
16580 * exp_imgv.adb: Correct typo in previous change
16581
16582 * exp_imgv.adb: Correct typo in previous change (not my day!)
16583
16584 2001-10-25 Robert Dewar <dewar@gnat.com>
16585
16586 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
16587
16588 2001-10-25 Pascal Obry <obry@gnat.com>
16589
16590 * g-awk.ads: Move all pragma inlines next to the routine
16591 declarations. This is more uniform with other GNAT spec.
16592
16593 2001-10-22 Geert Bosch <bosch@gnat.com>
16594
16595 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
16596
16597 2001-10-19 Geert Bosch <bosch@gnat.com>
16598
16599 * Makefile.in (tools, gnattools): Remove gnatmem.
16600
16601 2001-10-17 Richard Henderson <rth@redhat.com>
16602
16603 * Makefile.in (misc.o): Depend on langhooks.h.
16604 * misc.c: Include it.
16605 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
16606 (LANG_HOOKS_DECODE_OPTION): New.
16607 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
16608
16609 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
16610
16611 * trans.c (tree_transform): Adjust to recent change in
16612 expand_asm_operands to implement named asm operands.
16613
16614 2001-10-11 Ed Schonberg <schonber@gnat.com>
16615
16616 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
16617 renaming of discriminant for mutable record type.
16618
16619 2001-10-11 Robert Dewar <dewar@gnat.com>
16620
16621 * validsw.adb: Properly save -gnatVn status.
16622
16623 2001-10-11 Robert Dewar <dewar@gnat.com>
16624
16625 * usage.adb: Add lines for V switch.
16626
16627 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
16628 (/VALIDITY_CHECKING).
16629
16630 2001-10-11 Ed Schonberg <schonber@gnat.com>
16631
16632 * sem_type.adb (Add_One_Interp): an operator for a type declared in
16633 an extension of System is known to be visible.
16634
16635 2001-10-11 Ed Schonberg <schonber@gnat.com>
16636
16637 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
16638 properly. Fixes regression on ACATS C34005G.
16639
16640 2001-10-11 Robert Dewar <dewar@gnat.com>
16641
16642 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
16643 loop in generic instance, since this is likely not very useful.
16644
16645 2001-10-11 Robert Dewar <dewar@gnat.com>
16646
16647 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
16648 the error message for high integrity mode.
16649
16650 * rtsfind.adb (RTE): Give message if we try to find an entity that
16651 is not available in high integrity mode.
16652
16653 * rtsfind.ads:
16654 (OK_To_Use_In_HIE_Mode): New array.
16655 (RTE): May return Empty in high integrity mode.
16656
16657 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
16658 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
16659
16660 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
16661 unit if not inlined always and in no runtime mode. Fixes problem
16662 caused by new Rtsfind changes.
16663
16664 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
16665 body is deleted.
16666
16667 * rtsfind.adb (RTE): Make sure we do not try to load unit after
16668 giving message for entity not available in high integrity mode.
16669
16670 2001-10-11 Pascal Obry <obry@gnat.com>
16671
16672 * impunit.adb: Add GNAT.CRC32.
16673
16674 2001-10-11 Ed Schonberg <schonber@gnat.com>
16675
16676 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
16677 properly the case where one universal operand in a non-static
16678 exponentiation of a real literal.
16679
16680 2001-10-11 Ed Schonberg <schonber@gnat.com>
16681
16682 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
16683 clause, return the gobal finalization list, for lack of anthing else.
16684
16685 2001-10-11 Ed Schonberg <schonber@gnat.com>
16686
16687 * exp_ch7.adb (Make_Transient_Block): if statement is within
16688 exception handler, always use new transient scope to place Clean
16689 procedure.
16690
16691 2001-10-11 Pascal Obry <obry@gnat.com>
16692
16693 * Makefile.in:
16694 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
16695 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
16696 (GNATLS_RTL_OBJS): add g-crc32.o
16697 (GNATMAKE_RTL_OBJS): add g-crc32.o
16698
16699 * ali-util.adb:
16700 (CRC_Match): new function.
16701 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
16702 instead of the previous simple checksum algorithm.
16703 (Time_Stamp_Mismatch): use CRC_Match for comparison.
16704 (Set_Source_Table): idem.
16705
16706 * ali-util.ads:
16707 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
16708 instead of simple checksum.
16709 (CRC_Match): new function.
16710 (CRC_Error): new constant.
16711
16712 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
16713 a CRC now and not a simple checksum. A CRC uses lower-case hex
16714 letters, fixes ambiguity in parsing.
16715
16716 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
16717 is what this variable will store.
16718
16719 * bcheck.adb: Change reference to chechsum in comments by CRC.
16720 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
16721 rename All_Checksum_Match to All_CRC_Match. Change due to API
16722 renaming since now GNAT does not use a simple checksum but a
16723 CRC using GNAT.CRC32.
16724
16725 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
16726 now and not anymore a simple checksum.
16727
16728 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
16729 places.
16730
16731 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
16732
16733 * scans.adb:
16734 (Restore_Scan_State): rename Checksum to CRC.
16735 (Save_Scan_State): idem.
16736
16737 * scans.ads:
16738 With GNAT.CRC32.
16739 (Checksum): rename to CRC.
16740 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
16741
16742 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
16743 GNAT.CRC32). Update copyright notice.
16744
16745 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
16746 GNAT.CRC32). Update copyright notice.
16747
16748 * scn.adb:
16749 (Accumulate_Checksum): removed.
16750 (Update): new procedure. Add a wide-character into the CRC.
16751
16752 * sinput-l.adb:
16753 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
16754 (Load_File): fix initialization of S (change Source_Checksum to
16755 Source_CRC)
16756
16757 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
16758 Source_CRC in S initialization.
16759
16760 * sinput.adb (Source_Checksum): renamed to Source_CRC.
16761
16762 * sinput.ads (Source_Checksum): renamed to Source_CRC.
16763 Update comments for the CRC.
16764
16765 * types.adb (Hex): Use lowercase for the letter part.
16766
16767 * types.ads (Get_Hex_String): Returns the hexadecimal representation
16768 for a word. This is currently used only for CRC. In previous version,
16769 the checksum was using a representation with all letter being
16770 upper-case. With the new implementation (using CRC) we do not remove
16771 the 32th bit of the CRC, so we can have an upper-case starting letter
16772 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
16773 It is ambigous since the CRC was optional and could be followed by
16774 options like EB, EE. So now this routines uses lower-case letter for
16775 the hexadecimal representation. Strange enough only lower case letters
16776 where checked in Scan_ALI (even if this was not a possible case).
16777
16778 * gnatvsn.ads (Library_Version): changed to 3.15a.
16779
16780 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
16781 for the compiler.
16782
16783 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
16784 for the compiler.
16785
16786 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
16787 Add 2001 to copyright notice
16788 (Accumulate_Checksum): Modify to use System.CRC32.
16789
16790 * ali-util.ads: Redo changes of previous revision to continue to use
16791 the word Checksum. Add 2001 to copyright notice.
16792
16793 * ali.adb: Undo some of previous changes, not needed.
16794 Keep the change for lower case letters in the checksum.
16795
16796 * ali.ads: Undo previous change not needed.
16797
16798 * bcheck.adb: Undo most of previous change, not needed.
16799 But do use Checksums_Match for checksum comparison.
16800
16801 * gnatls.adb: Undo most of previous change, not needed.
16802 But do use Checksums_Match for comparing checksums.
16803
16804 * lib-load.adb: Undo previous change, not needed.
16805
16806 * lib-writ.adb: Undo previous change, not needed.
16807
16808 * lib-writ.ads: Document that checksums use lower case,
16809 not upper case letters.
16810
16811 * scans.adb: Undo previous change, not needed
16812
16813 * scans.ads: Undo previous change, not needed.
16814
16815 * scn-nlit.adb: Undo previous changes, not needed.
16816
16817 * scn-slit.adb: Undo previous change, not needed. Fix header format.
16818
16819 * scn.adb:
16820 (Accumulate_Checksum): Use System.CRC32.
16821 (Initialize_Checksum): New procedure.
16822 Remove other changes of previous revision.
16823
16824 * sinput-p.adb: Undo previous change, not needed.
16825
16826 * sinput.adb: Undo previous change, not needed.
16827
16828 * sinput-l.adb: Undo previous change, not needed.
16829
16830 * sinput.ads: Undo previous change, not needed. Keep only comment
16831 on new checksum algorithm
16832
16833 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
16834 Also remove a-tags and a-stream from GNAT sources.
16835
16836 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
16837
16838 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
16839
16840 2001-10-11 Geert Bosch <bosch@gnat.com>
16841
16842 * einfo.h: Regenerate.
16843
16844 * nmake.ads: Regenerate.
16845
16846 * nmake.adb: Regenerate.
16847
16848 * sinfo.h: Regenerate.
16849
16850 * treeprs.adb: Regenerate.
16851
16852 2001-10-10 Geert Bosch <bosch@gnat.com>
16853
16854 * gnat-style.texi: New file describing coding guidelines for Ada.
16855
16856 2001-10-10 Ed Schonberg <schonber@gnat.com>
16857
16858 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
16859 is Flag174.
16860
16861 2001-10-10 Geert Bosch <bosch@gnat.com>
16862
16863 * snames.ads: Add new names for project facility.
16864
16865 * snames.adb: Update to reflect snames.ads changes.
16866
16867 * snames.h: Update to reflect snames.ads changes.
16868
16869 2001-10-10 Vincent Celier <celier@gnat.com>
16870
16871 * make.adb:
16872 (Add_Switches): reflect the changes for the switches attributes
16873 Default_Switches indexed by the programming language,
16874 Switches indexed by the file name.
16875 (Collect_Arguments_And_Compile): Idem.
16876 Reflect the attribute name changes.
16877
16878 * prj-attr.adb:
16879 (Initialisation_Data): Change the names of some packages and
16880 attributes.
16881 (Initialize): process case insensitive associative arrays.
16882
16883 * prj-attr.ads:
16884 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
16885
16886 * prj-dect.adb:
16887 (Parse_Attribute_Declaration): For case insensitive associative
16888 arrays, set the index string to lower case.
16889
16890 * prj-env.adb:
16891 Reflect the changes of the project attributes.
16892
16893 * prj-nmsc.adb:
16894 Replace Check_Naming_Scheme by Ada_Check and
16895 Language_Independent_Check.
16896
16897 * prj-nmsc.ads:
16898 Replaced Check_Naming_Scheme by 2 procedures:
16899 Ada_Check and Language_Independent_Check.
16900
16901 * prj-proc.adb:
16902 (Process_Declarative_Items): For case-insensitive associative
16903 arrays, set the index string to lower case.
16904 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
16905 Prj.Nmsc.Check_Naming_Scheme.
16906
16907 * prj-tree.adb:
16908 (Case_Insensitive): New function
16909 (Set_Case_Insensitive): New procedure
16910
16911 * prj-tree.ads:
16912 (Case_Insensitive): New function
16913 (Set_Case_Insensitive): New procedure
16914 (Project_Node_Record): New flag Case_Insensitive.
16915
16916 * prj-util.adb:
16917 (Value_Of): new function to get the string value of a single
16918 string variable or attribute.
16919
16920 * prj-util.ads:
16921 (Value_Of): new function to get the string value of a single
16922 string variable or attribute.
16923
16924 * prj.adb:
16925 (Ada_Default_Spec_Suffix): New function
16926 (Ada_Default_Impl_Suffix): New function
16927 Change definitions of several constants to reflect
16928 new components of record types.
16929
16930 * prj.ads:
16931 (Naming_Data): Change several components to reflect new
16932 elements of naming schemes.
16933 (Project_Data): New flags Sources_Present and
16934 Language_Independent_Checked.
16935 (Ada_Default_Spec_Suffix): New function.
16936 (Ada_Default_Impl_Suffix): New function.
16937
16938 * snames.ads:
16939 Modification of predefined names for project manager: added
16940 Implementation, Specification_Exceptions, Implementation_Exceptions,
16941 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
16942 Default_Switches, _Languages, Builder, Cross_Reference,
16943 Finder. Removed Body_Part, Specification_Append, Body_Append,
16944 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
16945 Gnatlink.
16946
16947 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
16948 Add comments.
16949
16950 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
16951 not that it is Nil_Variable_Value.
16952
16953 * prj.ads: Add ??? for uncommented declarations
16954
16955 2001-10-10 Ed Schonberg <schonber@gnat.com>
16956
16957 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
16958 constant, do not indicate possible modification, so that gigi can
16959 treat it as a bona fide constant.
16960
16961 2001-10-10 Robert Dewar <dewar@gnat.com>
16962
16963 * sem_prag.adb: Add processing for pragma External.
16964
16965 * snames.ads: Add entry for pragma External.
16966
16967 * par-prag.adb: Add pragma External.
16968
16969 * snames.adb: Updated to match snames.ads.
16970
16971 2001-10-10 Ed Schonberg <schonber@gnat.com>
16972
16973 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
16974 a dynamic task if the allocator appears in an indexed assignment
16975 or selected component assignment.
16976
16977 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
16978 For a dynamic task in an assignment statement, use target of
16979 assignment to generate meaningful name.
16980
16981 2001-10-10 Ed Schonberg <schonber@gnat.com>
16982
16983 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
16984 a generic package.
16985
16986 * einfo.ads: Body_Entity is also defined for generic package.
16987 Documentation change only
16988
16989 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
16990 others_choice for a discriminated component initialization,
16991 convert discriminant references into the corresponding discriminals.
16992
16993 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
16994 only if original type is private and expression has to be wrapped
16995 in a conversion.
16996
16997 * checks.adb:
16998 (Apply_Constraint_Check): Do not perform length check
16999 if expression is an aggregate with only an others_choice.
17000 (Length_N_Cond): two references to the same in_parameter
17001 (typically the discriminal in an init_proc) denote the same value.
17002 Two useful optimization uncovered by bugfixes above.
17003
17004 2001-10-10 Robert Dewar <dewar@gnat.com>
17005
17006 * xeinfo.adb: Change int to char in translation of enumeration types.
17007 This fixes a problem in the C representation of component alignment.
17008 Add 2001 to copyright notice
17009
17010 2001-10-10 Richard Kenner <kenner@gnat.com>
17011
17012 * decl.c: (validate_size): Do check size of object of integral type
17013 if it is a packed array type.
17014
17015 2001-10-10 Richard Kenner <kenner@gnat.com>
17016
17017 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
17018 VAR_DECL for constant if not Is_Public but -O0.
17019
17020 2001-10-10 Richard Kenner <kenner@gnat.com>
17021
17022 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
17023
17024 2001-10-10 Geert Bosch <bosch@gnat.com>
17025
17026 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
17027 use '/' as switch character, allowing for absolute file names.
17028
17029 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
17030
17031 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
17032 FSF address.
17033
17034 2001-10-08 Geert Bosch <bosch@gnat.com>
17035
17036 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
17037 Automatically build utilities when files need to be regenerated.
17038
17039 2001-10-08 Geert Bosch <bosch@gnat.com>
17040
17041 * xsnames.adb: New utility for updating snames.ads and snames.adb
17042
17043 2001-10-08 Zack Weinberg <zack@codesourcery.com>
17044
17045 * Make-lang.in (ADAFLAGS): Add -W -Wall.
17046 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
17047 (gnat1): Also depend on attribs.o.
17048 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
17049 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
17050 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
17051 (ADAFLAGS): Add -W -Wall.
17052 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
17053 take out CFLAGS.
17054
17055 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
17056 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
17057 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
17058 Use $(ADAC), not $(CC), as compilation command.
17059
17060 (gnattools): Depend directly on tools to build, don't use
17061 recursive make.
17062 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
17063
17064 * einfo.h, sinfo.h: New files (autogenerated).
17065
17066 2001-10-08 Richard Henderson <rth@redhat.com>
17067
17068 * comperr.adb (Abort_In_Progress): New.
17069 (Compiler_Abort): Use it to prevent recursion.
17070
17071 2001-10-08 Robert Dewar <dewar@gnat.com>
17072
17073 * atree.adb: Set Error_Posted in Error node, helps error recovery.
17074
17075 * par-endh.adb (Output_End_Expected): We should also not test
17076 Error_Posted on the Error node, since now it is always set.
17077
17078 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
17079 to help error recovery. Part of general work on 9407-004.
17080
17081 * par.adb: Add ??? for misuse of error
17082
17083 * sem_res.adb:
17084 (Resolve): Defend against Error, fixes 9407-003.
17085 (Resolve_Discrete_Subtype_Indication): Defend against Error.
17086
17087 * sinfo.ads (N_Error): Now has Etype field (which will be set
17088 to Any_Type to help error recovery).
17089
17090 2001-10-08 Richard Kenner (kenner@gnat.com)
17091
17092 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
17093 Consistently set MEM attributes from expression; fixes
17094 bootstrap failure on x86.
17095
17096 2001-10-08 Geert Bosch (bosch@gnat.com)
17097
17098 * 5oosinte.adb: Add 2001 to copyright notice.
17099
17100 2001-10-08 Geert Bosch (bosch@gnat.com)
17101
17102 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
17103
17104 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
17105
17106 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
17107
17108 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
17109
17110 2001-10-05 Geert Bosch (bosch@gnat.com)
17111
17112 * adaint.h: Small formatting fix.
17113
17114 2001-10-04 Geert Bosch <bosch@gnat.com>
17115
17116 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
17117 Arg is int, not FILE *, in dummy version of functions.
17118
17119 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
17120 Arg is int, not FILE *.
17121
17122 2001-10-04 Geert Bosch <bosch@gnat.com>
17123
17124 * 3lsoccon.ads: Added file, missed with initial check ins.
17125
17126 * 4lintnam.ads: Fix header format.
17127 Change Linux to GNU/Linux.
17128
17129 * 5iosinte.adb: Change Linux to GNU/Linux.
17130
17131 * 5iosinte.ads: Change Linux to GNU/Linux.
17132
17133 * 5itaprop.adb: Change Linux to GNU/Linux.
17134
17135 * 5itaspri.ads: Change Linux to GNU/Linux.
17136 Update copyright notice.
17137
17138 * 5lintman.adb: Change Linux to GNU/Linux.
17139
17140 * 5lml-tgt.adb: Change Linux to GNU/Linux.
17141
17142 * 5losinte.ads: Change Linux to GNU/Linux.
17143
17144 * 5lsystem.ads: Change Linux to GNU/Linux.
17145
17146 * 5qosinte.adb: Change Linux to GNU/Linux.
17147
17148 * 5qosinte.ads: Change Linux to GNU/Linux.
17149
17150 * 5qparame.ads: Change Linux to GNU/Linux.
17151
17152 * 5qtaprop.adb: Change Linux to GNU/Linux.
17153
17154 * 5qtaspri.ads: Change Linux to GNU/Linux.
17155 Add 2001 to copyright notice.
17156
17157 * 5vintman.ads: Change Linux to GNU/Linux.
17158 Fix header format. Add 2001 to copyright notice.
17159
17160 * g-soccon.ads: Change Linux to GNU/Linux.
17161
17162 * g-trasym.ads: Change Linux to GNU/Linux.
17163 Add 2001 to copyright notice.
17164
17165 * memtrack.adb: Change Linux to GNU/Linux.
17166
17167 * s-intman.ads: Change Linux to GNU/Linux.
17168 Add 2001 to copyright notice. Fix header format.
17169
17170 * s-stache.adb: Change Linux to GNU/Linux.
17171
17172 * adaint.c: Change Linux to GNU/Linux.
17173
17174 * cio.c: Change Linux to GNU/Linux.
17175
17176 * cstreams.c: Change Linux to GNU/Linux.
17177
17178 * init.c: Change Linux to GNU/Linux.
17179
17180 * gmem.c: Change Linux to GNU/Linux.
17181
17182 * tracebak.c: Change Linux to GNU/Linux.
17183
17184
17185 2001-10-02 Geert Bosch <bosch@gnat.com>
17186
17187 * misc.c (insert_default_attributes): Add dummy version.