From: Jan Hubicka Date: Thu, 13 May 2010 17:47:48 +0000 (+0200) Subject: varpool.c (decide_is_variable_needed): Drop code checking TREE_SYMBOL_REFERENCED. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da405c74af0fdf19702bfc9e4d12356a940b30a2;p=gcc.git varpool.c (decide_is_variable_needed): Drop code checking TREE_SYMBOL_REFERENCED. * varpool.c (decide_is_variable_needed): Drop code checking TREE_SYMBOL_REFERENCED. From-SVN: r159371 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a77193f6be..007ce28595a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-05-13 Jan Hubicka + + * varpool.c (decide_is_variable_needed): Drop code checking + TREE_SYMBOL_REFERENCED. + 2010-05-13 Jan Hubicka * final.c (output_addr_const): Do not call mark_decl_referenced. diff --git a/gcc/varpool.c b/gcc/varpool.c index 39a6565842a..f6e144950f4 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -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)