OSDN Git Service

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 e31c2f4..555a1ab 100644 (file)
@@ -1,5 +1,10 @@
 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.
index 83a64bb..732940e 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;
 
   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.  */