varpool.c (decide_is_variable_needed): Drop code checking TREE_SYMBOL_REFERENCED.
authorJan Hubicka <jh@suse.cz>
Thu, 13 May 2010 17:47:48 +0000 (19:47 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 13 May 2010 17:47:48 +0000 (17:47 +0000)
* varpool.c (decide_is_variable_needed): Drop code checking
TREE_SYMBOL_REFERENCED.

From-SVN: r159371

gcc/ChangeLog
gcc/varpool.c

index 9a77193f6be3dee8f9990b2f867683ecdbb931bd..007ce28595a414a86ea986bfde16def938f2ebe3 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-13  Jan Hubicka  <jh@suse.cz>
+
+       * varpool.c (decide_is_variable_needed): Drop code checking
+       TREE_SYMBOL_REFERENCED.
+
 2010-05-13  Jan Hubicka  <jh@suse.cz>
 
        * final.c (output_addr_const): Do not call mark_decl_referenced.
index 39a6565842a29801f7b62ab6a7b8e8d1a66646b6..f6e144950f40b4027e17cad38e8933e7f9a3a395 100644 (file)
@@ -321,13 +321,6 @@ decide_is_variable_needed (struct varpool_node *node, tree decl)
       || node->force_output)
     return true;
 
-  /* ??? If the assembler name is set by hand, it is possible to assemble
-     the name later after finalizing the function and the fact is noticed
-     in assemble_name then.  This is arguably a bug.  */
-  if (DECL_ASSEMBLER_NAME_SET_P (decl)
-      && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))
-    return true;
-
   /* Externally visible variables must be output.  The exception is
      COMDAT variables that must be output only when they are needed.  */
   if (TREE_PUBLIC (decl)