summaryrefslogtreecommitdiff
path: root/gcc/tree-emutls.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-30 09:14:27 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-30 09:14:27 +0000
commit20ecc3c443f402340a02b830ce4c0db9a7b4c343 (patch)
tree85b88061a0ef3c093533a7c842c64261bf4f1577 /gcc/tree-emutls.c
parent15b37e314a4ce89a0fa8f5e6291012539a4350b5 (diff)
downloadgcc-20ecc3c443f402340a02b830ce4c0db9a7b4c343.tar.gz
2012-05-30 Richard Guenther <rguenther@suse.de>
PR middle-end/53522 * tree-emutls.c (gen_emutls_addr): Do not add globals to referenced-vars. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188005 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-emutls.c')
-rw-r--r--gcc/tree-emutls.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c
index bae41ac62e6..25da389abbb 100644
--- a/gcc/tree-emutls.c
+++ b/gcc/tree-emutls.c
@@ -434,7 +434,6 @@ gen_emutls_addr (tree decl, struct lower_emutls_data *d)
addr = create_tmp_var (build_pointer_type (TREE_TYPE (decl)), NULL);
x = gimple_build_call (d->builtin_decl, 1, build_fold_addr_expr (cdecl));
gimple_set_location (x, d->loc);
- add_referenced_var (cdecl);
addr = make_ssa_name (addr, x);
gimple_call_set_lhs (x, addr);