aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-symtab.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-05-10 11:28:38 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-05-10 11:28:38 +0000
commit571943de9aaa2135d90dc042f80081fc11d9761d (patch)
tree79f87b987b0edcfab7da33dcdfad771b54484874 /gcc/lto-symtab.c
parent0b7b376d89fcaf1abccf11da606d612d9f4cc378 (diff)
downloadgcc-571943de9aaa2135d90dc042f80081fc11d9761d.zip
gcc-571943de9aaa2135d90dc042f80081fc11d9761d.tar.gz
gcc-571943de9aaa2135d90dc042f80081fc11d9761d.tar.bz2
lto-symtab.c (lto_symtab_entry_marked_p): Make entry marked if the entry identifier is marked.
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. From-SVN: r159216
Diffstat (limited to 'gcc/lto-symtab.c')
-rw-r--r--gcc/lto-symtab.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/lto-symtab.c b/gcc/lto-symtab.c
index 83a64bb..732940e 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. */