diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-10 11:28:38 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-05-10 11:28:38 +0000 |
commit | 571943de9aaa2135d90dc042f80081fc11d9761d (patch) | |
tree | 79f87b987b0edcfab7da33dcdfad771b54484874 /gcc | |
parent | 0b7b376d89fcaf1abccf11da606d612d9f4cc378 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto-symtab.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e31c2f4..555a1ab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. 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. */ |