summaryrefslogtreecommitdiffstats
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 16:27:14 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 16:27:14 +0000
commit5c3667a19751f3f0b11b07c3712b152a70c650ba (patch)
tree3b365f54da686b951378eabd14acdaf98bd0eb15 /gcc/cgraph.c
parentbd09cd3e0a1b43658bb0d2169721ff2b3e95ea0e (diff)
downloadppe42-gcc-5c3667a19751f3f0b11b07c3712b152a70c650ba.tar.gz
ppe42-gcc-5c3667a19751f3f0b11b07c3712b152a70c650ba.zip
Revert emutls patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 92368357784..3e5dab1f94e 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -939,7 +939,7 @@ bool
decide_is_variable_needed (struct cgraph_varpool_node *node, tree decl)
{
/* If the user told us it is used, then it must be so. */
- if (node->externally_visible || node->force_output)
+ if (node->externally_visible)
return true;
if (!flag_unit_at_a_time
&& lookup_attribute ("used", DECL_ATTRIBUTES (decl)))
@@ -963,17 +963,6 @@ decide_is_variable_needed (struct cgraph_varpool_node *node, tree decl)
&& !DECL_EXTERNAL (decl))
return true;
- /* When emulating tls, we actually see references to the control
- variable, rather than the user-level variable. */
- if (!targetm.have_tls
- && TREE_CODE (decl) == VAR_DECL
- && DECL_THREAD_LOCAL_P (decl))
- {
- tree control = emutls_decl (decl);
- if (decide_is_variable_needed (cgraph_varpool_node (control), control))
- return true;
- }
-
/* When not reordering top level variables, we have to assume that
we are going to keep everything. */
if (flag_unit_at_a_time && flag_toplevel_reorder)
OpenPOWER on IntegriCloud