summaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-25 13:28:32 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-25 13:28:32 +0000
commit4dca9aca0c07effd59a00a690b56c44312a47d3b (patch)
tree92acef700b091d82f1b0b19cc3a1903207a22d71 /gcc/cgraph.h
parentdb0f1dac653cb66691453ec5d01677ba2175993d (diff)
downloadgcc-4dca9aca0c07effd59a00a690b56c44312a47d3b.tar.gz
PR lto/51663
* varpool.c (varpool_finalize_decl): Handle toplevel_reorder here. (decide_is_variable_needed): Do not handle toplevel reorder here. * cgraph.h (varpool_can_remove_if_no_refs): Likewise. * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars even at -O0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index db4bcea1fc4..93efd94d9ba 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -947,8 +947,6 @@ static inline bool
varpool_can_remove_if_no_refs (struct varpool_node *node)
{
return (!node->force_output && !node->used_from_other_partition
- && (flag_toplevel_reorder || DECL_COMDAT (node->decl)
- || DECL_ARTIFICIAL (node->decl))
&& (DECL_COMDAT (node->decl) || !node->externally_visible));
}