This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cs] path to reset TREE_SYMBOL_REFERENCED
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Dec 2003 11:05:48 -0800
- Subject: [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;