This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[cs] path to reset TREE_SYMBOL_REFERENCED


TREE_SYMBOL_REFERENCED is another identifier bit that should be
reset when starting on a new file.  (It should be reused when
starting a new output assembler file, not when startinga new
top-level source file.  I'll mae a not to fix this after Mike's
flag-processing changes are stable.)

I check this into the CS branch.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


2003-12-15  Per Bothner  <pbothner@apple.com>

	* c-decl.c (lang_clear_identifier):  Clear TREE_SYMBOL_REFERENCED too.

Index: c-decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-decl.c,v
retrieving revision 1.417.2.12
diff -u -p -r1.417.2.12 c-decl.c
--- c-decl.c	14 Dec 2003 03:03:51 -0000	1.417.2.12
+++ c-decl.c	15 Dec 2003 18:42:47 -0000
@@ -500,6 +500,7 @@ lang_clear_identifier (cpp_reader *pfile
   IDENTIFIER_LABEL_VALUE (tnode) = NULL_TREE;
   TREE_USED (tnode) = 0;
   TREE_PUBLIC (tnode) = 0;
+  TREE_SYMBOL_REFERENCED (tnode) = 0;
   reset_hashnode (node);
 
   return 1;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]