]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/ChangeLog
trans.c (gnat_gimplify_expr): Call recompute_tree_invarant_for_addr_expr when...
[thirdparty/gcc.git] / gcc / ada / ChangeLog
1 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
2
3 * trans.c (gnat_gimplify_expr): Call
4 recompute_tree_invarant_for_addr_expr when we change
5 the operand of the ADDR_EXPR.
6
7 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8
9 * misc.c: Don't include errors.h.
10
11 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12
13 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
14
15 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
16
17 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
18 comment typos.
19 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
20
21 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
22
23 PR ada/20270
24 * Makefile.in: Make TGT_LIB behave correctly.
25
26 2005-04-23 DJ Delorie <dj@redhat.com>
27
28 * misc.c: Adjust warning() callers.
29
30 2005-04-16 Laurent GUERBY <laurent@guerby.net>
31
32 PR ada/18847
33 * a-nudira.adb (Value): Check for valid string.
34 * a-nuflra.adb (Value): Likewise.
35
36 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
37
38 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
39
40 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
41
42 * adaint.c, init.c, tracebak.c: Fix comment typos.
43 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
44
45 2005-04-07 Laurent GUERBY <laurent@guerby.net>
46 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
47
48 * Makefile.in: Add make ifeq define for hppa linux tasking support.
49 * system-hpux.ads: Define Signed_Zeros to be True.
50 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
51
52 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
53
54 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
55 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
56 typos.
57
58 2005-03-30 Tom Tromey <tromey@redhat.com>
59
60 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
61
62 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
63
64 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
65
66 2005-03-29 Robert Dewar <dewar@adacore.com>
67
68 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
69 fixed-point expression has value that is not a multiple of the Small
70 value.
71
72 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
73
74 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
75 nanoseconds.
76
77 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
78
79 2005-03-29 Vincent Celier <celier@adacore.com>
80
81 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
82 (Build_Dynamic_Library.Version_String): Return the empty string when
83 Lib_Version is empty or when the symbol policy is not Autonomous.
84
85 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
86 a symbol is not in the reference symbol file, increase the Major ID
87 and set the Minor ID to 0.
88 Use gsmatch=lequal instead of gsmatch=equal
89
90 2005-03-29 Doug Rupp <rupp@adacore.com>
91
92 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
93 name and translate.
94
95 2005-03-29 Javier Miranda <miranda@adacore.com>
96
97 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
98 (Inherit_DT): The first formal has been redefined as a Tag.
99 This allows us the removal of the subprogram Get_TSD.
100 (TSD): Replace the call to Get_TSD by the actual code.
101
102 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
103 (Make_DT): Upgrade the call to Inherit_TSD according to the
104 new interface: the first formal is now a Tag.
105
106 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
107 redefined as a Tag.
108 This change allows us to remove the subprogram Get_TSD.
109 (CPP_Get_TSD): Subprogram removed.
110 (TSD): Replace the call to CPP_Get_TSD by the actual code.
111
112 * rtsfind.ads: Remove support to call the run-time
113 subprogram Get_TSD
114
115 2005-03-29 Robert Dewar <dewar@adacore.com>
116
117 * errutil.adb, errout.adb:
118 Minor comment updates on Line_Terminator references
119
120 * par-ch10.adb: Add ??? comment about line terminator
121
122 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
123 (check dos line terminator).
124 (Check_Line_Max_Length): New procedure, split off from the existing
125 Check_Line_Terminator routine. Separating this out allows -gnatyf to
126 be properly recognized.
127
128 * styleg.adb: Add ??? comment for line terminator reference
129
130 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
131 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
132
133 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
134 (check dos line terminator).
135 (Check_Line_Max_Length): New procedure, split off from the existing
136 Check_Line_Terminator routine. Separating this out allows -gnatyf to
137 be properly recognized.
138
139 * stylesw.ads, stylesw.adb:
140 Add handling for new -gnatyd switch (check dos line terminator)
141
142 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
143 Recognize -gnatwb/-gnatwB switches
144 Include Warn_On_Bad_Fixed_Value for -gnatg
145
146 * usage.adb:
147 Add line for new -gnatyd switch (check dos line terminator)
148
149 * usage.adb: Add lines for -gnatwb/-gnatwB
150
151 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
152
153 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
154
155 * gnat_ugn.texi: Fix overlong lines
156 Document new -gnatyd switch
157 Document new -gnatwb/-gnatwB switches
158
159 2005-03-29 Ed Schonberg <schonberg@adacore.com>
160
161 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
162 order to retrieve the component list of the type, before examining
163 individual components.
164
165 * sem_type.adb (Covers): Types are compatible if one is the base type
166 of the other, even though their base types might differ when private
167 views are involved.
168
169 2005-03-29 Thomas Quinot <quinot@adacore.com>
170
171 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
172 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
173 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
174 analyzed if expansion is disabled (which could otherwise cause spurious
175 error messages if expansion has been disabled due to previous
176 (unrelated) errors).
177
178 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
179 is disabled, the entity denoted by the argument is the access type
180 itself, not an underlying record type, so there is no need to go back
181 to the Corresponding_Remote_Type.
182
183 2005-03-29 Gary Dismukes <dismukes@adacore.com>
184 Robert Dewar <dewar@adacore.com>
185
186 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
187 expand a call to an instance of
188 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
189 Constructor actual of the instance. A class-wide membership
190 check is also generated, to ensure that the tag passed to the instance
191 denotes a type in the class.
192 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
193 of Name_Generic_Dispatching_Constructor.
194
195 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
196 05 unit for AI-260-02).
197
198 * a-tgdico.ads: New file.
199
200 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
201 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
202
203 * snames.ads, snames.adb (Preset_Names): Add entry for
204 Generic_Dispatching_Constructor.
205
206 PR ada/20300
207
208 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
209 character type cases.
210 (Analyze_Subprogram_Renaming): Add special handling for
211 the case of renaming of stream attributes when the renaming denotes a
212 generic formal subprogram association for an abstract formal subprogram.
213 Check that the attribute is a primitive stream attribute (and not
214 a class-wide stream attribute) and then rewrite the attribute name
215 as the name of the appropriate compiler-generated stream primitive.
216
217 2005-03-29 Robert Dewar <dewar@adacore.com>
218
219 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
220 recursive calls.
221 (Is_Possibly_Unaligned_Object): Correct typo that
222 resulted in inaccurate result for unaligned scalars within records.
223
224 2005-03-29 Ed Schonberg <schonberg@adacore.com>
225
226 * freeze.adb (Freeze_Record_Type): If the type of the component is an
227 itype whose parent is controlled and not yet frozen, do not create a
228 freeze node for the itype if expansion is disabled.
229
230 2005-03-29 Vincent Celier <celier@adacore.com>
231
232 * make.adb (Gnatmake): Don't fail if the main project file is declared
233 as having no Ada sources. Do not display message "no sources to
234 compile" in quiet output.
235
236 2005-03-29 Doug Rupp <rupp@adacore.com>
237
238 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
239 extra tools.
240
241 2005-03-29 Robert Dewar <dewar@adacore.com>
242
243 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
244 child.
245
246 2005-03-29 Robert Dewar <dewar@adacore.com>
247
248 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
249 missing TYPE Improve the error message generated when compiling a
250 limited interface in Ada83 or Ada95 mode.
251
252 2005-03-29 Robert Dewar <dewar@adacore.com>
253
254 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
255 rather than proceed ahead using a junk attribute name.
256
257 2005-03-29 Vincent Celier <celier@adacore.com>
258
259 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
260
261 * prj-part.adb (Parse_Single_Project): Set the location of a project
262 on its defining identifier, rather than on the reserved word "project".
263
264 * prj-proc.adb (Expression): Adapt to the fact that default of external
265 references may be string expressions, not always literal strings.
266 (Recursive_Process): Set Display_Name equal to Name
267 when Location is No_Location, that is when there is no actual file.
268 Get the Display_Name of the project from the source, when it is not a
269 virtual project.
270 (Process): Use the Display_Name in error messages
271
272 * prj-strt.adb (External_Reference): Allow default to be string
273 expressions, not only literal strings.
274
275 2005-03-29 Vincent Celier <celier@adacore.com>
276
277 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
278 file and the reference symbol file to be the same file.
279
280 2005-03-29 Thomas Quinot <quinot@adacore.com>
281
282 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
283 forbid conversion of a local access-to-subprogram type to a remote one.
284
285 * sem_util.adb (Wrong_Type): For a record type that is the expanded
286 equivalent type for a remote access-to-subprogram type, go back to the
287 original RAS entity when displaying an error message, so the casing is
288 the original source casing.
289
290 2005-03-29 Robert Dewar <dewar@adacore.com>
291
292 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
293 on param update.
294
295 2005-03-29 Ed Schonberg <schonberg@adacore.com>
296
297 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
298 subtype if code is being pre-analyzed, to prevent un-expanded
299 references to protected formals, among others.
300 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
301 interpretation that can be a call, include the result of the call as a
302 possible interpretation of the dereference.
303
304 * sem_ch5.adb (Process_Bounds): Determine type of range by
305 pre-analyzing a copy of the original range, and then analyze the range
306 with the expected type.
307
308 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
309 with an overloaded prefix where not all interpretations yield an
310 access to subprogram, do not rewrite node as a call.
311 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
312 the node as a call once the context identifies the interpretation of
313 the prefix whose call yields the context type.
314 (Valid_Conversion): For the case of a conversion between
315 local access-to-subprogram types, check subtype conformance using
316 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
317 detailed error message.
318
319 2005-03-29 Ed Schonberg <schonberg@adacore.com>
320
321 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
322 indicator, indicate that the formal can never be null.
323 (Process_Formals): If a formal has a non_null indicator, insert the
324 resulting subtype immediately before the enclosing subprogram decl,
325 and not at the beginning of the corresponding declarative part, to
326 prevent access before elaboration (Ada2005).
327
328 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
329
330 PR ada/19956
331 * utils.c (finish_record_type): Use variable_size when setting sizes.
332
333 2005-03-29 Robert Dewar <dewar@adacore.com>
334
335 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
336 guarantee Unix style line terminators for the output files, even when
337 running on windows.
338
339 2005-03-29 Robert Dewar <dewar@adacore.com>
340
341 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
342 buffer if an exception is raised.
343
344 2005-03-29 Ed Falis <falis@adacore.com>
345
346 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
347 VxWorks 653 1.4
348
349 2005-03-29 Robert Dewar <dewar@adacore.com>
350
351 * sem_util.ads: Minor reformatting
352 * gnat_rm.texi: Minor editing.
353
354 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
355
356 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
357 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
358
359 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
360
361 * adaint.c (__gnat_portable_spawn): Adjust cast.
362
363 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
364
365 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
366
367 2005-03-17 Pascal Obry <obry@adacore.com>
368
369 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
370 used.
371
372 * expect.c (__gnat_waitpid): Moved here from adaint.c.
373 Reimplement under Win32 using Win32 API.
374
375 (__gnat_kill) [Win32]: Properly close the process handle before leaving
376 this routine.
377
378 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
379
380 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
381 (DECL_RENAMED_OBJECT): New accessor macro.
382 (SET_DECL_RENAMED_OBJECT): New setter macro.
383
384 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
385 object in all cases. Attach the renamed object to the VAR_DECL.
386 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
387 field is not prescribed.
388
389 * misc.c (gnat_handle_option): Handle -gnatO separately.
390 (gnat_print_decl) <VAR_DECL>: New case.
391 Print the DECL_RENAMED_OBJECT node.
392
393 * lang.opt: Declare separate -gnatO option.
394
395 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
396 pointer, replace it with the renamed object.
397 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
398 pointer type if the source is not a fat pointer type whose underlying
399 array has the same non-zero alias set as that of the destination array.
400
401 2005-03-17 Javier Miranda <miranda@adacore.com>
402
403 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
404 (Get_Inheritance_Depth): Removed.
405 (Set_Inheritance_Depth): Removed.
406
407 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
408 subprogram Get_Expanded_Name because it is not referenced by the
409 frontend.
410
411 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
412 (CPP_Get_Inheritance_Depth): Removed.
413 (CPP_Set_Inheritance_Depth): Removed.
414
415 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
416
417 2005-03-17 Robert Dewar <dewar@adacore.com>
418
419 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
420 3, since we now expect GCC 3 to do all the work.
421
422 2005-03-17 Javier Miranda <miranda@adacore.com>
423
424 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
425 of one barrier to avoid wrong usage of this attribute.
426
427 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
428 First_Private_Entity.
429
430 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
431 the subprogram against wrong usage.
432 Adapt the code to traverse the entities in the
433 scope of a record_type because in addition to its usage regarding
434 packages, this subprogram is also called by Expand_N_Freeze_Entity
435 to install the visible declarations of the enclosing scope of a
436 record_type_with_private to establish the proper visibility before
437 freezing the entity and related subprograms.
438
439 2005-03-17 Ed Schonberg <schonberg@adacore.com>
440
441 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
442 entry formals.
443
444 2005-03-17 Thomas Quinot <quinot@adacore.com>
445
446 * exp_ch3.adb (Check_Attr): New subprogram.
447 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
448 into a new Check_Attr subprogram, in order to provide a more
449 explanatory error message (including the name of the missing attribute).
450 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
451 subprogram determines whether a default implementation exists for a
452 given stream attribute.
453 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
454 Determine whether to generate a default implementation for each stream
455 attribute separately, as this depends on the specific attribute.
456
457 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
458 limited extension where a stream attribute is missing for a limited
459 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
460 generate a bogus reference to the missing attribute to prevent
461 cascaded errors. Instead, generate a null statement.
462
463 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
464 available for a limited type if it has been specified for an ancestor
465 of the type.
466
467 2005-03-17 Ed Schonberg <schonberg@adacore.com>
468
469 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
470 entity is an operator.
471
472 2005-03-17 Thomas Quinot <quinot@adacore.com>
473
474 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
475 spec, to make this predicate available to other units.
476
477 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
478 reimplementing it.
479
480 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
481 when no distribution runtime library is available.
482
483 * sem_res.adb, sem_dist.adb: Disable expansion of remote
484 access-to-subprogram types when no distribution runtime library is
485 available.
486 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
487 predicate available to other units.
488
489 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
490 spec, to make this predicate available to other units.
491
492 2005-03-17 Vincent Celier <celier@adacore.com>
493
494 * make.adb (Insert_Project_Sources): Make sure the Q is always
495 initialized.
496
497 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
498 the default for the tree, not the global default naming.
499
500 * prj-proc.adb (Recursive_Process): No need to put the default naming
501 in the project data, it's already there.
502
503 2005-03-17 Doug Rupp <rupp@adacore.com>
504
505 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
506
507 * 5xcrtl.ads: Renamed to...
508 * s-crtl-vms64.ads: ...this new file
509
510 2005-03-17 Robert Dewar <dewar@adacore.com>
511
512 PR ada/19519
513
514 * namet.adb (Copy_One_Character): Set proper wide character encoding
515 for upper half character if we have upper half encoding.
516
517 2005-03-17 Robert Dewar <dewar@adacore.com>
518
519 * par.adb (Par): Improved msg for attempt to recompile predefined unit
520
521 2005-03-17 Thomas Quinot <quinot@adacore.com>
522
523 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
524 tagged limited type, the TSS is a newly built renaming declaration:
525 insert it using Set_TSS, not Copy_TSS.
526
527 2005-03-17 Javier Miranda <miranda@adacore.com>
528
529 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
530 Try_Object_Operation): Analyze the object that is accessible
531 through the prefix of the subprogram call before we apply
532 the transformation of the object-operation notation.
533
534 2005-03-17 Jose Ruiz <ruiz@adacore.com>
535
536 * s-taprob.adb (Initialize_Protection): Initialize the protected
537 object's owner to Null_Task.
538 (Lock): If pragma Detect_Blocking is in effect and the caller of this
539 procedure is already the protected object's owner then Program_Error
540 is raised. In addition the protected object's owner is updated.
541 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
542 of this procedure is already the protected object's owner then
543 Program_Error is raised.
544 In addition the protected object's owner is updated.
545 (Unlock): Remove the ownership of the protected object.
546
547 * s-taprob.ads (Protection): Add the field Owner, used to store the
548 protected object's owner.
549 This component is needed for detecting one type of potentially blocking
550 operations (external calls on a protected subprogram with the same
551 target object as that of the protected action). Document the rest of
552 the components.
553
554 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
555 Initialize the protected object's owner to Null_Task.
556 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
557 caller 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 a
560 protected action.
561 (Unlock_Entries): Remove the ownership of the protected object.
562 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
563 of this procedure is already the protected object's owner then
564 Program_Error is raised.
565 Do not raise Program_Error when this procedure is called from
566 a protected action.
567
568 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
569 used to store the protected object's owner.
570
571 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
572 effect and this procedure (a potentially blocking operation) is called
573 from whithin a protected action, Program_Error is raised.
574 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
575 and this procedure (a potentially blocking operation) is called from
576 whithin a protected action, Program_Error is raised.
577
578 2005-03-17 Vincent Celier <celier@adacore.com>
579 Nicolas Setton <setton@adacore.com>
580
581 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
582 switch, not supported by the linker on Darwin. Add '_' before
583 <library>init, as this character is added unconditionally by the
584 compiler.
585 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
586 correct one ".dylib". This fixes detection of the archive files when
587 building library projects.
588
589 2005-03-17 Vincent Celier <celier@adacore.com>
590
591 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
592 -gnat83, -gnat95 and -gnat05.
593
594 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
595
596 * gnat_ugn.texi: Document gnatmem restriction
597
598 2005-03-17 Thomas Quinot <quinot@adacore.com>
599
600 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
601 cleanup
602
603 2005-03-17 Robert Dewar <dewar@adacore.com>
604
605 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
606 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
607 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
608
609 * casing.adb: Comment improvements
610
611 2005-03-17 Pascal Obry <obry@adacore.com>
612
613 * g-expect.adb: Minor reformatting.
614
615 2005-03-15 Zack Weinberg <zack@codesourcery.com>
616
617 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
618 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
619 to dependencies.
620
621 2005-03-15 Vincent Celier <celier@adacore.com>
622
623 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
624 Add new parameter In_Tree to specify the project tree: needed
625 by the project manager. Adapt to changes in project manager
626 using new parameter In_Tree.
627
628 2005-03-15 Jakub Jelinek <jakub@redhat.com>
629
630 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
631 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
632 ada/bldtools to avoid make -jN failures.
633
634 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
635
636 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
637 to NULL_TREE on entry.
638
639 2005-03-15 Robert Dewar <dewar@adacore.com>
640
641 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
642 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
643 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
644 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
645 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
646 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
647 system-interix.ads, system-solaris-sparc.ads,
648 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
649 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
650 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
651 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
652 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
653 Compiler_System_Version to be False.
654
655 * opt.ads: Add new flag Opt.Address_Is_Private
656
657 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
658 Add new parameter Compiler_System_Version to avoid checking for
659 completeness of parameters when compiler is compiling itself.
660 Allows old versions of GNAT to be compiled with new compiler.
661
662 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
663
664 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
665 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
666 calling thread.
667 (Stack_Base_Available): New flag.
668 (Get_Page_Size): New overloaded functions imported from C.
669 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
670 PROT_ON, PROT_OFF): New constants.
671 (mprotect): New function imported from C.
672 (pthread_teb_t): New record type.
673
674 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
675 (Create_Task): Account for the Yellow Zone and the guard page.
676
677 2005-03-15 Vincent Celier <celier@adacore.com>
678
679 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
680 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
681 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
682 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
683 Library_File_Name_For): Add new parameter In_Tree
684 to specify the project tree: needed by the project manager.
685 Adapt to changes in project manager using new parameter In_Tree.
686 Remove local imports, use functions in System.CRTL.
687
688 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
689 to use the project manager.
690
691 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
692 In_Tree to designate the project tree. Adapt to changes in the project
693 manager, using In_Tree.
694
695 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
696 Copy_Interface_Sources): Add new parameter In_Tree to specify the
697 project tree: needed by the project manager.
698 (Build_Library): Check that Arg'Length >= 6 before checking if it
699 contains "--RTS=...".
700
701 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
702 Library_File_Name_For): Add new parameter In_Tree to specify the
703 project tree: needed by the project manager.
704
705 * prj.ads, prj.adb: Major modifications to allow several project trees
706 in memory at the same time.
707 Change tables to dynamic tables and hash tables to dynamic hash
708 tables. Move tables and hash tables from Prj.Com (in the visible part)
709 and Prj.Env (in the private part). Move some constants from the visible
710 part to the private part. Make other constants deferred.
711 (Project_Empty): Make it a variable, not a function
712 (Empty_Project): Add parameter Tree. Returns the data with the default
713 naming data of the project tree Tree.
714 (Initialize): After updating Std_Naming_Data, copy its value to the
715 component Naming of Project Empty.
716 (Register_Default_Naming_Scheme): Use and update the default naming
717 component of the project tree, instead of the global variable
718 Std_Naming_Data.
719 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
720 Tree is not defaulted, return the default naming data of the Tree.
721 (Initial_Buffer_Size): Constant moved from private part
722 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
723 variables initialized in procedure Initialize.
724 (Add_To_Buffer): Add two in out parameters to replace global variables
725 Buffer and Buffer_Last.
726 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
727 functions.
728 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
729 hash tables.
730 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
731 for the project tree.
732 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
733 constant at the beginning of the package spec, so that they cane be used
734 in subprograms before their full declarations.
735 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
736 (Empty_Project): Add parameter of type Project_Node_Ref
737 (Private_Project_Tree_Data): Add component Default_Naming of type
738 Naming_Data.
739 (Buffer, Buffer_Last): remove global variables
740 (Add_To_Buffer): Add two in out parameters to replace global variables
741 Buffer and Buffer_Last.
742 (Current_Packages_To_Check): Remove global variable
743 (Empty_Name): Move to private part
744 (No-Symbols): Make it a constant
745 (Private_Project_Tree_Data): New type for the private part of the
746 project tree data.
747 (Project_Tree_Data): New type for the data of a project tree
748 (Project_Tree_Ref): New type to designate a project tree
749 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
750 for the project tree.
751
752 * prj-attr.ads: Add with Table; needed, as package Prj no longer
753 imports package Table.
754
755 * prj-com.adb: Remove empty, no longer needed body
756
757 * prj-com.ads: Move most of the content of this package to package Prj.
758
759 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
760 designate the project node tree and Packages_To_Check to replace
761 global variable Current_Packages_To_Check.
762 Add new parameters In_Tree and Packages_To_Check to local subprograms,
763 when needed. Adapt to changes in project manager with project node tree
764 In_Tree.
765
766 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
767 project tree to most subprograms. Move tables and hash tables to
768 private part of package Prj.
769 Adapt to changes in project manager using project tree In_Tree.
770
771 * prj-makr.adb (Tree): New constant to designate the project node tree
772 Adapt to change in project manager using project node tree Tree
773
774 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
775 display the Library_Src_Dir and the Library_Dir.
776 Add new parameter In_Tree to designate the project node tree to most
777 subprograms. Adapt to changes in the project manager, using project tree
778 In_Tree.
779 (Check_Naming_Scheme): Do not alter the casing on platforms where
780 the casing of file names is not significant.
781 (Check): Add new parameter In_Tree to designate the
782
783 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
784 designate the project tree.
785 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
786
787 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
788 to replace those that were in the private part of package Prj.
789 Add new parameter In__Tree to designate the project node tree to most
790 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
791 (Post_Parse_Context_Clause): When specifying the project node of a with
792 clause, indicate that it is a limited with only if there is "limited"
793 in the with clause, not necessarily when In_Limited is True.
794 (Parse): Add new parameter In_Tree to designate the project node tree
795
796 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
797 designate the project node tree. Adapt to change in Prj.Tree with
798 project node tree In_Tree.
799
800 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
801 tree In_Tree in the call to function Empty_Process to give its initial
802 value to the project data Processed_Data.
803 Add new parameters In_Tree to designate the project tree and
804 From_Project_Node_Tree to designate the project node tree to several
805 subprograms. Adapt to change in project manager with project tree
806 In_Tree and project node tree From_Project_Node_Tree.
807
808 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
809 to replace those that were in the private part of package Prj.
810 Add new parameter In_Tree to designate the project node tree to most
811 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
812
813 * prj-tree.ads, prj-tree.adb: Add new parameter of type
814 Project_Node_Tree_Ref to most subprograms.
815 Use this new parameter to store project nodes in the designated project
816 node tree.
817 (Project_Node_Tree_Ref): New type to designate a project node tree
818 (Tree_Private_Part): Change table to dynamic table and hash tables to
819 dynamic hash tables.
820
821 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
822 the project tree to most subprograms. Adapt to changes in project
823 manager using project tree In_Tree.
824
825 * makegpr.adb (Project_Tree): New constant needed to use project
826 manager.
827
828 2005-03-15 Olivier Hainque <hainque@adacore.com>
829
830 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
831 for sigactions with SA_SIGINFO set. Call
832 __gnat_adjust_context_for_raise before raising, to perform the
833 potentially required adjustments to the machine context for the GCC
834 unwinder.
835
836 * raise.h (__gnat_adjust_context_for_raise): New prototype.
837
838 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
839 Adjust PC by one in the provided machine context.
840 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
841 so that the handler is passed the context structure to adjust prior to
842 the raise.
843 (__gnat_error_handler) HPUX: Adjust the signature to match what an
844 SA_SIGINFO sigaction should look like. Call
845 __gnat_adjust_context_for_raise before actually raising.
846 (__gnat_adjust_context_for_raise): Default noop to help PC
847 adjustments before raise from signal handlers.
848 (__gnat_error_handler): Indirectly call a predicate function to
849 determine if a condition should be resignaled or not.
850 (__gnat_set_resignal_predicate): User interface to modify the predicate.
851 (__gnat_default_resignal_p): Default GNAT predicate.
852
853 2005-03-15 Doug Rupp <rupp@adacore.com>
854
855 * adaint.c: Prefix #include of VMS system header files with vms/
856 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
857 Do not define a dummy function "convert_addresses" under Darwin,
858 not needed.
859
860 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
861 with vms/
862
863 2005-03-15 Nicolas Setton <setton@adacore.com>
864
865 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
866 PPC/AIX.
867
868 2005-03-15 Robert Dewar <dewar@adacore.com>
869
870 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
871 AI-386.
872
873 * a-retide.ads: Minor comment changes
874
875 2005-03-15 Robert Dewar <dewar@adacore.com>
876
877 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
878 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
879 Realloc_For_Chunk to private part of package.
880 New subprograms for AI-301
881
882 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
883 Get_Line procedure.
884 Avoid unnecessary use of Get/Set_Wide_String
885
886 2005-03-15 Robert Dewar <dewar@adacore.com>
887
888 PR ada/13470
889
890 * a-stunau.ads, a-stunau.adb:
891 Change interface to allow efficient (and correct) implementation
892 The previous changes to allow extra space in unbounded strings had
893 left this interface a bit broken.
894
895 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
896
897 * g-spipat.ads, g-spipat.adb: New interface for Get_String
898 Minor reformatting (function specs)
899
900 * g-spitbo.adb: New interface for Get_String
901
902 * g-spitbo.ads: Minor reformatting
903
904 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
905
906 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
907
908 2005-03-15 Javier Miranda <miranda@adacore.com>
909 Robert Dewar <dewar@adacore.com>
910 Thomas Quinot <quinot@adacore.com>
911 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
912
913 * atree.ads, atree.adb: Add support for Elist24 field
914
915 * atree.h: Fix wrong definition of Field27
916 Add support for Elist16 field
917 Add support for Elist24 field
918
919 * einfo.ads, einfo.adb (Abstract_Interfaces,
920 Set_Abstract_Interfaces): New subprograms.
921 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
922 subprograms.
923 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
924 entities rather than a single node.
925 (Is_Interface, Set_Is_Interface): New subprogram
926 (First_Tag_Component): New syntesized attribute
927 (Next_Tag_Component): New synthesized attribute
928 (Write_Entity_Flags): Upgraded to write Is_Interface
929 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
930 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
931 (Task_Body_Procedure): New subprogram to read this attribute.
932 (Set_Task_Body_Procedure): New subprogram to set this attribute.
933 (Has_Controlled_Component): Now applies to all entities.
934 This is only a documentation change, since it always worked to apply
935 this to other than composite types (yielding false), but now this is
936 official.
937 Update documentation on Must_Be_Byte_Aligned for new spec
938
939 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
940 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
941 uses of the Access_Disp_Table attribute to reference the first dispatch
942 table associated with a tagged type. As
943 part of the implementation of abstract interface types,
944 Access_Disp_Table has been redefined to contain a list of dispatch
945 tables (rather than a single dispatch table).
946 Similarly, upgrade all the references to Tag_Component by the
947 new attribute First_Tag_Component.
948 (Find_Inherited_TSS): Moved to exp_tss.
949 Clean up test in Expand_N_Object_Declaration for cases
950 where we need to do a separate assignment of the initial value.
951 (Expand_N_Object_Declaration): If the expression in the
952 declaration of a tagged type is an aggregate, no need to generate an
953 additional tag assignment.
954 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
955 is to be deleted.
956 Bit packed array ops are only called if operands are known to be
957 aligned.
958 (Component_Equality): When returning an N_Raise_Program_Error statement,
959 ensure that its Etype is set to Empty to avoid confusing GIGI (which
960 expects that only expressions have a bona fide type).
961 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
962 determine the amount of data to be copied.
963
964 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
965 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
966 INTERFACE_TYPE_DEFINITION ::=
967 [limited | task | protected | synchronized] interface
968 [AND interface_list]
969
970 * par-ch3.adb (P_Type_Declaration): Modified to give support to
971 interfaces.
972 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
973 interfaces.
974 (P_Interface_Type_Definition): New subprogram that parses the new
975 syntax rule of Ada 2005 interfaces
976 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
977 messages by the correct RENAMES (quotes removed).
978
979 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
980 attribute First_Tag_Component.
981
982 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
983 (Interface_List, Set_Interface_List): New subprograms.
984 (Interface_Present, Set_Interface_Present): New subprograms.
985 (Limited_Present, Set_Limited_Present): Available also in derived
986 type definition nodes.
987 (Protected_Present, Set_Protected_Present): Available also in
988 record type definition and
989 derived type definition nodes.
990 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
991 (Task_Present, Set_Task_Present): New subprogram.
992 (Task_Body_Procedure): Removed.
993 (Set_Task_Body_Procedure): Removed.
994 These subprogram have been removed because the attribute
995 Task_Body_Procedure has been moved to the corresponding task type
996 or task subtype entity to leave a field free to store the list
997 of interfaces implemented by a task (for AI-345)
998 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
999 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
1000 expression flag Do_Range_Check
1001 (Exception_Junk): Change to Flag7 to accomodate above change
1002 (Box_Present, Default_Name, Specification, Set_Box_Present,
1003 Set_Default_Name, Set_Specification): Expand the expression
1004 "X in N_Formal_Subprogram_Declaration" into the corresponding
1005 two comparisons. Required to use the csinfo tool.
1006
1007 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
1008 "with string" given.
1009
1010 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
1011 expression given.
1012
1013 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
1014 in 2005 mode
1015
1016 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
1017 attribute Task_Body_Procedure rather than the old semantic field that
1018 was available in the task_type_declaration node.
1019
1020 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
1021 interface type definitions.
1022 (P_Formal_Derived_Type_Definition): Modified to handle the list of
1023 interfaces.
1024
1025 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
1026 task type declaration.
1027 (P_Protected): Modified to handle the list of interfaces in a
1028 protected type declaration.
1029
1030 2005-03-15 Doug Rupp <rupp@adacore.com>
1031 Vincent Celier <celier@adacore.com>
1032
1033 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
1034 (Gen_Output_File_C): Likewise.
1035 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
1036
1037 2005-03-15 Thomas Quinot <quinot@adacore.com>
1038
1039 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
1040 is an N_Raise_Constraint_Error node, create a new copy of it without
1041 going through a call to Duplicate_Subexpr.
1042
1043 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
1044 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1045 Nicolas Setton <setton@adacore.com>
1046 Ed Schonberg <schonberg@adacore.com>
1047
1048 PR ada/19900
1049 PR ada/19408
1050 PR ada/19140
1051 PR ada/20255
1052
1053 * decl.c (gnat_to_gnu_field): Reject aliased components with a
1054 representation clause that prescribes a size not equal to the rounded
1055 size of their types.
1056 (gnat_to_gnu_entity, case E_Component): Always look at
1057 Original_Record_Component if Present and not the entity.
1058 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
1059 of tagged extension types by not making field for components that are
1060 inside the parent.
1061 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
1062 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
1063 expression to the type of the object when the object is constant.
1064 Reverse defer_debug_incomplete_list before traversing it, so that trees
1065 are processed in the order at which they were added to the list. This
1066 order is important when using the stabs debug format.
1067 If we are deferring the output of debug information, also defer this
1068 output for a function return type.
1069 When adding fields to a record, prevent emitting debug information
1070 for incomplete records, emit the information only when the record is
1071 complete.
1072 (components_to_record): New parameter defer_debug.
1073 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
1074 (gnat_to_gnu_field_decl): New function.
1075 (substitution_list, annotate_rep): Call it.
1076 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
1077 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
1078 No longer update discriminants to not be a COMPONENT_REF.
1079 (copy_alias_set): Strip padding from input type; also handle
1080 unconstrained arrays properly.
1081
1082 * gigi.h (write_record_type_debug_info): New function.
1083 Convert to use ANSI-style prototypes. Remove unused
1084 declarations for emit_stack_check, elab_all_gnat and
1085 set_second_error_entity.
1086 (gnat_to_gnu_field_decl): New decl.
1087
1088 * utils.c (write_record_type_debug_info): New function.
1089 (finish_record_type): Delegate generation of debug information to
1090 write_record_type_debug_info.
1091 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
1092 (update_pointer_to): Fix pasto.
1093 (convert) <UNION_TYPE>: Accept slight type variations when
1094 converting to an unchecked union type.
1095
1096 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
1097 replace the N_Freeze_Entity with a null statement.
1098
1099 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
1100 within a constrained subcomponent of an enclosing record, place the
1101 freeze nodes in the scope stack entry for the enclosing record.
1102 (Undelay_Type): New Subprogram.
1103 (Set_Small_Size): Pass T, the type to modify; all callers changed.
1104 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
1105 within records; allow them to have freeze nodes if their base types
1106 aren't frozen yet.
1107
1108 * exp_util.adb (Remove_Side_Effects): Properly test for
1109 Expansion_Delayed and handle case when it's inside an
1110 N_Qualified_Expression.
1111
1112 * sem_ch3.adb (Derived_Type_Declaration): New predicate
1113 Comes_From_Generic, to recognize accurately that the parent type in a
1114 derived type declaration can be traced back to a formal type, because
1115 it is one or is derived from one, or because its completion is derived
1116 from one.
1117 (Constrain_Component_Type): If component comes from source and has no
1118 explicit constraint, no need to constrain in in a subtype of the
1119 enclosing record.
1120 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
1121 Minor change to propagate Is_Ada_2005 flag
1122
1123 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
1124 Expansion_Delayed is False.
1125 (assoc_to_constructor): Ignore fields that have a
1126 Corresponding_Discriminant.
1127 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
1128 function returns "by target", dereference the target pointer using the
1129 type of the actual return value.
1130 <all>: Be prepared for a null gnu_result.
1131 (processed_inline_subprograms): Check flag_really_no_inline
1132 instead of flag_no_inline.
1133 (set_second_error_entity): Remove unused function.
1134 (gnat_to_gnu, case N_Selected_Component): Call
1135 gnat_to_gnu_field_decl.
1136 (assoc_to_constructor): Likewise.
1137
1138 2005-03-15 Robert Dewar <dewar@adacore.com>
1139 Ed Schonberg <schonberg@adacore.com>
1140 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1141
1142 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
1143 Must_Be_Byte_Aligned for cases where we do not need to use a
1144 System.Pack_nn unit.
1145
1146 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
1147 as procedures.
1148 Needed now that we do some processing for IN parameters as well. This
1149 may well fix some unrelated errors.
1150 (Expand_Call): Handle case of unaligned objects (in particular those
1151 that come from packed arrays).
1152 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
1153 renamed entity is an inherited operation, re-expand the call using the
1154 original operation, which is the one to call.
1155 Detect attempt to inline parameterless recursive subprogram.
1156 (Represented_As_Scalar): Fix to work properly with private types
1157 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
1158 accurate estimate. Yields True in far fewer cases than before,
1159 improving the quality of code that depends on this test.
1160
1161 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
1162 over both visible and private declarations to remove them from tree,
1163 and mark subprograms declared in package as eliminated, to prevent
1164 spurious use in subsequent compilation of generic units in the context.
1165
1166 * exp_util.ads: Minor cleanup in variable names
1167
1168 * sem_eval.ads, sem_eval.adb: Minor reformatting
1169 (Compile_Time_Known_Bounds): New function
1170
1171 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1172
1173 * exp_ch7.adb (Convert_View): Use base types of underlying types when
1174 determining whether an unchecked conversion is needed for the argument
1175 of an initialization call.
1176
1177 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1178
1179 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
1180 that appears in the instantiation rather than the internal subtype
1181 generated in the wrapper package, to avoid anomalies in gigi when the
1182 target is derived from a private type whose full view is an access type.
1183
1184 2005-03-15 Robert Dewar <dewar@adacore.com>
1185
1186 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
1187 not needed.
1188 Add documentation to replace the use of this flag
1189 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
1190 the x86_64.
1191
1192 2005-03-15 Thomas Quinot <quinot@adacore.com>
1193
1194 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
1195 here from exp_attr so it can be shared between exp_attr and exp_dist.
1196 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
1197 all TSS names, not a subset thereof, and the previous name introduced
1198 an unnecessarily confusion that a distinction might exist between
1199 "OK" TSS names and some "not OK" TSS names.
1200
1201 2005-03-15 Doug Rupp <rupp@adacore.com>
1202
1203 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
1204 Command_Name.
1205
1206 2005-03-15 Pascal Obry <obry@adacore.com>
1207 Eric Botcazou <ebotcazou@adacore.com>
1208
1209 PR ada/20226
1210 PR ada/20344
1211
1212 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
1213 when IN_RTS. This is to work around a bootstrap path problem.
1214
1215 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
1216 table and pass it to __gnat_install_SEH_handler().
1217 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
1218
1219 * lang.opt: Fix specification of -fRTS=.
1220
1221 2005-03-15 Doug Rupp <rupp@adacore.com>
1222 Bernard Banner <banner@adacore.com>
1223 Vincent Celier <celier@adacore.com>
1224 Arnaud Charlet <charlet@adacore.com>
1225
1226 PR ada/6852
1227 This change works fine when gnatlib is built from the gcc directory,
1228 but does not work when using the libada Makefile, since GCC_FOR_TARGET
1229 is not passed to ada/Makefile.in, so more work is needed by a
1230 Makefile/configure expert.
1231
1232 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
1233 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
1234 Setup gnatlink switch -M for x86_64 linux, as it is already setup
1235 for Linux x86.
1236 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
1237 Run ranlib on libgccprefix.a
1238 Define PREFIX_OBJS for Darwin, to build libgccprefix.
1239 (ADA_INCLUDE_SRCS): Split Ada packages.
1240
1241 2005-03-15 Robert Dewar <dewar@adacore.com>
1242
1243 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
1244
1245 * impunit.adb: Add GNAT.UTF_32
1246
1247 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
1248
1249 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
1250 now uses GNAT.UTF_32).
1251
1252 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
1253 capabilities for categorizing characters using Unicode categories
1254
1255 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1256
1257 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
1258 instantiation that has been rewritten as a package body, retrieve spec
1259 to generate proper name for implicit_with_clause.
1260 (Install_Parents): Recognize a parent that is an instantiation but has
1261 been rewritten as a package declaration during analysis.
1262
1263 2005-03-15 Javier Miranda <miranda@adacore.com>
1264 Ed Schonberg <schonberg@adacore.com>
1265
1266 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
1267 parameter reported some error we immediately return. This improves the
1268 behaviour of the frontend in case of errors.
1269 (Install_Parent, Remove_Parent): Introduce new flag
1270 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
1271 ancestor of a generic child unit, when the child is being instantiated.
1272 (Inline_Instance_Body): If we are compiling the private
1273 part or the body of a child unit, restore the proper visibility of the
1274 parents after compiling the instance body.
1275
1276 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1277 Javier Miranda <miranda@adacore.com>
1278
1279 PR ada/15608
1280 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
1281 of a private type, in which case it is underlying_type that denotes
1282 the proper task. Also modified to use the new entity attribute
1283 that is directly available in the task type and task subtype entities
1284 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
1285 arrays when other dimensions than the first are constrained by
1286 discriminants of an enclosing record.
1287 (Insert_Explicit_Dereference): If the prefix is an indexed component or
1288 a combination of indexed and selected components, find ultimate entity
1289 and generate the appropriate reference for it, to suppress spurious
1290 warnings.
1291 (Note_Possible_Modification): If an entity name has no entity, return.
1292 (Is_Variable): A function call never denotes a variable.
1293 (Requires_Transient_Scope): For record types, recurse only on
1294 components, not on internal subtypes that may have been generated for
1295 constrained components.
1296
1297 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1298
1299 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
1300 Eliminated as candidates for resolution. Both efficient, and avoids
1301 anomalies with operators declared in deleted code.
1302 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
1303 expansion is disabled (as when compiling a generic) to prevent spurious
1304 warnings on prefixes of selected components.
1305
1306 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1307
1308 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
1309 attached to a list before checking whether it appears in the private
1310 declarations of the current package.
1311 (Make_Inequality_Operator): Insert declaration in proper declarative
1312 list rather than just setting the Parent field, so that
1313 Is_Private_Declaration can handle it properly.
1314
1315 2005-03-15 Ed Schonberg <schonberg@adacore.com>
1316
1317 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
1318 a renaming a body, check that the renamed subprogram in not intrinsic.
1319 (Find_Direct_Name): If several use_visible entities hide
1320 each other, and the context is a predefined file compiled through
1321 rtsfind, keep only the entity that comes from a predefined file.
1322
1323 2005-03-15 Geert Bosch <bosch@adacore.com>
1324
1325 * s-fatgen.adb (Valid): Extend special exceptions to account for long
1326 long float padding to also cover AMD64 and IA64.
1327
1328 2005-03-15 Gary Dismukes <dismukes@adacore.com>
1329
1330 * s-imgwch.adb: Add with and use of Interfaces.
1331 (Img_Wide_Character): Change type of Val to Unsigned_16.
1332 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
1333
1334 2005-03-15 Matthew Gingell <gingell@adacore.com>
1335
1336 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
1337
1338 2005-03-15 Robert Dewar <dewar@adacore.com>
1339
1340 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
1341
1342 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
1343
1344 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
1345
1346 2005-03-15 Robert Dewar <dewar@adacore.com>
1347
1348 * s-bitops.adb, s-bitops.ads,
1349 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
1350 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
1351 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
1352 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
1353 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
1354 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
1355 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
1356 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
1357 reformatting.
1358
1359 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
1360
1361 * utils2.c (build_binary_op): Fix typo.
1362
1363 2005-03-15 Doug Rupp <rupp@adacore.com>
1364
1365 * s-crtl.ads (popen,pclose): New imports.
1366
1367 2005-03-15 Cyrille Comar <comar@adacore.com>
1368
1369 * comperr.adb (Compiler_Abort): remove references to obsolete
1370 procedures in the bug boxes for various GNAT builds.
1371
1372 2005-03-15 Vincent Celier <celier@adacore.com>
1373
1374 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
1375
1376 2005-03-15 Geert Bosch <bosch@adacore.com>
1377 Arnaud Charlet <charlet@adacore.com>
1378 Robert Dewar <dewar@adacore.com>
1379 Cyrille Comar <comar@adacore.com>
1380 Sergey Rybin <rybin@adacore.com>
1381
1382 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
1383 too specific and long-winded to be appropriate for the GNAT User's
1384 Guide.
1385 Warn about use of GCC switches not documented in the GNAT User's Guide,
1386 as these may cause generated code to not conform to Ada semantics.
1387 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
1388 Add documentation for -gnat95 and -gnat05 switches
1389 Remove paragraph documenting obsolete way to refer to third party
1390 libraries.
1391 Add a few references to Ada_05 that were missing.
1392 Update documentation on -gnatZ/-gnatL.
1393 Document limitation when using -m64 under Solaris.
1394 Change the "Name Casing" subsection of the pretty-printer section
1395 according to the changes in the dictionary processing.
1396
1397 * gnat_rm.texi: Document the Ada_05 pragma.
1398 Section on record representation clauses describes the new more
1399 relaxed rules about placement of large packed bit array components.
1400 Add documentation of GNAT.UTF_32
1401
1402 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
1403
1404 * misc.c (gnat_post_options): Turn off structural
1405 aliasing for now.
1406
1407 2005-03-08 Laurent Guerby <laurent@guerby.net>
1408
1409 * system-linux-sparc.ads: Fix typo in previous commit.
1410
1411 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
1412 Laurent Guerby <laurent@guerby.net>
1413
1414 PR ada/20035
1415 * system-linux-sparc.ads: New.
1416 * Makefile.in: Add sparc linux entry.
1417
1418 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
1419
1420 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
1421 parameters as unused.
1422
1423 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
1424 Partial merge from libada-gnattools-branch:
1425
1426 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
1427 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
1428 into code in gnattools/Makefile.in. Remove direct dependencies on
1429 stamp-tools by tools clauses.
1430 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
1431 * config-lang.in: Add gnattools to $lang_dirs.
1432
1433 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
1434
1435 PR ada/19942
1436 * utils.c (gnat_type_for_mode): Return null instead of ICE because
1437 we asked for an unknown mode.
1438
1439 2005-02-12 Richard Henderson <rth@redhat.com>
1440
1441 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
1442 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
1443
1444 2005-02-10 Andreas Jaeger <aj@suse.de>
1445
1446 * init.c (__gnat_initialize): Mark parameter as unused.
1447
1448 2005-02-09 Doug Rupp <rupp@adacore.com>
1449
1450 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
1451 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
1452
1453 2005-02-09 Doug Rupp <rupp@adacore.com>
1454
1455 * gnatchop.adb (dup, dup2),
1456 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
1457
1458 * gnatlbr.adb (mkdir),
1459 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
1460
1461 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
1462
1463 2005-02-09 Doug Rupp <rupp@adacore.com>
1464
1465 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
1466
1467 2005-02-09 Robert Dewar <dewar@adacore.com>
1468 Thomas Quinot <quinot@adacore.com>
1469 Javier Miranda <miranda@adacore.com>
1470 Pascal Obry <obry@adacore.com>
1471 Ed Schonberg <schonberg@adacore.com>
1472 Doug Rupp <rupp@adacore.com>
1473 Gary Dismukes <dismukes@adacore.com>
1474 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1475
1476 * g-zstspl.ads: New file.
1477
1478 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
1479
1480 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
1481 Ada 95 mode
1482 Add definition of Wide_Wide_Space for AI-285
1483
1484 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
1485 interface (to support Ada 95 and Ada 2005 units).
1486 Add Unbounded_IO files
1487 Add entries for Wide_Wide packages for AI-285
1488 Add list of containers packages to Ada 2005 unit list
1489
1490 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
1491 support new Unbounded_IO package cleanly.
1492
1493 * g-utf_32.ads, g-utf_32.adb: New files.
1494
1495 * Makefile.rtl: Add entry for g-utf_32
1496 Add new files for Unbounded_IO
1497 Adjust make file for new AI-285 wide wide packages
1498 Add AI-302 containers to the run time.
1499
1500 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
1501 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
1502 subprograms for AI-301.
1503
1504 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
1505
1506 * a-stunau.ads: Minor comment correction
1507
1508 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
1509 etc.
1510 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
1511 (Check_RPC): Update to match changes in expanded code.
1512 Clean up unused entity.
1513
1514 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
1515 was not taken into account.
1516 This includes proper initialization with Normalize_Scalars.
1517 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
1518 normalize scalars cases (particularly the latter) to do a better job
1519 of finding invalid representations.
1520
1521 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
1522
1523 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
1524 used
1525
1526 * exp_dist.adb: Add support for wide wide character type
1527 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
1528 private part, generate stub bodies at the end of the private part,
1529 not the visible part.
1530 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
1531 PolyORB support.
1532 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
1533 generic wrapper to execute final processing after completing the
1534 expansion of the RPC receiver for an RACW.
1535
1536 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
1537 packages and attributes.
1538 (Preset_Names): Addition of the new reserved words of Ada 2005,
1539 that is interface, overriding and synchronized.
1540 (Get_Pragma_Id): Give support to the use of the new reserved word
1541 "interface" as a pragma name.
1542 (Is_Pragma_Name): Give support to the use of the new reserved word
1543 "interface" as a pragma name.
1544 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
1545 attribute implementation.
1546
1547 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
1548 checks to entities that are output parameters of Asm operations.
1549 Handle the Stream_Size attribute.
1550 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
1551
1552 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
1553
1554 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
1555 for second parameter being 0.0.
1556 Add support for wide wide character type.
1557 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
1558
1559 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
1560 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
1561 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
1562 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
1563 for wide wide character cases.
1564
1565 * cstand.adb: Create entities for Wide_Wide_Character and
1566 Wide_Wide_String.
1567
1568 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
1569 accordance with AI-258.
1570 Add new declarations for 16/32 bit C character types (Part of AI285)
1571
1572 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
1573 (Obsolescent_Warning): New field
1574 (Rep_Clause): New local subprogram used to share code. Returns the rep
1575 clause for which the name is given in parameter.
1576 (Has_Stream_Size_Clause): New routine.
1577 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
1578 (Address_Clause): Implementation is now using Rep_Clause.
1579 (Alignment_Clause): Idem.
1580 (Size_Clause): Idem.
1581
1582 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
1583 entity in non-Ada 2005 mode and generate warning.
1584
1585 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
1586 (Prag): Code cleanup. Remove old gnat pragma "overriding"
1587
1588 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
1589 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
1590 on the named unit if the pragma is not in the current compilation unit,
1591 so that elaboration calls in the current unit can set up an elaboration
1592 dependency on the named unit, as needed.
1593 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
1594 subprogram as well as for subprograms declared within a package.
1595 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
1596 pragma overriding.
1597
1598 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
1599 to z) to avoid some instances of duplication for Wide_Wide packages.
1600
1601 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
1602 characters.
1603
1604 * scn.adb: Char_Literal_Value field is now a Uint
1605
1606 * scng.adb: Significant rewrite to handle new Ada 2005 features
1607 allowing wide and wide wide characters in program text, e.g. for
1608 identifiers, as described in AI-285.
1609 (Set_Reserved): New procedure, makes setting up keywords cleaner.
1610 (Initialize_Scanner): Register the new reserved words of Ada 2005.
1611 (Scan): Give support to the new reserved words.
1612
1613 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
1614 warning notifying that interface, overriding, and synchronized are
1615 new reserved words.
1616 (P_Pragma): Allow the use of the new reserved word "interface" as
1617 a pragma name.
1618
1619 * gnatls.adb, gnatbind.adb,
1620 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
1621 identifiers named "interface" to "SAL_Interface".
1622
1623 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
1624 (Structured Exception handling).
1625 (Gen_Main_C): Idem.
1626
1627 * bindgen.adb:
1628 (Gen_Main_Ada): Set the default exit code if specified.
1629 (Gen_Main_C): Likewise.
1630 Part of *DC20-006.
1631 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
1632 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
1633
1634 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
1635 new -Xnnn switch.
1636
1637 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
1638 has a collision with the new Ada 2005 "interface" reserved word.
1639
1640 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
1641 generate a warning notifying that interface, overriding, and
1642 synchronized are new reserved words.
1643
1644 * scans.ads (Token_Type): Addition of the tokens corresponding to the
1645 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
1646 and Tok_Synchronized.
1647
1648 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
1649 "dispatching" rather than "primitive" operations, since dispatching
1650 calls are now allowed to abstract formal subprograms (which are not
1651 primitive).
1652 Char_Literal_Value field is now a Uint
1653 (Resolve_Slice): If the prefix is an access to an unconstrained array,
1654 compute the actual subtype of the designated object to impose the proper
1655 index constraints.
1656 (Resolve_Selected_Component): Do not insert an access check if the
1657 prefix is an access type: such a node is expanded into an explicit
1658 dereference, on which the access check is performed anyway. Removes
1659 expensive duplicate checks.
1660 (Resolve_Call): Use new flag Is_Obsolescent and field
1661 Obsolescent_Warning so that pragma Obsolescent works on library
1662 subprograms.
1663 Add support for wide wide character type
1664 (Resolve_Allocator): Replace the error message on wrong null-exclusion
1665 value by a warning message.
1666 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
1667 as fixed-point, and one of the operands is non-static and universal, it
1668 can only be an illegal exponentiation operation, in which case there is
1669 no real value to retrieve.
1670
1671 * exp_strm.adb: Add support for wide wide character type
1672 (Build_Elementary_Input_Call): Compute the size of the stream element by
1673 querying the rep chain to find the Stream_Attribute attribute value.
1674 (Build_Elementary_Write_Call): Ditto.
1675
1676 * sem_aggr.adb: Char_Literal_Value field is now a Uint
1677 Add support for wide wide character type
1678 Replace the error messages on wrong null-exclusion value by warnings
1679 as described in Ada 2005.
1680 (Resolve_Extension_Aggregate): Document the fact that the error
1681 message on class-wide expressions in extensions aggregates.
1682
1683 * sem_case.adb: Add support for wide wide character type
1684
1685 * sem_ch13.adb: Add support for wide wide character type
1686 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
1687
1688 * sem_ch3.adb: Add support for wide wide character type
1689 (Process_Subtype): If constraint is illegal for the type, set Ekind of
1690 now-useless Itype, to prevent cascaded errors on a compiler built
1691 without -gnatp.
1692
1693 * sem_ch8.adb: Add with and use of Sem_Disp.
1694 (Analyze_Subprogram_Renaming): Replace unclean uses of
1695 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
1696 of Corresponding_Spec to Empty).
1697 (Attribute_Renaming): Replace use of Corresponding_Spec with
1698 Corresponding_ Formal_Spec and simplify condition.
1699 (Use_One_Package): Check that scope of homonym of identifier is defined,
1700 before checking whether it is a wrapper package.
1701 Add support for wide wide character type
1702
1703 * sem_eval.adb: Add support for wide wide character type.
1704 (Eval_Arithmetic_Op): Check for compile time known signed integer
1705 overflow in the non-static case.
1706 (Subtypes_Statically_Match): A formal scalar type and its base type do
1707 not statically match.
1708
1709 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
1710 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
1711 subtype).
1712 (Unit_Declaration_Node): Ditto.
1713 (Is_Variable_Prefix): For the case of an indexed component whose prefix
1714 has a packed array type, the prefix has been rewritten into a type
1715 conversion. Determine variable-ness from the converted expression.
1716 Handle wide wide character cases.
1717
1718 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
1719
1720 * stringt.ads, stringt.adb: Handle full UTF-32 range.
1721 Remove ["0A"] from comment, since it can look like a line terminator.
1722 Currently we don't permit this, but this is under discussion by the
1723 ARG, and it is easy enough to use a different example.
1724
1725 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
1726 handling UTF-32 encoding for wide wide character.
1727 Implement new brackets coding ["hhhhhhhh"]
1728 Add UTF-8 encodings for full UTF-32 range
1729
1730 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
1731
1732 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
1733 bit range Add full UTF-32 support.
1734 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
1735 notify that constraint error will be raised at run-time
1736 because a null value is assigned to a null-excluding object.
1737 Remove some obsolete declarations and make Char_Code
1738 unsigned.
1739
1740 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
1741 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
1742 Rcheck subprograms.
1743
1744 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
1745 wrong null-exclusion value by a warning message.
1746 (Enable_Range_Check): Do range check if the prefix is an
1747 explicit dereference whose designated object is an unconstrained array.
1748 Current algorithm for removing duplicate checks is over-eager in this
1749 case.
1750
1751 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
1752 null-exclusion value by a warning message
1753
1754 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
1755 completely. Add support for Uint2 field
1756
1757 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
1758 exp_prag.adb: Char_Literal_Value field is now a Uint.
1759
1760 * exp_util.adb (Insert_Actions): Replace
1761 N_Formal_Subprogram_Declaration by
1762 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
1763 Char_Literal_Value field is now a Uint.
1764
1765 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
1766 defined for subprogram renaming declarations. When set, the field
1767 indicates the defining entity of a corresponding formal subprogram
1768 when the renaming corresponds to a formal subprogram association in an
1769 instantiation.
1770 (Set_Corresponding_Formal_Spec): New procedure to return
1771 Corresponding_Formal_Spec field.
1772 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
1773 (which is now a subtype).
1774 Char_Literal_Value field is now a Uint
1775
1776 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
1777 pointer to the base of the dispatch table.
1778 Minor changes to comments.
1779 (Controlling_Type): New function for determining the tagged type
1780 associated with a tagged primitive subprogram.
1781 (Expand_Dispatching_Call): Add support for a controlling actual that is
1782 directly a value of type Ada.Tag rather than a tagged object.
1783
1784 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
1785 describing the new layout.
1786 (Dispatch_Table): The expander computes the actual array size, allocates
1787 the Dispatch_Table record accordingly, and generates code that displaces
1788 the base of the record after the Typeinfo_Ptr component. The access to
1789 these components is done by means of local functions.
1790 (Offset_To_Top): New function.
1791 (Typeinfo_Ptr): New function.
1792 (Get_TSD): Modified to access the new position of the TSD.
1793 (Set_TSD): Modified to save the TSD in its new position.
1794
1795 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
1796 case of formal abstract subprograms. Add check and message for -gnat05.
1797 Update comments.
1798
1799 * sem_ch12.adb: Add with and use for Sem_Disp.
1800 (Analyze_Associations): Minor change from "=" to "in" for use of
1801 N_Formal_Subtype_Declaration (which is now a subtype).
1802 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
1803 N_Formal_Subtype_Declaration (which is now a subtype).
1804 (Analyze_Formal_Subprogram): Add handling for
1805 N_Formal_Abstract_Subprogram, marking the formal as abstract and
1806 dispatching, setting the controlling status of the formal parameters
1807 and result, and issuing an error if there is no controlling type for
1808 the formal subprogram.
1809 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
1810 which is an unclean use of that field, we set the new field
1811 Corresponding_Formal_Spec to make the formal subprogram available to
1812 processing in Analyze_Subprogram_Declaration.
1813 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
1814 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
1815 Constrained, so that it is is does not statically match its anonymous
1816 base type.
1817
1818 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
1819 abstract formal subprograms in error check for functions returning
1820 abstract types. Set scope of new designator for
1821 a parameterless subprogram, so that it is available when checking the
1822 body for nested subprograms, before full analysis of said body.
1823 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
1824 subprogram only if inner one comes from source.
1825 (Analyze_Function_Call): If the call is given in object notation, the
1826 analysis of the name rewrites the node and analyzes it with the proper
1827 argument list. After analyzing the name, if the call has been rewritten
1828 and the result type is set, no further analysis is needed.
1829 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
1830 mark in function specification, in a context where the formals are
1831 visible and hide outer homographs.
1832
1833 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
1834 as the tagged type for the cases of abstract formal subprograms and
1835 renamings of those. Clean up spec comments.
1836 (Check_Dispatching_Context): Add error message to indicate "abstract
1837 procedure", covering the case of a call to a formal abstract procedure
1838 that has statically tagged operands.
1839 (Check_Dispatching_Call): Check for the case of an actual given by
1840 a tag-indeterminate function call whose type is an ancestor of the
1841 containing call's associated tagged type. This situation can occur
1842 for inherited primitives with function defaults. In this case we
1843 use the tagged type's tag directly as the controlling argument for
1844 the calls.
1845 (Expand_Call): Name change on call to Expand_Dispatch_Call.
1846
1847 * sprint.adb (Sprint_Node_Actual): Split
1848 N_Formal_Subprogram_Declaration into two alternatives for the new
1849 cases N_Formal_Abstract_Subprogram_Declaration and
1850 N_Formal_Concrete_Subprogram_Declaration.
1851 Char_Literal_Value field is now a Uint.
1852
1853 * trans.c: Get rid of junk Uint2 reference.
1854 Char_Literal_Value field is now a Uint.
1855 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
1856 (gigi): Correct third arg to gimplify_body.
1857
1858 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
1859 (TYPE_LANG_FLAG_0): Check for record or union.
1860
1861 * treepr.adb: Char_Literal_Value field is now a Uint
1862
1863 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
1864 UI_From_CC.
1865
1866 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
1867 Add full UTF-32 support
1868 Char_Code is now 32 bits
1869
1870 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
1871 wide character UTF_32 line terminators.
1872 Initialize Main_Source_File to avoid error when no main
1873 source is loaded.
1874
1875 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
1876 (Main_Source_File) when no main source has been loaded, to avoid
1877 potential crash.
1878
1879 2005-02-09 Robert Dewar <dewar@adacore.com>
1880
1881 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
1882 Fix name of Set routine
1883
1884 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
1885 fixed packages.
1886
1887 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
1888 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
1889 fixed packages
1890
1891 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
1892 forms of Get_Line subprograms for AI-301.
1893
1894 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
1895 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
1896 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
1897 a-stwima.ads: Minor reformatting.
1898
1899 2005-02-09 Doug Rupp <rupp@adacore.com>
1900 Thomas Quinot <quinot@adacore.com>
1901
1902 * adaint.c, adaint.h
1903 [VMS] (to_ptr32): New function.
1904 (MAYBE_TO_PTR32): New macro.
1905 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
1906 for pointer size.
1907 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
1908 [VMS] (#define fork()): Remove since unneccessary.
1909 (__gnat_set_close_on_exec): New routine to support
1910 GNAT.OS_Lib.Set_Close_On_Exec.
1911
1912 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
1913 the parent side as close-on-exec so that they are not inherited by the
1914 child.
1915
1916 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
1917 set or clear the FD_CLOEXEC flag on a file descriptor.
1918
1919 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
1920 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1921
1922 Fix for c330001 - PR ada/19386
1923
1924 * decl.c:
1925 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
1926 on the field if Pragma Component_Alignment (Storage_Unit).
1927 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
1928 side-effects as if it were a constant; also make SAVE_EXPR to protect
1929 side-effects.
1930 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
1931 UNION_TYPE.
1932 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
1933 (components_to_record): Test it.
1934 Fix improper usage of REFERENCE_CLASS_P.
1935
1936 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
1937 RECORD_TYPE.
1938
1939 * utils2.c: Minor reformatting.
1940
1941 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
1942 handle other cases like RECORD_TYPE.
1943
1944 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
1945
1946 2005-02-09 Ed Schonberg <schonberg@adacore.com>
1947
1948 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
1949 component of an array of arrays in an assignment context, and the
1950 aggregate has component associations that require sliding on
1951 assignment, force reanalysis of the aggregate to generate a temporary
1952 before the assignment.
1953 (Must_Slide): Make global to the package, for use in Gen_Assign.
1954
1955 2005-02-09 Ed Schonberg <schonberg@adacore.com>
1956
1957 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
1958 unchecked union with no inferable discriminants, return a
1959 Raise_Program_Error node, rather than inserting it at the point the
1960 type is frozen.
1961 (Expand_Record_Equality, Component_Equality): Handle properly the case
1962 where some subcomponent is an unchecked union whose generated equality
1963 code raises program error.
1964
1965 2005-02-09 Doug Rupp <rupp@adacore.com>
1966
1967 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
1968 [VMS] (#define exit hack): Remove.
1969
1970 2005-02-09 Pascal Obry <obry@adacore.com>
1971 Arnaud Charlet <charlet@adacore.com>
1972
1973 * init.c (__gnat_initialize): Add a new parameter eh which contains the
1974 address of the exception registration. The Win32 version of this
1975 routine calls __gnat_install_SEH_handler() to initialize the SEH
1976 (Structured Exception Handling) handler.
1977 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
1978 SEH (Structured Exception Handling) now.
1979 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
1980 (__gnat_initialize for ppc-vxworks): Adjust comments and the
1981 preprocessor condition protecting the call to the extra eh setup
1982 subprogram, which is only available for the ppc target.
1983 (__gnat_clear_exception_count): replaced reference to
1984 variable taskIdCurrent by call to taskIdSelf(), cleaner.
1985
1986 * seh_init.c: New file.
1987
1988 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
1989 (GNATBIND_OBJS): Idem.
1990
1991 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
1992 routine takes a new parameter (a pointer to the exception registration
1993 for the SEH (Structured Exception Handling) support.
1994
1995 * raise.h: (__gnat_install_SEH_handler): New prototype.
1996 Update copyright notice.
1997
1998 * s-tassta.adb (Task_Wrapper): Declare the exception registration
1999 record and initialize it by calling __gnat_install_SEH_handler.
2000
2001 2005-02-09 Vincent Celier <celier@adacore.com>
2002
2003 * make.adb (Gnatmake): Do not fail when the main project has no object
2004 directory.
2005
2006 2005-02-09 Doug Rupp <rupp@adacore.com>
2007
2008 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
2009 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
2010 [VMS]: Add translations for g-enblsp.adb.
2011
2012 * s-asthan-vms.adb: Removed.
2013 * s-asthan-vms-alpha.adb: Added.
2014
2015 2005-02-09 Pascal Obry <obry@adacore.com>
2016
2017 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
2018 (LIBGNAT_OBJS): Add seh_init.o.
2019
2020 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2021
2022 PR ada/16592
2023
2024 * Makefile.in: Link all gnat tools with -static-libgcc, since
2025 -shared-libgcc is now used by default on some systems (e.g. linux with
2026 recent binutils).
2027 Remove references to Makefile.prolog/generic, no longer used.
2028
2029 2005-02-09 Vincent Celier <celier@adacore.com>
2030
2031 * prj-makr.adb (Process_Directory): Put file name in canonical case
2032 before matching against the patterns.
2033 If gnatname has been invoked as <prefix>-gnatname
2034 then invoke the compiler as <prefix>-gcc, not just "gcc".
2035
2036 2005-02-09 Ed Schonberg <schonberg@adacore.com>
2037
2038 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
2039 with expansion disabled. The actual subtype is needed among other
2040 places when the selected component appears in the context of a loop
2041 bound, and denotes a packed array.
2042 (Operator_Check): Always use the first subtype in the
2043 error message, to avoid the appearance of internal base types.
2044 (Transform_Object_Operation): Copy each actual in full
2045 to the parameter associations of the constructed call, rather than
2046 using the shallow copy mechanism of New_Copy_List. This ensures that
2047 the chaining of named associations is done properly.
2048 (Complete_Object_Operation): Rewrite node, rather than
2049 replacing it, so that we can trace back to the original selected
2050 component.
2051
2052 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
2053 and calls that use object notation, if the called function is not
2054 declared in a withed unit, place the elaboration constraint on the
2055 unit in the context that makes the function accessible.
2056 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
2057 imposes an elaboration constraint between two packages.
2058
2059 2005-02-09 Ed Schonberg <schonberg@adacore.com>
2060
2061 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
2062 views of a private type after handling its private dependents, to
2063 maintain proper stack discipline between entry and exit from the
2064 package.
2065
2066 2005-02-09 Cyrille Comar <comar@adacore.com>
2067
2068 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
2069 Minor reformatting.
2070
2071 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2072
2073 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
2074 fields for foreign threads.
2075
2076 2005-02-09 Doug Rupp <rupp@adacore.com>
2077
2078 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
2079 recursion warnings when compiled with -gnatdm.
2080
2081 2005-02-09 Robert Dewar <dewar@adacore.com>
2082
2083 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
2084 Slight fix to documentation of -gnaty with no parameters
2085
2086 * xr_tabls.ads: Add ??? comment for missing overall comment
2087
2088 * xsinfo.adb: Make default file name be sinfo.h, since this is what
2089 we now use by default.
2090
2091 * xsnames.adb: Adjust end of file test to look for five space followed
2092 by '#' instead of six spaces. The format of xsnames.adb was modified
2093 in the last update.
2094
2095 * a-numeri.ads: Add reference to AI-388 for greek letter pi
2096 identifier.
2097
2098 * clean.adb: Minor reformatting.
2099
2100 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
2101 gnatname.adb: Minor reformatting
2102 Add 2005 to copyright output when utility is run
2103
2104 * csets.adb: Eliminate obsolete comment
2105
2106 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
2107 Update comments.
2108
2109 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
2110
2111 2005-02-09 Sergey Rybin <rybin@adacore.com>
2112
2113 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
2114 the difference between compact and incompact layout and add the record
2115 representation clause to the example illustrating different layouts.
2116 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
2117 component clauses").
2118
2119 2005-02-09 Florian Villoing <villoing@adacore.com>
2120
2121 * gnat_ugn.texi: Fix typos.
2122 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
2123 @file.
2124 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
2125 in the generated documentation.
2126
2127 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2128
2129 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
2130 longer supported.
2131 Update linker wrapper when linking with non GNU C++.
2132
2133 2005-02-09 Pascal Obry <obry@adacore.com>
2134
2135 * gnat_ugn.texi:
2136 Document the procedure to debug the DllMain routine on Windows.
2137 Add note about -funwind-tables and mixed Ada and C/C++ programming in
2138 ZCX mode.
2139 Document new BIND qualifer /RETURN_CODES=VMS.
2140
2141 2005-02-09 Ben Brosgol <brosgol@adacore.com>
2142
2143 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2144 Edited gnatmetric chapter
2145
2146 2005-02-09 Robert Dewar <dewar@adacore.com>
2147
2148 * gnat_rm.texi:
2149 Changes to document new wide wide character support
2150 For AI-285
2151 Update documentation on Normalize_Scalars and Initialize_Scalars
2152
2153 2005-02-09 Pascal Obry <obry@adacore.com>
2154
2155 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
2156
2157 2005-02-09 Jose Ruiz <ruiz@adacore.com>
2158
2159 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
2160 from the VxWorks kernel) that is needed for getting the active
2161 priority of the different tasks.
2162
2163 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
2164 Use a pragma Elaborate_Body in the spec file instead.
2165 Noticed by code reading.
2166
2167 2005-02-09 Thomas Quinot <quinot@adacore.com>
2168
2169 * exp_util.ads: Minor correction in comment.
2170
2171 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2172
2173 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
2174 since this procedure is now too complex to be worth inlining.
2175
2176 2005-02-09 Richard Henderson <rth@redhat.com>
2177
2178 * utils.c (gnat_define_builtin): Remove.
2179 (gnat_install_builtins): Use build_common_builtin_nodes.
2180
2181 2005-02-09 Arnaud Charlet <charlet@adacore.com>
2182
2183 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
2184 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
2185 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
2186 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
2187 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
2188 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
2189 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
2190 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
2191 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
2192 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
2193 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
2194 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
2195 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
2196 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
2197 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
2198 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
2199 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
2200 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
2201 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
2202 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
2203 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
2204 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
2205 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
2206 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
2207 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
2208 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
2209 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
2210 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
2211 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
2212 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
2213 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
2214 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
2215 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
2216 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
2217 library.
2218
2219 2005-01-27 Laurent GUERBY <laurent@guerby.net>
2220
2221 * Makefile.in: Fix a-intnam.ads from previous commit,
2222 add 2005 to copyright.
2223 * a-intman-rtems.ads: Renamed to...
2224 * a-intnam-rtems.ads:
2225
2226 2005-01-27 Laurent GUERBY <laurent@guerby.net>
2227
2228 * Makefile.in: Rename GNAT RTEMS specific files.
2229 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
2230 5rosinte.ads, 5rparame.adb: Replaced by files below.
2231 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
2232 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
2233
2234 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
2235 Laurent GUERBY <laurent@guerby.net>
2236
2237 PR ada/19488
2238 * 5rosinte.ads: Add No_Key constant.
2239 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
2240 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
2241
2242 2005-01-26 Laurent GUERBY <laurent@guerby.net>
2243
2244 PR ada/19414
2245 * i-cobol.adb (Valid_Numeric): Handle zero length case.
2246
2247 2005-01-20 Richard Henderson <rth@redhat.com>
2248
2249 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
2250 a-intnam-linux.ads and system-linux-alpha.ads.
2251 * a-intnam-linux-alpha.ads: Remove file.
2252 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
2253 * system-linux-alpha.ads: New file.
2254
2255 2005-01-18 Jakub Jelinek <jakub@redhat.com>
2256
2257 PR ada/13470
2258 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
2259 set to the new string.
2260
2261 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
2262
2263 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
2264 to True.
2265
2266 2005-01-18 Richard Henderson <rth@redhat.com>
2267
2268 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
2269 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
2270 for alpha-linux.
2271 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
2272
2273 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
2274
2275 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
2276 (GCC_ZCX_Support): Likewise.
2277
2278 2005-01-11 Bastian Blank <waldi@debian.org>
2279
2280 * system-linux-s390.ads: Define Preallocated_Stacks.
2281 * system-linux-s390x.ads: Likewise.
2282
2283 2005-01-04 Arnaud Charlet <charlet@adacore.com>
2284
2285 * gnat_ugn.texi: Fix texi errors with null variables.
2286
2287 2005-01-03 Thomas Quinot <quinot@adacore.com>
2288
2289 * gen-soccon.c: New utility program to generate g-soccon.ads
2290 automatically.
2291
2292 * socket.c, gsocket.h: Split inclusion of system header files into a
2293 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
2294
2295 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
2296 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2297 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
2298 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
2299 should not be edited by hand anymore, but should be regenerated using
2300 gen-soccon.
2301
2302 2005-01-03 Robert Dewar <dewar@adacore.com>
2303 Ed Schonberg <schonberg@adacore.com>
2304 Vincent Celier <celier@adacore.com>
2305
2306 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
2307 on/off, since this is an obsolescent feature, for which we now generate
2308 a warning.
2309
2310 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
2311 warning mode is set and obsolescent usage of this attribute occurs.
2312 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
2313 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
2314 predates, and partly motivates, the adoption of the AI.
2315 Implement new Ada 2005 attribute Mod
2316
2317 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
2318 attribute Mod.
2319
2320 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
2321
2322 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
2323 pragma restrictions.
2324 New entry for Ada 2005 attribute Mod.
2325
2326 * par-prag.adb:
2327 Add recognition of new pragma Restrictions No_Dependence
2328 Recognize restriction No_Obsolescent_Features at parse time
2329
2330 * bcheck.adb: Add circuitry for checking for consistency of
2331 No_Dependence restrictions.
2332
2333 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
2334 restrictions.
2335
2336 * restrict.ads, restrict.adb: Add subprograms to deal with
2337 No_Dependence restrictions.
2338
2339 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
2340 restrictions.
2341
2342 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
2343 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
2344
2345 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
2346 dummy parameter to scng instantiation.
2347 Needed for new restriction No_Obsolescent_Features
2348
2349 * scn.adb: (Obsolescent_Check): New procedure
2350 Needed for new restriction No_Obsolescent_Features
2351
2352 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
2353 specified by AI-285, needed for implementation of AI-388 (adding greek
2354 pi to Ada.Numerics).
2355 Add new generic formal to scng, needed for new restriction
2356 No_Obsolescent_Features.
2357
2358 * s-rident.ads: Add new restriction No_Obsolescent_Features.
2359
2360 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
2361 restrictions lines.
2362 (Scan_ALI): When finding an unexpected character on an R line, raise
2363 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
2364 Ignore_Errors is True, default restrictions are set and scanning of the
2365 ALI file continues with the next line. Also, when Bad_R_Line is raised
2366 and Ignore_Errors is True, skip to the end of le line.
2367
2368 * sem_ch10.adb: Check that explicit with's do not violate
2369 No_Dependence restrictions.
2370 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
2371 illegal context clauses containing child units of instance.
2372
2373 * sem_prag.adb: Processing and checking for new No_Dependence
2374 restrictions.
2375 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
2376 analyze and check the External argument.
2377
2378 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
2379
2380 2005-01-03 Robert Dewar <dewar@adacore.com>
2381
2382 * atree.adb: Add a fifth component to entities
2383 This allows us to add 32 flags and four new fields
2384
2385 * atree.ads: Add a fifth component to entities
2386 This allows us to add 32 flags and four new fields
2387
2388 * einfo.ads, einfo.adb: Document new fields and new flags now available
2389 Add routines for printing new fields
2390
2391 * treepr.adb: Call routines to print out additional fields if present
2392
2393 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2394
2395 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
2396 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
2397
2398 * Makefile.in: Add support to build shared Ada libraries on solaris x86
2399 Remove gpr2make, replaced by gprmake.
2400 Remove references to gnatmem and libaddr2line.
2401 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
2402 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
2403 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
2404 a-numaux-darwin.ads and a-numaux-darwin.adb
2405 Enable mlib-tgt-lynxos.adb on lynxos.
2406
2407 * Make-lang.in: Remove rules for gpr2make.
2408 When generating sdefault.adb, do not call Relocate_Path
2409 on S3 for function Target_Name, as it is not a path.
2410 Remove references to gnatmem and libaddr2line.
2411
2412 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
2413 files.
2414
2415 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
2416
2417 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
2418 address is incompatible with its base type alignment constraints when
2419 this can be decided statically.
2420
2421 2005-01-03 Olivier Hainque <hainque@adacore.com>
2422
2423 * decl.c (compatible_signatures_p): New function. The intended purpose
2424 is to check if two function signatures for a call-site and a callee are
2425 compatible enough for the call to be valid. The underlying purpose is
2426 to check if a call to a mapped builtin is using the right interface.
2427 The current code actually does not check antyhing - this a placeholder
2428 for future refinements.
2429 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
2430 builtin calls for convention Intrinsic.
2431
2432 * gigi.h (builtin_decl_for): Declare (new function).
2433
2434 * utils.c (gnat_install_builtins): Install the target specific builtins.
2435 (builtin_decl_for): New function, provide a dummy body for now.
2436
2437 2005-01-03 Geert Bosch <bosch@adacore.com>
2438
2439 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
2440 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
2441 (Pred): Implement in terms of Succ.
2442
2443 * trans.c (convert_with_check): Reimplement conversion of float to
2444 integer.
2445
2446 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2447 Vincent Celier <celier@adacore.com>
2448
2449 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
2450 bounds can be negative, and must be declared Int, not Nat.
2451
2452 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
2453 array is checked after using the index in the array.
2454
2455 * makegpr.adb (Add_Switches): Check if there is a package for the
2456 processor. If there is no package, do not look for switches.
2457
2458 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2459
2460 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
2461 generation of predefined stream operations (specs and bodies) should
2462 proceed. Under various restrictions these subprograms must not be
2463 generated.
2464
2465 2005-01-03 Thomas Quinot <quinot@adacore.com>
2466
2467 * exp_dist.adb:
2468 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
2469 amount of PCS-specific code in RACW stubs generation.
2470 (Copy_Specification): Set Etype on copied formal parameter entities, as
2471 this information is needed for PolyORB stubs generation.
2472 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
2473 variable Dynamic_Async.
2474 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
2475 (Build_RPC_Receiver_Specification): Make generic again, as recent
2476 changes have allowed RPC receivers to have the same profile for both
2477 variants of the PCS.
2478 Reorganise RPC receiver generation to reduce differences between the
2479 structure of GARLIC and PolyORB RPC receivers.
2480 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
2481 PCS-specific.
2482 Simplify elaboration code for RCI packages.
2483
2484 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
2485 generation to reduce differences between the structure of GARLIC and
2486 PolyORB RPC receivers.
2487
2488 * s-stratt.adb: Fix typo in comment.
2489
2490 2005-01-03 Thomas Quinot <quinot@adacore.com>
2491
2492 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
2493 copied from Make_Init_Call).
2494
2495 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
2496 reads and assignments on a temporary variable declared with appropriate
2497 discriminants.
2498
2499 2005-01-03 Robert Dewar <dewar@adacore.com>
2500
2501 * i-c.adb (To_C): Raise CE if string is null and Append_Null
2502
2503 2005-01-03 Robert Dewar <dewar@adacore.com>
2504
2505 * i-cstrin.adb (Update): Do not append a null in form called with a
2506 String. This avoids unintended behavior.
2507
2508 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2509
2510 PR ada/17527
2511 * init.c: Fix warnings on Free BSD section.
2512
2513 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2514
2515 PR ada/16949
2516 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
2517 xsinfo.adb).
2518
2519 2005-01-03 Vincent Celier <celier@adacore.com>
2520
2521 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
2522 libraries when Unique_Compile is True (-u switch).
2523 (Gnatmake): ditto.
2524
2525 2005-01-03 Robert Dewar <dewar@adacore.com>
2526
2527 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
2528 upper case letter or underscore after W, as allowed by spec.
2529
2530 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2531
2532 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
2533 darwin port by using proper type definitions from header files.
2534 Use SIGTERM instead of SIGABRT for SIGADAABORT.
2535
2536 2005-01-03 Robert Dewar <dewar@adacore.com>
2537
2538 * par.adb: Enhance error message handling for configuration file
2539 pragmas.
2540
2541 2005-01-03 Robert Dewar <dewar@adacore.com>
2542
2543 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
2544 removed during the previous update (test properly for case of dividing
2545 largest negative number by -1, which generates overflow).
2546
2547 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2548 Sergey Rybin <rybin@adacore.com>
2549
2550 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
2551 to use as the defining identifier for a formal package.
2552 (Remove_Parent): If the instance takes place within (an instance of)
2553 a sibling, preserve private declarations of common parent.
2554
2555 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2556
2557 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
2558 to determine whether one of the operands is a fixed-point type for
2559 which a user-defined multiplication or division operation might be
2560 defined.
2561
2562 * sem_res.adb (Valid_Conversion): The legality rules for conversions
2563 of access types are symmetric in Ada 2005: either designated type can
2564 be unconstrained.
2565
2566 2005-01-03 Vincent Celier <celier@adacore.com>
2567
2568 * s-fileio.adb (Temp_File_Record): Change length of string component
2569 Name from L_tmpnam + 1 to max_path_len + 1.
2570
2571 2005-01-03 Arnaud Charlet <charlet@adacore.com>
2572
2573 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
2574 Self_Id.Deferral_Level = 0.
2575 (Do_Pending_Action): Move this function to the spec.
2576
2577 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
2578 Do_Pending_Action explicitely when needed, in case we're using
2579 No_Abort restrictions.
2580
2581 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
2582 deferral level since it will not get changed by the generated code.
2583 Keeping a default value of 1 would prevent some operations (e.g.
2584 select or delay) to proceed successfully.
2585
2586 2005-01-03 Ben Brosgol <brosgol@adacore.com>
2587 Robert Dewar <dewar@adacore.com>
2588 Cyrille Comar <comar@adacore.com>
2589
2590 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
2591 porting guide chapter (vms version).
2592 Revised doc title (removed "for native platforms") and subtitle.
2593 Add discussion on warning flag for obsolescent features. First we
2594 note that it applies to obsolete GNAT features, which was previously
2595 omitted. Second we contrast the behavior with that of the new
2596 Ada 2005 AI-368 restriction No_Obsolescent_Features.
2597 Preliminary rewriting of GNAT & libraries chapter in order to take
2598 into account default project locations & new project manager
2599 capabilities.
2600
2601 2005-01-03 Robert Dewar <dewar@adacore.com>
2602
2603 * cstand.adb (Create_Operators): Clean up format and documentation of
2604 unary and binary operator result tables. No change in code, just
2605 reformatting and addition of comments.
2606
2607 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
2608 sem_ch2.adb: Minor reformatting
2609
2610 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
2611 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
2612 comments for Tree_Read and Tree_Write.
2613
2614 2005-01-03 Pascal Obry <obry@adacore.com>
2615
2616 * exp_attr.ads: Minor reformatting.
2617
2618 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
2619
2620 * comperr.adb (Compiler_Abort): Add specialized message for GAP
2621 versions.
2622
2623 2005-01-03 Ed Schonberg <schonberg@adacore.com>
2624
2625 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
2626 whether the ancestor type is private, as may be the case with nested
2627 instantiations.
2628
2629 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
2630
2631 PR ada/19128
2632 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
2633
2634 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2635
2636 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
2637 * utils2.c (build_unary_op): Likewise.
2638
2639 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2640
2641 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
2642
2643 2004-12-19 Richard Henderson <rth@redhat.com>
2644
2645 * trans.c (gigi): Update gimplify_body call.
2646
2647 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
2648
2649 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
2650
2651 2004-12-07 Ed Falis <falis@adacore.com>
2652
2653 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
2654 current task being suspended.
2655
2656 * init.c (__gnat_clear_exception): added to reset VxWorks exception
2657 count.
2658 (__gnat_map_signal): removed test for current task being suspended.
2659
2660 2004-12-07 Gary Dismukes <dismukes@adacore.com>
2661
2662 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
2663 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
2664 targets (such as AAMP).
2665
2666 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2667
2668 * atree.adb (Visit_Itype): Create a new name for the generated itype,
2669 because the back-end may otherwise treat it as a redefinition of the
2670 old symbol.
2671
2672 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
2673
2674 * back_end.adb (Scan_Back_End_Switches): Accept --param.
2675
2676 * lang-specs.h: Accept --param.
2677
2678 2004-12-07 Vincent Celier <celier@adacore.com>
2679
2680 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
2681 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
2682 Current_Body_Suffix => Ada_Body_Suffix).
2683 Take into account Externally_Built attribute.
2684
2685 * clean.adb (In_Extension_Chain): Always return False when one of the
2686 parameter is No_Project.
2687 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
2688 Ada_Language_Index).
2689 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
2690 Process_Languages for procedure Parse).
2691
2692 * gnatcmd.adb (Carg_Switches): New table.
2693 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
2694 Adapt to name changes in package Prj (Current_Spec_Suffix =>
2695 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
2696
2697 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
2698 Header_Num and function Hash are now declared in package Prj,
2699 not Prj.Com.
2700
2701 * prj.adb (Suffix_Of): New function.
2702 (Set (Suffix)): New procedure.
2703 (Hash): One function moved from Prj.Com
2704 (Is_Present, Language_Processing_Data_Of): New functions
2705 (Set): Two new procedures
2706 (Add_Language_Name, Display_Language_Name): New procedures
2707
2708 * prj.ads: (Suffix_Of): New function
2709 (Set (Suffix)): New procedure
2710 Add several types and tables for multi-language support.
2711 (Header_Num): Type moved from Prj.Com
2712 (Hash): Two functions moved from Prj.Com
2713 (Is_Present, Language_Processing_Data_Of): New functions
2714 (Set): Two new procedures
2715 (Add_Language_Name, Display_Language_Name): New procedures
2716 (Naming): Component name changes:
2717 Current_Spec_Suffix => Ada_Spec_Suffix,
2718 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
2719 Impl_Suffixes, Supp_Suffixes.
2720 (Project_Data): New components: Externally_Built, Supp_Languages,
2721 First_Language_Processing, Supp_Language_Processing, Default_Linker,
2722 Default_Linker_Path.
2723
2724 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
2725 new package Language_Processing with its attributes (Compiler_Driver,
2726 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
2727 Binder_Driver, Default_Linker).
2728
2729 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
2730 (Header_Num): Type moved to package Prj
2731
2732 * prj-env.adb: Adapt to name changes in package Prj
2733 (Current_Spec_Suffix => Ada_Spec_Suffix,
2734 Current_Body_Suffix => Ada_Body_Suffix).
2735
2736 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
2737 default to the project path, except the "-" is one of the directories
2738 in env var ADA_PROJECT_PATH.
2739 (Current_Project_Path): Global variable, replacing Project_Path
2740 that was in the body of Prj.Part.
2741 (Project_Path): New function
2742 (Set_Project_Path): New procedure
2743 Initialize Current_Project_Path during elaboration of the package
2744 Remove dependency on Prj.Com, no longer needed
2745
2746 * prj-ext.ads (Project_Path): New function
2747 (Set_Project_Path): New procedure
2748
2749 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
2750 suffix is defined for language <lang>.
2751 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
2752 accessing directly the components of Naming.
2753 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
2754 Reorganise of this package.
2755 Break procedure Check in several procedures.
2756
2757 * prj-nmsc.ads: Replace all procedures (Ada_Check,
2758 Other_Languages_Check and Language_Independent_Check) with a single
2759 procedure Check.
2760
2761 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
2762 Process_Languages, no longer needed.
2763
2764 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
2765 Current_Project_Path.
2766 Remove elaboration code, moved to the body of Prj.Ext
2767 Use new function Prj.Ext.Project_Path instead of old variable
2768 Project_Path.
2769 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
2770 When comparing with project paths on the stack, first put the resolved
2771 path in canonical case.
2772 (Parse_Single_Project): Set the path name of the project file in the
2773 tree to the normalized path.
2774
2775 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
2776 parameter Process_Languages, no longer needed.
2777 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
2778 Other_Languages_Check.
2779
2780 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
2781 to store the resolved canonical path of the project file.
2782 Remove dependency to Prj.Com, no longer needed
2783
2784 * prj-util.adb: Adapt to name changes in package Prj
2785 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
2786 Ada_Body_Suffix).
2787
2788 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
2789 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
2790 Externally_Built, Include_Option, Language_Processing.
2791
2792 * makegpr.adb: Numerous changes due to changes in packages
2793 Prj and Prj.Nmsc.
2794
2795 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
2796 default to the project path, except whe "-" is one of the directories
2797 in env var ADA_PROJECT_PATH.
2798 (Gnatls): In verbose mode, add the new section "Project Search Path:"
2799
2800 2004-12-07 Robert Dewar <dewar@adacore.com>
2801
2802 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
2803
2804 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
2805 set -gnatR3m mode.
2806
2807 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
2808 flag. No longer needed now that we handle this in gnat1drv.adb.
2809
2810 * repinfo.ads: Minor reformatting
2811
2812 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2813 Olivier Hainque <hainque@adacore.com>
2814 Eric Botcazou <ebotcazou@adacore.com>
2815
2816 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
2817 TYPE_SIZE_UNIT of result type if SIZE is not specified.
2818 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
2819 of a bitfield, which we know is useless and causes trouble because of
2820 alignment implications.
2821
2822 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
2823 BSS sections.
2824 (process_attributes): Clear DECL_COMMON again when a section attribute
2825 is present.
2826 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
2827 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
2828 (create_field_decl): Special case ADDRESSABLE negative to mean
2829 "no bitfield creation", to be used by make_aligning_type. Don't
2830 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
2831 fields claimed addressable still have to be bitfields. Use
2832 value_factor_p instead of a raw binop construction to check for the
2833 position's alignment.
2834
2835 2004-12-07 Geert Bosch <bosch@adacore.com>
2836
2837 * eval_fat.adb: Revert previous change.
2838
2839 2004-12-07 Thomas Quinot <quinot@adacore.com>
2840 Ed Schonberg <schonberg@adacore.com>
2841
2842 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
2843 with an implicit dereference as its prefix, use
2844 Insert_Explicit_Dereference instead of merely rewriting the prefix into
2845 an explicit dereference. This ensures that a reference to the original
2846 prefix is generated, if appropriate.
2847
2848 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
2849 dereference is rewritten to an explicit one, generate a reference to
2850 the entity denoted by its prefix using the original prefix node, so
2851 the dereference can be properly recorded as a read of the denoted
2852 access value, if appropriate.
2853
2854 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
2855 emitting 'assigned but never read' warning on a variable on the basis
2856 that it has an access type.
2857 (Check_References): Emit unreferenced warning when the scope is a
2858 subprogram body.
2859
2860 2004-12-07 Robert Dewar <dewar@adacore.com>
2861 Ed Schonberg <schonberg@adacore.com>
2862
2863 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
2864 intrinsic
2865
2866 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
2867 leaving call unchanged.
2868 This deals with the case where the pragma Import specified
2869 an external name, to be handled by the back end.
2870
2871 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
2872 subprogram which is Imported with convention Intrinsic if an
2873 External_Name argument is specified.
2874 (Process_Import_Or_Interface): Properly diagnose link name argument.
2875 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
2876 with Sem_Ch6.Cannot_Inline.
2877 (Process_Inline): Provide separate warning for inapplicable inline
2878 pragma.
2879 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
2880 treatment is uniform on different targets.
2881
2882 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2883
2884 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
2885 construct is rewritten, preserve end label to permit source navigation.
2886
2887 2004-12-07 Thomas Quinot <quinot@adacore.com>
2888
2889 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
2890 Specific_Build_Stub_Target): New subprograms.
2891 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
2892 the PCS implementation used, using the above PCS-customized subprograms.
2893 Minor reformatting.
2894 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
2895 for generation of DSA code targeted to the PolyORB PCS.
2896 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
2897 implementation of the partition communication subsystem in ancillary
2898 subprograms.
2899 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
2900 PolyORB_Support.Build_Stub_Type): New subrograms containing the
2901 PCS-specific part of Add_Stub_Type.
2902 (Insert_Partition_Check): Use runtime library function to perform
2903 E.4(19) check.
2904
2905 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
2906 (RE_Same_Partition): New entity, from s-parint.
2907
2908 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
2909
2910 2004-12-07 Gary Dismukes <dismukes@adacore.com>
2911
2912 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
2913 Output the copyright message on a separate line from the version
2914 message.
2915
2916 2004-12-07 Joel Brobecker <brobecker@adacore.com>
2917
2918 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
2919 compile-time warning.
2920
2921 2004-12-07 Robert Dewar <dewar@adacore.com>
2922
2923 * g-regpat.adb: (Match): Change a misuse of or to or else
2924
2925 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2926
2927 * lib-xref.adb:
2928 (Generate_Reference): Handle properly a reference to an entry formal,
2929 when an accept statement has a pragma Unreferenced for it.
2930
2931 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
2932 and the Has_Pragma_Unreferenced flag for each formal before analyzing
2933 the body, to ensure that warnings are properly emitted for each accept
2934 statement of a given task entry.
2935
2936 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
2937
2938 * Makefile.in: Add support for foreign threads on VMS.
2939
2940 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2941
2942 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
2943 Remove.
2944 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
2945
2946 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
2947
2948 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
2949 exception.
2950 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
2951
2952 2004-12-07 Robert Dewar <dewar@adacore.com>
2953
2954 * nlists.adb (Prepend_Debug): Remove parameters and nest within
2955 Prepend.
2956 (Remove_Next_Debug): Same fix
2957
2958 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
2959 maintain back pointers now, though we did not used to, and comments
2960 were out of date).
2961 (Prepend): Remove pragma Inline.
2962 (Remove_Next): Same cleanup
2963
2964 2004-12-07 Thomas Quinot <quinot@adacore.com>
2965
2966 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
2967 used to record an implicit dereference as a read operation on its
2968 prefix when operating under -gnatc. Necessary to avoid spurious
2969 'variable assigned but never read' warnings in that mode.
2970 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
2971 is a non-overloaded implicit dereference, call the above subprogram to
2972 ensure proper recording of references.
2973
2974 2004-12-07 Gary Dismukes <dismukes@adacore.com>
2975
2976 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
2977 to be resolved later as part of Analyze_Iteration_Scheme's call to
2978 Make_Index.
2979
2980 2004-12-07 Ed Schonberg <schonberg@adacore.com>
2981
2982 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
2983 prefix is not a scalar type, place error message on prefix, not on
2984 type entity.
2985
2986 2004-12-07 Bernard Banner <banner@adacore.com>
2987
2988 * vxaddr2line.adb: Add support for x86 vxworks
2989
2990 2004-12-07 Thomas Quinot <quinot@adacore.com>
2991
2992 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
2993 documentation of the behaviour of these functions when passed an IP
2994 address that has no record in the system hosts database and no reverse
2995 record in the DNS.
2996
2997 * cstand.adb, a-tags.ads: Fix typos in comment.
2998
2999 2004-12-07 Robert Dewar <dewar@adacore.com>
3000
3001 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
3002 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
3003 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
3004 s-poosiz.ads: Minor reformatting
3005
3006 * make.adb: Minor reformatting
3007 Add some ??? comments asking for more comments
3008
3009 * s-poosiz.adb: Minor reformatting
3010 Add comments on alignment requirement
3011
3012 * sinfo.ads: Remove obsolete comment and fix typo.
3013
3014 2004-12-07 Vincent Celier <celier@adacore.com>
3015 Sergey Rybin <rybin@adacore.com>
3016
3017 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
3018 Files" with the new tool and package names.
3019 Reformatting to suppress most of the warnings for line too long
3020 Document the new section "Project Search Path:" in the output of
3021 gnatls -v.
3022 Add gnatmetric section
3023
3024 2004-12-07 Vincent Celier <celier@adacore.com>
3025
3026 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
3027 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
3028 and -eit to -ept. Added qualifier
3029 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
3030
3031 2004-11-27 Andreas Schwab <schwab@suse.de>
3032
3033 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
3034
3035 2004-11-25 Arnaud Charlet <charlet@adacore.com>
3036
3037 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
3038 internal implementation unit GNAT.Sockets.Thin,
3039 as their usage for sockets is non-portable (using the read and write
3040 functions from the system runtime library is fine on UNIX but won't
3041 work under Windows).
3042
3043 * mingw32.h: Update copyright notice.
3044
3045 2004-11-25 Arnaud Charlet <charlet@adacore.com>
3046
3047 * ada-tree.h: Minor reformatting of previous change to avoid lines
3048 longer than 79 characters.
3049
3050 2004-11-25 Olivier Hainque <hainque@adacore.com>
3051
3052 * tb-gcc.c: GCC infrastructure based implementation of
3053 __gnat_backtrace.
3054
3055 2004-11-24 Steven Bosscher <stevenb@suse.de>
3056
3057 * misc.c (gnat_post_options): Don't clear
3058 flag_inline_functions.
3059
3060 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3061
3062 PR ada/17986
3063 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
3064 tree.
3065
3066 2004-11-21 Andreas Jaeger <aj@suse.de>
3067
3068 * stylesw.adb: Change Style_Check_Subprogram_Order to
3069 Style_Check_Order_Subprograms.
3070
3071 2004-11-18 Arnaud Charlet <charlet@adacore.com>
3072
3073 * adaint.h, adaint.c
3074 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
3075 to avoid warnings.
3076 Add also a cast to kill another warning.
3077 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
3078 parameter with the priority class of the parent process instead of
3079 always using the NORMAL_PRIORITY_CLASS.
3080 (__gnat_dup): New function.
3081 (__gnat_dup2): New function.
3082 (__gnat_is_symbolic_link): Enable the effective body of this
3083 function when __APPLE__ is defined.
3084
3085 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
3086 Update comments.
3087
3088 2004-11-18 Olivier Hainque <hainque@adacore.com>
3089
3090 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
3091 address of which may be used to represent "others" and "all others"
3092 choices in exception tables, instead of the current harcoded
3093 (void *)0 and (void *)1.
3094 (Setup_Exception): Do nothing in the GNAT SJLJ case.
3095
3096 * gigi.h (others_decl, all_others_decl): New decls representing the
3097 new Others_Value and All_Others_Value objects.
3098 (struct attrib): Rename "arg" component as "args", since GCC expects a
3099 list of arguments in there.
3100
3101 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
3102 corresponding objects exported by a-exexpr, instead of hardcoded dummy
3103 addresses.
3104
3105 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
3106 others_decl and all_others_decl instead of hardcoded dummy addresses
3107 to represent "others" and "all others" choices, which is cleaner and
3108 more flexible with respect to the possible eh pointer encoding policies.
3109
3110 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
3111 (process_attributes): Account for the naming change of the "args"
3112 attribute list entry component.
3113
3114 * decl.c (build_attr_list): Rename into prepend_attributes to allow
3115 cumulating attributes for different entities into a single list.
3116 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
3117 attributes for the current entity and propagate first subtype
3118 attributes to other subtypes.
3119 <E_Procedure>: Attribute arguments are attr->args and not
3120 attr->arg any more.
3121 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
3122 argument provided, as this is what GCC expects. Use NULL_TREE instead
3123 of 0 for trees.
3124
3125 2004-11-18 Robert Dewar <dewar@adacore.com>
3126
3127 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
3128 Minor reformatting througout (including new function specs)
3129 Add ??? comments asking for clarification.
3130
3131 2004-11-18 Thomas Quinot <quinot@adacore.com>
3132
3133 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
3134 incomplete duplicate implementation of this subprogram from butil.
3135
3136 2004-11-18 Thomas Quinot <quinot@adacore.com>
3137
3138 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
3139 procedures factors the common processing for building an RPC receiver
3140 for an RCI package or an RACW type.
3141 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
3142 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
3143 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
3144 in use.
3145 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
3146 Add_RACW_Features.
3147 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
3148 Add_RAST_Features.
3149 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
3150 distribution subprogram identifiers that are either subprogram numbers
3151 or strings.
3152 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
3153 string distribution identifiers assigned to a given subprogram.
3154 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
3155 (Add_RAS_Dereference_TSS): Add comments.
3156 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
3157 is not referenced yet because it will be used by the PolyORB DSA
3158 implementation.
3159 (Insert_Partition_Check): Remove fossile code.
3160 (First_RCI_Subprogram_Id): Document this constant.
3161 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
3162 RAS_Access TSS.
3163 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
3164 replaced with calls to Get_Library_Unit_Name_String. Previously there
3165 were several instances of the same code in different locations in the
3166 compiler; this checkin completes the replacement of all of these
3167 instances with calls to a common subprogram.
3168 Minor reformatting.
3169
3170 * sem_dist.adb: Remove comment noting that RPC receiver generation
3171 should be disabled for RACWs that implement RASs.
3172 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
3173
3174 * sem_util.ads, sem_util.adb (Has_Stream): New function
3175 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
3176 qualified name of a library unit into the name buffer.
3177 (Note_Possible_Modification): Generate a reference only
3178 if the context comes from source.
3179
3180 * snames.ads (PCS_Names): New subtype corresponding to names of
3181 supported implementations of the Partition Communication Subsystem
3182 (PCS) (i.e. the runtime library support modules for the distributed
3183 systems annex).
3184
3185 2004-11-18 Robert Dewar <dewar@adacore.com>
3186 Ed Schonberg <schonberg@adacore.com>
3187
3188 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
3189 (Has_Rep_Pragma): New function
3190 (Has_Attribute_Definition_Clause): New function
3191 (Record_Rep_Pragma): Moved here from sem_ch13.adb
3192 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
3193
3194 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
3195
3196 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
3197 (Expand_Pragma_Psect_Object): New procedure
3198 These procedures contain the revised and cleaned up processing for
3199 these two pragmas. This processing was formerly in Sem_Prag, but
3200 is more appropriately moved here. The cleanup involves making sure
3201 that the pragmas are properly attached to the tree, and that no
3202 nodes are improperly shared.
3203
3204 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
3205 pragmas to Exp_Prag, which is more appropriate.
3206 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
3207 check for duplicates Remove use of Is_Psected flag, no longer needed.
3208 Use new Make_String_Literal function with string.
3209
3210 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
3211 that are functions return universal values, that have to be converted
3212 to the context type.
3213 Use new Make_String_Literal function with string.
3214 (Get_Stream_Convert_Pragma): New function, replaces the use of
3215 Get_Rep_Pragma, which had to be kludged to work in this case.
3216
3217 * freeze.adb: Use new Has_Rep_Pragma function
3218
3219 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
3220 function with string.
3221 Use new Has_Rep_Pragma function.
3222
3223 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
3224 string argument.
3225
3226 2004-11-18 Robert Dewar <dewar@adacore.com>
3227
3228 * errout.ads, errout.adb: (First_Sloc): New function
3229
3230 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
3231 check (-gnatyx) instead of being included as a redundant construct
3232 warning.
3233
3234 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
3235 Style_Check_Order_Subprograms.
3236
3237 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
3238 stylesw.adb: Add Style_Check_Xtra_Parens
3239
3240 * usage.adb: Add line for -gnatyx (check extra parens)
3241
3242 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
3243
3244 2004-11-18 Ed Schonberg <schonberg@adacore.com>
3245 Robert Dewar <dewar@adacore.com>
3246
3247 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
3248 discriminant of a constrained subtype, analyze the copy of the
3249 corresponding constraint, because in some cases it may be only
3250 partially analyzed.
3251 Removes long-lived ??? comments.
3252
3253 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
3254 handled controlled or secondary-stack expressions within the
3255 iteration_scheme of a loop.
3256
3257 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
3258 bounds that may contain functions calls, to prevent memory leaks when
3259 the bound contains a call to a function that uses the secondary stack.
3260 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
3261 generate temporaries for loop bounds that might contain function calls
3262 that require secondary stack and/or finalization actions.
3263
3264 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
3265 selected component and the selector is overloadable (not just a
3266 function) treat as function call, Analyze_Call will disambiguate if
3267 necessary.
3268 (Analyze_Selected_Component): Do not generate an actual subtype for the
3269 selected component if expansion is disabled. The actual subtype is only
3270 needed for constraint checks.
3271 (Analyze_Allocator): If restriction No_Streams is set, then do
3272 not permit objects to be declared of a stream type, or of a
3273 composite type containing a stream.
3274
3275 * restrict.ads: Remove the a-stream entry from Unit_Array, since
3276 No_Streams no longer prohibits with'ing this package.
3277
3278 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
3279 discriminants, but the parent base has unknown discriminants, there is
3280 no discriminant constraint to inherit. Such a discrepancy can arise
3281 when the actual for a formal type with unknown discriminants is a
3282 similar private type whose full view has discriminants.
3283 (Analyze_Object_Declaration): If restriction No_Streams is set, then
3284 do not permit objects to be declared of a stream type, or of a
3285 composite type containing a stream.
3286
3287 2004-11-18 Ed Schonberg <schonberg@adacore.com>
3288
3289 * exp_dbug.ads: Update documentation to reflect simpler encoding for
3290 protected operations.
3291
3292 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
3293 generated name, it complicates decoding in gdb and hinders debugging
3294 of protected operations.
3295 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
3296 flag for the protected entry barrier function.
3297 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
3298 flag for the protected entry function.
3299
3300 2004-11-18 Nicolas Setton <setton@adacore.com>
3301
3302 * expect.c: Define __unix__ when __APPLE__ is defined.
3303
3304 * Makefile.in: Inform the value of the variable GMEM_LIB in the
3305 Darwin-specific section.
3306
3307 * lang-specs.h: Change the placement of the %1 marker.
3308 Works around the fact that gcc adds -fPIC by default under Darwin.
3309
3310 2004-11-18 Ed Schonberg <schonberg@adacore.com>
3311
3312 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
3313 type of the object with the packed array type, set the Analyzed flag
3314 on the object if it is an entity or simple indexed component, to avoid
3315 spurious type errors.
3316
3317 2004-11-18 Gary Dismukes <dismukes@adacore.com>
3318
3319 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
3320 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
3321 separate line from the version message.
3322
3323 2004-11-18 Ed Falis <falis@adacore.com>
3324
3325 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
3326 vthreads.
3327 (init_float): Eliminate initialization of floating point status for
3328 AE653. The instructions have no effect for vThreads.
3329
3330 2004-11-18 Vincent Celier <celier@adacore.com>
3331
3332 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
3333 gnatbind is invoked with -shared.
3334
3335 2004-11-18 Jose Ruiz <ruiz@adacore.com>
3336
3337 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
3338 for Detect_Blocking which is redundant with the check done within the
3339 procedure Protected_Single_Entry_Call.
3340 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
3341 Detect_Blocking which is redundant with the check done within the
3342 procedure Protected_Single_Entry_Call.
3343
3344 2004-11-18 Vincent Celier <celier@adacore.com>
3345
3346 * makegpr.adb (Compile): Put the compiling switches (in package
3347 Compiler and on the command line) immediately after "-c", instead of
3348 at the end of the command line invocation of the compiler, when
3349 compiling a non-Ada file.
3350 (Build_Global_Archive): When there is no need to rebuild the archive,
3351 set Global_Archive_Exists, so that the archive is passed to the linker
3352 if one is needed.
3353
3354 2004-11-18 Robert Dewar <dewar@adacore.com>
3355 Sergey Rybin <rybin@adacore.com>
3356
3357 * gnat_ugn.texi:
3358 Remove extra paren check from list of checks for redundant constructs
3359 Add documentation of new -gnatyx style check (check extra parens)
3360 Remove paragraph about gnatelim debug options.
3361
3362 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
3363 objects rather than forbidding dependencies on the package Ada.Streams.
3364
3365 * sinfo.ads: Add ??? note that we should document pragmas passed to
3366 back end.
3367
3368 * g-expect.ads: Fix a few typos in the comments.
3369
3370 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3371
3372 * misc.c (gnat_handle_option): Use %< and %> for quoting in
3373 warning message.
3374
3375 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3376
3377 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
3378
3379 2004-11-07 Andreas Schwab <schwab@suse.de>
3380
3381 * Makefile.in (install-gnatlib): Remove spurious hyphen.
3382
3383 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
3384
3385 PR ada/18228
3386 * Makefile.in (darwin): Set soext to .dylib.
3387
3388 2004-10-26 Vincent Celier <celier@gnat.com>
3389 Thomas Quinot <quinot@act-europe.fr>
3390
3391 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
3392 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
3393 there is no use of GNAT.Sockets.Constants.
3394 Remove remaining pragma Import for C_Write
3395 Remove C_Read and C_Write from internal implementation unit
3396 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
3397 the read and write functions from the system runtime library is fine
3398 on UNIX but won't work under Windows).
3399
3400 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
3401 (Check_Selector): Use C_Recv instead of C_Read.
3402 Selectors are the GNAT.Sockets abstraction to perform a select()
3403 call on a set of descriptors. To allow abortion of an ongoing
3404 select operation, some data is written to a dedicated socket that
3405 is always monitored.
3406 Under Windows, the write and read library functions cannot operate
3407 on sockets, so we need to use send and recv instead, which is portable
3408 across all supported platforms.
3409
3410 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
3411 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
3412 (using the read and write functions from the system runtime library is
3413 fine on UNIX but won't work under Windows).
3414
3415 2004-10-26 Nicolas Setton <setton@act-europe.fr>
3416
3417 * mlib-tgt-darwin.adb: New file.
3418
3419 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3420 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3421 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3422 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
3423 subprogram body.
3424
3425 * Makefile.in: Add support for building shared libraries under Darwin.
3426 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
3427 the low level EH init subprogram to be called from __gnat_initialize.
3428
3429 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
3430 indicates which options to pass to the archive indexer.
3431
3432 * mlib-utl.adb: Add support for calling ranlib with additional
3433 options. This is needed for instance under Mac OS X.
3434 (Ranlib_Options): New global variable, used to store the potential
3435 options to pass to ranlib.
3436 (Ar): Use Ranlib_Options when spawning ranlib.
3437 (Initialize): Set the value of ranlib option.
3438
3439 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
3440
3441 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
3442 instead of 8K, to reflect the real potential needs for stack-checking
3443 in the ZCX case.
3444
3445 2004-10-26 Pascal Obry <obry@gnat.com>
3446
3447 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
3448
3449 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
3450 Windows only the initial thread stack size can be set so it is good to
3451 start we a low stack size.
3452 The OS will adjust the size as needed.
3453
3454 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
3455 Nicolas Setton <setton@act-europe.fr>
3456
3457 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
3458 "__unix__" instead of "unix".
3459 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
3460 sections were just mistakenly ignored. The former is
3461 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
3462 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
3463 of hpux. This prevents an unwanted definition of the symbol
3464 convert_addresses in adaint.o.
3465
3466 2004-10-26 Gary Dismukes <dismukes@gnat.com>
3467
3468 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
3469 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
3470
3471 2004-10-26 Cyrille Comar <comar@act-europe.fr>
3472
3473 * a-filico.ads, a-filico.adb: fix incorrect header.
3474
3475 2004-10-26 Javier Miranda <miranda@gnat.com>
3476
3477 * a-ststio.ads: Fix typo in identifier
3478
3479 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3480
3481 * sem_ch4.adb: Minor reformatting.
3482
3483 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3484
3485 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
3486 enabled, check the result of unary and binary operations when the
3487 expression is the right-hand side of an assignment.
3488
3489 2004-10-26 Vincent Celier <celier@gnat.com>
3490
3491 * clean.adb (Delete): Do not output warnings when in quiet output and
3492 not in verbose mode.
3493 (Force_Deletions): New Boolean flag, defaulted to False
3494 (Delete): Only delete a file if it is writable, and when
3495 Force_Deletions is True.
3496 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
3497 (Usage): Line for new switch -f
3498 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
3499 own.
3500
3501 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
3502
3503 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
3504 JM type only if its size matches that of the wrapper. When a size is
3505 prescribed and the field is not aliased, remove the wrapper of a JM
3506 type only if the size is not greater than that of the packed array.
3507 (gnat_to_gnu_entity): Change the extension of packed array wrappers
3508 from LJM to JM.
3509
3510 2004-10-26 Geert Bosch <bosch@gnat.com>
3511
3512 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
3513 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
3514 (Pred): Implement in terms of Succ.
3515
3516 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3517
3518 * exp_aggr.adb (Safe_Component): An aggregate component that is an
3519 unchecked conversion is safe for in-place use if the expression of the
3520 conversion is safe.
3521 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
3522 be expandable in place even if the aggregate does not come from source.
3523 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
3524 designated object of an allocator in place, rather than building it
3525 first on the stack. The previous scheme forces a full copy of the array,
3526 and may be altogether unsusable if the size of the array is too large
3527 for stack allocation.
3528
3529 2004-10-26 Robert Dewar <dewar@gnat.com>
3530
3531 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
3532 compares if the component is atomic.
3533
3534 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
3535 array assignment if the component type is atomic.
3536
3537 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3538 Eric Botcazou <ebotcazou@act-europe.fr>
3539
3540 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
3541 is aliased and is a by_reference type, do not pass by copy.
3542 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
3543 detect whether the call is in the right side of an assignment or
3544 the expression of an object declaration. Recurse on component
3545 association within aggregates.
3546 Call it in the condition that determines whether the temporary is
3547 necessary for correct stack-checking.
3548
3549 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3550
3551 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
3552 RACW_Type, used in the PolyORB version.
3553 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
3554 version and the GARLIC version.
3555
3556 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
3557 Rename RCI_Info to RCI_Locator for better consistency between the
3558 GARLIC and PolyORB versions of the distributed systems annex.
3559 (DSA_Implementation_Name): This enumeration lists the possible
3560 implementations of the Partition Communication Subsystem for the
3561 Distributed Systems Annex (DSA). The three available implementations
3562 are the dummy stub implementation (No_DSA), and two versions based on
3563 two different distribution runtime libraries: GARLIC and PolyORB. Both
3564 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
3565 technology.
3566 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
3567 that organization.
3568
3569 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
3570 between the GARLIC and PolyORB versions of the distributed systems
3571 annex.
3572 Remove RE_Unbounded_Reclaim_Pool since it is unused.
3573
3574 2004-10-26 Gary Dismukes <dismukes@gnat.com>
3575
3576 * gnat1drv.adb: Suppress calling the back end when
3577 Frontend_Layout_On_Target is true.
3578
3579 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3580
3581 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
3582 Set_Read_Only): New subprograms.
3583 These new routines allow the user to set or unset the Owner execute
3584 and Owner write permission flags on a file.
3585
3586 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
3587 GNAT.OS_Lib.Set_Executable instead of rolling our own.
3588
3589 2004-10-26 Matthew Gingell <gingell@gnat.com>
3590
3591 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
3592
3593 2004-10-26 Pascal Obry <obry@gnat.com>
3594
3595 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
3596 memory before the faulting page we properly test the process read
3597 access for this address using appropriate Win32 routine.
3598 (HPUX sections): guard with "__hpux__" instead of "hpux".
3599
3600 2004-10-26 Robert Dewar <dewar@gnat.com>
3601
3602 * lib-xref.adb (Generate_Reference): Don't complain about reference to
3603 entry parameter if pragma Unreferenced set, since we do not properly
3604 handle the case of multiple parameters.
3605
3606 2004-10-26 Vincent Celier <celier@gnat.com>
3607
3608 * prj-env.adb: (Contains_ALI_Files): New Boolean function
3609 (Ada_Objects_Path.Add): For a library project, add to the object path
3610 the library directory only if there is no object directory or if the
3611 library directory contains ALI files.
3612 (Set_Ada_Paths.Add.Recursive_Add): Ditto
3613
3614 2004-10-26 Vincent Celier <celier@gnat.com>
3615
3616 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
3617 extension of library projects.
3618
3619 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
3620 path defaults to ".:<prefix>/lib/gnat".
3621 (Parse): For an extending all project, allow direct import of a project
3622 that is virtually extended.
3623
3624 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
3625 the specified name is directly imported, return its ID. Otherwise, if
3626 an extension of this project is imported, return the ID of the
3627 extension.
3628
3629 2004-10-26 Robert Dewar <dewar@gnat.com>
3630
3631 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
3632 (Sub3): New procedure, used by Scaled_Divide
3633 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
3634 correct more than one instance of failure to propagate carries
3635 correctly.
3636 (Double_Divide): Handle overflow case of largest negative number
3637 divided by minus one.
3638
3639 * s-arit64.ads (Double_Divide): Document that overflow can occur in
3640 the case of a quotient value out of range.
3641 Fix comments.
3642
3643 2004-10-26 Robert Dewar <dewar@gnat.com>
3644
3645 * s-bitops.adb (Bit_Eq): Remove redundant check.
3646
3647 * s-bitops.ads: Minor comment updates
3648 Change some occurrences of Address to System.Address
3649
3650 * s-carsi8.ads: Fix minor cut-and-paste error in comments
3651
3652 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3653
3654 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
3655 accessibility check to prefix that is a protected operation.
3656
3657 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3658
3659 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
3660 empty, post message on stub.
3661
3662 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3663 Javier Miranda <miranda@gnat.com>
3664
3665 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
3666 current instance appears within a unit that is directly in the context
3667 of the main unit.
3668 Used to determine whether the body of the instance should be analyzed
3669 immediately after its spec, to make its subprogram bodies available
3670 for front-end inlining.
3671 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
3672 constraint is not allowed on the component type (AARM 12.5.3(3))
3673
3674 2004-10-26 Cyrille Comar <comar@act-europe.fr>
3675
3676 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3677 'Storage_Pool): enhance, document & limit detection of non-sharable
3678 internal pools.
3679
3680 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
3681
3682 * s-pooglo.ads: Add more documentation now that this pool is properly
3683 documented.
3684
3685 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3686
3687 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
3688 or protected type with discriminants, do not constrain the
3689 corresponding record type if the subtype declaration has no
3690 discriminant constraints. This can be the case in source code, or in
3691 the subtype declaration created to rename an actual type within an
3692 instantiation.
3693
3694 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3695
3696 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
3697 different kind of stub (possibly wrong name for file), do not check
3698 for conformance.
3699 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
3700 includes call to some function that returns an unconstrained type, do
3701 not inline.
3702
3703 2004-10-26 Ed Schonberg <schonberg@gnat.com>
3704
3705 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
3706 appear in the code for the main unit. Dependencies among units in the
3707 context of the main unit are established when those other units are
3708 compiled. Otherwise spurious elaboration constraints can generate
3709 incorrect elaboration circularities.
3710
3711 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
3712 Ed Schonberg <schonberg@gnat.com>
3713
3714 * sem_util.adb (Is_Aliased_View): Defend against the case where this
3715 subprogram is called with a parameter that is not an object name. This
3716 situation arises for some cases of illegal code, which is diagnosed
3717 later, and in this case it is wrong to call Is_Aliased, as that might
3718 cause a compiler crash.
3719 (Explain_Limited_Type): Refine previous fix to include
3720 inherited components of derived types, to provide complete information.
3721
3722 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
3723 is the prival for a protected object.
3724 It is necessary to mark this entity as a variable, in addition to
3725 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
3726 modified to avoid checking the Aliased flag on entities that are not
3727 objects. (Checking that flag for non-objects is erroneous and could
3728 lead to a compiler crash).
3729
3730 2004-10-26 Robert Dewar <dewar@gnat.com>
3731
3732 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
3733 X_Frac = 0.5, then we know that the number X must be positive.
3734 (Succ): Remove the same redundant test, and also fix the primary test
3735 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
3736 Minor reformatting
3737 (Decompose): Add fuller comments to spec
3738
3739 2004-10-26 Pascal Obry <obry@gnat.com>
3740
3741 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
3742 validity (process must have read access). Set to 0 in all other cases.
3743 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
3744 violation on Win32.
3745 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
3746 segmentation violation.
3747
3748 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
3749
3750 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
3751 whose type is a constructed subtype of an aliased object with an
3752 unconstrained nominal subtype, convert the actual to the constructed
3753 subtype before taking its address.
3754
3755 2004-10-26 Vincent Celier <celier@gnat.com>
3756
3757 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
3758 (Is_Path_Name_Case_Sensitive): New function
3759
3760 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
3761 (Base_Name, Simple_Name, Current_Directory, Compose,
3762 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
3763 the result.
3764
3765 2004-10-26 Cyrille Comar <comar@act-europe.fr>
3766 Vasiliy Fofanov <fofanov@act-europe.fr>
3767 Vincent Celier <celier@gnat.com>
3768
3769 * gnat_ugn.texi: Generalize "finding memory problems" section into a
3770 "memory management issues" section and document some of the useful
3771 memory pools provided as part of the GNAT library.
3772 Remove "virtual" from declaration of A::method2 in
3773 the simple example of Ada/C++ mixed system.
3774 Library Projects may be virtually extended: their virtual extensions
3775 are not Library Projects.
3776 Added section on extending project hierarchies.
3777
3778 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3779
3780 * adaint.c (__gnat_get_libraries_from_registry): Cast value
3781 to LPBYTE.
3782 (__gnat_portable_spawn): Remove const.
3783
3784 * mingw32.h (MAXPATHLEN): Check for previous definition.
3785
3786 2004-10-17 Matthias Klose <doko@debian.org>
3787
3788 * gnatvsn.ads: Set gnat library version to 4.0.
3789
3790 2004-10-05 Vincent Celier <celier@gnat.com>
3791
3792 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
3793
3794 2004-10-04 Laurent GUERBY <laurent@guerby.net>
3795
3796 PR ada/15156
3797 * Makefile.in: Define and use RANLIB_FLAGS.
3798
3799 2004-10-04 Pascal Obry <obry@gnat.com>
3800
3801 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
3802 other x86 platforms).
3803
3804 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
3805
3806 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
3807 in general and triggers stack alignment adjustment for thread entry
3808 points on targets where this is necessary.
3809
3810 2004-10-04 Bernard Banner <banner@gnat.com>
3811
3812 PR ada/13897
3813
3814 * Makefile.in: Add section for powerpc linux
3815 Add variant i-vxwork-x86.ads
3816
3817 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
3818
3819 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
3820
3821 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
3822 table registration calls when need be. Ensures no reference to the crt
3823 ctors symbol are issued in the SJLJ case, which avoids possible
3824 undefined symbol errors in the case of modules to be statically linked
3825 with the kernel.
3826
3827 2004-10-04 Javier Miranda <miranda@gnat.com>
3828
3829 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
3830 in-line the code corresponding to subprogram Analyze_Actuals. In
3831 addition, analyze the actuals only in case of subprogram call.
3832
3833 2004-10-04 Ed Falis <falis@gnat.com>
3834
3835 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
3836
3837 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
3838
3839 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
3840 in the documentation.
3841
3842 2004-10-04 Robert Dewar <dewar@gnat.com>
3843
3844 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
3845 IF and CASE.
3846 (Analyze_Block_Statement): Add circuitry to detect following dead code
3847 (Check_Unreachable_Code): Handle case of block exit
3848
3849 2004-10-04 Robert Dewar <dewar@gnat.com>
3850
3851 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
3852 (XMatchD): Avoid warning for Logic_Error call
3853
3854 2004-10-04 Robert Dewar <dewar@gnat.com>
3855
3856 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
3857 consider expressions buried within a procedure actual to be an actual.
3858 This caused some blowups with uses of packed slices within a procedure
3859 actual.
3860
3861 2004-10-04 Robert Dewar <dewar@gnat.com>
3862
3863 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
3864 longer need to be initialized to zero.
3865 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
3866 initialized to zero.
3867
3868 * checks.adb (Expr_Known_Valid): Packed arrays are now always
3869 considered valid, even if the representation is modular. That's correct
3870 now that we no longer initialize packed modular arrays to zero.
3871
3872 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
3873 suffixes. These are now documented as the only cases in which the
3874 debugger ignores outer records.
3875 Previously, the spec allowed arbitrary suffixes for this purpose.
3876 Change name of LJM to JM for packed array pad records
3877 Create separate section on packed array handling, and add a whole new
3878 set of comments to this section describing the situation with packed
3879 modular types and justification requirements depending on endianness.
3880
3881 2004-10-04 Robert Dewar <dewar@gnat.com>
3882
3883 * a-except.adb: Add a comment for last change
3884
3885 * einfo.ads: Minor spelling correction in comment
3886
3887 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
3888
3889 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
3890 messages.
3891
3892 * sem_util.ads: Minor comment update
3893
3894 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3895
3896 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
3897 Inline_Always when in Configurable_Run_Time mode.
3898
3899 * sem_prag.adb (Process_Convention): If entity is an inherited
3900 subprogram, apply convention to parent subprogram if in same scope.
3901 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
3902 when in Configurable_Run_Time mode.
3903
3904 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3905
3906 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
3907 class_wide type after component list has been inherited.
3908
3909 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3910
3911 * sem_ch12.adb (Check_Generic_Actuals): New predicate
3912 Denotes_Previous_Actual, to handle properly the case of a private
3913 actual that is also the component type of a subsequent array actual.
3914 The visibility status of the first actual is not affected when the
3915 second is installed.
3916 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
3917 make fully recursive the treatment of formals of packages declared
3918 with a box.
3919 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
3920 the above on exit from an instantiation.
3921 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
3922 current instantiation which is now complete.
3923 (Analyze_Package_Instantiation): No instantiated body is needed if the
3924 main unit is generic. Efficient, and avoid anomalies when a instance
3925 appears in a package accessed through rtsfind.
3926
3927 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3928
3929 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
3930 do not generate a declaration for a temporary if the call is part of a
3931 library-level instantiation.
3932
3933 2004-10-04 Ed Schonberg <schonberg@gnat.com>
3934
3935 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
3936 searching for a limited component to flag.
3937
3938 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
3939 expansion of Input, to account for the fact that the implicit call
3940 generated by the attribute reference must freeze the user-defined
3941 stream subprogram. This is only relevant to 'Input, because it can
3942 appear in an object declaration, prior to the body of the subprogram.
3943
3944 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
3945 expansion can proceed and further errors uncovered.
3946 (Minor clean up): Fix cases of using | instead of \ for continuation
3947 messages.
3948
3949 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3950
3951 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
3952
3953 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
3954 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
3955 Use gcc_assert and gcc_unreachable.
3956
3957 * decl.c (gnat_to_gnu_entity, case object): Check and process a
3958 specified alignment before validating size.
3959 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
3960 stripped-down declaration for the type of the inner field when making
3961 a JM type.
3962
3963 * utils.c (finish_record_type): Do not compute the size in units
3964 incrementally. Instead compute it once for the rep clause case.
3965 Use gcc_assert and gcc_unreachable.
3966
3967 2004-10-04 Vincent Celier <celier@gnat.com>
3968
3969 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
3970 in file name.
3971 (Is_Valid_Path_Name): Take '/' as a directory separator.
3972
3973 2004-10-04 Vincent Celier <celier@gnat.com>
3974
3975 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
3976 (Extended_Project) only if Extended_Project is defined, to avoid
3977 assertion error.
3978 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
3979 resolved path.
3980 (Parse_Single_Project): Ditto.
3981
3982 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
3983 Add_To_Project_Path for virtual projects.
3984
3985 2004-10-04 Vincent Celier <celier@gnat.com>
3986
3987 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3988 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3989 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
3990 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
3991 parameter Options_2.
3992
3993 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
3994 Build_Dynamic_Library with an empty Options_2.
3995
3996 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
3997 default anymore.
3998
3999 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
4000 directory separator, if any.
4001 (Gprmake): Do not allow mains on the command line for library projects.
4002 Do not attempt to link when the project is a library project.
4003 (Library_Opts): New table to store Library_Options.
4004 (Build_Library): If Library_Options is specified, pass these options
4005 when building a shared library.
4006
4007 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
4008
4009 * s-tposen.adb (Service_Entry): The object must be always unlocked at
4010 the end of this procedure now that the unlock operation was inserted
4011 by the expander.
4012
4013 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
4014
4015 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
4016 corresponding to the Preallocated_Stacks flags in System.
4017 (Get_Target_Parameters): Including the processing for
4018 Preallocated_Stacks.
4019
4020 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
4021 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
4022 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
4023 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
4024 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
4025 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
4026 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
4027 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
4028 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4029 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4030 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
4031 used to signal whether the compiler creates the required stacks and
4032 descriptors for the different tasks (when True) or it is done by the
4033 underlying operating system at run time (when False).
4034 It is initially set to False in all targets.
4035
4036 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
4037 if it is supported by the target.
4038 (Make_Task_Create_Call): Pass the stack address if it has been
4039 previously created. Otherwise pass a Null_Address.
4040
4041 * snames.adb: Add _stack.
4042
4043 * snames.ads: Add Name_uStack. Required to allow the expander to
4044 statically allocated task stacks.
4045
4046 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
4047 Stack_Address argument.
4048 Check that its value is equal to Null_Address because this target does
4049 not support the static stack allocation.
4050
4051 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
4052
4053 * usage.adb: Change "pragma inline" to "pragma Inline" in information
4054 and error messages
4055
4056 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
4057
4058 * exp_dist.adb: Split declaration of asynchronous flag out of
4059 Add_RACW_Read_Attribute.
4060 Minor reformatting for better alignment with PolyORB version.
4061 Store the entity for the asynchronous flag of an RACW, rather than the
4062 expression, in the asynchronous flags table. This will allow this flag
4063 to be used in other subprograms beside Add_RACW_Read_Attribute.
4064
4065 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
4066
4067 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
4068 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4069 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
4070 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
4071 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
4072 sockets constant MSG_NOSIGNAL (Linux-specific).
4073 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
4074 all Send operations.
4075 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
4076 from trigerring SIGPIPE.
4077 Rename components to avoid clash with Ada 2005 possible reserved
4078 word 'interface'.
4079 (Check_Selector): When the select system call returns with an error
4080 condition, propagate Socket_Error to the caller.
4081
4082 2004-10-01 Jan Hubicka <jh@suse.cz>
4083
4084 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
4085
4086 2004-09-23 Robert Dewar <dewar@gnat.com>
4087
4088 PR ada/17540
4089
4090 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
4091 instead do this at freeze time (we won't do it if there is an address
4092 clause).
4093 Change "pragma inline" to "pragma Inline" in information and error
4094 messages.
4095 Minor reformatting.
4096
4097 * freeze.adb (Check_Address_Clause): Remove previous change, not the
4098 right way of doing things after all.
4099 (Freeze_Entity): For object, set Is_Public for imported entities
4100 unless there is an address clause present.
4101
4102 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
4103
4104 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
4105 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
4106 ensures proper handling of types with rep clauses, which might have
4107 their TYPE_SIZE set already.
4108
4109 2004-09-21 Robert Dewar <dewar@gnat.com>
4110
4111 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
4112 packed array types in both little- and big-endian cases. This change
4113 ensures that we no longer count on the unused bits being initialized
4114 for such types (and in particular ensures that equality testing will
4115 only read the relevant bits).
4116 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
4117 These changes mean that we no longer need to initialize small packed
4118 arrays.
4119 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
4120 optimization to an LJM field as to its parent field.
4121
4122 * ada-tree.h, trans.c, utils.c, utils2.c:
4123 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
4124
4125 2004-09-20 Jan Hubicka <jh@suse.cz>
4126
4127 * utils.c (gnat_finalize): Remove.
4128 (end_subprog_body): Directly call cgraph_finalize_function;
4129 do not lower the nested functions.
4130
4131 2004-09-20 Robert Dewar <dewar@gnat.com>
4132
4133 PR ada/17540
4134
4135 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
4136 if an address clause is present, since that means that the Import
4137 should be ignored.
4138
4139 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
4140
4141 * 5tsystem.ads: Removed, no longer used.
4142
4143 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
4144 Zack Weinberg <zack@codesourcery.com>
4145
4146 * ada-tree.def: Use tree_code_class enumeration constants
4147 instead of code letters.
4148 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
4149 Update for new tree-class enumeration constants.
4150
4151 2004-09-17 Vincent Celier <celier@gnat.com>
4152
4153 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
4154 capabilities of the general project manager.
4155
4156 2004-09-09 Vincent Celier <celier@gnat.com>
4157
4158 * a-direct.ads: Add pragma Ada_05
4159 (Directory_Entry_Type): Give default value to component Kind to avoid
4160 not initialized warnings.
4161
4162 * a-direct.adb (Current_Directory): Remove directory separator at the
4163 end.
4164 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
4165 an existing directory.
4166 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
4167 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
4168 Convert the result to File_Size.
4169
4170 * prj.ads: (Project_Error): New exception
4171
4172 * prj-attr.adb: Except in procedure Initialize, Fail comes from
4173 Prj.Com, not from Osint.
4174 (Attrs, Package_Attributes): Tables moved to private part of spec
4175 (Add_Attribute, Add_Unknown_Package): Moved to new child package
4176 Prj.Attr.PM.
4177 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
4178 Prj.Project_Error after call to Fail.
4179 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
4180 Fail. Check that package name is not already in use.
4181
4182 * prj-attr.ads: Comment updates to indicate that all subprograms may be
4183 used by tools, not only by the project manager, and to indicate that
4184 exception Prj.Prj_Error may be raised in case of problem.
4185 (Add_Unknown_Package, Add_Attribute): Moved to new child package
4186 Prj.Attr.PM.
4187 (Attrs, Package_Attributes): Table instantiations moved from the body to
4188 the private part to be accessible from Prj.Attr.PM body.
4189
4190 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
4191 from new package Prj.Attr.PM.
4192 (Parse_Attribute_Declaration): Call Add_Attribute from new package
4193 Prj.Attr.PM.
4194
4195 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
4196
4197 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
4198 instead of Elaboration_Checks).
4199
4200 * a-calend.adb: Minor reformatting
4201
4202 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4203
4204 * gigi.h (maybe_pad_type): New declaration.
4205 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
4206
4207 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
4208
4209 * cuintp.c: Convert to use buildN.
4210
4211 * decl.c (maybe_pad_type): No longer static.
4212 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
4213 target pointer.
4214 Convert to use buildN.
4215
4216 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
4217 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
4218 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
4219 RHS.
4220 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
4221 (gnat_gimplify_expr, case ADDR_EXPR): New case.
4222 Convert to use buildN.
4223
4224 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
4225 TREE_READONLY for const.
4226 Convert to use buildN.
4227
4228 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
4229 (create_var_decl): Refine when TREE_STATIC is set.
4230 Convert to use buildN.
4231
4232 2004-09-09 Gary Dismukes <dismukes@gnat.com>
4233
4234 * gnat_ugn.texi: Delete text relating to checking of ali and object
4235 consistency.
4236
4237 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
4238 routines.
4239
4240 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
4241
4242 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
4243 pragmas recognized by GNAT.
4244
4245 * gnat_rm.texi: Document pragma Detect_Blocking.
4246
4247 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
4248 raise Program_Error if called from a protected operation.
4249
4250 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
4251 the protected action nesting level.
4252 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
4253 protected action nesting level.
4254 (Unlock): When pragma Detect_Blocking is active decrease the protected
4255 action nesting level.
4256
4257 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
4258 Protected_Action_Nesting.
4259
4260 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
4261 Common_ATCB record. It contains the dynamic level of protected action
4262 nesting for each task. It is needed for checking whether potentially
4263 blocking operations are called from protected operations.
4264 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
4265 Detect_Blocking is active or not in the partition.
4266
4267 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
4268 raise Program_Error if called from a protected operation.
4269 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
4270 Program_Error if called from a protected operation.
4271 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
4272 Program_Error if called from a protected operation.
4273
4274 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
4275 raise Program_Error if called from a protected operation.
4276
4277 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
4278 raise Program_Error if called from a protected operation, and increase
4279 the protected action nesting level.
4280 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
4281 Program_Error if called from a protected operation, and increase the
4282 protected action nesting level.
4283 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
4284 protected action nesting level.
4285
4286 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
4287 raise Program_Error if called from a protected operation, and increase
4288 the protected action nesting level.
4289 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
4290 Program_Error if called from a protected operation, and increase the
4291 protected action nesting level.
4292 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
4293 raise Program_Error if called from a protected operation.
4294 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
4295 active, raise Program_Error if called from a protected operation.
4296 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
4297 protected action nesting level.
4298
4299 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
4300 insertion of the statement raising Program_Error. The run time
4301 contains the required machinery for handling that.
4302
4303 * sem_util.ads: Change comment associated to procedure
4304 Check_Potentially_Blocking_Operation.
4305 This procedure does not insert a call for raising the exception because
4306 that is currently done by the run time.
4307
4308 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
4309
4310 * init.c: Add the global variable __gl_detect_blocking that indicates
4311 whether pragma Detect_Blocking is active (1) or not (0). Needed for
4312 making the pragma available at run time.
4313 (__gnat_set_globals): Pass and update the detect_blocking parameter.
4314
4315 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
4316 pragma Detect_Blocking is active.
4317
4318 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
4319
4320 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
4321 DB is found in the ali file. Any unit compiled with pragma
4322 Detect_Blocking active forces its effect in the whole partition.
4323
4324 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
4325 Detect_Blocking is active and delay is called from a protected
4326 operation.
4327
4328 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
4329 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
4330 Detect_Blocking is active (0 otherwise).
4331 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
4332 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
4333 otherwise).
4334
4335 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
4336
4337 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
4338 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
4339 package.
4340
4341 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
4342 (Register_Receiving_Stub): Add Subp_Info formal parameter.
4343 Update API in placeholder implemetation of s-parint to reflect changes
4344 in distribution runtime library.
4345
4346 * sem_ch3.adb (Expand_Derived_Record): Rename to
4347 Expand_Record_Extension.
4348
4349 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
4350 primitive operations of potentially distributed object types that have
4351 non-controlling anonymous access formals.
4352
4353 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
4354 subprogram.
4355 New implementation of expansion for remote access-to-subprogram types,
4356 based on the RACW infrastructure.
4357 This version of sem_dist is compatible with PolyORB/DSA as well as
4358 GLADE.
4359
4360 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
4361 Asynchrronous that applies to a remote access-to-subprogram type, mark
4362 the underlying RACW type as asynchronous.
4363
4364 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
4365 __gnat_using_gnu_linker to 1.
4366
4367 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
4368 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
4369 GNAT.Perfect_Hash_Generators, and remove the empty
4370 GNAT.Perfect_Hash package.
4371
4372 * atree.adb: Minor reformatting
4373
4374 * exp_ch3.adb (Expand_Derived_Record): Rename to
4375 Expand_Record_Extension.
4376 (Build_Record_Init_Proc.Build_Assignment): The default expression in
4377 a component declaration must remain attached at that point in the
4378 tree so New_Copy_Tree copies it if the enclosing record type is derived.
4379 It is therefore necessary to take a copy of the expression when building
4380 the corresponding assignment statement in the init proc.
4381 As a side effect, in the case of a derived record type, we now see the
4382 original expression, without any rewriting that could have occurred
4383 during expansion of the ancestor type's init proc, and we do not need
4384 to go back to Original_Node.
4385
4386 * exp_ch3.ads (Expand_Derived_Record): Rename to
4387 Expand_Record_Extension.
4388
4389 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
4390 Returns the RACW type used to implement a remote access-to-subprogram
4391 type.
4392 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
4393 New subprograms. Used to create a proxy tagged object for a remote
4394 subprogram. The proxy object is used as the designated object
4395 for RAS values on the same partition (unless All_Calls_Remote applies).
4396 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
4397 System.Partition_Interface.Get_Unique_Remote_Pointer.
4398 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
4399 Renamed from Add_RAS_*_Attribute.
4400 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
4401 subprograms.
4402 New implementation of expansion for remote access-to-subprogram types,
4403 based on the RACW infrastructure.
4404
4405 * exp_dist.ads (Copy_Specification): Update comment to note that this
4406 function can copy the specification from either a subprogram
4407 specification or an access-to-subprogram type definition.
4408
4409 2004-09-09 Ed Schonberg <schonberg@gnat.com>
4410
4411 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
4412 in an instance, between an explicit subprogram an one inherited from a
4413 type derived from an actual.
4414
4415 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
4416 add a polling call if the subprogram is to be inlined by the back-end,
4417 to avoid repeated calls with multiple inlinings.
4418
4419 * checks.adb (Apply_Alignment_Check): If the expression in the address
4420 clause is a call whose name is not a static entity (e.g. a dispatching
4421 call), treat as dynamic.
4422
4423 2004-09-09 Robert Dewar <dewar@gnat.com>
4424
4425 * g-trasym.ads: Minor reformatting
4426
4427 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
4428 packed arrays, since unused bits are expected to be zero for a
4429 comparison.
4430
4431 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
4432
4433 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
4434 comment.
4435
4436 2004-09-09 Pascal Obry <obry@gnat.com>
4437
4438 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
4439 enable map file generation. Add the right option to generate the map
4440 file if Map_File is set to True.
4441
4442 * gnatdll.adb (Gen_Map_File): New variable.
4443 (Syntax): Add info about new -m (Map_File) option.
4444 (Parse_Command_Line): Add support for -m option.
4445 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
4446 Minor reformatting.
4447
4448 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
4449
4450 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
4451 new gnatdist implementation.
4452 Define a subpackage isolating the output routines specific to this
4453 verbose mode.
4454
4455 2004-09-09 Joel Brobecker <brobecker@gnat.com>
4456
4457 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
4458
4459 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
4460
4461 2004-09-09 Cyrille Comar <comar@act-europe.fr>
4462
4463 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
4464 internal unit.
4465
4466 * opt.ads: Add Ada_Version_Runtime constant used to decide which
4467 version of the language is used to compile the run time.
4468
4469 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
4470
4471 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
4472 of variable length temporaries for function return now that the
4473 back-end and gigi support it.
4474
4475 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4476
4477 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
4478
4479 * trans.c (struct stmt_group): Delete field GLOBAL.
4480 (gnat_init_stmt_group): Do not initialize it.
4481 (call_to_gnu): Use save_expr, not protect_multiple_eval.
4482 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
4483 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
4484 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
4485 (start_stmt_group): Likewise.
4486 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
4487
4488 * utils2.c (ggc.h): Include.
4489 (build_call_raise): Call build_int_cst, not build_int_2.
4490
4491 * utils.c (gnat_init_decl_processing): Fix arg to
4492 build_common_tree_nodes.
4493 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
4494 (gnat_define_builtin): Set built_in_decls.
4495 (init_gigi_decls): Call build_int_cst, not build_int_2.
4496
4497 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
4498 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
4499 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
4500 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
4501 SET_TYPE_MODULE): Use them.
4502 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
4503 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
4504 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
4505 SET_TYPE_ADA_SIZE): Likewise.
4506 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
4507 (DECL_CONST_CORRESPONDING_VAR,
4508 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
4509 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
4510 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
4511 (TYPE_RM_SIZE_NUM): New macro.
4512 (TYPE_RM_SIZE): Modified to use above.
4513
4514 * cuintp.c: (build_cst_from_int): New function.
4515 (UI_To_gnu): Use it.
4516
4517 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
4518 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
4519 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
4520 MIN_EXPR for the size, copy it into new.
4521
4522 2004-09-01 Robert Dewar <dewar@gnat.com>
4523
4524 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
4525 packed indexed component where array is an IN OUT formal. This
4526 generated garbage code previously.
4527
4528 * gnat_ugn.texi: Document -fverbose-asm
4529
4530 * gnat-style.texi: Minor updates (note that boolean constants and
4531 variables are joined with AND/OR rather than short circuit forms).
4532
4533 2004-09-01 Ed Schonberg <schonberg@gnat.com>
4534
4535 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
4536 it is an upward conversion of an untagged type with no representation
4537 change.
4538
4539 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
4540
4541 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
4542 System.Partition_Interface.
4543
4544 * checks.adb (Apply_Access_Checks): Do not generate checks when
4545 expander is not active (but check for unset reference to prefix of
4546 dereference).
4547
4548 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
4549 pragma Debug as an if statement with a constant condition, for
4550 consistent treatment of entity references contained within the
4551 enclosed procedure call.
4552
4553 2004-09-01 Vincent Celier <celier@gnat.com>
4554
4555 * bindgen.adb: (Set_EA_Last): New procedure
4556 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
4557 Set_EA_Last.
4558 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
4559 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
4560 linked without errors.
4561 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
4562 ST and EA.
4563 (Gen_Exception_Table_C): Correct same bugs
4564
4565 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
4566
4567 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
4568 on Windows, make sure that the drive letter is in upper case.
4569
4570 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
4571 Windows, when the drive letter is added and Case_Sensitive is True, the
4572 drive letter is forced to upper case.
4573
4574 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
4575 to Options_2 for the call to MLib.Utl.Gcc.
4576
4577 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
4578 directory separator when defining BASE_DIR.
4579
4580 2004-09-01 Pascal Obry <obry@gnat.com>
4581
4582 * gprcmd.adb (Extend): Do not output trailing directory separator. This
4583 is not needed and it confuses Windows GNU/make which does not report
4584 directory terminated by a slash as a directory.
4585 (gprcmd): Idem for "pwd" internal command.
4586
4587 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
4588 target names rewrite to fix regressions with recent version of
4589 GNU/make. Starting with GNU/make 3.80 the pipe character was not
4590 handled properly anymore.
4591
4592 2004-09-01 Andreas Schwab <schwab@suse.de>
4593
4594 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
4595 * raise.c [!IN_RTS]: Undef abort.
4596
4597 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
4598
4599 * utils2.c (build_allocator): Use ssize_int.
4600
4601 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
4602
4603 2004-08-27 Andreas Schwab <schwab@suse.de>
4604
4605 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
4606
4607 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
4608 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4609
4610 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
4611
4612 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
4613
4614 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
4615 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
4616 * utils.c (init_gigi_decls): Likewise.
4617 * utils2.c (build_call_raise, build_allocator): Likewise.
4618
4619 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
4620
4621 * utils.c (gnat_init_decl_processing): Adjust
4622 build_common_tree_nodes call.
4623
4624 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
4625
4626 * utils2.c (build_allocator): Use build_int_cst for negative
4627 size types.
4628
4629 2004-08-18 Richard Henderson <rth@redhat.com>
4630
4631 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
4632
4633 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
4634
4635 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
4636 call.s
4637 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
4638 (gnat_to_gnu): Likewise.
4639
4640 2004-08-16 Pascal Obry <obry@gnat.com>
4641
4642 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
4643 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
4644 option and not mdll anymore. Update comment.
4645
4646 2004-08-16 Pascal Obry <obry@gnat.com>
4647
4648 * bld.adb (Put_Include_Project): Properly handle directory separators
4649 on Windows.
4650
4651 2004-08-16 Ed Schonberg <schonberg@gnat.com>
4652
4653 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
4654 decreasing the number of allocated junk nodes while searching for the
4655 appropriate subprogram.
4656
4657 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
4658
4659 * cuintp.c (UI_To_gnu): Use build_int_cst..
4660 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
4661 * utils.c (init_gigi_decls): Likewise.
4662 * utils2.c (build_call_raise): Likewise.
4663
4664 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
4665
4666 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
4667 for a global aliased object with a variable size and an unconstrained
4668 nominal subtype, pretend there is no initializer if the one we have is
4669 incomplete, and avoid referencing an inexistant component in there. The
4670 part we have will be rebuilt anyway and the reference may confuse
4671 further operations.
4672
4673 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
4674
4675 * einfo.ads: Minor reformatting
4676
4677 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
4678 restrictions in the ALI if we only want to warn about violations.
4679
4680 2004-08-13 Vincent Celier <celier@gnat.com>
4681
4682 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
4683 when creating a new Unit_Record in table Units.
4684
4685 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
4686 that are violated, if any.
4687
4688 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
4689 add directory separator if path already ends with a directory separator.
4690
4691 2004-08-13 Ed Schonberg <schonberg@gnat.com>
4692
4693 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
4694 unit, this is an attempt to inline a construct that is not available in
4695 the current restricted mode, so abort rather than trying to continue.
4696
4697 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
4698 discriminants that rename those of the parent, recover names of
4699 original discriminants for the constraint on the full view of the
4700 parent.
4701 (Complete_Private_Subtype): Do not create a subtype declaration if the
4702 subtype is an itype.
4703
4704 * gnat_rm.texi: Added section on implementation of discriminated
4705 records with default values for discriminants.
4706
4707 2004-08-13 Ed Schonberg <schonberg@gnat.com>
4708
4709 PR ada/15601
4710 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
4711 the second operand is overloaded.
4712
4713 2004-08-10 Richard Henderson <rth@redhat.com>
4714
4715 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
4716 add __builtin_alloca.
4717
4718 2004-08-10 Richard Henderson <rth@redhat.com>
4719
4720 * config-lang.in (boot_language): Yes.
4721
4722 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
4723
4724 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
4725 from complaining on potential uninitialized reference.
4726 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
4727 new specification and test explicitly for non-zero return value.
4728
4729 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
4730 returning C.int, to avoid using a derived boolean type.
4731
4732 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
4733 Duplicate_Subexpr_No_Checks in preference to direct use of
4734 Remove_Side_Effects and New_Copy_Tree.
4735 Clear Comes_From_Source on prefix of 'Size attribute reference.
4736
4737 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
4738 g-socthi-vxworks.adb: Change calls to
4739 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
4740 and test explicitly for non-zero return value.
4741
4742 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
4743 (Is_Socket_In_Set): Declare imported function as returning C.int, to
4744 avoid using a derived boolean type.
4745
4746 2004-08-09 Albert Lee <lee@gnat.com>
4747
4748 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
4749
4750 2004-08-09 Pascal Obry <obry@gnat.com>
4751
4752 * gnat_ugn.texi: Document new way to build DLLs on Windows using
4753 GCC's -shared option.
4754
4755 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
4756 Options_2 parameter (options put after object files).
4757
4758 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
4759
4760 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
4761 ignore overflows on low and high bounds of an index to also account for
4762 differences in signedness between sizetype and gnu_index_subtype.
4763 These are as legitimate as the ones caused by a lower TYPE_PRECISION
4764 on sizetype.
4765
4766 2004-08-09 Robert Dewar <dewar@gnat.com>
4767
4768 * s-solita.ads, s-solita.adb: Minor reformatting
4769
4770 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
4771 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
4772 obsolescent section
4773 Add note that No_Implicit_Conditionals does not suppress
4774 run time constraint checks.
4775
4776 * vms_conv.ads: Minor reformatting
4777
4778 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
4779 and necessary for following change).
4780 (Mark): Return new format Mark_Id containing sec stack address
4781 (Release): Use sec stack address from Mark_Id avoiding Self call
4782
4783 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
4784 pointer (cleanup and necessary for following change).
4785 Define Mark_Id as record containing address of secondary stack, that way
4786 Release does not need to find the stack again, decreasing the number of
4787 calls to Self and improving efficiency.
4788
4789 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
4790
4791 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
4792 case variable into the individual case branches when possible.
4793
4794 * sem_ch11.adb: Minor reformatting
4795
4796 * prj.ads: Correct spelling of suffixs
4797
4798 * prj-nmsc.adb: Minor reformatting
4799 Correct spelling suffixs throughout (also in identifiers)
4800
4801 * freeze.adb: Minor spelling correction
4802
4803 * exp_ch2.adb: Cleanups to handling of Current_Value
4804 (no functional effect).
4805
4806 * bld.adb: Correct spelling of suffixs
4807
4808 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
4809
4810 2004-08-09 Ed Schonberg <schonberg@gnat.com>
4811
4812 PR ada/15408
4813
4814 * sem_ch7.adb (Install_Private_Declarations): In the body of the
4815 package or of a child, private entities are both immediately_visible
4816 and not hidden.
4817
4818 2004-08-09 Ed Schonberg <schonberg@gnat.com>
4819
4820 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
4821 there are no range checks on the value of the literal.
4822
4823 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
4824 wrapped is the triggering alternative of an asynchronous select, action
4825 statements mustbe inserted before the select itself.
4826
4827 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
4828 case where the prefix is a protected function call.
4829 (Resolve_Attribute, case 'Access): The attribute reference on a
4830 subprogram is legal in a generic body if the subprogram is declared
4831 elsewhere.
4832
4833 2004-08-09 Vincent Celier <celier@gnat.com>
4834
4835 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
4836 languages, otherwise building the library may fail with unresolved
4837 symbols.
4838 (Compile_Sources): Do not build libraries if -c switch is used
4839
4840 * gnatlink.adb (Process_Args): New switches -M and -Mmap
4841 (Write_Usage): If map file creation is supported, output new switches
4842 -M and -Mmap.
4843 (Gnatlink): When -M is specified, add the necessary switch(es) to the
4844 gcc call, when supported.
4845
4846 * Makefile.in: Added indepsw.o to the object list for gnatlink
4847 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
4848
4849 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
4850 indepsw.adb, indepsw.ads: New files.
4851
4852 2004-08-09 Bernard Banner <banner@gnat.com>
4853
4854 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
4855
4856 * Makefile.in: add section for vxworks x86
4857
4858 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
4859
4860 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
4861 per-object constrained components where the discriminant is of an
4862 Access type.
4863 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
4864 the parent initialization procedure for derived Unchecked_Unions.
4865 Instead, derived Unchecked_Unions build their own initialization
4866 procedure.
4867 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
4868 Check the body of the subprogram for details.
4869 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
4870 functions for derived Unchecked_Union types by introducing a condition.
4871 Allow the creation of TSS equality functions for Unchecked_Unions.
4872 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
4873 Add formal parameter Discr to function signature. Discr is used to
4874 control the generated case statement for Unchecked_Union types.
4875 (Make_Eq_If): Rename formal parameter Node to E in function signature.
4876
4877 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
4878 Unchecked_Unions.
4879 Check the body of the subprogram for details.
4880 (Expand_Composite_Equality): Augment composite type equality to include
4881 correct handling of Unchecked_Union components.
4882 (Expand_N_In): Add condition to detect illegal membership tests when the
4883 subtype mark is a constrained Unchecked_Union and the expression lacks
4884 inferable discriminants, and build a Raise_Program_Error node.
4885 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
4886 to detect types that contain components of unconstrained Unchecked_Union
4887 subtype. Add condition to detect equality between types that have an
4888 unconstrained Unchecked_Union component, and build a Raise_Program_Error
4889 node. Add condition to detect equality between Unchecked_Union types
4890 that lack inferable discriminants, and build a Raise_Program_Error node.
4891 Otherwise build a TSS equality function call.
4892 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
4893 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
4894 with the operand lacking inferable discriminants, and build a Raise_
4895 Program_Error node.
4896 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
4897 composite equality.
4898 (Has_Inferable_Discriminants): Implement new predicate for objects and
4899 expressions of Unchecked_Union type. Check the body of subprogram for
4900 details.
4901 (Has_Unconstrained_UU_Components): Add function
4902 Component_Is_Unconstrained_UU. It is used to detect whether a single
4903 component is of an unconstrained Unchecked_Union subtype. Add function
4904 Variant_Is_Unconstrained_UU. It is used to detect whether a single
4905 component inside a variant is of an unconstrained Unchecked_Union type.
4906
4907 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
4908 inferred discriminant values. Add condition to generate a case
4909 statement with an inferred discriminant as the switch.
4910 (Make_Component_List_Assign): Introduce a Boolean flag that determines
4911 the behaviour of the subprogram in the presence of an Unchecked_Union.
4912 Add condition to trigger the usage of the inferred discriminant value
4913 as the generated case statement switch.
4914 (Make_Field_Assign): Introduce a Boolean flag that determines the
4915 behaviour of the subprogram in the presence of an Unchecked_Union. Add
4916 condition to trigger the usage of the inferred discriminant value as
4917 the right-hand side of the generated assignment.
4918
4919 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
4920 parameter generation when dealing with Unchecked_Unions.
4921
4922 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
4923 checks for Unchecked_Unions.
4924
4925 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
4926
4927 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
4928 Raise_Program_Error nodes for the execution of Read and Write
4929 attributes of Unchecked_Union types and the execution of Input and
4930 Output attributes of Unchecked_Union types that lack default
4931 discriminant values.
4932
4933 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
4934 Unchecked_Union. Add procedure Check_Component. It is used to inspect
4935 per-object constrained components of Unchecked_Unions for being
4936 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
4937 check individual components withing a variant.
4938
4939 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
4940 comparison of Unchecked_Unions.
4941 (Resolve_Equality_OP): Remove guard that prevents equality between
4942 Unchecked_Unions.
4943
4944 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
4945 of component subtypes for Unchecked_Union components.
4946 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
4947 since it is the actual subtype.
4948
4949 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
4950 pass of Unchecked_Union subtypes as generic actuals to formal types
4951 that lack known_discriminant_parts or that are derived Unchecked_Union
4952 types, and do nothing. In any other case, produce an error message.
4953
4954 * sem_ch3.adb (Analyze_Component_Declaration): Add function
4955 Contains_POC. It determines whether a constraint uses the discriminant
4956 of an enclosing record type.
4957 Add condition to detect per-object constrained component and set the
4958 appropriate flag.
4959 (Derived_Type_Declaration): Remove guard that prevents derivation from
4960 Unchecked_Union types.
4961 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
4962 Union subtypes.
4963
4964 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
4965 references to Unchecked_Union discriminants.
4966
4967 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
4968 formal generation when dealing with Unchecked_Unions.
4969 (Set_Actual_Subtypes): Add condition to prevent generation of actual
4970 subtypes for Unchecked_Unions.
4971
4972 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
4973 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
4974 completions of discriminated partial views by Unchecked_Unions and
4975 produce an error message.
4976
4977 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4978
4979 * trans.c (struct stmt_group): New field, GLOBAL.
4980 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
4981 (struct elab_info): New struct.
4982 (elab_info_list, gnu_elab_proc_stack): New variables.
4983 (Compilation_Unit_to_gnu): New procedure.
4984 (gigi): Call it and also handle elaboration procs we've saved.
4985 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
4986 global field from parent.
4987 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
4988 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
4989 (start_stmt_group): Initialize global field from parent.
4990 (add_decl_expr): Set to global for current statement group.
4991 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
4992 post.
4993
4994 * utils.c (global_bindings_p): True when no current_function_decl; no
4995 longer check current_binding_level.
4996
4997 2004-08-09 Ben Brosgol <brosgol@gnat.com>
4998
4999 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
5000 choice.
5001
5002 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
5003
5004 2004-08-06 Andreas Schwab <schwab@suse.de>
5005
5006 * utils.c (gnat_define_builtin): Remove second parameter of
5007 make_decl_rtl.
5008 (begin_subprog_body): Likewise.
5009
5010 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
5011
5012 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
5013 optimization, not supported by the tree-ssa back-end.
5014
5015 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
5016
5017 * s-mastop-irix.adb: Update comments.
5018
5019 * a-except.adb (Exception_Information): Raise Constraint_Error if
5020 exception Id is Null_Id.
5021 This is required behavior, which is more reliably and clearly checked
5022 at the top level interface level.
5023
5024 2004-07-26 Javier Miranda <miranda@gnat.com>
5025
5026 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
5027 call if a component has no default_expression and the box is used.
5028
5029 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
5030 default_expression and you use box, it behaves as if you had declared a
5031 stand-alone object.
5032 (Resolve_Record_Aggregate): If a component has no default_expression and
5033 you use box, it behaves as if you had declared a stand-alone object.
5034
5035 * sem_ch10.adb (Install_Siblings): Do not make visible the private
5036 entities of private-with siblings.
5037
5038 2004-07-26 Ed Schonberg <schonberg@gnat.com>
5039
5040 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
5041 for a component of an itype, set the parent pointer for analysis,
5042 there is no list in which to insert it.
5043
5044 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
5045 bona-fide renamings, not for inherited operations.
5046
5047 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
5048 actual for a formal that is an access parameter, create local
5049 finalization list even if the expression is not an aggregate.
5050
5051 2004-07-26 Ed Schonberg <schonberg@gnat.com>
5052
5053 PR ada/16213
5054 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
5055 Diagnose properly illegal subprogram renamings that are library units.
5056
5057 2004-07-26 Ed Schonberg <schonberg@gnat.com>
5058
5059 PR ada/15588
5060 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
5061 conversion rewritten as an unchecked conversion, check that original
5062 expression is a variable.
5063
5064 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
5065 unchecked_conversion, create new node rather than rewriting in place,
5066 to preserve original construct.
5067
5068 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5069
5070 * gigi.h (gnat_expand_body): Deleted.
5071
5072 * Make-lang.in: (trans.o): Depends on function.h.
5073
5074 * misc.c: (gnat_expand_body): Moved to here.
5075
5076 * trans.c (gnat_expand_body_1): Deleted.
5077 (gnat_expand_body): Moved from here.
5078 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
5079 (add_stmt): Check for marked visited with global_bindings_p.
5080 (gnat_gimplify_expr, case COMPONENT_REF): New case.
5081 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
5082
5083 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
5084 VIEW_CONVERT_EXPR if not operation type.
5085
5086 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
5087 fat pointer.
5088
5089 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
5090 changes: reformatting of negation operators, removing unneeded
5091 inequality comparison with zero, converting equality comparisons with
5092 zero to negations, changing int/0/1 to bool/false/true, replace calls
5093 to gigi_abort with abort, and various other similar changes.
5094
5095 2004-07-26 Vincent Celier <celier@gnat.com>
5096
5097 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
5098 "setup".
5099
5100 * make.adb (Gnatmake): Fail when a library is not present and there is
5101 no object directory.
5102
5103 * mlib-prj.adb (Check_Library): No need to check if the library needs
5104 to be rebuilt if there is no object directory, hence no object files
5105 to build the library.
5106
5107 * opt.ads (Setup_Projects): New Boolean flag.
5108
5109 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
5110 Location.
5111 Create directory when Kind /= "" and in "gnat setup". Report error if
5112 directory cannot be created.
5113 (Ada_Check): Create library interface copy dir if it does not exist
5114 and we are in "gnat setup".
5115 (Find_Sources): No error if in "gnat setup" and no Ada sources were
5116 found.
5117 (Language_Independent_Check): Create object directory, exec directory
5118 and/or library directory if they do not exist and we are in
5119 "gnat setup".
5120
5121 * vms_conv.ads: (Command_Type): New command Setup.
5122
5123 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
5124
5125 * vms_data.ads: Add qualifiers/switches for new built-in command
5126 "setup".
5127
5128 2004-07-25 Richard Henderson <rth@redhat.com>
5129
5130 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
5131 DECL_IGNORED_P on RESULT_DECL.
5132
5133 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
5134
5135 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
5136 allocation and potentially overflowing update with
5137 Tailored_Exception_Information. Use the sec-stack free procedural
5138 interface to output Exception_Information instead.
5139
5140 * a-except.adb (To_Stderr): New subprogram for character, and string
5141 version moved from a-exextr to be visible from other separate units.
5142 (Tailored_Exception_Information): Remove the procedural version,
5143 previously used by the default Last_Chance_Handler and not any more.
5144 Adjust various comments.
5145
5146 * a-exexda.adb: Generalize the exception information procedural
5147 interface, to minimize the use of secondary stack and the need for
5148 local buffers when the info is to be output to stderr:
5149 (Address_Image): Removed.
5150 (Append_Info_Character): New subprogram, checking for overflows and
5151 outputing to stderr if buffer to fill is of length 0.
5152 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
5153 (Append_Info_Address, Append_Info_Exception_Name,
5154 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
5155 Append_Info_Basic_Exception_Traceback,
5156 Append_Info_Exception_Information): New subprograms.
5157 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
5158 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
5159 Exception_Info_Maxlength, Exception_Name_Length,
5160 Exception_Message_Length): New subprograms.
5161 (Exception_Information): Use Append_Info_Exception_Information.
5162 (Tailored_Exception_Information): Use
5163 Append_Info_Basic_Exception_Information.
5164 Export services for the default Last_Chance_Handler.
5165
5166 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
5167 other separate units.
5168
5169 2004-07-20 Vincent Celier <celier@gnat.com>
5170
5171 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
5172
5173 2004-07-20 Ed Schonberg <schonberg@gnat.com>
5174
5175 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
5176 emit itype references for the designated types of component types that
5177 are declared outside of the full record declaration, and that may
5178 denote a partial view of that record type.
5179
5180 2004-07-20 Ed Schonberg <schonberg@gnat.com>
5181
5182 PR ada/15607
5183 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
5184 which is the designated type in an access component declaration, to the
5185 list of incomplete dependents of the parent type, to avoid elaboration
5186 issues with out-of-scope subtypes.
5187 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
5188 full view of the parent.
5189
5190 2004-07-20 Ed Schonberg <schonberg@gnat.com>
5191
5192 PR ada/15610
5193 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
5194 entities that are hidden, such as references to generic actuals
5195 outside an instance.
5196
5197 2004-07-20 Javier Miranda <miranda@gnat.com>
5198
5199 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
5200 support to the new notation.
5201 (Analyze_Selected_Component): Add call to Try_Object_Operation.
5202
5203 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
5204
5205 * s-taprob.adb: Adding the elaboration code required for initializing
5206 the tasking soft links that are common to the full and the restricted
5207 run times.
5208
5209 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
5210 restricted run time has been moved to the package
5211 System.Soft_Links.Tasking.
5212
5213 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
5214 restricted run time has been moved to the package
5215 System.Soft_Links.Tasking.
5216
5217 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
5218
5219 * s-solita.ads, s-solita.adb: New files.
5220
5221 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5222
5223 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
5224 Case_Statement_to_gnu): Split off from gnat_to_gnu.
5225 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
5226 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
5227 Exception_Handler_to_gnu_zcx): Likewise.
5228
5229 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
5230
5231 * gigi.h (builtin_function): Declare.
5232
5233 2004-07-15 Robert Dewar <dewar@gnat.com>
5234
5235 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
5236 reformatting
5237
5238 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
5239 access values as an example of a warning.
5240
5241 * gnat_rm.texi: Document new attribute Has_Access_Values
5242
5243 * gnat-style.texi: Document that box comments belong on nested
5244 subprograms
5245
5246 * sem_util.ads (Has_Access_Values): Improved documentation
5247
5248 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
5249
5250 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
5251 (Process_Interface_Name): Call to this new procedure
5252 (Set_Extended_Import_Export_External_Name): Call to this new procedure
5253
5254 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
5255
5256 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
5257
5258 * einfo.ads: Minor comment typo fixed
5259
5260 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
5261
5262 * snames.adb: Add _atcb.
5263
5264 * snames.ads: Add Name_uATCB.
5265
5266 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
5267 (in the expanded code) when using the restricted run time.
5268
5269 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
5270 a in parameter in order to allow ATCBs to be preallocated (in the
5271 expanded code).
5272
5273 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
5274 order to allow ATCBs to be preallocated. In case of error, the ATCB is
5275 deallocated in System.Tasking.Stages.
5276
5277 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
5278 order to allow ATCBs to be preallocated.
5279
5280 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
5281 here. It was previously done in Initialize_ATCB.
5282
5283 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
5284
5285 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
5286 Restricted run time.
5287
5288 * exp_ch3.adb: When using the Restricted run time, pass the
5289 preallocated Ada_Task_Control_Block when creating a task.
5290
5291 2004-07-15 Ed Schonberg <schonberg@gnat.com>
5292
5293 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
5294 function call that is itself an actual in an enclosing call, diagnose
5295 problem here rather than assuming that resolution will catch it.
5296
5297 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
5298 the local copy of a generic unit for a formal package, and the generic
5299 is a child unit, install private part of ancestors before compiling
5300 private part of spec.
5301
5302 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
5303 use scope entities rather than tree structures, to handle properly
5304 parent units that are instances rewritten as bodies for inlining
5305 purposes.
5306
5307 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
5308 Remove_Parents): Handle properly a parent unit that is an
5309 instantiation, when the unit has been rewritten as a body for inlining
5310 purposes.
5311
5312 * par.adb (Goto_List): Global variable to collect goto statements in a
5313 given unit, for use in detecting natural loops.
5314
5315 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
5316 use in detecting natural loops.
5317
5318 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
5319 backwards goto's, and rewrite as a infinite loop, to improve locality
5320 of temporaries.
5321
5322 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
5323 subcomponent that includes an indexed reference, to prevent the
5324 generation of copies that would miscompile the desired assignment
5325 statement.
5326 (Build_Task_Image_Decls): Add a numeric suffix to
5327 generated name for string variable, to avoid spurious conflicts with
5328 the name of the type of a single protected object.
5329
5330 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
5331 loop with an explicit exit statement, to avoid generating an
5332 out-of-range value with 'Succ leading to spurious constraint_errors
5333 when compiling with -gnatVo.
5334
5335 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
5336
5337 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
5338 might not be analyzed yet, even if its Etype is already set (case of an
5339 unchecked conversion built using Unchecked_Convert_To, for example).
5340 If the prefix has already been analyzed, this will be a nop anyway.
5341
5342 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
5343 controller type, or an assignment of a record type with controlled
5344 components, copy only user data, and leave the finalization chain
5345 pointers untouched.
5346
5347 2004-07-15 Vincent Celier <celier@gnat.com>
5348
5349 * make.adb (Collect_Arguments): Improve error message when attempting
5350 to compile a source not part of any project, when -x is not used.
5351
5352 * prj.ads: (Defined_Variable_Kind): New subtype
5353
5354 * prj-attr.adb (Register_New_Package): Two new procedures to register
5355 a package with or without its attributes.
5356 (Register_New_Attribute): Mew procedure to register a new attribute in a
5357 package.
5358 New attribute oriented subprograms: Attribute_Node_Id_Of,
5359 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
5360 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
5361 Next_Attribute.
5362 New package oriented subprograms: Package_Node_Id_Of,
5363 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
5364
5365 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
5366 type.
5367 (Package_Node_Id): Now a private, self initialized type
5368 (Register_New_Package): New procedure to register a package with its
5369 attributes.
5370 New attribute oriented subprograms: Attribute_Node_Id_Of,
5371 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
5372 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
5373 Next_Attribute.
5374 New package oriented subprograms: Package_Node_Id_Of,
5375 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
5376
5377 * prj-dect.adb (Parse_Attribute_Declaration,
5378 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
5379
5380 * prj-makr.adb (Make): Parse existing project file before creating
5381 other files. Fail if there was an error during parsing.
5382
5383 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
5384 new spec of Prj.Attr.
5385
5386 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
5387 to new spec of Prj.Attr.
5388
5389 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5390
5391 * utils2.c: Fix typo in comment.
5392
5393 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5394
5395 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
5396 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
5397
5398 2004-07-14 Andreas Schwab <schwab@suse.de>
5399
5400 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
5401
5402 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5403
5404 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
5405 object type.
5406 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
5407 TYPE_STUB_DECL.
5408
5409 * misc.c (gnat_types_compatible_p): New function.
5410 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
5411 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
5412
5413 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
5414 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
5415 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
5416 (mark_visited): Don't mark dummy type.
5417 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
5418 parameter, we must remove any LJM building from GNU_NAME.
5419 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
5420 (pos_to_constructor): Use int_const_binop.
5421 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
5422 PARM_DECL.
5423
5424 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
5425 (gnat_pushlevel): Set TREE_USE on BLOCK node.
5426 (gnat_install_builtins): Add __builtin_memset.
5427
5428 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
5429
5430 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
5431 for a renaming, stabilize the initialization expression if we are at a
5432 local level. At the local level, uses of the renaming may be performed
5433 by a direct dereference of the initializing expression, and we don't
5434 want possible variables there to be evaluated for every use.
5435
5436 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
5437 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
5438 them on the way. Account for the fact that we may introduce side
5439 effects in the process.
5440
5441 2004-07-13 Richard Henderson <rth@redhat.com>
5442
5443 * misc.c (default_pass_by_ref): Use pass_by_reference.
5444
5445 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
5446
5447 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
5448 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
5449
5450 2004-07-08 Richard Henderson <rth@redhat.com>
5451
5452 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
5453 commentary.
5454
5455 2004-07-06 Vincent Celier <celier@gnat.com>
5456
5457 * vms_conv.ads: Minor reformatting.
5458 Alphabetical order for enumerated values of type Command_Type, to have
5459 the command in alphabetical order for the usage.
5460
5461 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
5462 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
5463
5464 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
5465
5466 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
5467 (Add_Archive_Path): Only add the global archive if there is one.
5468 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
5469 or not any object file to put in the global archive, and don't build
5470 a global archive if there is none.
5471 (X_Switches): New table
5472 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
5473 in the X_Switches table, if any.
5474 (Initialize): Make sure the X_Switches table is empty
5475 (Scan_Arg): Record -X switches in table X_Switches
5476
5477 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
5478
5479 * make.adb: Minor comment fix
5480
5481 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
5482 invoked with directory information, add the directory in front of the
5483 path.
5484
5485 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
5486 invoked with directory information, add the directory in front of the
5487 path.
5488
5489 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
5490 when Keep_Temporary_Files is False.
5491 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
5492 directory information, add the directory in front of the path.
5493 When not on VMS, handle new switch -dn before the command to set
5494 Keep_Temporary_Files to True.
5495 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
5496 everywhere.
5497
5498 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
5499 invoked with directory information, add the directory in front of the
5500 path.
5501
5502 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
5503
5504 * snames.ads, snames.adb (Name_Stub): New name for the distributed
5505 systems annex.
5506
5507 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
5508 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
5509
5510 * g-socket.adb (To_Timeval): Fix incorrect conversion of
5511 Selector_Duration to Timeval for the case of 0.0.
5512
5513 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
5514 documentation from Evolve_And_Then.
5515
5516 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
5517
5518 * s-taprop-tru64.adb, s-taprop-os2.adb,
5519 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
5520
5521 2004-07-06 Robert Dewar <dewar@gnat.com>
5522
5523 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
5524 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
5525 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
5526 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
5527 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
5528 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
5529 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
5530 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
5531 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
5532 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
5533 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
5534 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
5535 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
5536 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
5537 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
5538 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
5539 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
5540 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
5541 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
5542 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
5543 vms_data.ads: Minor reformatting,
5544 Fix bad box comment format.
5545
5546 * gnat_rm.texi: Fix minor grammatical error
5547
5548 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
5549
5550 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
5551 more cases of discriminated records to be recognized as not needing a
5552 secondary stack.
5553 (Has_Access_Values): New function.
5554
5555 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
5556
5557 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
5558 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
5559 with LRM terminology).
5560 Change terminology in comments primitive type => elementary type.
5561
5562 2004-07-06 Ed Schonberg <schonberg@gnat.com>
5563
5564 PR ada/15602
5565 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
5566 parameters do not impose any requirements on the presence of a body.
5567
5568 2004-07-06 Ed Schonberg <schonberg@gnat.com>
5569
5570 PR ada/15593
5571 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
5572 compilation unit and is in an open scope at the point of instantiation,
5573 assume that a body may be present later.
5574
5575 2004-07-06 Ed Schonberg <schonberg@gnat.com>
5576
5577 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
5578 Improve error message when specified size is not supported.
5579
5580 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
5581 is never a primitive operation.
5582
5583 2004-07-05 Andreas Schwab <schwab@suse.de>
5584
5585 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
5586 RECORD_OR_UNION_CHECK.
5587 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
5588
5589 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
5590
5591 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
5592 dependency on xgnatugn, instead build it via a submake.
5593 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
5594
5595 2004-07-04 Richard Henderson <rth@redhat.com>
5596
5597 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
5598
5599 2004-07-01 Richard Henderson <rth@redhat.com>
5600
5601 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
5602 * utils.c (max_size): Likewise.
5603
5604 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5605
5606 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
5607 and rest_of_type_compilation; add arg to create_*_decl.
5608 (annotate_decl_with_node): Deleted.
5609 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
5610 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
5611 (get_current_block_context, gnat_pushdecl): New declarations.
5612 (gnat_init_stmt_group): Likewise.
5613 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
5614 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
5615 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
5616 (gnat_init): Call gnat_init_stmt_group.
5617 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
5618 (gnu_pending_elaboration_list): Deleted.
5619 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
5620 (gigi): Rearrange initialization calls and move some to last above.
5621 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
5622 Delete calls to add_decl_expr; add arg to create_*_decl.
5623 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
5624 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
5625 begin_subprog_body and call it.
5626 Don't push and pop ggc context.
5627 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
5628 (add_stmt): Remove handling of DECL_EXPR from here.
5629 If not in function, mark visited.
5630 (add_decl_expr): Put global at top level.
5631 Check for cases of DECL_INITIAL we have to handle here.
5632 (process_type): Add extra arg to create_type_decl.
5633 (build_unit_elab): Rework to just gimplify.
5634 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
5635 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
5636 (get_pending_elaborations, pending_elaborations_p): Likewise.
5637 (push_pending_elaborations, pop_pending_elaborations): Likewise.
5638 (get_elaboration_location, insert_elaboration_list): Likewise.
5639 (gnat_binding_level): Renamed from ada_binding_level.
5640 (init_gnat_to_gnu): Don't clear pending_elaborations.
5641 (global_bindings_p): Treat as global if no current_binding_level.
5642 (set_current_block_context): New function.
5643 (gnat_pushdecl): Renamed from pushdecl; major rework.
5644 All callers changed.
5645 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
5646 (finish_record_type): Call call pushdecl for stub decl.
5647 (function_nesting_depth): Deleted.
5648 (begin_subprog_body): Delete obsolete code.
5649 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
5650
5651 2004-06-28 Robert Dewar <dewar@gnat.com>
5652
5653 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5654 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5655 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
5656 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5657 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
5658
5659 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
5660 deal with problem of inefficient slices on machines with strict
5661 alignment, when the slice is a component of a composite.
5662
5663 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
5664 machines, we need the check there as well.
5665
5666 2004-06-28 Ed Schonberg <schonberg@gnat.com>
5667
5668 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
5669 determine safe copying direction for overlapping slice assignments
5670 when component is controlled.
5671
5672 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
5673 formal derived type in the actual for a formal package are visible in
5674 the enclosing instance.
5675
5676 2004-06-28 Ed Schonberg <schonberg@gnat.com>
5677
5678 PR ada/15600
5679 * sem_util.adb (Trace_Components): Diagnose properly an illegal
5680 circularity involving a private type whose completion includes a
5681 self-referential component.
5682 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
5683 renaming or an instantiation from an implicit derived operation.
5684
5685 2004-06-28 Pascal Obry <obry@gnat.com>
5686
5687 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
5688 DLL.
5689 (Library_File_Name_For): Idem.
5690
5691 2004-06-28 Matthew Gingell <gingell@gnat.com>
5692
5693 * g-traceb.ads: Add explanatory note on the format of addresses
5694 expected by addr2line.
5695
5696 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
5697
5698 * Makefile.in: Force debugging information on s-tasdeb.adb,
5699 a-except.adb and s-assert.adb needed by the debugger.
5700
5701 2004-06-28 Vincent Celier <celier@gnat.com>
5702
5703 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
5704 Need_To_Build_Lib.
5705 (Gnatmake): Ditto.
5706
5707 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
5708
5709 * prj.adb: Minor reformatting
5710 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
5711
5712 * prj.ads: Comment updates
5713 Minor reformatting
5714 (Project_Data): Change Flag1 to Need_To_Build_Lib.
5715 Remove Flag2: not used.
5716
5717 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
5718 declaration.
5719
5720 * gnat_ugn.texi: Put a "null;" declaration in one project file example
5721
5722 * gnat_rm.texi: Document Empty declarations "null;".
5723
5724 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
5725 front of the linker options.
5726 (Link_Foreign): Put the global archives and the libraries in front of
5727 the linker options.
5728
5729 2004-06-28 Javier Miranda <miranda@gnat.com>
5730
5731 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
5732 (RTU_Loaded): Code cleanup
5733 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
5734 withed predefined units.
5735
5736 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
5737 explicitly withed predefined units.
5738 Fix typo in comment
5739
5740 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
5741 explicitly withed predefined units.
5742
5743 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5744
5745 * ada-tree.def (DECL_STMT): Deleted.
5746 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
5747 (DECL_STMT_VAR): Deleted.
5748 * decl.c: add_decl_stmt now add_decl_expr.
5749 * gigi.h: Likewise.
5750 * trans.c: Likewise.
5751 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
5752 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
5753 (add_stmt): Only handle padded type here.
5754 (add_stmt_with_node): Allow gnat_node to not be present.
5755 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
5756 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
5757 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
5758 make a SAVE_EXPR for the entire fat pointer.
5759 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
5760 (create_index_type): Make a DECL_EXPR.
5761 (end_subprog_body): Don't call allocate_struct_function here but
5762 do clear cfun.
5763
5764 2004-06-25 Pascal Obry <obry@gnat.com>
5765
5766 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
5767 Relocatable from Build_Dynamic_Library call.
5768
5769 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
5770 Relocatable are now synonym.
5771
5772 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
5773
5774 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
5775 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
5776 call.
5777
5778 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
5779 Lib_Address and Relocatable.
5780 (Default_DLL_Address): Removed.
5781
5782 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5783 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5784 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
5785 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
5786 (Default_DLL_Address): Removed.
5787
5788 * mlib-tgt-mingw.adb: Ditto.
5789 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
5790
5791 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
5792 the initial thread stack size.
5793
5794 * a-strmap.ads: Move package L to private part as it is not used in
5795 the spec. Found while reading code.
5796
5797 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
5798
5799 * tracebak.c: Introduce support for a GCC infrastructure based
5800 implementation of __gnat_backtrace.
5801
5802 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
5803 any more. Use accessors instead. This eases maintenance and relaxes
5804 some alignment constraints.
5805 (_GNAT_Exception structure): Remove the Ada specific fields
5806 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
5807 a-exexpr.adb.
5808 (is_handled_by, __gnat_eh_personality): Replace component references to
5809 exception structure by use of the new accessors.
5810
5811 * init.c (__gnat_initialize): Adjust comments to match the just
5812 reverted meaning of the -static link-time option.
5813
5814 * adaint.c (convert_addresses): Arrange not to define a stub for
5815 mips-irix any more, as we now want to rely on a real version from a
5816 recent libaddr2line.
5817
5818 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
5819 the personality routine can use them and not have to rely on a C
5820 counterpart of the record anymore. This simplifies maintenance and
5821 relaxes the constraint of having Standard'Maximum_Alignment match
5822 BIGGEST_ALIGNMENT.
5823 Update comments, and add a section on the common header alignment issue.
5824
5825 2004-06-25 Geert Bosch <bosch@gnat.com>
5826
5827 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
5828 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
5829
5830 2004-06-25 Robert Dewar <dewar@gnat.com>
5831
5832 * gnat_rm.texi: Fix section on component clauses to indicate that the
5833 restriction on byte boundary placement still applies for bit packed
5834 arrays.
5835 Add comment on stack usage from Initialize_Scalars
5836
5837 * gnat_ugn.texi: Add documentation for -gnatyLnnn
5838
5839 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
5840 limiting nesting level.
5841
5842 * usage.adb: Add line for -gnatyLnnn switch
5843
5844 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
5845 sem_ch13.adb, exp_aggr.adb: Minor reformatting
5846
5847 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
5848 type as well as on the subtype. This corrects a problem in freeze in
5849 setting alignments of atomic types.
5850
5851 * sem_eval.ads: Minor comment typo fixed
5852
5853 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
5854 level. Minor reformatting.
5855
5856 * fname.adb (Is_Predefined_File_Name): Require a letter after the
5857 minus sign. This means that file names like a--b.adb will not be
5858 considered predefined.
5859
5860 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
5861 record Test new flag and give diagnostic for bad component clause.
5862 (Freeze_Entity): Set alignment of array from component alignment in
5863 cases where this is safe to do.
5864
5865 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
5866 arrays.
5867
5868 * cstand.adb: (Create_Standard): Set alignment of String to 1
5869
5870 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
5871
5872 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
5873 code in the common constrained array cases.
5874
5875 * a-storio.adb: Change implementation to avoid possible alignment
5876 problems on machines requiring strict alignment (data should be moved
5877 as type Buffer, not type Elmt).
5878
5879 * checks.adb (Apply_Array_Size_Check): Improve these checks by
5880 killing the overflow checks which we really do not need (64-bits is
5881 enough).
5882
5883 2004-06-25 Vincent Celier <celier@gnat.com>
5884
5885 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
5886 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
5887 inconditionally for the main project.
5888 (Recursive_Add_Archives.Add_Archive_Path): New procedure
5889 (Link_Executables.Check_Time_Stamps): New procedure
5890 (Link_Executables.Link_Foreign): New procedure
5891 Changes made to reduce nesting level of this package
5892 (Check): New procedure
5893 (Add_Switches): When not in quiet output, check that a switch is not
5894 the concatenation of several valid switches. If it is, issue a warning.
5895 (Build_Global_Archive): If the global archive is rebuilt, linking need
5896 to be done.
5897 (Compile_Sources): Rebuilding a library archive does not imply
5898 rebuilding the global archive.
5899 (Build_Global_Archive): New procedure
5900 (Build_Library): New name for Build_Archive, now only for library
5901 project
5902 (Check_Archive_Builder): New procedure
5903 (Create_Global_Archive_Dependency_File): New procedure
5904 (Gprmake): Call Build_Global_Archive before linking
5905 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
5906 throughout.
5907 (Scan_Arg): Display the Copyright notice when -v is used
5908
5909 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
5910 for gnatls.
5911
5912 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
5913 COMPILE.
5914 Add new GNAT LIST qualifier /FILES=
5915 Added qualifier /DIRECTORY= to GNAT METRIC
5916 Added qualifier /FILES= to GNAT METRIC
5917 Added qualifier /FILES to GNAT PRETTY
5918
5919 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
5920 to take into account both versions of the switch.
5921
5922 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
5923 always be the last switch to the gcc driver. Disable switch storing so
5924 that switches automatically added by the gcc driver are not put in the
5925 ALI file.
5926
5927 * prj.adb (Project_Empty): Take into account changes in components of
5928 Project_Data.
5929
5930 * prj.ads (Languages_Processed): New enumaration value All_Languages.
5931
5932 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
5933 used. Split Boolean component Ada_Sources_Present in two Boolean
5934 components Ada_Sources_Present and Other_Sources_Present.
5935 Minor reformatting
5936
5937 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
5938 instead of Sources_Present.
5939 (Set_Ada_Paths.Add.Recursive_Add): Ditto
5940
5941 * prj-nmsc.adb: Minor reformatting
5942 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
5943 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
5944 Check_Ada_Naming_Scheme.
5945 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
5946 throughout.
5947
5948 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
5949 In_Limited.
5950 Make sure that all cycles where there is at least one "limited with"
5951 are detected.
5952 (Parse_Single_Project): New Boolean parameter In_Limited
5953
5954 * prj-proc.adb (Recursive_Check): When Process_Languages is
5955 All_Languages, call first Prj.Nmsc.Ada_Check, then
5956 Prj.Nmsc.Other_Languages_Check.
5957
5958 * prj-proc.adb (Process): Use Ada_Sources_Present or
5959 Other_Sources_Present (instead of Sources_Present) depending on
5960 Process_Languages.
5961
5962 * lang-specs.h: Keep -g and -m switches in the same order, and as the
5963 last switches.
5964
5965 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
5966 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
5967 False.
5968 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
5969 False.
5970
5971 * lib.ads (Disable_Switch_Storing): New procedure.
5972
5973 * make.adb: Modifications to reduce nesting level of this package.
5974 (Check_Standard_Library): New procedure
5975 (Gnatmake.Check_Mains): New procedure
5976 (Gnatmake.Create_Binder_Mapping_File): New procedure
5977 (Compile_Sources.Compile): Add switch -gnatez as the last option
5978 (Display): Never display -gnatez
5979
5980 * Makefile.generic:
5981 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
5982
5983 * gnatcmd.adb (Check_Project): New function
5984 (Process_Link): New procedure to reduce nesting depth
5985 (Check_Files): New procedure to reduce the nesting depth.
5986 For GNAT METRIC, include the inherited sources in extending projects.
5987 (GNATCmd): When GNAT LS is invoked with a project file and no files,
5988 add the list of files from the sources of the project file. If this list
5989 is too long, put it in a temp text files and use switch -files=
5990 (Delete_Temp_Config_Files): Delete the temp text file that contains
5991 a list of source for gnatpp or gnatmetric, if one has been created.
5992 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
5993 in the project file is too large, create a temporary text file that
5994 list them and pass it to the tool with "-files=<temp text file>".
5995 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
5996
5997 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
5998 generated file is in not in Ada.
5999
6000 * gnatls.adb: Remove all parameters And_Save that are no longer used.
6001 (Scan_Ls_Arg): Add processing for -files=
6002 (Usage): Add line for -files=
6003
6004 * g-os_lib.adb (On_Windows): New global constant Boolean flag
6005 (Normalize_Pathname): When on Windows and the path starts with a
6006 directory separator, make sure that the resulting path will start with
6007 a drive letter.
6008
6009 * clean.adb (Clean_Archive): New procedure
6010 (Clean_Project): When there is non-Ada code, delete the global archive,
6011 the archive dependency files, the object files and their dependency
6012 files, if they exist.
6013 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
6014
6015 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
6016
6017 * sinfo.ads: Fix typo in comment.
6018
6019 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
6020 the TSS for remote access-to-subprogram types, since these TSS are
6021 always present once the type has been analyzed.
6022 (RAS_E_Dereference): Same.
6023
6024 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
6025 reference raises Bad_Attribute, mark the reference as analyzed so the
6026 node (and any children resulting from rewrites that could have occurred
6027 during the analysis that ultimately failed) is not analyzed again.
6028
6029 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
6030
6031 * exp_dist.adb: Minor comment fix.
6032
6033 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
6034 type is an anonymous access type, no unchecked deallocation of the
6035 allocated object can occur. If the object is controlled, attach it with
6036 a count of 1. This allows attachment to the Global_Final_List, if
6037 no other relevant list is available.
6038 (Get_Allocator_Final_List): For an anonymous access type that is
6039 the type of a discriminant or record component, the corresponding
6040 finalisation list is the one of the scope of the type.
6041
6042 2004-06-25 Ed Schonberg <schonberg@gnat.com>
6043
6044 * sem_ch3.adb (Replace_Type): When computing the signature of an
6045 inherited subprogram, use the first subtype if the derived type
6046 declaration has no constraint.
6047
6048 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
6049 before applying previous optimization. Minor code cleanup.
6050
6051 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
6052 placed at the beginning of an unpacked record without explicit
6053 alignment, a slice of it will be aligned and does not need a copy when
6054 used as an actual.
6055
6056 2004-06-25 Ed Schonberg <schonberg@gnat.com>
6057
6058 PR ada/15591
6059 PR ada/15592
6060 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
6061 reference is written with expressions mimicking parameters.
6062
6063 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
6064
6065 PR ada/15589
6066 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
6067 STEP 2a. The constraints of a full type declaration of a derived record
6068 type are checked for conformance with those declared in the
6069 corresponding private extension declaration. The message
6070 "not conformant with previous declaration" is emitted if an error is
6071 detected.
6072
6073 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
6074
6075 * g-traceb.ads: Document the need for -E binder switch in the spec.
6076
6077 * g-trasym.ads: Document the need for -E binder switch in the spec.
6078
6079 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
6080
6081 * sem_prag.adb: Add handling of pragma Detect_Blocking.
6082
6083 * snames.h, snames.ads, snames.adb: Add entry for pragma
6084 Detect_Blocking.
6085
6086 * s-rident.ads: Change reference to pragma Detect_Blocking.
6087
6088 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
6089 system.ads.
6090
6091 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
6092 to indicate whether pragma Detect_Blocking is active.
6093
6094 * par-prag.adb: Add entry for pragma Detect_Blocking.
6095
6096 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
6097 of not handling WITH.
6098 Note that this replaces the previous update which was incorrect.
6099
6100 2004-06-25 Javier Miranda <miranda@gnat.com>
6101
6102 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
6103 use-clauses to have a clean environment.
6104
6105 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
6106 the installation of the use-clauses to stablish a clean environment in
6107 case of compilation of a separate unit; otherwise the call to
6108 use_one_package is protected by the barrier Applicable_Use.
6109
6110 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
6111 the installation of the use-clauses to stablish a clean environment in
6112 case of compilation of a separate unit.
6113 (End_Use_Clauses): Minor comment cleanup.
6114
6115 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
6116
6117 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
6118
6119 2004-06-23 Richard Henderson <rth@redhat.com>
6120
6121 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
6122
6123 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6124
6125 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
6126 now bool instead of int.
6127 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
6128 * trans.c (gnu_switch_label_stack): New function.
6129 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
6130 elaboration of renamed entity returns.
6131 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
6132 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
6133 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
6134 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
6135 DECL_SIZE_UNIT and simplify variable-sized case.
6136 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
6137 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
6138 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
6139 (build_unit_elab): Disable for now.
6140 * utils.c (mark_visited): New function.
6141 (pushdecl): Walk tree to call it for global decl.
6142 (update_pointer_to): Update all variants of pointer and ref types.
6143 Add arg to COMPONENT_REF.
6144 (convert): Likewise.
6145 Move check for converting between variants lower down.
6146 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
6147 (build_allocator): Don't force type of MODIFY_EXPR.
6148 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
6149 put_var_into_stack.
6150
6151 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6152
6153 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
6154 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
6155 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
6156 subprograms.
6157 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
6158 all callers changed.
6159 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
6160 the way that EXIT_STMT finds the loop label.
6161 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
6162 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
6163 (add_stmt): Use annotate_with_locus insted of setting directly.
6164 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
6165 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
6166 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
6167 (build_vms_descriptor): Add extra args to ARRAY_REF.
6168 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
6169 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
6170 New cases.
6171 (build_binary_op): Don't make explicit CONVERT_EXPR.
6172 Add extra rgs to ARRAY_REF.
6173
6174 2004-06-14 Pascal Obry <obry@gnat.com>
6175
6176 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
6177 Windows. Fix minor typo.
6178
6179 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
6180 which is now supported on Windows. With this implementation using the
6181 Library Project feature is no different on Windows than on UNIX.
6182
6183 2004-06-14 Vincent Celier <celier@gnat.com>
6184
6185 * makegpr.adb (Compile_Sources): Nothing to do when there are no
6186 non-Ada sources.
6187
6188 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
6189
6190 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
6191 found, show the project name and the path of the previously parsed
6192 project file.
6193
6194 2004-06-14 Ed Schonberg <schonberg@gnat.com>
6195
6196 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
6197 array, avoid copying the actual before the call.
6198
6199 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
6200
6201 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
6202 Instead, allocate memory on worst-case alignment assumptions, and then
6203 return an aligned address within the allocated zone.
6204
6205 2004-06-14 Robert Dewar <dewar@gnat.com>
6206
6207 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
6208 elab entities in predefined units in No_Run_Time_Mode.
6209 (Gen_Adainit_C): Same fix
6210 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
6211 units in No_Run_Time_Mode
6212 (Gen_Elab_Calls_C): Same fix
6213
6214 * symbols-vms-alpha.adb: Minor reformatting
6215
6216 * g-debpoo.ads: Minor reformatting
6217
6218 * lib.adb (In_Same_Extended_Unit): Version working on node id's
6219
6220 * lib.ads (In_Same_Extended_Unit): Version working on node id's
6221
6222 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
6223 working on nodes.
6224
6225 * make.adb: Minor reformatting
6226
6227 * par-ch12.adb: Minor reformatting
6228
6229 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
6230
6231 * prj-strt.adb: Minor reformatting
6232
6233 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
6234 be more general.
6235
6236 * sem_attr.adb: Minor reformatting
6237
6238 * sem_ch7.adb: Minor reformatting
6239
6240 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
6241 for type in the same unit as the object declaration.
6242
6243 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
6244 static string expressions and not just string literals.
6245 Minor reformatting
6246 (Set_Warning): Reset restriction warning flag for restriction pragma
6247 Implement pragma Profile_Warnings
6248 Implement pragma Profile (Restricted)
6249 Give obolescent messages for old restrictions and pragmas
6250
6251 * snames.h, snames.ads, snames.adb: Add new entry for pragma
6252 Profile_Warnings.
6253
6254 * s-rident.ads: Add declarations for restrictions required by profile
6255 Restricted and profile Ravenscar.
6256
6257 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
6258
6259 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
6260 configuration pragmas.
6261
6262 2004-06-11 Vincent Celier <celier@gnat.com>
6263
6264 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
6265 gnatsym, when symbol policy is Restricted.
6266
6267 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
6268 gnatsym, when symbol policy is Restricted.
6269
6270 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
6271 read the symbol file.
6272 (Finalize): Fail in symbol policy Restricted if a symbol in the original
6273 symbol file is not in the object files. Do not create a new symbol file
6274 when symbol policy is Restricted.
6275
6276 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
6277 in Scng.
6278
6279 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
6280 Restricted.
6281 (Usage): Line for new switch -R
6282
6283 * make.adb (Initialize): When the platform is not VMS, add the
6284 directory where gnatmake is invoked in the front of the path, if
6285 gnatmake is invoked with directory information. Change the Scan_Args
6286 while loop to a for loop.
6287 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
6288 if Depth is equal or greater than the proposed depth, there is nothing
6289 to do.
6290 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
6291 instead of 0.
6292
6293 * prj.ads: Add new symbol policy Restricted.
6294
6295 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
6296 with the new parameters Check_All_Labels and Case_Location.
6297
6298 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
6299 (Library_Symbol_File needs to be defined).
6300
6301 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
6302 and Case_Location If Check_All_Labels is True, check that all values of
6303 the string type are used, and output warning(s) if they are not.
6304
6305 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
6306 and Case_Location.
6307
6308 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
6309
6310 * gnat_ugn.texi: Update documentation about the library directory in
6311 Library Projects.
6312
6313 * makegpr.adb (Display_Command): In verbose mode, also display the
6314 value of the CPATH env var, when the compiler is gcc.
6315 (Initialize): Change the Scan_Args while loop to a for loop
6316 (Compile_Individual_Sources): Change directory to object directory
6317 before compilations.
6318
6319 * symbols.ads: New symbol policy Restricted.
6320
6321 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
6322
6323 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
6324 is now taken care of internally in the Exception_Propagation package
6325 and does not require clients assistance any more.
6326
6327 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
6328 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
6329 functions. Helpers to maintain a predicate required in the handling of
6330 occurrence transfer between tasks.
6331 This is now handled internally and does not require clients assistance
6332 for the setup/propagate separation anymore.
6333 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
6334 allocation strategy, handle the Setup_And_Not_Propagated predicate and
6335 document.
6336
6337 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
6338 raise_after_setup, now that everything is handled internally within the
6339 setup/propagation engine.
6340
6341 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
6342
6343 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
6344 Add additional conditions for the case of an actual being a simple
6345 name or literal. Improve inlining by preventing the generation
6346 of temporaries with a short lifetime (one use).
6347
6348 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
6349
6350 PR ada/15587
6351
6352 * einfo.ads: Minor comment updates for Has_Completion and
6353 E_Constant list of flags.
6354
6355 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
6356 and constant redeclarations now set the Has_Completion flag of their
6357 defining identifiers.
6358
6359 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
6360 Inspect_Deferred_Constant_Completion.
6361 Used to detect private deferred constants that have not been completed
6362 either by a constant redeclaration or pragma Import. Emits error message
6363 "constant declaration requires initialization expression".
6364
6365 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
6366 completes a deferred constant.
6367
6368 2004-06-11 Geert Bosch <bosch@gnat.com>
6369
6370 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
6371
6372 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
6373 calculating exponent for scaling denormal numbers.
6374 (Leading_Part): Properly raise Constraint_Error for zero or negative
6375 Adjustment.
6376 (Remainder): Properly raise Constraint_Error for zero divisor.
6377
6378 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
6379
6380 * sem_util.adb: Minor reformatting.
6381
6382 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
6383 dereference when accessing the entry parameter record.
6384 (Check_Array_Type): Always check for possible implicit dereference.
6385 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
6386 Abort if a pointer is still present (denoting that an implicit
6387 dereference was left in the tree by the front-end).
6388
6389 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
6390 dereference when accessing the entry parameter record.
6391 (Check_Array_Type): Always check for possible implicit dereference.
6392 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
6393 Abort if a pointer is still present (denoting that an implicit
6394 dereference was left in the tree by the front-end).
6395
6396 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
6397
6398 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
6399 message, like the compiler itself does. Easier to parse the output.
6400
6401 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
6402
6403 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
6404 be base names, and not includes directories.
6405
6406 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
6407
6408 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
6409 so that dependencies are properly taken into account by make.
6410
6411 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
6412
6413 PR ada/15622
6414 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
6415 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
6416
6417 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
6418
6419 * Makefile.in (install-gnatlib): install target-specific run-time files.
6420
6421 * Make-lang.in: Remove obsolete targets.
6422
6423 2004-06-11 Ed Schonberg <schonberg@gnat.com>
6424
6425 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
6426 specification, to catch misuses of program unit names.
6427
6428 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
6429 superfluous conversions in an instance.
6430
6431 2004-06-11 Ed Schonberg <schonberg@gnat.com>
6432
6433 PR ada/15403
6434
6435 * sem_ch12.adb (Save_References): If operator node has been folded to
6436 enumeration literal, associated_node must be discarded.
6437
6438 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
6439
6440 * s-stchop-vxworks.adb: Add required pragma Convention to
6441 Task_Descriptor because it is updated by a C function.
6442
6443 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
6444
6445 PR ada/15568
6446
6447 * Makefile.in: Remove target specific SO_OPT on IRIX
6448
6449 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6450
6451 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
6452 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
6453 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
6454 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
6455 (STMT_STMT, USE_STMT): New statement codes.
6456 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
6457 * ada-tree.h: Reflect above changes.
6458 (struct tree_loop_id): Deleted.
6459 (union lang_tree_node, struct lang_decl, struct lang_type):
6460 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
6461 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
6462 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
6463 (IS_ADA_STMT): New macro.
6464 * decl.c (annotate_decl_with_node): New function.
6465 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
6466 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
6467 Call add_stmt_with_node to do needed assignments.
6468 Add call to update setjmp buffer directly, not via EXPR_STMT.
6469 (maybe_variable): Argment GNAT_NODE deleted.
6470 * gigi.h (maybe_variable): Likewise.
6471 (make_transform, add_stmt_with_node, set_block_for_group): New.
6472 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
6473 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
6474 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
6475 (set_lineno, set_lineno_from_sloc): Likewise.
6476 (record_code_position, insert_code_for): Likewise.
6477 (gnat_poplevel): Now returns void.
6478 (end_subprog_body): Now takes argument.
6479 * misc.c (cgraph.h, tree-inline.h): New includes.
6480 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
6481 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
6482 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
6483 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
6484 (gnat_parse_file): Don't set immediate_size_expand.
6485 Call cgraph functions.
6486 (gnat_expand_expr): Remove most cases.
6487 (record_code_position, insert_code_for): Remove from here.
6488 * trans.c (toplev.h, tree-gimple.h): Now included.
6489 (discard_file_names): Deleted.
6490 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
6491 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
6492 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
6493 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
6494 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
6495 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
6496 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
6497 (set_block_for_group, add_stmt_list): Likewise.
6498 (start_stmt_group): Renamed from start_block_stmt.
6499 (end_stmt_group): Likewise, from end_block_stmt.
6500 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
6501 (gigi): Don't set discard_file_names or call set_lineno.
6502 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
6503 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
6504 Numerous changes throughout to reflect new names and complete
6505 function-at-a-time implementation.
6506 (gnat_expand_stmt): Delete or comment out all cases.
6507 (process_inlined_subprograms): Use add_stmt.
6508 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
6509 call set_lineno; also remove unneeded block handling.
6510 (process_type): Remove unneeded block handling.
6511 (build_unit_elab): Remove calls to deleted functions.
6512 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
6513 (tree-dump.h): Likewise.
6514 (struct ada_binding_level): Add field jmpbuf_decl.
6515 (gnat_define_builtin, gnat_install_builtins): New.
6516 (gnat_gimplify_function, gnat_finalize): Likewise.
6517 (gnat_poplevel): No longer return BLOCK, set it instead.
6518 Remove code dealing with nested functions.
6519 (gnat_init_decl_processing): Also set size_type_node.
6520 Call gnat_install_builtins.
6521 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
6522 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
6523 Remove special-case for "main".
6524 (end_subprog_body): Add arg and rework for tree-ssa.
6525 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
6526 Add case for BOOLEAN_TYPE.
6527 * utils2.c (rtl.h): Now include.
6528 (build_call_raise): Test Debug_Flag_NN directly.
6529 (build_call_alloc_dealloc): Don't use local stack allocation for now.
6530 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
6531 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
6532
6533 2004-06-07 Robert Dewar <dewar@gnat.com>
6534
6535 * a-direct.ads, einfo.ads: Minor comment updates
6536
6537 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6538 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
6539 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
6540 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6541 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
6542
6543 * s-interr-sigaction.adb: Remove unreferenced variable
6544 (Attached_Interrupts). Minor reformatting.
6545 Avoid use of variable I (replace by J).
6546
6547 * par-ch10.adb: Fix text of one error message
6548
6549 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
6550 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
6551 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
6552 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
6553 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
6554 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6555 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
6556 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
6557 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
6558 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
6559 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
6560 2005 support.
6561
6562 2004-06-07 Doug Rupp <rupp@gnat.com>
6563
6564 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
6565
6566 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
6567
6568 * mlib-tgt-vms-ia64.adb: New file.
6569
6570 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
6571 Add mlib-tgt-vms-ia64.adb
6572 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
6573 Move to alpha specific ifeq section.
6574 Add VMS specific versions of symbols.adb
6575 Renaming of 5q vms files.
6576
6577 * 5qsystem.ads renamed to system-vms_64.ads.
6578
6579 2004-06-07 Vincent Celier <celier@gnat.com>
6580
6581 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
6582 explain that when a time of day corresponding to the non existing hour
6583 on the day switching to DST is specified, Split may return a different
6584 value for Seconds.
6585
6586 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
6587 to GNAT PRETTY.
6588
6589 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
6590 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
6591
6592 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
6593 to False.
6594 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
6595 the linking options.
6596 (Build_Library.Check_Libs): On VMS, if there is a dependency on
6597 g-trasym.ads, set Gtrasymobj_Needed to True.
6598
6599 * prj-attr.adb: Add new package Metrics for gnatmetric
6600
6601 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
6602 canonical case to take into account files with upper case characters on
6603 Windows.
6604 (Ada_Check): Load the reference symbol file name in the name buffer to
6605 check it, not the symbol file name.
6606
6607 * snames.ads, snames.adb: Add standard name Metrics (name of project
6608 file package for gnatmetric).
6609
6610 * vms_conv.ads: Add Metric to Comment_Type
6611
6612 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
6613
6614 * vms_data.ads: Add qualifiers for GNAT METRIC
6615
6616 * makegpr.adb (Link_Executables): Take into account the switches
6617 specified in package Linker of the main project.
6618
6619 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
6620
6621 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
6622 the index of the last element is Units.Last, not Units.Table'Last
6623 (which is usually not a valid index within the actually allocated
6624 storage for the table).
6625
6626 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
6627 determines whether to generate a call to a checked storage pool
6628 Dereference action.
6629 Generate such a call only for a dereference that either comes from
6630 source, or is the result of rewriting a dereference that comes from
6631 source.
6632
6633 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
6634
6635 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
6636
6637 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
6638
6639 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
6640 file level, elaborate the stride for inner dimensions in alignment
6641 units, not bytes.
6642
6643 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
6644 in a comment.
6645
6646 2004-06-07 Javier Miranda <miranda@gnat.com>
6647
6648 * exp_ch6.adb: Correct wrong modification in previous patch
6649
6650 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
6651
6652 * g-trasym.ads: Corrected comment to properly reflect level of support
6653 on VMS.
6654
6655 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
6656
6657 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
6658 includes case of a variable referenced on the left hand side of an
6659 assignment, therefore remove redundant code. Variables and prefixes of
6660 indexed or selected components are now marked as referenced on left
6661 hand side. Warnings are now properly emitted when variables or prefixes
6662 are assigned but not read.
6663
6664 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
6665 left hand side referenced variables. Private access types do not
6666 produce the warning "variable ... is assigned but never read".
6667 Add also additional checks to left hand side referenced variables.
6668 Aliased, renamed objects and access types do not produce the warning
6669 "variable ... is assigned but never read" since other entities may read
6670 the memory location.
6671
6672 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
6673
6674 * Makefile.in: In the powerpc/vxworks-specific section, restore
6675 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
6676 by mistake).
6677
6678 2004-06-07 Ed Schonberg <schonberg@gnat.com>
6679
6680 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
6681 predefined operators.
6682 Removes spurious type errors from g-trasym-vms.adb.
6683
6684 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
6685 distinct from the operator appearing in the source, call appropriate
6686 routine to insert conversions when needed, and complete resolution of
6687 node.
6688 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
6689 interpretations for rewritten right operand.
6690 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
6691 the other operand is overloaded and the context is a type conversion.
6692
6693 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6694
6695 * ada-tree.def (BLOCK_STMT): Now has two operands.
6696 (BREAK_STMT): New.
6697
6698 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
6699
6700 * gigi.h: (gnat_poplevel): Now returns a tree.
6701
6702 * trans.c (end_block_stmt): Add arg; all callers changed.
6703 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
6704 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
6705 (add_stmt): Set TREE_TYPE.
6706 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
6707 (gnat_expand_stmt, case BREAK_STMT): New case.
6708
6709 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
6710
6711 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
6712
6713 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
6714 procedure Set_Stack_Size that is not needed.
6715
6716 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
6717
6718 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
6719 used for gnatpp input file and for the files upon which it depends
6720
6721 2004-06-07 Ben Brosgol <brosgol@gnat.com>
6722
6723 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
6724
6725 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
6726
6727 * gnatvsn.ads: Bump version numbers appropriately.
6728 Add new build type.
6729
6730 2004-06-07 Pascal Obry <obry@gnat.com>
6731
6732 * gnat_ugn.texi: Improve comments about imported names and link names
6733 on Windows. Add a note about the requirement to use -k gnatdll's option
6734 when working with a DLL which has stripped stdcall symbols (no @nn
6735 suffix).
6736
6737 2004-05-27 Vincent Celier <celier@gnat.com>
6738
6739 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
6740 COMMENTS_LAYOUT=UNTOUCHED
6741
6742 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
6743 symbols-vms-alpha.adb
6744
6745 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
6746
6747 * sem.ads: Clarify documentation on checks suppression.
6748
6749 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
6750
6751 2004-05-27 Ed Schonberg <schonberg@gnat.com>
6752
6753 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
6754 the case of multiple derivations.
6755 (Is_Object_Reference): For a selected component, verify that the prefix
6756 is itself an object and not a value.
6757
6758 * sem_ch12.adb (Same_Instantiated_Constant): New name for
6759 Same_Instantiated_Entity.
6760 (Same_Instantiated_Variable): Subsidiary to
6761 Check_Formal_Package_Instance, to recognize actuals for in-out generic
6762 formals that are obtained from a previous formal package.
6763 (Instantiate_Subprogram_Body): Emit proper error when
6764 generating code and the proper body of a stub is missing.
6765
6766 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
6767 has a universal interpretation, do the disambiguation here.
6768
6769 * exp_ch4.adb (Expand_N_Type_Conversion,
6770 Expand_N_Unchecked_Type_Conversion): Special handling when target type
6771 is Address, to avoid typing anomalies when Address is a visible integer
6772 type.
6773
6774 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
6775 to determine whether a subprogram should not be marked Pure, even when
6776 declared in a pure package.
6777
6778 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
6779
6780 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
6781
6782 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
6783 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
6784 Update the documentation about the Ravenscar profile, following the
6785 definition found in AI-249.
6786
6787 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
6788 setting the Profile (Ravenscar). This must be done in addition to
6789 setting the required restrictions.
6790
6791 * rtsfind.ads: Add the set of operations defined in package
6792 Ada.Interrupts.
6793
6794 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
6795 restriction.
6796
6797 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
6798
6799 lang-specs.h: Always require -c or -S and always redirect to /dev/null
6800 if -gnatc or -gnats is passed.
6801
6802 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
6803
6804 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
6805 a significant reference. Warnings are now properly emitted when a
6806 discriminated type is not referenced.
6807
6808 * lib-xref.adb (Generate_Reference): A deferred constant completion,
6809 record representation clause or record type discriminant does not
6810 produce a reference to its corresponding entity. Warnings are now
6811 properly emitted when deferred constants and record types are not
6812 referenced.
6813
6814 2004-05-27 Geert Bosch <bosch@gnat.com>
6815
6816 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
6817 Fixes ACATS Annex G tests.
6818
6819 2004-05-27 Robert Dewar <dewar@gnat.com>
6820
6821 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
6822 handling WITH
6823
6824 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
6825
6826 * s-interr.adb (Server_Task): Take into account case of early return
6827 from sigwait under e.g. linux.
6828
6829 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
6830
6831 * gnat_ugn.texi: Add description for the new gnatpp options:
6832 -rnb - replace the original source without creating its backup copy
6833 -c0 - do not format comments
6834
6835 2004-05-24 Geert Bosch <bosch@gnat.com>
6836
6837 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
6838 with 192 bits of precision, sufficient to reduce a double-extended
6839 arguments X with a maximum relative error of T'Machine_Epsilon, for X
6840 in -2.0**32 .. 2.0**32.
6841 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
6842 reduction by the processor, which only uses a 68-bit approximation of
6843 Pi.
6844 (Tan): Always reduce arguments and compute function either using
6845 the processor's fptan instruction, or by dividing sin and cos as needed.
6846
6847 2004-05-24 Doug Rupp <rupp@gnat.com>
6848
6849 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
6850 gcc error on 32/64 bit VMS.
6851
6852 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
6853
6854 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
6855 since this is what we get for stack overflows although not documented
6856 as such.
6857 Document the issues which may require adjustments to our signal
6858 handlers.
6859
6860 2004-05-24 Ed Schonberg <schonberg@gnat.com>
6861
6862 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
6863 enclosing dynamic scope if the instantiation is within a generic unit.
6864
6865 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
6866
6867 * exp_dbug.ads: Fix typo.
6868
6869 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
6870 Rename it to its proper name: system-linux-ia64.ads
6871 (stamp-gnatlib1): Remove extra target specific run time files when
6872 setting up the rts directory.
6873
6874 2004-05-24 Javier Miranda <miranda@gnat.com>
6875
6876 * einfo.ads, einfo.adb (Limited_Views): Removed.
6877 (Limited_View): New attribute that replaces the previous one. It is
6878 now a bona fide package with the limited-view list through the
6879 first_entity and first_private attributes.
6880
6881 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
6882 limited-private-with clause.
6883 (Install_Limited_Withed_Unit): Install the private declarations of a
6884 limited-private-withed package. Update the installation of the shadow
6885 entities according to the new structure (see Build_Limited_Views)
6886 (Build_Limited_Views): Replace the previous implementation of the
6887 limited view by a package entity that references the first shadow
6888 entity plus the first shadow private entity (required for limited-
6889 private-with clause)
6890 (New_Internal_Shadow_Entity): Code cleanup.
6891 (Remove_Limited_With_Clause): Update the implementation to undo the
6892 new work carried out by Build_Limited_Views.
6893 (Build_Chain): Complete documentation.
6894 Replace Ada0Y by Ada 0Y in comments
6895 Minor reformating
6896
6897 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
6898 types the level of accessibility depends on the enclosing type
6899 declaration.
6900
6901 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
6902 entities. Complete documentation of previous change.
6903
6904 2004-05-24 Robert Dewar <dewar@gnat.com>
6905
6906 * namet.adb: Minor reformatting
6907 Avoid use of name I (replace by J)
6908 Minor code restructuring
6909
6910 * sem_ch6.adb: Minor reformatting
6911
6912 * lib-writ.adb: Do not set restriction as active if this is a
6913 Restriction_Warning case.
6914
6915 * sem_prag.adb: Reset restriction warning flag if real pragma
6916 restriction encountered.
6917
6918 * s-htable.adb: Minor reformatting
6919 Change rotate count to 3 in Hash (improves hash for small strings)
6920
6921 * 5qsystem.ads: Add comments for type Address (no literals allowed).
6922
6923 * gnat_ugn.texi: Add new section of documentation "Code Generation
6924 Control", which describes the use of -m switches.
6925
6926 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
6927
6928 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
6929 through the DECL_INITIAL for renamed variables.
6930
6931 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
6932
6933 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
6934
6935 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6936
6937 * exp_dbug.ads: Correct comments concerning handling of overloading,
6938 since we no longer use $ anymore.
6939
6940 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
6941
6942 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
6943 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
6944 with illegal subunits.
6945
6946 2004-05-19 Ed Schonberg <schonberg@gnat.com>
6947
6948 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
6949 body with front-end inlining enabled, check whether an inline pragma
6950 appears immediately after the body and applies to it.
6951
6952 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
6953 enabled and the pragma appears after the body of the subprogram.
6954
6955 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6956
6957 Part of function-at-a-time conversion
6958
6959 * misc.c (adjust_decl_rtl): Deleted.
6960 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
6961 Define.
6962
6963 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
6964 (add_decl_stmt, add_stmt, block_has_vars): New functions.
6965 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
6966
6967 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
6968 when making a decl.
6969 (gnat_to_gnu_entity): Likewise.
6970 Use add_stmt to update setjmp buffer.
6971 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
6972 flush_addressof.
6973 No longer call adjust_decl_rtl.
6974 (DECL_INIT_BY_ASSIGN_P): New macro.
6975 (DECL_STMT_VAR): Likewise.
6976
6977 * trans.c (gigi): Call start_block_stmt to make the outermost
6978 BLOCK_STMT.
6979 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
6980 Call start_block_stmt and end_block_stmt temporarily.
6981 Use gnat_expand_stmt instead of expand_expr_stmt.
6982 (add_decl_stmt): New function.
6983 (tree_transform): Call it.
6984 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
6985 (end_block_stmt): Set type and NULL_STMT.
6986 (gnat_expand_stmt): Make recursize call instead of calling
6987 expand_expr_stmt.
6988 (gnat_expand_stmt, case DECL_STMT): New case.
6989 (set_lineno_from_sloc): Do nothing if global.
6990 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
6991 (start_block_stmt, add_stmt, end_block_stmt): New functions.
6992 (build_block_stmt): Call them.
6993 (gnat_to_code): Don't expand NULL_STMT.
6994 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
6995 args.
6996 (tree_transform): Likewise.
6997 (tree_transform, case N_Null_Statement): Return NULL_STMT.
6998 (gnat_expand_stmt, case NULL_STMT): New case.
6999 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
7000 IF_STMT_TRUE.
7001
7002 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
7003 TREE_ADDRESSABLE.
7004
7005 * utils.c (create_var_decl): Do not call expand_decl or
7006 expand_decl_init.
7007 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
7008 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
7009 here.
7010 (struct e_stack): Add chain_next to GTY.
7011 (struct binding_level): Deleted.
7012 (struct ada_binding_level): New struct.
7013 (free_block_chain): New.
7014 (global_binding_level, clear_binding_level): Deleted.
7015 (global_bindings_p): Rework to see if no chain.
7016 (kept_level_p, set_block): Deleted.
7017 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
7018 new data structure and work directly on BLOCK node.
7019 (gnat_poplevel): Similarly.
7020 (get_decls): Look at BLOCK_VARS.
7021 (insert_block): Work directly on BLOCK node.
7022 (block_has_var): New function.
7023 (pushdecl): Rework for new binding structures.
7024 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
7025 poplevel.
7026 (build_subprog_body): Likewise.
7027 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
7028
7029 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
7030
7031 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
7032 (DECL_STMT_VAR): Likewise.
7033
7034 2004-05-17 Robert Dewar <dewar@gnat.com>
7035
7036 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
7037 procedure
7038
7039 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
7040 of restriction synonyums by using
7041 Restrict.Process_Restriction_Synonyms.
7042
7043 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
7044
7045 * s-restri.ads (Tasking_Allowed): Correct missing comment
7046
7047 * s-rident.ads: Add entries for restriction synonyms
7048
7049 * ali.adb: Fix some problems with badly formatted ALI files that can
7050 result in infinite loops.
7051
7052 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
7053 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
7054 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
7055 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
7056 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
7057 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
7058 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
7059 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
7060 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
7061 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
7062 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
7063 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
7064 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
7065 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
7066 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
7067 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
7068 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
7069 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
7070 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
7071 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
7072 to Task_Id (minor cleanup).
7073
7074 2004-05-17 Vincent Celier <celier@gnat.com>
7075
7076 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
7077 directory separator.
7078
7079 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
7080 project being extended, if Languages is not declared in extending
7081 project.
7082
7083 2004-05-17 Javier Miranda <miranda@gnat.com>
7084
7085 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
7086 limited view of a visible sibling.
7087
7088 2004-05-14 Robert Dewar <dewar@gnat.com>
7089
7090 * gnat_ugn.texi: Minor change to -gnatS documentation
7091
7092 * sprint.adb: Remove some instances of Assert (False) and for this
7093 purpose replace them by output of a ??? string.
7094
7095 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
7096 Assert (False).
7097
7098 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
7099 flag processing. This was suppressing required dependencies in
7100 No_Run_Time mode and is not needed since the binder does not generate
7101 references for things in libgnat anyway.
7102
7103 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
7104 warning.
7105
7106 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
7107
7108 * gnat_ugn.texi: Document AIX-specific issue with initialization of
7109 resolver library.
7110
7111 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
7112 action for the case of an actual parameter in an init proc call.
7113
7114 2004-05-14 Ed Schonberg <schonberg@gnat.com>
7115
7116 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
7117 subtype, check visible entities in base type.
7118
7119 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
7120 actions if the object is a renaming.
7121
7122 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
7123 Check_Formal_Package_Instance, to determine more precisely when the
7124 formal and the actual denote the same entity.
7125
7126 2004-05-14 Javier Miranda <miranda@gnat.com>
7127
7128 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
7129
7130 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
7131 corresponding to a private_with must be removed from visibility; it
7132 will be made visible later, just before we analyze the private part of
7133 the package.
7134 (Check_Private_Child_Unit): Allow private_with clauses in public
7135 siblings.
7136 (Install_Siblings): Make visible the private entities of private-withed
7137 siblings.
7138 (Install_Withed_Unit): Do not install the private withed unit if we
7139 are compiling a package declaration and the Private_With_OK flag was
7140 not set by the caller. These declarations will be installed later,
7141 just before we analyze the private part of the package.
7142
7143 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
7144 during the evaluation of the expression that initializes the object,
7145 decorate it with the expected type to avoid cascade errors.
7146 Code cleanup.
7147
7148 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
7149 subprogram we have to install the private_with clauses after its
7150 specification has been analyzed (as documented in AI-262.TXT).
7151
7152 * sem_ch8.adb (Has_Private_With): New function. Determines if the
7153 current compilation unit has a private with on a given entity.
7154 (Find_Direct_Name): Detect the Beaujolais problem described in
7155 AI-262.TXT
7156
7157 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
7158 provides the functionality of the function Is_Ancestor that was
7159 previously available in sem_ch10. It has been renamed to avoid
7160 overloading.
7161
7162 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
7163
7164 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7165
7166 * utils.c (build_vms_descriptor): Use SImode pointers.
7167
7168 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
7169
7170 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
7171
7172 2004-05-14 GNAT Script <nobody@gnat.com>
7173
7174 * Make-lang.in: Makefile automatically updated
7175
7176 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
7177
7178 Renaming of target specific files for clarity
7179
7180 * Makefile.in: Rename GNAT target specific files.
7181
7182 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
7183 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
7184 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
7185 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
7186 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
7187 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
7188 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
7189 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
7190 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
7191 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
7192 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
7193 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
7194 51osinte.adb, 51osinte.ads, 51system.ads,
7195 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
7196 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
7197 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
7198 56tpopsp.adb, 57system.ads, 58system.ads,
7199 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
7200 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
7201 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
7202 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
7203 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
7204 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
7205 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
7206 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
7207 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
7208 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
7209 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
7210 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
7211 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
7212 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
7213 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
7214 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
7215 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
7216 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
7217 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
7218 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
7219 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
7220 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
7221 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
7222 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
7223 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
7224 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
7225 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
7226 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
7227 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
7228 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
7229 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
7230 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
7231 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
7232 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
7233 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
7234 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
7235 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
7236 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
7237 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
7238 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
7239
7240 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
7241 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
7242 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
7243 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
7244 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
7245 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
7246 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
7247 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
7248 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
7249 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
7250 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
7251 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
7252 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
7253 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
7254 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
7255 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
7256 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
7257 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
7258 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
7259 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
7260 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
7261 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
7262 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
7263 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
7264 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
7265 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
7266 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
7267 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
7268 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
7269 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
7270 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
7271 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
7272 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
7273 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
7274 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
7275 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
7276 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
7277 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
7278 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
7279 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
7280 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
7281 s-osinte-vms.ads, s-osinte-vxworks.adb,
7282 s-osinte-vxworks.ads, s-osprim-mingw.adb,
7283 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
7284 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
7285 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
7286 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
7287 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
7288 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
7289 s-stchop-vxworks.adb, s-taprop-dummy.adb,
7290 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7291 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7292 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
7293 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7294 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
7295 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
7296 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
7297 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
7298 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
7299 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
7300 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
7301 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
7302 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
7303 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
7304 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
7305 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
7306 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
7307 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
7308 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
7309 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
7310 system-irix-o32.ads, system-linux-x86_64.ads,
7311 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
7312 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
7313 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
7314 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
7315 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
7316 system-vxworks-mips.ads, system-vxworks-ppc.ads,
7317 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
7318 above.
7319
7320 2004-05-13 Zack Weinberg <zack@codesourcery.com>
7321
7322 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
7323
7324 2004-05-13 Diego Novillo <dnovillo@redhat.com>
7325
7326 Merge from tree-ssa-20020619-branch.
7327
7328 * config-lang.in (boot_language, build_by_default): Set
7329 to no.
7330 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
7331 (max_size): Add static chain op for call_expr.
7332
7333 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
7334
7335 PR target/15331
7336 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
7337
7338 2004-05-11 Roger Sayle <roger@eyesopen.com>
7339
7340 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
7341 COND_EXPR.
7342
7343 2004-05-10 Doug Rupp <rupp@gnat.com>
7344
7345 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
7346 system.aux_dec.
7347
7348 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
7349
7350 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
7351
7352 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
7353 Fixes undefined symbols in IA64 gnatlib.
7354
7355 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
7356
7357 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
7358 Short_Address). This will be moved to system.auxdec.
7359
7360 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
7361
7362 * sem_util.adb: Replace test for presence of a node that is always
7363 present with a call to Discard_Node.
7364
7365 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
7366 Analyze on the library unit node after generation of distribution stub
7367 constructs. The call was a no-op because Unit_Node has already been
7368 Analyzed, and the tree fragments for the distribution stubs are
7369 analyzed as they are inserted in Exp_Dist.
7370 Update comment regarding to distribution stubs to reflect that we
7371 do not generate stub in separate files anymore.
7372
7373 * einfo.ads: Clarify the fact that a tagged private type has the
7374 E_Record_Type_With_Private Ekind.
7375
7376 * erroutc.adb: Minor reformatting
7377
7378 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
7379 values if line length is increased using -gnatyM (noticed during code
7380 reading).
7381
7382 * eval_fat.adb: Minor reformatting
7383 Put spaces around exponentiation operator
7384
7385 2004-05-10 Ed Schonberg <schonberg@gnat.com>
7386
7387 PR ada/15005
7388 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
7389 has been rewritten as an explicit dereference, retrieve type of
7390 original node to check for possibly unconstrained record type.
7391
7392 2004-05-10 Ed Schonberg <schonberg@gnat.com>
7393
7394 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
7395 overriding, use the operation of the parent unconditionally.
7396
7397 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
7398 operation when either operand is a literal, to avoid further
7399 ambiguities.
7400
7401 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
7402 overridden by a previous explicit declaration, mark the previous entity
7403 as overriding.
7404
7405 * sem_disp.adb (Check_Dispatching_Operation): New predicate
7406 Is_Visibly_Controlled, to determine whether a declaration of a
7407 primitive control operation for a derived type overrides an inherited
7408 one. Add warning if the explicit declaration does not override.
7409
7410 2004-05-10 Vincent Celier <celier@gnat.com>
7411
7412 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
7413 some cases when the sources are no longer present.
7414
7415 * make.adb (Collect_Arguments): Fail if an external source, not part
7416 of any project need to be compiled, when switch -x has not been
7417 specified.
7418
7419 * makeusg.adb: Document new switch -x
7420
7421 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
7422 defaulted to False.
7423
7424 * switch-m.adb (Scan_Make_Switches): New switch -x
7425
7426 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
7427 gnatmake switch -x.
7428
7429 * gnat_ugn.texi: Document new gnatmake switch -x
7430
7431 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
7432
7433 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
7434
7435 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
7436 (process_attributes): Likewise.
7437
7438 2004-05-10 Joel Brobecker <brobecker@gnat.com>
7439
7440 * s-inmaop.ads: Fix spelling mistake in one of the comments.
7441
7442 2004-05-10 Robert Dewar <dewar@gnat.com>
7443
7444 * gnat_ugn.texi: Document that for config pragma files, the maximum
7445 line length is always 32767.
7446
7447 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
7448 literals is now allowed.
7449
7450 * gnat-style.texi: Remove statement about splitting long lines before
7451 an operator rather than after, since we do not follow this rule at all.
7452 Clarify rule (really lack of rule) for spaces around exponentiation
7453
7454 * sem_elim.adb: Allow concatenation of string literals as well as a
7455 single string literal for pragma arguments.
7456
7457 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
7458
7459 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
7460 written for append case.
7461
7462 * frontend.adb: Changes to avoid checking max line length in config
7463 pragma files.
7464
7465 * g-os_lib.ads: Minor reformatting
7466
7467 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
7468 wrong in any case. Instead use standard value. Noticed during code
7469 reading.
7470
7471 * opt.ads (Max_Line_Length): New field, used to implement removal of
7472 limitation on length of lines when scanning config pragma files.
7473
7474 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
7475 makeutl.ads, makeutl.adb: Minor reformatting
7476
7477 * scn.adb: Do not check line length while scanning config pragma files
7478 Do not check line length while scanning out license information
7479
7480 * scng.adb: Changes to avoid line length checks while parsing config
7481 pragma files.
7482
7483 2004-05-10 GNAT Script <nobody@gnat.com>
7484
7485 * Make-lang.in: Makefile automatically updated
7486
7487 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
7488
7489 * osint.adb (Find_Program_Name): Fix handling of VMS version
7490 number.
7491
7492 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
7493
7494 * g-os_lib.ads (Invalid_Time): New constant
7495
7496 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
7497 return OS_Time instead of time_t to match what is imported by Ada.
7498 Now return -1 if the file doesn't exist, instead of a random value
7499
7500 2004-05-05 Robert Dewar <dewar@gnat.com>
7501
7502 * usage.adb: Add line for -gnatR?s switch
7503
7504 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
7505
7506 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
7507 and for Match (Data_First, Data_last)
7508
7509 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
7510 written when we are dealing with multi-unit files.
7511
7512 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
7513
7514 * Makefile.in: Remove unused targets and variables.
7515
7516 2004-05-05 Vincent Celier <celier@gnat.com>
7517
7518 * switch-m.adb: New gnatmake switch -eI
7519
7520 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
7521 of new gnatmake switch -eInnn.
7522
7523 * makegpr.adb: Take into account new parameters Index and Src_Index in
7524 Prj.Util.
7525
7526 * clean.adb: Implement support for multi-unit sources, including new
7527 switch -i.
7528
7529 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
7530 Src_Index.
7531
7532 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
7533 (Extract_From_Q): New out parameter Index
7534 (Mark, Is_Marked): Subprograms moved to Makeutl
7535 (Switches_Of): New parameter Source_Index
7536 (Add_Switch): New parameter Index
7537 (Check): New parameter Source_Index
7538 (Collect_Arguments): New parameter Source_Index
7539 (Collect_Arguments_And_Compile): New parameter Source_Index
7540 (Compile): New parameter Source_Index
7541 Put subprograms in alphabetical order
7542 Add support for multi-source sources, including in project files.
7543
7544 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
7545 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
7546 Make.
7547
7548 * makeusg.adb: New gnatmake switch -eInnn
7549
7550 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
7551 Prj.Util.Value_Of.
7552
7553 * opt.ads (Main_Index): New variable, defaulted to 0.
7554
7555 * osint.ads, osinte.adb (Add_File): New parameter Index
7556 (Current_Source_Index): New function
7557
7558 * prj.adb: Take into account new components Index and Src_Index
7559
7560 * prj.ads (String_Element): New component Index
7561 (Variable_Value): New component Index
7562 (Array_Element): New component Src_Index
7563
7564 * prj-attr.adb: Indicate that optional index may be specified for
7565 attributes Main, Executable, Spec, Body and some of Switches.
7566
7567 * prj-attr.ads (Attribute_Kind): New values for optional indexes
7568 (Attribute_Record): New component Optional_Index
7569
7570 * prj-com.ads (File_Name_Data): New component Index
7571
7572 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
7573
7574 * prj-env.adb (Put): Output optional index
7575
7576 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
7577 attributes Spec and Body.
7578
7579 * prj-nmsc.adb: Process optional indexes
7580
7581 * prj-pp.adb: Ouput "at" for optional indexes
7582
7583 * prj-proc.adb: Take into account optional indexes
7584
7585 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
7586 Optional_Index. For string literal,
7587 process optional index when Optional_Index is True.
7588 (Parse_Expresion): New Boolean parameter Optional_Index
7589
7590 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
7591 (Set_Source_Index_Of): New procedure
7592
7593 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
7594 index.
7595
7596 * prj-util.ads (Executable_Of): New parameter Index
7597 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
7598 New parameter Src_Index, defaulted to 0.
7599
7600 2004-05-05 Ed Schonberg <schonberg@gnat.com>
7601
7602 PR ada/15257
7603 * sem_ch3.adb (Access_Definition): If this is an access parameter
7604 whose designated type is imported through a limited_with clause, do
7605 not add the enclosing subprogram to the list of private dependents of
7606 the type.
7607
7608 2004-05-05 Ed Schonberg <schonberg@gnat.com>
7609
7610 PR ada/15258
7611 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
7612 a limited_with clause, and the other is its non-limited view.
7613
7614 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
7615
7616 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
7617
7618 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
7619 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
7620 Stand.Boolean_Literals to produce references to entities
7621 Standard_False and Standard_True from compile-time computed boolean
7622 values.
7623
7624 * stand.ads (Boolean_Literals): New variable, provides the entity
7625 values for False and True, for use by the expander.
7626
7627 2004-05-05 Doug Rupp <rupp@gnat.com>
7628
7629 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
7630 5vinmaop.adb: Unchecked convert Short_Address vice Address
7631
7632 * adaint.c, raise.c: Caste CRTL function return value
7633 to avoid gcc error on 32/64 bit IVMS.
7634
7635 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
7636 target = IA64/VMS.
7637
7638 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
7639
7640 * 5qsystem.ads (Address): Declare as Long_Integer
7641 (Short_Address): Declare as 32 bit subtype of Address
7642 Declare abstract address operations to avoid gratuitous ambiguities.
7643
7644 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
7645
7646 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
7647 instead of the old Boolean_Entry_Barriers.
7648 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
7649
7650 2004-05-05 GNAT Script <nobody@gnat.com>
7651
7652 * Make-lang.in: Makefile automatically updated
7653
7654 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
7655
7656 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
7657
7658 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
7659
7660 PR ada/15152
7661
7662 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
7663 alone. Replacing object references by literals is inappropriate in a
7664 so low level context.
7665
7666 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
7667
7668 * a-exexpr.adb: Add comments
7669
7670 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7671
7672 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
7673 declare the Ancestor_Tags array in Type_Specific_Data with a small size
7674 without risking a bounds check error when accessing one of its
7675 components.
7676 (Type_Specific_Data): Define Ancestor_Tags as a small array.
7677 This prevents us from hitting a limitation during the debug info
7678 generation when using stabs.
7679
7680 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
7681 small array.
7682 This prevents us from hitting a limitation during the debug info
7683 generation when using stabs.
7684
7685 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
7686
7687 lang-specs.h: Remove -gnatz* from specs.
7688
7689 2004-05-03 Vincent Celier <celier@gnat.com>
7690
7691 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
7692
7693 * Make-lang.in, Makefile.in: Add gprmake
7694
7695 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
7696
7697 * sem_aggr.adb: Fix typo in comment.
7698
7699 2004-05-03 Robert Dewar <dewar@gnat.com>
7700
7701 * make.adb: Minor reformatting
7702
7703 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
7704
7705 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
7706 so that it works when address is not a private type.
7707
7708 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
7709 properly with rewritten unchecked conversions. This prevents
7710 order-of-elaboration issues that can otherwise arise.
7711 (Minimum_Size): Don't check size of access types under VMS
7712
7713 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
7714 interpretations of integer literals as type System.Address.
7715
7716 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
7717 (Is_Descendent_Of): New function
7718
7719 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
7720
7721 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
7722 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
7723 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
7724
7725 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
7726 of the old Max_Entry_Queue_Depth.
7727
7728 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
7729 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
7730 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
7731
7732 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
7733 New entry for proper handling of Max_Entry_Queue_Depth.
7734 New entry for proper handling of No_Dynamic_Interrupts.
7735
7736 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
7737 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
7738 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
7739 the GNAT specific restriction Max_Entry_Queue_Depth.
7740 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
7741 the GNAT specific restriction No_Dynamic_Interrupts.
7742
7743 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
7744 instead of the old Boolean_Entry_Barriers.
7745 Use the new restriction No_Dynamic_Attachment instead of the old
7746 No_Dynamic_Interrupts.
7747
7748 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
7749 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
7750
7751 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
7752 of the old Max_Entry_Queue_Depth.
7753
7754 2004-05-03 GNAT Script <nobody@gnat.com>
7755
7756 * Make-lang.in: Makefile automatically updated
7757
7758 2004-04-29 Ed Schonberg <schonberg@gnat.com>
7759
7760 * checks.adb (Enable_Range_Check): If the prefix of an index component
7761 is an access to an unconstrained array, perform check unconditionally.
7762
7763 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7764
7765 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
7766 Component_Clause.
7767
7768 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
7769
7770 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
7771 alternate stack setting. There was no support for the tasking cases
7772 and the changes eventually caused a number of side-effect failures in
7773 the non-tasking case too.
7774
7775 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
7776
7777 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
7778 -gnats is passed.
7779
7780 2004-04-29 Vincent Celier <celier@gnat.com>
7781
7782 * make.adb (Gnatmake): Increase max size of argument array for
7783 gnatbind for the potential addition of -F.
7784 If there are Stand-Alone Library projects, invoke gnatbind with -F to
7785 be sure that elaboration flags will be checked.
7786
7787 * switch-c.adb: Correct call to Scan_Pos for -gnateI
7788
7789 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
7790
7791 * sem_warn.adb (Check_References): Move '<access-variable> may be
7792 null' warning out of under Warn_On_No_Value_Assigned.
7793
7794 2004-04-29 Ed Falis <falis@gnat.com>
7795
7796 * gnat_ugn.texi: Fixed texi error
7797
7798 2004-04-29 Robert Dewar <dewar@gnat.com>
7799
7800 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
7801 abstract operations if they come from predefined files.
7802
7803 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
7804 Dynamic, not RM).
7805
7806 * s-addope.adb: Correct obvious error in mod function
7807
7808 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
7809
7810 * Makefile.in: Add target pairs for powerpc darwin*
7811 tasking support.
7812
7813 * a-intnam-darwin.ads, s-osinte-darwin.adb,
7814 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
7815
7816 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7817
7818 * Makefile.in: Add target macro definitions for s390*-linux*.
7819 * system-linux-s390.ads: New file.
7820 * system-linux-s390x.ads: New file.
7821
7822 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
7823
7824 * gnat_ugn.texi: Correct argument to @setfilename.
7825
7826 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7827
7828 * a-exexpr.adb (Unwind_Word): New data type.
7829 (Unwind_Exception): Use it as type of Private1 and Private2.
7830
7831 * raise.c (db_action_for): Fix debug printf.
7832
7833 2004-04-27 Ed Schonberg <schonberg@gnat.com>
7834
7835 * a-wtmoio.ads: Formal type must be a modular type, not a signed
7836 integer type.
7837
7838 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7839
7840 * decl.c (gnat_to_gnu_entity, case object): Call
7841 __builtin_update_setjmp_buf.
7842
7843 * gigi.h (update_setjmp_buf): Deleted.
7844 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
7845
7846 * misc.c: (update_setjmp_buf): Deleted.
7847
7848 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
7849 around block of RTL.
7850
7851 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
7852
7853 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
7854
7855 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
7856 subprogram for which no pragma All_Calls_Remote applies, store the
7857 address of the real subprogram in the underlying record type, so local
7858 dereferences do not go through the PCS.
7859
7860 2004-04-26 Robert Dewar <dewar@gnat.com>
7861
7862 * i-c.ads: Add some type qualifications to avoid ambiguities when
7863 compiling with s-auxdec.ads and a non-private address type.
7864
7865 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
7866
7867 * Makefile.rtl: Fix error in previous check-in:
7868 Add s-addope.o to non tasking object list (rather than tasking object
7869 list).
7870
7871 2004-04-26 Javier Miranda <miranda@gnat.com>
7872
7873 * sem_aggr.adb: Fix typo in comments
7874 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
7875 Required to check the null-exclusion attribute.
7876
7877 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
7878 case of anonymous access types in record and array components. For a
7879 component definition the level is the same of the enclosing composite
7880 type.
7881
7882 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
7883 that are anonymous access types the level of accessibility depends on
7884 the enclosing type declaration. In order to have this information, set
7885 the scope of the anonymous access type to the enclosing record type
7886 declaration.
7887 (Array_Type_Declaration): In case of components that are anonymous
7888 access types the level of accessibility depends on the enclosing type
7889 declaration. In order to have this information, set the scope of the
7890 anonymous access type to the enclosing array type declaration.
7891
7892 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
7893 access type.
7894
7895 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
7896 renaming of anonymous access-to-constant types allowed if and only if
7897 the renamed object is access-to-constant.
7898
7899 * sem_util.adb (Type_Access_Level): In case of anonymous access types
7900 that are component_definition or discriminants of a nonlimited type,
7901 the level is the same as that of the enclosing component type.
7902
7903 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
7904
7905 * sem_elim.adb: Some minor code reorganization from code reading. Fix
7906 misprint in the function name (File_Name_Match).
7907
7908 2004-04-23 Laurent GUERBY <laurent@guerby.net>
7909
7910 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
7911 install.
7912
7913 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7914
7915 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
7916
7917 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
7918
7919 * adaint.c (__gnat_try_lock): No longer requires that the parent
7920 directory be writable, the directory itself is enough.
7921 (gnat_is_absolute_path): Change profile, so that the call from
7922 GNAT.OS_Lib can be made more efficient.
7923
7924 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
7925 from GNAT.OS_Lib can be made more efficient.
7926
7927 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
7928 one copy of the file name. Found by code reading.
7929
7930 2004-04-23 Vincent Celier <celier@gnat.com>
7931
7932 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
7933 Correct documentation on gnatmake switches transmitted to the compiler
7934
7935 * ali.ads: Minor comment fix
7936
7937 2004-04-23 Javier Miranda <miranda@gnat.com>
7938
7939 * sem_ch6.adb: (Confirming Types): Code cleanup
7940
7941 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
7942 subprogram types: E_Anonymous_Access_Subprogram_Type and
7943 E_Anonymous_Access_Protected_Subprogram_Type.
7944
7945 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
7946
7947 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
7948 whether a pragma All_Calls_Remote applies to the subprogram on which
7949 'Access is taken.
7950 No functional change is introduced by this revision; the new parameter
7951 will be used to allow calls to local RCI subprograms to be optimized
7952 to not use the PCS in the case where no pragma All_Calls_Remote applies,
7953 as is already done in the PolyORB implementation of the DSA.
7954
7955 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
7956 whether a pragma All_Calls_Remote applies to the subprogram on which
7957 'Access is taken.
7958 No functional change is introduced by this revision; the new parameter
7959 will be used to allow calls to local RCI subprograms to be optimized
7960 to not use the PCS in the case where no pragma All_Calls_Remote applies,
7961 as is already done in the PolyORB implementation of the DSA.
7962
7963 2004-04-23 Robert Dewar <dewar@gnat.com>
7964
7965 * Makefile.rtl: Add entry for s-addope.o in run time library list
7966 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
7967 * s-addope.ads, s-addope.adb: New files.
7968
7969 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
7970 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7971 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
7972 System.Address to be non-private and signed.
7973
7974 * sem_elim.adb: Minor reformatting (fairly extensive)
7975 Some minor code reorganization from code reading
7976 Add a couple of ??? comments
7977
7978 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7979
7980 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
7981 (tree_transform, case N_If_Statement): Remove non-determinism.
7982
7983 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
7984
7985 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
7986
7987 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
7988 Eliminate' section.
7989
7990 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
7991 no longer used as a parameter name for Eliminate pragma).
7992
7993 2004-04-22 Laurent GUERBY <laurent@guerby.net>
7994
7995 PR optimization/14984
7996 PR optimization/14985
7997 * trans.c (gigi): Fix non determinism leading to bootstrap
7998 comparison failures.
7999
8000 2004-04-21 Pascal Obry <obry@gnat.com>
8001
8002 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
8003 passed to spawnvp() to properly handle program pathname with spaces on
8004 Win32.
8005
8006 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
8007
8008 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
8009 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
8010 unlocked in case of exceptions.
8011
8012 2004-04-21 Joel Brobecker <brobecker@gnat.com>
8013
8014 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
8015 This function does not exist anymore.
8016
8017 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
8018
8019 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
8020
8021 * link.c: Move variables to the __gnat name space.
8022
8023 * Makefile.in: list link.o explicitly when needed.
8024
8025 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
8026
8027 2004-04-21 Javier Miranda <miranda@gnat.com>
8028
8029 * einfo.adb (Original_Access_Type): New subprogram
8030 (Set_Original_Access_Type): New subprogram
8031 (Write_Field21_Name): Write the name of the new field
8032
8033 * einfo.ads (Original_Access_Type): New field present in access to
8034 subprogram types.
8035 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
8036 E_Anonymous_Access_Protected_Subprogram_Type.
8037
8038 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
8039 subprogram types.
8040
8041 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
8042 to anonymous access to subprogram types.
8043
8044 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
8045 to subprogram types.
8046
8047 * sem_ch3.adb (Access_Definition): Complete decoration of entities
8048 corresponding to anonymous access to subprogram types.
8049 (Analyze_Component_Declaration): Add new actual to the call to
8050 subprogram replace_anonymous_access_to_protected_subprogram.
8051 (Array_Type_Declaration): Add new actual to the call to subprogram
8052 replace_anonymous_access_to_protected_subprogram.
8053 (Process_Discriminants): Add new actual to the call to subprogram
8054 replace_anonymous_access_to_protected_subprogram.
8055 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
8056
8057 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
8058 formal.
8059
8060 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
8061 access to subprogram types.
8062
8063 * sem_util.adb (Has_Declarations): Addition of package_specification
8064 nodes.
8065
8066 2004-04-21 Ed Schonberg <schonberg@gnat.com>
8067
8068 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
8069 inlined flags to renamed entity only if in current unit.
8070
8071 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
8072
8073 * s-parint.ads: Add DSA implementation marker.
8074
8075 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
8076 value of System.Partition_Interface.DSA_Implementation to determine
8077 what version of the distributed systems annex is available (no
8078 implementation, GLADE, or PolyORB).
8079
8080 2004-04-21 Joel Brobecker <brobecker@gnat.com>
8081
8082 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
8083
8084 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8085
8086 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
8087 with new type if alias sets differ.
8088 Fixes ACATS c41103b.
8089
8090 2004-04-21 Vincent Celier <celier@gnat.com>
8091
8092 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
8093 Add array Lang_Args for the language specific compiling argument
8094 switches.
8095
8096 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
8097
8098 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
8099
8100 * gnat_rm.texi: Update the descripton of the Eliminate pragma
8101 according to the recent changes in the format of the parameters of the
8102 pragma (replacing Homonym_Number with Source_Location).
8103
8104 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
8105
8106 * 5isystem.ads: Removed, unused.
8107
8108 * gnat_rm.texi: Redo 1.13 change.
8109
8110 2004-04-19 Robert Dewar <dewar@gnat.com>
8111
8112 * s-stoele.ads: Clean up definition of Storage_Offset (the new
8113 definition is cleaner, avoids the kludge of explicit Standard operator
8114 references, and also is consistent with a visible System.Address with
8115 no visible operations.
8116
8117 * s-geveop.adb: Add declarations to avoid assumption of visible
8118 operations on type System.Address (since these might not be available
8119 if Address is a non-private type for which the operations
8120 are made abstract).
8121
8122 * sem_eval.adb: Minor reformatting
8123
8124 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
8125 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
8126 reformatting (new function spec format).
8127
8128 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
8129 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
8130 s-caun64.adb: Add declarations to avoid assumption of visible
8131 operations on type System.Address (since these might not be available
8132 if Address is a non-private type for which the operations are made
8133 abstract).
8134
8135 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
8136
8137 * exp_intr.adb: Minor comment update
8138
8139 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
8140
8141 * 5omastop.adb: Add declarations to avoid assumption of visible
8142 operations on type System.Address (since these might not be available
8143 if Address is a non-private type for which the operations
8144 are made abstract).
8145
8146 2004-04-19 Vincent Celier <celier@gnat.com>
8147
8148 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
8149
8150 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
8151 defaulted to Ada.
8152
8153 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
8154 defaulted to Ada.
8155 Call Check with Process_Languages.
8156 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
8157 with Process_Languages.
8158 (Recursive_Check): New Boolean parameter Process_Languages. Call
8159 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
8160 Process_Languages.
8161
8162 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
8163
8164 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
8165 parameter Ada_Main, defaulted to True.
8166 Check for Ada specific characteristics only when Ada_Main is True.
8167
8168 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
8169
8170 * prj.adb: (Project_Empty): Add new Project_Data components.
8171
8172 * prj.ads: New types and tables for non Ada languages.
8173 (Project_Data): New components Languages, Impl_Suffixes,
8174 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
8175 Include_Path, Include_Data_Set.
8176
8177 * prj-env.ads, prj-env.adb: Minor reformatting
8178
8179 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
8180 Put subprograms in alphabetical order
8181
8182 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
8183 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
8184 Opt.Follow_Links.
8185
8186 * mlib-prj.adb: Back out modification in last version, as they are
8187 incorrect.
8188 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
8189
8190 * make.adb: (Mains): Moved to package Makeutl
8191 (Linker_Opts): Moved to package Makeutl
8192 (Is_External_Assignment): Moved to package Makeutl
8193 (Test_If_Relative_Path): Moved to package Makeutl
8194 (Gnatmake): Move sorting of linker options to function
8195 Makeutl.Linker_Options_Switches.
8196
8197 * makeutl.ads, makeutl.adb: New files.
8198
8199 * Makefile.in: Add makeutl.o to the object files for gnatmake
8200
8201 * makeusg.adb: Add line for new switch -eL.
8202
8203 * gnatls.adb (Image): New function.
8204 (Output_Unit): If in verbose mode, output the list of restrictions
8205 specified by pragmas Restrictions.
8206
8207 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
8208 Text_IO.
8209
8210 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
8211 needed, to put it in the range 1970 (included) - 2026 (excluded).
8212 (Time_Of): Do not shift Unix_Min_Year (1970).
8213 Shift the date by multiple of 56 years, if needed, to put it in the
8214 range 1970 (included) - 2026 (excluded).
8215
8216 * adaint.h, adaint.c (__gnat_set_executable): New function.
8217
8218 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8219
8220 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
8221 and pop GC context.
8222 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
8223 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
8224 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
8225 (tree_transform, case N_Code_Statement): Likewise.
8226 (gnat_expand_stmt, case LABEL_STMT): Don't look at
8227 LABEL_STMT_FIRST_IN_EH.
8228 (gnat_expand_stmt, case ASM_STMT): New case.
8229
8230 * utils2.c (build_unary_op): Properly set TREE_READONLY of
8231 UNCONSTRAINED_ARRAY_REF.
8232
8233 * utils.c (poplevel): Temporarily push/pop GC context around inline
8234 function expansion.
8235
8236 * decl.c (maybe_variable): Properly set TREE_READONLY of
8237 UNCONSTRAINED_ARRAY_REF.
8238 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
8239
8240 * ada-tree.def: (ASM_STMT): New.
8241
8242 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
8243 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
8244 ASM_STMT_INPUT): New.
8245 (ASM_STMT_CLOBBER): Likewise.
8246
8247 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
8248
8249 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
8250 general rcheck mechanism to raise Program_Error for E.4(18), instead
8251 of a custom raiser in System.Partition_Interface.
8252 Part of general cleanup work before PolyORB integration.
8253
8254 * snames.ads, snames.adb: Add new runtime library entities and names
8255 for PolyORB DSA.
8256
8257 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
8258 exp_dist.
8259 (Build_Subprogram_Id): New subprogram provided by exp_dist
8260 Code reorganisation in preparation for PolyORB integration.
8261
8262 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
8263 exp_dist.
8264 (Build_Subprogram_Id): New subprogram provided by exp_dist
8265
8266 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
8267 actual parameter types for call to dereference of an
8268 access-to-subprogram type.
8269
8270 * rtsfind.ads: Add new runtime library entities and names for PolyORB
8271 DSA.
8272
8273 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
8274 instead, which has the same behaviour here since we never pass it a
8275 NULL pointer.
8276
8277 * link.c (run_path_option, Solaris case): Use -Wl, as for other
8278 platforms.
8279
8280 * Makefile.in: adjust object file lists for gnatlink and gnatmake
8281 to account for new dependency upon Interfaces.C.Strings + link.o
8282 For x86 FreeBSD, use 86numaux.
8283
8284 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
8285 from Mlib.Tgt to Mlib.
8286
8287 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
8288 target-independent.
8289
8290 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
8291 target-specific versions of this subprogram, now implemented as a
8292 target-independent function in Mlib.
8293
8294 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
8295 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
8296 (Linker_Library_Path_Option): Remove target-specific versions of this
8297 subprogram, now implemented as a target-independent function in Mlib.
8298
8299 * atree.adb: (Allocate_Initialize_Node): New subprogram.
8300 Factors out node table slots allocation.
8301 (Fix_Parents): New subprogram.
8302 Encapsulate the pattern of fixing up parent pointers for syntactic
8303 children of a rewritten node.
8304 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
8305 (Rewrite): Use New_Copy when creating saved copy of original node.
8306 (Replace): Use Copy_Node to copy nodes.
8307
8308 2004-04-19 Javier Miranda <miranda@gnat.com>
8309
8310 * sprint.adb (Sprint_Node_Actual): Give support to the new
8311 Access_To_Subprogram node available in Access_Definition nodes. In
8312 addition, give support to the AI-231 node fields: null-exclusion,
8313 all-present, constant-present.
8314
8315 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
8316
8317 * sinfo.ads, sinfo.adb:
8318 New field Access_To_Subprogram_Definition in Access_Definition nodes
8319
8320 * sem_ch6.adb (Process_Formals): Move here the code that creates and
8321 decorates internal subtype declaration corresponding to the
8322 null-excluding formal. This code was previously in Set_Actual_Subtypes.
8323 In addition, carry out some code cleanup on this code. In case of
8324 access to protected subprogram call
8325 Replace_Anonymous_Access_To_Protected_Subprogram.
8326 (Set_Actual_Subtypes): Code cleanup.
8327
8328 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
8329 Find_Type in case of anonymous access renamings. Add warning in case of
8330 null-excluding attribute used in anonymous access renaming.
8331
8332 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
8333 subprogram
8334
8335 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
8336 subprogram.
8337 (Access_Definition): In case of anonymous access to subprograms call
8338 the corresponding semantic routine to decorate the node.
8339 (Access_Subprogram_Declaration): Addition of some comments indicating
8340 some code that probably should be added here. Detected by comparison
8341 with the access_definition subprogram.
8342 (Analyze_Component_Declaration): In case of access to protected
8343 subprogram call Replace_Anonymous_Access_To_Protected.
8344 (Array_Type_Declaration): In case of access to protected subprogram call
8345 Replace_Anonymous_Access_To_Protected_Subprogram.
8346 (Process_Discriminants): In case of access to protected subprogram call
8347 Replace_Anonymous_Access_To_Protected_Subprogram.
8348
8349 * par.adb (P_Access_Definition): New formal that indicates if the
8350 null-exclusion part was present.
8351 (P_Access_Type_Definition): New formal that indicates if the caller has
8352 already parsed the null-excluding part.
8353
8354 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
8355 (P_Identifier_Declarations): Code cleanup and give support to renamings
8356 of anonymous access to subprogram types.
8357 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
8358 (P_Array_Type_Definition): Give support to AI-254.
8359 (P_Component_Items): Give support to AI-254.
8360 (P_Access_Definition): New formal that indicates if the header was
8361 already parsed by the caller.
8362 (P_Access_Type_Definition): New formal that indicates if the caller has
8363 already parsed the null-excluding part.
8364
8365 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
8366 call to P_Access_Definition.
8367
8368 2004-04-19 Geert Bosch <bosch@gnat.com>
8369
8370 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
8371 the delicate semantics of floating-point to integer conversion.
8372 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
8373
8374 * eval_fat.adb (Machine_Mantissa): Moved to spec.
8375 (Machine_Radix): New function.
8376
8377 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
8378 conversion checks.
8379 (Machine_Radix): New function also for use in conversion checks.
8380
8381 2004-04-19 Ed Schonberg <schonberg@gnat.com>
8382
8383 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
8384
8385 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
8386 to decorate the access-to-protected subprogram and the equivalent type.
8387
8388 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
8389 to anonymous access to subprogram types.
8390
8391 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
8392 constant-folding, for legality checks in contexts that require an RM
8393 static expression.
8394
8395 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
8396 temporary but stack checking is not enabled, increment serial number
8397 to so that symbol generation is consistent with and without stack
8398 checking.
8399
8400 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
8401 independent on whether stack checking is enabled, caller must check
8402 the corresponding flag.
8403
8404 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
8405 range checks.
8406 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
8407 parent if it has discriminants.
8408 (Build_Derived_Private_Type): Constructed full view does
8409 not come from source.
8410 (Process_Discriminants): Default discriminants on a tagged type are
8411 legal if this is the internal completion of a private untagged
8412 derivation.
8413
8414 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
8415 no constraint checks, because it corresponds to an existing object.
8416
8417 * sem_prag.adb (Process_Convention): Pragma applies
8418 only to subprograms in the same declarative part, i.e. the same unit,
8419 not the same scope.
8420
8421 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
8422 ignore type mismatch on a numeric conversion if expression comes from
8423 expansion.
8424
8425 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
8426
8427 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
8428 Homonym_Number parameter, add processing for Source_Location parameter
8429 corresponding.
8430 (Check_Eliminated): Remove the check for homonym numbers, add the check
8431 for source location traces.
8432
8433 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
8434 with Arg_Source_Location corresponding to the changes in the format of
8435 the pragma.
8436
8437 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
8438 Eliminate pragma corresponding to the changes in the format of the
8439 pragma: Homonym_Number is replaced with Source_Location, two ways of
8440 distinguishing homonyms are mutially-exclusive.
8441
8442 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8443
8444 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
8445
8446 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
8447 No_Dollar_In_Label, no longer necessary, as it is always True.
8448 (Strip_Suffixes): Likewise.
8449
8450 2004-04-19 Gary Dismukes <dismukes@gnat.com>
8451
8452 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
8453 modulus for compatibility with size clause on targets with 16-bit
8454 Integer.
8455
8456 * layout.adb (Discrimify): In the case of private types, set Vtyp to
8457 full type to fix type mismatches on calls to size functions for
8458 discriminant-dependent array components.
8459
8460 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
8461
8462 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
8463 lib.
8464
8465 2004-04-19 Pascal Obry <obry@gnat.com>
8466
8467 * mdll-utl.adb (Locate): New version is idempotent.
8468
8469 2004-04-17 Laurent Guerby <laurent@guerby.net>
8470
8471 PR ada/14988 (partial)
8472 * impunit.adb: Fix typo.
8473
8474 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
8475
8476 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
8477 and install-rts-cert targets. Remove all gnatlib and gnattools
8478 targets and all other rts-* targets (moved to libada). Remove (now)
8479 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
8480 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
8481
8482 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8483
8484 * trans.c (tree_transform): Shortcut returning error_mark_node for
8485 statements in annotate_only_mode.
8486 (tree_transform, case N_Label, case N_Return_Statement,
8487 N_Goto_Statement): Make statement tree instead of generating code.
8488 (tree_transform, case N_Assignment_Statement): No longer check
8489 type_annotate_only.
8490 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
8491 RETURN_STMT): New.
8492 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
8493 New fcns.
8494 (gnat_to_gnu): Collect any RTL generated and deal with it.
8495 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
8496 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
8497 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
8498
8499 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
8500
8501 * ada-tree.def (EXPR_STMT): Fix typo in name.
8502 (BLOCK_STMT, IF_STMT): New nodes.
8503
8504 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
8505 LABEL_STMT_FIRST_IN_EH): New macros.
8506 (RETURN_STMT_EXPR): Likewise.
8507
8508 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
8509 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
8510
8511 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
8512
8513 * atree.ads: Correct documentation on extended nodes.
8514
8515 * link.c: Set run_path_option for FreeBSD.
8516
8517 2004-04-08 Vincent Celier <celier@gnat.com>
8518
8519 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
8520 one of the ALI file, do not link with DEC lib.
8521
8522 * par.adb Remove the last two characters ("%s" or "%b") when checking
8523 if a language defined unit may be recompiled.
8524
8525 2004-04-08 Ed Schonberg <schonberg@gnat.com>
8526
8527 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
8528 removal of abstract operation leaves no possible interpretation for
8529 expression.
8530
8531 * sem_eval.adb (Eval_Qualified_Expression): Use
8532 Set_Raises_Constraint_Error on node when needed, so that it does not
8533 get optimized away by subsequent optimizations.
8534
8535 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
8536 operands even when they are not wrapped in a type conversion.
8537
8538 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
8539
8540 * sem_prag.adb (Set_Exported): Warn about making static as result of
8541 export only when the export is coming from source. This may be not
8542 be true e.g. on VMS where we expand export pragmas for exception codes
8543 together with imported or exported exceptions, and we don't want the
8544 user to be warned about something he didn't write.
8545
8546 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
8547
8548 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
8549 duplication between normal entities and those declared as renamings.
8550 No functional change.
8551
8552 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
8553 inline functions returning an unconstrained result.
8554
8555 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
8556
8557 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
8558 conform to what other front-ends do.
8559
8560 2004-04-08 Doug Rupp <rupp@gnat.com>
8561
8562 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
8563 libraries.
8564
8565 2004-04-06 Pascal Obry <obry@gnat.com>
8566
8567 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
8568
8569 * osint.adb (Program_Name): Do not look past a directory separator.
8570
8571 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
8572
8573 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
8574
8575 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
8576 requirement for preserving a copy of the original assignment node.
8577
8578 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
8579
8580 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
8581
8582 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
8583 when supported.
8584
8585 2004-04-06 Ed Schonberg <schonberg@gnat.com>
8586
8587 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
8588 operator calls in functional notation, and apply
8589 Universal_Interpretation to operands, not to their type.
8590
8591 2004-04-06 Robert Dewar <dewar@gnat.com>
8592
8593 * 5wdirval.adb: Minor reformatting
8594
8595 2004-04-06 Ed Falis <falis@gnat.com>
8596
8597 * gnat_rm.texi: Improve a reference to the GCC manual
8598
8599 2004-04-05 Vincent Celier <celier@gnat.com>
8600
8601 * adaint.h, adaint.c: Add function __gnat_named_file_length
8602
8603 * impunit.adb: Add Ada.Directories to the list
8604
8605 * Makefile.in: Add VMS and Windows versions of
8606 Ada.Directories.Validity package body.
8607
8608 * Makefile.rtl: Add a-direct and a-dirval
8609
8610 * mlib-tgt.ads: Minor comment update.
8611
8612 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
8613 a-direct.ads, a-direct.adb: New files.
8614
8615 2004-04-05 Vincent Celier <celier@gnat.com>
8616
8617 PR ada/13620
8618 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
8619 just to the compiler.
8620
8621 2004-04-05 Robert Dewar <dewar@gnat.com>
8622
8623 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
8624 returned string is 1.
8625
8626 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
8627
8628 * eval_fat.ads: Minor reformatting
8629
8630 * g-curexc.ads: Document that lower bound of returned string values
8631 is always one.
8632
8633 * gnatlink.adb: Add ??? comment for previous change
8634 (need to document why this is VMS specific)
8635
8636 * s-stoele.ads: Minor reformatting
8637
8638 * tbuild.ads: Minor reformatting throughout (new function specs)
8639
8640 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
8641 after WITH.
8642
8643 * scng.adb: Minor reformatting
8644
8645 2004-04-05 Geert Bosch <bosch@gnat.com>
8646
8647 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
8648 (Leading_Part): Still perform truncation to machine number if the
8649 specified radix_digits is greater or equal to machine_mantissa.
8650
8651 2004-04-05 Javier Miranda <miranda@gnat.com>
8652
8653 * par-ch3.adb: Complete documentation of previous change
8654 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
8655 (aliased must appear before constant).
8656
8657 * par-ch4.adb: Complete documentation of previous change.
8658
8659 * par-ch6.adb: Complete documentation of previous change.
8660
8661 * sinfo.ads: Fix typo in commment.
8662
8663 2004-04-05 Ed Schonberg <schonberg@gnat.com>
8664
8665 * sem_ch3.adb (Inherit_Components): If derived type is private and has
8666 stored discriminants, use its discriminants to constrain parent type,
8667 as is done for non-private derived record types.
8668
8669 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
8670 Ada 2005 AI-310: an abstract non-dispatching operation is not a
8671 candidate interpretation in an overloaded call.
8672
8673 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
8674 expression is Null and target type is not an access type (e.g. a
8675 non-private address type).
8676
8677 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
8678
8679 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
8680 statement whose right-hand side is an inlined call, save a copy of the
8681 original assignment subtree to preserve enough consistency for
8682 Analyze_Assignment to proceed.
8683
8684 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
8685 complete assignment subtree which is now unnecessary, as the expansion
8686 of inlined call has been improved to preserve a consistent assignment
8687 tree. Note_Possible_Modification must be called only
8688 after checks have been applied, or else unnecessary checks will
8689 be generated.
8690
8691 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
8692 of explicit dereferences that do not Come_From_Source:
8693 - be selective on cases where we must go back to the dereferenced
8694 pointer (an assignment to an implicit dereference must not be
8695 recorded as modifying the pointer);
8696 - do not rely on Original_Node being present (Analyze_Assignment
8697 calls Note_Possible_Modification on a copied tree).
8698
8699 * sem_warn.adb (Check_References): When an unset reference to a pointer
8700 that is never assigned is encountered, prefer '<pointer> may be null'
8701 warning over '<pointer> is never assigned a value'.
8702
8703 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
8704
8705 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
8706 the ABI.
8707
8708 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
8709
8710 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
8711 libexc. We currently don't reference anything in this library and
8712 linking it in triggers linker warnings we don't want to see.
8713
8714 * init.c: Update comments.
8715
8716 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8717
8718 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
8719 * utils.c (create_field_decl): Likewise.
8720 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
8721
8722 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
8723
8724 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
8725 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
8726 Add info directory entry and category.
8727
8728 2004-04-02 Jan Hubicka <jh@suse.cz>
8729
8730 * utils.c: Include function.h
8731 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
8732
8733 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
8734
8735 PR ada/14150
8736 * Make-lang.in: Clean up generation of documentation
8737
8738 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
8739
8740 * xgnatug.adb: Removed, replaced by xgnatugn.adb
8741
8742 * xgnatugn.adb: Replaces xgnatug.adb
8743
8744 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
8745
8746 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
8747
8748 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8749 gnat_ug_wnt.texi: Removed.
8750
8751 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
8752
8753 * utils2.c: Update copyright notice.
8754
8755 2004-04-01 Robert Dewar <dewar@gnat.com>
8756
8757 * checks.adb: Minor reformatting throughout
8758 Note that prev checkin added RM reference to alignment warning
8759
8760 2004-04-01 Ed Schonberg <schonberg@gnat.com>
8761
8762 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
8763 non-static when building aggregate for bit-packed array.
8764
8765 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
8766 function call that is itself the actual in a procedure call, build
8767 temporary for it.
8768
8769 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
8770 a string literal, create a temporary for it, constant folding only
8771 handles scalars here.
8772
8773 2004-04-01 Vincent Celier <celier@gnat.com>
8774
8775 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
8776 Error_Msg_SP): New empty procedures to instantiate the Scanner.
8777 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
8778 tokens.
8779 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
8780 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
8781 and get the checksum.
8782
8783 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
8784 already in the Q.
8785 Increase the Marking_Label at the end of the Multiple_Main_Loop,
8786 instead of at the beginning.
8787
8788 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
8789 directly.
8790 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
8791 on VMS.
8792
8793 * osint.ads (Multi_Unit_Index_Character): New Character global variable
8794
8795 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
8796 not '~' directly.
8797
8798 * par.adb: Remove test on file name to detect language defined units.
8799 Add test on unit name, after parsing, to detect language defined units
8800 that are not compiled with -gnatg (except System.RPC and its children)
8801
8802 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
8803 following units without style checking.
8804
8805 * switch-c.adb: Change -gnatC to -gnateI
8806
8807 * usage.adb: Document new switch -gnateInnn
8808
8809 * scng.adb (Accumulate_Token_Checksum): New procedure
8810 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
8811 word or literal number.
8812 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
8813 numbers.
8814
8815 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
8816
8817 * a-tasatt.adb,
8818 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
8819 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
8820 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
8821 5vtpopde.adb: Add missing 'constant' keywords.
8822
8823 2004-04-01 Javier Miranda <miranda@gnat.com>
8824
8825 * par-ch4.adb: (P_Allocator): Code cleanup
8826
8827 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
8828 attribute.
8829
8830 * sinfo.ads: Complete documentation of previous change
8831
8832 2004-04-01 Pascal Obry <obry@gnat.com>
8833
8834 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
8835 only on VMS. This special handling was done because an old GNU/ld bug
8836 on Windows which has been fixed.
8837
8838 2004-04-01 GNAT Script <nobody@gnat.com>
8839
8840 * Make-lang.in: Makefile automatically updated
8841
8842 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8843
8844 * decl.c (gnat_to_gnu_entity, make_type_from_size):
8845 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
8846 * trans.c (tree_transform, convert_with_check): Likewise.
8847 * utils.c (gnat_signed_or_unsigned_type): Likewise.
8848 (build_vms_descriptor, unchecked_convert): Likewise.
8849 * utils2.c (nonbinary_modular_operation): Likewise.
8850
8851 2004-03-29 Javier Miranda <miranda@gnat.com>
8852
8853 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
8854 (Install_Null_Excluding_Check): Local subprogram that determines whether
8855 an access node requires a runtime access check and if so inserts the
8856 appropriate run-time check.
8857 (Apply_Access_Check): Call Install_Null_Excluding check if required
8858 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
8859
8860 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
8861
8862 * einfo.ads: Fix typo in comment
8863
8864 * exp_ch3.adb (Build_Assignment): Generate conversion to the
8865 null-excluding type to force the corresponding run-time check.
8866 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
8867 type to force the corresponding run-time check.
8868
8869 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
8870 the null-excluding type to force the corresponding run-time check.
8871
8872 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
8873 case of access types unless they have the null-excluding attribute.
8874
8875 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
8876 part.
8877
8878 * exp_util.ads: Fix typo in comment
8879
8880 * par.adb (P_Null_Exclusion): New subprogram
8881 (P_Subtype_Indication): New formal that indicates if the null-excluding
8882 part has been scanned-out and it was present
8883
8884 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
8885
8886 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
8887 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
8888 type to force the corresponding run-time check
8889 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
8890 components
8891 (Resolve_Array_Aggregate): Carry out some static checks
8892 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
8893
8894 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
8895 attribute must be set only if specified by means of the null-excluding
8896 part. In addition, we must also propagate the access-constant attribute
8897 if present.
8898 (Access_Subprogram_Declaration, Access_Type_Declaration,
8899 Analyze_Component_Declaration, Analyze_Object_Declaration,
8900 Array_Type_Declaration, Process_Discriminants,
8901 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
8902 and carry out some static checks.
8903 (Build_Derived_Access_Type): Set the null-excluding attribute
8904 (Derived_Type_Declaration, Process_Subtype): Carry out some static
8905 checks.
8906
8907 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
8908
8909 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
8910
8911 * sem_ch6.adb (Process_Formals): Carry out some static checks.
8912 (Set_Actual_Subtypes): Generate null-excluding subtype if the
8913 null-excluding part was present; it is not required to be done here in
8914 case of anonymous access types.
8915 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
8916 value.
8917
8918 * sem_res.adb (Resolve_Actuals): Carry out some static check
8919 (Resolve_Null): Allow null in anonymous access
8920
8921 * sinfo.adb: New subprogram Null_Exclusion_Present
8922 All_Present and Constant_Present available on access_definition nodes
8923
8924 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
8925 object_declaration, derived_type_definition, component_definition,
8926 discriminant_specification, access_to_object_definition,
8927 access_function_definition, allocator, access_procedure_definition,
8928 access_definition, parameter_specification, All_Present and
8929 Constant_Present flags available on access_definition nodes.
8930
8931 2004-03-29 Robert Dewar <dewar@gnat.com>
8932
8933 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
8934 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
8935 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
8936 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
8937 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
8938 sem_prag.adb: Updates to handle multiple units/file
8939
8940 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
8941
8942 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
8943 sem_util.adb: Minor reformatting
8944
8945 * sem_ch12.adb: Add comment for previous change
8946
8947 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
8948
8949 * osint.adb (Executable_Prefix): Set Exec_Name to the current
8950 executable name when not initialized. Otherwise, use its current value.
8951
8952 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
8953 initialize it to another executable name than the current one. This
8954 allows to configure paths for an executable name (gnatmake) different
8955 from the current one (gnatdist).
8956
8957 2004-03-29 Ed Schonberg <schonberg@gnat.com>
8958
8959 * exp_ch6.adb (Expand_Call): A call to a function declared in the
8960 current unit cannot be inlined if it appears in the body of a withed
8961 unit, to avoid order of elaboration problems in gigi.
8962
8963 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
8964 information for protected (wrapper) operation as well, to simplify gdb
8965 use.
8966
8967 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
8968 protected body, indicate that the entity for the generated spec comes
8969 from source, to ensure that references are properly generated for it.
8970 (Build_Body_To_Inline): Do not inline a function that returns a
8971 controlled type.
8972
8973 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
8974 apply convention to homonyms that are declared explicitly.
8975
8976 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
8977 that renames an equality operator and the operands are overloaded,
8978 resolve them with the declared formal types, before rewriting as an
8979 operator.
8980
8981 2004-03-29 GNAT Script <nobody@gnat.com>
8982
8983 * Make-lang.in: Makefile automatically updated
8984
8985 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
8986
8987 * memtrack.adb: Log realloc calls, which are treated as free followed
8988 by alloc.
8989
8990 2004-03-25 Vincent Celier <celier@gnat.com>
8991
8992 * prj-makr.adb (Process_Directories): Detect when a file contains
8993 several units. Do not include such files in the config pragmas or
8994 in the naming scheme.
8995
8996 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
8997 Resolve links only when not in Trusted_Mode.
8998 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
8999 Do not resolve links for the display names.
9000
9001 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
9002 resolve links when computing the display names.
9003
9004 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
9005
9006 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
9007 attribute reference does not denote a subtype, it can be any
9008 expression that has a classwide type, potentially after an implicit
9009 dereference. In particular, the prefix can be a view conversion for
9010 a classwide type (for which Is_Object_Reference holds), but it can
9011 also be a value conversion for an access-to-classwide type. In the
9012 latter case, there is an implicit dereference, and the original node
9013 for the prefix does not verify Is_Object_Reference.
9014
9015 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
9016 conversion of a discriminant-dependent component of a mutable object
9017 is one itself.
9018
9019 2004-03-25 Ed Schonberg <schonberg@gnat.com>
9020
9021 * freeze.adb (Freeze_Entity): When an inherited subprogram is
9022 inherited, has convention C, and has unconstrained array parameters,
9023 place the corresponding warning on the derived type declaration rather
9024 than the original subprogram.
9025
9026 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
9027 indication on renaming declaration, if formal has a box and actual
9028 is absent.
9029
9030 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
9031 determine whether to generate an implicit or explicit reference to
9032 the renamed entity.
9033
9034 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
9035 subprogram renaming comes from a defaulted formal subprogram in an
9036 instance.
9037
9038 2004-03-25 Gary Dismukes <dismukes@gnat.com>
9039
9040 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
9041 value expressions to ensure that calls within a component definition
9042 will be checked (since those are evaluated during the record type's
9043 elaboration).
9044
9045 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
9046
9047 * s-tpobop.adb: Code clean up:
9048 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
9049 code.
9050 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
9051
9052 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
9053
9054 * Makefile.in: Clean up in the ravenscar run time.
9055
9056 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9057
9058 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
9059 of No_Strict_Aliasing to build_pointer_type_for_mode.
9060 * utils.c (update_pointer_to): Walk pointer and ref chains.
9061
9062 2004-03-22 Cyrille Comar <comar@act-europe.fr>
9063
9064 * ali.ads: Fix Comment about Dynamic_Elab.
9065
9066 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
9067 Has_RACW, Is_Generic, etc.)
9068 (Output_Object, Gnatls): Take into account ALI files not attached to
9069 an object.
9070
9071 2004-03-22 Vincent Celier <celier@gnat.com>
9072
9073 * gprep.adb: Change all String_Access to Name_Id
9074 (Is_ASCII_Letter): new function
9075 (Double_File_Name_Buffer): New procedure
9076 (Preprocess_Infile_Name): New procedure
9077 (Process_Files): New procedure
9078 (Gnatprep): Check if output and input are existing directories.
9079 Call Process_Files to do the real job.
9080
9081 2004-03-22 Robert Dewar <dewar@gnat.com>
9082
9083 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
9084 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
9085
9086 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
9087
9088 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
9089 case when the source contains only comments.
9090
9091 2004-03-22 Ed Schonberg <schonberg@gnat.com>
9092
9093 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
9094 declaration for a child subprogram body that acts as a spec, indicate
9095 that the entity in the declaration needs debugging information.
9096
9097 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
9098 full view if the subtype is created for a constrained record component;
9099 gigi has enough information to construct the record, and there is no
9100 place in the tree for the declaration.
9101
9102 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
9103 serial number for the dummy body that is built for analysis, to avoid
9104 inconsistencies in the generation of internal names when compiling
9105 with -gnatN.
9106
9107 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
9108
9109 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
9110 object.
9111
9112 2004-03-22 GNAT Script <nobody@gnat.com>
9113
9114 * Make-lang.in: Makefile automatically updated
9115
9116 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9117
9118 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9119 * trans.c (tree_transform, emit_index_check): Likewise.
9120 * utils.c (build_template): Likewise.
9121 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
9122 (maybe_unconstrained_array, unchecked_convert): Likewise.
9123 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
9124 (build_unary_op): Likewise.
9125 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9126 (fill_vms_descriptor): Likewise.
9127 (build_call_alloc_dealloc): Likewise.
9128 ALIGN is unsigned.
9129 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
9130
9131 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9132
9133 PR other/14630
9134 * gnat_ug.texi: Add info directory category and entry.
9135 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9136 gnat_ug_wnt.texi: Regenerate.
9137
9138 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
9139
9140 * ada-tree.h: Update copyright notice.
9141 Minor reformatting.
9142
9143 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
9144
9145 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
9146 as regular exception objects and not as mere integers representing the
9147 condition code. The latter approach required some dynamics to mask off
9148 severity bits, which did not fit well into the GCC table based model.
9149 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
9150 exception data objects. We don't it and it would conflict with the other
9151 external symbol we have to generate for such exceptions.
9152
9153 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
9154 the special code for VMS exceptions, since these are now represented
9155 as regular exceptions objects.
9156
9157 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9158
9159 * decl.c (debug_no_type_hash): Remove.
9160 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
9161 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
9162
9163 2004-03-19 Laurent Guerby <laurent@guerby.net>
9164
9165 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
9166 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
9167
9168 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9169
9170 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
9171 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
9172 (TYPE_RM_SIZE_INT): Directly use type.values.
9173 (TREE_LOOP_ID): Clean up check.
9174 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
9175 TYPE_VALUES, not TYPE_FIELDS.
9176 * trans.c (convert_with_check): Delay access of bounds of basetype
9177 until sure is numeric.
9178
9179 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
9180
9181 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
9182
9183 Code clean up:
9184 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
9185 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
9186 Specific.Set instead of direct call to e.g pthread_setspecific.
9187
9188 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
9189
9190 * adaint.c: Update comments.
9191
9192 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
9193 GNATLIB_SHARED for FreeBSD.
9194
9195 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
9196
9197 * init.c [VxWorks]: Do not fix the stack size for the environment task.
9198 When needed (stack checking) the stack size is retrieved
9199 from the VxWorks kernel.
9200
9201 * Makefile.in: Flag -nostdinc is required when building the run time
9202 for avoiding looking for files in the base compiler.
9203 Add the VxWorks specific version of the package body for
9204 System.Stack_checking.Operations (5zstchop.adb).
9205
9206 * Make-lang.in: Add the object file for
9207 System.Stack_Checking.Operations.
9208
9209 * Makefile.rtl: Add object file for the package
9210 System.Stack_Checking.Operations.
9211
9212 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
9213
9214 * s-stache.ads, s-stache.adb: Move the operations related to stack
9215 checking from this package to package System.Stack_Checking.Operations.
9216 This way, stack checking operations are only linked in the final
9217 executable when using the -fstack-check flag.
9218
9219 2004-03-18 Doug Rupp <rupp@gnat.com>
9220
9221 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
9222 Reorganize ifeq's.
9223
9224 * 5qsystem.ads, 5xcrtl.ads: New files.
9225
9226 2004-03-18 Vincent Celier <celier@gnat.com>
9227
9228 * prj.adb (Reset): Reset hash table Files_Htable
9229
9230 * prj-env.adb (Source_Paths, Object_Paths): New tables.
9231 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
9232 the procedures Add_To_Path_File.
9233 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
9234 making sure that each directory is present only once and, for object
9235 dirs, when a directory already present is added, the duplicate is
9236 removed and the directory is always put as the last in the table.
9237 Write the path files at the end of these accumulations.
9238
9239 * prj-nmsc.adb (Record_Source): Add source file name in hash table
9240 Files_Htable for all sources.
9241
9242 * prj-proc.adb (Process): Remove restrictions between not directly
9243 related extending projects.
9244
9245 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
9246
9247 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
9248 (Find_Sources): Minor speed optimization.
9249
9250 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
9251 parameter Trusted_Mode.
9252
9253 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
9254
9255 * scn.adb (Determine_License): Take into account a degenerated case
9256 when the source contains only comments.
9257
9258 2004-03-18 Ed Schonberg <schonberg@gnat.com>
9259
9260 * sem_warn.adb (Check_References): For a warning on a selected
9261 component that does not come from source, locate an uninitialized
9262 component of the record type to produce a more precise error message.
9263
9264 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
9265
9266 * 3zsoccon.ads: Fix multicast options.
9267
9268 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
9269 in the spec.
9270
9271 2004-03-15 Robert Dewar <dewar@gnat.com>
9272
9273 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
9274 pragma used for a private type.
9275
9276 * lib-xref.adb (Generate_Reference): Do not generate warning if
9277 reference is in a different unit from the pragma Unreferenced.
9278
9279 * 5vtpopde.adb: Minor reformatting
9280 Fix casing of To_Task_ID
9281
9282 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
9283 flag if we have an unchecked conversion to an access type in the same
9284 unit.
9285
9286 2004-03-15 Geert Bosch <bosch@gnat.com>
9287
9288 * a-ngcoty.adb (Modulus): In alternate formula for large real or
9289 imaginary parts, use Double precision throughout.
9290
9291 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
9292 we want to be able to compile run-time with -gnata for testing, but
9293 this may also be instantiated in user code that is compiled with -gnata.
9294
9295 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
9296
9297 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
9298 codes. Having a separate type for this is useful to enforce consistency
9299 throughout the various run-time units.
9300 (Exception_Data): Use Exception_Code for Import_Code.
9301
9302 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
9303 Natural and Integer in various places.
9304 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
9305 with the severity bits masked off.
9306 (Register_VMS_Exception): Handle the additional exception data pointer
9307 argument.
9308
9309 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
9310 component, now reflected by an exported accessor.
9311 (is_handled_by): New routine to compute whether the propagated
9312 occurrence matches some handler choice specification. Extracted out of
9313 get_action_description_for, and expanded to take care of the VMS
9314 specifities.
9315 (get_action_description_for): Use is_handled_by instead of an explicit
9316 complex condition to decide if the current choice at hand catches the
9317 propagated occurrence.
9318
9319 * raise.h (Exception_Code): New type for C.
9320
9321 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
9322 System.Standard_Library.Exception_Code, to allow references from the
9323 pragma import/export expander.
9324
9325 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
9326 New accessors to allow easy access to GNAT exception data
9327 characteristics.
9328 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
9329 redundant Handled_By_Others component, helper for the personality
9330 routine which will now be able to call the appropriate exception data
9331 accessor instead.
9332
9333 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
9334 component of Standard_Exception_Type to be the closest possible to
9335 Exception_Code in System.Standard_Library, that we cannot get at this
9336 point. Expand a ??? comment to notify that this type node should
9337 probably be rewritten later on.
9338
9339 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
9340 registration call to include a pointer to the exception object in the
9341 arguments.
9342
9343 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
9344 instead of int and explicit bitmasks.
9345
9346 2004-03-15 Vincent Celier <celier@gnat.com>
9347
9348 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
9349 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
9350
9351 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
9352 longer needed now that it is in the spec of
9353 System.Tasking.Task_Attributes.
9354
9355 * adaint.h, adaint.c: (__gnat_create_output_file): New function
9356
9357 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
9358
9359 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
9360
9361 * make.adb (Gnatmake): Do not check the executable suffix; it is being
9362 taken care of in Scan_Make_Arg.
9363 (Scan_Make_Arg): Add the executable suffix only if the argument
9364 following -o, in canonical case, does not end with the executable
9365 suffix. When in verbose mode and executable file name does not end
9366 with executable suffix, output the executable name, in canonical case.
9367
9368 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
9369 to avoid warnings when instantiating Ada.Task_Attributes.
9370 Minor reformating.
9371
9372 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
9373 in the correct order.
9374
9375 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
9376 redirect standard output and error to a file for the invocation of the
9377 compiler, then read the file.
9378
9379 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
9380 directory, instead of the Value.
9381 (Find_Source_Dirs): Remove useless code & comments.
9382
9383 2004-03-15 Ed Schonberg <schonberg@gnat.com>
9384
9385 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
9386 tagged type is inherited, and the parent operation is not frozen yet,
9387 force generation of a freeze node for the inherited operation, so the
9388 corresponding dispatch entry is properly initialized.
9389 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
9390 when looking for user-defined equality operation.
9391
9392 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
9393 boolean when locating primitive equality of tagged component.
9394
9395 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
9396 bit-aligned field and the right-hand side a string literal, introduce
9397 a temporary before expanding assignment into a loop.
9398
9399 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
9400 priority in full, to ensure that any expanded subepxressions of it are
9401 elaborated in the scope of the init_proc.
9402
9403 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
9404 after object declaration, skipping over code that may have been
9405 generated for validity checks.
9406
9407 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
9408 discriminants, ignore the known discriminants of its full view, if
9409 any, to check legality.
9410
9411 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
9412 component if type has unknown discriminants.
9413 (Analyze_Private_Extension_Declaration): Discriminant constraint is
9414 null if type has unknown discriminants.
9415
9416 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
9417 for end label when present.
9418
9419 * s-fileio.adb (Open): When called with a C_Stream, use given name for
9420 temporary file, rather than an empty string.
9421
9422 2004-03-15 Ed Falis <falis@gnat.com>
9423
9424 * s-thread.adb: Removed, no longer used.
9425
9426 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9427
9428 * decl.c (target.h): Now include.
9429 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
9430 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
9431 (validate_size): For POINTER_TYPE, get smallest size permitted on
9432 machine.
9433
9434 * fe.h: Sort Einfo decls and add Set_Mechanism.
9435
9436 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
9437 (ada/decl.o): Depends on target.h.
9438
9439 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
9440 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
9441
9442 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
9443
9444 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
9445
9446 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
9447 Insert_Dereference_Action when rewriting an implicit dereference into
9448 an explicit one, this will be taken care of during expansion of the
9449 explicit dereference.
9450 (Expand_N_Slice): Same. Always do the rewriting, even for the case
9451 of non-packed slices, since the dereference action generated by
9452 expansion of the explicit dereference is needed in any case.
9453 (Expand_N_Selected_Component): When rewriting an implicit dereference,
9454 analyze and resolve the rewritten explicit dereference so it is seen
9455 by the expander.
9456 (Insert_Dereference_Action): This procedure is now called only for the
9457 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
9458 dereferences that do not come from source (including explicit
9459 dereferences resulting from rewriting implicit ones), but do not
9460 recursively insert a check for the dereference nodes contained within
9461 the check.
9462 (Insert_Dereference_Action): Clarify and correct comment.
9463
9464 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
9465
9466 PR ada/14131
9467 Move language detection to the top level.
9468 * config-lang.in: Build by default.
9469
9470 2004-03-05 Robert Dewar <dewar@gnat.com>
9471
9472 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
9473
9474 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
9475 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
9476 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
9477 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
9478 unchecked conversion to spec to avoid warnings.
9479
9480 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
9481 to Task_ID
9482
9483 * 7stpopsp.adb: Correct casing in To_Task_ID call
9484
9485 * a-strsea.ads, a-strsea.adb: Minor reformatting
9486
9487 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
9488
9489 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
9490 Adjust Max_Msg_Length to be clearly large enough.
9491
9492 * fe.h: Define In_Same_Source_Unit
9493
9494 * osint.adb: Add pragma Warnings Off to suppress warnings
9495 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
9496 aliasing warnings.
9497
9498 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
9499
9500 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
9501
9502 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
9503
9504 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
9505
9506 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
9507
9508 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
9509 node. We now do generate them for gcc back end.
9510
9511 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
9512 warning.
9513
9514 * sinput-c.adb: Fix bad name in header.
9515 Add pragma Warnings Off to suppress aliasing warning.
9516
9517 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
9518
9519 * snames.h, snames.ads, snames.adb: Add entry for pragma
9520 No_Strict_Aliasing.
9521
9522 2004-03-05 Vincent Celier <celier@gnat.com>
9523
9524 * prj-com.ads: Add hash table Files_Htable to check when a file name
9525 is already a source of another project.
9526
9527 * prj-nmsc.adb (Record_Source): Before recording a new source, check
9528 if its file name is not already a source of another project. Report an
9529 error if it is.
9530
9531 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
9532 source file name, call gnatpp with all the sources of the main project.
9533
9534 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
9535 of file names.
9536
9537 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
9538 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
9539 /RUNTIME_SYSTEM=, converted to --RTS=
9540 /NOTABS, converted to -notabs
9541
9542 2004-03-05 Pascal Obry <obry@gnat.com>
9543
9544 * make.adb: Minor reformatting.
9545
9546 2004-03-05 Ed Schonberg <schonberg@gnat.com>
9547
9548 Part of implemention of AI-262.
9549 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
9550
9551 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
9552 procedure.
9553
9554 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
9555 when component type is a partially constrained class-wide subtype.
9556 (Constrain_Discriminated_Type): If parent type has unknown
9557 discriminants, a constraint is illegal, even if full view has
9558 discriminants.
9559 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
9560 with unknown discriminants whose full view is a discriminated record.
9561
9562 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
9563 flag, to handle properly derivations of tagged types with unknown
9564 discriminants.
9565 (Analyze_Package_Spec, Analyze_Package_Body): Install
9566 Private_With_Clauses before analyzing private part or body.
9567
9568 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
9569 Has_Discriminants can be true for a given type (documentation).
9570
9571 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
9572
9573 * s-restri.ads: Fix license (GPL->GMGPL).
9574
9575 * s-tassta.adb: Minor reformatting.
9576
9577 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
9578 by calls to Exit_One_ATC_Level, since additional clean up is performed
9579 by this function.
9580
9581 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
9582 by calls to Exit_One_ATC_Level, since additional clean up is performed
9583 by this function.
9584
9585 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9586
9587 * trans.c: Reflect GCC changes to fix bootstrap problem.
9588 Add warning for suspicious aliasing unchecked conversion.
9589
9590 2004-03-05 GNAT Script <nobody@gnat.com>
9591
9592 * Make-lang.in: Makefile automatically updated
9593
9594 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
9595
9596 * ali.adb (Read_Instantiation_Instance): Do not modify the
9597 current_file_num when reading information about instantiations, since
9598 this corrupts files in later references.
9599
9600 2004-03-02 Vincent Celier <celier@gnat.com>
9601
9602 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
9603 before checking if it is read-only.
9604
9605 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
9606 of SRC_DIRS and eliminate duplicates.
9607
9608 * gprcmd.adb: Replace command "path" with command "path_sep" to return
9609 the path separator.
9610 (Usage): Document path_sep
9611
9612 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
9613 C++ compiler. No need for a script.
9614 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
9615 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
9616 subst.
9617
9618 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
9619 where there are Ada sources.
9620 (Set_Ada_Paths): Only add to the include path the source dirs of project
9621 with Ada sources.
9622 (Add_To_Path): Add the Display_Values of the directories, not their
9623 Values.
9624
9625 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
9626 data.
9627
9628 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
9629 is not No_Name.
9630 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
9631 Value is canonicalized.
9632 (Language_Independent_Check): Do not copy Value to Display_Value when
9633 canonicalizing Value.
9634
9635 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
9636 path to find limited with cycles.
9637 (Parse_Single_Project): Use canonical cased path to find the end of a
9638 with cycle.
9639
9640 2004-03-02 Ed Schonberg <schonberg@gnat.com>
9641
9642 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
9643 and not a child unit.
9644
9645 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
9646 appear in a with_clause.
9647
9648 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
9649 only happen in type_annotate mode, do not try to elaborate it.
9650
9651 * exp_util.adb (Force_Evaluation): If expression is a selected
9652 component on the left of an assignment, use a renaming rather than a
9653 temporary to remove side effects.
9654
9655 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
9656 inlined instance body, which is analyzed before the end of the
9657 enclosing scope.
9658
9659 2004-03-02 Robert Dewar <dewar@gnat.com>
9660
9661 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
9662 sem_ch4.adb: Use new feature for substitution of keywords in VMS
9663
9664 * errout.ads, errout.adb: Implement new circuit for substitution of
9665 keywords in VMS.
9666
9667 * sem_case.adb (Analyze_Choices): Place message properly when case is
9668 a subtype reference rather than an explicit range.
9669
9670 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
9671
9672 2004-03-02 Doug Rupp <rupp@gnat.com>
9673
9674 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
9675
9676 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
9677
9678 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
9679
9680 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9681
9682 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
9683 BLKmode bitfield.
9684
9685 2004-02-25 Robert Dewar <dewar@gnat.com>
9686
9687 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
9688 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
9689 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
9690 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
9691 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
9692 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
9693 the defining instance of the type to avoid aliasing problems.
9694 Fix copyright header. Fix bad comments in package header.
9695
9696 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
9697
9698 2004-02-25 Ed Schonberg <schonberg@gnat.com>
9699
9700 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
9701 rewritten as references when aliased through an address clause.
9702
9703 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
9704 whether call can be interpreted as an indirect call to the result of a
9705 parameterless function call returning an access subprogram.
9706
9707 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
9708
9709 Code clean up:
9710 * exp_ch7.adb (Make_Clean): Remove generation of calls to
9711 Unlock[_Entries], since this is now done by Service_Entries directly.
9712
9713 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
9714
9715 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
9716 Requeue_Call for better code readability. Change spec and update calls:
9717 PO_Service_Entries now unlock the PO on exit.
9718 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
9719 PO_Service_Entries.
9720
9721 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
9722
9723 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
9724
9725 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
9726
9727 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
9728 protected subprogram call and analyzing the result of such expanding
9729 in case when the called protected subprogram is eliminated.
9730
9731 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
9732 names.
9733
9734 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
9735
9736 * Makefile.in: Clean ups.
9737
9738 2004-02-23 Ed Schonberg <schonberg@gnat.com>
9739
9740 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
9741 protected operations if original subprogram is flagged as eliminated.
9742 (Expand_N_Subprogram_Body): For a protected operation, create
9743 discriminals for next operation before checking whether the operation
9744 is eliminated.
9745
9746 * exp_ch9.adb (Expand_N_Protected_Body,
9747 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
9748 for internal protected operations if the original subprogram is
9749 eliminated.
9750
9751 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
9752 declared in a single protected object.
9753
9754 2004-02-23 Vincent Celier <celier@gnat.com>
9755
9756 * prj-attr.adb: Make attribute Builder'Executable an associative array,
9757 case insensitive if file names are case insensitive, instead of a
9758 standard associative array.
9759
9760 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
9761 them as case insensitive on platforms where the file names are case
9762 sensitive.
9763
9764 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
9765 project file has already been parsed that canonical path are compared.
9766
9767 2004-02-23 Robert Dewar <dewar@gnat.com>
9768
9769 * sinput-c.ads: Correct bad unit title in header
9770
9771 * freeze.adb: Minor reformatting
9772
9773 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9774
9775 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
9776 nonaddressable COMPONENT_REF that is removing padding that we are
9777 taking the address of, take the address of the padded record instead
9778 if item is variable size.
9779
9780 2004-02-20 Robert Dewar <dewar@gnat.com>
9781
9782 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
9783
9784 2004-02-20 Ed Schonberg <schonberg@gnat.com>
9785
9786 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
9787 itype references for the constrained designated type of a component
9788 whose base type is already frozen.
9789
9790 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
9791
9792 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
9793 avoid GCC warnings.
9794
9795 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
9796
9797 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
9798 identifier for a phantom package that rewrites the formal package
9799 declaration with a box. The Add semantic decorations for the defining
9800 identifier from the original node (that represents the formal package).
9801
9802 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
9803
9804 * Make-lang.in (ada/stamp-sdefault): Use the top level
9805 move-if-change.
9806
9807 2004-02-19 Richard Henderson <rth@redhat.com>
9808
9809 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
9810
9811 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
9812
9813 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
9814 Scan_ALI can be used for multiple ALI files without reinitializing
9815 between calls.
9816
9817 2004-02-18 Robert Dewar <dewar@gnat.com>
9818
9819 * debug.adb: Minor reformatting.
9820
9821 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9822
9823 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
9824 to zero if there is an address clause.
9825
9826 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
9827
9828 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
9829
9830 2004-02-18 Gary Dismukes <dismukes@gnat.com>
9831
9832 * layout.adb (Layout_Component_List): Revise generation of call to
9833 discriminant-checking function to pass selections of all of the type's
9834 discriminants rather than just the variant-controlling discriminant.
9835
9836 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
9837
9838 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
9839 fail in the current setup and triggers spurious system error messages.
9840 Pretend it occurred and failed instead.
9841
9842 2004-02-18 Vincent Celier <celier@gnat.com>
9843
9844 * bld.adb: Mark FLDFLAGS as saved
9845 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
9846 it is not the root project. Put each directory to be
9847 extended between double quotes to prevent it to be expanded on Windows.
9848 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
9849 the project file. Set them back to their initial values if they have not
9850 been set in the project file.
9851
9852 * gprcmd.adb: (Gprdebug, Debug): New global variables
9853 (Display_Command): New procedure
9854 (Usage): Document new command "linkopts"
9855 Call Display_Command when env var GPRDEBUG has the value "TRUE"
9856 Implement new command "linkopts"
9857 Remove quotes that may be around arguments for "extend"
9858 Always call Normalize_Pathname with arguments formatted for the platform
9859
9860 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
9861 Change @echo to @$(display) in target clean to be able to clean silently
9862
9863 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
9864
9865 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
9866 canonical case.
9867
9868 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
9869 = Extending_All when current project is an extending all project.
9870
9871 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
9872 set to True only for LINK command, after Unix switch -o.
9873 (Process_Arguments): Set Output_File_Expected to True for LINK command
9874 after Unix switch -o. When Output_File_Expected is True, never add an
9875 extension to a file name.
9876
9877 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
9878 option file name, only to the --for-linker= switch.
9879 (Option_File_Name): If option file name do not end with ".opt", append
9880 "/OPTIONS".
9881
9882 2004-02-18 GNAT Script <nobody@gnat.com>
9883
9884 * Make-lang.in: Makefile automatically updated
9885
9886 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
9887
9888 * Make-lang.in (stamp-sdefault): Do not depend on
9889 move-if-change.
9890
9891 2004-02-12 Zack Weinberg <zack@codesourcery.com>
9892
9893 * config-lang.in: Disable Ada by default until probe logic for
9894 a bootstrap Ada compiler can be moved to the top level configure
9895 script.
9896
9897 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
9898
9899 * decl.c (components_to_record): Don't claim that the internal fields
9900 we make to hold the variant parts are semantically addressable, because
9901 they are not.
9902
9903 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
9904 adjust the comment describing the modular type form when we can use it.
9905 (Install_PAT): Account for the Esiz renaming.
9906
9907 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
9908 sc_onstack context indication before raising the exception to which
9909 the signal is mapped. Allows better handling of later signals possibly
9910 triggered by the resumed user code if the exception is handled.
9911
9912 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
9913
9914 * 5zinit.adb: Removed, no longer used.
9915
9916 2004-02-12 Robert Dewar <dewar@gnat.com>
9917
9918 * ali.adb: Remove separating space between parameters on R line. Makes
9919 format consistent with format used by the binder for Set_Globals call.
9920
9921 * atree.ads, atree.adb: Minor reformatting (new function header format)
9922
9923 * bindgen.adb: Add Run-Time Globals documentation section containing
9924 detailed documentation of the globals passed from the binder file to
9925 the run time.
9926
9927 * gnatls.adb: Minor reformatting
9928
9929 * init.c (__gnat_set_globals): Add note pointing to documentation in
9930 bindgen.
9931
9932 * lib-writ.ads, lib-writ.adb: Remove separating space between
9933 parameters on R line.
9934 Makes format consistent with format used by the binder for Set_Globals
9935 call.
9936
9937 * osint.ads: Add 2004 to copyright notice
9938 Minor reformatting
9939
9940 * snames.ads: Correct capitalization of FIFO_Within_Priorities
9941 Noticed during code reading, documentation issue only
9942
9943 * usage.adb: Remove junk line for obsolete C switch
9944 Noticed during code reading
9945
9946 2004-02-12 Vincent Celier <celier@gnat.com>
9947
9948 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
9949 extend for each directory, so that multiple /** directories are
9950 extended individually.
9951 (Recursive_Process): Set the default for LANGUAGES to ada
9952
9953 * gprcmd.adb: Define new command "ignore", to do nothing.
9954 Implement new comment "path".
9955
9956 * Makefile.generic: Suppress output when SILENT is set
9957 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
9958 used, so that the correct compiler is invoked.
9959 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
9960 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
9961
9962 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
9963
9964 * Makefile.in: Clean ups and remove obsolete targets.
9965
9966 2004-02-12 Ed Schonberg <schonberg@gnat.com>
9967
9968 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
9969 predicate declared in exp_util.
9970
9971 * exp_util.adb: Add comments.
9972
9973 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
9974 visibility before compiling context of the subunit.
9975
9976 * sem_res.adb (Check_Parameterless_Call): If the context expects a
9977 value but the name is a procedure, do not attempt to analyze as a call,
9978 in order to obtain more telling diagnostics.
9979
9980 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
9981 'Access on parameterless function calls.
9982 (Normalize_Actuals): For a parameterless function call with missing
9983 actuals, defer diagnostic until resolution of enclosing call.
9984
9985 * sem_util.adb (Wrong_Type): If the context type is an access to
9986 subprogram and the expression is a procedure name, suggest a missing
9987 'attribute.
9988
9989 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
9990 Nathanael Nerode <neroden@gcc.gnu.org>
9991
9992 PR ada/6637, PR ada/5911
9993 Merge with libada-branch:
9994 * config-lang.in: Build libada only when ada is built.
9995
9996 2004-02-09 Ed Schonberg <schonberg@gnat.com>
9997
9998 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
9999 for a tagged type, verify that both formals have the same type.
10000
10001 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
10002 temporary when the formal is an in-parameter and the actual a possibly
10003 unaligned slice.
10004
10005 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
10006 when expansion is disabled, to ensure proper name capture with
10007 overloaded literals. Condition can be of any boolean type, resolve
10008 accordingly.
10009
10010 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
10011 renaming is for a formal subprogram with a default operator name, and
10012 there is a usable operator that is visible at the point of
10013 instantiation.
10014
10015 2004-02-09 Robert Dewar <dewar@gnat.com>
10016
10017 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
10018 rewrite to ignore errors in ali files, intended to allow tools downward
10019 compatibility with new versions of ali files.
10020
10021 * ali.ads: Add new parameter Ignore_Errors
10022
10023 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
10024 duplicating the error message giving the file with restrictions.
10025
10026 * debug.adb: Add debug flag I for gnatbind
10027
10028 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
10029 operators for the case where the operator is a defining operator.
10030
10031 * exp_ch3.adb: Minor reformatting (new function spec format).
10032
10033 * exp_ch4.adb: Add comment for previous change, and make minor
10034 adjustment to loop to always check for improper loop termination.
10035 Minor reformatting throughout (new function spec format).
10036
10037 * gnatbind.adb: Implement -di debug flag for gnatbind
10038
10039 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
10040
10041 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
10042
10043 * lib-load.adb: Fix bad assertion.
10044 Found by testing and code reading.
10045 Minor reformatting.
10046
10047 * lib-load.ads: Minor reformatting.
10048
10049 * lib-writ.adb: There is only one R line now.
10050
10051 * lib-writ.ads: Add documentation on making downward compatible changes
10052 to ali files so old tools work with new ali files.
10053 There is only one R line now.
10054 Add documentation on format incompatibilities (with special GPS note)
10055
10056 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
10057
10058 * par-load.adb: Minor reformatting
10059
10060 * sem_ch8.adb: Fix to error message from last update
10061 Minor reformatting and restructuring of code from last update
10062
10063 * par-prag.adb, snames.adb, snames.ads, snames.h,
10064 sem_prag.adb: Implement pragma Profile.
10065
10066 * stylesw.adb: Implement -gnatyN switch to turn off all style check
10067 options.
10068
10069 * usage.adb: Add line for -gnatyN switch
10070
10071 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
10072
10073 2004-02-09 Albert Lee <lee@gnat.com>
10074
10075 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
10076
10077 2004-02-09 Ed Schonberg <schonberg@gnat.com>
10078
10079 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
10080 slices.
10081
10082 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
10083 is nested in an instance that is not frozen yet, to avoid
10084 order-of-elaboration problems in gigi.
10085
10086 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
10087 body the attribute is legal.
10088
10089 2004-02-09 Robert Dewar <dewar@gnat.com>
10090
10091 * s-rident.ads: Minor comment correction
10092
10093 * targparm.adb: Remove dependence on uintp completely. There was
10094 always a bug in Make in that it called Targparm before initializing
10095 the Uint package. The old code appeared to get away with this, but
10096 the new code did not! This caused an assertion error in gnatmake.
10097
10098 * targparm.ads: Fix bad comment, restriction pragmas with parameters
10099 are indeed fully supported.
10100
10101 2004-02-06 Alan Modra <amodra@bigpond.net.au>
10102
10103 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
10104
10105 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
10106
10107 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
10108 with targetm.calls.promote_prototypes.
10109
10110 2004-02-04 Robert Dewar <dewar@gnat.com>
10111
10112 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
10113 ali.ads, gprcmd.adb: Minor reformatting
10114
10115 * bindgen.adb: Output restrictions string for new style restrictions
10116 handling
10117
10118 * impunit.adb: Add s-rident.ads (System.Rident) and
10119 s-restri (System.Restrictions)
10120
10121 * lib-writ.adb: Fix bug in writing restrictions string (last few
10122 entries wrong)
10123
10124 * s-restri.ads, s-restri.adb: Change name Restrictions to
10125 Run_Time_Restrictions to avoid conflict with package name.
10126 Add circuit to read and acquire run time restrictions.
10127
10128 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
10129
10130 * restrict.ads, restrict.adb: Use the new restriction
10131 No_Task_Attributes_Package instead of the old No_Task_Attributes.
10132
10133 * sem_prag.adb: No_Task_Attributes is a synonym of
10134 No_Task_Attributes_Package.
10135
10136 * snames.ads, snames.adb: New entry for proper handling of
10137 No_Task_Attributes.
10138
10139 * s-rident.ads: Adding restriction No_Task_Attributes_Package
10140 (AI-00249) that supersedes the GNAT specific restriction
10141 No_Task_Attributes.
10142
10143 2004-02-04 Ed Schonberg <schonberg@gnat.com>
10144
10145 * sem_prag.adb:
10146 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
10147 body, an identifier may be wrapped in an unchecked conversion.
10148
10149 2004-02-04 Vincent Celier <celier@gnat.com>
10150
10151 * lib-writ.ads: Comment update for the W lines
10152
10153 * bld.adb: (Expression): An empty string list is static
10154
10155 * fname-uf.adb: Minor comment update
10156
10157 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
10158
10159 * gnatbind.adb: Initialize Cumulative_Restrictions with the
10160 restrictions on the target.
10161
10162 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
10163
10164 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
10165 gen_rtx.
10166
10167 2004-02-02 Arnaud Charlet <charlet@gnat.com>
10168
10169 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
10170
10171 2004-02-02 Vincent Celier <celier@gnat.com>
10172
10173 * gprcmd.adb (Check_Args): If condition is false, print the invoked
10174 comment before the usage.
10175 Gprcmd: Fail when command is not recognized.
10176 (Usage): Document command "prefix"
10177
10178 * g-md5.adb (Digest): Process last block.
10179 (Update): Do not process last block. Store remaining characters and
10180 length in Context.
10181
10182 * g-md5.ads (Update): Document that several call to update are
10183 equivalent to one call with the concatenated string.
10184 (Context): Add fields to allow new Update behaviour.
10185
10186 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
10187 defaulted to False.
10188 When May_Fail is True and no existing file can be found, return No_File.
10189
10190 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
10191 functions.
10192
10193 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
10194 spec file name instead on the W line.
10195
10196 2004-02-02 Robert Dewar <dewar@gnat.com>
10197
10198 * ali.adb: Read and acquire info from new format restrictions lines
10199
10200 * bcheck.adb: Add circuits for checking restrictions with parameters
10201
10202 * bindgen.adb: Output dummy restrictions data
10203 To be changed later
10204
10205 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
10206 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
10207 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
10208 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
10209 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
10210
10211 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
10212 the warning message on access to possibly uninitialized variable S)
10213 Minor changes for new restrictions handling.
10214
10215 * gnatbind.adb: Minor reformatting
10216 Minor changes for new restrictions handling
10217 Move circuit for -r processing here from bcheck (cleaner)
10218
10219 * gnatcmd.adb, gnatlink.adb: Minor reformatting
10220
10221 * lib-writ.adb: Output new format restrictions lines
10222
10223 * lib-writ.ads: Document new R format lines for new restrictions
10224 handling.
10225
10226 * s-restri.ads/adb: New files
10227
10228 * Makefile.rtl: Add entry for s-restri.ads/adb
10229
10230 * par-ch3.adb: Fix bad error messages starting with upper case letter
10231 Minor reformatting
10232
10233 * restrict.adb: Major rewrite throughout for new restrictions handling
10234 Major point is to handle restrictions with parameters
10235
10236 * restrict.ads: Major changes in interface to handle restrictions with
10237 parameters. Also generally simplifies setting of restrictions.
10238
10239 * snames.ads/adb: New entry for proper handling of No_Requeue
10240
10241 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
10242 restriction counting.
10243 Other minor changes for new restrictions handling
10244
10245 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
10246 Restriction_Warnings now allows full parameter notation
10247 Major rewrite of Restrictions for new restrictions handling
10248
10249 2004-02-02 Javier Miranda <miranda@gnat.com>
10250
10251 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
10252 syntax rule for object renaming declarations.
10253 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
10254 component definitions.
10255
10256 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
10257 components.
10258 (Array_Type_Declaration): Give support to access components. In addition
10259 it was also modified to reflect the name of the object in anonymous
10260 array types. The old code did not take into account that it is possible
10261 to have an unconstrained anonymous array with an initial value.
10262 (Check_Or_Process_Discriminants): Allow access discriminant in
10263 non-limited types.
10264 (Process_Discriminants): Allow access discriminant in non-limited types
10265 Initialize the new Access_Definition field in N_Object_Renaming_Decl
10266 node. Change Ada0Y to Ada 0Y in comments
10267
10268 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
10269 equality operators.
10270 Change Ada0Y to Ada 0Y in comments
10271
10272 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
10273 renamings Change Ada0Y to Ada 0Y in comments
10274
10275 * sem_type.adb (Find_Unique_Type): Give support to the equality
10276 operators for universal access types
10277 Change Ada0Y to Ada 0Y in comments
10278
10279 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
10280
10281 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
10282 field.
10283 (N_Object_Renaming_Declaration): Addition of Access_Definition field
10284 Change Ada0Y to Ada 0Y in comments
10285
10286 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
10287 component definition and object renaming nodes
10288 Change Ada0Y to Ada 0Y in comments
10289
10290 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
10291
10292 * restrict.adb: Use the new restriction identifier
10293 No_Requeue_Statements instead of the old No_Requeue for defining the
10294 restricted profile.
10295
10296 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
10297 No_Requeue_Statements.
10298
10299 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
10300 that supersedes the GNAT specific restriction No_Requeue. The later is
10301 kept for backward compatibility.
10302
10303 2004-02-02 Ed Schonberg <schonberg@gnat.com>
10304
10305 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
10306 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
10307 pragma and fix incorrect ones.
10308
10309 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
10310 warning if the pragma is redundant.
10311
10312 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
10313
10314 * 5staprop.adb: Add missing 'constant' keywords.
10315
10316 * Makefile.in: use consistent value for SYMLIB on
10317 platforms where libaddr2line is supported.
10318
10319 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10320
10321 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
10322 annotating types.
10323
10324 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
10325
10326 * init.c (__gnat_install_handler): Setup an alternate stack for signal
10327 handlers in the environment thread. This allows proper propagation of
10328 an exception on stack overflows in this thread even when the builtin
10329 ABI stack-checking scheme is used without support for a stack reserve
10330 region.
10331
10332 * utils.c (create_field_decl): Augment the head comment about bitfield
10333 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
10334 here, because the former is not accurate enough at this point.
10335 Let finish_record_type decide instead.
10336 Don't make a bitfield if the field is to be addressable.
10337 Always set a size for the field if the record is packed, to ensure the
10338 checks for bitfield creation are triggered.
10339 (finish_record_type): During last pass over the fields, clear
10340 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
10341 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
10342 from DECL_BIT_FIELD.
10343
10344 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
10345
10346 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
10347 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
10348 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
10349
10350 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10351
10352 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
10353
10354 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
10355 (ZCX_By_Default): Likewise.
10356 (Front_End_ZCX_Support): Likewise.
10357
10358 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
10359 (Initialize_Lock): Mark Level unreferenced.
10360 (Sleep): Mark Reason unreferenced.
10361 (Timed_Sleep): Likewise.
10362 (Wakeup): Likewise.
10363 (Exit_Task): Use Result.
10364 (Check_No_Locks): Mark Self_ID unreferenced.
10365
10366 * 5gtasinf.adb (New_Sproc): Make Attr constant.
10367 (Bound_Thread_Attributes): Make Sproc constant.
10368 (New_Bound_Thread_Attributes): Likewise.
10369
10370 2004-01-26 Ed Schonberg <schonberg@gnat.com>
10371
10372 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
10373 one-dimensional array an slice assignments, when component type is
10374 controlled.
10375
10376 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
10377 component type is controlled, and control_actions are in effect, use
10378 TSS procedure rather than generating inline code.
10379
10380 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
10381 arrays with controlled components.
10382
10383 2004-01-26 Vincent Celier <celier@gnat.com>
10384
10385 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
10386 command line for the non VMS case.
10387
10388 * gnatlink.adb (Process_Binder_File): When building object file, if
10389 GNU linker is used, put all object paths between quotes, to prevent ld
10390 error when there are unusual characters (such as '!') in the paths.
10391
10392 * Makefile.generic: When there are sources in Ada and the main is in
10393 C/C++, invoke gnatmake with -B, instead of -z.
10394
10395 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
10396 from VMS_Conversion.
10397 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
10398 specification of argument file on the command line.
10399
10400 2004-01-26 Bernard Banner <banner@gnat.com>
10401
10402 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
10403
10404 2004-01-26 Ed Schonberg <schonberg@gnat.com>
10405
10406 * snames.adb: Update copyright notice.
10407 Add info on slice assignment for controlled arrays.
10408
10409 2004-01-23 Robert Dewar <dewar@gnat.com>
10410
10411 * exp_aggr.adb: Minor reformatting
10412
10413 * exp_ch9.adb: Minor code clean up
10414 Minor reformatting
10415 Fix bad character in comment
10416
10417 PR ada/13471
10418 * targparm.adb (Get_Target_Parameters): Give clean abort error on
10419 unexpected end of file, along with more detailed message.
10420
10421 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10422
10423 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
10424 PAT.
10425
10426 * decl.c (copy_alias_set): New function.
10427 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
10428
10429 2004-01-23 Doug Rupp <rupp@gnat.com>
10430
10431 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
10432 lib$${file} in case subsequent character is not a separator.
10433
10434 2004-01-23 Vincent Celier <celier@gnat.com>
10435
10436 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
10437 when the GCC version is at least 3.
10438
10439 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
10440 Remove all "Opt.", to prepare for opt split
10441
10442 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
10443 Extends_All. Set to True when the project parsed is an extending all
10444 project. Fails for importing an extending all project only when the
10445 imported project is an extending all project.
10446 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
10447 depending on the value of Extends_All returned.
10448
10449 * prj-proc.adb (Process): Check that no project shares its object
10450 directory with a project that extends it, directly or indirectly,
10451 including a virtual project.
10452 Check that no project extended by another project shares its object
10453 directory with another also extended project.
10454
10455 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
10456 Kind = N_With_Clause
10457
10458 * prj-tree.ads: Minor reformatting
10459 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
10460
10461 2004-01-23 Ed Schonberg <schonberg@gnat.com>
10462
10463 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
10464 applies to a type with an incomplete view, use full view in Name of
10465 clause, for consistency with uses of Get_Attribute_Definition_Clause.
10466
10467 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
10468
10469 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
10470 SCHED_RR, since other values are not supported by this policy.
10471 (Initialize): Move initialization of mutex attribute to package
10472 elaboration, to prevent early access to this variable.
10473
10474 * Makefile.in: Remove mention of Makefile.adalib, unused.
10475
10476 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10477 1ssecsta.ads: Removed, unused.
10478
10479 2004-01-21 Javier Miranda <miranda@gnat.com>
10480
10481 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
10482 entity if already built in the current scope.
10483
10484 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
10485 reminder in internal scopes. Required for nested limited aggregates.
10486
10487 2004-01-21 Doug Rupp <rupp@gnat.com>
10488
10489 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
10490 VMS. Replace all occurences of libgnat- and libgnarl- with
10491 libgnat$(hyphen) and libgnarl$(hyphen).
10492 Fixed shared library build problem on VMS.
10493
10494 2004-01-21 Robert Dewar <dewar@gnat.com>
10495
10496 * mlib-prj.adb: Minor reformatting
10497
10498 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
10499
10500 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
10501 'constant' keywords for declaration of pointers that are not modified.
10502
10503 * exp_pakd.adb: Fix English in comment.
10504
10505 2004-01-21 Ed Schonberg <schonberg@gnat.com>
10506
10507 PR ada/10889
10508 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
10509 copy all attributes of the parent, including the foreign language
10510 convention.
10511
10512 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
10513
10514 PR ada/10565
10515 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
10516 for 'delay until' statement.
10517
10518 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
10519
10520 * Make-lang.in: Replace $(docdir) with doc.
10521 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
10522 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
10523 to use consistent MAKEINFO rule.
10524 (ada.man, ada.srcman): Dummy entry.
10525 (ADA_INFOFILES): Define.
10526 (ada.info, ada.srcinfo): New rules.
10527
10528 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
10529
10530 * utils.c: Update copyright notice, missed in previous change.
10531
10532 2004-01-19 Vincent Celier <celier@gnat.com>
10533
10534 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
10535 args if Bind is True. Set First_ALI, if not already done.
10536 (Build_Library): For Stand Alone Libraries, extract from one ALI file
10537 an eventual --RTS switch, for gnatbind, and all backend switches +
10538 --RTS, for linking.
10539
10540 2004-01-19 Robert Dewar <dewar@gnat.com>
10541
10542 * sem_attr.adb, memtrack.adb: Minor reformatting
10543
10544 2004-01-19 Ed Schonberg <schonberg@gnat.com>
10545
10546 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
10547 that rename enumeration literals. This is properly done in sem_eval.
10548
10549 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
10550 to functions that rename enumeration literals.
10551
10552 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
10553 functions that rename enumeration literals.
10554
10555 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
10556
10557 * Make-lang.in (utils.o): Depend on target.h.
10558 * utils.c: Include target.h.
10559 (process_attributes): Use targetm.have_named_sections instead
10560 of ASM_OUTPUT_SECTION_NAME.
10561
10562 2004-01-16 Andreas Jaeger <aj@suse.de>
10563
10564 * Makefile.in: Add $(DESTDIR).
10565
10566 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
10567
10568 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
10569 also when not defining if a Size clause applies. That information is
10570 not to be ignored.
10571
10572 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
10573
10574 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
10575 symbolic links for the shared gnat run time when needed.
10576
10577 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
10578
10579 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
10580 for writing, and terminate with an error message if not.
10581
10582 2004-01-15 Ed Schonberg <schonberg@gnat.com>
10583
10584 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
10585 warning on an access to subprogram in an instance, when the target
10586 type is declared in the same generic unit.
10587 (Eval_Attribute): If 'access is known to fail accessibility check,
10588 rewrite as a raise statement.
10589
10590 2004-01-15 GNAT Script <nobody@gnat.com>
10591
10592 * Make-lang.in: Makefile automatically updated
10593
10594 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
10595
10596 * Make-lang.in (ada.srcextra): Dummy entry.
10597
10598 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10599
10600 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
10601
10602 2004-01-13 Ed Schonberg <schonberg@gnat.com>
10603
10604 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
10605 components that are initialized with aggregates.
10606
10607 2004-01-13 Vincent Celier <celier@gnat.com>
10608
10609 * gnatlink.adb (Process_Binder_File): To find directory of shared
10610 libgcc, if "gcc-lib" is not a subdirectory, look for the last
10611 subdirectory "lib" in the path of the shared libgnat or libgnarl.
10612
10613 * make.adb (Gnatmake): If GCC version is at least 3, link with
10614 -shared-libgcc, when there is at least one shared library project.
10615
10616 * opt.ads (GCC_Version): New integer constant.
10617
10618 * adaint.c (get_gcc_version): New function.
10619
10620 2004-01-13 Robert Dewar <dewar@gnat.com>
10621
10622 * sem_dist.adb, sem_res.adb, sem_util.adb,
10623 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
10624 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
10625
10626 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
10627
10628 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
10629 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
10630 declarations.
10631
10632 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
10633
10634 * misc.c: Remove trailing spaces.
10635 Update copyright notice missed in previous change.
10636
10637 PR ada/13572
10638 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
10639 prefix/share/make
10640
10641 * Makefile.generic: Update copyright.
10642 Add license notice.
10643
10644 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
10645 of prefix/share/make.
10646
10647 * Makefile.prolog: Update copyright.
10648 Add license notice.
10649
10650 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
10651
10652 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
10653 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
10654 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
10655 instead of String.
10656
10657 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
10658 signature.
10659
10660 2004-01-12 Javier Miranda <miranda@gnat.com>
10661
10662 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
10663 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
10664 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
10665 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
10666 Component_Definition node.
10667
10668 2004-01-12 Ed Falis <falis@gnat.com>
10669
10670 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
10671
10672 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
10673
10674 * link.c: Change default libgnat kind to STATIC for FreeBSD.
10675
10676 2004-01-12 Bernard Banner <banner@gnat.com>
10677
10678 * Makefile.in: map 86numaux to a-numaux for x86_64
10679
10680 2004-01-12 Ed Schonberg <schonberg@gnat.com>
10681
10682 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
10683 generated to rename a generic actual, go to the actual itself, the
10684 subtype is not a user-visible entity.
10685
10686 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
10687 part is a private subtype, reset the visibility of its full view, if
10688 any, to be consistent.
10689
10690 PR ada/13417
10691 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
10692 to use a generic package G as a formal package for another generic
10693 declared within G.
10694
10695 2004-01-12 Robert Dewar <dewar@gnat.com>
10696
10697 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
10698
10699 * usage.adb: Remove mention of obsolete -gnatwb switch
10700 Noticed during code reading
10701
10702 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
10703
10704 * 1ssecsta.adb: Minor changes for -gnatwa warnings
10705
10706 2004-01-12 GNAT Script <nobody@gnat.com>
10707
10708 * Make-lang.in: Makefile automatically updated
10709
10710 2004-01-09 Mark Mitchell <mark@codesourcery.com>
10711
10712 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
10713
10714 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10715
10716 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
10717
10718 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
10719
10720 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
10721 Update comment and copyright date.
10722 * stamp-xgnatug: Delete.
10723
10724 2004-01-05 Robert Dewar <dewar@gnat.com>
10725
10726 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
10727 be modified by the binder generated main program if the -D switch is
10728 used.
10729
10730 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
10731 imported functions (since now we expect this to be done for imported
10732 functions)
10733
10734 * 5vtaprop.adb: Add several ??? for sections requiring more comments
10735 Minor reformatting throughout
10736
10737 * 5zinit.adb: Minor reformatting
10738 Add 2004 to copyright date
10739 Minor changes to avoid -gnatwa warnings
10740 Correct some instances of using OR instead of OR ELSE (noted while
10741 doing reformatting)
10742
10743 * sprint.adb: Minor updates to avoid -gnatwa warnings
10744
10745 * s-secsta.ads, s-secsta.adb:
10746 (SS_Get_Max): New function to obtain high water mark for ss stack
10747 Default_Secondary_Stack is not a constant since it may be modified by
10748 the binder generated main program if the -D switch is used.
10749
10750 * switch-b.adb: New -Dnnn switch for binder
10751
10752 * switch-c.adb:
10753 Make -gnatg imply all warnings currently in -gnatwa
10754
10755 * vms_conv.adb: Minor reformatting
10756 Add 2004 to copyright notice
10757 Add 2004 to printed copyright notice
10758
10759 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
10760 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
10761 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
10762 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
10763 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
10764 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
10765 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
10766 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
10767 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
10768 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
10769 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
10770 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
10771 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
10772 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
10773 checks.adb, clean.adb, cstand.adb, einfo.ads,
10774 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
10775 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
10776 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
10777 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
10778 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
10779 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
10780 Minor reformatting and code clean ups.
10781 Minor changes to prevent -gnatwa warnings
10782
10783 * ali.adb: Minor reformatting and cleanup of code
10784 Acquire new SS indication of secondary stack use from ali files
10785
10786 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
10787 (since now we expect this to be done for imported functions)
10788
10789 * bindgen.adb: Generate call to modify default secondary stack size if
10790 -Dnnn switch given
10791
10792 * bindusg.adb: Add line for new -D switch
10793
10794 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
10795 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
10796 Add circuitry for both records and arrays to avoid gigi
10797 processing if the type involved has non-bit-aligned components
10798
10799 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
10800 N_String_Literal node always references an E_String_Literal_Subtype
10801 entity. This may not be true in the future.
10802 (Possible_Bit_Aligned_Component): Move processing of
10803 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
10804
10805 * exp_ch6.adb (Expand_Thread_Body): Pick up
10806 Default_Secondary_Stack_Size as variable so that we get value modified
10807 by possible -Dnnn binder parameter.
10808
10809 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
10810 (Type_May_Have_Bit_Aligned_Components): New function.
10811
10812 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
10813 (Type_May_Have_Bit_Aligned_Components): New function.
10814
10815 * fe.h: (Set_Identifier_Casing): Fix prototype.
10816 Add declaration for Sem_Elim.Eliminate_Error_Msg.
10817 Minor reformatting.
10818
10819 * freeze.adb (Freeze_Entity): Add RM reference to error message about
10820 importing constant atomic/volatile objects.
10821 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
10822 unless explicit Pure_Function pragma given, to avoid insidious bug of
10823 call to non-pure imported function getting eliminated.
10824
10825 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
10826 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
10827 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
10828 Add 2004 to printed copyright notice
10829
10830 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
10831 stack used.
10832
10833 * Makefile.rtl: Add entry for g-sestin.o
10834 g-sestin.ads: New file.
10835
10836 * mdll.adb: Minor changes to avoid -gnatwa warnings
10837
10838 * mlib-tgt.adb: Minor reformatting
10839
10840 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
10841 New switch Sec_Stack_Used (GNAT, GNATBIND)
10842 Make Default_Secondary_Stack_Size a variable instead of a constant,
10843 so that it can be modified by the new -Dnnn bind switch.
10844
10845 * rtsfind.adb (Load_Fail): Give full error message in configurable
10846 run-time mode if all_errors mode is set. This was not done in the case
10847 of a file not found, which was an oversight.
10848 Note if secondary stack unit is used by compiler.
10849
10850 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
10851 ineffective elaborate all pragmas on non-visible packages (this
10852 happened when a renamed subprogram was called). Now the elaborate all
10853 always goes on the package containing the renaming rather than the one
10854 containing the renamed subprogram.
10855
10856 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
10857 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
10858
10859 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
10860 has an Etype that references an E_String_Literal.
10861 (Eval_String_Literal): Avoid assumption that N_String_Literal node
10862 always references an E_String_Literal_Subtype entity. This may not
10863 be true in the future.
10864
10865 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
10866 pragma location.
10867
10868 * sem_res.adb (Resolve): Specialize msg for function name used in proc
10869 call.
10870
10871 2004-01-05 Ed Falis <falis@gnat.com>
10872
10873 * g-debuti.adb: Replaced direct boolean operator with short-circuit
10874 form.
10875
10876 2004-01-05 Vincent Celier <celier@gnat.com>
10877
10878 * bld.adb: Minor comment updates
10879 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
10880 of Item_Name).
10881
10882 * make.adb (Gnatmake): Special process for files to compile/check when
10883 -B is specified. Fail when there are only foreign mains in attribute
10884 Main of the project file and -B is not specified. Do not skip bind/link
10885 steps when -B is specified.
10886
10887 * makeusg.adb: Document new switch -B
10888
10889 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
10890
10891 * switch-m.adb: (Scan_Make_Switches): Process -B switch
10892
10893 * vms_data.ads: Add new GNAT PRETTY qualifier
10894 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
10895
10896 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10897
10898 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
10899 case.
10900
10901 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
10902 Set_Identifier_Casing.
10903
10904 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
10905 has size that overflows.
10906
10907 2004-01-05 Gary Dismukes <dismukes@gnat.com>
10908
10909 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
10910 -gnatwa warning on static condition.
10911
10912 2004-01-05 Doug Rupp <rupp@gnat.com>
10913
10914 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
10915
10916 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
10917
10918 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
10919 all attributes, including read-only attribute.
10920
10921 2004-01-05 Pascal Obry <obry@gnat.com>
10922
10923 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
10924 library naming scheme.
10925
10926 * mlib-prj.adb (Build_Library): Generate different names for the static
10927 or dynamic version of the GNAT runtime. This is needed to support the
10928 new shared library naming scheme.
10929 (Process_Binder_File): Add detection of shared library in binder file
10930 based on the new naming scheme.
10931
10932 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
10933 scheme for the shared runtime libraries.
10934
10935 * Makefile.in:
10936 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
10937 scheme.
10938 (install-gnatlib): Do not create symlinks for shared libraries.
10939 (gnatlib-shared-default): Idem.
10940 (gnatlib-shared-dual-win32): New target. Not used for now as the
10941 auto-import feature does not support arrays/records.
10942 (gnatlib-shared-win32): Do not create copy for the shared libraries.
10943 (gnatlib-shared-vms): Fix shared runtime libraries names.
10944
10945 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
10946 dependent runtime shared library name.
10947
10948 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
10949
10950 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
10951 than the object.
10952
10953 2004-01-05 Ed Schonberg <schonberg@gnat.com>
10954
10955 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
10956 protected objects when allocator has a subtype indication, not a
10957 qualified expression. Note that qualified expressions may have to be
10958 checked when limited aggregates are implemented.
10959
10960 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
10961 pure, emit warning.
10962 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
10963 subprogram is imported, remove warning.
10964
10965 2004-01-05 Geert Bosch <bosch@gnat.com>
10966
10967 * s-poosiz.adb: Update copyright notice.
10968 (Allocate): Use Task_Lock to protect against concurrent access.
10969 (Deallocate): Likewise.
10970
10971 2004-01-05 Joel Brobecker <brobecker@gnat.com>
10972
10973 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
10974 comment.
10975
10976 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
10977
10978 * gnat_ug.texi: Force a CVS commit by updating copyright.
10979 * gnat_ug_vxw.texi: Regenerate.
10980 * gnat_ug_wnt.texi: Regenerate.
10981 * gnat_ug_vms.texi: Regenerate.
10982 * gnat_ug_unx.texi: Regenerate.
10983
10984 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
10985
10986 * trans.c: Remove uses of "register" specifier in
10987 declarations of local variables.
10988
10989 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
10990
10991 * stamp-xgnatug: New stamp file.
10992 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
10993 (ada/doctools/xgnatug): Add $(build_exeext).
10994 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
10995 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
10996
10997 2003-12-17 Ed Falis <falis@gnat.com>
10998
10999 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
11000 eliminate warning.
11001
11002 * a-exextr.adb: Add context clause for
11003 Ada.Exceptions.Last_Chance_Handler.
11004
11005 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
11006
11007 * cstand.adb (Create_Standard): Change the way how the declaration of
11008 the Duration type is created (making it the same way as it is for all
11009 the other standard types).
11010
11011 2003-12-17 Robert Dewar <dewar@gnat.com>
11012
11013 * s-crtl.ads: Fix header format
11014 Change Pure to Preelaborate
11015
11016 2003-12-17 Ed Schonberg <schonberg@gnat.com>
11017
11018 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
11019 the expression type only if it is declared in the current unit.
11020
11021 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
11022 are universal and already analyzed, as can occur in constrained
11023 subcomponents that depend on discriminants, when one constraint is a
11024 subtype mark.
11025
11026 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
11027 type Any_Fixed is legal as the argument of a conversion, if only one
11028 fixed-point type is in context.
11029
11030 2003-12-17 GNAT Script <nobody@gnat.com>
11031
11032 * Make-lang.in: Makefile automatically updated
11033
11034 2003-12-15 Robert Dewar <dewar@gnat.com>
11035
11036 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
11037 sec stack size.
11038
11039 2003-12-15 Vincent Celier <celier@gnat.com>
11040
11041 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
11042 (Gnatchop): Do not set failure status when reporting the number of
11043 warnings.
11044
11045 2003-12-15 Doug Rupp <rupp@gnat.com>
11046
11047 * s-ctrl.ads: New file.
11048
11049 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
11050
11051 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
11052 (GNATBIND_OBJS): Add ada/s-crtl.o.
11053
11054 * Makefile.in [VMS]: Clean up ifeq rules.
11055
11056 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
11057 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
11058 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
11059 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
11060 s-tasdeb.adb: Update copyright.
11061 Import System.CRTL.
11062 Make minor modifications to use System.CRTL declared functions instead
11063 of importing locally.
11064
11065 2003-12-15 GNAT Script <nobody@gnat.com>
11066
11067 * Make-lang.in: Makefile automatically updated
11068
11069 2003-12-11 Ed Falis <falis@gnat.com>
11070
11071 * 5zinit.adb: Clean up.
11072
11073 * 5zintman.adb (Notify_Exception): replaced case statement with a call
11074 to __gnat_map_signal, imported from init.c to support
11075 signal -> exception mappings that depend on the vxWorks version.
11076
11077 * init.c:
11078 Created and exported __gnat_map_signal to support signal -> exception
11079 mapping that is dependent on the VxWorks version.
11080 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
11081
11082 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
11083
11084 * 5wosinte.ads: Link with -mthreads switch.
11085
11086 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
11087
11088 * init.c (__gnat_install_handler [NetBSD]): Set
11089 __gnat_handler_installed, as done on all other platforms.
11090 Remove duplicated code.
11091
11092 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
11093
11094 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
11095
11096 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
11097
11098 * sinfo.ads: Fix inconsistent example code in comment.
11099
11100 2003-12-11 Robert Dewar <dewar@gnat.com>
11101
11102 * a-tiinau.adb: Add a couple of comments
11103
11104 * sem_ch3.adb: Minor reformatting
11105
11106 * sem_prag.adb:
11107 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
11108 Minor reformatting throughout
11109
11110 2003-12-11 Ed Schonberg <schonberg@gnat.com>
11111
11112 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
11113 bounds of a loop, create a separate block in order to generate proper
11114 cleanup actions to prevent memory leaks.
11115
11116 * sem_res.adb (Resolve_Call): After a call to
11117 Establish_Transient_Scope, the call may be rewritten and relocated, in
11118 which case no further processing is needed.
11119
11120 * sem_util.adb: (Wrong_Type): Refine previous fix.
11121 Fixes ACATS regressions.
11122
11123 PR ada/13353
11124
11125 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
11126 be inlined.
11127
11128 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
11129
11130 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
11131 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
11132 obsolete files.
11133
11134 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
11135 (rts-zfp): Ditto.
11136
11137 2003-12-08 Robert Dewar <dewar@gnat.com>
11138
11139 * 7sintman.adb: Minor reformatting
11140
11141 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
11142 standard linker options to get standard libraries linked. We now plan
11143 to provide dummy versions of these libraries to match the appropriate
11144 configurable run-time (e.g. if a library is not needed at all, provide
11145 a dummy empty library).
11146
11147 * targparm.ads: Configurable_Run_Time mode no longer affects linker
11148 options (-L parameters and standard libraries). What we plan to do is
11149 to provide dummy libraries where the libraries are not required.
11150
11151 * gnatbind.adb: Minor comment improvement
11152
11153 2003-12-08 Javier Miranda <miranda@gnat.com>
11154
11155 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
11156 aggregate in the parent. Otherwise constants with limited aggregates
11157 are not supported. Add new formal to pass the component type (Ctype).
11158 It is required to call the corresponding IP subprogram in case of
11159 default initialized components.
11160 (Gen_Assign): In case of default-initialized component, generate a
11161 call to the IP subprogram associated with the component.
11162 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
11163 of aggregate with default initialized components.
11164 (Has_Default_Init_Comps): Improve implementation to recursively check
11165 all the present expressions.
11166
11167 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
11168 to indicate that the initialization call corresponds to a
11169 default-initialized component of an aggregate.
11170 In case of default initialized aggregate with tasks this parameter is
11171 used to generate a null string (this is just a workaround that must be
11172 improved later). In case of discriminants, this parameter is used to
11173 generate a selected component node that gives access to the discriminant
11174 value.
11175
11176 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
11177 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
11178 allocated aggregates with default-initialized components.
11179
11180 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
11181 the box notation is used in positional aggregates.
11182
11183 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
11184
11185 * lib.ads: Fix typo in comment
11186
11187 2003-12-08 Vincent Celier <celier@gnat.com>
11188
11189 * prj.adb (Project_Empty): New component Unkept_Comments
11190 (Scan): Remove procedure; moved to Prj.Err.
11191
11192 * prj.ads (Project_Data): New Boolean component Unkept_Comments
11193 (Scan): Remove procedure; moved to Prj.Err.
11194
11195 * prj-dect.adb: Manage comments for the different declarations.
11196
11197 * prj-part.adb (With_Record): New component Node
11198 (Parse): New Boolean parameter Store_Comments, defaulted to False.
11199 Set the scanner to return ends of line and comments as tokens, if
11200 Store_Comments is True.
11201 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
11202 comments are associated with these nodes. Store the node IDs in the
11203 With_Records.
11204 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
11205 With_Records.
11206 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
11207 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
11208 current project. Call Tree.Restore afterwards. Set the various nodes
11209 for comment storage (Next_End, End_Of_Line, Previous_Line,
11210 Previous_End).
11211
11212 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
11213 defaulted to False.
11214
11215 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
11216 to False. When Truncated is True, truncate the string, never go to the
11217 next line.
11218 (Write_End_Of_Line_Comment): New procedure
11219 (Print): Process comments for nodes N_With_Clause,
11220 N_Package_Declaration, N_String_Type_Declaration,
11221 N_Attribute_Declaration, N_Typed_Variable_Declaration,
11222 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
11223 Process nodes N_Comment.
11224
11225 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
11226 without comments and there are some comments, set the flag
11227 Unkept_Comments to True.
11228 (Scan): If there are comments, set the flag Unkept_Comments to True and
11229 clear the comments.
11230 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
11231 (Next_End_Nodes: New table
11232 (Comment_Zones_Of): New function
11233 (Scan): New procedure; moved from Prj. Accumulate comments in the
11234 Comments table and set end of line comments, comments after, after end
11235 and before end.
11236 (Add_Comments): New procedure
11237 (Save, Restore, Seset_State): New procedures
11238 (There_Are_Unkept_Comments): New function
11239 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
11240 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
11241 procedures.
11242 (First_Comment_After, First_Comment_After_End): New functions
11243 (First_Comment_Before, First_Comment_Before_End): New functions
11244 (Next_Comment): New function
11245 (End_Of_Line_Comment, Follows_Empty_Line,
11246 Is_Followed_By_Empty_Line): New functions
11247 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
11248 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
11249 (Set_Next_Comment): New procedure
11250 (Default_Project_Node): Associate comment before if the node can store
11251 comments.
11252
11253 * scans.ads (Token_Type): New enumeration value Tok_Comment
11254 (Comment_Id): New global variable
11255
11256 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
11257 defaulted to False.
11258 (Scan): Store position of start of comment. If comments are tokens, set
11259 Comment_Id and set Token to Tok_Comment when scanning a comment.
11260 (Set_Comment_As_Token): New procedure
11261
11262 * sinput-p.adb: Update Copyright notice
11263 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
11264 that no longer exists.
11265
11266 2003-12-08 Javier Miranda <miranda@gnat.com>
11267
11268 * sem_aggr.adb: Add dependence on Exp_Tss package
11269 Correct typo in comment
11270 (Resolve_Aggregate): In case of array aggregates set the estimated
11271 type of the aggregate before calling resolve. This is needed to know
11272 the name of the corresponding IP in case of limited array aggregates.
11273 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
11274 in case of default initialized array components.
11275
11276 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
11277 types. Required to give support to limited aggregates in generic
11278 formals.
11279
11280 2003-12-08 Ed Schonberg <schonberg@gnat.com>
11281
11282 * sem_ch3.adb (Check_Initialization): For legality purposes, an
11283 inlined body functions like an instantiation.
11284 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
11285 until bounds are analyzed, to diagnose premature use of type.
11286
11287 * sem_util.adb (Wrong_Type): Improve error message when the type of
11288 the expression is used prematurely.
11289
11290 2003-12-08 GNAT Script <nobody@gnat.com>
11291
11292 * Make-lang.in: Makefile automatically updated
11293
11294 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
11295
11296 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
11297 they are automatically generated by Make-lang.in and cause nothing but
11298 maintenance troubles.
11299
11300 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
11301
11302 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
11303 version of this unit).
11304
11305 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
11306
11307 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
11308 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
11309 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
11310 the body of System.Interrupt_Management common to several targets.
11311 Update copyright notice when appropriate.
11312
11313 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
11314 constant.
11315
11316 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
11317 to ensure that the kernel fills in the interrupted context structure
11318 before calling a signal handler, which is necessary to be able to
11319 unwind past it. Update the copyright notice.
11320
11321 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
11322
11323 * a-elchha.ads: New file.
11324
11325 * a-elchha.adb: New default last chance handler. Contents taken from
11326 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
11327
11328 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
11329 is moved to a-elchha.adb to provide a target-independent default last
11330 chance handler.
11331
11332 * Makefile.rtl: Add a-elchha.o
11333
11334 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
11335
11336 2003-12-05 Ed Schonberg <schonberg@gnat.com>
11337
11338 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
11339 declared in an instance, do not inline the call if the instance is not
11340 frozen yet, to prevent order of elaboration problems.
11341
11342 * sem_prag.adb: Add comments for previous fix.
11343
11344 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
11345
11346 * g-table.adb: Use the right variable in Set_Item.
11347 Update copyright notice.
11348
11349 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
11350
11351 * Makefile.in: Remove unused rules.
11352
11353 2003-12-05 Vincent Celier <celier@gnat.com>
11354
11355 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
11356 -nostdlib. Not needed here after all.
11357
11358 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
11359
11360 PR ada/11724
11361
11362 * adaint.h, adaint.c, g-os_lib.ads:
11363 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
11364 on some platforms (including FreeBSD), it is a 64 bit value.
11365 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
11366
11367 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
11368
11369 * gnatvsn.ads (Library_Version): Now contain only the relevant
11370 version info.
11371 (Verbose_Library_Version): New constant.
11372
11373 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
11374 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
11375 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
11376
11377 * gnatlbr.adb: Clean up: replace Library_Version by
11378 Verbose_Library_Version.
11379
11380 * make.adb, lib-writ.adb, exp_attr.adb:
11381 Clean up: replace Library_Version by Verbose_Library_Version.
11382
11383 * 5lintman.adb: Removed.
11384
11385 * Makefile.in:
11386 Update and simplify computation of LIBRARY_VERSION.
11387 Fix computation of GSMATCH_VERSION.
11388 5lintman.adb is no longer used: replaced by 7sintman.adb.
11389
11390 2003-12-03 Robert Dewar <dewar@gnat.com>
11391
11392 * exp_ch5.adb:
11393 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
11394 name. Modified to consider small non-bit-packed arrays as troublesome
11395 and in need of component-by-component assigment expansion.
11396
11397 2003-12-03 Vincent Celier <celier@gnat.com>
11398
11399 * lang-specs.h: Process nostdlib as nostdinc
11400
11401 * back_end.adb: Update Copyright notice
11402 (Scan_Compiler_Arguments): Process -nostdlib directly.
11403
11404 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
11405
11406 * Makefile.in:
11407 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
11408 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
11409 included in HIE_NONE_TARGET_PAIRS.
11410
11411 2003-12-03 Ed Schonberg <schonberg@gnat.com>
11412
11413 * sem_attr.adb:
11414 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
11415 is legal in an instance, because legality is cheched in the template.
11416
11417 * sem_prag.adb:
11418 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
11419 appplied to an unchecked conversion of a formal parameter.
11420
11421 * sem_warn.adb:
11422 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
11423 variables.
11424
11425 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
11426
11427 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
11428 routines. The second one is new functionality to deal with backtracing
11429 through signal handlers.
11430 (unwind): Split into the two separate subroutines above.
11431 Update the documentation, and deal properly with sizeof (REG) different
11432 from sizeof (void*).
11433
11434 2003-12-01 Nicolas Setton <setton@act-europe.fr>
11435
11436 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
11437 so that the debugger can reliably access the value of the parameter,
11438 and therefore is able to display the exception name when an exception
11439 breakpoint is reached.
11440
11441 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
11442
11443 * fmap.adb: Fix typo in warning message.
11444
11445 * g-socket.ads, g-socket.adb: Make Free a visible instance of
11446 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
11447
11448 2003-12-01 Vincent Celier <celier@gnat.com>
11449
11450 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
11451 ther is no Afile.
11452 (Build_Library): Get the switches only if Default_Switches is declared
11453 in package Binder.
11454
11455 2003-12-01 Ed Schonberg <schonberg@gnat.com>
11456
11457 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
11458 actuals that are indexed components, reanalyze actual to ensure that
11459 packed array references are properly expanded.
11460
11461 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
11462 attempted assignment to a discriminant.
11463
11464 2003-12-01 Robert Dewar <dewar@gnat.com>
11465
11466 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
11467 reformatting.
11468
11469 * switch-c.adb: Minor reformatting of comments
11470
11471 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
11472
11473 * Makefile.in: Clean ups.
11474
11475 2003-12-01 GNAT Script <nobody@gnat.com>
11476
11477 * Make-lang.in: Makefile automatically updated
11478
11479 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
11480
11481 * 5wsystem.ads: Disable zero cost exception, not ready yet.
11482
11483 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
11484
11485 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
11486 to force serialization.
11487
11488 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
11489
11490 * g-socket.ads, g-socket.adb:
11491 Clarify documentation of function Stream. Introduce a Free procedure
11492 to release the returned Stream once it becomes unused.
11493
11494 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
11495
11496 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
11497
11498 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
11499 since NT 4 cannot handle timeout values that are too large,
11500 e.g. DWORD'Last - 1.
11501
11502 2003-11-26 Ed Schonberg <schonberg@gnat.com>
11503
11504 * exp_ch4.adb:
11505 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
11506 in procedure calls and whose expansion must be deferred.
11507
11508 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
11509 is in exp_ch4.
11510
11511 * sem_ch3.adb:
11512 (Build_Derived_Array_Type): Create operator for unconstrained type
11513 if ancestor is unconstrained.
11514
11515 2003-11-26 Vincent Celier <celier@gnat.com>
11516
11517 * make.adb (Project_Object_Directory): New global variable
11518 (Change_To_Object_Directory): New procedure
11519 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
11520 of Change_Dir directly. Do not change working directory to object
11521 directory of main project after each compilation.
11522 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
11523 directly.
11524 Change to object directory of main project before binding step.
11525 (Initialize): Initialize Project_Object_Directory to No_Project
11526
11527 * mlib-prj.adb:
11528 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
11529 binding a Stand-Alone Library.
11530
11531 * output.adb: Update Copyright notice
11532 (Write_Char): Output buffer when full
11533
11534 2003-11-26 Robert Dewar <dewar@gnat.com>
11535
11536 * sem_ch13.adb: (Check_Size): Reset size if size is too small
11537
11538 * sem_ch13.ads:
11539 (Check_Size): Fix documentation to include bit-packed array case
11540
11541 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
11542
11543 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
11544
11545 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
11546
11547 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
11548
11549 PR ada/13142
11550 * utils.c (init_gigi_decls): Change name of built-in setjmp to
11551 __builtin_setjmp, since this is apparently needed by recent
11552 non Ada changes.
11553
11554 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11555
11556 * adadecode.c: Only include ctype.h if not IN_GCC.
11557 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
11558
11559 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
11560
11561 * Makefile.in:
11562 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
11563 signals and interrupts.
11564
11565 * 5zintman.ads: New File.
11566
11567 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
11568 add exception signals to the set of unmasked signals.
11569
11570 * 5ztaprop.adb:
11571 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
11572 between signals and interrupts.
11573 Add to Unblocked_Signal_Mask the set of signals that are in
11574 Keep_Unmasked.
11575
11576 * 7sinmaop.adb:
11577 Adding a check to see whether the Interrupt_ID we want to unmask is in
11578 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
11579 reason is that the index type of the Keep_Unmasked array is not always
11580 Interrupt_ID; it may be a subtype of Interrupt_ID.
11581
11582 2003-11-24 Gary Dismukes <dismukes@gnat.com>
11583
11584 * exp_util.adb:
11585 (Remove_Side_Effects): Condition constantness of object created for a
11586 an unchecked type conversion on the constantness of the expression
11587 to ensure the correct value for 'Constrained when passing components
11588 of view-converted class-wide objects.
11589
11590 2003-11-24 Robert Dewar <dewar@gnat.com>
11591
11592 * par-load.adb (Load): Improve handling of misspelled and missing units
11593 Removes several cases of compilation abandoned messages
11594
11595 * lib.adb: (Remove_Unit): New procedure
11596
11597 * lib.ads: (Remove_Unit): New procedure
11598
11599 * lib-load.adb: Minor reformatting
11600
11601 2003-11-24 Vincent Celier <celier@gnat.com>
11602
11603 * make.adb:
11604 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
11605 (Marking_Label): Label to mark processed source files. Incremented for
11606 each executable.
11607 (Gnatmake): Increase Marking_Labet for each executable
11608 (Is_Marked): Compare against marking label
11609 (Mark): Mark with marking label
11610
11611 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
11612
11613 * s-thread.ads:
11614 Move the declaration of the TSD for System.Threads to System.Soft_Links.
11615 Add some comments.
11616
11617 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
11618 (rts-cert): build a single relocatable object for the run-time lib.
11619 Fix perms.
11620
11621 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
11622
11623 * Make-lang.in:
11624 Use gnatls rather than gcc to obtain the location of GNAT RTL for
11625 crosstools build.
11626
11627 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
11628
11629 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
11630 can not use it as before (that is, as a variable) when dumping it into
11631 the tree file. Add a local variable to store the result of this
11632 function and to be used as the string to be written into the tree.
11633
11634 * scn.adb (Initialize_Scanner): Add comments explaining the recent
11635 changes.
11636
11637 * sinput.adb (Source_First, Source_Last): In case of
11638 Internal_Source_File, replace returning attributes of
11639 Internal_Source_Ptr (which is wrong) with returning attributes of
11640 Internal_Source.
11641
11642 2003-11-24 Ed Schonberg <schonberg@gnat.com>
11643
11644 * sem_ch3.adb:
11645 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
11646 used for implicit concatenation operators.
11647 Code cleanup.
11648
11649 * sem_elab.adb:
11650 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
11651 task bodies that are in the scope of a Suppress pragma.
11652 (Check_A Call): Use the flag to prevent spurious elaboration checks.
11653
11654 * sinfo.ads, sinfo.adb:
11655 New flag No_Elaboration_Check on function/procedure calls, to properly
11656 suppress checks on calls in task bodies that are within a local suppress
11657 pragma.
11658
11659 * exp_ch4.adb:
11660 (Expand_Concatenate_Other): Use the proper integer type for the
11661 expression for the upper bound, to avoid universal_integer computations
11662 when possible.
11663
11664 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
11665
11666 * .cvsignore: Delete.
11667
11668 2003-11-21 Andreas Schwab <schwab@suse.de>
11669
11670 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
11671
11672 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
11673
11674 * 5wsystem.ads: Enable zero cost exception.
11675
11676 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
11677
11678 * 5ztiitho.adb: Remove an unreferenced variable.
11679
11680 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
11681
11682 * adaint.c: For FreeBSD, use mkstemp.
11683
11684 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
11685
11686 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
11687
11688 2003-11-21 Robert Dewar <dewar@gnat.com>
11689
11690 * bld.adb: Remove useless USE of gnatvsn
11691
11692 * gnatchop.adb: Minor reformatting
11693 Clean up version handling to be more consistent
11694
11695 * gnatxref.adb: Minor reformatting
11696
11697 * gprcmd.adb: Minor reformatting
11698 Fix output of copyright to be more consistent with other tools
11699
11700 2003-11-21 Vincent Celier <celier@gnat.com>
11701
11702 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
11703
11704 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
11705
11706 * atree.adb (Initialize): Add initializations for global variables
11707 used in New_Copy_Tree.
11708
11709 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
11710 Internal_Source_File as the actual).
11711 Put the set of statements creating Any_Character before the set of
11712 statements creating Any_Array to have Any_Character fully initialized
11713 when it is used in creating Any_Array.
11714
11715 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
11716 not call Scan in case if the actual is Internal_Source_File
11717 Add 2003 to copyright note.
11718
11719 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
11720 processing Internal_Source_File.
11721
11722 * types.ads: Add the constant Internal_Source_File representing the
11723 source buffer for artificial source-code-like strings created within
11724 the compiler (the definition of Source_File_Index is changed).
11725
11726 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
11727
11728 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
11729 56system.ads: New file, FreeBSD version.
11730
11731 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
11732
11733 * Make-lang.in (ada.extraclean): Delete.
11734
11735 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
11736
11737 * gnatmem.adb: Clean up verbose output.
11738
11739 * gprcmd.adb: Change copyright to FSF.
11740
11741 2003-11-19 Vincent Celier <celier@gnat.com>
11742
11743 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
11744 and Version (ignored).
11745
11746 * symbols.ads: (Policy): New type
11747 (Initialize): New parameter Reference, Symbol_Policy and
11748 Library_Version.
11749 Remove parameter Force.
11750 Minor reformatting.
11751
11752 * snames.ads, snames.adbadb: New standard names
11753 Library_Reference_Symbol_File and Library_Symbol_Policy
11754
11755 * mlib-prj.adb:
11756 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
11757 project.
11758
11759 * mlib-tgt.adb:
11760 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
11761
11762 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
11763
11764 * prj.adb: (Project_Empty): New component Symbol_Data
11765
11766 * prj.ads: (Policy, Symbol_Record): New types
11767 (Project_Data): New component Symbol_Data
11768
11769 * prj-attr.adb:
11770 New attributes Library_Symbol_File, Library_Symbol_Policy and
11771 Library_Reference_Symbol_File.
11772
11773 * prj-nmsc.adb:
11774 (Ada_Check): When project is a Stand-Alone library project, process
11775 attribute Library_Symbol_File, Library_Symbol_Policy and
11776 Library_Reference_Symbol_File.
11777
11778 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
11779 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
11780 5sml-tgt.adb (Build_Dynamic_Library): New parameter
11781 Symbol_Data (ignored).
11782
11783 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
11784 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
11785 functions Option_File_Name and Version_String. Set new options of
11786 gnatsym related to symbol file, symbol policy and reference symbol
11787 file.
11788
11789 * 5vsymbol.adb:
11790 Extensive modifications to take into account the reference symbol file,
11791 the symbol policy, the library version and to put in the symbol file the
11792 minor and major IDs.
11793
11794 * bld.adb (Process_Declarative_Items): Put second argument of
11795 gprcmd to_absolute between single quotes, to avoid problems with
11796 Windows.
11797
11798 * bld-io.adb: Update Copyright notice.
11799 (Flush): Remove last character of a line, if it is a back slash, to
11800 avoid make problems.
11801
11802 * gnatsym.adb:
11803 Implement new scheme with reference symbol file and symbol policy.
11804
11805 * g-os_lib.ads: (Is_Directory): Clarify comment
11806
11807 2003-11-19 Robert Dewar <dewar@gnat.com>
11808
11809 * atree.adb: Move New_Copy_Tree global variables to head of package
11810
11811 * errout.adb: Minor reformatting
11812
11813 2003-11-19 Javier Miranda <miranda@gnat.com>
11814
11815 * sem_ch4.adb: (Diagnose_Call): Improve error message.
11816 Add reference to Ada0Y (AI-50217)
11817
11818 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
11819 sem_util.adb: Add reference to AI-50217
11820
11821 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
11822
11823 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
11824
11825 * sem_aggr.adb: Complete documentation of AI-287 changes
11826
11827 * par-ch4.adb: Document previous changes.
11828
11829 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
11830 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
11831 Ada0Y (AI-50217)
11832
11833 * exp_aggr.adb: Add references to AI-287 in previous changes
11834
11835 2003-11-19 Ed Schonberg <schonberg@gnat.com>
11836
11837 * exp_ch6.adb:
11838 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
11839 in the rewriting is the result of an inlined call.
11840
11841 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
11842 parameter is a type conversion, use original node to construct the
11843 post-call assignment, because expression may have been rewritten, e.g.
11844 if it is a packed array.
11845
11846 * sem_attr.adb:
11847 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
11848 body, just as it is in an instance.
11849 Categorization routines
11850
11851 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
11852 Instantiate_Object): Set proper sloc reference for message on missing
11853 actual.
11854
11855 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
11856
11857 * Makefile.in: Add FreeBSD libgnat pairs.
11858
11859 * usage.adb: Fix typo in usage message.
11860
11861 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
11862
11863 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
11864 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
11865 pragma Thread_Body.
11866 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
11867
11868 * s-thread.adb: This file is now a dummy implementation of
11869 System.Thread.
11870
11871 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
11872
11873 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
11874
11875 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
11876
11877 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
11878 instanciation references in the parent type description.
11879
11880 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11881
11882 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
11883
11884 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
11885 TYPE_PRECISION directly from esize.
11886
11887 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
11888
11889 * cstreams.c:
11890 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
11891
11892 * init.c: Initialization routines for FreeBSD
11893
11894 * link.c: Link info for FreeBSD
11895
11896 * sysdep.c: Add the case of FreeBSD
11897
11898 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
11899
11900 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
11901 already called in System.Threads.
11902
11903 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
11904 environment task, as it has been moved to System.Threads.Initialization.
11905
11906 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
11907
11908 * adaint.c (__gnatlib_install_locks): Only reference
11909 __gnat_install_locks on VMS, since other platforms can avoid using
11910 --enable-threads=gnat
11911
11912 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11913
11914 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
11915
11916 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
11917 TYPE_PACKED_ARRAY_TYPE_P.
11918 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
11919
11920 Part of PR ada/12806
11921 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
11922 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
11923
11924 2003-11-17 Vincent Celier <celier@gnat.com>
11925
11926 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
11927 to False.
11928 Do not set exit status to Failure when Warning is True.
11929 (Gnatchop): Make errors "no compilation units found" and
11930 "no source files written" warnings only.
11931
11932 * make.adb (Gnatmake): When using a project file, set
11933 Look_In_Primary_Dir to False.
11934 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
11935 and Local_Configuration_Pragmas in the project where they are declared
11936 not an extending project which might have inherited them.
11937
11938 * osint.adb (Locate_File): If Name is already an absolute path, do not
11939 look for a directory.
11940
11941 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
11942 -gnats (Check_Syntax) is used, issue only a warning, not an error.
11943
11944 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
11945 in objects of type Variable_Value.
11946
11947 * prj.ads: (Variable_Value): New component Project
11948
11949 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
11950 is in a project extended by Project.
11951
11952 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
11953 Project of Variable_Values to this new parameter value.
11954 (Expression): Set component Project of Variable_Values.
11955 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
11956 Set the component Project in array elements.
11957
11958 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
11959
11960 * errout.adb: (Initialize): Add initialization for error nodes.
11961
11962 * sem_ch12.adb (Initialize): Add missing initializations for
11963 Exchanged_Views and Hidden_Entities.
11964
11965 2003-11-17 Ed Schonberg <schonberg@gnat.com>
11966
11967 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
11968 already instantiated tree for use in subsequent inlining.
11969 (Analyze_Associations, Instantiate_Formal_Subprogram,
11970 Instantiate_Object): improve error message for mismatch in
11971 instantiations.
11972
11973 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
11974 instantiations of subprograms declared in instances.
11975
11976 2003-11-17 Javier Miranda <miranda@gnat.com>
11977
11978 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
11979 executed only under the Extensions_Allowed flag.
11980
11981 2003-11-17 Robert Dewar <dewar@gnat.com>
11982
11983 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
11984 zeroes suppressed.
11985 (Address_Image): Fix bug of returning 0x instead of 0x0
11986 Minor reformatting (function specs).
11987
11988 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
11989 (missed case of 33-63)
11990
11991 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
11992
11993 * s-thread.adb: Add comments for pragma Restriction
11994
11995 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
11996 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
11997
11998 2003-11-17 Ed Falis <falis@gnat.com>
11999
12000 * s-thread.adb: Added No_Tasking restriction for this implementation.
12001
12002 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
12003
12004 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
12005 instanciation references in the parent type description.
12006
12007 2003-11-17 GNAT Script <nobody@gnat.com>
12008
12009 * Make-lang.in: Makefile automatically updated
12010
12011 2003-11-16 Jason Merrill <jason@redhat.com>
12012
12013 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
12014 and TAGS files that include them for each front end.
12015
12016 2003-11-14 Andreas Jaeger <aj@suse.de>
12017
12018 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
12019 is the canonical version.
12020 * misc.c (gnat_handle_option): Likewise.
12021
12022 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
12023
12024 * 5nsystem.ads: New file for x86_64-linux-gnu.
12025
12026 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
12027
12028 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
12029
12030 * comperr.adb: Fix logic in previous change.
12031
12032 2003-11-13 Vincent Celier <celier@gnat.com>
12033
12034 * 5bml-tgt.adb (Build_Dynamic_Library): Use
12035 Osint.Include_Dir_Default_Prefix instead of
12036 Sdefault.Include_Dir_Default_Name.
12037
12038 * gnatlbr.adb: Update Copyright notice
12039 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
12040 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
12041 instead of Sdefault.Object_Dir_Default_Name
12042
12043 * gnatlink.adb:
12044 (Process_Binder_File): Never suppress the option following -Xlinker
12045
12046 * mdll-utl.adb:
12047 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
12048 Sdefault.Object_Dir_Default_Name.
12049
12050 * osint.ads, osint.adb:
12051 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
12052 Minor reformatting.
12053
12054 * vms_conv.ads: Minor reformating
12055 Remove GNAT STANDARD and GNAT PSTA
12056
12057 * vms_conv.adb:
12058 Allow GNAT MAKE to have several files on the command line.
12059 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
12060 Sdefault.Object_Dir_Default_Name.
12061 Minor Reformating
12062 Remove data for GNAT STANDARD
12063
12064 * vms_data.ads:
12065 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
12066 Remove data for GNAT STANDARD
12067 Remove options and documentation for -gnatwb/-gnatwB: these warning
12068 options no longer exist.
12069
12070 2003-11-13 Ed Falis <falis@gnat.com>
12071
12072 * 5zthrini.adb: (Init_RTS): Made visible
12073
12074 * 5zthrini.adb:
12075 (Register): Removed unnecessary call to taskVarGet that checked whether
12076 an ATSD was already set as a task var for the argument thread.
12077
12078 * s-thread.adb:
12079 Updated comment to reflect that this is a VxWorks version
12080 Added context clause for System.Threads.Initialization
12081 Added call to System.Threads.Initialization.Init_RTS
12082
12083 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
12084
12085 * 5zthrini.adb:
12086 (Init_RTS): New procedure, for the initialization of the run-time lib.
12087
12088 * s-thread.adb:
12089 Remove dependancy on System.Init, so that this file can be used in the
12090 AE653 sequential run-time lib.
12091
12092 2003-11-13 Robert Dewar <dewar@gnat.com>
12093
12094 * bindgen.adb: Minor reformatting
12095
12096 2003-11-13 Ed Schonberg <schonberg@gnat.com>
12097
12098 * checks.adb:
12099 (Apply_Discriminant_Check): Do no apply check if target type is derived
12100 from source type with no applicable constraint.
12101
12102 * lib-writ.adb:
12103 (Ensure_System_Dependency): Do not apply the style checks that may have
12104 been specified for the main unit.
12105
12106 * sem_ch8.adb:
12107 (Find_Selected_Component): Further improvement in error message, with
12108 RM reference.
12109
12110 * sem_res.adb:
12111 (Resolve): Handle properly the case of an illegal overloaded protected
12112 procedure.
12113
12114 2003-11-13 Javier Miranda <miranda@gnat.com>
12115
12116 * exp_aggr.adb:
12117 (Has_Default_Init_Comps): New function to check the presence of
12118 default initialization in an aggregate.
12119 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
12120 extension aggregate of a limited record. In addition, a new formal
12121 was added to do not initialize the record controller (if any) during
12122 this recursive expansion of ancestors.
12123 (Init_Controller): Add support for limited record components.
12124 (Expand_Record_Aggregate): In case of default initialized components
12125 convert the aggregate into a set of assignments.
12126
12127 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
12128 describing the new syntax.
12129 Nothing else needed to be done because this subprogram delegates part of
12130 its work to P_Precord_Or_Array_Component_Association.
12131 (P_Record_Or_Array_Component_Association): Give support to the new
12132 syntax for default initialization of components.
12133
12134 * sem_aggr.adb:
12135 (Resolve_Aggregate): Relax the strictness of the frontend in case of
12136 limited aggregates.
12137 (Resolve_Record_Aggregate): Give support to default initialized
12138 components.
12139 (Get_Value): In case of default initialized components, duplicate
12140 the corresponding default expression (from the record type
12141 declaration). In case of default initialization in the *others*
12142 choice, do not check that all components have the same type.
12143 (Resolve_Extension_Aggregate): Give support to limited extension
12144 aggregates.
12145
12146 * sem_ch3.adb:
12147 (Check_Initialization): Relax the strictness of the front-end in case
12148 of aggregate and extension aggregates. This test is now done in
12149 Get_Value in a per-component manner.
12150
12151 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
12152 expression corresponds to a limited aggregate. This test is now done
12153 in Get_Value.
12154
12155 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
12156 Box_Present flag.
12157
12158 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
12159 present in an N_Component_Association node
12160
12161 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
12162
12163 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
12164 type-conformant entry only if they are homographs.
12165
12166 2003-11-13 GNAT Script <nobody@gnat.com>
12167
12168 * Make-lang.in: Makefile automatically updated
12169
12170 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12171
12172 * adadecode.c: Use <> form of include for ctype.h.
12173 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
12174
12175 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12176
12177 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
12178 Works around PR middle-end/6552.
12179
12180 2003-11-10 Ed Falis <falis@gnat.com>
12181
12182 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
12183
12184 * 5zinit.adb: (Install_Handler): Moved back to spec
12185 (Install_Signal_Handlers): Deleted
12186
12187 * 5zthrini.adb: Added context clause for System.Storage_Elements
12188 (Register): Only handles creation of taskVar; initialization moved to
12189 Thread_Body_Enter.
12190 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
12191 Added declaration of environment task secondary stack and
12192 initialization.
12193
12194 * s-thread.adb: Implement bodies for thread body processing
12195
12196 * s-thread.ads:
12197 Added comment identifying supported targets for pragma Thread_Body.
12198
12199 2003-11-10 Pascal Obry <obry@gnat.com>
12200
12201 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
12202 GNAT_MAX_PATH_LEN.
12203
12204 * s-fileio.adb:
12205 (Open): Properly check for string length before copying into the buffer.
12206 Raises Name_Error if buffer is too small. Note that this was a potential
12207 buffer overflow.
12208
12209 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
12210
12211 * bindgen.adb, comperr.adb: Code clean ups.
12212 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
12213
12214 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
12215
12216 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
12217
12218 2003-11-10 Vincent Celier <celier@gnat.com>
12219
12220 * gprcmd.adb:
12221 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
12222 installation.
12223
12224 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
12225
12226 * prj.adb: (Project_Empty): Add new boolean component Virtual
12227
12228 * prj.ads: (Virtual_Prefix): New constant string
12229 (Project_Data): New boolean component Virtual
12230
12231 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
12232 a library project is extended by a virtual extending project.
12233
12234 * prj-part.adb:
12235 Modifications throughout to implement extending-all project, including:
12236 (Virtual_Hash, Processed_Hash): New hash tables
12237 (Create_Virtual_Extending_Project): New procedure
12238 (Look_For_Virtual_Projects_For): New procedure
12239
12240 * prj-proc.adb:
12241 (Process): After checking the projects, if main project is an
12242 extending-all project, set the object directory of all virtual extending
12243 project to the object directory of the main project.
12244 Adjust error message when a virtual extending project has the same
12245 object directory as an project being extended.
12246 (Recursive_Process): If name starts with the virtual prefix, set Virtual
12247 to True in the project data.
12248
12249 * prj-tree.adb:
12250 (Default_Project_Node): Add new boolean component Extending_All
12251 (Is_Extending_All): New function
12252 (Set_Is_Extending_All): New procedure
12253
12254 * prj-tree.ads: (Is_Extending_All): New function
12255 (Set_Is_Extending_All): New procedure
12256 (Project_Node_Record): New boolean component Extending_All
12257
12258 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
12259
12260 * vms_data.ads:
12261 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
12262
12263 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
12264 "gprcmd prefix" to define it.
12265
12266 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
12267
12268 * einfo.ads: Fix a typo and remove an extraneous word in comments.
12269
12270 * lib-load.adb:
12271 (Create_Dummy_Package_Unit): Set the scope of the entity for the
12272 created dummy package to Standard_Standard, not to itself, to
12273 defend other parts of the front-end against encoutering a cycle in
12274 the scope chain.
12275
12276 * sem_ch10.adb:
12277 (Analyze_With_Clause): When setting the entities for the successive
12278 N_Expanded_Names that constitute the name of a child unit, do not
12279 attempt to go further than Standard_Standard in the chain of scopes.
12280 This case arises from the placeholder units created by
12281 Create_Dummy_Package_Unit in the case of a with_clause for a
12282 nonexistent child unit.
12283
12284 2003-11-10 Ed Schonberg <schonberg@gnat.com>
12285
12286 * exp_ch6.adb:
12287 (Expand_Thread_Body): Place subprogram on scope stack, so that new
12288 declarations are given the proper scope.
12289
12290 * sem_ch13.adb:
12291 (Check_Expr_Constants): Reject an expression that contains a constant
12292 created during expansion, and that appears after the object to which
12293 the address clause applies.
12294
12295 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
12296 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
12297 that uses 'Range of a function call with controlled components, so
12298 that the function result can be finalized before starting the loop.
12299
12300 * sem_ch8.adb:
12301 (Find_Selected_Component): Improve error message when prefix is
12302 an implicit dereference of an incomplete type.
12303
12304 2003-11-10 Robert Dewar <dewar@gnat.com>
12305
12306 * opt.ads: New Print_Standard flag for -gnatS switch
12307
12308 * sem_ch13.adb: Remove some additional checks for unaligned arrays
12309
12310 * cstand.adb (Create_Standard): Print out package standard if -gnatS
12311 switch set
12312
12313 * debug.adb: Update doc for -gnatds to discuss relationship with new
12314 -gnatS flag
12315
12316 * sinfo.adb: Add new field Entity_Or_Associated_Node
12317
12318 * sinfo.ads: Add new field Entity_Or_Associated_Node
12319 Update documentation for Associated_Node and Entity fields to clarify
12320 relationship and usage.
12321
12322 * sprint.adb:
12323 (Write_Id): Properly process Associated_Node field in generic template
12324
12325 * switch-c.adb:
12326 Recognize new -gnatS switch for printing package Standard
12327 This replaces gnatpsta
12328
12329 * usage.adb:
12330 Add line for new -gnatS switch for printing package Standard
12331 This replaces gnatpsta
12332
12333 2003-11-10 Andreas Jaeger <aj@suse.de>
12334
12335 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
12336 integer.
12337
12338 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
12339
12340 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
12341 by gnat1.
12342
12343 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
12344
12345 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
12346 no longer needed.
12347
12348 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
12349
12350 * sysdep.c: Add handling of cygwin.
12351
12352 2003-11-10 GNAT Script <nobody@gnat.com>
12353
12354 * Make-lang.in: Makefile automatically updated
12355
12356 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
12357
12358 PR 12950
12359 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
12360 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
12361 Replace GNAT_ROOT by GCC_ROOT.
12362
12363 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
12364
12365 2003-11-06 Zack Weinberg <zack@codesourcery.com>
12366
12367 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
12368 and update for changed meaning of GET_MODE_BITSIZE.
12369
12370 2003-11-04 Doug Rupp <rupp@gnat.com>
12371
12372 * sysdep.c: Problem discovered during IA64 VMS port.
12373 [VMS] #include <unixio.h> to get proper prototypes.
12374
12375 * adaint.c:
12376 Issues discovered/problems fixed during IA64 VMS port.
12377 [VMS] #define _POSIX_EXIT for proper semantics.
12378 [VMS] #include <unixio.h> for proper prototypes.
12379 [VMS] (fork): #define IA64 version.
12380 (__gnat_os_exit): Remove unnecessary VMS specific code.
12381
12382 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12383
12384 Part of PR ada/12806
12385
12386 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
12387 tree, not integer.
12388
12389 * decl.c:
12390 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
12391 not integer.
12392
12393 * targtyps.c, decl.c, misc.c,
12394 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
12395 routines to work around change in FP sizing semantics in GCC.
12396
12397 * utils.c:
12398 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
12399
12400 * gigi.h: (enumerate_modes): New function.
12401
12402 * Make-lang.in: (ada/misc.o): Add real.h.
12403
12404 * misc.c: (enumerate_modes): New function.
12405
12406 2003-11-04 Robert Dewar <dewar@gnat.com>
12407
12408 * 3vtrasym.adb: Minor reformatting
12409 Use terminology encoded/decoded name, rather than C++ specific notion
12410 of mangling (this is the terminology used throughout GNAT).
12411
12412 * einfo.h: Regenerated
12413
12414 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
12415
12416 * exp_ch6.adb:
12417 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
12418
12419 * par-prag.adb: Add dummy entry for Thread_Body pragma
12420
12421 * rtsfind.ads:
12422 Add entries for System.Threads entities for thread body processing
12423
12424 * sem_attr.adb:
12425 (Analyze_Pragma, Access attributes): Check these are not applied to a
12426 thread body, since this is not permitted
12427
12428 * sem_prag.adb: Add processing for Thread_Body pragma.
12429 Minor comment fix.
12430
12431 * sem_res.adb:
12432 (Resolve_Call): Check for incorrect attempt to call a thread body
12433 procedure with a direct call.
12434
12435 * snames.ads, snames.adb: Add entry for Thread_Body pragma
12436 Add names associated with thread body expansion
12437
12438 * snames.h: Add entry for Thread_Body pragma
12439
12440 * s-thread.adb: Add entries for thread body processing
12441 These are dummy bodies so far
12442
12443 * s-thread.ads: Add documentation on thread body handling.
12444 Add entries for thread body processing.
12445
12446 2003-11-04 Javier Miranda <miranda@gnat.com>
12447
12448 * sem_ch10.adb:
12449 (Build_Limited_Views): Return after posting an error in case of limited
12450 with_clause on subprograms, generics, instances or generic renamings
12451 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
12452 on subprograms, generics, instances or generic renamings
12453
12454 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
12455
12456 * raise.c (setup_to_install): Correct mistake in last revision; two
12457 arguments out of order.
12458
12459 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
12460 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
12461 notice, missed in previous change.
12462 Remove trailing blanks and other style errors introduced in previous
12463 change.
12464
12465 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
12466
12467 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
12468 rid of the wrapper for a LJM type, ensuring we don't do that if the
12469 field is addressable. This avoids potential low level type view
12470 mismatches later on, for instance in a by-reference argument passing
12471 process.
12472
12473 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12474
12475 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
12476 aligned at byte boundary.
12477
12478 2003-11-04 Joel Brobecker <brobecker@gnat.com>
12479
12480 * decl.c (components_to_record): Do not delete the empty variants from
12481 the end of the union type.
12482
12483 2003-11-04 Ed Schonberg <schonberg@gnat.com>
12484
12485 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
12486 operation for a derived type, an explicit declaration may use a local
12487 subtype of Boolean.
12488
12489 2003-11-04 Vincent Celier <celier@gnat.com>
12490
12491 * make.adb (Gnatmake): Allow main sources on the command line with a
12492 library project when it is only for compilation (no binding or
12493 linking).
12494
12495 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12496
12497 * Makefile.in: Remove many duplicate variables.
12498
12499 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
12500
12501 * Make-lang.in (dvi): Move targets to $(docobjdir).
12502 (gnat_ug_vms.dvi): Simplify rule and adjust target.
12503 (gnat_ug_wnt.dvi): Likewise.
12504 (gnat_ug_unx.dvi): Likewise.
12505 (gnat_ug_vxw.dvi): Likewise.
12506 (gnat_rm.dvi): Likewise.
12507 (gnat-style.dvi): Likewise.
12508
12509 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
12510
12511 * gigi.h: Missed commit from update for C90.
12512
12513 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
12514
12515 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
12516
12517 2003-10-31 Andreas Schwab <schwab@suse.de>
12518
12519 * raise.c (get_action_description_for): Fix typo in last change.
12520
12521 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
12522
12523 PR ada/12761
12524 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
12525 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
12526
12527 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
12528
12529 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
12530 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
12531 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
12532 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
12533 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
12534
12535 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
12536
12537 * 3vtrasym.adb:
12538 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
12539 numbers when symbol name is too long.
12540
12541 2003-10-30 Ed Falis <falis@gnat.com>
12542
12543 * g-signal.ads, g-signal.adb: New files
12544
12545 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
12546
12547 * Makefile.rtl: Introduce GNAT.Signals
12548
12549 2003-10-30 Robert Dewar <dewar@gnat.com>
12550
12551 * freeze.adb: Minor reformatting
12552
12553 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
12554
12555 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
12556 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
12557 New handling of Id_Check parameter to improve recognition of keywords
12558 used as identifiers.
12559 Update copyright notice to include 2003
12560
12561 2003-10-29 Robert Dewar <dewar@gnat.com>
12562
12563 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
12564 sem_ch10.adb: Minor reformatting
12565
12566 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
12567 (Expand_Assign_Record): Test right hand side for bit unaligned as well
12568
12569 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
12570
12571 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
12572 Support for TBK$SYMBOLIZE-based symbolic traceback.
12573
12574 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
12575
12576 * exp_disp.adb:
12577 Revert previous change, that did not work well when pragma No_Run_Time
12578 was used in conjunction with a run-time other than ZFP.
12579
12580 2003-10-29 Vincent Celier <celier@gnat.com>
12581
12582 * make.adb:
12583 (Gnatmake): When there are no Ada mains in attribute Main, disable the
12584 bind and link steps only is switch -z is not used.
12585
12586 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
12587
12588 * Makefile.generic: Remove duplicated setting of CC.
12589
12590 * Makefile.prolog: Set CC to gcc by default, to override make's
12591 default (cc).
12592
12593 * einfo.h: Regenerated.
12594
12595 2003-10-29 Ed Schonberg <schonberg@gnat.com>
12596
12597 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
12598 current body, after compiling subunit.
12599
12600 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
12601 when in deleted code, because gigi needs properly ordered freeze
12602 actions to annotate types.
12603
12604 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
12605 prevent the premature freezing of record type that contains
12606 subcomponents with a private type that does not yet have a completion.
12607
12608 2003-10-29 Javier Miranda <miranda@gnat.com>
12609
12610 * sem_ch12.adb:
12611 (Analyze_Package_Instantiation): Check that instances can not be used in
12612 limited with_clauses.
12613
12614 * sem_ch8.adb:
12615 (Analyze_Package_Renaming): Check that limited withed packages cannot
12616 be renamed. Improve text on error messages related to limited
12617 with_clauses.
12618
12619 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
12620
12621 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
12622 Update copyright notice.
12623
12624 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
12625 (Install_Limited_Context_Clauses): New subprogram that isolates all the
12626 checks required for limited context_clauses and installs the limited
12627 view.
12628 (Install_Limited_Withed_Unit): Complete its documentation.
12629 (Analyze_Context): Check that limited with_clauses are only allowed in
12630 package specs.
12631 (Install_Context): Call Install_Limited_Context_Clauses after the
12632 parents have been installed.
12633 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
12634 package as 'From_With_Type'; this mark indicates that the limited view
12635 is installed. Used to check bad usages of limited with_clauses.
12636 (Build_Limited_Views): Do not add shadow entities to the scope's list
12637 of entities. Do not add real entities to the Non_Limited_Views chain.
12638 Improve error notification.
12639 (Remove_Context_Clauses): Remove context clauses in two phases:
12640 limited views first and regular views later (to maintain the
12641 stack model).
12642 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
12643 its visible entities.
12644
12645 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
12646
12647 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
12648 with any type that Is_Fixed_Point_Type.
12649
12650 * sinfo.ads: Fix documentation for Associated_Node attribute.
12651
12652 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
12653
12654 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
12655 both '-gnatc' and '-gnatt' are specified.
12656
12657 * atree.adb (Initialize): Add initialization for Node_Count (set to
12658 zero).
12659
12660 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12661
12662 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
12663 do not consider as Pure.
12664
12665 Part of implementation of function-at-a-time:
12666
12667 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
12668 (tree_transform): Add new argument to build_component_ref.
12669 (tree_transform, case N_Assignment_Statement): Make and return an
12670 EXPR_STMT.
12671 (tree_transform): If result IS_STMT, set flags and return it.
12672 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
12673
12674 * utils2.c (build_simple_component_ref, build_component_ref): Add new
12675 arg, NO_FOLD_P.
12676 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
12677 (build_allocator): Likewise.
12678
12679 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
12680 Add new arg to build_component_ref.
12681 (maybe_unconstrained_array, unchecked_convert): Likewise.
12682
12683 * ada-tree.def (EXPR_STMT): New code.
12684
12685 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
12686
12687 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
12688 build_component_ref calls.
12689
12690 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
12691
12692 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
12693 (build_component_ref): Add new argument, NO_FOLD_P.
12694
12695 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
12696
12697 * Makefile.generic: Add missing substitution on object_deps handling.
12698
12699 PR ada/5909:
12700 * Make-lang.in (check-ada): Enable ACATS test suite.
12701
12702 2003-10-27 Robert Dewar <dewar@gnat.com>
12703
12704 * exp_ch3.adb:
12705 (Freeze_Array_Type): We do not need an initialization routine for types
12706 derived from String or Wide_String. They should be treated the same
12707 as String and Wide_String themselves. This caused problems with the
12708 use of Initialize_Scalars.
12709
12710 * exp_ch5.adb:
12711 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
12712 composites. This allows use of component clauses that are not byte
12713 aligned.
12714
12715 * sem_prag.adb:
12716 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
12717 is an attempt to pack an array of atomic objects.
12718
12719 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
12720
12721 2003-10-27 Pascal Obry <obry@gnat.com>
12722
12723 * g-dirope.adb:
12724 (Basename): Check for drive letters in a pathname only on DOS based OS.
12725
12726 2003-10-27 Vincent Celier <celier@gnat.com>
12727
12728 * make.adb:
12729 (Gnatmake): When unable to change dir to the object dir, display the
12730 content of the parent dir of the obj dir, to try to understand why this
12731 happens.
12732
12733 2003-10-27 GNAT Script <nobody@gnat.com>
12734
12735 * Make-lang.in: Makefile automatically updated
12736
12737 2003-10-27 Ed Schonberg <schonberg@gnat.com>
12738
12739 * sem_ch12.adb:
12740 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
12741 should not be done in Save/Restore_Scope_Stack, because it is performed
12742 locally.
12743
12744 * sem_ch8.adb:
12745 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
12746 whether use clauses should be removed/restored.
12747
12748 * sem_ch8.ads:
12749 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
12750 whether use clauses should be removed/restored.
12751
12752 2003-10-26 Andreas Jaeger <aj@suse.de>
12753
12754 * Makefile.in: Remove duplicated lines.
12755
12756 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
12757
12758 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
12759 minimize the differences with ACT tree.
12760
12761 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
12762 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
12763 Gnatvsn.Gnat_Static_Version_String to reduce differences between
12764 ACT and FSF trees.
12765
12766 2003-10-24 Pascal Obry <obry@gnat.com>
12767
12768 * adadecode.c (ostrcpy): New function.
12769 (__gnat_decode): Use ostrcpy of strcpy.
12770 (has_prefix): Set first parameter a const.
12771 (has_suffix): Set first parameter a const.
12772 Update copyright notice. Fix source name in header.
12773 Removes a trailing space.
12774 PR ada/12014.
12775
12776 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
12777
12778 * exp_disp.adb:
12779 Remove the test against being in No_Run_Time_Mode before generating a
12780 call to Register_Tag. It is redundant with the test against the
12781 availability of the function Register_Tag.
12782
12783 2003-10-24 Vincent Celier <celier@gnat.com>
12784
12785 * g-catiio.adb: (Month_Name): Correct spelling of February
12786
12787 * make.adb: (Mains): New package
12788 (Initialize): Call Mains.Delete
12789 (Gnatmake): Check that each main on the command line is a source of a
12790 project file and, if there are several mains, each of them is a source
12791 of the same project file.
12792 (Gnatmake): When a foreign language is specified in attribute Languages,
12793 no main is specified on the command line and attribute Mains is not
12794 empty, only build the Ada main. If there is no Ada main, just compile
12795 the Ada sources and their closure.
12796 (Gnatmake): If a main is specified on the command line with directory
12797 information, check that the source exists and, if it does, that the path
12798 is the actual path of a source of a project.
12799
12800 * prj-env.adb:
12801 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
12802 Full_Path is True, return the full path instead of the simple file name.
12803 (Project_Of): New function
12804
12805 * prj-env.ads:
12806 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
12807 defaulted to False.
12808 (Project_Of): New function
12809
12810 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
12811
12812 * Makefile.generic:
12813 Ensure objects of main project are always checked and rebuilt if needed.
12814 Set CC to gcc by default.
12815 Prepare new handling of link by creating a global archive (not activated
12816 yet).
12817
12818 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
12819 stringt.h: Update copyright notice. Remove trailing blanks.
12820 Fix source name in header.
12821
12822 2003-10-24 Robert Dewar <dewar@gnat.com>
12823
12824 * sem_ch12.adb: Minor reformatting
12825
12826 * sem_ch3.adb:
12827 Minor reformatting (including new function return style throughout)
12828
12829 * sem_ch3.ads:
12830 Minor reformatting (including new function return style throughout)
12831
12832 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
12833
12834 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
12835 stringt.h: Update copyright notice. Remove trailing blanks.
12836 Fix source name in header.
12837
12838 2003-10-24 GNAT Script <nobody@gnat.com>
12839
12840 * Make-lang.in: Makefile automatically updated
12841
12842 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
12843
12844 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
12845 stringt.h: Convert to ISO C90 declarations and definitions.
12846
12847 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
12848
12849 PR ada/11978:
12850 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
12851 External_Tag attribute definition clauses.
12852
12853 2003-10-23 Ed Schonberg <schonberg@gnat.com>
12854
12855 PR ada/7613:
12856 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
12857 child unit, generate a fully qualified name to avoid spurious errors
12858 when the context contains renamings of different child units with
12859 the same simple name.
12860
12861 * exp_dbug.ads: Add documentation on name qualification for renamings
12862 of child units.
12863
12864 2003-10-23 Robert Dewar <dewar@gnat.com>
12865
12866 * g-regpat.ads, g-regpat.adb: Minor reformatting
12867
12868 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
12869
12870 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
12871
12872 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12873
12874 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
12875 Machine call.
12876
12877 * urealp.h: (Machine): Update to proper definition.
12878
12879 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
12880
12881 * init.c, adaint.c: Minor reformatting.
12882
12883 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
12884
12885 * adaint.c (w32_epoch_offset): Define static const at file level.
12886 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
12887 rather than t_create, t_access in call to GetFileTime. Use union
12888 to convert between FILETIME and unsigned long long.
12889 (__gnat_file_time_name): Test for invalid file handle.
12890 (__gnat_set_filetime_name): Support win32 targets using
12891 w32api SetFileTime.
12892
12893 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
12894
12895 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
12896
12897 * ctrl_c.c (__gnat_int_handler): Remove declaration.
12898
12899 * decl.c (creat_concat_name): Const-ify prefix.
12900
12901 * adaint.c: Include ctype.h if __MINGW32__.
12902 (__gnat_readlink): Mark arguments as possibly unused.
12903 (__gnat_symlink): Likewise.
12904 (__gnat_is_symbolic_link): Likewise.
12905 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
12906 declaration
12907 (__gnat_file_time_name): Don't declare struct stat statbuf when
12908 not needed.
12909 (__gnat_is_absolute_path): Add parenthesis around condition of
12910 'if' statement to avoid warning.
12911 (__gnat_plist_init): Specify void as parameter.
12912 (plist_enter): Likewise.
12913 (plist_leave): Likewise.
12914 (remove_handle): Make static. Initialize prev.
12915
12916 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
12917
12918 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
12919 * cstreams.c (__gnat_full_name): Minor improvements and clean up
12920 of previous change.
12921
12922 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12923
12924 * tracebak.c (MAX): Avoid redefinition warning.
12925
12926 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
12927 Change msg to const char *.
12928 (__gnat_install_handler): Remove ss, unused.
12929 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
12930 to const char *.
12931 * cstreams.c (__gnat_full_name): Declare p only when used.
12932 (__gnat_full_name) [sgi] Return buffer.
12933
12934 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
12935
12936 * mingw32.h: New file.
12937 * gnat_wrapper.adb: New file.
12938
12939 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
12940
12941 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
12942 string match a pre compiled regular expression (the corresponding
12943 version of the function working on a raw regular expression)
12944 Fix typos in various comments
12945 Update copyright notice in spec
12946
12947 2003-10-21 Gary Dismukes <dismukes@gnat.com>
12948
12949 * exp_ch3.adb:
12950 (Component_Needs_Simple_Initialization): Return False when the type is a
12951 packed bit array. Revise spec comments to document this case.
12952
12953 * exp_prag.adb:
12954 (Expand_Pragma_Import): Set any expression on the imported object to
12955 empty to avoid initializing imported objects (in particular this
12956 covers the case of zero-initialization of bit arrays).
12957 Update copyright notice.
12958
12959 2003-10-21 Ed Schonberg <schonberg@gnat.com>
12960
12961 * sem_ch12.adb:
12962 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
12963 a subunit is missing.
12964 (Instantiate_Subprogram_Body): If body of function is missing, set type
12965 of return expression explicitly in dummy body, to prevent cascaded
12966 errors when a subunit is missing.
12967 Fixes PR 5677.
12968
12969 * sem_ch3.adb:
12970 (Access_Subprogram_Declaration): Verify that return type is valid.
12971 Fixes PR 8693.
12972
12973 * sem_elab.adb:
12974 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
12975 generic.
12976 Fixes PR 12318.
12977
12978 * sem_util.adb:
12979 (Corresponding_Discriminant): If the scope of the discriminant is a
12980 private type without discriminant, use its full view.
12981 Fixes PR 8247.
12982
12983 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
12984
12985 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
12986 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
12987 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
12988 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
12989 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
12990 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
12991 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
12992 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
12993 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
12994 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
12995 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
12996 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
12997 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
12998 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
12999 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
13000 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
13001 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
13002 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
13003 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
13004 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
13005 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
13006 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
13007 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
13008 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
13009 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
13010 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
13011 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
13012 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
13013 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
13014 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
13015 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
13016 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
13017 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
13018 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
13019 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
13020 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
13021 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
13022 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
13023 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
13024 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
13025 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
13026 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
13027 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
13028 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
13029 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
13030 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
13031 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
13032 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
13033 vms_conv.ads, vms_conv.adb, vms_data.ads,
13034 vxaddr2line.adb: Files added. Merge with ACT tree.
13035
13036 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
13037 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
13038 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
13039 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
13040 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
13041 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
13042 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
13043 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
13044 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
13045 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
13046
13047 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
13048 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
13049 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
13050 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
13051 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
13052 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
13053 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
13054 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
13055 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
13056 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
13057 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
13058 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
13059 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
13060 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
13061 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
13062 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
13063 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
13064 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
13065 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
13066 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
13067 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
13068 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
13069 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
13070 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
13071 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
13072 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
13073 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
13074 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
13075 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
13076 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
13077 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
13078 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
13079 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
13080 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
13081 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
13082 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
13083 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
13084 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
13085 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
13086 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
13087 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
13088 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
13089 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
13090 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
13091 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
13092 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
13093 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
13094 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
13095 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
13096 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
13097 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
13098 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
13099 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
13100 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
13101 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
13102 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
13103 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
13104 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
13105 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
13106 checks.adb, checks.ads, cio.c, comperr.adb,
13107 comperr.ads, csets.adb, cstand.adb, cstreams.c,
13108 debug_a.adb, debug_a.ads, debug.adb, decl.c,
13109 einfo.adb, einfo.ads, errout.adb, errout.ads,
13110 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
13111 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
13112 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
13113 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
13114 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
13115 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
13116 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
13117 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
13118 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
13119 fe.h, fmap.adb, fmap.ads, fname.adb,
13120 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
13121 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
13122 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
13123 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
13124 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
13125 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
13126 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
13127 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
13128 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
13129 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
13130 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
13131 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
13132 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
13133 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
13134 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
13135 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
13136 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
13137 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
13138 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
13139 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
13140 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
13141 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
13142 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
13143 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
13144 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
13145 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
13146 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
13147 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
13148 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
13149 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
13150 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
13151 layout.adb, lib.adb, lib.ads, lib-list.adb,
13152 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
13153 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
13154 link.c, live.adb, make.adb, make.ads,
13155 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
13156 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
13157 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
13158 misc.c, mkdir.c, mlib.adb, mlib.ads,
13159 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
13160 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
13161 namet.adb, namet.ads, namet.h, nlists.ads,
13162 nlists.h, nmake.adt, opt.adb, opt.ads,
13163 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
13164 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
13165 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
13166 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
13167 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
13168 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
13169 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
13170 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
13171 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
13172 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
13173 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
13174 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
13175 prj-util.adb, prj-util.ads, raise.c, raise.h,
13176 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
13177 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
13178 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
13179 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
13180 scans.ads, scn.adb, scn.ads, s-crc32.adb,
13181 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
13182 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
13183 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
13184 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
13185 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
13186 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13187 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
13188 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
13189 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
13190 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
13191 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
13192 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
13193 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
13194 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
13195 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
13196 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
13197 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
13198 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
13199 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
13200 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
13201 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
13202 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
13203 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
13204 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
13205 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
13206 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
13207 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
13208 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
13209 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
13210 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
13211 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
13212 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
13213 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
13214 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
13215 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
13216 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
13217 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
13218 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
13219 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
13220 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
13221 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
13222 stringt.adb, stringt.ads, stringt.h, style.ads,
13223 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
13224 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
13225 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
13226 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
13227 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
13228 table.adb, table.ads, targparm.adb, targparm.ads,
13229 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
13230 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
13231 ttypes.ads, types.ads, types.h, uintp.adb,
13232 uintp.ads, uintp.h, uname.adb, urealp.adb,
13233 urealp.ads, urealp.h, usage.adb, utils2.c,
13234 utils.c, validsw.adb, validsw.ads, widechar.adb,
13235 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
13236 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
13237 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
13238 gnatvsn.ads: Merge with ACT tree.
13239
13240 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
13241
13242 2003-10-20 Mark Mitchell <mark@codesourcery.com>
13243
13244 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
13245 (gnat_ug_vmx.info): Likewise.
13246 (gnat_ug_vxw.info): Likewise.
13247 (gnat_ug_wnt.info): Likewise.
13248 (gnat_rm.info): Likewise.
13249 (gnat-style.info): Likewise.
13250
13251 * Make-lang.in (ada.install-info): Remove target.
13252 (info): New target.
13253 (install-info): Likewise.
13254 (gnat_ug_unx.info): Simplify rule.
13255 (gnat_ug_vmx.info): Likewise.
13256 (gnat_ug_vxw.info): Likewise.
13257 (gnat_ug_wnt.info): Likewise.
13258 (gnat_rm.info): Likewise.
13259 (gnat-style.info): Likewise.
13260
13261 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
13262
13263 * Make-lang.in: Replace uses of $(target_alias) with
13264 $(target_noncanonical).
13265 * ada/Makefile.in: Remove unused mention of $(target_alias).
13266
13267 2003-10-06 Mark Mitchell <mark@codesourcery.com>
13268
13269 * Make-lang.in (ada.info): Replace with ...
13270 (info): ... this.
13271 (ada.dvi): Replace with ...
13272 (dvi): ... this.
13273
13274 2003-09-29 Zack Weinberg <zack@codesourcery.com>
13275
13276 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
13277 initialize dconstp5 and dconstmp5.
13278
13279 2003-09-28 Richard Henderson <rth@redhat.com>
13280
13281 * trans.c (tree_transform): Update call to expand_asm_operands.
13282
13283 2003-09-21 Richard Henderson <rth@redhat.com>
13284
13285 * trans.c, utils.c: Revert.
13286
13287 2003-09-21 Richard Henderson <rth@redhat.com>
13288
13289 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
13290 change to const.
13291
13292 2003-09-04 Michael Matz <matz@suse.de>
13293
13294 * misc.c: Include "target.h".
13295 * Make-lang.in (misc.o): Add dependency on target.h.
13296
13297 2003-09-03 DJ Delorie <dj@redhat.com>
13298
13299 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
13300 hook.
13301
13302 2003-08-30 Zack Weinberg <zack@codesourcery.com>
13303
13304 * Makefile.in: Update substitutions to match changes to
13305 configure. Use include directives instead of @-insertions
13306 to read in host and target fragments. Add a rule to
13307 regenerate ada/Makefile.
13308
13309 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
13310
13311 * lang-options.h: Remove.
13312 * lang.opt: Add help text.
13313
13314 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
13315
13316 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
13317 calls.
13318
13319 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
13320
13321 * misc.c (gnat_handle_option): Don't handle filenames.
13322
13323 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
13324
13325 * Make-lang.in: Replace PWD with PWD_COMMAND.
13326 * Makefile.adalib: Likewise.
13327 * Makefile.in: Likewise.
13328
13329 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
13330
13331 * misc.c (gnat_argv): Revert last change.
13332 (gnat_handle_option, gnat_init_options): Copy arguments.
13333
13334 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
13335
13336 * misc.c (gnat_argv): Make const.
13337
13338 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
13339
13340 * misc.c (save_argc, save_argv): Keep non-static!
13341
13342 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
13343
13344 * misc.c (save_argc, save_argv): Make static.
13345 (gnat_init_options): New prototype.
13346 (gnat_init_options): Update.
13347
13348 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
13349
13350 * gnat_ug.texi: Remove unlikely characters from @vars.
13351 * gnat_ug_vms.texi: Regenerate.
13352
13353 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
13354
13355 * misc.c (record_code_position): Adjust emit_note call.
13356
13357 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
13358
13359 * misc.c (gnat_handle_option): Don't check for missing arguments.
13360
13361 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
13362
13363 * utils.c (end_subprog_body): Adjust expand_function_end call.
13364
13365 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
13366
13367 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
13368 Bind_Main_Program.
13369
13370 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
13371
13372 * lang.opt: Declare Ada.
13373 * misc.c (gnat_init_options): Update.
13374
13375 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
13376
13377 * utils.c (begin_subprog_body): Adjust init_function_start call.
13378
13379 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
13380
13381 * Make-lang.in: Update to use options.c and options.h.
13382 * misc.c: Include options.h not aoptions.h.
13383 (gnat_handle_option): Abort on unrecognized switch.
13384 (gnat_init_options): Request Ada switches.
13385
13386 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
13387
13388 * lang.opt: Add -Wall.
13389 * misc.c (gnat_handle_option): Handle it.
13390
13391 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
13392
13393 * misc.c (gnat_handle_option): Fix warnings.
13394
13395 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
13396
13397 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
13398
13399 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
13400
13401 * Make-lang.in: Update to handle command-line options.
13402 * lang.opt: New file.
13403 * misc.c: Include aoptions.h.
13404 (cl_options_count, cl_options): Remove.
13405 (gnat_handle_option): New.
13406 (gnat_decode_option): Remove.
13407 (LANG_HOOKS_DECODE_OPTION): Remove.
13408 (LANG_HOOKS_HANDLE_OPTION): Override.
13409
13410 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
13411
13412 * init.c, misc.c, trans.c, utils.c: Remove dead code.
13413
13414 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
13415
13416 * Makefile.in: Replace "host_canonical" with "host" for autoconf
13417 substitution.
13418
13419 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
13420
13421 * Make-lang.in: Update.
13422 * misc.c: Include opts.h. Define cl_options_count and cl_options.
13423
13424 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
13425
13426 * misc.c (gnat_init_options): Update.
13427
13428 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
13429
13430 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
13431 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
13432 __attribute__ ((__unused__)).
13433
13434 2003-06-05 Jan Hubicka <jh@suse.cz>
13435
13436 * Make-lang.in: Add support for stageprofile and stagefeedback
13437
13438 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
13439
13440 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
13441 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
13442
13443 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
13444
13445 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
13446 Remove non-VMS directive.
13447 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
13448 alternatives.
13449 (Examples of gnatls Usage): Remove VMS alternative.
13450
13451 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
13452
13453 PR ada/9953:
13454 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
13455 and turn ZCX_By_Default back to False since the underlying support
13456 is not quite there yet.
13457
13458 2003-06-01 Andreas Jaeger <aj@suse.de>
13459
13460 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
13461 and ROUND_TYPE_SIZE_UNIT.
13462
13463 2003-05-22 Geert Bosch <bosch@gnat.com>
13464
13465 * gnat_rm.texi : Remove reference to Ada Core Technologies.
13466
13467 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
13468
13469 * trans.c (tree_transform): Use location_t and input_location
13470 directly.
13471 (build_unit_elab): Likewise.
13472 * utils.c (create_label_decl): Likewise.
13473
13474 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
13475
13476 * trans.c (tree_transform, build_unit_elab,
13477 set_lineno): Rename lineno to input_line.
13478 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
13479 end_subprog_body): Likewise.
13480 * utils2.c (build_call_raise): Likewise.
13481
13482 2003-05-01 Laurent Guerby <guerby@acm.org>
13483
13484 PR ada/10546
13485 * 5iosinte.ads: Increase pthread_cond_t size to match recent
13486 LinuxThread and NPTL version, merge from ACT.
13487
13488 2003-04-28 Zack Weinberg <zack@codesourcery.com>
13489
13490 * utils.c (convert): No need to clear TREE_CST_RTL.
13491
13492 2003-04-23 Geert Bosch <bosch@gnat.com>
13493
13494 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
13495 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
13496 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
13497 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
13498 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
13499 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
13500 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
13501 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
13502 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
13503 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
13504 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
13505 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
13506 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
13507 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
13508 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
13509 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
13510 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
13511 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
13512 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
13513 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
13514 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
13515 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
13516 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
13517 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
13518 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
13519 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
13520 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
13521 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
13522 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
13523 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
13524 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
13525 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
13526 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
13527 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
13528 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
13529 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
13530 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
13531 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
13532 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
13533 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
13534 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
13535 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
13536 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
13537 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
13538 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
13539 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
13540 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
13541 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
13542 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
13543 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
13544 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
13545 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
13546 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
13547 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
13548 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
13549 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
13550 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
13551 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
13552 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
13553 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
13554 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
13555 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
13556 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
13557 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
13558 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
13559 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
13560 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
13561 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
13562 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
13563 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
13564 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
13565 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
13566 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
13567 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
13568 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
13569 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
13570 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
13571 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
13572 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
13573 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
13574 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
13575 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
13576 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
13577 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
13578 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
13579 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
13580 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
13581 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
13582 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
13583 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
13584 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
13585 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
13586 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
13587 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
13588 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
13589 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
13590 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
13591 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
13592 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
13593 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
13594 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
13595 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
13596 ali.adb, ali.ads, alloc.ads, argv.c,
13597 atree.adb, atree.ads, atree.h, aux-io.c,
13598 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
13599 binde.adb, binde.ads, binderr.adb, binderr.ads,
13600 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
13601 butil.adb, butil.ads, cal.c, calendar.ads,
13602 casing.adb, casing.ads, ceinfo.adb, checks.adb,
13603 checks.ads, cio.c, comperr.adb, comperr.ads,
13604 config-lang.in, csets.adb, csets.ads, csinfo.adb,
13605 cstand.adb, cstand.ads, cuintp.c, debug.adb,
13606 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
13607 dec-io.ads, dec.ads, deftarg.c, directio.ads,
13608 einfo.adb, einfo.ads, elists.adb, elists.ads,
13609 elists.h, errno.c, errout.adb, errout.ads,
13610 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
13611 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
13612 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
13613 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
13614 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
13615 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
13616 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
13617 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
13618 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
13619 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
13620 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
13621 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
13622 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
13623 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
13624 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
13625 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
13626 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
13627 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
13628 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
13629 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
13630 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
13631 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
13632 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
13633 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
13634 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
13635 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
13636 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
13637 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
13638 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
13639 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
13640 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
13641 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
13642 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
13643 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
13644 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
13645 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
13646 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
13647 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
13648 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
13649 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
13650 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
13651 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
13652 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
13653 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
13654 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
13655 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
13656 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
13657 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
13658 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
13659 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
13660 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
13661 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
13662 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
13663 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
13664 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
13665 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
13666 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
13667 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
13668 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
13669 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
13670 lib.adb, lib.ads, live.adb, live.ads,
13671 machcode.ads, make.adb, make.ads, makeusg.adb,
13672 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
13673 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
13674 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
13675 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
13676 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
13677 mlib.ads, namet.adb, namet.ads, nlists.adb,
13678 nlists.ads, opt.adb, opt.ads, osint-b.adb,
13679 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
13680 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
13681 osint.ads, output.adb, output.ads, par-ch10.adb,
13682 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
13683 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
13684 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
13685 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
13686 par-tchk.adb, par-util.adb, par.adb, par.ads,
13687 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
13688 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
13689 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
13690 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
13691 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
13692 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
13693 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
13694 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
13695 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
13696 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
13697 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
13698 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
13699 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
13700 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
13701 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
13702 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
13703 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
13704 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
13705 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
13706 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
13707 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
13708 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
13709 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
13710 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
13711 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
13712 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
13713 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
13714 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
13715 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
13716 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
13717 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
13718 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
13719 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
13720 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
13721 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
13722 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
13723 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
13724 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
13725 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
13726 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
13727 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
13728 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
13729 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
13730 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
13731 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
13732 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
13733 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
13734 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
13735 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
13736 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
13737 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
13738 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
13739 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
13740 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
13741 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
13742 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
13743 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
13744 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
13745 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
13746 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
13747 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
13748 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
13749 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
13750 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
13751 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
13752 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
13753 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
13754 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
13755 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
13756 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
13757 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
13758 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
13759 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
13760 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
13761 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
13762 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
13763 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
13764 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
13765 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
13766 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
13767 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
13768 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
13769 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
13770 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
13771 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
13772 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
13773 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
13774 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
13775 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
13776 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
13777 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
13778 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
13779 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13780 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
13781 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
13782 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
13783 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
13784 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
13785 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
13786 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
13787 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
13788 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
13789 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
13790 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
13791 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
13792 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
13793 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
13794 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
13795 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
13796 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
13797 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13798 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
13799 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
13800 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
13801 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
13802 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13803 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
13804 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
13805 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
13806 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
13807 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
13808 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
13809 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
13810 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
13811 snames.ads, sprint.adb, sprint.ads, stand.adb,
13812 stand.ads, stringt.adb, stringt.ads, style.adb,
13813 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
13814 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
13815 switch-m.ads, switch.adb, switch.ads, system.ads,
13816 table.adb, table.ads, targparm.adb, targparm.ads,
13817 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
13818 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
13819 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
13820 ttypef.ads, ttypes.ads, types.adb, types.ads,
13821 uintp.adb, uintp.ads, uname.adb, uname.ads,
13822 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
13823 usage.adb, usage.ads, validsw.adb, validsw.ads,
13824 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
13825 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
13826 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
13827 formatting and other trivial changes from ACT.
13828
13829 2003-04-12 Zack Weinberg <zack@codesourcery.com>
13830
13831 * gigi.h, utils2.c (build_constructor):
13832 Rename gnat_build_constructor. Use build_constructor.
13833 * decl.c (gnat_to_gnu_entity)
13834 * trans.c (tree_transform, pos_to_constructor, extract_values)
13835 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
13836 (unchecked_convert)
13837 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
13838 (fill_vms_descriptor):
13839 Update to match.
13840
13841 2003-04-06 Zack Weinberg <zack@codesourcery.com>
13842
13843 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
13844 * misc.c (gnat_tree_size): New function.
13845 (LANG_HOOKS_TREE_SIZE): Override.
13846
13847 2003-04-03 Jason Merrill <jason@redhat.com>
13848
13849 * misc.c (gnat_adjust_rli): #if 0.
13850
13851 2003-03-31 Geert Bosch <bosch@gnat.com>
13852
13853 PR ada/10020
13854 * link.c : Fix misspelled "const" keyword
13855
13856 2003-03-23 Mark Mitchell <mark@codesourcery.com>
13857
13858 PR c++/7086
13859 * utils2.c: Adjust calls to put_var_into_stack.
13860
13861 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
13862
13863 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
13864
13865 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13866
13867 * misc.c (gnat_init): Update for new prototype.
13868
13869 2003-03-05 Olivier Hainque <hainque@gnat.com>
13870
13871 ada/9961
13872 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
13873 warning, and fix return type for the IN_RTS && !SJLJ case.
13874
13875 2003-03-04 Tom Tromey <tromey@redhat.com>
13876
13877 * Make-lang.in (ada.tags): New target.
13878
13879 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
13880
13881 ada/9911
13882 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
13883 wrapper, which name remains constant whatever underlying GCC
13884 scheme.
13885
13886 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
13887 the stable interface needed for a-except.
13888
13889 2003-03-02 Andreas Jaeger <aj@suse.de>
13890
13891 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13892 gnat_ug_wnt.texi: Regenerate.
13893
13894 2003-03-02 Laurent Guerby <guerby@acm.org>
13895
13896 * Makefile.in (install-gnatlib): Match previous change there
13897 so it works.
13898
13899 2003-02-28 Andreas Schwab <schwab@suse.de>
13900
13901 * Make-lang.in (install-gnatlib): Change to ada directory before
13902 running make instead of using ada/Makefile directly.
13903
13904 2003-02-18 Ben Elliston <bje@redhat.com>
13905
13906 Part of fix for PR ada/9406
13907 * gnat_ug.texi (Binder output file): Grammar fix.
13908
13909 2003-02-18 Ben Elliston <bje@redhat.com>
13910
13911 PR other/7350
13912 * 5qtaprop.adb (Sleep): Fix typo in comment.
13913
13914 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
13915
13916 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
13917 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13918 gnat_ug_wnt.texi: Regenerate.
13919
13920 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
13921
13922 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
13923 be created if necessary.
13924 (ada.install-common): Let $(DESTDIR)$(bindir) be created
13925 if necessary. Remove erroneous and redundant gnatchop
13926 installation commands. Test for gnatdll before attempting
13927 to install it.
13928 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
13929 and gnatdll from all plausible locations.
13930
13931 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
13932
13933 * utils2.c (build_unary_op): Don't check flag_volatile.
13934 * gnat_ug.texi: Remove -fvolatile from example.
13935 * gnat_ug_vxw.texi: Likewise.
13936
13937 2003-01-29 Laurent Guerby <guerby@acm.org>
13938
13939 PR ada/8344
13940 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
13941 * Makefile.in: match previous change.
13942 * Make-lang.in: match previous change.
13943
13944 2003-01-29 Joel Sherrill <joel@OARcorp.com>
13945
13946 * 5rosinte.ads: Add SIGXCPU.
13947 * 5rtpopsp.adb: New file.
13948 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
13949 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
13950 specific file 5rtpopsp.adb.
13951 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
13952 is likely needed for all newlib targets.
13953 * init.c: Add RTEMS specific version of __gnat_initialize().
13954
13955 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13956
13957 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
13958
13959 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13960
13961 * init.c (__gnat_error_handler): Make msg const.
13962
13963 * gmem.c (convert_addresses): Move declaration ...
13964 * adaint.h: ... here.
13965 * adaint.c (convert_addresses): Adapt addrs type to match
13966 prototype.
13967
13968 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
13969
13970 2003-01-24 Andreas Schwab <schwab@suse.de>
13971
13972 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
13973 size_t to avoid warning.
13974
13975 2003-01-21 Zack Weinberg <zack@codesourcery.com>
13976
13977 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
13978
13979 2003-01-09 Geoffrey Keating <geoffk@apple.com>
13980
13981 * gnat_rm.texi: Remove RCS version number.
13982
13983 * ada-tree.h (union lang_tree_node): Add chain_next option.
13984
13985 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
13986
13987 * Make-lang.in (ada.install-info, ada.install-common,
13988 ada.uninstall): Prepend $(DESTDIR) to the destination
13989 directory in all (un)installation commands.
13990 * Makefile.in (install-gnatlib, install-rts): Ditto.
13991
13992 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
13993
13994 * gnat_rm.texi, gnat_ug.texi: Use @copying.
13995 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13996 gnat_ug_wnt.texi: Regenerate.
13997
13998 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
13999
14000 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
14001 only.
14002 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
14003 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
14004 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
14005 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
14006 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
14007 $(srcdir)/doc/include/gcc-common.texi.
14008
14009 2002-12-15 Geert Bosch <bosch@gnat.com>
14010
14011 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
14012
14013 2002-12-14 Geert Bosch <bosch@gnat.com>
14014
14015 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
14016 case of a body created for a Renaming_As_Body, on which
14017 conformance checks are not performed. Fixes PR ada/5690.
14018
14019 2002-11-30 Zack Weinberg <zack@codesourcery.com>
14020
14021 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
14022 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
14023 not already included.
14024 * Make-lang.in: Update dependencies.
14025
14026 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
14027 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
14028 solution to buffer overflow bug on GNU/Linux.
14029
14030 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
14031 Closes PR ada/5856 and PR ada/6919 !
14032 * bindgen.adb: Remove all references to Public_Version.
14033 * comperr.adb: Remove all references to Public_Version and
14034 GNATPRO_Version; correct bug reporting instructions.
14035 * comperr.ads: Change to match bug box.
14036 * gnatvsn.ads: Remove all references to Public version and
14037 GNATPRO version.
14038
14039 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
14040 PR ada/6919
14041 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
14042 GNU/Linux.
14043
14044 PR ada/6558
14045 * config-lang.in: Remove diff_excludes.
14046
14047 2002-11-05 Graham Stott <graham.stott@btinternet.com>
14048 PR ada/8358
14049 * trans.c (gnu_pending_elaboration_lists): New GC root.
14050 (build_unit_elab): Use..
14051
14052 2002-10-30 Geert Bosch <bosch@gnat.com>
14053 PR ada/6558
14054 * misc.c : Include optabs.h
14055
14056 * Make-lang.in (misc.o): Add dependency on optabs.h
14057
14058 2002-10-29 Geert Bosch <bosch@gnat.com>
14059 PR ada/6558
14060 * Make-lang.in (gnatbind): Depend on CONFIG_H
14061
14062 2002-10-29 Geert bosch <bosch@gnat.com>
14063 PR ada/6558
14064 * misc.c: Unrevert misc.c (1.13)
14065
14066 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
14067
14068 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
14069 maintainership comments.
14070
14071 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
14072 PR ada/5904
14073 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
14074 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
14075 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
14076 7staprop.adb: Correct statements in comments about
14077 maintainership of GNAT.
14078
14079 PR ada/5904
14080 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
14081 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
14082 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
14083 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
14084 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
14085 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
14086 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
14087 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
14088 comments about maintainership of GNAT.
14089
14090 PR ada/6919 (forward port of patch for PR ada/5904)
14091 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
14092 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
14093 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
14094 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
14095 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
14096 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
14097 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
14098 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
14099 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
14100 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
14101 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
14102 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
14103 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
14104 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
14105 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
14106 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
14107 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
14108 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
14109 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
14110 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
14111 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
14112 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
14113 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
14114 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
14115 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
14116 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
14117 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
14118 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
14119 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
14120 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
14121 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
14122 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
14123 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
14124 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
14125 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
14126 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
14127 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
14128 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
14129 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
14130 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
14131 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
14132 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
14133 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
14134 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
14135 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
14136 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
14137 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
14138 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
14139 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
14140 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
14141 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
14142 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
14143 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
14144 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
14145 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
14146 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
14147 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
14148 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
14149 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
14150 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
14151 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
14152 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
14153 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
14154 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
14155 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
14156 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
14157 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
14158 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
14159 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
14160 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
14161 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
14162 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
14163 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
14164 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
14165 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
14166 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
14167 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
14168 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
14169 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
14170 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
14171 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
14172 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
14173 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
14174 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
14175 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
14176 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
14177 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
14178 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
14179 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
14180 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
14181 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
14182 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
14183 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
14184 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
14185 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
14186 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
14187 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
14188 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
14189 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
14190 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
14191 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
14192 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
14193 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
14194 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
14195 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
14196 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
14197 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
14198 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
14199 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
14200 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
14201 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
14202 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
14203 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
14204 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
14205 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
14206 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
14207 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
14208 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
14209 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
14210 par-endh.adb par-labl.adb par-load.adb par-prag.adb
14211 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
14212 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
14213 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
14214 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
14215 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
14216 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
14217 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
14218 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
14219 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
14220 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
14221 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
14222 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
14223 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
14224 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
14225 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
14226 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
14227 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
14228 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
14229 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
14230 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
14231 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
14232 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
14233 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
14234 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
14235 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
14236 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
14237 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
14238 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
14239 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
14240 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
14241 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
14242 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
14243 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
14244 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
14245 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
14246 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
14247 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
14248 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
14249 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
14250 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
14251 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
14252 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
14253 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
14254 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
14255 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
14256 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
14257 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
14258 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
14259 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
14260 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
14261 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
14262 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
14263 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
14264 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
14265 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
14266 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
14267 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
14268 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
14269 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
14270 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
14271 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
14272 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
14273 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
14274 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
14275 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
14276 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
14277 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
14278 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
14279 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
14280 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
14281 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
14282 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
14283 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
14284 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
14285 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
14286 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
14287 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
14288 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
14289 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
14290 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
14291 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
14292 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
14293 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
14294 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
14295 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
14296 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
14297 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
14298 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
14299 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
14300 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
14301 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
14302 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
14303 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
14304 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
14305 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
14306 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
14307 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
14308 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
14309 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
14310 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
14311 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
14312 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
14313 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
14314 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
14315 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
14316 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
14317 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
14318 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
14319 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
14320 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
14321 stringt.ads stringt.h style.adb style.ads stylesw.adb
14322 stylesw.ads switch.adb switch.ads sysdep.c system.ads
14323 table.adb table.ads targparm.adb targparm.ads targtyps.c
14324 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
14325 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
14326 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
14327 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
14328 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
14329 usage.ads utils.c utils2.c validsw.adb validsw.ads
14330 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
14331 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
14332 xtreeprs.adb: Correct statements in comments about maintainership
14333 of GNAT.
14334
14335 2002-09-23 Zack Weinberg <zack@codesourcery.com>
14336
14337 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
14338 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
14339 * gnatvsn.ads: Gnat_Version_String is now a function.
14340 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
14341 copy the C version_string into a String and return it.
14342 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
14343 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
14344 Remove pragma Ident (Gnat_Version_String). If this was the
14345 sole use of package Gnatvsn, remove the with statement too.
14346 * gnat1drv.adb: Tweak -gnatv output.
14347
14348 2002-09-17 Richard Henderson <rth@redhat.com>
14349
14350 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
14351 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
14352 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
14353 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
14354 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
14355 and real_2expN instead of a loop.
14356 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
14357 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
14358
14359 2002-08-25 Andre Leis <a.leis@gmx.net>
14360 David Billinghurst (David.Billinghurst@riotinto.com>
14361
14362 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
14363
14364 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14365
14366 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
14367 Remove $(CONFIG_H) dependency.
14368
14369 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
14370
14371 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
14372
14373 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14374
14375 * adadecode.c (ada_demangle): Use xstrdup in lieu of
14376 xmalloc/strcpy.
14377 * misc.c (gnat_decode_option): Likewise.
14378
14379 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
14380
14381 * make.adb (Add_Switch): Make Generic_Position a procedure. The
14382 function approach did not work well because of a side effect (the
14383 function call could reallocate the table which was being indexed
14384 using its result). Fixes ada/4851. [RESURRECTED]
14385
14386 2002-07-01 Roger Sayle <roger@eyesopen.com>
14387
14388 * ada/utils.c (builtin_function): Accept an additional parameter.
14389
14390 2002-06-28 Andreas Jaeger <aj@suse.de>
14391
14392 PR ada/7144
14393 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
14394 <adi@thur.de>.
14395
14396 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14397
14398 * Makefile.in (SHELL): Set to @SHELL@.
14399
14400 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14401
14402 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
14403 array size calculation.
14404
14405 2002-06-04 Andreas Jaeger <aj@suse.de>
14406
14407 * Make-lang.in (gnatbind): Readd rule that has been lost in last
14408 patch.
14409
14410 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
14411
14412 Merge from pch-branch:
14413
14414 * config-lang.in (gtfiles): Add ada-tree.h.
14415 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
14416 (SET_TYPE_MODULUS): New.
14417 (SET_TYPE_INDEX): New.
14418 (SET_TYPE_DIGITS_VALUE): New.
14419 (SET_TYPE_RM_SIZE): New.
14420 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
14421 (SET_TYPE_ADA_SIZE): New.
14422 (SET_TYPE_ACTUAL_BOUNDS): New.
14423 (SET_DECL_CONST_CORRESPONDING_VAR): New.
14424 (SET_DECL_ORIGINAL_FIELD): New.
14425 (TREE_LOOP_ID): Correct typo.
14426 * decl.c: Use new macros.
14427 * utils.c: Include debug.h, use new macros.
14428 * utils2.c: Use new macros.
14429
14430 * ada-tree.h: Update all macros for new tree description.
14431 (struct tree_loop_id): New.
14432 (union lang_tree_node): New.
14433 (struct lang_decl): New.
14434 (struct lang_type): New.
14435 * misc.c (gnat_mark_tree): Delete.
14436 (LANG_HOOKS_MARK_TREE): Delete.
14437 * trans.c (tree_transform): No longer any need to cast
14438 for TREE_LOOP_ID.
14439
14440 * utils.c (struct language_function): New dummy structure.
14441
14442 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
14443 (misc.o): Likewise.
14444 (utils.o): Likewise; also gtype-ada.h.
14445 * Make-lang.in (gnat1): Add dependency on s-gtype.
14446 (gnatbind): Add dependency on $(CONFIG_H).
14447 * utils.c: Correct last #include.
14448 (stuct e_stack): Remove unnecessary 'static'.
14449 (mark_e_stack): Remove unused prototype.
14450
14451 * scn-nlit.adb: Remove whitespace after version number to
14452 keep lines under 80 chars.
14453 * snames.adb: Likewise.
14454 * treepr.ads: Likewise.
14455
14456 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
14457 (misc.o): Likewise.
14458 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
14459 * config-lang.in (gtfiles): New.
14460 * decl.c: Use gengtype for roots.
14461 * gigi.h: Use gengtype for roots.
14462 * trans.c: Use gengtype for roots.
14463 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
14464
14465 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
14466
14467 * misc.c (gnat_init): Adjust setting of internal_error_function.
14468
14469 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
14470
14471 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
14472 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
14473 gnat_ug_wnt.texi: Regenerate.
14474
14475 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
14476
14477 * 5ntaprop.adb (with System.OS_Primitives): Remove.
14478
14479 * cstreams.c (max_path_len): Move from here ...
14480 * adaint.c (__gnat_max_path_len): ... to here.
14481 * adaint.c (__gnat_max_path_len): Declare.
14482 * g-dirope.adb (Max_Path): Adjust.
14483 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
14484 * i-cstrea.ads (max_path_len): Adjust.
14485 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
14486 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
14487
14488 * Makefile.in, Make-lang.in: Documentation is now built in
14489 Make-lang.in. Store Info and generated Texinfo files in the
14490 source directory.
14491 * gnat_ug.texi: Remove CVS keywords, correct version number.
14492 Set file name correctly.
14493
14494 * gnat_ug_*.texi: Add.
14495 * .cvsignore: Ignore generated Texinfo files.
14496
14497 2002-05-30 Zack Weinberg <zack@codesourcery.com>
14498
14499 * ada.h: Add MI guard macro.
14500 (SUBTYPE): Define constants with an anonymous enum, not static
14501 const variables.
14502 (IN): Cast constants to appropriate type before use.
14503
14504 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
14505
14506 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
14507 (experimental)".
14508
14509 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14510
14511 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
14512 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
14513 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
14514 (ALL_ADA_CFLAGS): Likewise.
14515 (ADA_INCLUDES): Likewise.
14516 Adapt for new working dir.
14517 (GNATBIND): Use Makefile.in version.
14518 (.SUFFIXES): Copy from Makefile.in.
14519 (ada-warn): Define.
14520 (.adb.o, .ads.o): Copy from Makefile.in.
14521 Added $(OUTPUT_OPTION).
14522 (GNAT1_C_OBJS): Moved from Makefile.in.
14523 Prefix with ada subdir.
14524 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
14525 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
14526 Adapt for new working dir.
14527 (EXTRA_GNATBIND_OBJS): Likewise.
14528 (ADA_BACKEND): Moved from Makefile.in.
14529 Renamed to avoid conflict with global BACKEND.
14530 Use that one.
14531 (TARGET_ADA_SRCS): Moved from Makefile.in.
14532 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
14533 Use ADA_BACKEND.
14534 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
14535 (ada_extra_files): Moved from Makefile.in.
14536 Prefix with ada subdir.
14537 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
14538 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
14539 (ada/nmake.ads): Likewise.
14540 (update-sources): Moved from Makefile.in.
14541 Prefix with ada subdir.
14542 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
14543 (ADA_TREE_H): Likewise.
14544 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
14545 (ada/memtrack.o): Likewise.
14546 (ada/adadecode.o): Likewise.
14547 Update dependencies.
14548 (ada/adaint.o): New.
14549 (ada/argv.o): Moved from Makefile.in.
14550 Prefix with ada subdir.
14551 Update dependencies.
14552 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
14553 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
14554 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
14555 Prefix with ada subdir.
14556 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
14557 (GNAT DEPENDENCIES): Regenerate.
14558 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
14559 toplevel Makefile.in.
14560 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
14561 (TARGET_ADA_SRCS): Removed.
14562 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
14563 (GNATBIND_OBJS): Likewise.
14564 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
14565 (BACKEND): Removed.
14566 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
14567 (TREE_H): Likewise.
14568 (ada_extra_files): Likewise.
14569 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
14570 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
14571 (update-sources): Likewise.
14572 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
14573 (ADA_TREE_H): Likewise.
14574 (adadecoce.o): Likewise.
14575 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
14576 (GNAT DEPENDENCIES): Likewise.
14577
14578 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14579
14580 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
14581 * Makefile.in: Likewise.
14582
14583 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14584
14585 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
14586 Restore $(CONFIG_H) and prefix.o dependencies.
14587 (ada.stage[1-4]): Depend on stage?-start.
14588
14589 * Makefile.in (b_gnatb.c): Depend on interfac.o.
14590
14591 2002-05-02 Jim Wilson <wilson@redhat.com>
14592
14593 * utils.c (finish_record_type): Change record_size to record_type.
14594
14595 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14596
14597 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
14598 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
14599 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
14600
14601 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
14602
14603 * misc.c (gnat_parse_file): Update.
14604
14605 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
14606
14607 * misc.c (gnat_init): Don't set lang_attribute_common.
14608
14609 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
14610
14611 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
14612
14613 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
14614
14615 * gnat_ug.texi: New file.
14616
14617 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
14618 instead of gfdl.texi
14619
14620 * xgnatug.adb, ug_words: New files.
14621
14622 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
14623 gnat_rm and gnat-style manuals.
14624
14625 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
14626
14627 * gigi.h (incomplete_type_error): Remove.
14628 * utils.c (incomplete_type_error): Remove.
14629
14630 2002-04-16 Mark Mitchell <mark@codesourcery.com>
14631
14632 * trans.c (tree_transform): Add has_scope argument to
14633 expand_start_stmt_expr.
14634
14635 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
14636
14637 * gigi.h (truthvalue_conversion): Rename.
14638 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14639 * trans.c (tree_transform): Update.
14640 * utils2.c (truthvalue_conversion): Rename, update.
14641 (build_binary_op, build_unary_op): Update.
14642
14643 2002-04-04 Laurent Guerby <guerby@acm.org>
14644
14645 * make.adb: Implement -margs, remove restriction about file name placement.
14646 * makeusg.adb: Documentation update.
14647 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
14648 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
14649
14650 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
14651
14652 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
14653 (builtin_function): Similarly.
14654
14655 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14656
14657 * decl.c (gnat_to_gnu_entity): Update.
14658 * gigi.h (mark_addressable): Rename.
14659 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14660 * trans.c (tree_transform): Update.
14661 * utils.c (create_var_decl): Update.
14662 * util2.c (build_binary_op, build_unary_op,
14663 fill_vms_descriptor): Update.
14664 (mark_addressable): Rename, update.
14665
14666 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14667
14668 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
14669 Rename.
14670 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14671 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14672 * trans.c (tree_transform, convert_with_check): Update.
14673 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
14674 Rename.
14675
14676 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14677
14678 * gigi.h (finish_incomplete_decl): Rename.
14679 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
14680 * utils.c (gnat_init_decl_processing): Don't set hook.
14681 (finish_incomplete_decl): Rename.
14682
14683 2002-03-29 Andreas Schwab <schwab@suse.de>
14684
14685 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
14686 directory.
14687
14688 2001-03-28 Robert Dewar <dewar@gnat.com>
14689
14690 * checks.ads:
14691 (Remove_Checks): New procedure
14692
14693 * checks.adb:
14694 (Remove_Checks): New procedure
14695
14696 * exp_util.adb:
14697 Use new Duplicate_Subexpr functions
14698 (Duplicate_Subexpr_No_Checks): New procedure
14699 (Duplicate_Subexpr_No_Checks_Orig): New procedure
14700 (Duplicate_Subexpr): Restore original form (checks duplicated)
14701 (Duplicate_Subexpr): Call Remove_Checks
14702
14703 * exp_util.ads:
14704 (Duplicate_Subexpr_No_Checks): New procedure
14705 (Duplicate_Subexpr_No_Checks_Orig): New procedure
14706 Add 2002 to copyright notice
14707
14708 * sem_util.adb: Use new Duplicate_Subexpr functions
14709
14710 * sem_eval.adb:
14711 (Eval_Indexed_Component): This is the place to call
14712 Constant_Array_Ref and to replace the value. We simply merge
14713 the code of this function in here, since it is now no longer
14714 used elsewhere. This fixes the problem of the back end not
14715 realizing we were clever enough to see that this was
14716 constant.
14717 (Expr_Val): Remove call to Constant_Array_Ref
14718 (Expr_Rep_Val): Remove call to Constant_Array_Ref
14719 Minor reformatting
14720 (Constant_Array_Ref): Deal with string literals (patch
14721 suggested by Zack Weinberg on the gcc list)
14722
14723 2001-03-28 Ed Schonberg <schonber@gnat.com>
14724
14725 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
14726 Duplicate_Subexpr_Move_Checks.
14727
14728 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
14729 Duplicate_Subexpr_Move_Checks.
14730
14731 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
14732 value of array exists before retrieving it (it may a private
14733 protected component in a function).
14734
14735 2002-03-28 Geert Bosch <bosch@gnat.com>
14736
14737 * prj-pp.adb : New file.
14738
14739 * prj-pp.ads : New file.
14740
14741 2002-03-28 Andreas Jaeger <aj@suse.de>
14742
14743 * Makefile.in (stamp-sdefault): Fix path for Makefile.
14744
14745 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
14746
14747 * misc.c (gnat_expand_expr): Move prototype.
14748
14749 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14750
14751 * misc.c (insert_default_attributes): Remove.
14752
14753 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14754
14755 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14756 (gnat_init): Don't set hook.
14757 (gnat_expand_expr): Fix prototype.
14758
14759 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14760
14761 * misc.c (ggc_p): Remove.
14762
14763 2002-03-27 Geert Bosch <bosch@gnat.com>
14764
14765 * prj-makr.ads, prj-makr.adb : New files.
14766
14767 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14768
14769 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
14770 (lang_mark_tree): Make static, rename.
14771
14772 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14773
14774 * misc.c (maybe_build_cleanup): Remove.
14775
14776 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14777
14778 * gigi.h (yyparse): Remove.
14779
14780 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
14781
14782 * gnat_rm.texi: Sync with ACT version.
14783 (From Ben Brosgol <brosgol@gnat.com>)
14784
14785 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
14786
14787 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
14788 (gnat_init): Remove old hook.
14789
14790 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
14791
14792 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
14793 (yyparse): Rename gnat_parse_file.
14794
14795 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
14796
14797 Delete all lines containing "$Revision:".
14798 * xeinfo.adb: Don't look for revision numbers.
14799 * xnmake.adb: Likewise.
14800 * xsinfo.adb: Likewise.
14801 * xsnames.adb: Likewise.
14802 * xtreeprs.adb: Likewise.
14803
14804 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14805
14806 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
14807 gnat_tree_code_name): Delete.
14808 (tree_code_type, tree_code_length, tree_code_name): Define.
14809 (gnat_init): Don't try to copy into the various tree_code
14810 arrays.
14811
14812 2002-03-11 Richard Henderson <rth@redhat.com>
14813
14814 * Makefile.in (.NOTPARALLEL): Add fake tag.
14815
14816 2002-03-07 Geert Bosch <bosch@gnat.com>
14817
14818 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
14819 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
14820 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
14821 switch-m.adb, switch-m.ads : New files.
14822
14823 2002-03-07 Geert Bosch <bosch@gnat.com>
14824
14825 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
14826 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
14827 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
14828 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
14829 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
14830 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
14831 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
14832 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
14833 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
14834 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
14835 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
14836 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
14837 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
14838 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
14839 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
14840 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
14841 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
14842 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
14843 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
14844 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
14845 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
14846 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
14847 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
14848 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
14849 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
14850 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
14851 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
14852 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
14853 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
14854 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
14855 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
14856 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
14857 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
14858 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
14859 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
14860 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
14861 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
14862 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
14863 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
14864 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
14865 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
14866 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
14867 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
14868 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
14869 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
14870 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
14871 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
14872 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
14873 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
14874 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
14875 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
14876 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
14877 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
14878 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
14879 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
14880 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
14881 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
14882 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
14883 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
14884 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
14885 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
14886 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
14887 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
14888 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
14889 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
14890 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
14891 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
14892 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
14893 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
14894 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
14895 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
14896 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
14897 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
14898 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
14899 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
14900 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
14901 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
14902 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
14903 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
14904 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
14905 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
14906 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
14907 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
14908 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
14909 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
14910 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
14911 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
14912 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
14913 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
14914 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
14915 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
14916 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
14917 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
14918 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
14919 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
14920 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
14921 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
14922
14923 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
14924 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
14925 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
14926 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
14927
14928 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
14929 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
14930
14931 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
14932 to mdll-fil.ad[bs] and mdll-util.ad[bs]
14933
14934 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
14935 from mdllfile.ad[bs] and mdlltool.ad[bs]
14936
14937 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14938
14939 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
14940 lieu of explicit sizeof/sizeof.
14941
14942 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14943
14944 * misc.c (copy_lang_decl): Remove.
14945
14946 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14947
14948 * misc.c: Delete traditional-mode-related code copied from the
14949 C front end but not used, or used only to permit the compiler
14950 to link.
14951
14952 2002-02-07 Richard Henderson <rth@redhat.com>
14953
14954 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
14955 * adaint.h (__gnat_to_gm_time): Update prototype.
14956
14957 2002-01-30 Richard Henderson <rth@redhat.com>
14958
14959 * trans.c (tree_transform) [N_Loop_Statement]: Use
14960 expand_exit_loop_top_cond.
14961
14962 2001-12-23 Richard Henderson <rth@redhat.com>
14963
14964 * utils.c (end_subprog_body): Push GC context around
14965 rest_of_compilation for nested functions.
14966
14967 2001-12-23 Richard Henderson <rth@redhat.com>
14968
14969 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
14970
14971 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
14972
14973 * gnat-style.texi (Declarations and Types): Remove ancient style
14974 rule which was mandated by code generation issues.
14975
14976 * gnat-style.texi (header): Add @dircategory, @direntry.
14977 (title page): Remove date.
14978 (general) Add @./@: where approriate, and two spaces after the
14979 full stop at the end of a sentence. Use @samp markup when
14980 referring concrete lexical entities (keywords, attribute names
14981 etc.), and @syntax for ARM grammar elements. Use @r for English
14982 text in comments. Use @emph for emphasis. Change "if-statements"
14983 etc. to "if statements" (without @samp). Break long lines. Make
14984 casing of section names consistent.
14985 (Identifiers): Use @samp markup for variable names.
14986 (Comments): Use @samp markup for comment characters. Line-end
14987 comments may follow any Ada code, not just statements. Fix
14988 misspelling of "Integer" as "integer".
14989 (Loop statements): Do not use variable name "I", use "J".
14990 (Subprogram Declarations): Document alignment.
14991 (Subprogram Bodies, Block statements): Document empty line before
14992 "begin".
14993
14994 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
14995
14996 * make.adb (Add_Switch): Make Generic_Position a procedure. The
14997 function approach did not work well because of a side effect (the
14998 function call could reallocate the table which was being indexed
14999 using its result). Fixes ada/4851.
15000
15001 2001-12-19 Robert Dewar <dewar@gnat.com>
15002
15003 * bindgen.adb: Minor reformatting
15004
15005 * cstand.adb: Minor reformatting
15006
15007 * fmap.adb: Minor reformatting
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 * fmap.ads:
15014 Change name from Add for Add_To_File_Map (Add is much too generic)
15015 Change Path_Name_Of to Mapped_Path_Name
15016 Change File_Name_Of to Mapped_File_Name
15017 Fix copyright dates in header
15018
15019 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
15020 Add use clause for Fmap.
15021
15022 * make.adb: Minor reformatting
15023
15024 * osint.adb: Minor reformatting. Change of names in Fmap.
15025 Add use clause for Fmap.
15026
15027 * prj-env.adb: Minor reformatting
15028
15029 * prj-env.ads: Minor reformatting
15030
15031 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
15032 error found (there were odd exceptions to this general rule in
15033 -gnatec/-gnatem processing)
15034
15035 2001-12-19 Olivier Hainque <hainque@gnat.com>
15036
15037 * raise.c (__gnat_eh_personality): Exception handling personality
15038 routine for Ada. Still in rough state, inspired from the C++ version
15039 and still containing a bunch of debugging artifacts.
15040 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
15041 inspired from the C++ library.
15042
15043 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
15044 exception handling integration.
15045
15046 2001-12-19 Arnaud Charlet <charlet@gnat.com>
15047
15048 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
15049 (HIE_SOURCES): Add s-secsta.ad{s,b}.
15050 (HIE_OBJS): Add s-fat*.o
15051 (RAVEN_SOURCES): Remove files that are no longer required. Add
15052 interrupt handling files.
15053 (RAVEN_MOD): Removed, no longer needed.
15054
15055 2001-12-19 Robert Dewar <dewar@gnat.com>
15056
15057 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
15058 Add 2001 to copyright date
15059
15060 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
15061 need to force universal inlining for these cases.
15062
15063 2001-12-19 Arnaud Charlet <charlet@gnat.com>
15064
15065 * s-taprob.adb: Minor clean ups so that this unit can be used in
15066 Ravenscar HI.
15067
15068 * exp_ch7.adb: Allow use of secondary stack in HI mode.
15069 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
15070
15071 2001-12-19 Vincent Celier <celier@gnat.com>
15072
15073 * prj-tree.ads (Project_Node_Record): Add comments for components
15074 Pkg_Id and Case_Insensitive.
15075
15076 2001-12-19 Pascal Obry <obry@gnat.com>
15077
15078 * g-socket.adb: Minor reformatting. Found while reading code.
15079
15080 2001-12-19 Robert Dewar <dewar@gnat.com>
15081
15082 * prj-tree.ads: Minor reformatting
15083
15084 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
15085
15086 * config-lang.in (diff_excludes): Remove.
15087
15088 2001-12-17 Ed Schonberg <schonber@gnat.com>
15089
15090 * sem_res.adb (Resolve_Selected_Component): do not generate a
15091 discriminant check if the selected component is a component of
15092 the argument of an initialization procedure.
15093
15094 * trans.c (tree_transform, case of arithmetic operators): If result
15095 type is private, the gnu_type is the base type of the full view,
15096 given that the full view itself may be a subtype.
15097
15098 2001-12-17 Robert Dewar <dewar@gnat.com>
15099
15100 * sem_res.adb: Minor reformatting
15101
15102 * trans.c (tree_transform, case N_Real_Literal): Add missing third
15103 parameter in call to Machine (unknown horrible effects from this
15104 omission).
15105
15106 * urealp.h: Add definition of Round_Even for call to Machine
15107 Add third parameter for Machine
15108
15109 2001-12-17 Ed Schonberg <schonber@gnat.com>
15110
15111 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
15112 predefined units in No_Run_Time mode.
15113
15114 2001-12-17 Richard Kenner <kenner@gnat.com>
15115
15116 * misc.c (insn-codes.h): Now include.
15117
15118 2001-12-17 Olivier Hainque <hainque@gnat.com>
15119
15120 * a-except.adb: Preparation work for future integration of the GCC 3
15121 exception handling mechanism
15122 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
15123 to factorize previous code sequences and make them externally callable,
15124 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
15125 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
15126 Use the new notification routines.
15127
15128 2001-12-17 Emmanuel Briot <briot@gnat.com>
15129
15130 * prj-tree.ads (First_Choice_Of): Document the when others case
15131
15132 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15133
15134 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
15135 HI-E mode, in order to support Ravenscar profile properly.
15136
15137 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
15138 mode on 32 bits targets.
15139
15140 2001-12-17 Vincent Celier <celier@gnat.com>
15141
15142 * fmap.adb: Initial version.
15143
15144 * fmap.ads: Initial version.
15145
15146 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
15147 If search is successfully done, add to mapping.
15148
15149 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
15150
15151 * make.adb:
15152 (Gnatmake): Add new local variable Mapping_File_Name.
15153 Create mapping file when using project file(s).
15154 Delete mapping file before exiting.
15155
15156 * opt.ads (Mapping_File_Name): New variable
15157
15158 * osint.adb (Find_File): Use path name found in mapping, if any.
15159
15160 * prj-env.adb (Create_Mapping_File): New procedure
15161
15162 * prj-env.ads (Create_Mapping_File): New procedure.
15163
15164 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
15165 (Mapping_File)
15166
15167 * usage.adb: Add entry for new switch -gnatem.
15168
15169 * Makefile.in: Add dependencies for fmap.o.
15170
15171 2001-12-17 Ed Schonberg <schonber@gnat.com>
15172
15173 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
15174 is a package instantiation rewritten as a package body.
15175 (Install_Withed_Unit): Undo previous change, now redundant.
15176
15177 2001-12-17 Gary Dismukes <dismukes@gnat.com>
15178
15179 * layout.adb:
15180 (Compute_Length): Move conversion to Unsigned to callers.
15181 (Get_Max_Size): Convert Len expression to Unsigned after calls to
15182 Compute_Length and Determine_Range.
15183 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
15184 Compute_Length and Determine_Range.
15185 Above changes fix problem with length computation for supernull arrays
15186 where Max (Len, 0) wasn't getting applied due to the Unsigned
15187 conversion used by Compute_Length.
15188
15189 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15190
15191 * rtsfind.ads:
15192 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
15193 System.Secondary_Stack.
15194 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
15195 in HI-E mode.
15196 Remove unused entity RE_Exception_Data.
15197
15198 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
15199
15200 * rident.ads (No_Secondary_Stack): New restriction.
15201
15202 2001-12-17 Joel Brobecker <brobecke@gnat.com>
15203
15204 * gnat_rm.texi: Fix minor typos. Found while reading the section
15205 regarding "Bit_Order Clauses" that was sent to a customer.
15206 Very interesting documentation!
15207
15208 2001-12-17 Robert Dewar <dewar@gnat.com>
15209
15210 * sem_case.adb (Choice_Image): Avoid creating improper character
15211 literal names by using the routine Set_Character_Literal_Name. This
15212 fixes bombs in certain error message cases.
15213
15214 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15215
15216 * a-reatim.adb: Minor reformatting.
15217
15218 2001-12-17 Ed Schonberg <schonber@gnat.com>
15219
15220 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
15221 case where the formal is an extension of another formal in the current
15222 unit or in a parent generic unit.
15223
15224 2001-12-17 Arnaud Charlet <charlet@gnat.com>
15225
15226 * s-tposen.adb: Update comments. Minor reformatting.
15227 Minor code clean up.
15228
15229 * s-tarest.adb: Update comments. Minor code reorganization.
15230
15231 2001-12-17 Gary Dismukes <dismukes@gnat.com>
15232
15233 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
15234 when Java_VM.
15235
15236 2001-12-17 Robert Dewar <dewar@gnat.com>
15237
15238 * exp_attr.adb: Minor reformatting
15239
15240 2001-12-17 Ed Schonberg <schonber@gnat.com>
15241
15242 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
15243 derivations nested within a child unit: verify that the parent
15244 type is declared in an outer scope.
15245
15246 2001-12-17 Robert Dewar <dewar@gnat.com>
15247
15248 * sem_ch12.adb: Minor reformatting
15249
15250 2001-12-17 Ed Schonberg <schonber@gnat.com>
15251
15252 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
15253 warning if current unit is a predefined one, from which bodies may
15254 have been deleted.
15255
15256 2001-12-17 Robert Dewar <dewar@gnat.com>
15257
15258 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
15259 Fix header format. Add 2001 to copyright date.
15260
15261 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
15262 which caused CE during compilation if checks were enabled.
15263
15264 2001-12-17 Vincent Celier <celier@gnat.com>
15265
15266 * make.adb:
15267 (Switches_Of): New function
15268 (Test_If_Relative_Path): New procedure
15269 (Add_Switches): Use new function Switches_Of
15270 (Collect_Arguments_And_Compile): Use new function Switches_Of.
15271 When using a project file, test if there are any relative
15272 search path. Fail if there are any.
15273 (Gnatmake): Only add switches for the primary directory when not using
15274 a project file. When using a project file, change directory to the
15275 object directory of the main project file. When using a project file,
15276 test if there are any relative search path. Fail if there are any.
15277 When using a project file, fail if specified executable is relative
15278 path with directory information, and prepend executable, if not
15279 specified as an absolute path, with the exec directory. Make sure
15280 that only one -o switch is transmitted to the linker.
15281
15282 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
15283
15284 * prj-nmsc.adb:
15285 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
15286 when using a non standard naming scheme.
15287 (Check_Ada_Naming_Scheme): Make sure that error messages
15288 do not raise exceptions.
15289 (Is_Illegal_Append): Return True if there is no dot in the suffix.
15290 (Language_Independent_Check): Check the exec directory.
15291
15292 * prj.adb (Project_Empty): Add new component Exec_Directory
15293
15294 * prj.ads:
15295 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
15296 (Project_Data): Add component Exec_Directory
15297
15298 * snames.adb: Updated to match snames.ads revision 1.215
15299
15300 * snames.ads: Added Exec_Dir
15301
15302 2001-12-17 Robert Dewar <dewar@gnat.com>
15303
15304 * make.adb: Minor reformatting
15305
15306 * prj-nmsc.adb: Minor reformatting
15307
15308 * snames.adb: Updated to match snames.ads
15309
15310 * snames.ads: Alphebetize entries for project file
15311
15312 2001-12-17 Ed Schonberg <schonber@gnat.com>
15313
15314 * trans.c (process_freeze_entity): Do nothing if the entity is a
15315 subprogram that was already elaborated.
15316
15317 2001-12-17 Richard Kenner <kenner@gnat.com>
15318
15319 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
15320 and Esize if object is referenced via pointer.
15321
15322 2001-12-17 Ed Schonberg <schonber@gnat.com>
15323
15324 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
15325 is discrete before analyzing choices.
15326
15327 2001-12-17 Joel Brobecker <brobecke@gnat.com>
15328
15329 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
15330 containing the name of the Ada Main Program. This string is mainly
15331 intended for the debugger.
15332 (Gen_Output_File_C): Do the equivalent change when generating a C file.
15333
15334 2001-12-17 Robert Dewar <dewar@gnat.com>
15335
15336 * ali.adb: Set new Dummy_Entry field in dependency entry
15337
15338 * ali.ads: Add Dummy_Entry field to source dependency table
15339
15340 * bcheck.adb (Check_Consistency): Ignore dummy D lines
15341
15342 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
15343
15344 * lib-writ.ads: Document dummy D lines for missing files.
15345
15346 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
15347
15348 2001-12-17 Robert Dewar <dewar@gnat.com>
15349
15350 * ali.adb: Type reference does not reset current file.
15351
15352 * ali.adb: Recognize and scan renaming reference
15353
15354 * ali.ads: Add spec for storing renaming references.
15355
15356 * lib-xref.ads: Add documentation for handling of renaming references
15357
15358 * lib-xref.adb: Implement output of renaming reference.
15359
15360 * checks.adb:
15361 (Determine_Range): Document local variables
15362 (Determine_Range): Make sure Hbound is initialized. It looks as though
15363 there could be a real problem here with an uninitialized reference
15364 to Hbound, but no actual example of failure has been found.
15365
15366 2001-12-17 Laurent Pautet <pautet@gnat.com>
15367
15368 * g-socket.ads:
15369 Fix comment of Shutdown_Socket and Close_Socket. These functions
15370 should not fail silently because if they are called twice, this
15371 probably means that there is a race condition in the user program.
15372 Anyway, this behaviour is consistent with the rest of this unit.
15373 When an error occurs, an exception is raised with the error message
15374 as exception message.
15375
15376 2001-12-17 Robert Dewar <dewar@gnat.com>
15377
15378 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
15379 that it happens before modification of Sloc values for -gnatD.
15380
15381 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
15382 so that it happens before modification of Sloc values for -gnatD.
15383
15384 * switch.adb: Minor reformatting
15385
15386 2001-12-15 Richard Henderson <rth@redhat.com>
15387
15388 * sem_ch7.adb: Wrap comment.
15389
15390 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
15391
15392 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
15393 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
15394 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
15395 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
15396 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
15397 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
15398 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
15399 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
15400 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
15401 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
15402 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
15403 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
15404 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
15405 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
15406 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
15407 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
15408 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
15409 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
15410 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
15411 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
15412 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
15413 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
15414 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
15415 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
15416 spelling errors.
15417
15418 2001-12-14 Vincent Celier <celier@gnat.com>
15419
15420 * osint.adb(Create_Debug_File): When an object file is specified,
15421 put the .dg file in the same directory as the object file.
15422
15423 2001-12-14 Robert Dewar <dewar@gnat.com>
15424
15425 * osint.adb: Minor reformatting
15426
15427 * lib-xref.adb (Output_Instantiation): New procedure to generate
15428 instantiation references.
15429
15430 * lib-xref.ads: Add documentation of handling of generic references.
15431
15432 * ali.adb (Read_Instantiation_Ref): New procedure to read
15433 instantiation references
15434
15435 * ali.ads: Add spec for storing instantiation references
15436
15437 * bindusg.adb: Minor reformatting
15438
15439 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15440
15441 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15442
15443 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15444
15445 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
15446
15447 * csets.ads:
15448 Fix header format
15449 Add 2001 to copyright date
15450 Add entry for Latin-5 (Cyrillic ISO-8859-5)
15451
15452 2001-12-14 Matt Gingell <gingell@gnat.com>
15453
15454 * adaint.c: mktemp is a macro on Lynx and can not be used as an
15455 expression.
15456
15457 2001-12-14 Richard Kenner <kenner@gnat.com>
15458
15459 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
15460 if operand is CONSTRUCTOR.
15461
15462 2001-12-14 Ed Schonberg <schonber@gnat.com>
15463
15464 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
15465 before emiting check on right-hand side, so that exception information
15466 is correct.
15467
15468 2001-12-14 Richard Kenner <kenner@gnat.com>
15469
15470 * utils.c (create_var_decl): Throw away initializing expression
15471 if just annotating types and non-constant.
15472
15473 2001-12-14 Vincent Celier <celier@gnat.com>
15474
15475 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
15476 Default_Ada_...
15477
15478 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
15479 Remove functions.
15480 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
15481
15482 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
15483 Remove functions.
15484 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
15485
15486 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
15487
15488 * ChangeLog: Remove piece of diff output.
15489
15490 2001-12-14 Geert Bosch <bosch@gnat.com>
15491
15492 * config-lang.in: Update copyright notice
15493
15494 * layout.adb: Remove commented out code.
15495
15496 * mdllfile.ads: Update copyright notice. Fix header format.
15497
15498 * sem_case.ads: Likewise.
15499
15500 * sem_ch3.adb: Minor reformatting.
15501
15502 2001-12-12 Geert Bosch <bosch@gnat.com>
15503
15504 * freeze.ads: Update copyright date.
15505
15506 * g-comlin.ads: Minor reformatting.
15507
15508 * gnat-style.texi: Fix typo.
15509
15510 2001-12-12 Geert Bosch <bosch@gnat.com>
15511
15512 * einfo.h: Regenerate.
15513
15514 2001-12-12 Ed Schonberg <schonber@gnat.com>
15515
15516 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
15517 on known node types, rather than untyped fields. Further cleanups.
15518
15519 2001-12-12 Robert Dewar <dewar@gnat.com>
15520
15521 * sem_ch12.adb:
15522 (Save_Entity_Descendant): Minor comment update.
15523 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
15524 of an N_Attribute_Reference node. As per note below, this does not
15525 eliminate need for Associated_Node in attribute ref nodes.
15526 (Associated_Node): Documentation explicitly mentions attribute
15527 reference nodes, since this field is used in such nodes.
15528
15529 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
15530
15531 2001-12-12 Robert Dewar <dewar@gnat.com>
15532
15533 * s-stalib.adb: Add more comments on with statements being needed
15534
15535 * par-ch12.adb: Minor reformatting
15536
15537 * prj-dect.ads: Fix copyright header
15538
15539 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
15540 inputs fit in 32 bits, but the result still overflows.
15541
15542 * s-fatgen.ads: Minor comment improvement
15543
15544 2001-12-12 Ed Schonberg <schonber@gnat.com>
15545
15546 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
15547 formal derived type, look for an inherited component from the full
15548 view of the parent, if any.
15549
15550 2001-12-12 Robert Dewar <dewar@gnat.com>
15551
15552 * checks.ads (Apply_Alignment_Check): New procedure.
15553
15554 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
15555 ensure that the alignment of objects with address clauses is
15556 appropriate, and raise PE if not.
15557
15558 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
15559 Exp_Pakd.Known_Aligned_Enough
15560
15561 * mdllfile.ads: Minor reformatting
15562
15563 * mlib-fil.ads: Minor reformatting
15564
15565 2001-12-12 Ed Schonberg <schonber@gnat.com>
15566
15567 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
15568 fix to any component reference if enclosing record has non-standard
15569 representation.
15570
15571 2001-12-12 Vincent Celier <celier@gnat.com>
15572
15573 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
15574 Iteration
15575
15576 2001-12-12 Ed Schonberg <schonber@gnat.com>
15577
15578 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
15579 sem_attr.
15580
15581 2001-12-12 Robert Dewar <dewar@gnat.com>
15582
15583 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
15584
15585 2001-12-12 Emmanuel Briot <briot@gnat.com>
15586
15587 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
15588 and it adds dependencies to system.io.
15589
15590 2001-12-12 Pascal Obry <obry@gnat.com>
15591
15592 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
15593 variable name.
15594
15595 2001-12-11 Ed Schonberg <schonber@gnat.com>
15596
15597 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
15598 that is the parent of other generics, the instance body replaces the
15599 instance node. Retrieve the instance of the spec, which is the one
15600 that is visible in clients and within the body.
15601
15602 2001-12-11 Vincent Celier <celier@gnat.com>
15603
15604 * gnatmain.adb: Initial version.
15605
15606 * gnatmain.ads: Initial version.
15607
15608 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
15609
15610 * snames.adb: Updated to match snames.ads.
15611
15612 * snames.ads: Added Gnatstub.
15613
15614 2001-12-11 Vincent Celier <celier@gnat.com>
15615
15616 * prj-attr.adb (Initialization_Data): Change name from
15617 Initialisation_Data.
15618
15619 2001-12-11 Emmanuel Briot <briot@gnat.com>
15620
15621 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
15622 + and * applied to backslashed expressions like \r.
15623
15624 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
15625
15626 * g-os_lib.ads: String_List type added, Argument_List type is now
15627 subtype of String_List.
15628
15629 2001-12-11 Robert Dewar <dewar@gnat.com>
15630
15631 * g-os_lib.ads: Change copyright to FSF
15632 Add comments for String_List type
15633
15634 2001-12-11 Vincent Celier <celier@gnat.com>
15635
15636 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
15637 string to the buffer).
15638
15639 2001-12-11 Ed Schonberg <schonber@gnat.com>
15640
15641 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
15642 sem_attr.
15643
15644 * sem_attr.adb: Simplify previous fix for Address.
15645 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
15646 to avoid anomalies where the bound of the type appears to raise
15647 constraint error.
15648
15649 2001-12-11 Robert Dewar <dewar@gnat.com>
15650
15651 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
15652 handled.
15653
15654 2001-12-11 Ed Schonberg <schonber@gnat.com>
15655
15656 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
15657 renamed unit before checking for recursive instantiations.
15658
15659 2001-12-11 Emmanuel Briot <briot@gnat.com>
15660
15661 * prj.ads: Add comments for some of the fields.
15662
15663 2001-12-11 Robert Dewar <dewar@gnat.com>
15664
15665 * lib-xref.adb (Output_Refs): Don't output type references outside
15666 the main unit if they are not otherwise referenced.
15667
15668 2001-12-11 Ed Schonberg <schonber@gnat.com>
15669
15670 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
15671 code and diagnose additional illegal uses
15672
15673 * sem_util.adb (Is_Object_Reference): An indexed component is an
15674 object only if the prefix is.
15675
15676 2001-12-11 Vincent Celier <celier@gnat.com>
15677
15678 * g-diopit.adb: Initial version.
15679
15680 * g-diopit.ads: Initial version.
15681
15682 * g-dirope.adb:
15683 (Expand_Path): Avoid use of Unbounded_String
15684 (Find, Wildcard_Iterator): Moved to child package Iteration
15685
15686 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
15687
15688 2001-12-11 Robert Dewar <dewar@gnat.com>
15689
15690 * sem_attr.adb: Minor reformatting
15691
15692 2001-12-11 Ed Schonberg <schonber@gnat.com>
15693
15694 * sem_ch3.adb: Clarify some ???.
15695
15696 2001-12-11 Robert Dewar <dewar@gnat.com>
15697
15698 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
15699 Exp_Pakd.Known_Aligned_Enough
15700
15701 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
15702 version is moved to Exp_Ch13.
15703
15704 2001-12-11 Robert Dewar <dewar@gnat.com>
15705
15706 * einfo.ads: Minor reformatting
15707
15708 * exp_ch5.adb: Add comment for previous.change
15709
15710 * ali.adb: New interface for extended typeref stuff.
15711
15712 * ali.ads: New interface for typeref stuff.
15713
15714 * checks.adb (Apply_Alignment_Check): New procedure.
15715
15716 * debug.adb: Add -gnatdM for modified ALI output
15717
15718 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
15719
15720 * lib-xref.adb: Extend generation of <..> notation to cover
15721 subtype/object types. Note that this is a complete rewrite,
15722 getting rid of the very nasty quadratic algorithm previously
15723 used for derived type output.
15724
15725 * lib-xref.ads: Extend description of <..> notation to cover
15726 subtype/object types. Uses {..} for these other cases.
15727 Also use (..) for pointer types.
15728
15729 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
15730
15731 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
15732 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
15733
15734 2001-12-11 Vincent Celier <celier@gnat.com>
15735
15736 * gnatcmd.adb:
15737 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
15738 Changed /BIND_ONLY to /ACTIONS=BIND
15739 Changed /LINK_ONLY to /ACTIONS=LINK
15740
15741 2001-12-11 Ed Schonberg <schonber@gnat.com>
15742
15743 * sem_ch8.adb (Find_Selected_Component): improved search for a
15744 candidate package in case of error.
15745
15746 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
15747 chain back on scope stack before reinstalling use clauses.
15748
15749 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
15750 is enabled, do not kill the code for the condition, to preserve
15751 warning.
15752
15753 2001-12-11 Robert Dewar <dewar@gnat.com>
15754
15755 * checks.adb (Insert_Valid_Check): Apply validity check to expression
15756 of conversion, not to result of conversion.
15757
15758 2001-12-11 Ed Schonberg <schonber@gnat.com>
15759
15760 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
15761 before freezing parent. If the declarations are mutually recursive,
15762 an access to the current record type may be frozen before the
15763 derivation is complete.
15764
15765 2001-12-05 Vincent Celier <celier@gnat.com>
15766
15767 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
15768 -c /COMPILE_ONLY, -l /LINK_ONLY
15769
15770 * opt.ads:
15771 (Bind_Only): New Flag
15772 (Link_Only): New flag
15773
15774 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
15775 and -l (Link_Only)
15776
15777 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
15778
15779 * make.adb:
15780 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
15781 (Gnatmake): Set the step flags. Only perform a step if the
15782 corresponding step flag is True.
15783 (Scan_Make_Arg): Reset the bind and link step flags when -u
15784 or -gnatc has been specified.
15785
15786 2001-12-05 Ed Schonberg <schonber@gnat.com>
15787
15788 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
15789 get bounds from right operand.
15790
15791 * sem_eval.adb: Minor reformatting
15792
15793 * exp_util.adb (Make_Literal_Range): use bound of literal rather
15794 than Index'First, its lower bound may be different from 1.
15795
15796 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
15797 and C48009J
15798
15799 2001-12-05 Vincent Celier <celier@gnat.com>
15800
15801 * prj-nmsc.adb Minor reformatting
15802
15803 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
15804 set and libraries are not supported.
15805
15806 2001-12-05 Ed Schonberg <schonber@gnat.com>
15807
15808 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
15809 private view explicitly, so the back-end can treat as a global
15810 when appropriate.
15811
15812 2001-12-05 Ed Schonberg <schonber@gnat.com>
15813
15814 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
15815 unit, always replace instance node with new body, for ASIS use.
15816
15817 2001-12-05 Vincent Celier <celier@gnat.com>
15818
15819 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
15820 libraries are not supported and both attributes Library_Name and
15821 Library_Dir are specified.
15822
15823 * prj-proc.adb (Expression): Set location of Result to location of
15824 first term.
15825
15826 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
15827 (prj-nmsc is now importing MLib.Tgt)
15828
15829 * prj-proc.adb: Put the change indicated above that was forgotten.
15830
15831 2001-12-05 Robert Dewar <dewar@gnat.com>
15832
15833 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
15834
15835 2001-12-05 Ed Schonberg <schonber@gnat.com>
15836
15837 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
15838 constraint, introduce explicit subtype declaration and derive from it.
15839
15840 * sem_ch3.adb: Minor reformatting
15841
15842 2001-12-05 Robert Dewar <dewar@gnat.com>
15843
15844 * checks.adb (Determine_Range): Increase cache size for checks.
15845 Minor reformatting
15846
15847 * exp_ch6.adb: Minor reformatting
15848 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
15849 a parameter whose root type is System.Address, since treating such
15850 subprograms as pure in the code generator is almost surely a mistake
15851 that will lead to unexpected results.
15852
15853 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
15854 change handling of conversions.
15855
15856 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
15857
15858 2001-12-05 Ed Schonberg <schonber@gnat.com>
15859
15860 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
15861 aggregate with static wrong size, attach generated Raise node to
15862 declaration.
15863
15864 2001-12-05 Robert Dewar <dewar@gnat.com>
15865
15866 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
15867 Fixes compilation abandoned bomb in B24009B.
15868
15869 2001-12-05 Ed Schonberg <schonber@gnat.com>
15870
15871 * sem_ch12.adb:
15872 Document use of Associated_Node on Selected_Components.
15873 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
15874 to clarify use of untyped descendant fields.
15875
15876 2001-12-05 Robert Dewar <dewar@gnat.com>
15877
15878 * prj-dect.ads: Add ??? comment
15879 Add 2001 to copyright notice (was not done in after all)
15880
15881 * prj-part.adb: Minor reformatting. Reword one awkward error message.
15882
15883 * prj.ads: Minor reformatting throughout, and add some ??? comments
15884
15885 * snames.ads: Minor reformatting
15886
15887 2001-12-05 Geert Bosch <bosch@gnat.com>
15888
15889 * snames.adb: Autoupdate
15890
15891 2001-12-05 Vincent Celier <celier@gnat.com>
15892
15893 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
15894
15895 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
15896
15897 * prj-env.adb: Minor comment changes (modifying -> extends).
15898
15899 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
15900
15901 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
15902 Tok_Extends.
15903
15904 * prj.adb (Initialize): Change Modifying to Extends.
15905
15906 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
15907
15908 * prj.ads: Minor comment change (Modifying -> extending).
15909
15910 * snames.ads: Change modifying to extends.
15911
15912 2001-12-05 Robert Dewar <dewar@gnat.com>
15913
15914 * sem_warn.adb: Remove stuff for conditionals, we are not going to
15915 do this after all.
15916
15917 * sem_warn.ads: Remove stuff for conditionals, we are not going to
15918 do this after all. Add 2001 to copyright notice
15919
15920 2001-12-04 Geert Bosch <bosch@gnat.com>
15921
15922 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
15923
15924 2001-12-04 Robert Dewar <dewar@gnat.com>
15925
15926 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
15927 location if we already have errors. Stops some cases of cascaded
15928 errors.
15929
15930 * errout.adb: Improve comment.
15931
15932 2001-12-04 Robert Dewar <dewar@gnat.com>
15933
15934 * sem_ch12.adb:
15935 (Analyze_Formal_Type_Definition): Defend against Error.
15936 (Analyze_Formal_Subprogram): Defend against Error.
15937
15938 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
15939 remove following semicolon if present. Removes cascaded error.
15940
15941 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
15942
15943 * bindgen.adb:
15944 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
15945 exceptions equals 0.
15946 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
15947 Fixes PIWG E tests (which have to be run with -gnatL).
15948
15949 2001-12-04 Robert Dewar <dewar@gnat.com>
15950
15951 * einfo.ads: Minor reformatting
15952
15953 2001-12-04 Ed Schonberg <schonber@gnat.com>
15954
15955 * einfo.ads: Block_Node points to the identifier of the block, not to
15956 the block node itself, to preserve the link when the block is
15957 rewritten, e.g. within an if-statement with a static condition.
15958
15959 * inline.adb (Cleanup_Scopes): recover block statement from block
15960 entity using new meaning of Block_Node.
15961
15962 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
15963 identifier of block node, rather than to node itself.
15964
15965 2001-12-04 Gary Dismukes <dismukes@gnat.com>
15966
15967 * layout.adb:
15968 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
15969 (Discrimify): Go back to setting the Etypes of the selected component
15970 because the Vname component does not exist at this point and will
15971 fail name resolution. Also set Analyzed.
15972 Remove with and use of Sem_Res.
15973
15974 2001-12-04 Arnaud Charlet <charlet@gnat.com>
15975
15976 * Makefile.in: (HIE_SOURCES): add s-fat*.
15977
15978 2001-12-04 Robert Dewar <dewar@gnat.com>
15979
15980 * sem_attr.adb:
15981 (Compile_Time_Known_Attribute): New procedure.
15982 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
15983 proper range check.
15984
15985 2001-12-04 Ed Schonberg <schonber@gnat.com>
15986
15987 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
15988 processing discriminants to diagnose illegal default values.
15989
15990 2001-12-04 Ed Schonberg <schonber@gnat.com>
15991
15992 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
15993 access discriminant within a type extension that constrains its
15994 parent discriminants.
15995
15996 2001-12-04 Ed Schonberg <schonber@gnat.com>
15997
15998 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
15999 is malformed, use instance of Any_Id to allow analysis to proceed.
16000
16001 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
16002 type definition is illegal.
16003 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
16004 misplaced.
16005
16006 2001-12-04 Ed Schonberg <schonber@gnat.com>
16007
16008 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
16009 constants.
16010
16011 2001-12-04 Robert Dewar <dewar@gnat.com>
16012
16013 * errout.adb: Minor reformatting
16014
16015 2001-12-04 Robert Dewar <dewar@gnat.com>
16016
16017 * exp_util.adb: Minor reformatting from last change
16018
16019 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
16020 which is a rewriting of an expression, traverse the original
16021 expression to remove warnings that may have been posted on it.
16022
16023 2001-12-04 Ed Schonberg <schonber@gnat.com>
16024
16025 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
16026 record that has other packed components.
16027
16028 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
16029
16030 * adaint.c: Minor cleanups.
16031
16032 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
16033
16034 * adaint.c: Do not use utime.h on vxworks.
16035
16036 2001-12-04 Arnaud Charlet <charlet@gnat.com>
16037
16038 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
16039 more confusion than it solves.
16040
16041 2001-12-04 Geert bosch <bosch@gnat.com>
16042
16043 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
16044
16045 2001-12-04 Geert Bosch <bosch@gnat.com>
16046
16047 * Makefile.in (update-sources): New target.
16048 For use by gcc_release script.
16049
16050 2001-12-04 Ed Schonberg <schonber@gnat.com>
16051
16052 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
16053 a configuration pragma, it is now legal wherever a pragma can appear.
16054
16055 2001-12-04 Zack Weinberg <zack@codesourcery.com>
16056
16057 * Makefile.in: Don't set ALL. Delete @cross_defines@,
16058 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
16059 is now @CROSS@ -DIN_GCC; update comment.
16060
16061 2001-12-04 Robert Dewar <dewar@gnat.com>
16062
16063 * einfo.adb (Has_Pragma_Pure_Function): New flag.
16064 Fix problem that stopped ceinfo from working
16065
16066 * einfo.ads (Has_Pragma_Pure_Function): New flag.
16067
16068 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
16069
16070 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
16071
16072 * gnatchop.adb:
16073 (File_Time_Stamp): New procedure.
16074 (Preserve_Mode): New boolean.
16075 (Write_Unit): Pass time stamp.
16076 Implement -p switch (preserve time stamps).
16077
16078 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
16079
16080 * gnatchop.adb: Do usage info for -p switch
16081
16082 * adaint.h (__gnat_set_file_time_name): New function
16083
16084 * adaint.c (__gnat_set_file_time_name): Implement
16085
16086 * adaint.h: Fix typo
16087
16088 2001-12-03 Robert Dewar <dewar@gnat.com>
16089
16090 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
16091 have Associated_Node.
16092
16093 2001-12-03 Robert Dewar <dewar@gnat.com>
16094
16095 * prj-proc.adb: Minor reformatting
16096
16097 * make.adb: Minor reformatting
16098
16099 2001-12-03 Geert Bosch <bosch@gnat.com>
16100
16101 * make.adb: Minor reformatting.
16102
16103 2001-12-03 Robert Dewar <dewar@gnat.com>
16104
16105 * sem_ch12.adb: Minor reformatting
16106
16107 2001-12-03 Ed Schonberg <schonber@gnat.com>
16108
16109 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
16110 push Standard on the stack before analyzing the instance body,
16111 in order to have a clean visibility environment.
16112
16113 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
16114
16115 2001-12-03 Ed Schonberg <schonber@gnat.com>
16116
16117 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
16118 instantiation of a body that contains an inlined body.
16119
16120 2001-12-03 Ed Schonberg <schonber@gnat.com>
16121
16122 * sem_ch12.adb:
16123 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
16124 to prevent freezing within formal packages.
16125 (Freeze_Subprogram_Body): If body comes from another instance that
16126 appeared before its own body, place freeze node at end of current
16127 declarative part, to prevent a back-end crash.
16128 (Inline_Instance_Body): Handle properly a package instance within
16129 a subprogram instance that is a child unit.
16130
16131 2001-12-01 Graham Stott <grahams@redhat.com>
16132
16133 * Makefile.in (misc.o): Add missing $(srcdir) prefix
16134 and add optabs.h dependency.
16135
16136 * misc.c: Include optabs.h
16137 (gnat_tree_code_type): Make static and const.
16138 (gnat_tree_code_length): Likewise.
16139 (gnat_tree_code_name): Likewise.
16140 (update_setjmp_buf): Obtain operands mode from insn_data.
16141
16142 2001-11-29 Richard Henderson <rth@redhat.com>
16143
16144 * init.c: Remove obsolete dwarf2 frame.h section.
16145
16146 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
16147
16148 * Make-lang.in (ada.generated-manpages): New dummy target.
16149
16150 2001-11-29 Ed Schonberg <schonber@gnat.com>
16151
16152 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
16153 into Command, an array conversion is illegal here. Uncovered by
16154 ACATS B460005.
16155
16156 2001-11-28 Geert Bosch <bosch@gnat.com>
16157
16158 * init.c: Minor whitespace changes.
16159
16160 2001-11-28 Doug Rupp <rupp@gnat.com>
16161
16162 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
16163 signal stack.
16164
16165 2001-11-28 Zack Weinberg <zack@codesourcery.com>
16166
16167 * misc.c (gnat_expand_constant): Move declaration above
16168 definition of lang_hooks.
16169 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
16170 (gnat_init): lang_expand_constant no longer exists.
16171
16172 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
16173 always have vprintf.
16174 (gnat_init): Always call set_internal_error_function.
16175
16176 2001-11-27 Andreas Jaeger <aj@suse.de>
16177
16178 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
16179
16180 2001-11-27 Laurent Guerby <guerby@acm.org>
16181
16182 * Makefile.in: Regenerate Ada dependencies.
16183
16184 2001-11-26 Richard Henderson <rth@redhat.com>
16185
16186 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
16187 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
16188 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
16189
16190 2001-11-25 Laurent Guerby <guerby@acm.org>
16191
16192 * sysdep.c (rts_get_*): Fix style.
16193
16194 2001-11-19 Laurent Guerby <guerby@acm.org>
16195
16196 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
16197 since it is of no apparent use and cause warnings.
16198
16199 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
16200
16201 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
16202 static too.
16203 (gnat_init): Don't return NULL.
16204 (finish_parse): Remove.
16205
16206 2001-11-17 Laurent Guerby <guerby@acm.org>
16207
16208 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
16209 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
16210 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
16211 * lang-spec.h: Add missing struct field to silence warnings.
16212 * sysdep.c (rts_get_*): Provide K&R prototype.
16213 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
16214 * traceback.c (Unlock_Task, Lock_Task): Likewise.
16215 * tracebak.c (__gnat_backtrace): Remove unused variable.
16216 * utils.c (end_subprog_body): Move to K&R style.
16217
16218 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16219
16220 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
16221
16222 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
16223
16224 * misc.c (gnat_init): Change prototype. Include the
16225 functionality of the old init_parse and init_decl_processing.
16226 (gnat_init_decl_processing): New prototype.
16227 (init_parse): Remove.
16228 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
16229
16230 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
16231
16232 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
16233 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
16234 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
16235 set_yydebug): Remove.
16236
16237 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
16238
16239 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
16240 (struct lang_hooks): Constify.
16241 (language_string, lang_identify): Remove.
16242 * utils.c (init_decl_processing): Update.
16243
16244 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
16245
16246 * misc.c: Include langhooks-def.h.
16247 * Makefile.in: Update.
16248
16249 2001-10-30 Robert Dewar <dewar@gnat.com>
16250
16251 * style.adb:
16252 (Check_Identifier): Rewrite circuit to be compatible with use of letters
16253 in the upper half of ASCII.
16254 (Check_Identifier): Minor reformatting
16255
16256 2001-10-30 Geert Bosch <bosch@gnat.com>
16257
16258 * (Associated_Node, Set_Associated_Node): Do not check for
16259 Freeze_Entity.
16260
16261 2001-10-30 Robert Dewar <dewar@gnat.com>
16262
16263 * a-reatim.ads: Minor reformatting
16264
16265 2001-10-30 Robert Dewar <dewar@gnat.com>
16266
16267 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
16268 undocumented declarations.
16269
16270 2001-10-30 Pascal Obry <obry@gnat.com>
16271
16272 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
16273 to the binder and linker.
16274 Minor style fix.
16275
16276 * mdll.ads: Fix layout. Update copyright notice.
16277
16278 * mdll.adb: Fix layout. Update copyright notice.
16279
16280 2001-10-30 Robert Dewar <dewar@gnat.com>
16281
16282 * usage.adb: Minor fix to output for -gnaty.
16283
16284 2001-10-30 Ed Schonberg <schonber@gnat.com>
16285
16286 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
16287 to accommodate all its possible values.
16288
16289 * a-reatim.adb (Split): Special-case handling of Time_Span_First
16290 and of small absolute values of T.
16291
16292 2001-10-30 Richard Kenner <kenner@gnat.com>
16293
16294 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
16295 set_mem_attributes since not needed and wrong if RESULT if a REG;
16296 fixes ACATS failures.
16297
16298 2001-10-30 Geert Bosch <bosch@gnat.com>
16299
16300 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
16301 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
16302
16303 2001-10-30 Robert Dewar <dewar@gnat.com>
16304
16305 * bindusg.adb: Undocument -f switch.
16306
16307 * gnatcmd.adb: Remove /FULL_ELABORATION.
16308
16309 * opt.ads (Force_RM_Elaboration_Order): Document that this is
16310 obsolescent.
16311
16312 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
16313
16314 * gnatbind.adb: Minor update of warning msg.
16315
16316 2001-10-30 Vincent Celier <celier@gnat.com>
16317
16318 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
16319 for project file switches (-P (/PROJECT_FILE=),
16320 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
16321 or MEDIUM or HIGH)
16322
16323 2001-10-30 Geert Bosch <bosch@gnat.com>
16324
16325 * decl.c: Minor whitespace fixes.
16326
16327 2001-10-30 Richard Kenner <kenner@gnat.com>
16328
16329 * utils2.c (build_allocator): Test for SIZE overflow in array case too
16330
16331 2001-10-30 Geert Bosch <bosch@gnat.com>
16332
16333 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
16334 Found due to GCC 3.0 warning of using uninitialized value.
16335
16336 * layout.adb:
16337 (Get_Max_Size): Use variant record for tracking value/expression.
16338 Makes logic clearer and prevents warnings for uninitialized variables.
16339 (Layout_Array_Type): Use variant record for tracking value/expression.
16340 Makes logic clearer and prevents warnings for uninitialized variables.
16341
16342 2001-10-30 Robert Dewar <dewar@gnat.com>
16343
16344 * lib.adb: Minor reformatting
16345
16346 * s-taprop.ads: Minor reformatting
16347
16348 2001-10-29 Laurent Guerby <guerby@acm.org>
16349
16350 * init.c:
16351 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
16352 const.
16353 (_gnat_error_handler): Make MSG const.
16354
16355 2001-10-29 Richard Kenner <kenner@gnat.com>
16356
16357 * sysdep.c: Fix localtime_r problem on LynxOS.
16358 Also remove #elif to avoid warnings.
16359
16360 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
16361 used by this.
16362
16363 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
16364
16365 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
16366
16367 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
16368 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
16369 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
16370 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
16371 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
16372 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
16373 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
16374 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
16375 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
16376 types.ads, urealp.adb: Fix spelling errors.
16377
16378 2001-10-27 Laurent Guerby <guerby@acm.org>
16379
16380 * trans.c (gigi): Fix non determinism leading to bootstrap
16381 comparison failures for debugging information.
16382
16383 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
16384
16385 * gnat_rm.texi: Use @./@: where appropriate.
16386
16387 2001-10-26 Robert Dewar <dewar@gnat.com>
16388
16389 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
16390
16391 2001-10-26 Richard Kenner <kenner@gnat.com>
16392
16393 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
16394
16395 2001-10-26 Richard Kenner <kenner@gnat.com>
16396
16397 * decl.c (validate_size): Modify message for bad size to avoid
16398 implication that compiler is modifying the size.
16399
16400 2001-10-26 Robert Dewar <dewar@gnat.com>
16401
16402 * prj-util.adb: Minor reformatting. Fix bad header format.
16403
16404 2001-10-26 Robert Dewar <dewar@gnat.com>
16405
16406 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
16407
16408 * sinfo.ads: Clarify use of Associated_Node (documentation only).
16409
16410 * sem_ch12.adb: Change Node4 to Associated_Node. Change
16411 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
16412 much more narrowly in places where needed. These are cleanups.
16413
16414 2001-10-26 Joel Brobecker <brobecke@gnat.com>
16415
16416 * 5zosinte.ads (null_pthread): new constant.
16417
16418 * 5ztaprop.adb:
16419 (Initialize_TCB): Initialize thread ID to null, to be able to verify
16420 later that this field has been set.
16421 (Finalize_TCB): ditto.
16422 (Suspend_Task): Verify that the thread ID is not null before using it.
16423 (Resume_Task): ditto.
16424
16425 * s-tasdeb.adb:
16426 (Resume_All_Tasks): Lock the tasks list before using it.
16427 (Suspend_All_Tasks): ditto.
16428
16429 2001-10-26 Richard Kenner <kenner@gnat.com>
16430
16431 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
16432 Make constant variant of designated type for Is_Access_Constant.
16433 Call update_pointer_to with main variant.
16434
16435 * trans.c (process_freeze_entity, process_type):
16436 Call update_pointer_to on main variant.
16437
16438 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
16439 If main variant, update all other variants.
16440
16441 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
16442 TREE_STATIC.
16443
16444 2001-10-26 Robert Dewar <dewar@gnat.com>
16445
16446 * prj-util.adb: Minor reformatting
16447
16448 2001-10-26 Robert Dewar <dewar@gnat.com>
16449
16450 * prj-util.adb: Minor reformatting
16451
16452 2001-10-26 Robert Dewar <dewar@gnat.com>
16453
16454 * prj-attr.adb: Minor reformatting throughout
16455
16456 2001-10-26 Robert Dewar <dewar@gnat.com>
16457
16458 * prj-attr.ads: Minor reformatting
16459 Add ??? comment (this whole spec has almost no comments)
16460
16461 2001-10-26 Vincent Celier <celier@gnat.com>
16462
16463 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
16464 ("//") that precede the drive letter on Interix.
16465
16466 2001-10-26 Geert Bosch <bosch@gnat.com>
16467
16468 * gnat_rm.texi: Add GNAT Reference Manual.
16469
16470 2001-10-25 Robert Dewar <dewar@gnat.com>
16471
16472 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
16473 is Error. Similar change for other renaming cases.
16474
16475 2001-10-25 Robert Dewar <dewar@gnat.com>
16476
16477 * s-atacco.ads: Add pragma Inline_Always for functions.
16478 Fix header format. Add copyright 2001
16479
16480 2001-10-25 Ed Schonberg <schonber@gnat.com>
16481
16482 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
16483 return Error rather than Empty so that analysis can proceed.
16484
16485 2001-10-25 Ed Schonberg <schonber@gnat.com>
16486
16487 * sem_util.adb (Enter_Name): better handling of cascaded error
16488 messages when a unit appears in its own context.
16489
16490 2001-10-25 Ed Schonberg <schonber@gnat.com>
16491
16492 * sem_util.adb (Defining_Entity): in case of error, attach created
16493 entity to specification, so that semantic analysis can proceed.
16494
16495 2001-10-25 Robert Dewar <dewar@gnat.com>
16496
16497 * sem_util.adb
16498 (Defining_Entity): Deal with Error.
16499 (Process_End_Label): Deal with bad end label for.
16500
16501 2001-10-25 Ed Schonberg <schonber@gnat.com>
16502
16503 * sem_elab.adb (Check_A_Call): refine message when call is in an
16504 instance but callee is not declared in the generic unit.
16505
16506 2001-10-25 Ed Schonberg <schonber@gnat.com>
16507
16508 * sem_elab.adb (Check_A_Call): check for renaming before finding the
16509 enclosing unit, which may already be different from the calling unit.
16510
16511 2001-10-25 Geert Bosch <bosch@gnat.com>
16512
16513 * 4gintnam.ads: fix header format.
16514
16515 2001-10-25 Ed Schonberg <schonber@gnat.com>
16516
16517 * sem_res.adb (Resolve_Call): if the call is actually an indexing
16518 operation on the result of a parameterless call, perform elaboration
16519 check after the node has been properly rewritten.
16520
16521 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
16522 inlined within the generic tree, the defining identifier is not a
16523 compilation_unit.
16524
16525 2001-10-25 Ed Schonberg <schonber@gnat.com>
16526
16527 * sem_res.adb (Resolve): special-case resolution of Null in an
16528 instance or an inlined body to avoid view conflicts.
16529
16530 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
16531 compatibility by retrieving the access type of the generic copy.
16532
16533 2001-10-25 Robert Dewar <dewar@gnat.com>
16534
16535 * sem_ch3.adb:
16536 (Analyze_Number_Declaration): Handle error expression.
16537 (Signed_Integer_Type_Declaration): Handle error bound.
16538 (Analyze_Subtype_Indication): Handle error range.
16539
16540 * sem_util.adb (Get_Index_Bounds): Check for Error.
16541
16542 2001-10-25 Robert Dewar <dewar@gnat.com>
16543
16544 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
16545 in no run time mode.
16546
16547 2001-10-25 Pascal Obry <obry@gnat.com>
16548
16549 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
16550 mode case for ALLOC case.
16551
16552 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
16553 all platforms. Improvement of last change.
16554
16555 2001-10-25 Robert Dewar <dewar@gnat.com>
16556
16557 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
16558
16559 2001-10-25 Geert Bosch <bosch@gnat.com>
16560
16561 * osint.adb (Is_Relative): Remove duplicate.
16562
16563 2001-10-25 Pascal Obry <obry@gnat.com>
16564
16565 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
16566 pathnames in UNIX and DOS style with drive letter.
16567 (Is_Relative): new routine.
16568
16569 * osint.adb: Minor reformatting
16570
16571 * osint.adb (Is_Relative): implementation using
16572 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
16573
16574 2001-10-25 Pascal Obry <obry@gnat.com>
16575
16576 * g-dirope.adb (Basename): correctly compute offset between the
16577 original Path and the translated one.
16578
16579 * g-dirope.adb: (Base_Name): add some comments.
16580
16581 2001-10-25 Robert Dewar <dewar@gnat.com>
16582
16583 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
16584 in HIE mode, avoids compilation abandoned message
16585
16586 * exp_imgv.adb: Correct typo in previous change
16587
16588 * exp_imgv.adb: Correct typo in previous change (not my day!)
16589
16590 2001-10-25 Robert Dewar <dewar@gnat.com>
16591
16592 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
16593
16594 2001-10-25 Pascal Obry <obry@gnat.com>
16595
16596 * g-awk.ads: Move all pragma inlines next to the routine
16597 declarations. This is more uniform with other GNAT spec.
16598
16599 2001-10-22 Geert Bosch <bosch@gnat.com>
16600
16601 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
16602
16603 2001-10-19 Geert Bosch <bosch@gnat.com>
16604
16605 * Makefile.in (tools, gnattools): Remove gnatmem.
16606
16607 2001-10-17 Richard Henderson <rth@redhat.com>
16608
16609 * Makefile.in (misc.o): Depend on langhooks.h.
16610 * misc.c: Include it.
16611 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
16612 (LANG_HOOKS_DECODE_OPTION): New.
16613 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
16614
16615 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
16616
16617 * trans.c (tree_transform): Adjust to recent change in
16618 expand_asm_operands to implement named asm operands.
16619
16620 2001-10-11 Ed Schonberg <schonber@gnat.com>
16621
16622 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
16623 renaming of discriminant for mutable record type.
16624
16625 2001-10-11 Robert Dewar <dewar@gnat.com>
16626
16627 * validsw.adb: Properly save -gnatVn status.
16628
16629 2001-10-11 Robert Dewar <dewar@gnat.com>
16630
16631 * usage.adb: Add lines for V switch.
16632
16633 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
16634 (/VALIDITY_CHECKING).
16635
16636 2001-10-11 Ed Schonberg <schonber@gnat.com>
16637
16638 * sem_type.adb (Add_One_Interp): an operator for a type declared in
16639 an extension of System is known to be visible.
16640
16641 2001-10-11 Ed Schonberg <schonber@gnat.com>
16642
16643 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
16644 properly. Fixes regression on ACATS C34005G.
16645
16646 2001-10-11 Robert Dewar <dewar@gnat.com>
16647
16648 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
16649 loop in generic instance, since this is likely not very useful.
16650
16651 2001-10-11 Robert Dewar <dewar@gnat.com>
16652
16653 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
16654 the error message for high integrity mode.
16655
16656 * rtsfind.adb (RTE): Give message if we try to find an entity that
16657 is not available in high integrity mode.
16658
16659 * rtsfind.ads:
16660 (OK_To_Use_In_HIE_Mode): New array.
16661 (RTE): May return Empty in high integrity mode.
16662
16663 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
16664 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
16665
16666 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
16667 unit if not inlined always and in no runtime mode. Fixes problem
16668 caused by new Rtsfind changes.
16669
16670 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
16671 body is deleted.
16672
16673 * rtsfind.adb (RTE): Make sure we do not try to load unit after
16674 giving message for entity not available in high integrity mode.
16675
16676 2001-10-11 Pascal Obry <obry@gnat.com>
16677
16678 * impunit.adb: Add GNAT.CRC32.
16679
16680 2001-10-11 Ed Schonberg <schonber@gnat.com>
16681
16682 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
16683 properly the case where one universal operand in a non-static
16684 exponentiation of a real literal.
16685
16686 2001-10-11 Ed Schonberg <schonber@gnat.com>
16687
16688 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
16689 clause, return the gobal finalization list, for lack of anthing else.
16690
16691 2001-10-11 Ed Schonberg <schonber@gnat.com>
16692
16693 * exp_ch7.adb (Make_Transient_Block): if statement is within
16694 exception handler, always use new transient scope to place Clean
16695 procedure.
16696
16697 2001-10-11 Pascal Obry <obry@gnat.com>
16698
16699 * Makefile.in:
16700 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
16701 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
16702 (GNATLS_RTL_OBJS): add g-crc32.o
16703 (GNATMAKE_RTL_OBJS): add g-crc32.o
16704
16705 * ali-util.adb:
16706 (CRC_Match): new function.
16707 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
16708 instead of the previous simple checksum algorithm.
16709 (Time_Stamp_Mismatch): use CRC_Match for comparison.
16710 (Set_Source_Table): idem.
16711
16712 * ali-util.ads:
16713 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
16714 instead of simple checksum.
16715 (CRC_Match): new function.
16716 (CRC_Error): new constant.
16717
16718 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
16719 a CRC now and not a simple checksum. A CRC uses lower-case hex
16720 letters, fixes ambiguity in parsing.
16721
16722 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
16723 is what this variable will store.
16724
16725 * bcheck.adb: Change reference to chechsum in comments by CRC.
16726 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
16727 rename All_Checksum_Match to All_CRC_Match. Change due to API
16728 renaming since now GNAT does not use a simple checksum but a
16729 CRC using GNAT.CRC32.
16730
16731 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
16732 now and not anymore a simple checksum.
16733
16734 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
16735 places.
16736
16737 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
16738
16739 * scans.adb:
16740 (Restore_Scan_State): rename Checksum to CRC.
16741 (Save_Scan_State): idem.
16742
16743 * scans.ads:
16744 With GNAT.CRC32.
16745 (Checksum): rename to CRC.
16746 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
16747
16748 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
16749 GNAT.CRC32). Update copyright notice.
16750
16751 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
16752 GNAT.CRC32). Update copyright notice.
16753
16754 * scn.adb:
16755 (Accumulate_Checksum): removed.
16756 (Update): new procedure. Add a wide-character into the CRC.
16757
16758 * sinput-l.adb:
16759 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
16760 (Load_File): fix initialization of S (change Source_Checksum to
16761 Source_CRC)
16762
16763 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
16764 Source_CRC in S initialization.
16765
16766 * sinput.adb (Source_Checksum): renamed to Source_CRC.
16767
16768 * sinput.ads (Source_Checksum): renamed to Source_CRC.
16769 Update comments for the CRC.
16770
16771 * types.adb (Hex): Use lowercase for the letter part.
16772
16773 * types.ads (Get_Hex_String): Returns the hexadecimal representation
16774 for a word. This is currently used only for CRC. In previous version,
16775 the checksum was using a representation with all letter being
16776 upper-case. With the new implementation (using CRC) we do not remove
16777 the 32th bit of the CRC, so we can have an upper-case starting letter
16778 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
16779 It is ambigous since the CRC was optional and could be followed by
16780 options like EB, EE. So now this routines uses lower-case letter for
16781 the hexadecimal representation. Strange enough only lower case letters
16782 where checked in Scan_ALI (even if this was not a possible case).
16783
16784 * gnatvsn.ads (Library_Version): changed to 3.15a.
16785
16786 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
16787 for the compiler.
16788
16789 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
16790 for the compiler.
16791
16792 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
16793 Add 2001 to copyright notice
16794 (Accumulate_Checksum): Modify to use System.CRC32.
16795
16796 * ali-util.ads: Redo changes of previous revision to continue to use
16797 the word Checksum. Add 2001 to copyright notice.
16798
16799 * ali.adb: Undo some of previous changes, not needed.
16800 Keep the change for lower case letters in the checksum.
16801
16802 * ali.ads: Undo previous change not needed.
16803
16804 * bcheck.adb: Undo most of previous change, not needed.
16805 But do use Checksums_Match for checksum comparison.
16806
16807 * gnatls.adb: Undo most of previous change, not needed.
16808 But do use Checksums_Match for comparing checksums.
16809
16810 * lib-load.adb: Undo previous change, not needed.
16811
16812 * lib-writ.adb: Undo previous change, not needed.
16813
16814 * lib-writ.ads: Document that checksums use lower case,
16815 not upper case letters.
16816
16817 * scans.adb: Undo previous change, not needed
16818
16819 * scans.ads: Undo previous change, not needed.
16820
16821 * scn-nlit.adb: Undo previous changes, not needed.
16822
16823 * scn-slit.adb: Undo previous change, not needed. Fix header format.
16824
16825 * scn.adb:
16826 (Accumulate_Checksum): Use System.CRC32.
16827 (Initialize_Checksum): New procedure.
16828 Remove other changes of previous revision.
16829
16830 * sinput-p.adb: Undo previous change, not needed.
16831
16832 * sinput.adb: Undo previous change, not needed.
16833
16834 * sinput-l.adb: Undo previous change, not needed.
16835
16836 * sinput.ads: Undo previous change, not needed. Keep only comment
16837 on new checksum algorithm
16838
16839 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
16840 Also remove a-tags and a-stream from GNAT sources.
16841
16842 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
16843
16844 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
16845
16846 2001-10-11 Geert Bosch <bosch@gnat.com>
16847
16848 * einfo.h: Regenerate.
16849
16850 * nmake.ads: Regenerate.
16851
16852 * nmake.adb: Regenerate.
16853
16854 * sinfo.h: Regenerate.
16855
16856 * treeprs.adb: Regenerate.
16857
16858 2001-10-10 Geert Bosch <bosch@gnat.com>
16859
16860 * gnat-style.texi: New file describing coding guidelines for Ada.
16861
16862 2001-10-10 Ed Schonberg <schonber@gnat.com>
16863
16864 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
16865 is Flag174.
16866
16867 2001-10-10 Geert Bosch <bosch@gnat.com>
16868
16869 * snames.ads: Add new names for project facility.
16870
16871 * snames.adb: Update to reflect snames.ads changes.
16872
16873 * snames.h: Update to reflect snames.ads changes.
16874
16875 2001-10-10 Vincent Celier <celier@gnat.com>
16876
16877 * make.adb:
16878 (Add_Switches): reflect the changes for the switches attributes
16879 Default_Switches indexed by the programming language,
16880 Switches indexed by the file name.
16881 (Collect_Arguments_And_Compile): Idem.
16882 Reflect the attribute name changes.
16883
16884 * prj-attr.adb:
16885 (Initialisation_Data): Change the names of some packages and
16886 attributes.
16887 (Initialize): process case insensitive associative arrays.
16888
16889 * prj-attr.ads:
16890 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
16891
16892 * prj-dect.adb:
16893 (Parse_Attribute_Declaration): For case insensitive associative
16894 arrays, set the index string to lower case.
16895
16896 * prj-env.adb:
16897 Reflect the changes of the project attributes.
16898
16899 * prj-nmsc.adb:
16900 Replace Check_Naming_Scheme by Ada_Check and
16901 Language_Independent_Check.
16902
16903 * prj-nmsc.ads:
16904 Replaced Check_Naming_Scheme by 2 procedures:
16905 Ada_Check and Language_Independent_Check.
16906
16907 * prj-proc.adb:
16908 (Process_Declarative_Items): For case-insensitive associative
16909 arrays, set the index string to lower case.
16910 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
16911 Prj.Nmsc.Check_Naming_Scheme.
16912
16913 * prj-tree.adb:
16914 (Case_Insensitive): New function
16915 (Set_Case_Insensitive): New procedure
16916
16917 * prj-tree.ads:
16918 (Case_Insensitive): New function
16919 (Set_Case_Insensitive): New procedure
16920 (Project_Node_Record): New flag Case_Insensitive.
16921
16922 * prj-util.adb:
16923 (Value_Of): new function to get the string value of a single
16924 string variable or attribute.
16925
16926 * prj-util.ads:
16927 (Value_Of): new function to get the string value of a single
16928 string variable or attribute.
16929
16930 * prj.adb:
16931 (Ada_Default_Spec_Suffix): New function
16932 (Ada_Default_Impl_Suffix): New function
16933 Change definitions of several constants to reflect
16934 new components of record types.
16935
16936 * prj.ads:
16937 (Naming_Data): Change several components to reflect new
16938 elements of naming schemes.
16939 (Project_Data): New flags Sources_Present and
16940 Language_Independent_Checked.
16941 (Ada_Default_Spec_Suffix): New function.
16942 (Ada_Default_Impl_Suffix): New function.
16943
16944 * snames.ads:
16945 Modification of predefined names for project manager: added
16946 Implementation, Specification_Exceptions, Implementation_Exceptions,
16947 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
16948 Default_Switches, _Languages, Builder, Cross_Reference,
16949 Finder. Removed Body_Part, Specification_Append, Body_Append,
16950 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
16951 Gnatlink.
16952
16953 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
16954 Add comments.
16955
16956 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
16957 not that it is Nil_Variable_Value.
16958
16959 * prj.ads: Add ??? for uncommented declarations
16960
16961 2001-10-10 Ed Schonberg <schonber@gnat.com>
16962
16963 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
16964 constant, do not indicate possible modification, so that gigi can
16965 treat it as a bona fide constant.
16966
16967 2001-10-10 Robert Dewar <dewar@gnat.com>
16968
16969 * sem_prag.adb: Add processing for pragma External.
16970
16971 * snames.ads: Add entry for pragma External.
16972
16973 * par-prag.adb: Add pragma External.
16974
16975 * snames.adb: Updated to match snames.ads.
16976
16977 2001-10-10 Ed Schonberg <schonber@gnat.com>
16978
16979 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
16980 a dynamic task if the allocator appears in an indexed assignment
16981 or selected component assignment.
16982
16983 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
16984 For a dynamic task in an assignment statement, use target of
16985 assignment to generate meaningful name.
16986
16987 2001-10-10 Ed Schonberg <schonber@gnat.com>
16988
16989 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
16990 a generic package.
16991
16992 * einfo.ads: Body_Entity is also defined for generic package.
16993 Documentation change only
16994
16995 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
16996 others_choice for a discriminated component initialization,
16997 convert discriminant references into the corresponding discriminals.
16998
16999 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
17000 only if original type is private and expression has to be wrapped
17001 in a conversion.
17002
17003 * checks.adb:
17004 (Apply_Constraint_Check): Do not perform length check
17005 if expression is an aggregate with only an others_choice.
17006 (Length_N_Cond): two references to the same in_parameter
17007 (typically the discriminal in an init_proc) denote the same value.
17008 Two useful optimization uncovered by bugfixes above.
17009
17010 2001-10-10 Robert Dewar <dewar@gnat.com>
17011
17012 * xeinfo.adb: Change int to char in translation of enumeration types.
17013 This fixes a problem in the C representation of component alignment.
17014 Add 2001 to copyright notice
17015
17016 2001-10-10 Richard Kenner <kenner@gnat.com>
17017
17018 * decl.c: (validate_size): Do check size of object of integral type
17019 if it is a packed array type.
17020
17021 2001-10-10 Richard Kenner <kenner@gnat.com>
17022
17023 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
17024 VAR_DECL for constant if not Is_Public but -O0.
17025
17026 2001-10-10 Richard Kenner <kenner@gnat.com>
17027
17028 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
17029
17030 2001-10-10 Geert Bosch <bosch@gnat.com>
17031
17032 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
17033 use '/' as switch character, allowing for absolute file names.
17034
17035 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
17036
17037 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
17038 FSF address.
17039
17040 2001-10-08 Geert Bosch <bosch@gnat.com>
17041
17042 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
17043 Automatically build utilities when files need to be regenerated.
17044
17045 2001-10-08 Geert Bosch <bosch@gnat.com>
17046
17047 * xsnames.adb: New utility for updating snames.ads and snames.adb
17048
17049 2001-10-08 Zack Weinberg <zack@codesourcery.com>
17050
17051 * Make-lang.in (ADAFLAGS): Add -W -Wall.
17052 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
17053 (gnat1): Also depend on attribs.o.
17054 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
17055 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
17056 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
17057 (ADAFLAGS): Add -W -Wall.
17058 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
17059 take out CFLAGS.
17060
17061 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
17062 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
17063 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
17064 Use $(ADAC), not $(CC), as compilation command.
17065
17066 (gnattools): Depend directly on tools to build, don't use
17067 recursive make.
17068 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
17069
17070 * einfo.h, sinfo.h: New files (autogenerated).
17071
17072 2001-10-08 Richard Henderson <rth@redhat.com>
17073
17074 * comperr.adb (Abort_In_Progress): New.
17075 (Compiler_Abort): Use it to prevent recursion.
17076
17077 2001-10-08 Robert Dewar <dewar@gnat.com>
17078
17079 * atree.adb: Set Error_Posted in Error node, helps error recovery.
17080
17081 * par-endh.adb (Output_End_Expected): We should also not test
17082 Error_Posted on the Error node, since now it is always set.
17083
17084 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
17085 to help error recovery. Part of general work on 9407-004.
17086
17087 * par.adb: Add ??? for misuse of error
17088
17089 * sem_res.adb:
17090 (Resolve): Defend against Error, fixes 9407-003.
17091 (Resolve_Discrete_Subtype_Indication): Defend against Error.
17092
17093 * sinfo.ads (N_Error): Now has Etype field (which will be set
17094 to Any_Type to help error recovery).
17095
17096 2001-10-08 Richard Kenner (kenner@gnat.com)
17097
17098 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
17099 Consistently set MEM attributes from expression; fixes
17100 bootstrap failure on x86.
17101
17102 2001-10-08 Geert Bosch (bosch@gnat.com)
17103
17104 * 5oosinte.adb: Add 2001 to copyright notice.
17105
17106 2001-10-08 Geert Bosch (bosch@gnat.com)
17107
17108 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
17109
17110 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
17111
17112 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
17113
17114 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
17115
17116 2001-10-05 Geert Bosch (bosch@gnat.com)
17117
17118 * adaint.h: Small formatting fix.
17119
17120 2001-10-04 Geert Bosch <bosch@gnat.com>
17121
17122 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
17123 Arg is int, not FILE *, in dummy version of functions.
17124
17125 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
17126 Arg is int, not FILE *.
17127
17128 2001-10-04 Geert Bosch <bosch@gnat.com>
17129
17130 * 3lsoccon.ads: Added file, missed with initial check ins.
17131
17132 * 4lintnam.ads: Fix header format.
17133 Change Linux to GNU/Linux.
17134
17135 * 5iosinte.adb: Change Linux to GNU/Linux.
17136
17137 * 5iosinte.ads: Change Linux to GNU/Linux.
17138
17139 * 5itaprop.adb: Change Linux to GNU/Linux.
17140
17141 * 5itaspri.ads: Change Linux to GNU/Linux.
17142 Update copyright notice.
17143
17144 * 5lintman.adb: Change Linux to GNU/Linux.
17145
17146 * 5lml-tgt.adb: Change Linux to GNU/Linux.
17147
17148 * 5losinte.ads: Change Linux to GNU/Linux.
17149
17150 * 5lsystem.ads: Change Linux to GNU/Linux.
17151
17152 * 5qosinte.adb: Change Linux to GNU/Linux.
17153
17154 * 5qosinte.ads: Change Linux to GNU/Linux.
17155
17156 * 5qparame.ads: Change Linux to GNU/Linux.
17157
17158 * 5qtaprop.adb: Change Linux to GNU/Linux.
17159
17160 * 5qtaspri.ads: Change Linux to GNU/Linux.
17161 Add 2001 to copyright notice.
17162
17163 * 5vintman.ads: Change Linux to GNU/Linux.
17164 Fix header format. Add 2001 to copyright notice.
17165
17166 * g-soccon.ads: Change Linux to GNU/Linux.
17167
17168 * g-trasym.ads: Change Linux to GNU/Linux.
17169 Add 2001 to copyright notice.
17170
17171 * memtrack.adb: Change Linux to GNU/Linux.
17172
17173 * s-intman.ads: Change Linux to GNU/Linux.
17174 Add 2001 to copyright notice. Fix header format.
17175
17176 * s-stache.adb: Change Linux to GNU/Linux.
17177
17178 * adaint.c: Change Linux to GNU/Linux.
17179
17180 * cio.c: Change Linux to GNU/Linux.
17181
17182 * cstreams.c: Change Linux to GNU/Linux.
17183
17184 * init.c: Change Linux to GNU/Linux.
17185
17186 * gmem.c: Change Linux to GNU/Linux.
17187
17188 * tracebak.c: Change Linux to GNU/Linux.
17189
17190
17191 2001-10-02 Geert Bosch <bosch@gnat.com>
17192
17193 * misc.c (insert_default_attributes): Add dummy version.