summaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-13 17:47:48 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-13 17:47:48 +0000
commit97db846f9ccc1b5c1d2c72869937173bb7c25871 (patch)
tree26b19467dc495c3317fe6efc1e16f160ca71ac1f /gcc/varpool.c
parent0b49f8f8e6a6354ca047371ed355830edb5b556d (diff)
downloadgcc-97db846f9ccc1b5c1d2c72869937173bb7c25871.tar.gz
* varpool.c (decide_is_variable_needed): Drop code checking
TREE_SYMBOL_REFERENCED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159371 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c7
1 files changed, 0 insertions, 7 deletions
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)