]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_...
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
b6434700
RH
12001-12-15 Richard Henderson <rth@redhat.com>
2
3 * sem_ch7.adb: Wrap comment.
4
44d6a706
JM
52001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
6
7 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
8 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
9 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
10 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
12 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
13 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
14 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
15 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
16 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
17 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
18 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
19 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
20 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
21 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
22 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
23 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
24 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
25 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
26 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
27 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
28 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
29 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
30 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
31 spelling errors.
32
226ada7a
GB
332001-12-14 Vincent Celier <celier@gnat.com>
34
35 * osint.adb(Create_Debug_File): When an object file is specified,
36 put the .dg file in the same directory as the object file.
37
382001-12-14 Robert Dewar <dewar@gnat.com>
39
40 * osint.adb: Minor reformatting
41
42 * lib-xref.adb (Output_Instantiation): New procedure to generate
43 instantiation references.
44
45 * lib-xref.ads: Add documentation of handling of generic references.
46
47 * ali.adb (Read_Instantiation_Ref): New procedure to read
48 instantiation references
49
50 * ali.ads: Add spec for storing instantiation references
51
52 * bindusg.adb: Minor reformatting
53
54 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
55
56 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
57
58 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
59
60 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
61
62 * csets.ads:
63 Fix header format
64 Add 2001 to copyright date
65 Add entry for Latin-5 (Cyrillic ISO-8859-5)
66
672001-12-14 Matt Gingell <gingell@gnat.com>
68
69 * adaint.c: mktemp is a macro on Lynx and can not be used as an
70 expression.
71
722001-12-14 Richard Kenner <kenner@gnat.com>
73
74 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
75 if operand is CONSTRUCTOR.
76
772001-12-14 Ed Schonberg <schonber@gnat.com>
78
79 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
80 before emiting check on right-hand side, so that exception information
81 is correct.
82
832001-12-14 Richard Kenner <kenner@gnat.com>
84
85 * utils.c (create_var_decl): Throw away initializing expression
86 if just annotating types and non-constant.
87
882001-12-14 Vincent Celier <celier@gnat.com>
89
90 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
91 Default_Ada_...
92
93 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
94 Remove functions.
95 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
96
97 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
98 Remove functions.
99 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
100
9b94bf9e
JM
1012001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
102
103 * ChangeLog: Remove piece of diff output.
104
449d2be3
GB
1052001-12-14 Geert Bosch <bosch@gnat.com>
106
107 * config-lang.in: Update copyright notice
108
109 * layout.adb: Remove commented out code.
110
111 * mdllfile.ads: Update copyright notice. Fix header format.
112
113 * sem_case.ads: Likewise.
114
115 * sem_ch3.adb: Minor reformatting.
116
e5bd5cb4
GB
1172001-12-12 Geert Bosch <bosch@gnat.com>
118
119 * freeze.ads: Update copyright date.
120
121 * g-comlin.ads: Minor reformatting.
122
123 * gnat-style.texi: Fix typo.
124
b468d8ec
GB
1252001-12-12 Geert Bosch <bosch@gnat.com>
126
127 * einfo.h: Regenerate.
128
ed7da216
GB
1292001-12-12 Ed Schonberg <schonber@gnat.com>
130
131 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
132 on known node types, rather than untyped fields. Further cleanups.
133
1342001-12-12 Robert Dewar <dewar@gnat.com>
135
136 * sem_ch12.adb:
137 (Save_Entity_Descendant): Minor comment update.
138 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
139 of an N_Attribute_Reference node. As per note below, this does not
140 eliminate need for Associated_Node in attribute ref nodes.
141 (Associated_Node): Documentation explicitly mentions attribute
142 reference nodes, since this field is used in such nodes.
143
144 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
145
de76a39c
GB
1462001-12-12 Robert Dewar <dewar@gnat.com>
147
148 * s-stalib.adb: Add more comments on with statements being needed
149
150 * par-ch12.adb: Minor reformatting
151
152 * prj-dect.ads: Fix copyright header
153
154 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
155 inputs fit in 32 bits, but the result still overflows.
156
157 * s-fatgen.ads: Minor comment improvement
158
1592001-12-12 Ed Schonberg <schonber@gnat.com>
160
161 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
162 formal derived type, look for an inherited component from the full
163 view of the parent, if any.
164
1652001-12-12 Robert Dewar <dewar@gnat.com>
166
167 * checks.ads (Apply_Alignment_Check): New procedure.
168
169 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
170 ensure that the alignment of objects with address clauses is
171 appropriate, and raise PE if not.
172
173 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
174 Exp_Pakd.Known_Aligned_Enough
175
176 * mdllfile.ads: Minor reformatting
177
178 * mlib-fil.ads: Minor reformatting
179
1802001-12-12 Ed Schonberg <schonber@gnat.com>
181
182 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
183 fix to any component reference if enclosing record has non-standard
184 representation.
185
1862001-12-12 Vincent Celier <celier@gnat.com>
187
188 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
189 Iteration
190
1912001-12-12 Ed Schonberg <schonber@gnat.com>
192
193 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
194 sem_attr.
195
1962001-12-12 Robert Dewar <dewar@gnat.com>
197
198 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
199
2002001-12-12 Emmanuel Briot <briot@gnat.com>
201
202 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
203 and it adds dependencies to system.io.
204
2052001-12-12 Pascal Obry <obry@gnat.com>
206
207 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
208 variable name.
209
0b09835f
ES
2102001-12-11 Ed Schonberg <schonber@gnat.com>
211
212 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
213 that is the parent of other generics, the instance body replaces the
214 instance node. Retrieve the instance of the spec, which is the one
215 that is visible in clients and within the body.
216
598c3446
GB
2172001-12-11 Vincent Celier <celier@gnat.com>
218
219 * gnatmain.adb: Initial version.
220
221 * gnatmain.ads: Initial version.
222
223 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
224
225 * snames.adb: Updated to match snames.ads.
226
227 * snames.ads: Added Gnatstub.
228
2292001-12-11 Vincent Celier <celier@gnat.com>
230
231 * prj-attr.adb (Initialization_Data): Change name from
232 Initialisation_Data.
233
2342001-12-11 Emmanuel Briot <briot@gnat.com>
235
236 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
237 + and * applied to backslashed expressions like \r.
238
2392001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
240
241 * g-os_lib.ads: String_List type added, Argument_List type is now
242 subtype of String_List.
243
2442001-12-11 Robert Dewar <dewar@gnat.com>
245
246 * g-os_lib.ads: Change copyright to FSF
247 Add comments for String_List type
248
2492001-12-11 Vincent Celier <celier@gnat.com>
250
251 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
252 string to the buffer).
253
7fb754a1
GB
2542001-12-11 Ed Schonberg <schonber@gnat.com>
255
256 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
257 sem_attr.
258
259 * sem_attr.adb: Simplify previous fix for Address.
260 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
261 to avoid anomalies where the bound of the type appears to raise
262 constraint error.
263
2642001-12-11 Robert Dewar <dewar@gnat.com>
265
266 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
267 handled.
268
2692001-12-11 Ed Schonberg <schonber@gnat.com>
270
271 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
272 renamed unit before checking for recursive instantiations.
273
2742001-12-11 Emmanuel Briot <briot@gnat.com>
275
276 * prj.ads: Add comments for some of the fields.
277
0873bafc
GB
2782001-12-11 Robert Dewar <dewar@gnat.com>
279
280 * lib-xref.adb (Output_Refs): Don't output type references outside
281 the main unit if they are not otherwise referenced.
282
2832001-12-11 Ed Schonberg <schonber@gnat.com>
284
285 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
286 code and diagnose additional illegal uses
287
288 * sem_util.adb (Is_Object_Reference): An indexed component is an
289 object only if the prefix is.
290
2912001-12-11 Vincent Celier <celier@gnat.com>
292
293 * g-diopit.adb: Initial version.
294
295 * g-diopit.ads: Initial version.
296
297 * g-dirope.adb:
298 (Expand_Path): Avoid use of Unbounded_String
299 (Find, Wildcard_Iterator): Moved to child package Iteration
300
301 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
302
7fb754a1 3032001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
304
305 * sem_attr.adb: Minor reformatting
306
d087cd96
GB
3072001-12-11 Ed Schonberg <schonber@gnat.com>
308
309 * sem_ch3.adb: Clarify some ???.
310
3112001-12-11 Robert Dewar <dewar@gnat.com>
312
313 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
314 Exp_Pakd.Known_Aligned_Enough
315
316 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
317 version is moved to Exp_Ch13.
318
3192001-12-11 Robert Dewar <dewar@gnat.com>
320
321 * einfo.ads: Minor reformatting
322
323 * exp_ch5.adb: Add comment for previous.change
324
325 * ali.adb: New interface for extended typeref stuff.
326
327 * ali.ads: New interface for typeref stuff.
328
329 * checks.adb (Apply_Alignment_Check): New procedure.
330
331 * debug.adb: Add -gnatdM for modified ALI output
332
333 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
334
335 * lib-xref.adb: Extend generation of <..> notation to cover
336 subtype/object types. Note that this is a complete rewrite,
337 getting rid of the very nasty quadratic algorithm previously
338 used for derived type output.
339
340 * lib-xref.ads: Extend description of <..> notation to cover
341 subtype/object types. Uses {..} for these other cases.
342 Also use (..) for pointer types.
343
344 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
345
346 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
347 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
348
290986ed
GB
3492001-12-11 Vincent Celier <celier@gnat.com>
350
351 * gnatcmd.adb:
352 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
353 Changed /BIND_ONLY to /ACTIONS=BIND
354 Changed /LINK_ONLY to /ACTIONS=LINK
355
3562001-12-11 Ed Schonberg <schonber@gnat.com>
357
358 * sem_ch8.adb (Find_Selected_Component): improved search for a
359 candidate package in case of error.
360
361 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
362 chain back on scope stack before reinstalling use clauses.
363
364 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
365 is enabled, do not kill the code for the condition, to preserve
366 warning.
367
84157f51
GB
3682001-12-11 Robert Dewar <dewar@gnat.com>
369
370 * checks.adb (Insert_Valid_Check): Apply validity check to expression
371 of conversion, not to result of conversion.
372
3732001-12-11 Ed Schonberg <schonber@gnat.com>
374
375 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
376 before freezing parent. If the declarations are mutually recursive,
377 an access to the current record type may be frozen before the
378 derivation is complete.
379
7ffa903f
VC
3802001-12-05 Vincent Celier <celier@gnat.com>
381
382 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
383 -c /COMPILE_ONLY, -l /LINK_ONLY
384
385 * opt.ads:
386 (Bind_Only): New Flag
387 (Link_Only): New flag
388
389 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
390 and -l (Link_Only)
391
392 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
393
394 * make.adb:
395 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
396 (Gnatmake): Set the step flags. Only perform a step if the
397 corresponding step flag is True.
398 (Scan_Make_Arg): Reset the bind and link step flags when -u
399 or -gnatc has been specified.
400
f91b40db
GB
4012001-12-05 Ed Schonberg <schonber@gnat.com>
402
403 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
404 get bounds from right operand.
405
406 * sem_eval.adb: Minor reformatting
407
408 * exp_util.adb (Make_Literal_Range): use bound of literal rather
409 than Index'First, its lower bound may be different from 1.
410
411 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
412 and C48009J
413
4142001-12-05 Vincent Celier <celier@gnat.com>
415
416 * prj-nmsc.adb Minor reformatting
417
418 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
419 set and libraries are not supported.
420
4212001-12-05 Ed Schonberg <schonber@gnat.com>
422
423 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
424 private view explicitly, so the back-end can treat as a global
425 when appropriate.
426
45d04cbb
GB
4272001-12-05 Ed Schonberg <schonber@gnat.com>
428
429 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
430 unit, always replace instance node with new body, for ASIS use.
431
4322001-12-05 Vincent Celier <celier@gnat.com>
433
434 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
435 libraries are not supported and both attributes Library_Name and
436 Library_Dir are specified.
437
438 * prj-proc.adb (Expression): Set location of Result to location of
439 first term.
440
441 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
442 (prj-nmsc is now importing MLib.Tgt)
443
444 * prj-proc.adb: Put the change indicated above that was forgotten.
445
84436014
RD
4462001-12-05 Robert Dewar <dewar@gnat.com>
447
448 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
449
7ae0dcd8
ES
4502001-12-05 Ed Schonberg <schonber@gnat.com>
451
452 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
453 constraint, introduce explicit subtype declaration and derive from it.
454
455 * sem_ch3.adb: Minor reformatting
456
c9a4817d
RD
4572001-12-05 Robert Dewar <dewar@gnat.com>
458
459 * checks.adb (Determine_Range): Increase cache size for checks.
460 Minor reformatting
461
462 * exp_ch6.adb: Minor reformatting
463 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
464 a parameter whose root type is System.Address, since treating such
465 subprograms as pure in the code generator is almost surely a mistake
466 that will lead to unexpected results.
467
468 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
469 change handling of conversions.
470
471 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
472
2514b839
ES
4732001-12-05 Ed Schonberg <schonber@gnat.com>
474
475 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
476 aggregate with static wrong size, attach generated Raise node to
477 declaration.
478
457b6274
RD
4792001-12-05 Robert Dewar <dewar@gnat.com>
480
481 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
482 Fixes compilation abandoned bomb in B24009B.
483
19349925
ES
4842001-12-05 Ed Schonberg <schonber@gnat.com>
485
486 * sem_ch12.adb:
487 Document use of Associated_Node on Selected_Components.
488 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
489 to clarify use of untyped descendant fields.
490
6663c393
RD
4912001-12-05 Robert Dewar <dewar@gnat.com>
492
493 * prj-dect.ads: Add ??? comment
494 Add 2001 to copyright notice (was not done in after all)
495
496 * prj-part.adb: Minor reformatting. Reword one awkward error message.
497
498 * prj.ads: Minor reformatting throughout, and add some ??? comments
499
500 * snames.ads: Minor reformatting
501
d7b2a6af
GB
5022001-12-05 Geert Bosch <bosch@gnat.com>
503
504 * snames.adb: Autoupdate
505
fbc9a404
VC
5062001-12-05 Vincent Celier <celier@gnat.com>
507
508 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
509
510 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
511
512 * prj-env.adb: Minor comment changes (modifying -> extends).
513
514 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
515
516 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
517 Tok_Extends.
518
519 * prj.adb (Initialize): Change Modifying to Extends.
520
521 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
522
523 * prj.ads: Minor comment change (Modifying -> extending).
524
525 * snames.ads: Change modifying to extends.
526
7cff0b1b
RD
5272001-12-05 Robert Dewar <dewar@gnat.com>
528
529 * sem_warn.adb: Remove stuff for conditionals, we are not going to
530 do this after all.
531
532 * sem_warn.ads: Remove stuff for conditionals, we are not going to
533 do this after all. Add 2001 to copyright notice
534
4f56ebb7
GB
5352001-12-04 Geert Bosch <bosch@gnat.com>
536
537 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
538
053defdf
RD
5392001-12-04 Robert Dewar <dewar@gnat.com>
540
541 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
542 location if we already have errors. Stops some cases of cascaded
543 errors.
544
545 * errout.adb: Improve comment.
546
f311e166
RD
5472001-12-04 Robert Dewar <dewar@gnat.com>
548
549 * sem_ch12.adb:
550 (Analyze_Formal_Type_Definition): Defend against Error.
551 (Analyze_Formal_Subprogram): Defend against Error.
552
553 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
554 remove following semicolon if present. Removes cascaded error.
555
d61bd65a
DR
5562001-12-04 Douglas B. Rupp <rupp@gnat.com>
557
558 * bindgen.adb:
559 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
560 exceptions equals 0.
561 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
562 Fixes PIWG E tests (which have to be run with -gnatL).
563
4ba603e2
RD
5642001-12-04 Robert Dewar <dewar@gnat.com>
565
566 * einfo.ads: Minor reformatting
567
57568d91
ES
5682001-12-04 Ed Schonberg <schonber@gnat.com>
569
570 * einfo.ads: Block_Node points to the identifier of the block, not to
571 the block node itself, to preserve the link when the block is
572 rewritten, e.g. within an if-statement with a static condition.
573
574 * inline.adb (Cleanup_Scopes): recover block statement from block
575 entity using new meaning of Block_Node.
576
577 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
578 identifier of block node, rather than to node itself.
579
0815d36a
GD
5802001-12-04 Gary Dismukes <dismukes@gnat.com>
581
582 * layout.adb:
583 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
584 (Discrimify): Go back to setting the Etypes of the selected component
585 because the Vname component does not exist at this point and will
586 fail name resolution. Also set Analyzed.
587 Remove with and use of Sem_Res.
588
edc0f304
AC
5892001-12-04 Arnaud Charlet <charlet@gnat.com>
590
591 * Makefile.in: (HIE_SOURCES): add s-fat*.
592
32213142
RD
5932001-12-04 Robert Dewar <dewar@gnat.com>
594
595 * sem_attr.adb:
596 (Compile_Time_Known_Attribute): New procedure.
597 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
598 proper range check.
599
c0def2ad
ES
6002001-12-04 Ed Schonberg <schonber@gnat.com>
601
602 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
603 processing discriminants to diagnose illegal default values.
604
ee0a48c5
ES
6052001-12-04 Ed Schonberg <schonber@gnat.com>
606
607 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
608 access discriminant within a type extension that constrains its
609 parent discriminants.
610
dd5875a6
ES
6112001-12-04 Ed Schonberg <schonber@gnat.com>
612
613 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
614 is malformed, use instance of Any_Id to allow analysis to proceed.
615
616 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
617 type definition is illegal.
618 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
619 misplaced.
620
c2a41e57
ES
6212001-12-04 Ed Schonberg <schonber@gnat.com>
622
623 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
624 constants.
625
0ae84753
RD
6262001-12-04 Robert Dewar <dewar@gnat.com>
627
628 * errout.adb: Minor reformatting
629
63db260e
RD
6302001-12-04 Robert Dewar <dewar@gnat.com>
631
632 * exp_util.adb: Minor reformatting from last change
633
634 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
635 which is a rewriting of an expression, traverse the original
636 expression to remove warnings that may have been posted on it.
637
c6d289f4
ES
6382001-12-04 Ed Schonberg <schonber@gnat.com>
639
640 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
641 record that has other packed components.
642
5917e80d
DR
6432001-12-04 Douglass B. Rupp <rupp@gnat.com>
644
645 * adaint.c: Minor cleanups.
646
2c70f9dd
DR
6472001-12-04 Douglass B. Rupp <rupp@gnat.com>
648
649 * adaint.c: Do not use utime.h on vxworks.
650
e59b3387
AC
6512001-12-04 Arnaud Charlet <charlet@gnat.com>
652
653 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
654 more confusion than it solves.
655
e288604a
GB
6562001-12-04 Geert bosch <bosch@gnat.com>
657
658 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
659
5ac21013
GB
6602001-12-04 Geert Bosch <bosch@gnat.com>
661
662 * Makefile.in (update-sources): New target.
663 For use by gcc_release script.
664
7dd5bd5e
ES
6652001-12-04 Ed Schonberg <schonber@gnat.com>
666
667 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
668 a configuration pragma, it is now legal wherever a pragma can appear.
669
a078a589
ZW
6702001-12-04 Zack Weinberg <zack@codesourcery.com>
671
672 * Makefile.in: Don't set ALL. Delete @cross_defines@,
673 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
674 is now @CROSS@ -DIN_GCC; update comment.
675
0839863c
GB
6762001-12-04 Robert Dewar <dewar@gnat.com>
677
678 * einfo.adb (Has_Pragma_Pure_Function): New flag.
679 Fix problem that stopped ceinfo from working
680
681 * einfo.ads (Has_Pragma_Pure_Function): New flag.
682
683 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
684
6852001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
686
687 * gnatchop.adb:
688 (File_Time_Stamp): New procedure.
689 (Preserve_Mode): New boolean.
690 (Write_Unit): Pass time stamp.
691 Implement -p switch (preserve time stamps).
692
693 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
694
695 * gnatchop.adb: Do usage info for -p switch
696
697 * adaint.h (__gnat_set_file_time_name): New function
698
699 * adaint.c (__gnat_set_file_time_name): Implement
700
701 * adaint.h: Fix typo
702
3b9a13c4
RD
7032001-12-03 Robert Dewar <dewar@gnat.com>
704
667e5c5d 705 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
3b9a13c4
RD
706 have Associated_Node.
707
767b404e
RD
7082001-12-03 Robert Dewar <dewar@gnat.com>
709
710 * prj-proc.adb: Minor reformatting
667e5c5d 711
767b404e
RD
712 * make.adb: Minor reformatting
713
11ac71ba
GB
7142001-12-03 Geert Bosch <bosch@gnat.com>
715
667e5c5d 716 * make.adb: Minor reformatting.
11ac71ba 717
ef3d4d6e 7182001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
719
720 * sem_ch12.adb: Minor reformatting
721
d6d32b24
ES
7222001-12-03 Ed Schonberg <schonber@gnat.com>
723
667e5c5d
AJ
724 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
725 push Standard on the stack before analyzing the instance body,
d6d32b24 726 in order to have a clean visibility environment.
667e5c5d
AJ
727
728 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 729
13f08f03
ES
7302001-12-03 Ed Schonberg <schonber@gnat.com>
731
667e5c5d 732 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
733 instantiation of a body that contains an inlined body.
734
3bd6c100
ES
7352001-12-03 Ed Schonberg <schonber@gnat.com>
736
737 * sem_ch12.adb:
738 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
739 to prevent freezing within formal packages.
740 (Freeze_Subprogram_Body): If body comes from another instance that
741 appeared before its own body, place freeze node at end of current
742 declarative part, to prevent a back-end crash.
743 (Inline_Instance_Body): Handle properly a package instance within
744 a subprogram instance that is a child unit.
745
58d07d8f
GS
7462001-12-01 Graham Stott <grahams@redhat.com>
747
748 * Makefile.in (misc.o): Add missing $(srcdir) prefix
749 and add optabs.h dependency.
750
751 * misc.c: Include optabs.h
752 (gnat_tree_code_type): Make static and const.
753 (gnat_tree_code_length): Likewise.
754 (gnat_tree_code_name): Likewise.
755 (update_setjmp_buf): Obtain operands mode from insn_data.
756
c87222f0
RH
7572001-11-29 Richard Henderson <rth@redhat.com>
758
759 * init.c: Remove obsolete dwarf2 frame.h section.
760
d3945f0a
JM
7612001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
762
763 * Make-lang.in (ada.generated-manpages): New dummy target.
764
9f639397
ES
7652001-11-29 Ed Schonberg <schonber@gnat.com>
766
667e5c5d
AJ
767 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
768 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
769 ACATS B460005.
770
c835e5c6
GB
7712001/11/28 Geert Bosch <bosch@gnat.com>
772
773 * init.c: Minor whitespace changes.
774
49bb4548
DR
7752001-11-28 Doug Rupp <rupp@gnat.com>
776
667e5c5d 777 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
778 signal stack.
779
ea2417e5
ZW
7802001-11-28 Zack Weinberg <zack@codesourcery.com>
781
782 * misc.c (gnat_expand_constant): Move declaration above
783 definition of lang_hooks.
784 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
785 (gnat_init): lang_expand_constant no longer exists.
786
787 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
788 always have vprintf.
789 (gnat_init): Always call set_internal_error_function.
790
f8e0aa73
AJ
7912001-11-27 Andreas Jaeger <aj@suse.de>
792
793 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
794
d99b0e79
LG
7952001-11-27 Laurent Guerby <guerby@acm.org>
796
797 * Makefile.in: Regenerate Ada dependencies.
798
3f0496e5
RH
7992001-11-26 Richard Henderson <rth@redhat.com>
800
801 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
802 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
803 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
804
92fa4733
LG
8052001-11-25 Laurent Guerby <guerby@acm.org>
806
807 * sysdep.c (rts_get_*): Fix style.
808
07626501
LG
8092001-11-19 Laurent Guerby <guerby@acm.org>
810
811 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
812 since it is of no apparent use and cause warnings.
813
22703ccc
NB
8142001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
815
816 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
817 static too.
818 (gnat_init): Don't return NULL.
819 (finish_parse): Remove.
820
b0df4321
LG
8212001-11-17 Laurent Guerby <guerby@acm.org>
822
823 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
824 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
825 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
826 * lang-spec.h: Add missing struct field to silence warnings.
827 * sysdep.c (rts_get_*): Provide K&R prototype.
828 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
829 * traceback.c (Unlock_Task, Lock_Task): Likewise.
830 * tracebak.c (__gnat_backtrace): Remove unused variable.
831 * utils.c (end_subprog_body): Move to K&R style.
832
d215024f
RK
833Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
834
835 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
836
f5e99456
NB
8372001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
838
839 * misc.c (gnat_init): Change prototype. Include the
840 functionality of the old init_parse and init_decl_processing.
841 (gnat_init_decl_processing): New prototype.
842 (init_parse): Remove.
843 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
844
5d69f816
NB
8452001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
846
847 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
848 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
849 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
850 set_yydebug): Remove.
851
3ac88239
NB
8522001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
853
854 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
855 (struct lang_hooks): Constify.
856 (language_string, lang_identify): Remove.
857 * utils.c (init_decl_processing): Update.
858
d23c55c2
NB
8592001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
860
861 * misc.c: Include langhooks-def.h.
862 * Makefile.in: Update.
863
04a1b79c
RD
8642001-10-30 Robert Dewar <dewar@gnat.com>
865
866 * style.adb:
867 (Check_Identifier): Rewrite circuit to be compatible with use of letters
868 in the upper half of ASCII.
869 (Check_Identifier): Minor reformatting
870
81fa2d39
GB
8712001-10-30 Geert Bosch <bosch@gnat.com>
872
f8e0aa73 873 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
874 Freeze_Entity.
875
ffc5527f
RD
8762001-10-30 Robert Dewar <dewar@gnat.com>
877
878 * a-reatim.ads: Minor reformatting
879
865335eb
RD
8802001-10-30 Robert Dewar <dewar@gnat.com>
881
f8e0aa73 882 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
883 undocumented declarations.
884
5e257178
PO
8852001-10-30 Pascal Obry <obry@gnat.com>
886
f8e0aa73 887 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
888 to the binder and linker.
889 Minor style fix.
f8e0aa73 890
5e257178
PO
891 * mdll.ads: Fix layout. Update copyright notice.
892
893 * mdll.adb: Fix layout. Update copyright notice.
894
1753e0ad
RD
8952001-10-30 Robert Dewar <dewar@gnat.com>
896
897 * usage.adb: Minor fix to output for -gnaty.
898
84bfdde0
ES
8992001-10-30 Ed Schonberg <schonber@gnat.com>
900
f8e0aa73
AJ
901 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
902 to accommodate all its possible values.
84bfdde0 903
f8e0aa73 904 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
905 and of small absolute values of T.
906
c296e5fc
RK
9072001-10-30 Richard Kenner <kenner@gnat.com>
908
f8e0aa73
AJ
909 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
910 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
911 fixes ACATS failures.
912
07c809df
GB
9132001-10-30 Geert Bosch <bosch@gnat.com>
914
915 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
916 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
917
54d22416 9182001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 919
54d22416 920 * bindusg.adb: Undocument -f switch.
f8e0aa73 921
54d22416 922 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
923
924 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 925 obsolescent.
f8e0aa73 926
54d22416 927 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 928
54d22416
RD
929 * gnatbind.adb: Minor update of warning msg.
930
af5cf6f8
VC
9312001-10-30 Vincent Celier <celier@gnat.com>
932
f8e0aa73 933 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 934 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 935 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
936 or MEDIUM or HIGH)
937
984bc4c3
GB
9382001-10-30 Geert Bosch <bosch@gnat.com>
939
940 * decl.c: Minor whitespace fixes.
941
5dece937
RK
9422001-10-30 Richard Kenner <kenner@gnat.com>
943
944 * utils2.c (build_allocator): Test for SIZE overflow in array case too
945
de4bf6cb
GB
9462001-10-30 Geert Bosch <bosch@gnat.com>
947
f8e0aa73 948 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 949 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 950
de4bf6cb
GB
951 * layout.adb:
952 (Get_Max_Size): Use variant record for tracking value/expression.
953 Makes logic clearer and prevents warnings for uninitialized variables.
954 (Layout_Array_Type): Use variant record for tracking value/expression.
955 Makes logic clearer and prevents warnings for uninitialized variables.
956
f5e44987
RD
9572001-10-30 Robert Dewar <dewar@gnat.com>
958
959 * lib.adb: Minor reformatting
960
961 * s-taprop.ads: Minor reformatting
962
45659035 9632001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 964
45659035
GB
965 * init.c:
966 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
967 const.
968 (_gnat_error_handler): Make MSG const.
969
9702001-10-29 Richard Kenner <kenner@gnat.com>
971
972 * sysdep.c: Fix localtime_r problem on LynxOS.
973 Also remove #elif to avoid warnings.
f8e0aa73
AJ
974
975 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 976 used by this.
f8e0aa73 977
45659035
GB
978 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
979
638e383e
JM
9802001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
981
982 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
983 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
984 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
985 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
986 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
987 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
988 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
989 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
990 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
991 types.ads, urealp.adb: Fix spelling errors.
992
97f6baa0
LG
9932001-10-27 Laurent Guerby <guerby@acm.org>
994
995 * trans.c (gigi): Fix non determinism leading to bootstrap
996 comparison failures for debugging information.
997
46b58b8c
FW
9982001-10-26 Florian Weimer <fw@deneb.enyo.de>
999
1000 * gnat_rm.texi: Use @./@: where appropriate.
1001
30151c7b
RD
10022001-10-26 Robert Dewar <dewar@gnat.com>
1003
1004 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
1005
c0b1738d
RK
10062001-10-26 Richard Kenner <kenner@gnat.com>
1007
1008 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
1009
5b09c153
RK
10102001-10-26 Richard Kenner <kenner@gnat.com>
1011
f8e0aa73 1012 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
1013 implication that compiler is modifying the size.
1014
4d553668
RD
10152001-10-26 Robert Dewar <dewar@gnat.com>
1016
1017 * prj-util.adb: Minor reformatting. Fix bad header format.
1018
3e542a58
RD
10192001-10-26 Robert Dewar <dewar@gnat.com>
1020
1021 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 1022
3e542a58 1023 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
1024
1025 * sem_ch12.adb: Change Node4 to Associated_Node. Change
1026 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
1027 much more narrowly in places where needed. These are cleanups.
1028
0bf08bfe
JB
10292001-10-26 Joel Brobecker <brobecke@gnat.com>
1030
1031 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 1032
0bf08bfe
JB
1033 * 5ztaprop.adb:
1034 (Initialize_TCB): Initialize thread ID to null, to be able to verify
1035 later that this field has been set.
1036 (Finalize_TCB): ditto.
1037 (Suspend_Task): Verify that the thread ID is not null before using it.
1038 (Resume_Task): ditto.
f8e0aa73 1039
0bf08bfe
JB
1040 * s-tasdeb.adb:
1041 (Resume_All_Tasks): Lock the tasks list before using it.
1042 (Suspend_All_Tasks): ditto.
1043
7a3a8c06
RK
10442001-10-26 Richard Kenner <kenner@gnat.com>
1045
f8e0aa73 1046 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
1047 Make constant variant of designated type for Is_Access_Constant.
1048 Call update_pointer_to with main variant.
f8e0aa73
AJ
1049
1050 * trans.c (process_freeze_entity, process_type):
7a3a8c06 1051 Call update_pointer_to on main variant.
f8e0aa73 1052
7a3a8c06
RK
1053 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
1054 If main variant, update all other variants.
f8e0aa73
AJ
1055
1056 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
1057 TREE_STATIC.
1058
a160babb
RD
10592001-10-26 Robert Dewar <dewar@gnat.com>
1060
1061 * prj-util.adb: Minor reformatting
1062
b403bd17
RD
10632001-10-26 Robert Dewar <dewar@gnat.com>
1064
1065 * prj-util.adb: Minor reformatting
1066
5fc3b4c7
RD
10672001-10-26 Robert Dewar <dewar@gnat.com>
1068
1069 * prj-attr.adb: Minor reformatting throughout
1070
8c736034
RD
10712001-10-26 Robert Dewar <dewar@gnat.com>
1072
1073 * prj-attr.ads: Minor reformatting
1074 Add ??? comment (this whole spec has almost no comments)
1075
47d5b6ed
VC
10762001-10-26 Vincent Celier <celier@gnat.com>
1077
f8e0aa73 1078 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
47d5b6ed
VC
1079 ("//") that precede the drive letter on Interix.
1080
41af791f
GB
10812001-10-26 Geert Bosch <bosch@gnat.com>
1082
1083 * gnat_rm.texi: Add GNAT Reference Manual.
1084
ed4a1468
RD
10852001-10-25 Robert Dewar <dewar@gnat.com>
1086
f8e0aa73 1087 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
ed4a1468
RD
1088 is Error. Similar change for other renaming cases.
1089
24377ae4
RD
10902001-10-25 Robert Dewar <dewar@gnat.com>
1091
1092 * s-atacco.ads: Add pragma Inline_Always for functions.
1093 Fix header format. Add copyright 2001
1094
fef3204e
ES
10952001-10-25 Ed Schonberg <schonber@gnat.com>
1096
f8e0aa73 1097 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
fef3204e
ES
1098 return Error rather than Empty so that analysis can proceed.
1099
dfc69d80
ES
11002001-10-25 Ed Schonberg <schonber@gnat.com>
1101
f8e0aa73 1102 * sem_util.adb (Enter_Name): better handling of cascaded error
dfc69d80
ES
1103 messages when a unit appears in its own context.
1104
5a15af62
ES
11052001-10-25 Ed Schonberg <schonber@gnat.com>
1106
f8e0aa73 1107 * sem_util.adb (Defining_Entity): in case of error, attach created
5a15af62
ES
1108 entity to specification, so that semantic analysis can proceed.
1109
2b881d53
RD
11102001-10-25 Robert Dewar <dewar@gnat.com>
1111
f8e0aa73 1112 * sem_util.adb
2b881d53
RD
1113 (Defining_Entity): Deal with Error.
1114 (Process_End_Label): Deal with bad end label for.
1115
578053f2
ES
11162001-10-25 Ed Schonberg <schonber@gnat.com>
1117
f8e0aa73 1118 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
1119 instance but callee is not declared in the generic unit.
1120
0597ce0b 11212001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
1122
1123 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
1124 enclosing unit, which may already be different from the calling unit.
1125
3de6e6da
GB
11262001-10-25 Geert Bosch <bosch@gnat.com>
1127
1128 * 4gintnam.ads: fix header format.
1129
6f311316
ES
11302001-10-25 Ed Schonberg <schonber@gnat.com>
1131
f8e0aa73
AJ
1132 * sem_res.adb (Resolve_Call): if the call is actually an indexing
1133 operation on the result of a parameterless call, perform elaboration
6f311316 1134 check after the node has been properly rewritten.
f8e0aa73
AJ
1135
1136 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
1137 inlined within the generic tree, the defining identifier is not a
6f311316
ES
1138 compilation_unit.
1139
17be0cdf
ES
11402001-10-25 Ed Schonberg <schonber@gnat.com>
1141
f8e0aa73 1142 * sem_res.adb (Resolve): special-case resolution of Null in an
17be0cdf 1143 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
1144
1145 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
17be0cdf
ES
1146 compatibility by retrieving the access type of the generic copy.
1147
ce9e9122
RD
11482001-10-25 Robert Dewar <dewar@gnat.com>
1149
1150 * sem_ch3.adb:
1151 (Analyze_Number_Declaration): Handle error expression.
1152 (Signed_Integer_Type_Declaration): Handle error bound.
1153 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 1154
ce9e9122
RD
1155 * sem_util.adb (Get_Index_Bounds): Check for Error.
1156
e12fbc9e
RD
11572001-10-25 Robert Dewar <dewar@gnat.com>
1158
f8e0aa73 1159 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
1160 in no run time mode.
1161
52b80488
PO
11622001-10-25 Pascal Obry <obry@gnat.com>
1163
f8e0aa73 1164 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
52b80488 1165 mode case for ALLOC case.
f8e0aa73
AJ
1166
1167 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
52b80488
PO
1168 all platforms. Improvement of last change.
1169
316ad9c5
RD
11702001-10-25 Robert Dewar <dewar@gnat.com>
1171
1172 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
1173
1a7e4df4
GB
11742001-10-25 Geert Bosch <bosch@gnat.com>
1175
1176 * osint.adb (Is_Relative): Remove duplicate.
1177
90a9fff2
PO
11782001-10-25 Pascal Obry <obry@gnat.com>
1179
f8e0aa73 1180 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
90a9fff2
PO
1181 pathnames in UNIX and DOS style with drive letter.
1182 (Is_Relative): new routine.
f8e0aa73 1183
90a9fff2 1184 * osint.adb: Minor reformatting
f8e0aa73
AJ
1185
1186 * osint.adb (Is_Relative): implementation using
1a7e4df4 1187 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 1188
5c1ba4cc
PO
11892001-10-25 Pascal Obry <obry@gnat.com>
1190
f8e0aa73 1191 * g-dirope.adb (Basename): correctly compute offset between the
5c1ba4cc 1192 original Path and the translated one.
f8e0aa73 1193
5c1ba4cc
PO
1194 * g-dirope.adb: (Base_Name): add some comments.
1195
a7fb206d
RD
11962001-10-25 Robert Dewar <dewar@gnat.com>
1197
f8e0aa73 1198 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
a7fb206d 1199 in HIE mode, avoids compilation abandoned message
f8e0aa73 1200
a7fb206d 1201 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 1202
a7fb206d
RD
1203 * exp_imgv.adb: Correct typo in previous change (not my day!)
1204
e6a7e62e
RD
12052001-10-25 Robert Dewar <dewar@gnat.com>
1206
1207 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
1208
0d2b8e0b 12092001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 1210
f8e0aa73 1211 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 1212 declarations. This is more uniform with other GNAT spec.
75c09e7d 1213
0d2b8e0b 12142001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
1215
1216 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
1217
0d2b8e0b 12182001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
1219
1220 * Makefile.in (tools, gnattools): Remove gnatmem.
1221
17ed6335
RH
12222001-10-17 Richard Henderson <rth@redhat.com>
1223
1224 * Makefile.in (misc.o): Depend on langhooks.h.
1225 * misc.c: Include it.
1226 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
1227 (LANG_HOOKS_DECODE_OPTION): New.
1228 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
1229
f2436274
FW
12302001-10-16 Florian Weimer <fw@deneb.enyo.de>
1231
1232 * trans.c (tree_transform): Adjust to recent change in
1233 expand_asm_operands to implement named asm operands.
1234
b14127e6
ES
12352001-10-11 Ed Schonberg <schonber@gnat.com>
1236
f8e0aa73 1237 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
1238 renaming of discriminant for mutable record type.
1239
e70ee92a
RD
12402001-10-11 Robert Dewar <dewar@gnat.com>
1241
1242 * validsw.adb: Properly save -gnatVn status.
1243
9a5621d7 12442001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 1245
9a5621d7
RD
1246 * usage.adb: Add lines for V switch.
1247
f8e0aa73 1248 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
1249 (/VALIDITY_CHECKING).
1250
45667f04
ES
12512001-10-11 Ed Schonberg <schonber@gnat.com>
1252
f8e0aa73 1253 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
1254 an extension of System is known to be visible.
1255
c3de5c4c
ES
12562001-10-11 Ed Schonberg <schonber@gnat.com>
1257
f8e0aa73 1258 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
1259 properly. Fixes regression on ACATS C34005G.
1260
4fa964a6
RD
12612001-10-11 Robert Dewar <dewar@gnat.com>
1262
f8e0aa73 1263 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
1264 loop in generic instance, since this is likely not very useful.
1265
0868e09c
RD
12662001-10-11 Robert Dewar <dewar@gnat.com>
1267
f8e0aa73 1268 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 1269 the error message for high integrity mode.
f8e0aa73
AJ
1270
1271 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 1272 is not available in high integrity mode.
f8e0aa73 1273
0868e09c
RD
1274 * rtsfind.ads:
1275 (OK_To_Use_In_HIE_Mode): New array.
1276 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
1277
1278 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
1279 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
1280
1281 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
1282 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 1283 caused by new Rtsfind changes.
f8e0aa73
AJ
1284
1285 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 1286 body is deleted.
f8e0aa73
AJ
1287
1288 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
1289 giving message for entity not available in high integrity mode.
1290
934abf9c 12912001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 1292
934abf9c
PO
1293 * impunit.adb: Add GNAT.CRC32.
1294
3c72bea4
ES
12952001-10-11 Ed Schonberg <schonber@gnat.com>
1296
f8e0aa73
AJ
1297 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
1298 properly the case where one universal operand in a non-static
3c72bea4
ES
1299 exponentiation of a real literal.
1300
44d8d2bb
ES
13012001-10-11 Ed Schonberg <schonber@gnat.com>
1302
f8e0aa73
AJ
1303 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
1304 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 1305
9e2b9627
ES
13062001-10-11 Ed Schonberg <schonber@gnat.com>
1307
f8e0aa73
AJ
1308 * exp_ch7.adb (Make_Transient_Block): if statement is within
1309 exception handler, always use new transient scope to place Clean
9e2b9627
ES
1310 procedure.
1311
cfac6e9f
PO
13122001-10-11 Pascal Obry <obry@gnat.com>
1313
1314 * Makefile.in:
1315 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
1316 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
1317 (GNATLS_RTL_OBJS): add g-crc32.o
1318 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 1319
cfac6e9f
PO
1320 * ali-util.adb:
1321 (CRC_Match): new function.
f8e0aa73 1322 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
1323 instead of the previous simple checksum algorithm.
1324 (Time_Stamp_Mismatch): use CRC_Match for comparison.
1325 (Set_Source_Table): idem.
f8e0aa73 1326
cfac6e9f 1327 * ali-util.ads:
f8e0aa73 1328 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
1329 instead of simple checksum.
1330 (CRC_Match): new function.
1331 (CRC_Error): new constant.
f8e0aa73
AJ
1332
1333 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
1334 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 1335 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
1336
1337 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 1338 is what this variable will store.
f8e0aa73 1339
cfac6e9f 1340 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
1341 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
1342 rename All_Checksum_Match to All_CRC_Match. Change due to API
1343 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 1344 CRC using GNAT.CRC32.
f8e0aa73
AJ
1345
1346 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 1347 now and not anymore a simple checksum.
f8e0aa73
AJ
1348
1349 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 1350 places.
f8e0aa73 1351
cfac6e9f 1352 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 1353
cfac6e9f
PO
1354 * scans.adb:
1355 (Restore_Scan_State): rename Checksum to CRC.
1356 (Save_Scan_State): idem.
f8e0aa73 1357
cfac6e9f
PO
1358 * scans.ads:
1359 With GNAT.CRC32.
1360 (Checksum): rename to CRC.
1361 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
1362
1363 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 1364 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
1365
1366 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 1367 GNAT.CRC32). Update copyright notice.
f8e0aa73 1368
cfac6e9f
PO
1369 * scn.adb:
1370 (Accumulate_Checksum): removed.
1371 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 1372
cfac6e9f
PO
1373 * sinput-l.adb:
1374 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 1375 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 1376 Source_CRC)
f8e0aa73
AJ
1377
1378 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 1379 Source_CRC in S initialization.
f8e0aa73 1380
cfac6e9f 1381 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 1382
cfac6e9f
PO
1383 * sinput.ads (Source_Checksum): renamed to Source_CRC.
1384 Update comments for the CRC.
f8e0aa73 1385
cfac6e9f 1386 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
1387
1388 * types.ads (Get_Hex_String): Returns the hexadecimal representation
1389 for a word. This is currently used only for CRC. In previous version,
1390 the checksum was using a representation with all letter being
1391 upper-case. With the new implementation (using CRC) we do not remove
1392 the 32th bit of the CRC, so we can have an upper-case starting letter
1393 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
1394 It is ambigous since the CRC was optional and could be followed by
1395 options like EB, EE. So now this routines uses lower-case letter for
1396 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 1397 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 1398
cfac6e9f 1399 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
1400
1401 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 1402 for the compiler.
f8e0aa73
AJ
1403
1404 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 1405 for the compiler.
f8e0aa73 1406
cfac6e9f
PO
1407 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
1408 Add 2001 to copyright notice
1409 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
1410
1411 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 1412 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 1413
cfac6e9f
PO
1414 * ali.adb: Undo some of previous changes, not needed.
1415 Keep the change for lower case letters in the checksum.
f8e0aa73 1416
cfac6e9f
PO
1417 * ali.ads: Undo previous change not needed.
1418
1419 * bcheck.adb: Undo most of previous change, not needed.
1420 But do use Checksums_Match for checksum comparison.
f8e0aa73 1421
cfac6e9f
PO
1422 * gnatls.adb: Undo most of previous change, not needed.
1423 But do use Checksums_Match for comparing checksums.
f8e0aa73 1424
cfac6e9f 1425 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 1426
cfac6e9f 1427 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
1428
1429 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 1430 not upper case letters.
f8e0aa73 1431
cfac6e9f 1432 * scans.adb: Undo previous change, not needed
f8e0aa73 1433
cfac6e9f 1434 * scans.ads: Undo previous change, not needed.
f8e0aa73 1435
cfac6e9f 1436 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 1437
cfac6e9f 1438 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 1439
cfac6e9f
PO
1440 * scn.adb:
1441 (Accumulate_Checksum): Use System.CRC32.
1442 (Initialize_Checksum): New procedure.
1443 Remove other changes of previous revision.
f8e0aa73 1444
cfac6e9f 1445 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 1446
cfac6e9f
PO
1447 * sinput.adb: Undo previous change, not needed.
1448
1449 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
1450
1451 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 1452 on new checksum algorithm
f8e0aa73 1453
cfac6e9f
PO
1454 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
1455 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 1456
cfac6e9f 1457 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 1458
cfac6e9f
PO
1459 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
1460
4d6d06a5
GB
14612001-10-11 Geert Bosch <bosch@gnat.com>
1462
1463 * einfo.h: Regenerate.
1464
1465 * nmake.ads: Regenerate.
1466
1467 * nmake.adb: Regenerate.
1468
1469 * sinfo.h: Regenerate.
1470
1471 * treeprs.adb: Regenerate.
1472
c97412e2
GB
14732001-10-10 Geert Bosch <bosch@gnat.com>
1474
1475 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 1476
b83018ca
ES
14772001-10-10 Ed Schonberg <schonber@gnat.com>
1478
f8e0aa73 1479 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
1480 is Flag174.
1481
e834fe1f
GB
14822001-10-10 Geert Bosch <bosch@gnat.com>
1483
1484 * snames.ads: Add new names for project facility.
1485
1486 * snames.adb: Update to reflect snames.ads changes.
1487
1488 * snames.h: Update to reflect snames.ads changes.
1489
b30668b7
VC
14902001-10-10 Vincent Celier <celier@gnat.com>
1491
1492 * make.adb:
1493 (Add_Switches): reflect the changes for the switches attributes
1494 Default_Switches indexed by the programming language,
1495 Switches indexed by the file name.
1496 (Collect_Arguments_And_Compile): Idem.
1497 Reflect the attribute name changes.
f8e0aa73 1498
b30668b7
VC
1499 * prj-attr.adb:
1500 (Initialisation_Data): Change the names of some packages and
1501 attributes.
1502 (Initialize): process case insensitive associative arrays.
f8e0aa73 1503
b30668b7
VC
1504 * prj-attr.ads:
1505 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 1506
b30668b7
VC
1507 * prj-dect.adb:
1508 (Parse_Attribute_Declaration): For case insensitive associative
1509 arrays, set the index string to lower case.
f8e0aa73 1510
b30668b7
VC
1511 * prj-env.adb:
1512 Reflect the changes of the project attributes.
f8e0aa73 1513
b30668b7
VC
1514 * prj-nmsc.adb:
1515 Replace Check_Naming_Scheme by Ada_Check and
1516 Language_Independent_Check.
f8e0aa73 1517
b30668b7
VC
1518 * prj-nmsc.ads:
1519 Replaced Check_Naming_Scheme by 2 procedures:
1520 Ada_Check and Language_Independent_Check.
f8e0aa73 1521
b30668b7
VC
1522 * prj-proc.adb:
1523 (Process_Declarative_Items): For case-insensitive associative
1524 arrays, set the index string to lower case.
1525 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
1526 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 1527
b30668b7
VC
1528 * prj-tree.adb:
1529 (Case_Insensitive): New function
1530 (Set_Case_Insensitive): New procedure
f8e0aa73 1531
b30668b7
VC
1532 * prj-tree.ads:
1533 (Case_Insensitive): New function
1534 (Set_Case_Insensitive): New procedure
1535 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 1536
b30668b7
VC
1537 * prj-util.adb:
1538 (Value_Of): new function to get the string value of a single
1539 string variable or attribute.
f8e0aa73 1540
b30668b7
VC
1541 * prj-util.ads:
1542 (Value_Of): new function to get the string value of a single
1543 string variable or attribute.
f8e0aa73 1544
b30668b7
VC
1545 * prj.adb:
1546 (Ada_Default_Spec_Suffix): New function
1547 (Ada_Default_Impl_Suffix): New function
1548 Change definitions of several constants to reflect
1549 new components of record types.
f8e0aa73 1550
b30668b7
VC
1551 * prj.ads:
1552 (Naming_Data): Change several components to reflect new
1553 elements of naming schemes.
1554 (Project_Data): New flags Sources_Present and
1555 Language_Independent_Checked.
1556 (Ada_Default_Spec_Suffix): New function.
1557 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 1558
b30668b7
VC
1559 * snames.ads:
1560 Modification of predefined names for project manager: added
1561 Implementation, Specification_Exceptions, Implementation_Exceptions,
1562 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
1563 Default_Switches, _Languages, Builder, Cross_Reference,
1564 Finder. Removed Body_Part, Specification_Append, Body_Append,
1565 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
1566 Gnatlink.
f8e0aa73 1567
b30668b7
VC
1568 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
1569 Add comments.
f8e0aa73 1570
b30668b7
VC
1571 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
1572 not that it is Nil_Variable_Value.
f8e0aa73 1573
b30668b7
VC
1574 * prj.ads: Add ??? for uncommented declarations
1575
662e57b4
ES
15762001-10-10 Ed Schonberg <schonber@gnat.com>
1577
f8e0aa73
AJ
1578 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
1579 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
1580 treat it as a bona fide constant.
1581
72e4357f
RD
15822001-10-10 Robert Dewar <dewar@gnat.com>
1583
1584 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 1585
72e4357f 1586 * snames.ads: Add entry for pragma External.
f8e0aa73 1587
72e4357f 1588 * par-prag.adb: Add pragma External.
f8e0aa73 1589
72e4357f
RD
1590 * snames.adb: Updated to match snames.ads.
1591
7bc1c7df
ES
15922001-10-10 Ed Schonberg <schonber@gnat.com>
1593
1594 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
1595 a dynamic task if the allocator appears in an indexed assignment
1596 or selected component assignment.
f8e0aa73
AJ
1597
1598 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
1599 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
1600 assignment to generate meaningful name.
1601
c84700e7
ES
16022001-10-10 Ed Schonberg <schonber@gnat.com>
1603
f8e0aa73 1604 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
1605 a generic package.
1606
1607 * einfo.ads: Body_Entity is also defined for generic package.
1608 Documentation change only
f8e0aa73
AJ
1609
1610 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
1611 others_choice for a discriminated component initialization,
1612 convert discriminant references into the corresponding discriminals.
1613
1614 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
1615 only if original type is private and expression has to be wrapped
c84700e7 1616 in a conversion.
f8e0aa73
AJ
1617
1618 * checks.adb:
1619 (Apply_Constraint_Check): Do not perform length check
c84700e7 1620 if expression is an aggregate with only an others_choice.
f8e0aa73 1621 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
1622 (typically the discriminal in an init_proc) denote the same value.
1623 Two useful optimization uncovered by bugfixes above.
1624
d8d80dcd
RD
16252001-10-10 Robert Dewar <dewar@gnat.com>
1626
f8e0aa73 1627 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
1628 This fixes a problem in the C representation of component alignment.
1629 Add 2001 to copyright notice
1630
a8fee948
RK
16312001-10-10 Richard Kenner <kenner@gnat.com>
1632
f8e0aa73 1633 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
1634 if it is a packed array type.
1635
c2d7fe59
RK
16362001-10-10 Richard Kenner <kenner@gnat.com>
1637
f8e0aa73 1638 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
1639 VAR_DECL for constant if not Is_Public but -O0.
1640
fb75e100
RK
16412001-10-10 Richard Kenner <kenner@gnat.com>
1642
1643 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
1644
1724557a
GB
16452001-10-10 Geert Bosch <bosch@gnat.com>
1646
f8e0aa73 1647 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
1648 use '/' as switch character, allowing for absolute file names.
1649
9f2f9eb6
JM
16502001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
1651
1652 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
1653 FSF address.
1654
8fecf41d
GB
16552001-10-08 Geert Bosch <bosch@gnat.com>
1656
1657 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
1658 Automatically build utilities when files need to be regenerated.
1659
589f1edf
GB
16602001-10-08 Geert Bosch <bosch@gnat.com>
1661
1662 * xsnames.adb: New utility for updating snames.ads and snames.adb
1663
67f28219
ZW
16642001-10-08 Zack Weinberg <zack@codesourcery.com>
1665
1666 * Make-lang.in (ADAFLAGS): Add -W -Wall.
1667 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
1668 (gnat1): Also depend on attribs.o.
1669 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
1670 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
1671 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
1672 (ADAFLAGS): Add -W -Wall.
1673 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
1674 take out CFLAGS.
1675
1676 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
1677 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
1678 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
1679 Use $(ADAC), not $(CC), as compilation command.
1680
1681 (gnattools): Depend directly on tools to build, don't use
1682 recursive make.
1683 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
1684
1685 * einfo.h, sinfo.h: New files (autogenerated).
1686
295ef2bb
RH
16872001-10-08 Richard Henderson <rth@redhat.com>
1688
1689 * comperr.adb (Abort_In_Progress): New.
1690 (Compiler_Abort): Use it to prevent recursion.
1691
5c736541
RD
16922001-10-08 Robert Dewar <dewar@gnat.com>
1693
1694 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
1695
1696 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 1697 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
1698
1699 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 1700 to help error recovery. Part of general work on 9407-004.
67f28219 1701
5c736541 1702 * par.adb: Add ??? for misuse of error
67f28219 1703
5c736541
RD
1704 * sem_res.adb:
1705 (Resolve): Defend against Error, fixes 9407-003.
1706 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
1707
1708 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
1709 to Any_Type to help error recovery).
1710
a153ae15
RK
17112001-10-08 Richard Kenner (kenner@gnat.com)
1712
1713 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
1714 Consistently set MEM attributes from expression; fixes
1715 bootstrap failure on x86.
1716
743f3c7b
GB
17172001-10-08 Geert Bosch (bosch@gnat.com)
1718
1719 * 5oosinte.adb: Add 2001 to copyright notice.
1720
210c4ef4
GB
17212001-10-08 Geert Bosch (bosch@gnat.com)
1722
1723 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
1724
1725 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
1726
cc712abf
JM
17272001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1728
1729 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
1730
4c4abc0f
GB
17312001-10-05 Geert Bosch (bosch@gnat.com)
1732
1733 * adaint.h: Small formatting fix.
1734
7f50e2e3
GB
17352001-10-04 Geert Bosch <bosch@gnat.com>
1736
1737 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
1738 Arg is int, not FILE *, in dummy version of functions.
67f28219 1739
7f50e2e3
GB
1740 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
1741 Arg is int, not FILE *.
1742
5d1a9698
GB
17432001-10-04 Geert Bosch <bosch@gnat.com>
1744
1745 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 1746
5d1a9698
GB
1747 * 4lintnam.ads: Fix header format.
1748 Change Linux to GNU/Linux.
67f28219 1749
5d1a9698
GB
1750 * 5iosinte.adb: Change Linux to GNU/Linux.
1751
1752 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 1753
5d1a9698 1754 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 1755
5d1a9698
GB
1756 * 5itaspri.ads: Change Linux to GNU/Linux.
1757 Update copyright notice.
67f28219 1758
5d1a9698 1759 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 1760
5d1a9698 1761 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 1762
5d1a9698 1763 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 1764
5d1a9698 1765 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 1766
5d1a9698 1767 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 1768
5d1a9698 1769 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 1770
5d1a9698 1771 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 1772
5d1a9698 1773 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 1774
5d1a9698
GB
1775 * 5qtaspri.ads: Change Linux to GNU/Linux.
1776 Add 2001 to copyright notice.
67f28219 1777
5d1a9698
GB
1778 * 5vintman.ads: Change Linux to GNU/Linux.
1779 Fix header format. Add 2001 to copyright notice.
67f28219 1780
5d1a9698 1781 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 1782
5d1a9698
GB
1783 * g-trasym.ads: Change Linux to GNU/Linux.
1784 Add 2001 to copyright notice.
67f28219 1785
5d1a9698 1786 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 1787
5d1a9698
GB
1788 * s-intman.ads: Change Linux to GNU/Linux.
1789 Add 2001 to copyright notice. Fix header format.
67f28219 1790
5d1a9698 1791 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 1792
5d1a9698 1793 * adaint.c: Change Linux to GNU/Linux.
67f28219 1794
5d1a9698 1795 * cio.c: Change Linux to GNU/Linux.
67f28219 1796
5d1a9698 1797 * cstreams.c: Change Linux to GNU/Linux.
67f28219 1798
5d1a9698 1799 * init.c: Change Linux to GNU/Linux.
67f28219 1800
5d1a9698 1801 * gmem.c: Change Linux to GNU/Linux.
67f28219 1802
5d1a9698
GB
1803 * tracebak.c: Change Linux to GNU/Linux.
1804
1805
c25ca2d7
GB
18062001-10-02 Geert Bosch <bosch@gnat.com>
1807
1808 * misc.c (insert_default_attributes): Add dummy version.