aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2010-07-26 15:53:50 -0700
committerRichard Henderson <rth@gcc.gnu.org>2010-07-26 15:53:50 -0700
commit8b84c5966fddefd51475d4df0fb2f1a699ba23fe (patch)
tree566634468015c713398a1fcd59ec66da7138545a /gcc/varpool.c
parentb57c6b13e0d950ba0771b1688cf6e57e3a5beae6 (diff)
downloadgcc-8b84c5966fddefd51475d4df0fb2f1a699ba23fe.zip
gcc-8b84c5966fddefd51475d4df0fb2f1a699ba23fe.tar.gz
gcc-8b84c5966fddefd51475d4df0fb2f1a699ba23fe.tar.bz2
re PR target/44132 (emutls is broken under a range of circumstances.)
PR target/44132 Emulated TLS rewrite. From-SVN: r162549
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 94c949e..dcf3518 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -346,17 +346,6 @@ decide_is_variable_needed (struct 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 (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_toplevel_reorder)