* 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
2010-05-10 Richard Guenther <rguenther@suse.de>
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.
(handle_fnspec_attribute): New function.
* gimple.h (gimple_call_return_flags): Declare.
* c-common.c (struct c_common_attributes): Add fnspec attribute.
(handle_fnspec_attribute): New function.
* gimple.h (gimple_call_return_flags): Declare.
const struct lto_symtab_entry_def *base =
(const struct lto_symtab_entry_def *) 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. */
}
/* Lazily initialize resolution hash tables. */