diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-10 11:28:38 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-10 11:28:38 +0000 |
commit | 0fa4671b1780250386599f246b5a002fadf63a62 (patch) | |
tree | 79f87b987b0edcfab7da33dcdfad771b54484874 /gcc/lto-symtab.c | |
parent | 8ce860079ffd104495b86756bd5c7729e69ff06f (diff) | |
download | gcc-0fa4671b1780250386599f246b5a002fadf63a62.tar.gz |
2010-05-10 Richard Guenther <rguenther@suse.de>
* lto-symtab.c (lto_symtab_entry_marked_p): Make entry
marked if the entry identifier is marked.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159216 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-symtab.c')
-rw-r--r-- | gcc/lto-symtab.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/lto-symtab.c b/gcc/lto-symtab.c index 83a64bbf345..732940e7f9c 100644 --- a/gcc/lto-symtab.c +++ b/gcc/lto-symtab.c @@ -97,9 +97,10 @@ lto_symtab_entry_marked_p (const void *p) const struct lto_symtab_entry_def *base = (const struct lto_symtab_entry_def *) p; - /* Keep this only if the decl or the chain is marked. */ - return (ggc_marked_p (base->decl) - || (base->next && ggc_marked_p (base->next))); + /* Keep this only if the common IDENTIFIER_NODE of the symtab chain + is marked which it will be if at least one of the DECLs in the + chain is marked. */ + return ggc_marked_p (base->id); } /* Lazily initialize resolution hash tables. */ |