aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-13 19:47:48 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-13 17:47:48 +0000
commitda405c74af0fdf19702bfc9e4d12356a940b30a2 (patch)
tree26b19467dc495c3317fe6efc1e16f160ca71ac1f
parent152464d21eb0ba50f648cafe135724e1d22b5788 (diff)
downloadgcc-da405c74af0fdf19702bfc9e4d12356a940b30a2.zip
gcc-da405c74af0fdf19702bfc9e4d12356a940b30a2.tar.gz
gcc-da405c74af0fdf19702bfc9e4d12356a940b30a2.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/varpool.c7
2 files changed, 5 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a77193..007ce28 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 39a6565..f6e1449 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)