Commit da405c74 by Jan Hubicka Committed by Jan Hubicka

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
parent 152464d2
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.
* cgraphunit.c (process_function_and_variable_attributes): Use
mark_needed_node dirrectly.
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment