1 2001-12-14 Vincent Celier <celier@gnat.com>
3 * osint.adb(Create_Debug_File): When an object file is specified,
4 put the .dg file in the same directory as the object file.
6 2001-12-14 Robert Dewar <dewar@gnat.com>
8 * osint.adb: Minor reformatting
10 * lib-xref.adb (Output_Instantiation): New procedure to generate
11 instantiation references.
13 * lib-xref.ads: Add documentation of handling of generic references.
15 * ali.adb (Read_Instantiation_Ref): New procedure to read
16 instantiation references
18 * ali.ads: Add spec for storing instantiation references
20 * bindusg.adb: Minor reformatting
22 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
24 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
26 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
28 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32 Add 2001 to copyright date
33 Add entry for Latin-5 (Cyrillic ISO-8859-5)
35 2001-12-14 Matt Gingell <gingell@gnat.com>
37 * adaint.c: mktemp is a macro on Lynx and can not be used as an
40 2001-12-14 Richard Kenner <kenner@gnat.com>
42 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
43 if operand is CONSTRUCTOR.
45 2001-12-14 Ed Schonberg <schonber@gnat.com>
47 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
48 before emiting check on right-hand side, so that exception information
51 2001-12-14 Richard Kenner <kenner@gnat.com>
53 * utils.c (create_var_decl): Throw away initializing expression
54 if just annotating types and non-constant.
56 2001-12-14 Vincent Celier <celier@gnat.com>
58 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
61 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
63 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
65 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
67 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
69 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
71 * ChangeLog: Remove piece of diff output.
73 2001-12-14 Geert Bosch <bosch@gnat.com>
75 * config-lang.in: Update copyright notice
77 * layout.adb: Remove commented out code.
79 * mdllfile.ads: Update copyright notice. Fix header format.
81 * sem_case.ads: Likewise.
83 * sem_ch3.adb: Minor reformatting.
85 2001-12-12 Geert Bosch <bosch@gnat.com>
87 * freeze.ads: Update copyright date.
89 * g-comlin.ads: Minor reformatting.
91 * gnat-style.texi: Fix typo.
93 2001-12-12 Geert Bosch <bosch@gnat.com>
95 * einfo.h: Regenerate.
97 2001-12-12 Ed Schonberg <schonber@gnat.com>
99 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
100 on known node types, rather than untyped fields. Further cleanups.
102 2001-12-12 Robert Dewar <dewar@gnat.com>
105 (Save_Entity_Descendant): Minor comment update.
106 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
107 of an N_Attribute_Reference node. As per note below, this does not
108 eliminate need for Associated_Node in attribute ref nodes.
109 (Associated_Node): Documentation explicitly mentions attribute
110 reference nodes, since this field is used in such nodes.
112 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
114 2001-12-12 Robert Dewar <dewar@gnat.com>
116 * s-stalib.adb: Add more comments on with statements being needed
118 * par-ch12.adb: Minor reformatting
120 * prj-dect.ads: Fix copyright header
122 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
123 inputs fit in 32 bits, but the result still overflows.
125 * s-fatgen.ads: Minor comment improvement
127 2001-12-12 Ed Schonberg <schonber@gnat.com>
129 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
130 formal derived type, look for an inherited component from the full
131 view of the parent, if any.
133 2001-12-12 Robert Dewar <dewar@gnat.com>
135 * checks.ads (Apply_Alignment_Check): New procedure.
137 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
138 ensure that the alignment of objects with address clauses is
139 appropriate, and raise PE if not.
141 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
142 Exp_Pakd.Known_Aligned_Enough
144 * mdllfile.ads: Minor reformatting
146 * mlib-fil.ads: Minor reformatting
148 2001-12-12 Ed Schonberg <schonber@gnat.com>
150 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
151 fix to any component reference if enclosing record has non-standard
154 2001-12-12 Vincent Celier <celier@gnat.com>
156 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
159 2001-12-12 Ed Schonberg <schonber@gnat.com>
161 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
164 2001-12-12 Robert Dewar <dewar@gnat.com>
166 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
168 2001-12-12 Emmanuel Briot <briot@gnat.com>
170 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
171 and it adds dependencies to system.io.
173 2001-12-12 Pascal Obry <obry@gnat.com>
175 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
178 2001-12-11 Ed Schonberg <schonber@gnat.com>
180 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
181 that is the parent of other generics, the instance body replaces the
182 instance node. Retrieve the instance of the spec, which is the one
183 that is visible in clients and within the body.
185 2001-12-11 Vincent Celier <celier@gnat.com>
187 * gnatmain.adb: Initial version.
189 * gnatmain.ads: Initial version.
191 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
193 * snames.adb: Updated to match snames.ads.
195 * snames.ads: Added Gnatstub.
197 2001-12-11 Vincent Celier <celier@gnat.com>
199 * prj-attr.adb (Initialization_Data): Change name from
202 2001-12-11 Emmanuel Briot <briot@gnat.com>
204 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
205 + and * applied to backslashed expressions like \r.
207 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
209 * g-os_lib.ads: String_List type added, Argument_List type is now
210 subtype of String_List.
212 2001-12-11 Robert Dewar <dewar@gnat.com>
214 * g-os_lib.ads: Change copyright to FSF
215 Add comments for String_List type
217 2001-12-11 Vincent Celier <celier@gnat.com>
219 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
220 string to the buffer).
222 2001-12-11 Ed Schonberg <schonber@gnat.com>
224 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
227 * sem_attr.adb: Simplify previous fix for Address.
228 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
229 to avoid anomalies where the bound of the type appears to raise
232 2001-12-11 Robert Dewar <dewar@gnat.com>
234 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
237 2001-12-11 Ed Schonberg <schonber@gnat.com>
239 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
240 renamed unit before checking for recursive instantiations.
242 2001-12-11 Emmanuel Briot <briot@gnat.com>
244 * prj.ads: Add comments for some of the fields.
246 2001-12-11 Robert Dewar <dewar@gnat.com>
248 * lib-xref.adb (Output_Refs): Don't output type references outside
249 the main unit if they are not otherwise referenced.
251 2001-12-11 Ed Schonberg <schonber@gnat.com>
253 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
254 code and diagnose additional illegal uses
256 * sem_util.adb (Is_Object_Reference): An indexed component is an
257 object only if the prefix is.
259 2001-12-11 Vincent Celier <celier@gnat.com>
261 * g-diopit.adb: Initial version.
263 * g-diopit.ads: Initial version.
266 (Expand_Path): Avoid use of Unbounded_String
267 (Find, Wildcard_Iterator): Moved to child package Iteration
269 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
271 2001-12-11 Robert Dewar <dewar@gnat.com>
273 * sem_attr.adb: Minor reformatting
275 2001-12-11 Ed Schonberg <schonber@gnat.com>
277 * sem_ch3.adb: Clarify some ???.
279 2001-12-11 Robert Dewar <dewar@gnat.com>
281 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
282 Exp_Pakd.Known_Aligned_Enough
284 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
285 version is moved to Exp_Ch13.
287 2001-12-11 Robert Dewar <dewar@gnat.com>
289 * einfo.ads: Minor reformatting
291 * exp_ch5.adb: Add comment for previous.change
293 * ali.adb: New interface for extended typeref stuff.
295 * ali.ads: New interface for typeref stuff.
297 * checks.adb (Apply_Alignment_Check): New procedure.
299 * debug.adb: Add -gnatdM for modified ALI output
301 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
303 * lib-xref.adb: Extend generation of <..> notation to cover
304 subtype/object types. Note that this is a complete rewrite,
305 getting rid of the very nasty quadratic algorithm previously
306 used for derived type output.
308 * lib-xref.ads: Extend description of <..> notation to cover
309 subtype/object types. Uses {..} for these other cases.
310 Also use (..) for pointer types.
312 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
314 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
315 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
317 2001-12-11 Vincent Celier <celier@gnat.com>
320 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
321 Changed /BIND_ONLY to /ACTIONS=BIND
322 Changed /LINK_ONLY to /ACTIONS=LINK
324 2001-12-11 Ed Schonberg <schonber@gnat.com>
326 * sem_ch8.adb (Find_Selected_Component): improved search for a
327 candidate package in case of error.
329 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
330 chain back on scope stack before reinstalling use clauses.
332 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
333 is enabled, do not kill the code for the condition, to preserve
336 2001-12-11 Robert Dewar <dewar@gnat.com>
338 * checks.adb (Insert_Valid_Check): Apply validity check to expression
339 of conversion, not to result of conversion.
341 2001-12-11 Ed Schonberg <schonber@gnat.com>
343 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
344 before freezing parent. If the declarations are mutually recursive,
345 an access to the current record type may be frozen before the
346 derivation is complete.
348 2001-12-05 Vincent Celier <celier@gnat.com>
350 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
351 -c /COMPILE_ONLY, -l /LINK_ONLY
354 (Bind_Only): New Flag
355 (Link_Only): New flag
357 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
360 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
363 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
364 (Gnatmake): Set the step flags. Only perform a step if the
365 corresponding step flag is True.
366 (Scan_Make_Arg): Reset the bind and link step flags when -u
367 or -gnatc has been specified.
369 2001-12-05 Ed Schonberg <schonber@gnat.com>
371 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
372 get bounds from right operand.
374 * sem_eval.adb: Minor reformatting
376 * exp_util.adb (Make_Literal_Range): use bound of literal rather
377 than Index'First, its lower bound may be different from 1.
379 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
382 2001-12-05 Vincent Celier <celier@gnat.com>
384 * prj-nmsc.adb Minor reformatting
386 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
387 set and libraries are not supported.
389 2001-12-05 Ed Schonberg <schonber@gnat.com>
391 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
392 private view explicitly, so the back-end can treat as a global
395 2001-12-05 Ed Schonberg <schonber@gnat.com>
397 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
398 unit, always replace instance node with new body, for ASIS use.
400 2001-12-05 Vincent Celier <celier@gnat.com>
402 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
403 libraries are not supported and both attributes Library_Name and
404 Library_Dir are specified.
406 * prj-proc.adb (Expression): Set location of Result to location of
409 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
410 (prj-nmsc is now importing MLib.Tgt)
412 * prj-proc.adb: Put the change indicated above that was forgotten.
414 2001-12-05 Robert Dewar <dewar@gnat.com>
416 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
418 2001-12-05 Ed Schonberg <schonber@gnat.com>
420 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
421 constraint, introduce explicit subtype declaration and derive from it.
423 * sem_ch3.adb: Minor reformatting
425 2001-12-05 Robert Dewar <dewar@gnat.com>
427 * checks.adb (Determine_Range): Increase cache size for checks.
430 * exp_ch6.adb: Minor reformatting
431 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
432 a parameter whose root type is System.Address, since treating such
433 subprograms as pure in the code generator is almost surely a mistake
434 that will lead to unexpected results.
436 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
437 change handling of conversions.
439 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
441 2001-12-05 Ed Schonberg <schonber@gnat.com>
443 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
444 aggregate with static wrong size, attach generated Raise node to
447 2001-12-05 Robert Dewar <dewar@gnat.com>
449 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
450 Fixes compilation abandoned bomb in B24009B.
452 2001-12-05 Ed Schonberg <schonber@gnat.com>
455 Document use of Associated_Node on Selected_Components.
456 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
457 to clarify use of untyped descendant fields.
459 2001-12-05 Robert Dewar <dewar@gnat.com>
461 * prj-dect.ads: Add ??? comment
462 Add 2001 to copyright notice (was not done in after all)
464 * prj-part.adb: Minor reformatting. Reword one awkward error message.
466 * prj.ads: Minor reformatting throughout, and add some ??? comments
468 * snames.ads: Minor reformatting
470 2001-12-05 Geert Bosch <bosch@gnat.com>
472 * snames.adb: Autoupdate
474 2001-12-05 Vincent Celier <celier@gnat.com>
476 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
478 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
480 * prj-env.adb: Minor comment changes (modifying -> extends).
482 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
484 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
487 * prj.adb (Initialize): Change Modifying to Extends.
489 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
491 * prj.ads: Minor comment change (Modifying -> extending).
493 * snames.ads: Change modifying to extends.
495 2001-12-05 Robert Dewar <dewar@gnat.com>
497 * sem_warn.adb: Remove stuff for conditionals, we are not going to
500 * sem_warn.ads: Remove stuff for conditionals, we are not going to
501 do this after all. Add 2001 to copyright notice
503 2001-12-04 Geert Bosch <bosch@gnat.com>
505 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
507 2001-12-04 Robert Dewar <dewar@gnat.com>
509 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
510 location if we already have errors. Stops some cases of cascaded
513 * errout.adb: Improve comment.
515 2001-12-04 Robert Dewar <dewar@gnat.com>
518 (Analyze_Formal_Type_Definition): Defend against Error.
519 (Analyze_Formal_Subprogram): Defend against Error.
521 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
522 remove following semicolon if present. Removes cascaded error.
524 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
527 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
529 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
530 Fixes PIWG E tests (which have to be run with -gnatL).
532 2001-12-04 Robert Dewar <dewar@gnat.com>
534 * einfo.ads: Minor reformatting
536 2001-12-04 Ed Schonberg <schonber@gnat.com>
538 * einfo.ads: Block_Node points to the identifier of the block, not to
539 the block node itself, to preserve the link when the block is
540 rewritten, e.g. within an if-statement with a static condition.
542 * inline.adb (Cleanup_Scopes): recover block statement from block
543 entity using new meaning of Block_Node.
545 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
546 identifier of block node, rather than to node itself.
548 2001-12-04 Gary Dismukes <dismukes@gnat.com>
551 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
552 (Discrimify): Go back to setting the Etypes of the selected component
553 because the Vname component does not exist at this point and will
554 fail name resolution. Also set Analyzed.
555 Remove with and use of Sem_Res.
557 2001-12-04 Arnaud Charlet <charlet@gnat.com>
559 * Makefile.in: (HIE_SOURCES): add s-fat*.
561 2001-12-04 Robert Dewar <dewar@gnat.com>
564 (Compile_Time_Known_Attribute): New procedure.
565 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
568 2001-12-04 Ed Schonberg <schonber@gnat.com>
570 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
571 processing discriminants to diagnose illegal default values.
573 2001-12-04 Ed Schonberg <schonber@gnat.com>
575 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
576 access discriminant within a type extension that constrains its
577 parent discriminants.
579 2001-12-04 Ed Schonberg <schonber@gnat.com>
581 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
582 is malformed, use instance of Any_Id to allow analysis to proceed.
584 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
585 type definition is illegal.
586 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
589 2001-12-04 Ed Schonberg <schonber@gnat.com>
591 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
594 2001-12-04 Robert Dewar <dewar@gnat.com>
596 * errout.adb: Minor reformatting
598 2001-12-04 Robert Dewar <dewar@gnat.com>
600 * exp_util.adb: Minor reformatting from last change
602 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
603 which is a rewriting of an expression, traverse the original
604 expression to remove warnings that may have been posted on it.
606 2001-12-04 Ed Schonberg <schonber@gnat.com>
608 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
609 record that has other packed components.
611 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
613 * adaint.c: Minor cleanups.
615 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
617 * adaint.c: Do not use utime.h on vxworks.
619 2001-12-04 Arnaud Charlet <charlet@gnat.com>
621 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
622 more confusion than it solves.
624 2001-12-04 Geert bosch <bosch@gnat.com>
626 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
628 2001-12-04 Geert Bosch <bosch@gnat.com>
630 * Makefile.in (update-sources): New target.
631 For use by gcc_release script.
633 2001-12-04 Ed Schonberg <schonber@gnat.com>
635 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
636 a configuration pragma, it is now legal wherever a pragma can appear.
638 2001-12-04 Zack Weinberg <zack@codesourcery.com>
640 * Makefile.in: Don't set ALL. Delete @cross_defines@,
641 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
642 is now @CROSS@ -DIN_GCC; update comment.
644 2001-12-04 Robert Dewar <dewar@gnat.com>
646 * einfo.adb (Has_Pragma_Pure_Function): New flag.
647 Fix problem that stopped ceinfo from working
649 * einfo.ads (Has_Pragma_Pure_Function): New flag.
651 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
653 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
656 (File_Time_Stamp): New procedure.
657 (Preserve_Mode): New boolean.
658 (Write_Unit): Pass time stamp.
659 Implement -p switch (preserve time stamps).
661 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
663 * gnatchop.adb: Do usage info for -p switch
665 * adaint.h (__gnat_set_file_time_name): New function
667 * adaint.c (__gnat_set_file_time_name): Implement
671 2001-12-03 Robert Dewar <dewar@gnat.com>
673 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
674 have Associated_Node.
676 2001-12-03 Robert Dewar <dewar@gnat.com>
678 * prj-proc.adb: Minor reformatting
680 * make.adb: Minor reformatting
682 2001-12-03 Geert Bosch <bosch@gnat.com>
684 * make.adb: Minor reformatting.
686 2001-12-03 Robert Dewar <dewar@gnat.com>
688 * sem_ch12.adb: Minor reformatting
690 2001-12-03 Ed Schonberg <schonber@gnat.com>
692 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
693 push Standard on the stack before analyzing the instance body,
694 in order to have a clean visibility environment.
696 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
698 2001-12-03 Ed Schonberg <schonber@gnat.com>
700 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
701 instantiation of a body that contains an inlined body.
703 2001-12-03 Ed Schonberg <schonber@gnat.com>
706 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
707 to prevent freezing within formal packages.
708 (Freeze_Subprogram_Body): If body comes from another instance that
709 appeared before its own body, place freeze node at end of current
710 declarative part, to prevent a back-end crash.
711 (Inline_Instance_Body): Handle properly a package instance within
712 a subprogram instance that is a child unit.
714 2001-12-01 Graham Stott <grahams@redhat.com>
716 * Makefile.in (misc.o): Add missing $(srcdir) prefix
717 and add optabs.h dependency.
719 * misc.c: Include optabs.h
720 (gnat_tree_code_type): Make static and const.
721 (gnat_tree_code_length): Likewise.
722 (gnat_tree_code_name): Likewise.
723 (update_setjmp_buf): Obtain operands mode from insn_data.
725 2001-11-29 Richard Henderson <rth@redhat.com>
727 * init.c: Remove obsolete dwarf2 frame.h section.
729 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
731 * Make-lang.in (ada.generated-manpages): New dummy target.
733 2001-11-29 Ed Schonberg <schonber@gnat.com>
735 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
736 into Command, an array conversion is illegal here. Uncovered by
739 2001/11/28 Geert Bosch <bosch@gnat.com>
741 * init.c: Minor whitespace changes.
743 2001-11-28 Doug Rupp <rupp@gnat.com>
745 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
748 2001-11-28 Zack Weinberg <zack@codesourcery.com>
750 * misc.c (gnat_expand_constant): Move declaration above
751 definition of lang_hooks.
752 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
753 (gnat_init): lang_expand_constant no longer exists.
755 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
757 (gnat_init): Always call set_internal_error_function.
759 2001-11-27 Andreas Jaeger <aj@suse.de>
761 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
763 2001-11-27 Laurent Guerby <guerby@acm.org>
765 * Makefile.in: Regenerate Ada dependencies.
767 2001-11-26 Richard Henderson <rth@redhat.com>
769 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
770 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
771 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
773 2001-11-25 Laurent Guerby <guerby@acm.org>
775 * sysdep.c (rts_get_*): Fix style.
777 2001-11-19 Laurent Guerby <guerby@acm.org>
779 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
780 since it is of no apparent use and cause warnings.
782 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
784 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
786 (gnat_init): Don't return NULL.
787 (finish_parse): Remove.
789 2001-11-17 Laurent Guerby <guerby@acm.org>
791 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
792 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
793 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
794 * lang-spec.h: Add missing struct field to silence warnings.
795 * sysdep.c (rts_get_*): Provide K&R prototype.
796 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
797 * traceback.c (Unlock_Task, Lock_Task): Likewise.
798 * tracebak.c (__gnat_backtrace): Remove unused variable.
799 * utils.c (end_subprog_body): Move to K&R style.
801 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
803 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
805 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
807 * misc.c (gnat_init): Change prototype. Include the
808 functionality of the old init_parse and init_decl_processing.
809 (gnat_init_decl_processing): New prototype.
810 (init_parse): Remove.
811 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
813 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
815 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
816 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
817 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
818 set_yydebug): Remove.
820 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
822 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
823 (struct lang_hooks): Constify.
824 (language_string, lang_identify): Remove.
825 * utils.c (init_decl_processing): Update.
827 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
829 * misc.c: Include langhooks-def.h.
830 * Makefile.in: Update.
832 2001-10-30 Robert Dewar <dewar@gnat.com>
835 (Check_Identifier): Rewrite circuit to be compatible with use of letters
836 in the upper half of ASCII.
837 (Check_Identifier): Minor reformatting
839 2001-10-30 Geert Bosch <bosch@gnat.com>
841 * (Associated_Node, Set_Associated_Node): Do not check for
844 2001-10-30 Robert Dewar <dewar@gnat.com>
846 * a-reatim.ads: Minor reformatting
848 2001-10-30 Robert Dewar <dewar@gnat.com>
850 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
851 undocumented declarations.
853 2001-10-30 Pascal Obry <obry@gnat.com>
855 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
856 to the binder and linker.
859 * mdll.ads: Fix layout. Update copyright notice.
861 * mdll.adb: Fix layout. Update copyright notice.
863 2001-10-30 Robert Dewar <dewar@gnat.com>
865 * usage.adb: Minor fix to output for -gnaty.
867 2001-10-30 Ed Schonberg <schonber@gnat.com>
869 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
870 to accommodate all its possible values.
872 * a-reatim.adb (Split): Special-case handling of Time_Span_First
873 and of small absolute values of T.
875 2001-10-30 Richard Kenner <kenner@gnat.com>
877 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
878 set_mem_attributes since not needed and wrong if RESULT if a REG;
879 fixes ACATS failures.
881 2001-10-30 Geert Bosch <bosch@gnat.com>
883 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
884 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
886 2001-10-30 Robert Dewar <dewar@gnat.com>
888 * bindusg.adb: Undocument -f switch.
890 * gnatcmd.adb: Remove /FULL_ELABORATION.
892 * opt.ads (Force_RM_Elaboration_Order): Document that this is
895 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
897 * gnatbind.adb: Minor update of warning msg.
899 2001-10-30 Vincent Celier <celier@gnat.com>
901 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
902 for project file switches (-P (/PROJECT_FILE=),
903 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
906 2001-10-30 Geert Bosch <bosch@gnat.com>
908 * decl.c: Minor whitespace fixes.
910 2001-10-30 Richard Kenner <kenner@gnat.com>
912 * utils2.c (build_allocator): Test for SIZE overflow in array case too
914 2001-10-30 Geert Bosch <bosch@gnat.com>
916 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
917 Found due to GCC 3.0 warning of using uninitialized value.
920 (Get_Max_Size): Use variant record for tracking value/expression.
921 Makes logic clearer and prevents warnings for uninitialized variables.
922 (Layout_Array_Type): Use variant record for tracking value/expression.
923 Makes logic clearer and prevents warnings for uninitialized variables.
925 2001-10-30 Robert Dewar <dewar@gnat.com>
927 * lib.adb: Minor reformatting
929 * s-taprop.ads: Minor reformatting
931 2001-10-29 Laurent Guerby <guerby@acm.org>
934 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
936 (_gnat_error_handler): Make MSG const.
938 2001-10-29 Richard Kenner <kenner@gnat.com>
940 * sysdep.c: Fix localtime_r problem on LynxOS.
941 Also remove #elif to avoid warnings.
943 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
946 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
948 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
950 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
951 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
952 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
953 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
954 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
955 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
956 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
957 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
958 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
959 types.ads, urealp.adb: Fix spelling errors.
961 2001-10-27 Laurent Guerby <guerby@acm.org>
963 * trans.c (gigi): Fix non determinism leading to bootstrap
964 comparison failures for debugging information.
966 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
968 * gnat_rm.texi: Use @./@: where appropriate.
970 2001-10-26 Robert Dewar <dewar@gnat.com>
972 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
974 2001-10-26 Richard Kenner <kenner@gnat.com>
976 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
978 2001-10-26 Richard Kenner <kenner@gnat.com>
980 * decl.c (validate_size): Modify message for bad size to avoid
981 implication that compiler is modifying the size.
983 2001-10-26 Robert Dewar <dewar@gnat.com>
985 * prj-util.adb: Minor reformatting. Fix bad header format.
987 2001-10-26 Robert Dewar <dewar@gnat.com>
989 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
991 * sinfo.ads: Clarify use of Associated_Node (documentation only).
993 * sem_ch12.adb: Change Node4 to Associated_Node. Change
994 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
995 much more narrowly in places where needed. These are cleanups.
997 2001-10-26 Joel Brobecker <brobecke@gnat.com>
999 * 5zosinte.ads (null_pthread): new constant.
1002 (Initialize_TCB): Initialize thread ID to null, to be able to verify
1003 later that this field has been set.
1004 (Finalize_TCB): ditto.
1005 (Suspend_Task): Verify that the thread ID is not null before using it.
1006 (Resume_Task): ditto.
1009 (Resume_All_Tasks): Lock the tasks list before using it.
1010 (Suspend_All_Tasks): ditto.
1012 2001-10-26 Richard Kenner <kenner@gnat.com>
1014 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
1015 Make constant variant of designated type for Is_Access_Constant.
1016 Call update_pointer_to with main variant.
1018 * trans.c (process_freeze_entity, process_type):
1019 Call update_pointer_to on main variant.
1021 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
1022 If main variant, update all other variants.
1024 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
1027 2001-10-26 Robert Dewar <dewar@gnat.com>
1029 * prj-util.adb: Minor reformatting
1031 2001-10-26 Robert Dewar <dewar@gnat.com>
1033 * prj-util.adb: Minor reformatting
1035 2001-10-26 Robert Dewar <dewar@gnat.com>
1037 * prj-attr.adb: Minor reformatting throughout
1039 2001-10-26 Robert Dewar <dewar@gnat.com>
1041 * prj-attr.ads: Minor reformatting
1042 Add ??? comment (this whole spec has almost no comments)
1044 2001-10-26 Vincent Celier <celier@gnat.com>
1046 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
1047 ("//") that precede the drive letter on Interix.
1049 2001-10-26 Geert Bosch <bosch@gnat.com>
1051 * gnat_rm.texi: Add GNAT Reference Manual.
1053 2001-10-25 Robert Dewar <dewar@gnat.com>
1055 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
1056 is Error. Similar change for other renaming cases.
1058 2001-10-25 Robert Dewar <dewar@gnat.com>
1060 * s-atacco.ads: Add pragma Inline_Always for functions.
1061 Fix header format. Add copyright 2001
1063 2001-10-25 Ed Schonberg <schonber@gnat.com>
1065 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
1066 return Error rather than Empty so that analysis can proceed.
1068 2001-10-25 Ed Schonberg <schonber@gnat.com>
1070 * sem_util.adb (Enter_Name): better handling of cascaded error
1071 messages when a unit appears in its own context.
1073 2001-10-25 Ed Schonberg <schonber@gnat.com>
1075 * sem_util.adb (Defining_Entity): in case of error, attach created
1076 entity to specification, so that semantic analysis can proceed.
1078 2001-10-25 Robert Dewar <dewar@gnat.com>
1081 (Defining_Entity): Deal with Error.
1082 (Process_End_Label): Deal with bad end label for.
1084 2001-10-25 Ed Schonberg <schonber@gnat.com>
1086 * sem_elab.adb (Check_A_Call): refine message when call is in an
1087 instance but callee is not declared in the generic unit.
1089 2001-10-25 Ed Schonberg <schonber@gnat.com>
1091 * sem_elab.adb (Check_A_Call): check for renaming before finding the
1092 enclosing unit, which may already be different from the calling unit.
1094 2001-10-25 Geert Bosch <bosch@gnat.com>
1096 * 4gintnam.ads: fix header format.
1098 2001-10-25 Ed Schonberg <schonber@gnat.com>
1100 * sem_res.adb (Resolve_Call): if the call is actually an indexing
1101 operation on the result of a parameterless call, perform elaboration
1102 check after the node has been properly rewritten.
1104 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
1105 inlined within the generic tree, the defining identifier is not a
1108 2001-10-25 Ed Schonberg <schonber@gnat.com>
1110 * sem_res.adb (Resolve): special-case resolution of Null in an
1111 instance or an inlined body to avoid view conflicts.
1113 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
1114 compatibility by retrieving the access type of the generic copy.
1116 2001-10-25 Robert Dewar <dewar@gnat.com>
1119 (Analyze_Number_Declaration): Handle error expression.
1120 (Signed_Integer_Type_Declaration): Handle error bound.
1121 (Analyze_Subtype_Indication): Handle error range.
1123 * sem_util.adb (Get_Index_Bounds): Check for Error.
1125 2001-10-25 Robert Dewar <dewar@gnat.com>
1127 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
1128 in no run time mode.
1130 2001-10-25 Pascal Obry <obry@gnat.com>
1132 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
1133 mode case for ALLOC case.
1135 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
1136 all platforms. Improvement of last change.
1138 2001-10-25 Robert Dewar <dewar@gnat.com>
1140 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
1142 2001-10-25 Geert Bosch <bosch@gnat.com>
1144 * osint.adb (Is_Relative): Remove duplicate.
1146 2001-10-25 Pascal Obry <obry@gnat.com>
1148 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
1149 pathnames in UNIX and DOS style with drive letter.
1150 (Is_Relative): new routine.
1152 * osint.adb: Minor reformatting
1154 * osint.adb (Is_Relative): implementation using
1155 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
1157 2001-10-25 Pascal Obry <obry@gnat.com>
1159 * g-dirope.adb (Basename): correctly compute offset between the
1160 original Path and the translated one.
1162 * g-dirope.adb: (Base_Name): add some comments.
1164 2001-10-25 Robert Dewar <dewar@gnat.com>
1166 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
1167 in HIE mode, avoids compilation abandoned message
1169 * exp_imgv.adb: Correct typo in previous change
1171 * exp_imgv.adb: Correct typo in previous change (not my day!)
1173 2001-10-25 Robert Dewar <dewar@gnat.com>
1175 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
1177 2001-10-25 Pascal Obry <obry@gnat.com>
1179 * g-awk.ads: Move all pragma inlines next to the routine
1180 declarations. This is more uniform with other GNAT spec.
1182 2001-10-22 Geert Bosch <bosch@gnat.com>
1184 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
1186 2001-10-19 Geert Bosch <bosch@gnat.com>
1188 * Makefile.in (tools, gnattools): Remove gnatmem.
1190 2001-10-17 Richard Henderson <rth@redhat.com>
1192 * Makefile.in (misc.o): Depend on langhooks.h.
1193 * misc.c: Include it.
1194 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
1195 (LANG_HOOKS_DECODE_OPTION): New.
1196 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
1198 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
1200 * trans.c (tree_transform): Adjust to recent change in
1201 expand_asm_operands to implement named asm operands.
1203 2001-10-11 Ed Schonberg <schonber@gnat.com>
1205 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
1206 renaming of discriminant for mutable record type.
1208 2001-10-11 Robert Dewar <dewar@gnat.com>
1210 * validsw.adb: Properly save -gnatVn status.
1212 2001-10-11 Robert Dewar <dewar@gnat.com>
1214 * usage.adb: Add lines for V switch.
1216 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
1217 (/VALIDITY_CHECKING).
1219 2001-10-11 Ed Schonberg <schonber@gnat.com>
1221 * sem_type.adb (Add_One_Interp): an operator for a type declared in
1222 an extension of System is known to be visible.
1224 2001-10-11 Ed Schonberg <schonber@gnat.com>
1226 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
1227 properly. Fixes regression on ACATS C34005G.
1229 2001-10-11 Robert Dewar <dewar@gnat.com>
1231 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
1232 loop in generic instance, since this is likely not very useful.
1234 2001-10-11 Robert Dewar <dewar@gnat.com>
1236 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
1237 the error message for high integrity mode.
1239 * rtsfind.adb (RTE): Give message if we try to find an entity that
1240 is not available in high integrity mode.
1243 (OK_To_Use_In_HIE_Mode): New array.
1244 (RTE): May return Empty in high integrity mode.
1246 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
1247 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
1249 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
1250 unit if not inlined always and in no runtime mode. Fixes problem
1251 caused by new Rtsfind changes.
1253 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
1256 * rtsfind.adb (RTE): Make sure we do not try to load unit after
1257 giving message for entity not available in high integrity mode.
1259 2001-10-11 Pascal Obry <obry@gnat.com>
1261 * impunit.adb: Add GNAT.CRC32.
1263 2001-10-11 Ed Schonberg <schonber@gnat.com>
1265 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
1266 properly the case where one universal operand in a non-static
1267 exponentiation of a real literal.
1269 2001-10-11 Ed Schonberg <schonber@gnat.com>
1271 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
1272 clause, return the gobal finalization list, for lack of anthing else.
1274 2001-10-11 Ed Schonberg <schonber@gnat.com>
1276 * exp_ch7.adb (Make_Transient_Block): if statement is within
1277 exception handler, always use new transient scope to place Clean
1280 2001-10-11 Pascal Obry <obry@gnat.com>
1283 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
1284 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
1285 (GNATLS_RTL_OBJS): add g-crc32.o
1286 (GNATMAKE_RTL_OBJS): add g-crc32.o
1289 (CRC_Match): new function.
1290 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
1291 instead of the previous simple checksum algorithm.
1292 (Time_Stamp_Mismatch): use CRC_Match for comparison.
1293 (Set_Source_Table): idem.
1296 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
1297 instead of simple checksum.
1298 (CRC_Match): new function.
1299 (CRC_Error): new constant.
1301 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
1302 a CRC now and not a simple checksum. A CRC uses lower-case hex
1303 letters, fixes ambiguity in parsing.
1305 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
1306 is what this variable will store.
1308 * bcheck.adb: Change reference to chechsum in comments by CRC.
1309 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
1310 rename All_Checksum_Match to All_CRC_Match. Change due to API
1311 renaming since now GNAT does not use a simple checksum but a
1312 CRC using GNAT.CRC32.
1314 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
1315 now and not anymore a simple checksum.
1317 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
1320 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
1323 (Restore_Scan_State): rename Checksum to CRC.
1324 (Save_Scan_State): idem.
1328 (Checksum): rename to CRC.
1329 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
1331 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
1332 GNAT.CRC32). Update copyright notice.
1334 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
1335 GNAT.CRC32). Update copyright notice.
1338 (Accumulate_Checksum): removed.
1339 (Update): new procedure. Add a wide-character into the CRC.
1342 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
1343 (Load_File): fix initialization of S (change Source_Checksum to
1346 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
1347 Source_CRC in S initialization.
1349 * sinput.adb (Source_Checksum): renamed to Source_CRC.
1351 * sinput.ads (Source_Checksum): renamed to Source_CRC.
1352 Update comments for the CRC.
1354 * types.adb (Hex): Use lowercase for the letter part.
1356 * types.ads (Get_Hex_String): Returns the hexadecimal representation
1357 for a word. This is currently used only for CRC. In previous version,
1358 the checksum was using a representation with all letter being
1359 upper-case. With the new implementation (using CRC) we do not remove
1360 the 32th bit of the CRC, so we can have an upper-case starting letter
1361 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
1362 It is ambigous since the CRC was optional and could be followed by
1363 options like EB, EE. So now this routines uses lower-case letter for
1364 the hexadecimal representation. Strange enough only lower case letters
1365 where checked in Scan_ALI (even if this was not a possible case).
1367 * gnatvsn.ads (Library_Version): changed to 3.15a.
1369 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
1372 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
1375 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
1376 Add 2001 to copyright notice
1377 (Accumulate_Checksum): Modify to use System.CRC32.
1379 * ali-util.ads: Redo changes of previous revision to continue to use
1380 the word Checksum. Add 2001 to copyright notice.
1382 * ali.adb: Undo some of previous changes, not needed.
1383 Keep the change for lower case letters in the checksum.
1385 * ali.ads: Undo previous change not needed.
1387 * bcheck.adb: Undo most of previous change, not needed.
1388 But do use Checksums_Match for checksum comparison.
1390 * gnatls.adb: Undo most of previous change, not needed.
1391 But do use Checksums_Match for comparing checksums.
1393 * lib-load.adb: Undo previous change, not needed.
1395 * lib-writ.adb: Undo previous change, not needed.
1397 * lib-writ.ads: Document that checksums use lower case,
1398 not upper case letters.
1400 * scans.adb: Undo previous change, not needed
1402 * scans.ads: Undo previous change, not needed.
1404 * scn-nlit.adb: Undo previous changes, not needed.
1406 * scn-slit.adb: Undo previous change, not needed. Fix header format.
1409 (Accumulate_Checksum): Use System.CRC32.
1410 (Initialize_Checksum): New procedure.
1411 Remove other changes of previous revision.
1413 * sinput-p.adb: Undo previous change, not needed.
1415 * sinput.adb: Undo previous change, not needed.
1417 * sinput-l.adb: Undo previous change, not needed.
1419 * sinput.ads: Undo previous change, not needed. Keep only comment
1420 on new checksum algorithm
1422 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
1423 Also remove a-tags and a-stream from GNAT sources.
1425 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
1427 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
1429 2001-10-11 Geert Bosch <bosch@gnat.com>
1431 * einfo.h: Regenerate.
1433 * nmake.ads: Regenerate.
1435 * nmake.adb: Regenerate.
1437 * sinfo.h: Regenerate.
1439 * treeprs.adb: Regenerate.
1441 2001-10-10 Geert Bosch <bosch@gnat.com>
1443 * gnat-style.texi: New file describing coding guidelines for Ada.
1445 2001-10-10 Ed Schonberg <schonber@gnat.com>
1447 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
1450 2001-10-10 Geert Bosch <bosch@gnat.com>
1452 * snames.ads: Add new names for project facility.
1454 * snames.adb: Update to reflect snames.ads changes.
1456 * snames.h: Update to reflect snames.ads changes.
1458 2001-10-10 Vincent Celier <celier@gnat.com>
1461 (Add_Switches): reflect the changes for the switches attributes
1462 Default_Switches indexed by the programming language,
1463 Switches indexed by the file name.
1464 (Collect_Arguments_And_Compile): Idem.
1465 Reflect the attribute name changes.
1468 (Initialisation_Data): Change the names of some packages and
1470 (Initialize): process case insensitive associative arrays.
1473 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
1476 (Parse_Attribute_Declaration): For case insensitive associative
1477 arrays, set the index string to lower case.
1480 Reflect the changes of the project attributes.
1483 Replace Check_Naming_Scheme by Ada_Check and
1484 Language_Independent_Check.
1487 Replaced Check_Naming_Scheme by 2 procedures:
1488 Ada_Check and Language_Independent_Check.
1491 (Process_Declarative_Items): For case-insensitive associative
1492 arrays, set the index string to lower case.
1493 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
1494 Prj.Nmsc.Check_Naming_Scheme.
1497 (Case_Insensitive): New function
1498 (Set_Case_Insensitive): New procedure
1501 (Case_Insensitive): New function
1502 (Set_Case_Insensitive): New procedure
1503 (Project_Node_Record): New flag Case_Insensitive.
1506 (Value_Of): new function to get the string value of a single
1507 string variable or attribute.
1510 (Value_Of): new function to get the string value of a single
1511 string variable or attribute.
1514 (Ada_Default_Spec_Suffix): New function
1515 (Ada_Default_Impl_Suffix): New function
1516 Change definitions of several constants to reflect
1517 new components of record types.
1520 (Naming_Data): Change several components to reflect new
1521 elements of naming schemes.
1522 (Project_Data): New flags Sources_Present and
1523 Language_Independent_Checked.
1524 (Ada_Default_Spec_Suffix): New function.
1525 (Ada_Default_Impl_Suffix): New function.
1528 Modification of predefined names for project manager: added
1529 Implementation, Specification_Exceptions, Implementation_Exceptions,
1530 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
1531 Default_Switches, _Languages, Builder, Cross_Reference,
1532 Finder. Removed Body_Part, Specification_Append, Body_Append,
1533 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
1536 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
1539 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
1540 not that it is Nil_Variable_Value.
1542 * prj.ads: Add ??? for uncommented declarations
1544 2001-10-10 Ed Schonberg <schonber@gnat.com>
1546 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
1547 constant, do not indicate possible modification, so that gigi can
1548 treat it as a bona fide constant.
1550 2001-10-10 Robert Dewar <dewar@gnat.com>
1552 * sem_prag.adb: Add processing for pragma External.
1554 * snames.ads: Add entry for pragma External.
1556 * par-prag.adb: Add pragma External.
1558 * snames.adb: Updated to match snames.ads.
1560 2001-10-10 Ed Schonberg <schonber@gnat.com>
1562 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
1563 a dynamic task if the allocator appears in an indexed assignment
1564 or selected component assignment.
1566 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
1567 For a dynamic task in an assignment statement, use target of
1568 assignment to generate meaningful name.
1570 2001-10-10 Ed Schonberg <schonber@gnat.com>
1572 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
1575 * einfo.ads: Body_Entity is also defined for generic package.
1576 Documentation change only
1578 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
1579 others_choice for a discriminated component initialization,
1580 convert discriminant references into the corresponding discriminals.
1582 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
1583 only if original type is private and expression has to be wrapped
1587 (Apply_Constraint_Check): Do not perform length check
1588 if expression is an aggregate with only an others_choice.
1589 (Length_N_Cond): two references to the same in_parameter
1590 (typically the discriminal in an init_proc) denote the same value.
1591 Two useful optimization uncovered by bugfixes above.
1593 2001-10-10 Robert Dewar <dewar@gnat.com>
1595 * xeinfo.adb: Change int to char in translation of enumeration types.
1596 This fixes a problem in the C representation of component alignment.
1597 Add 2001 to copyright notice
1599 2001-10-10 Richard Kenner <kenner@gnat.com>
1601 * decl.c: (validate_size): Do check size of object of integral type
1602 if it is a packed array type.
1604 2001-10-10 Richard Kenner <kenner@gnat.com>
1606 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
1607 VAR_DECL for constant if not Is_Public but -O0.
1609 2001-10-10 Richard Kenner <kenner@gnat.com>
1611 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
1613 2001-10-10 Geert Bosch <bosch@gnat.com>
1615 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1616 use '/' as switch character, allowing for absolute file names.
1618 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
1620 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
1623 2001-10-08 Geert Bosch <bosch@gnat.com>
1625 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
1626 Automatically build utilities when files need to be regenerated.
1628 2001-10-08 Geert Bosch <bosch@gnat.com>
1630 * xsnames.adb: New utility for updating snames.ads and snames.adb
1632 2001-10-08 Zack Weinberg <zack@codesourcery.com>
1634 * Make-lang.in (ADAFLAGS): Add -W -Wall.
1635 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
1636 (gnat1): Also depend on attribs.o.
1637 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
1638 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
1639 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
1640 (ADAFLAGS): Add -W -Wall.
1641 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
1644 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
1645 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
1646 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
1647 Use $(ADAC), not $(CC), as compilation command.
1649 (gnattools): Depend directly on tools to build, don't use
1651 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
1653 * einfo.h, sinfo.h: New files (autogenerated).
1655 2001-10-08 Richard Henderson <rth@redhat.com>
1657 * comperr.adb (Abort_In_Progress): New.
1658 (Compiler_Abort): Use it to prevent recursion.
1660 2001-10-08 Robert Dewar <dewar@gnat.com>
1662 * atree.adb: Set Error_Posted in Error node, helps error recovery.
1664 * par-endh.adb (Output_End_Expected): We should also not test
1665 Error_Posted on the Error node, since now it is always set.
1667 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
1668 to help error recovery. Part of general work on 9407-004.
1670 * par.adb: Add ??? for misuse of error
1673 (Resolve): Defend against Error, fixes 9407-003.
1674 (Resolve_Discrete_Subtype_Indication): Defend against Error.
1676 * sinfo.ads (N_Error): Now has Etype field (which will be set
1677 to Any_Type to help error recovery).
1679 2001-10-08 Richard Kenner (kenner@gnat.com)
1681 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
1682 Consistently set MEM attributes from expression; fixes
1683 bootstrap failure on x86.
1685 2001-10-08 Geert Bosch (bosch@gnat.com)
1687 * 5oosinte.adb: Add 2001 to copyright notice.
1689 2001-10-08 Geert Bosch (bosch@gnat.com)
1691 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
1693 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
1695 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1697 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
1699 2001-10-05 Geert Bosch (bosch@gnat.com)
1701 * adaint.h: Small formatting fix.
1703 2001-10-04 Geert Bosch <bosch@gnat.com>
1705 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
1706 Arg is int, not FILE *, in dummy version of functions.
1708 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
1709 Arg is int, not FILE *.
1711 2001-10-04 Geert Bosch <bosch@gnat.com>
1713 * 3lsoccon.ads: Added file, missed with initial check ins.
1715 * 4lintnam.ads: Fix header format.
1716 Change Linux to GNU/Linux.
1718 * 5iosinte.adb: Change Linux to GNU/Linux.
1720 * 5iosinte.ads: Change Linux to GNU/Linux.
1722 * 5itaprop.adb: Change Linux to GNU/Linux.
1724 * 5itaspri.ads: Change Linux to GNU/Linux.
1725 Update copyright notice.
1727 * 5lintman.adb: Change Linux to GNU/Linux.
1729 * 5lml-tgt.adb: Change Linux to GNU/Linux.
1731 * 5losinte.ads: Change Linux to GNU/Linux.
1733 * 5lsystem.ads: Change Linux to GNU/Linux.
1735 * 5qosinte.adb: Change Linux to GNU/Linux.
1737 * 5qosinte.ads: Change Linux to GNU/Linux.
1739 * 5qparame.ads: Change Linux to GNU/Linux.
1741 * 5qtaprop.adb: Change Linux to GNU/Linux.
1743 * 5qtaspri.ads: Change Linux to GNU/Linux.
1744 Add 2001 to copyright notice.
1746 * 5vintman.ads: Change Linux to GNU/Linux.
1747 Fix header format. Add 2001 to copyright notice.
1749 * g-soccon.ads: Change Linux to GNU/Linux.
1751 * g-trasym.ads: Change Linux to GNU/Linux.
1752 Add 2001 to copyright notice.
1754 * memtrack.adb: Change Linux to GNU/Linux.
1756 * s-intman.ads: Change Linux to GNU/Linux.
1757 Add 2001 to copyright notice. Fix header format.
1759 * s-stache.adb: Change Linux to GNU/Linux.
1761 * adaint.c: Change Linux to GNU/Linux.
1763 * cio.c: Change Linux to GNU/Linux.
1765 * cstreams.c: Change Linux to GNU/Linux.
1767 * init.c: Change Linux to GNU/Linux.
1769 * gmem.c: Change Linux to GNU/Linux.
1771 * tracebak.c: Change Linux to GNU/Linux.
1774 2001-10-02 Geert Bosch <bosch@gnat.com>
1776 * misc.c (insert_default_attributes): Add dummy version.