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