1 2001-11-27 Laurent Guerby <guerby@acm.org>
3 * Makefile.in: Regenerate Ada dependencies.
5 2001-11-26 Richard Henderson <rth@redhat.com>
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.
11 2001-11-25 Laurent Guerby <guerby@acm.org>
13 * sysdep.c (rts_get_*): Fix style.
15 2001-11-19 Laurent Guerby <guerby@acm.org>
17 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
18 since it is of no apparent use and cause warnings.
20 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
22 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
24 (gnat_init): Don't return NULL.
25 (finish_parse): Remove.
27 2001-11-17 Laurent Guerby <guerby@acm.org>
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.
39 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
43 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
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.
49 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
51 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
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,
58 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
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.
65 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
67 * misc.c: Include langhooks-def.h.
68 * Makefile.in: Update.
70 2001-10-30 Robert Dewar <dewar@gnat.com>
73 (Check_Identifier): Rewrite circuit to be compatible with use of letters
74 in the upper half of ASCII.
75 (Check_Identifier): Minor reformatting
77 2001-10-30 Geert Bosch <bosch@gnat.com>
79 * (Associated_Node, Set_Associated_Node): Do not check for
82 2001-10-30 Robert Dewar <dewar@gnat.com>
84 * a-reatim.ads: Minor reformatting
86 2001-10-30 Robert Dewar <dewar@gnat.com>
88 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
89 undocumented declarations.
91 2001-10-30 Pascal Obry <obry@gnat.com>
93 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
94 to the binder and linker.
97 * mdll.ads: Fix layout. Update copyright notice.
99 * mdll.adb: Fix layout. Update copyright notice.
101 2001-10-30 Robert Dewar <dewar@gnat.com>
103 * usage.adb: Minor fix to output for -gnaty.
105 2001-10-30 Ed Schonberg <schonber@gnat.com>
107 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
108 to accommodate all its possible values.
110 * a-reatim.adb (Split): Special-case handling of Time_Span_First
111 and of small absolute values of T.
113 2001-10-30 Richard Kenner <kenner@gnat.com>
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.
119 2001-10-30 Geert Bosch <bosch@gnat.com>
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.
124 2001-10-30 Robert Dewar <dewar@gnat.com>
126 * bindusg.adb: Undocument -f switch.
128 * gnatcmd.adb: Remove /FULL_ELABORATION.
130 * opt.ads (Force_RM_Elaboration_Order): Document that this is
133 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
135 * gnatbind.adb: Minor update of warning msg.
137 2001-10-30 Vincent Celier <celier@gnat.com>
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
144 2001-10-30 Geert Bosch <bosch@gnat.com>
146 * decl.c: Minor whitespace fixes.
148 2001-10-30 Richard Kenner <kenner@gnat.com>
150 * utils2.c (build_allocator): Test for SIZE overflow in array case too
152 2001-10-30 Geert Bosch <bosch@gnat.com>
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.
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.
163 2001-10-30 Robert Dewar <dewar@gnat.com>
165 * lib.adb: Minor reformatting
167 * s-taprop.ads: Minor reformatting
169 2001-10-29 Laurent Guerby <guerby@acm.org>
172 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
174 (_gnat_error_handler): Make MSG const.
176 2001-10-29 Richard Kenner <kenner@gnat.com>
178 * sysdep.c: Fix localtime_r problem on LynxOS.
179 Also remove #elif to avoid warnings.
181 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
184 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
186 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
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.
199 2001-10-27 Laurent Guerby <guerby@acm.org>
201 * trans.c (gigi): Fix non determinism leading to bootstrap
202 comparison failures for debugging information.
204 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
206 * gnat_rm.texi: Use @./@: where appropriate.
208 2001-10-26 Robert Dewar <dewar@gnat.com>
210 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
212 2001-10-26 Richard Kenner <kenner@gnat.com>
214 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
216 2001-10-26 Richard Kenner <kenner@gnat.com>
218 * decl.c (validate_size): Modify message for bad size to avoid
219 implication that compiler is modifying the size.
221 2001-10-26 Robert Dewar <dewar@gnat.com>
223 * prj-util.adb: Minor reformatting. Fix bad header format.
225 2001-10-26 Robert Dewar <dewar@gnat.com>
227 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
229 * sinfo.ads: Clarify use of Associated_Node (documentation only).
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.
235 2001-10-26 Joel Brobecker <brobecke@gnat.com>
237 * 5zosinte.ads (null_pthread): new constant.
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.
247 (Resume_All_Tasks): Lock the tasks list before using it.
248 (Suspend_All_Tasks): ditto.
250 2001-10-26 Richard Kenner <kenner@gnat.com>
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.
256 * trans.c (process_freeze_entity, process_type):
257 Call update_pointer_to on main variant.
259 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
260 If main variant, update all other variants.
262 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
265 2001-10-26 Robert Dewar <dewar@gnat.com>
267 * prj-util.adb: Minor reformatting
269 2001-10-26 Robert Dewar <dewar@gnat.com>
271 * prj-util.adb: Minor reformatting
273 2001-10-26 Robert Dewar <dewar@gnat.com>
275 * prj-attr.adb: Minor reformatting throughout
277 2001-10-26 Robert Dewar <dewar@gnat.com>
279 * prj-attr.ads: Minor reformatting
280 Add ??? comment (this whole spec has almost no comments)
282 2001-10-26 Vincent Celier <celier@gnat.com>
284 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
285 ("//") that precede the drive letter on Interix.
287 2001-10-26 Geert Bosch <bosch@gnat.com>
289 * gnat_rm.texi: Add GNAT Reference Manual.
291 2001-10-25 Robert Dewar <dewar@gnat.com>
293 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
294 is Error. Similar change for other renaming cases.
296 2001-10-25 Robert Dewar <dewar@gnat.com>
298 * s-atacco.ads: Add pragma Inline_Always for functions.
299 Fix header format. Add copyright 2001
301 2001-10-25 Ed Schonberg <schonber@gnat.com>
303 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
304 return Error rather than Empty so that analysis can proceed.
306 2001-10-25 Ed Schonberg <schonber@gnat.com>
308 * sem_util.adb (Enter_Name): better handling of cascaded error
309 messages when a unit appears in its own context.
311 2001-10-25 Ed Schonberg <schonber@gnat.com>
313 * sem_util.adb (Defining_Entity): in case of error, attach created
314 entity to specification, so that semantic analysis can proceed.
316 2001-10-25 Robert Dewar <dewar@gnat.com>
319 (Defining_Entity): Deal with Error.
320 (Process_End_Label): Deal with bad end label for.
322 2001-10-25 Ed Schonberg <schonber@gnat.com>
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.
327 2001-10-25 Ed Schonberg <schonber@gnat.com>
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.
332 2001-10-25 Geert Bosch <bosch@gnat.com>
334 * 4gintnam.ads: fix header format.
336 2001-10-25 Ed Schonberg <schonber@gnat.com>
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.
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
346 2001-10-25 Ed Schonberg <schonber@gnat.com>
348 * sem_res.adb (Resolve): special-case resolution of Null in an
349 instance or an inlined body to avoid view conflicts.
351 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
352 compatibility by retrieving the access type of the generic copy.
354 2001-10-25 Robert Dewar <dewar@gnat.com>
357 (Analyze_Number_Declaration): Handle error expression.
358 (Signed_Integer_Type_Declaration): Handle error bound.
359 (Analyze_Subtype_Indication): Handle error range.
361 * sem_util.adb (Get_Index_Bounds): Check for Error.
363 2001-10-25 Robert Dewar <dewar@gnat.com>
365 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
368 2001-10-25 Pascal Obry <obry@gnat.com>
370 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
371 mode case for ALLOC case.
373 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
374 all platforms. Improvement of last change.
376 2001-10-25 Robert Dewar <dewar@gnat.com>
378 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
380 2001-10-25 Geert Bosch <bosch@gnat.com>
382 * osint.adb (Is_Relative): Remove duplicate.
384 2001-10-25 Pascal Obry <obry@gnat.com>
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.
390 * osint.adb: Minor reformatting
392 * osint.adb (Is_Relative): implementation using
393 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
395 2001-10-25 Pascal Obry <obry@gnat.com>
397 * g-dirope.adb (Basename): correctly compute offset between the
398 original Path and the translated one.
400 * g-dirope.adb: (Base_Name): add some comments.
402 2001-10-25 Robert Dewar <dewar@gnat.com>
404 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
405 in HIE mode, avoids compilation abandoned message
407 * exp_imgv.adb: Correct typo in previous change
409 * exp_imgv.adb: Correct typo in previous change (not my day!)
411 2001-10-25 Robert Dewar <dewar@gnat.com>
413 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
415 2001-10-25 Pascal Obry <obry@gnat.com>
417 * g-awk.ads: Move all pragma inlines next to the routine
418 declarations. This is more uniform with other GNAT spec.
420 2001-10-22 Geert Bosch <bosch@gnat.com>
422 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
424 2001-10-19 Geert Bosch <bosch@gnat.com>
426 * Makefile.in (tools, gnattools): Remove gnatmem.
428 2001-10-17 Richard Henderson <rth@redhat.com>
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.
436 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
438 * trans.c (tree_transform): Adjust to recent change in
439 expand_asm_operands to implement named asm operands.
441 2001-10-11 Ed Schonberg <schonber@gnat.com>
443 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
444 renaming of discriminant for mutable record type.
446 2001-10-11 Robert Dewar <dewar@gnat.com>
448 * validsw.adb: Properly save -gnatVn status.
450 2001-10-11 Robert Dewar <dewar@gnat.com>
452 * usage.adb: Add lines for V switch.
454 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
455 (/VALIDITY_CHECKING).
457 2001-10-11 Ed Schonberg <schonber@gnat.com>
459 * sem_type.adb (Add_One_Interp): an operator for a type declared in
460 an extension of System is known to be visible.
462 2001-10-11 Ed Schonberg <schonber@gnat.com>
464 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
465 properly. Fixes regression on ACATS C34005G.
467 2001-10-11 Robert Dewar <dewar@gnat.com>
469 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
470 loop in generic instance, since this is likely not very useful.
472 2001-10-11 Robert Dewar <dewar@gnat.com>
474 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
475 the error message for high integrity mode.
477 * rtsfind.adb (RTE): Give message if we try to find an entity that
478 is not available in high integrity mode.
481 (OK_To_Use_In_HIE_Mode): New array.
482 (RTE): May return Empty in high integrity mode.
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.
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.
491 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
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.
497 2001-10-11 Pascal Obry <obry@gnat.com>
499 * impunit.adb: Add GNAT.CRC32.
501 2001-10-11 Ed Schonberg <schonber@gnat.com>
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.
507 2001-10-11 Ed Schonberg <schonber@gnat.com>
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.
512 2001-10-11 Ed Schonberg <schonber@gnat.com>
514 * exp_ch7.adb (Make_Transient_Block): if statement is within
515 exception handler, always use new transient scope to place Clean
518 2001-10-11 Pascal Obry <obry@gnat.com>
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
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.
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.
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.
543 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
544 is what this variable will store.
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.
552 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
553 now and not anymore a simple checksum.
555 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
558 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
561 (Restore_Scan_State): rename Checksum to CRC.
562 (Save_Scan_State): idem.
566 (Checksum): rename to CRC.
567 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
569 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
570 GNAT.CRC32). Update copyright notice.
572 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
573 GNAT.CRC32). Update copyright notice.
576 (Accumulate_Checksum): removed.
577 (Update): new procedure. Add a wide-character into the CRC.
580 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
581 (Load_File): fix initialization of S (change Source_Checksum to
584 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
585 Source_CRC in S initialization.
587 * sinput.adb (Source_Checksum): renamed to Source_CRC.
589 * sinput.ads (Source_Checksum): renamed to Source_CRC.
590 Update comments for the CRC.
592 * types.adb (Hex): Use lowercase for the letter part.
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).
605 * gnatvsn.ads (Library_Version): changed to 3.15a.
607 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
610 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
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.
617 * ali-util.ads: Redo changes of previous revision to continue to use
618 the word Checksum. Add 2001 to copyright notice.
620 * ali.adb: Undo some of previous changes, not needed.
621 Keep the change for lower case letters in the checksum.
623 * ali.ads: Undo previous change not needed.
625 * bcheck.adb: Undo most of previous change, not needed.
626 But do use Checksums_Match for checksum comparison.
628 * gnatls.adb: Undo most of previous change, not needed.
629 But do use Checksums_Match for comparing checksums.
631 * lib-load.adb: Undo previous change, not needed.
633 * lib-writ.adb: Undo previous change, not needed.
635 * lib-writ.ads: Document that checksums use lower case,
636 not upper case letters.
638 * scans.adb: Undo previous change, not needed
640 * scans.ads: Undo previous change, not needed.
642 * scn-nlit.adb: Undo previous changes, not needed.
644 * scn-slit.adb: Undo previous change, not needed. Fix header format.
647 (Accumulate_Checksum): Use System.CRC32.
648 (Initialize_Checksum): New procedure.
649 Remove other changes of previous revision.
651 * sinput-p.adb: Undo previous change, not needed.
653 * sinput.adb: Undo previous change, not needed.
655 * sinput-l.adb: Undo previous change, not needed.
657 * sinput.ads: Undo previous change, not needed. Keep only comment
658 on new checksum algorithm
660 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
661 Also remove a-tags and a-stream from GNAT sources.
663 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
665 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
667 2001-10-11 Geert Bosch <bosch@gnat.com>
669 * einfo.h: Regenerate.
671 * nmake.ads: Regenerate.
673 * nmake.adb: Regenerate.
675 * sinfo.h: Regenerate.
677 * treeprs.adb: Regenerate.
679 2001-10-10 Geert Bosch <bosch@gnat.com>
681 * gnat-style.texi: New file describing coding guidelines for Ada.
683 2001-10-10 Ed Schonberg <schonber@gnat.com>
685 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
688 2001-10-10 Geert Bosch <bosch@gnat.com>
690 * snames.ads: Add new names for project facility.
692 * snames.adb: Update to reflect snames.ads changes.
694 * snames.h: Update to reflect snames.ads changes.
696 2001-10-10 Vincent Celier <celier@gnat.com>
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.
706 (Initialisation_Data): Change the names of some packages and
708 (Initialize): process case insensitive associative arrays.
711 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
714 (Parse_Attribute_Declaration): For case insensitive associative
715 arrays, set the index string to lower case.
718 Reflect the changes of the project attributes.
721 Replace Check_Naming_Scheme by Ada_Check and
722 Language_Independent_Check.
725 Replaced Check_Naming_Scheme by 2 procedures:
726 Ada_Check and Language_Independent_Check.
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.
735 (Case_Insensitive): New function
736 (Set_Case_Insensitive): New procedure
739 (Case_Insensitive): New function
740 (Set_Case_Insensitive): New procedure
741 (Project_Node_Record): New flag Case_Insensitive.
744 (Value_Of): new function to get the string value of a single
745 string variable or attribute.
748 (Value_Of): new function to get the string value of a single
749 string variable or attribute.
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.
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.
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,
774 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
777 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
778 not that it is Nil_Variable_Value.
780 * prj.ads: Add ??? for uncommented declarations
782 2001-10-10 Ed Schonberg <schonber@gnat.com>
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.
788 2001-10-10 Robert Dewar <dewar@gnat.com>
790 * sem_prag.adb: Add processing for pragma External.
792 * snames.ads: Add entry for pragma External.
794 * par-prag.adb: Add pragma External.
796 * snames.adb: Updated to match snames.ads.
798 2001-10-10 Ed Schonberg <schonber@gnat.com>
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.
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.
808 2001-10-10 Ed Schonberg <schonber@gnat.com>
810 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
813 * einfo.ads: Body_Entity is also defined for generic package.
814 Documentation change only
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.
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
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.
831 2001-10-10 Robert Dewar <dewar@gnat.com>
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
837 2001-10-10 Richard Kenner <kenner@gnat.com>
839 * decl.c: (validate_size): Do check size of object of integral type
840 if it is a packed array type.
842 2001-10-10 Richard Kenner <kenner@gnat.com>
844 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
845 VAR_DECL for constant if not Is_Public but -O0.
847 2001-10-10 Richard Kenner <kenner@gnat.com>
849 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
851 2001-10-10 Geert Bosch <bosch@gnat.com>
853 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
854 use '/' as switch character, allowing for absolute file names.
856 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
858 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
861 2001-10-08 Geert Bosch <bosch@gnat.com>
863 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
864 Automatically build utilities when files need to be regenerated.
866 2001-10-08 Geert Bosch <bosch@gnat.com>
868 * xsnames.adb: New utility for updating snames.ads and snames.adb
870 2001-10-08 Zack Weinberg <zack@codesourcery.com>
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;
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.
887 (gnattools): Depend directly on tools to build, don't use
889 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
891 * einfo.h, sinfo.h: New files (autogenerated).
893 2001-10-08 Richard Henderson <rth@redhat.com>
895 * comperr.adb (Abort_In_Progress): New.
896 (Compiler_Abort): Use it to prevent recursion.
898 2001-10-08 Robert Dewar <dewar@gnat.com>
900 * atree.adb: Set Error_Posted in Error node, helps error recovery.
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.
905 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
906 to help error recovery. Part of general work on 9407-004.
908 * par.adb: Add ??? for misuse of error
911 (Resolve): Defend against Error, fixes 9407-003.
912 (Resolve_Discrete_Subtype_Indication): Defend against Error.
914 * sinfo.ads (N_Error): Now has Etype field (which will be set
915 to Any_Type to help error recovery).
917 2001-10-08 Richard Kenner (kenner@gnat.com)
919 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
920 Consistently set MEM attributes from expression; fixes
921 bootstrap failure on x86.
923 2001-10-08 Geert Bosch (bosch@gnat.com)
925 * 5oosinte.adb: Add 2001 to copyright notice.
927 2001-10-08 Geert Bosch (bosch@gnat.com)
929 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
931 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
933 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
935 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
937 2001-10-05 Geert Bosch (bosch@gnat.com)
939 * adaint.h: Small formatting fix.
941 2001-10-04 Geert Bosch <bosch@gnat.com>
943 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
944 Arg is int, not FILE *, in dummy version of functions.
946 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
947 Arg is int, not FILE *.
949 2001-10-04 Geert Bosch <bosch@gnat.com>
951 * 3lsoccon.ads: Added file, missed with initial check ins.
953 * 4lintnam.ads: Fix header format.
954 Change Linux to GNU/Linux.
956 * 5iosinte.adb: Change Linux to GNU/Linux.
958 * 5iosinte.ads: Change Linux to GNU/Linux.
960 * 5itaprop.adb: Change Linux to GNU/Linux.
962 * 5itaspri.ads: Change Linux to GNU/Linux.
963 Update copyright notice.
965 * 5lintman.adb: Change Linux to GNU/Linux.
967 * 5lml-tgt.adb: Change Linux to GNU/Linux.
969 * 5losinte.ads: Change Linux to GNU/Linux.
971 * 5lsystem.ads: Change Linux to GNU/Linux.
973 * 5qosinte.adb: Change Linux to GNU/Linux.
975 * 5qosinte.ads: Change Linux to GNU/Linux.
977 * 5qparame.ads: Change Linux to GNU/Linux.
979 * 5qtaprop.adb: Change Linux to GNU/Linux.
981 * 5qtaspri.ads: Change Linux to GNU/Linux.
982 Add 2001 to copyright notice.
984 * 5vintman.ads: Change Linux to GNU/Linux.
985 Fix header format. Add 2001 to copyright notice.
987 * g-soccon.ads: Change Linux to GNU/Linux.
989 * g-trasym.ads: Change Linux to GNU/Linux.
990 Add 2001 to copyright notice.
992 * memtrack.adb: Change Linux to GNU/Linux.
994 * s-intman.ads: Change Linux to GNU/Linux.
995 Add 2001 to copyright notice. Fix header format.
997 * s-stache.adb: Change Linux to GNU/Linux.
999 * adaint.c: Change Linux to GNU/Linux.
1001 * cio.c: Change Linux to GNU/Linux.
1003 * cstreams.c: Change Linux to GNU/Linux.
1005 * init.c: Change Linux to GNU/Linux.
1007 * gmem.c: Change Linux to GNU/Linux.
1009 * tracebak.c: Change Linux to GNU/Linux.
1012 2001-10-02 Geert Bosch <bosch@gnat.com>
1014 * misc.c (insert_default_attributes): Add dummy version.