]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2010-05-10 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 May 2010 11:28:38 +0000 (11:28 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 May 2010 11:28:38 +0000 (11:28 +0000)
* 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

gcc/ChangeLog
gcc/lto-symtab.c

index e31c2f4bc41c137ebe0aedc190847d906e79036b..555a1ab359f672180854b098bc4ffe09cfb04f38 100644 (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.
index 83a64bbf345fa487e8810a251c325b2056fd5e6d..732940e7f9c9a5b6428e790a969c2e37eb1b968d 100644 (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.  */