OSDN Git Service

069015de40b6be727dffee7b27a789361cb4160f
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2001-11-27  Laurent Guerby  <guerby@acm.org>
2
3         * Makefile.in: Regenerate Ada dependencies.
4
5 2001-11-26  Richard Henderson  <rth@redhat.com>
6
7         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
8         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
9         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
10
11 2001-11-25  Laurent Guerby  <guerby@acm.org>
12
13         * sysdep.c (rts_get_*): Fix style.
14
15 2001-11-19  Laurent Guerby  <guerby@acm.org>
16
17         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
18         since it is of no apparent use and cause warnings.
19
20 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
21
22         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
23         static too.
24         (gnat_init): Don't return NULL.
25         (finish_parse): Remove.
26
27 2001-11-17  Laurent Guerby  <guerby@acm.org>
28
29         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
30         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
31         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
32         * lang-spec.h: Add missing struct field to silence warnings.
33         * sysdep.c (rts_get_*): Provide K&R prototype.
34         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
35         * traceback.c (Unlock_Task, Lock_Task): Likewise.
36         * tracebak.c (__gnat_backtrace): Remove unused variable.
37         * utils.c (end_subprog_body): Move to K&R style.
38
39 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40
41         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42
43 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
44
45         * misc.c (gnat_init): Change prototype.  Include the
46         functionality of the old init_parse and init_decl_processing.
47         (gnat_init_decl_processing): New prototype.
48         (init_parse): Remove.
49         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
50
51 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
52
53         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
54         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
55         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
56         set_yydebug): Remove.
57
58 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
59
60         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
61         (struct lang_hooks): Constify.
62         (language_string, lang_identify): Remove.
63         * utils.c (init_decl_processing): Update.
64
65 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
66
67         * misc.c: Include langhooks-def.h.
68         * Makefile.in: Update.
69
70 2001-10-30  Robert Dewar <dewar@gnat.com>
71
72         * style.adb:
73         (Check_Identifier): Rewrite circuit to be compatible with use of letters
74         in the upper half of ASCII.
75         (Check_Identifier): Minor reformatting
76
77 2001-10-30  Geert Bosch <bosch@gnat.com>
78
79         * (Associated_Node, Set_Associated_Node): Do not check for 
80         Freeze_Entity.
81
82 2001-10-30  Robert Dewar <dewar@gnat.com>
83
84         * a-reatim.ads: Minor reformatting
85
86 2001-10-30  Robert Dewar <dewar@gnat.com>
87
88         * gnatdll.adb: Minor reformatting throughout. Many ??? added for 
89         undocumented declarations.
90
91 2001-10-30  Pascal Obry <obry@gnat.com>
92
93         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed 
94         to the binder and linker.
95         Minor style fix.
96         
97         * mdll.ads: Fix layout.  Update copyright notice.
98
99         * mdll.adb: Fix layout.  Update copyright notice.
100
101 2001-10-30  Robert Dewar <dewar@gnat.com>
102
103         * usage.adb: Minor fix to output for -gnaty.
104
105 2001-10-30  Ed Schonberg <schonber@gnat.com>
106
107         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer, 
108         to accommodate all its possible values. 
109
110         * a-reatim.adb (Split): Special-case handling of Time_Span_First 
111         and of small absolute values of T.
112
113 2001-10-30  Richard Kenner <kenner@gnat.com>
114
115         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to 
116         set_mem_attributes since not needed and wrong if RESULT if a REG; 
117         fixes ACATS failures.
118
119 2001-10-30  Geert Bosch <bosch@gnat.com>
120
121         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
122         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
123
124 2001-10-30  Robert Dewar <dewar@gnat.com>
125         
126         * bindusg.adb: Undocument -f switch.
127         
128         * gnatcmd.adb: Remove /FULL_ELABORATION.
129         
130         * opt.ads (Force_RM_Elaboration_Order): Document that this is 
131         obsolescent.
132         
133         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
134         
135         * gnatbind.adb: Minor update of warning msg.
136
137 2001-10-30  Vincent Celier <celier@gnat.com>
138
139         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations 
140         for project file switches (-P (/PROJECT_FILE=),
141          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT 
142         or MEDIUM or HIGH)
143
144 2001-10-30  Geert Bosch <bosch@gnat.com>
145
146         * decl.c: Minor whitespace fixes.
147
148 2001-10-30  Richard Kenner <kenner@gnat.com>
149
150         * utils2.c (build_allocator): Test for SIZE overflow in array case too
151
152 2001-10-30  Geert Bosch <bosch@gnat.com>
153
154         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out. 
155         Found due to GCC 3.0 warning of using uninitialized value.
156         
157         * layout.adb:
158         (Get_Max_Size): Use variant record for tracking value/expression.
159          Makes logic clearer and prevents warnings for uninitialized variables.
160         (Layout_Array_Type): Use variant record for tracking value/expression.
161          Makes logic clearer and prevents warnings for uninitialized variables.
162
163 2001-10-30  Robert Dewar <dewar@gnat.com>
164
165         * lib.adb: Minor reformatting
166
167         * s-taprop.ads: Minor reformatting
168
169 2001-10-29  Laurent Guerby  <guerby@acm.org>
170         
171         * init.c:
172         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
173         const.
174         (_gnat_error_handler): Make MSG const.
175
176 2001-10-29  Richard Kenner <kenner@gnat.com>
177
178         * sysdep.c: Fix localtime_r problem on LynxOS.
179         Also remove #elif to avoid warnings.
180         
181         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls 
182         used by this.
183         
184         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
185
186 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
187
188         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
189         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
190         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
191         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
192         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
193         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
194         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
195         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
196         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
197         types.ads, urealp.adb: Fix spelling errors.
198
199 2001-10-27  Laurent Guerby <guerby@acm.org>
200
201         * trans.c (gigi): Fix non determinism leading to bootstrap
202         comparison failures for debugging information.
203
204 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
205
206         * gnat_rm.texi: Use @./@: where appropriate.
207
208 2001-10-26  Robert Dewar <dewar@gnat.com>
209
210         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
211
212 2001-10-26  Richard Kenner <kenner@gnat.com>
213
214         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
215
216 2001-10-26  Richard Kenner <kenner@gnat.com>
217
218         * decl.c (validate_size): Modify message for bad size to avoid 
219         implication that compiler is modifying the size.
220
221 2001-10-26  Robert Dewar <dewar@gnat.com>
222
223         * prj-util.adb: Minor reformatting. Fix bad header format.
224
225 2001-10-26  Robert Dewar <dewar@gnat.com>
226
227         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
228         
229         * sinfo.ads: Clarify use of Associated_Node (documentation only).
230         
231         * sem_ch12.adb: Change Node4 to Associated_Node. Change 
232         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access 
233         much more narrowly in places where needed. These are cleanups.
234
235 2001-10-26  Joel Brobecker <brobecke@gnat.com>
236
237         * 5zosinte.ads (null_pthread): new constant.
238         
239         * 5ztaprop.adb:
240         (Initialize_TCB): Initialize thread ID to null, to be able to verify
241          later that this field has been set.
242         (Finalize_TCB): ditto.
243         (Suspend_Task): Verify that the thread ID is not null before using it.
244         (Resume_Task): ditto.
245         
246         * s-tasdeb.adb:
247         (Resume_All_Tasks): Lock the tasks list before using it.
248         (Suspend_All_Tasks): ditto.
249
250 2001-10-26  Richard Kenner <kenner@gnat.com>
251
252         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type): 
253         Make constant variant of designated type for Is_Access_Constant.
254         Call update_pointer_to with main variant.
255         
256         * trans.c (process_freeze_entity, process_type): 
257         Call update_pointer_to on main variant.
258         
259         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
260         If main variant, update all other variants.
261         
262         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set 
263         TREE_STATIC.
264
265 2001-10-26  Robert Dewar <dewar@gnat.com>
266
267         * prj-util.adb: Minor reformatting
268
269 2001-10-26  Robert Dewar <dewar@gnat.com>
270
271         * prj-util.adb: Minor reformatting
272
273 2001-10-26  Robert Dewar <dewar@gnat.com>
274
275         * prj-attr.adb: Minor reformatting throughout
276
277 2001-10-26  Robert Dewar <dewar@gnat.com>
278
279         * prj-attr.ads: Minor reformatting
280         Add ??? comment (this whole spec has almost no comments)
281
282 2001-10-26  Vincent Celier <celier@gnat.com>
283
284         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash 
285         ("//") that precede the drive letter on Interix.
286
287 2001-10-26  Geert Bosch <bosch@gnat.com>
288
289         * gnat_rm.texi: Add GNAT Reference Manual.
290
291 2001-10-25  Robert Dewar <dewar@gnat.com>
292
293         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name 
294         is Error. Similar change for other renaming cases.
295
296 2001-10-25  Robert Dewar <dewar@gnat.com>
297
298         * s-atacco.ads: Add pragma Inline_Always for functions.
299         Fix header format. Add copyright 2001
300
301 2001-10-25  Ed Schonberg <schonber@gnat.com>
302
303         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array 
304         return Error rather than Empty so that analysis can proceed.
305
306 2001-10-25  Ed Schonberg <schonber@gnat.com>
307
308         * sem_util.adb (Enter_Name): better handling of cascaded error 
309         messages when a unit appears in its own context.
310
311 2001-10-25  Ed Schonberg <schonber@gnat.com>
312
313         * sem_util.adb (Defining_Entity): in case of error, attach created 
314         entity to specification, so that semantic analysis can proceed.
315
316 2001-10-25  Robert Dewar <dewar@gnat.com>
317
318         * sem_util.adb 
319         (Defining_Entity): Deal with Error.
320         (Process_End_Label): Deal with bad end label for.
321
322 2001-10-25  Ed Schonberg <schonber@gnat.com>
323
324         * sem_elab.adb (Check_A_Call): refine message when call is in an 
325         instance but callee is not declared in the generic unit.
326
327 2001-10-25  Ed Schonberg <schonber@gnat.com>
328         
329         * sem_elab.adb (Check_A_Call): check for renaming before finding the 
330         enclosing unit, which may already be different from the calling unit.
331
332 2001-10-25  Geert Bosch <bosch@gnat.com>
333
334         * 4gintnam.ads: fix header format.
335
336 2001-10-25  Ed Schonberg <schonber@gnat.com>
337
338         * sem_res.adb (Resolve_Call): if the call is actually an indexing 
339         operation on the result of a parameterless call, perform elaboration 
340         check after the node has been properly rewritten.
341         
342         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been 
343         inlined within the generic tree, the defining identifier is not a 
344         compilation_unit.
345
346 2001-10-25  Ed Schonberg <schonber@gnat.com>
347
348         * sem_res.adb (Resolve): special-case resolution of Null in an 
349          instance or an inlined body to avoid view conflicts.
350         
351         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view 
352          compatibility by retrieving the access type of the generic copy.
353
354 2001-10-25  Robert Dewar <dewar@gnat.com>
355
356         * sem_ch3.adb:
357         (Analyze_Number_Declaration): Handle error expression.
358         (Signed_Integer_Type_Declaration): Handle error bound.
359         (Analyze_Subtype_Indication): Handle error range.
360         
361         * sem_util.adb (Get_Index_Bounds): Check for Error.
362
363 2001-10-25  Robert Dewar <dewar@gnat.com>
364
365         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default 
366         in no run time mode.
367
368 2001-10-25  Pascal Obry <obry@gnat.com>
369
370         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet 
371         mode case for ALLOC case.
372         
373         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on 
374         all platforms. Improvement of last change.
375
376 2001-10-25  Robert Dewar <dewar@gnat.com>
377
378         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
379
380 2001-10-25  Geert Bosch  <bosch@gnat.com>
381
382         * osint.adb (Is_Relative): Remove duplicate.
383
384 2001-10-25  Pascal Obry <obry@gnat.com>
385
386         * osint.adb (Read_Default_Search_Dirs): correctly detect relative 
387         pathnames in UNIX and DOS style with drive letter.
388         (Is_Relative): new routine.
389         
390         * osint.adb: Minor reformatting
391         
392         * osint.adb (Is_Relative): implementation using 
393         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
394
395 2001-10-25  Pascal Obry <obry@gnat.com>
396
397         * g-dirope.adb (Basename): correctly compute offset between the 
398         original Path and the translated one.
399         
400         * g-dirope.adb: (Base_Name): add some comments.
401
402 2001-10-25  Robert Dewar <dewar@gnat.com>
403
404         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use 
405         in HIE mode, avoids compilation abandoned message
406         
407         * exp_imgv.adb: Correct typo in previous change
408         
409         * exp_imgv.adb: Correct typo in previous change (not my day!)
410
411 2001-10-25  Robert Dewar <dewar@gnat.com>
412
413         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
414
415 2001-10-25  Pascal Obry <obry@gnat.com>
416
417         * g-awk.ads: Move all pragma inlines next to the routine 
418          declarations. This is more uniform with other GNAT spec.
419
420 2001-10-22  Geert Bosch  <bosch@gnat.com>
421
422         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
423
424 2001-10-19  Geert Bosch  <bosch@gnat.com>
425
426         * Makefile.in (tools, gnattools): Remove gnatmem.
427
428 2001-10-17  Richard Henderson  <rth@redhat.com>
429
430         * Makefile.in (misc.o): Depend on langhooks.h.
431         * misc.c: Include it.
432         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
433         (LANG_HOOKS_DECODE_OPTION): New.
434         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
435
436 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
437
438         * trans.c (tree_transform): Adjust to recent change in
439         expand_asm_operands to implement named asm operands.
440
441 2001-10-11  Ed Schonberg  <schonber@gnat.com>
442
443         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in 
444         renaming of discriminant for mutable record type.
445
446 2001-10-11  Robert Dewar  <dewar@gnat.com>
447
448         * validsw.adb: Properly save -gnatVn status.
449
450 2001-10-11  Robert Dewar <dewar@gnat.com>
451         
452         * usage.adb: Add lines for V switch.
453
454         * gnatcmd.adb (COMPILE): Revise translations for -gnatV 
455         (/VALIDITY_CHECKING).
456
457 2001-10-11  Ed Schonberg <schonber@gnat.com>
458
459         * sem_type.adb (Add_One_Interp): an operator for a type declared in 
460         an extension of System is known to be visible.
461
462 2001-10-11  Ed Schonberg <schonber@gnat.com>
463
464         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal 
465         properly. Fixes regression on ACATS C34005G.
466
467 2001-10-11  Robert Dewar <dewar@gnat.com>
468
469         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null 
470         loop in generic instance, since this is likely not very useful.
471
472 2001-10-11  Robert Dewar <dewar@gnat.com>
473
474         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize 
475         the error message for high integrity mode.
476         
477         * rtsfind.adb (RTE): Give message if we try to find an entity that 
478         is not available in high integrity mode.
479         
480         * rtsfind.ads:
481         (OK_To_Use_In_HIE_Mode): New array.
482         (RTE): May return Empty in high integrity mode.
483         
484         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for 
485         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx. 
486         
487         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined 
488         unit if not inlined always and in no runtime mode. Fixes problem 
489         caused by new Rtsfind changes.
490         
491         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if 
492         body is deleted.
493         
494         * rtsfind.adb (RTE): Make sure we do not try to load unit after 
495         giving message for entity not available in high integrity mode.
496
497 2001-10-11  Pascal Obry <obry@gnat.com>
498         
499         * impunit.adb: Add GNAT.CRC32.
500
501 2001-10-11  Ed Schonberg <schonber@gnat.com>
502
503         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle 
504         properly the case where one universal operand in a non-static 
505         exponentiation of a real literal.
506
507 2001-10-11  Ed Schonberg <schonber@gnat.com>
508
509         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type 
510         clause, return the gobal finalization list, for lack of anthing else. 
511
512 2001-10-11  Ed Schonberg <schonber@gnat.com>
513
514         * exp_ch7.adb (Make_Transient_Block): if statement is within 
515         exception handler, always use new transient scope to place Clean 
516         procedure.
517
518 2001-10-11  Pascal Obry <obry@gnat.com>
519
520         * Makefile.in:
521         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
522         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
523         (GNATLS_RTL_OBJS): add g-crc32.o
524         (GNATMAKE_RTL_OBJS): add g-crc32.o
525         
526         * ali-util.adb:
527         (CRC_Match): new function.
528         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit 
529         instead of the previous simple checksum algorithm.
530         (Time_Stamp_Mismatch): use CRC_Match for comparison.
531         (Set_Source_Table): idem.
532         
533         * ali-util.ads:
534         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC 
535         instead of simple checksum.
536         (CRC_Match): new function.
537         (CRC_Error): new constant.
538         
539         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling 
540         a CRC now and not a simple checksum. A CRC uses lower-case hex 
541         letters, fixes ambiguity in parsing.
542         
543         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this 
544         is what this variable will store.
545         
546         * bcheck.adb: Change reference to chechsum in comments by CRC.
547         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC. 
548         rename All_Checksum_Match to All_CRC_Match. Change due to API 
549         renaming since now GNAT does not use a simple checksum but a 
550         CRC using GNAT.CRC32.
551         
552         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC 
553         now and not anymore a simple checksum.
554         
555         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many 
556         places.
557         
558         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
559         
560         * scans.adb:
561         (Restore_Scan_State): rename Checksum to CRC.
562         (Save_Scan_State): idem.
563         
564         * scans.ads:
565         With GNAT.CRC32.
566         (Checksum): rename to CRC.
567         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
568         
569         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from 
570         GNAT.CRC32).  Update copyright notice.
571         
572         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from 
573         GNAT.CRC32).  Update copyright notice.
574         
575         * scn.adb:
576         (Accumulate_Checksum): removed.
577         (Update): new procedure. Add a wide-character into the CRC.
578         
579         * sinput-l.adb:
580         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
581         (Load_File): fix initialization of S (change Source_Checksum to 
582         Source_CRC)
583         
584         * sinput-p.adb (Load_Project_File): rename Source_Checksum to 
585         Source_CRC in S initialization.
586         
587         * sinput.adb (Source_Checksum): renamed to Source_CRC.
588         
589         * sinput.ads (Source_Checksum): renamed to Source_CRC.
590         Update comments for the CRC.
591         
592         * types.adb (Hex): Use lowercase for the letter part.
593         
594         * types.ads (Get_Hex_String): Returns the hexadecimal representation 
595         for a word. This is currently used only for CRC. In previous version, 
596         the checksum was using a representation with all letter being 
597         upper-case. With the new implementation (using CRC) we do not remove 
598         the 32th bit of the CRC, so we can have an upper-case starting letter 
599         in the CRC. This is not possible to parse in Scan_ALI (ali.adb). 
600         It is ambigous since the CRC was optional and could be followed by 
601         options like EB, EE. So now this routines uses lower-case letter for 
602         the hexadecimal representation. Strange enough only lower case letters 
603         where checked in Scan_ALI (even if this was not a possible case).
604         
605         * gnatvsn.ads (Library_Version): changed to 3.15a.
606         
607         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version 
608         for the compiler.
609         
610         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version 
611         for the compiler.
612         
613         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
614         Add 2001 to copyright notice
615         (Accumulate_Checksum): Modify to use System.CRC32.
616         
617         * ali-util.ads: Redo changes of previous revision to continue to use 
618         the word Checksum. Add 2001 to copyright notice.
619         
620         * ali.adb: Undo some of previous changes, not needed.
621         Keep the change for lower case letters in the checksum.
622         
623         * ali.ads: Undo previous change not needed.
624
625         * bcheck.adb: Undo most of previous change, not needed.
626         But do use Checksums_Match for checksum comparison.
627         
628         * gnatls.adb: Undo most of previous change, not needed.
629         But do use Checksums_Match for comparing checksums.
630         
631         * lib-load.adb: Undo previous change, not needed.
632         
633         * lib-writ.adb: Undo previous change, not needed.
634         
635         * lib-writ.ads: Document that checksums use lower case, 
636         not upper case letters.
637         
638         * scans.adb: Undo previous change, not needed
639         
640         * scans.ads: Undo previous change, not needed.
641         
642         * scn-nlit.adb: Undo previous changes, not needed.
643         
644         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
645         
646         * scn.adb:
647         (Accumulate_Checksum): Use System.CRC32.
648         (Initialize_Checksum): New procedure.
649         Remove other changes of previous revision.
650         
651         * sinput-p.adb: Undo previous change, not needed.
652         
653         * sinput.adb: Undo previous change, not needed.
654
655         * sinput-l.adb: Undo previous change, not needed.
656         
657         * sinput.ads: Undo previous change, not needed.  Keep only comment 
658         on new checksum algorithm
659         
660         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
661         Also remove a-tags and a-stream from GNAT sources.
662         
663         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
664         
665         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
666
667 2001-10-11  Geert Bosch  <bosch@gnat.com>
668
669         * einfo.h: Regenerate.
670
671         * nmake.ads: Regenerate.
672
673         * nmake.adb: Regenerate.
674
675         * sinfo.h: Regenerate.
676
677         * treeprs.adb: Regenerate.
678
679 2001-10-10  Geert Bosch  <bosch@gnat.com>
680
681         * gnat-style.texi: New file describing coding guidelines for Ada.
682         
683 2001-10-10  Ed Schonberg <schonber@gnat.com>
684
685         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required 
686         is Flag174.
687
688 2001-10-10  Geert Bosch  <bosch@gnat.com>
689
690         * snames.ads: Add new names for project facility.
691
692         * snames.adb: Update to reflect snames.ads changes.
693
694         * snames.h: Update to reflect snames.ads changes.
695
696 2001-10-10  Vincent Celier <celier@gnat.com>
697
698         * make.adb:
699         (Add_Switches): reflect the changes for the switches attributes
700         Default_Switches indexed by the programming language,
701         Switches indexed by the file name.
702         (Collect_Arguments_And_Compile): Idem.
703         Reflect the attribute name changes.
704         
705         * prj-attr.adb:
706         (Initialisation_Data): Change the names of some packages and
707         attributes.
708         (Initialize): process case insensitive associative arrays.
709         
710         * prj-attr.ads:
711         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
712         
713         * prj-dect.adb:
714         (Parse_Attribute_Declaration): For case insensitive associative
715          arrays, set the index string to lower case.
716         
717         * prj-env.adb:
718         Reflect the changes of the project attributes.
719         
720         * prj-nmsc.adb:
721         Replace Check_Naming_Scheme by Ada_Check and
722         Language_Independent_Check.
723         
724         * prj-nmsc.ads:
725         Replaced Check_Naming_Scheme by 2 procedures:
726         Ada_Check and Language_Independent_Check.
727         
728         * prj-proc.adb:
729         (Process_Declarative_Items): For case-insensitive associative
730         arrays, set the index string to lower case.
731         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
732         Prj.Nmsc.Check_Naming_Scheme.
733         
734         * prj-tree.adb:
735         (Case_Insensitive): New function
736         (Set_Case_Insensitive): New procedure
737         
738         * prj-tree.ads:
739         (Case_Insensitive): New function
740         (Set_Case_Insensitive): New procedure
741         (Project_Node_Record): New flag Case_Insensitive.
742         
743         * prj-util.adb:
744         (Value_Of): new function to get the string value of a single
745         string variable or attribute.
746         
747         * prj-util.ads:
748         (Value_Of): new function to get the string value of a single
749         string variable or attribute.
750         
751         * prj.adb:
752         (Ada_Default_Spec_Suffix): New function
753         (Ada_Default_Impl_Suffix): New function
754         Change definitions of several constants to reflect
755         new components of record types.
756         
757         * prj.ads:
758         (Naming_Data): Change several components to reflect new
759         elements of naming schemes.
760         (Project_Data): New flags Sources_Present and
761         Language_Independent_Checked.
762         (Ada_Default_Spec_Suffix): New function.
763         (Ada_Default_Impl_Suffix): New function.
764         
765         * snames.ads:
766         Modification of predefined names for project manager: added
767         Implementation, Specification_Exceptions, Implementation_Exceptions,
768         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
769         Default_Switches, _Languages, Builder, Cross_Reference,
770         Finder. Removed Body_Part, Specification_Append, Body_Append,
771         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
772         Gnatlink.
773         
774         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
775         Add comments.
776         
777         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
778         not that it is Nil_Variable_Value.
779         
780         * prj.ads: Add ??? for uncommented declarations
781
782 2001-10-10  Ed Schonberg <schonber@gnat.com>
783
784         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a 
785         constant, do not indicate possible modification, so that gigi can 
786         treat it as a bona fide constant.
787
788 2001-10-10  Robert Dewar <dewar@gnat.com>
789
790         * sem_prag.adb: Add processing for pragma External.
791         
792         * snames.ads: Add entry for pragma External.
793         
794         * par-prag.adb: Add pragma External.
795         
796         * snames.adb: Updated to match snames.ads.
797
798 2001-10-10  Ed Schonberg <schonber@gnat.com>
799
800         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
801         a dynamic task if the allocator appears in an indexed assignment
802         or selected component assignment.
803         
804         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image): 
805         For a dynamic task in an assignment statement, use target of 
806         assignment to generate meaningful name.
807
808 2001-10-10  Ed Schonberg <schonber@gnat.com>
809
810         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for 
811         a generic package.
812
813         * einfo.ads: Body_Entity is also defined for generic package.
814         Documentation change only
815         
816         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an 
817         others_choice for a discriminated component initialization, 
818         convert discriminant references into the corresponding discriminals. 
819         
820         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate 
821         only if original type is private and expression has to be wrapped 
822         in a conversion.
823         
824         * checks.adb: 
825         (Apply_Constraint_Check): Do not perform length check 
826         if expression is an aggregate with only an others_choice.
827         (Length_N_Cond): two references to the same in_parameter 
828         (typically the discriminal in an init_proc) denote the same value.
829         Two useful optimization uncovered by bugfixes above.
830
831 2001-10-10  Robert Dewar <dewar@gnat.com>
832
833         * xeinfo.adb: Change int to char in translation of enumeration types. 
834         This fixes a problem in the C representation of component alignment.
835         Add 2001 to copyright notice
836
837 2001-10-10  Richard Kenner <kenner@gnat.com>
838
839         * decl.c: (validate_size): Do check size of object of integral type 
840         if it is a packed array type.
841
842 2001-10-10  Richard Kenner <kenner@gnat.com>
843
844         * decl.c: (gnat_to_gnu_entity, case object): Also materialize 
845         VAR_DECL for constant if not Is_Public but -O0.
846
847 2001-10-10  Richard Kenner  <kenner@gnat.com>
848
849         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
850
851 2001-10-10  Geert Bosch  <bosch@gnat.com>
852
853         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer 
854         use '/' as switch character, allowing for absolute file names.
855
856 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
857
858         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
859         FSF address.
860
861 2001-10-08  Geert Bosch  <bosch@gnat.com>
862
863         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
864         Automatically build utilities when files need to be regenerated.
865
866 2001-10-08  Geert Bosch  <bosch@gnat.com>
867
868         * xsnames.adb: New utility for updating snames.ads and snames.adb
869
870 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
871
872         * Make-lang.in (ADAFLAGS): Add -W -Wall.
873         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
874         (gnat1): Also depend on attribs.o.
875         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
876         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
877         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
878         (ADAFLAGS): Add -W -Wall.
879         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
880         take out CFLAGS.
881
882         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
883         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
884         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
885         Use $(ADAC), not $(CC), as compilation command.
886
887         (gnattools): Depend directly on tools to build, don't use
888         recursive make.
889         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
890
891         * einfo.h, sinfo.h: New files (autogenerated).
892
893 2001-10-08  Richard Henderson  <rth@redhat.com>
894
895         * comperr.adb (Abort_In_Progress): New.
896         (Compiler_Abort): Use it to prevent recursion.
897
898 2001-10-08  Robert Dewar <dewar@gnat.com>
899
900         * atree.adb: Set Error_Posted in Error node, helps error recovery.
901
902         * par-endh.adb (Output_End_Expected): We should also not test
903         Error_Posted on the Error node, since now it is always set.
904
905         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
906         to help error recovery. Part of general work on 9407-004.
907
908         * par.adb: Add ??? for misuse of error
909
910         * sem_res.adb:
911         (Resolve): Defend against Error, fixes 9407-003.
912         (Resolve_Discrete_Subtype_Indication): Defend against Error.
913
914         * sinfo.ads (N_Error): Now has Etype field (which will be set
915         to Any_Type to help error recovery).
916
917 2001-10-08  Richard Kenner (kenner@gnat.com)
918
919         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
920         Consistently set MEM attributes from expression; fixes
921         bootstrap failure on x86.
922
923 2001-10-08  Geert Bosch  (bosch@gnat.com)
924
925         * 5oosinte.adb: Add 2001 to copyright notice.
926
927 2001-10-08  Geert Bosch  (bosch@gnat.com)
928
929         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
930
931         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
932
933 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
934
935         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
936
937 2001-10-05  Geert Bosch  (bosch@gnat.com)
938
939         * adaint.h: Small formatting fix.
940
941 2001-10-04  Geert Bosch  <bosch@gnat.com>
942
943         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
944         Arg is int, not FILE *, in dummy version of functions.
945
946         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
947         Arg is int, not FILE *.
948
949 2001-10-04  Geert Bosch  <bosch@gnat.com>
950
951         * 3lsoccon.ads: Added file, missed with initial check ins.
952
953         * 4lintnam.ads: Fix header format.
954         Change Linux to GNU/Linux.
955
956         * 5iosinte.adb: Change Linux to GNU/Linux.
957
958         * 5iosinte.ads: Change Linux to GNU/Linux.
959
960         * 5itaprop.adb: Change Linux to GNU/Linux.
961
962         * 5itaspri.ads: Change Linux to GNU/Linux.
963         Update copyright notice.
964
965         * 5lintman.adb: Change Linux to GNU/Linux.
966
967         * 5lml-tgt.adb: Change Linux to GNU/Linux.
968
969         * 5losinte.ads: Change Linux to GNU/Linux.
970
971         * 5lsystem.ads: Change Linux to GNU/Linux.
972
973         * 5qosinte.adb: Change Linux to GNU/Linux.
974
975         * 5qosinte.ads: Change Linux to GNU/Linux.
976
977         * 5qparame.ads: Change Linux to GNU/Linux.
978
979         * 5qtaprop.adb: Change Linux to GNU/Linux.
980
981         * 5qtaspri.ads: Change Linux to GNU/Linux.
982         Add 2001 to copyright notice.
983
984         * 5vintman.ads: Change Linux to GNU/Linux.
985         Fix header format.  Add 2001 to copyright notice.
986
987         * g-soccon.ads: Change Linux to GNU/Linux.
988
989         * g-trasym.ads: Change Linux to GNU/Linux.
990         Add 2001 to copyright notice.
991
992         * memtrack.adb: Change Linux to GNU/Linux.
993
994         * s-intman.ads: Change Linux to GNU/Linux.
995         Add 2001 to copyright notice.  Fix header format.
996
997         * s-stache.adb: Change Linux to GNU/Linux.
998
999         * adaint.c: Change Linux to GNU/Linux.
1000
1001         * cio.c: Change Linux to GNU/Linux.
1002
1003         * cstreams.c: Change Linux to GNU/Linux.
1004
1005         * init.c: Change Linux to GNU/Linux.
1006
1007         * gmem.c: Change Linux to GNU/Linux.
1008
1009         * tracebak.c: Change Linux to GNU/Linux.
1010
1011
1012 2001-10-02  Geert Bosch  <bosch@gnat.com>
1013
1014         * misc.c (insert_default_attributes): Add dummy version.