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:
parent
0b7b376d89
commit
571943de9a
|
@ -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.
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue