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
This commit is contained in:
Richard Guenther 2010-05-10 11:28:38 +00:00 committed by Richard Biener
parent 0b7b376d89
commit 571943de9a
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.
2010-05-10 Richard Guenther <rguenther@suse.de>
* c-common.c (struct c_common_attributes): Add fnspec attribute.

View File

@ -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. */