1 2001-12-03 Geert Bosch <bosch@gnat.com>
3 * make.adb: Minor reformatting.
5 2001-12-03 <dewar@gnat.com>
7 * sem_ch12.adb: Minor reformatting
9 2001-12-03 Ed Schonberg <schonber@gnat.com>
11 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12 push Standard on the stack before analyzing the instance body,
13 in order to have a clean visibility environment.
15 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
17 2001-12-03 Ed Schonberg <schonber@gnat.com>
19 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
20 instantiation of a body that contains an inlined body.
22 2001-12-03 Ed Schonberg <schonber@gnat.com>
25 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
26 to prevent freezing within formal packages.
27 (Freeze_Subprogram_Body): If body comes from another instance that
28 appeared before its own body, place freeze node at end of current
29 declarative part, to prevent a back-end crash.
30 (Inline_Instance_Body): Handle properly a package instance within
31 a subprogram instance that is a child unit.
33 2001-12-01 Graham Stott <grahams@redhat.com>
35 * Makefile.in (misc.o): Add missing $(srcdir) prefix
36 and add optabs.h dependency.
38 * misc.c: Include optabs.h
39 (gnat_tree_code_type): Make static and const.
40 (gnat_tree_code_length): Likewise.
41 (gnat_tree_code_name): Likewise.
42 (update_setjmp_buf): Obtain operands mode from insn_data.
44 2001-11-29 Richard Henderson <rth@redhat.com>
46 * init.c: Remove obsolete dwarf2 frame.h section.
48 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
50 * Make-lang.in (ada.generated-manpages): New dummy target.
52 2001-11-29 Ed Schonberg <schonber@gnat.com>
54 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
55 into Command, an array conversion is illegal here. Uncovered by
58 2001/11/28 Geert Bosch <bosch@gnat.com>
60 * init.c: Minor whitespace changes.
62 2001-11-28 Doug Rupp <rupp@gnat.com>
64 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
67 2001-11-28 Zack Weinberg <zack@codesourcery.com>
69 * misc.c (gnat_expand_constant): Move declaration above
70 definition of lang_hooks.
71 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
72 (gnat_init): lang_expand_constant no longer exists.
74 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
76 (gnat_init): Always call set_internal_error_function.
78 2001-11-27 Andreas Jaeger <aj@suse.de>
80 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
82 2001-11-27 Laurent Guerby <guerby@acm.org>
84 * Makefile.in: Regenerate Ada dependencies.
86 2001-11-26 Richard Henderson <rth@redhat.com>
88 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
89 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
90 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
92 2001-11-25 Laurent Guerby <guerby@acm.org>
94 * sysdep.c (rts_get_*): Fix style.
96 2001-11-19 Laurent Guerby <guerby@acm.org>
98 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
99 since it is of no apparent use and cause warnings.
101 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
103 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
105 (gnat_init): Don't return NULL.
106 (finish_parse): Remove.
108 2001-11-17 Laurent Guerby <guerby@acm.org>
110 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
111 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
112 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
113 * lang-spec.h: Add missing struct field to silence warnings.
114 * sysdep.c (rts_get_*): Provide K&R prototype.
115 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
116 * traceback.c (Unlock_Task, Lock_Task): Likewise.
117 * tracebak.c (__gnat_backtrace): Remove unused variable.
118 * utils.c (end_subprog_body): Move to K&R style.
120 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
122 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
124 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
126 * misc.c (gnat_init): Change prototype. Include the
127 functionality of the old init_parse and init_decl_processing.
128 (gnat_init_decl_processing): New prototype.
129 (init_parse): Remove.
130 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
132 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
134 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
135 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
136 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
137 set_yydebug): Remove.
139 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
141 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
142 (struct lang_hooks): Constify.
143 (language_string, lang_identify): Remove.
144 * utils.c (init_decl_processing): Update.
146 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
148 * misc.c: Include langhooks-def.h.
149 * Makefile.in: Update.
151 2001-10-30 Robert Dewar <dewar@gnat.com>
154 (Check_Identifier): Rewrite circuit to be compatible with use of letters
155 in the upper half of ASCII.
156 (Check_Identifier): Minor reformatting
158 2001-10-30 Geert Bosch <bosch@gnat.com>
160 * (Associated_Node, Set_Associated_Node): Do not check for
163 2001-10-30 Robert Dewar <dewar@gnat.com>
165 * a-reatim.ads: Minor reformatting
167 2001-10-30 Robert Dewar <dewar@gnat.com>
169 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
170 undocumented declarations.
172 2001-10-30 Pascal Obry <obry@gnat.com>
174 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
175 to the binder and linker.
178 * mdll.ads: Fix layout. Update copyright notice.
180 * mdll.adb: Fix layout. Update copyright notice.
182 2001-10-30 Robert Dewar <dewar@gnat.com>
184 * usage.adb: Minor fix to output for -gnaty.
186 2001-10-30 Ed Schonberg <schonber@gnat.com>
188 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
189 to accommodate all its possible values.
191 * a-reatim.adb (Split): Special-case handling of Time_Span_First
192 and of small absolute values of T.
194 2001-10-30 Richard Kenner <kenner@gnat.com>
196 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
197 set_mem_attributes since not needed and wrong if RESULT if a REG;
198 fixes ACATS failures.
200 2001-10-30 Geert Bosch <bosch@gnat.com>
202 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
203 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
205 2001-10-30 Robert Dewar <dewar@gnat.com>
207 * bindusg.adb: Undocument -f switch.
209 * gnatcmd.adb: Remove /FULL_ELABORATION.
211 * opt.ads (Force_RM_Elaboration_Order): Document that this is
214 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
216 * gnatbind.adb: Minor update of warning msg.
218 2001-10-30 Vincent Celier <celier@gnat.com>
220 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
221 for project file switches (-P (/PROJECT_FILE=),
222 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
225 2001-10-30 Geert Bosch <bosch@gnat.com>
227 * decl.c: Minor whitespace fixes.
229 2001-10-30 Richard Kenner <kenner@gnat.com>
231 * utils2.c (build_allocator): Test for SIZE overflow in array case too
233 2001-10-30 Geert Bosch <bosch@gnat.com>
235 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
236 Found due to GCC 3.0 warning of using uninitialized value.
239 (Get_Max_Size): Use variant record for tracking value/expression.
240 Makes logic clearer and prevents warnings for uninitialized variables.
241 (Layout_Array_Type): Use variant record for tracking value/expression.
242 Makes logic clearer and prevents warnings for uninitialized variables.
244 2001-10-30 Robert Dewar <dewar@gnat.com>
246 * lib.adb: Minor reformatting
248 * s-taprop.ads: Minor reformatting
250 2001-10-29 Laurent Guerby <guerby@acm.org>
253 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
255 (_gnat_error_handler): Make MSG const.
257 2001-10-29 Richard Kenner <kenner@gnat.com>
259 * sysdep.c: Fix localtime_r problem on LynxOS.
260 Also remove #elif to avoid warnings.
262 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
265 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
267 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
269 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
270 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
271 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
272 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
273 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
274 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
275 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
276 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
277 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
278 types.ads, urealp.adb: Fix spelling errors.
280 2001-10-27 Laurent Guerby <guerby@acm.org>
282 * trans.c (gigi): Fix non determinism leading to bootstrap
283 comparison failures for debugging information.
285 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
287 * gnat_rm.texi: Use @./@: where appropriate.
289 2001-10-26 Robert Dewar <dewar@gnat.com>
291 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
293 2001-10-26 Richard Kenner <kenner@gnat.com>
295 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
297 2001-10-26 Richard Kenner <kenner@gnat.com>
299 * decl.c (validate_size): Modify message for bad size to avoid
300 implication that compiler is modifying the size.
302 2001-10-26 Robert Dewar <dewar@gnat.com>
304 * prj-util.adb: Minor reformatting. Fix bad header format.
306 2001-10-26 Robert Dewar <dewar@gnat.com>
308 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
310 * sinfo.ads: Clarify use of Associated_Node (documentation only).
312 * sem_ch12.adb: Change Node4 to Associated_Node. Change
313 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
314 much more narrowly in places where needed. These are cleanups.
316 2001-10-26 Joel Brobecker <brobecke@gnat.com>
318 * 5zosinte.ads (null_pthread): new constant.
321 (Initialize_TCB): Initialize thread ID to null, to be able to verify
322 later that this field has been set.
323 (Finalize_TCB): ditto.
324 (Suspend_Task): Verify that the thread ID is not null before using it.
325 (Resume_Task): ditto.
328 (Resume_All_Tasks): Lock the tasks list before using it.
329 (Suspend_All_Tasks): ditto.
331 2001-10-26 Richard Kenner <kenner@gnat.com>
333 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
334 Make constant variant of designated type for Is_Access_Constant.
335 Call update_pointer_to with main variant.
337 * trans.c (process_freeze_entity, process_type):
338 Call update_pointer_to on main variant.
340 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
341 If main variant, update all other variants.
343 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
346 2001-10-26 Robert Dewar <dewar@gnat.com>
348 * prj-util.adb: Minor reformatting
350 2001-10-26 Robert Dewar <dewar@gnat.com>
352 * prj-util.adb: Minor reformatting
354 2001-10-26 Robert Dewar <dewar@gnat.com>
356 * prj-attr.adb: Minor reformatting throughout
358 2001-10-26 Robert Dewar <dewar@gnat.com>
360 * prj-attr.ads: Minor reformatting
361 Add ??? comment (this whole spec has almost no comments)
363 2001-10-26 Vincent Celier <celier@gnat.com>
365 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
366 ("//") that precede the drive letter on Interix.
368 2001-10-26 Geert Bosch <bosch@gnat.com>
370 * gnat_rm.texi: Add GNAT Reference Manual.
372 2001-10-25 Robert Dewar <dewar@gnat.com>
374 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
375 is Error. Similar change for other renaming cases.
377 2001-10-25 Robert Dewar <dewar@gnat.com>
379 * s-atacco.ads: Add pragma Inline_Always for functions.
380 Fix header format. Add copyright 2001
382 2001-10-25 Ed Schonberg <schonber@gnat.com>
384 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
385 return Error rather than Empty so that analysis can proceed.
387 2001-10-25 Ed Schonberg <schonber@gnat.com>
389 * sem_util.adb (Enter_Name): better handling of cascaded error
390 messages when a unit appears in its own context.
392 2001-10-25 Ed Schonberg <schonber@gnat.com>
394 * sem_util.adb (Defining_Entity): in case of error, attach created
395 entity to specification, so that semantic analysis can proceed.
397 2001-10-25 Robert Dewar <dewar@gnat.com>
400 (Defining_Entity): Deal with Error.
401 (Process_End_Label): Deal with bad end label for.
403 2001-10-25 Ed Schonberg <schonber@gnat.com>
405 * sem_elab.adb (Check_A_Call): refine message when call is in an
406 instance but callee is not declared in the generic unit.
408 2001-10-25 Ed Schonberg <schonber@gnat.com>
410 * sem_elab.adb (Check_A_Call): check for renaming before finding the
411 enclosing unit, which may already be different from the calling unit.
413 2001-10-25 Geert Bosch <bosch@gnat.com>
415 * 4gintnam.ads: fix header format.
417 2001-10-25 Ed Schonberg <schonber@gnat.com>
419 * sem_res.adb (Resolve_Call): if the call is actually an indexing
420 operation on the result of a parameterless call, perform elaboration
421 check after the node has been properly rewritten.
423 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
424 inlined within the generic tree, the defining identifier is not a
427 2001-10-25 Ed Schonberg <schonber@gnat.com>
429 * sem_res.adb (Resolve): special-case resolution of Null in an
430 instance or an inlined body to avoid view conflicts.
432 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
433 compatibility by retrieving the access type of the generic copy.
435 2001-10-25 Robert Dewar <dewar@gnat.com>
438 (Analyze_Number_Declaration): Handle error expression.
439 (Signed_Integer_Type_Declaration): Handle error bound.
440 (Analyze_Subtype_Indication): Handle error range.
442 * sem_util.adb (Get_Index_Bounds): Check for Error.
444 2001-10-25 Robert Dewar <dewar@gnat.com>
446 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
449 2001-10-25 Pascal Obry <obry@gnat.com>
451 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
452 mode case for ALLOC case.
454 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
455 all platforms. Improvement of last change.
457 2001-10-25 Robert Dewar <dewar@gnat.com>
459 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
461 2001-10-25 Geert Bosch <bosch@gnat.com>
463 * osint.adb (Is_Relative): Remove duplicate.
465 2001-10-25 Pascal Obry <obry@gnat.com>
467 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
468 pathnames in UNIX and DOS style with drive letter.
469 (Is_Relative): new routine.
471 * osint.adb: Minor reformatting
473 * osint.adb (Is_Relative): implementation using
474 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
476 2001-10-25 Pascal Obry <obry@gnat.com>
478 * g-dirope.adb (Basename): correctly compute offset between the
479 original Path and the translated one.
481 * g-dirope.adb: (Base_Name): add some comments.
483 2001-10-25 Robert Dewar <dewar@gnat.com>
485 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
486 in HIE mode, avoids compilation abandoned message
488 * exp_imgv.adb: Correct typo in previous change
490 * exp_imgv.adb: Correct typo in previous change (not my day!)
492 2001-10-25 Robert Dewar <dewar@gnat.com>
494 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
496 2001-10-25 Pascal Obry <obry@gnat.com>
498 * g-awk.ads: Move all pragma inlines next to the routine
499 declarations. This is more uniform with other GNAT spec.
501 2001-10-22 Geert Bosch <bosch@gnat.com>
503 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
505 2001-10-19 Geert Bosch <bosch@gnat.com>
507 * Makefile.in (tools, gnattools): Remove gnatmem.
509 2001-10-17 Richard Henderson <rth@redhat.com>
511 * Makefile.in (misc.o): Depend on langhooks.h.
512 * misc.c: Include it.
513 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
514 (LANG_HOOKS_DECODE_OPTION): New.
515 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
517 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
519 * trans.c (tree_transform): Adjust to recent change in
520 expand_asm_operands to implement named asm operands.
522 2001-10-11 Ed Schonberg <schonber@gnat.com>
524 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
525 renaming of discriminant for mutable record type.
527 2001-10-11 Robert Dewar <dewar@gnat.com>
529 * validsw.adb: Properly save -gnatVn status.
531 2001-10-11 Robert Dewar <dewar@gnat.com>
533 * usage.adb: Add lines for V switch.
535 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
536 (/VALIDITY_CHECKING).
538 2001-10-11 Ed Schonberg <schonber@gnat.com>
540 * sem_type.adb (Add_One_Interp): an operator for a type declared in
541 an extension of System is known to be visible.
543 2001-10-11 Ed Schonberg <schonber@gnat.com>
545 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
546 properly. Fixes regression on ACATS C34005G.
548 2001-10-11 Robert Dewar <dewar@gnat.com>
550 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
551 loop in generic instance, since this is likely not very useful.
553 2001-10-11 Robert Dewar <dewar@gnat.com>
555 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
556 the error message for high integrity mode.
558 * rtsfind.adb (RTE): Give message if we try to find an entity that
559 is not available in high integrity mode.
562 (OK_To_Use_In_HIE_Mode): New array.
563 (RTE): May return Empty in high integrity mode.
565 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
566 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
568 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
569 unit if not inlined always and in no runtime mode. Fixes problem
570 caused by new Rtsfind changes.
572 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
575 * rtsfind.adb (RTE): Make sure we do not try to load unit after
576 giving message for entity not available in high integrity mode.
578 2001-10-11 Pascal Obry <obry@gnat.com>
580 * impunit.adb: Add GNAT.CRC32.
582 2001-10-11 Ed Schonberg <schonber@gnat.com>
584 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
585 properly the case where one universal operand in a non-static
586 exponentiation of a real literal.
588 2001-10-11 Ed Schonberg <schonber@gnat.com>
590 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
591 clause, return the gobal finalization list, for lack of anthing else.
593 2001-10-11 Ed Schonberg <schonber@gnat.com>
595 * exp_ch7.adb (Make_Transient_Block): if statement is within
596 exception handler, always use new transient scope to place Clean
599 2001-10-11 Pascal Obry <obry@gnat.com>
602 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
603 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
604 (GNATLS_RTL_OBJS): add g-crc32.o
605 (GNATMAKE_RTL_OBJS): add g-crc32.o
608 (CRC_Match): new function.
609 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
610 instead of the previous simple checksum algorithm.
611 (Time_Stamp_Mismatch): use CRC_Match for comparison.
612 (Set_Source_Table): idem.
615 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
616 instead of simple checksum.
617 (CRC_Match): new function.
618 (CRC_Error): new constant.
620 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
621 a CRC now and not a simple checksum. A CRC uses lower-case hex
622 letters, fixes ambiguity in parsing.
624 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
625 is what this variable will store.
627 * bcheck.adb: Change reference to chechsum in comments by CRC.
628 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
629 rename All_Checksum_Match to All_CRC_Match. Change due to API
630 renaming since now GNAT does not use a simple checksum but a
631 CRC using GNAT.CRC32.
633 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
634 now and not anymore a simple checksum.
636 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
639 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
642 (Restore_Scan_State): rename Checksum to CRC.
643 (Save_Scan_State): idem.
647 (Checksum): rename to CRC.
648 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
650 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
651 GNAT.CRC32). Update copyright notice.
653 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
654 GNAT.CRC32). Update copyright notice.
657 (Accumulate_Checksum): removed.
658 (Update): new procedure. Add a wide-character into the CRC.
661 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
662 (Load_File): fix initialization of S (change Source_Checksum to
665 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
666 Source_CRC in S initialization.
668 * sinput.adb (Source_Checksum): renamed to Source_CRC.
670 * sinput.ads (Source_Checksum): renamed to Source_CRC.
671 Update comments for the CRC.
673 * types.adb (Hex): Use lowercase for the letter part.
675 * types.ads (Get_Hex_String): Returns the hexadecimal representation
676 for a word. This is currently used only for CRC. In previous version,
677 the checksum was using a representation with all letter being
678 upper-case. With the new implementation (using CRC) we do not remove
679 the 32th bit of the CRC, so we can have an upper-case starting letter
680 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
681 It is ambigous since the CRC was optional and could be followed by
682 options like EB, EE. So now this routines uses lower-case letter for
683 the hexadecimal representation. Strange enough only lower case letters
684 where checked in Scan_ALI (even if this was not a possible case).
686 * gnatvsn.ads (Library_Version): changed to 3.15a.
688 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
691 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
694 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
695 Add 2001 to copyright notice
696 (Accumulate_Checksum): Modify to use System.CRC32.
698 * ali-util.ads: Redo changes of previous revision to continue to use
699 the word Checksum. Add 2001 to copyright notice.
701 * ali.adb: Undo some of previous changes, not needed.
702 Keep the change for lower case letters in the checksum.
704 * ali.ads: Undo previous change not needed.
706 * bcheck.adb: Undo most of previous change, not needed.
707 But do use Checksums_Match for checksum comparison.
709 * gnatls.adb: Undo most of previous change, not needed.
710 But do use Checksums_Match for comparing checksums.
712 * lib-load.adb: Undo previous change, not needed.
714 * lib-writ.adb: Undo previous change, not needed.
716 * lib-writ.ads: Document that checksums use lower case,
717 not upper case letters.
719 * scans.adb: Undo previous change, not needed
721 * scans.ads: Undo previous change, not needed.
723 * scn-nlit.adb: Undo previous changes, not needed.
725 * scn-slit.adb: Undo previous change, not needed. Fix header format.
728 (Accumulate_Checksum): Use System.CRC32.
729 (Initialize_Checksum): New procedure.
730 Remove other changes of previous revision.
732 * sinput-p.adb: Undo previous change, not needed.
734 * sinput.adb: Undo previous change, not needed.
736 * sinput-l.adb: Undo previous change, not needed.
738 * sinput.ads: Undo previous change, not needed. Keep only comment
739 on new checksum algorithm
741 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
742 Also remove a-tags and a-stream from GNAT sources.
744 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
746 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
748 2001-10-11 Geert Bosch <bosch@gnat.com>
750 * einfo.h: Regenerate.
752 * nmake.ads: Regenerate.
754 * nmake.adb: Regenerate.
756 * sinfo.h: Regenerate.
758 * treeprs.adb: Regenerate.
760 2001-10-10 Geert Bosch <bosch@gnat.com>
762 * gnat-style.texi: New file describing coding guidelines for Ada.
764 2001-10-10 Ed Schonberg <schonber@gnat.com>
766 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
769 2001-10-10 Geert Bosch <bosch@gnat.com>
771 * snames.ads: Add new names for project facility.
773 * snames.adb: Update to reflect snames.ads changes.
775 * snames.h: Update to reflect snames.ads changes.
777 2001-10-10 Vincent Celier <celier@gnat.com>
780 (Add_Switches): reflect the changes for the switches attributes
781 Default_Switches indexed by the programming language,
782 Switches indexed by the file name.
783 (Collect_Arguments_And_Compile): Idem.
784 Reflect the attribute name changes.
787 (Initialisation_Data): Change the names of some packages and
789 (Initialize): process case insensitive associative arrays.
792 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
795 (Parse_Attribute_Declaration): For case insensitive associative
796 arrays, set the index string to lower case.
799 Reflect the changes of the project attributes.
802 Replace Check_Naming_Scheme by Ada_Check and
803 Language_Independent_Check.
806 Replaced Check_Naming_Scheme by 2 procedures:
807 Ada_Check and Language_Independent_Check.
810 (Process_Declarative_Items): For case-insensitive associative
811 arrays, set the index string to lower case.
812 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
813 Prj.Nmsc.Check_Naming_Scheme.
816 (Case_Insensitive): New function
817 (Set_Case_Insensitive): New procedure
820 (Case_Insensitive): New function
821 (Set_Case_Insensitive): New procedure
822 (Project_Node_Record): New flag Case_Insensitive.
825 (Value_Of): new function to get the string value of a single
826 string variable or attribute.
829 (Value_Of): new function to get the string value of a single
830 string variable or attribute.
833 (Ada_Default_Spec_Suffix): New function
834 (Ada_Default_Impl_Suffix): New function
835 Change definitions of several constants to reflect
836 new components of record types.
839 (Naming_Data): Change several components to reflect new
840 elements of naming schemes.
841 (Project_Data): New flags Sources_Present and
842 Language_Independent_Checked.
843 (Ada_Default_Spec_Suffix): New function.
844 (Ada_Default_Impl_Suffix): New function.
847 Modification of predefined names for project manager: added
848 Implementation, Specification_Exceptions, Implementation_Exceptions,
849 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
850 Default_Switches, _Languages, Builder, Cross_Reference,
851 Finder. Removed Body_Part, Specification_Append, Body_Append,
852 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
855 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
858 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
859 not that it is Nil_Variable_Value.
861 * prj.ads: Add ??? for uncommented declarations
863 2001-10-10 Ed Schonberg <schonber@gnat.com>
865 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
866 constant, do not indicate possible modification, so that gigi can
867 treat it as a bona fide constant.
869 2001-10-10 Robert Dewar <dewar@gnat.com>
871 * sem_prag.adb: Add processing for pragma External.
873 * snames.ads: Add entry for pragma External.
875 * par-prag.adb: Add pragma External.
877 * snames.adb: Updated to match snames.ads.
879 2001-10-10 Ed Schonberg <schonber@gnat.com>
881 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
882 a dynamic task if the allocator appears in an indexed assignment
883 or selected component assignment.
885 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
886 For a dynamic task in an assignment statement, use target of
887 assignment to generate meaningful name.
889 2001-10-10 Ed Schonberg <schonber@gnat.com>
891 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
894 * einfo.ads: Body_Entity is also defined for generic package.
895 Documentation change only
897 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
898 others_choice for a discriminated component initialization,
899 convert discriminant references into the corresponding discriminals.
901 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
902 only if original type is private and expression has to be wrapped
906 (Apply_Constraint_Check): Do not perform length check
907 if expression is an aggregate with only an others_choice.
908 (Length_N_Cond): two references to the same in_parameter
909 (typically the discriminal in an init_proc) denote the same value.
910 Two useful optimization uncovered by bugfixes above.
912 2001-10-10 Robert Dewar <dewar@gnat.com>
914 * xeinfo.adb: Change int to char in translation of enumeration types.
915 This fixes a problem in the C representation of component alignment.
916 Add 2001 to copyright notice
918 2001-10-10 Richard Kenner <kenner@gnat.com>
920 * decl.c: (validate_size): Do check size of object of integral type
921 if it is a packed array type.
923 2001-10-10 Richard Kenner <kenner@gnat.com>
925 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
926 VAR_DECL for constant if not Is_Public but -O0.
928 2001-10-10 Richard Kenner <kenner@gnat.com>
930 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
932 2001-10-10 Geert Bosch <bosch@gnat.com>
934 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
935 use '/' as switch character, allowing for absolute file names.
937 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
939 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
942 2001-10-08 Geert Bosch <bosch@gnat.com>
944 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
945 Automatically build utilities when files need to be regenerated.
947 2001-10-08 Geert Bosch <bosch@gnat.com>
949 * xsnames.adb: New utility for updating snames.ads and snames.adb
951 2001-10-08 Zack Weinberg <zack@codesourcery.com>
953 * Make-lang.in (ADAFLAGS): Add -W -Wall.
954 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
955 (gnat1): Also depend on attribs.o.
956 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
957 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
958 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
959 (ADAFLAGS): Add -W -Wall.
960 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
963 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
964 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
965 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
966 Use $(ADAC), not $(CC), as compilation command.
968 (gnattools): Depend directly on tools to build, don't use
970 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
972 * einfo.h, sinfo.h: New files (autogenerated).
974 2001-10-08 Richard Henderson <rth@redhat.com>
976 * comperr.adb (Abort_In_Progress): New.
977 (Compiler_Abort): Use it to prevent recursion.
979 2001-10-08 Robert Dewar <dewar@gnat.com>
981 * atree.adb: Set Error_Posted in Error node, helps error recovery.
983 * par-endh.adb (Output_End_Expected): We should also not test
984 Error_Posted on the Error node, since now it is always set.
986 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
987 to help error recovery. Part of general work on 9407-004.
989 * par.adb: Add ??? for misuse of error
992 (Resolve): Defend against Error, fixes 9407-003.
993 (Resolve_Discrete_Subtype_Indication): Defend against Error.
995 * sinfo.ads (N_Error): Now has Etype field (which will be set
996 to Any_Type to help error recovery).
998 2001-10-08 Richard Kenner (kenner@gnat.com)
1000 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
1001 Consistently set MEM attributes from expression; fixes
1002 bootstrap failure on x86.
1004 2001-10-08 Geert Bosch (bosch@gnat.com)
1006 * 5oosinte.adb: Add 2001 to copyright notice.
1008 2001-10-08 Geert Bosch (bosch@gnat.com)
1010 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
1012 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
1014 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1016 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
1018 2001-10-05 Geert Bosch (bosch@gnat.com)
1020 * adaint.h: Small formatting fix.
1022 2001-10-04 Geert Bosch <bosch@gnat.com>
1024 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
1025 Arg is int, not FILE *, in dummy version of functions.
1027 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
1028 Arg is int, not FILE *.
1030 2001-10-04 Geert Bosch <bosch@gnat.com>
1032 * 3lsoccon.ads: Added file, missed with initial check ins.
1034 * 4lintnam.ads: Fix header format.
1035 Change Linux to GNU/Linux.
1037 * 5iosinte.adb: Change Linux to GNU/Linux.
1039 * 5iosinte.ads: Change Linux to GNU/Linux.
1041 * 5itaprop.adb: Change Linux to GNU/Linux.
1043 * 5itaspri.ads: Change Linux to GNU/Linux.
1044 Update copyright notice.
1046 * 5lintman.adb: Change Linux to GNU/Linux.
1048 * 5lml-tgt.adb: Change Linux to GNU/Linux.
1050 * 5losinte.ads: Change Linux to GNU/Linux.
1052 * 5lsystem.ads: Change Linux to GNU/Linux.
1054 * 5qosinte.adb: Change Linux to GNU/Linux.
1056 * 5qosinte.ads: Change Linux to GNU/Linux.
1058 * 5qparame.ads: Change Linux to GNU/Linux.
1060 * 5qtaprop.adb: Change Linux to GNU/Linux.
1062 * 5qtaspri.ads: Change Linux to GNU/Linux.
1063 Add 2001 to copyright notice.
1065 * 5vintman.ads: Change Linux to GNU/Linux.
1066 Fix header format. Add 2001 to copyright notice.
1068 * g-soccon.ads: Change Linux to GNU/Linux.
1070 * g-trasym.ads: Change Linux to GNU/Linux.
1071 Add 2001 to copyright notice.
1073 * memtrack.adb: Change Linux to GNU/Linux.
1075 * s-intman.ads: Change Linux to GNU/Linux.
1076 Add 2001 to copyright notice. Fix header format.
1078 * s-stache.adb: Change Linux to GNU/Linux.
1080 * adaint.c: Change Linux to GNU/Linux.
1082 * cio.c: Change Linux to GNU/Linux.
1084 * cstreams.c: Change Linux to GNU/Linux.
1086 * init.c: Change Linux to GNU/Linux.
1088 * gmem.c: Change Linux to GNU/Linux.
1090 * tracebak.c: Change Linux to GNU/Linux.
1093 2001-10-02 Geert Bosch <bosch@gnat.com>
1095 * misc.c (insert_default_attributes): Add dummy version.