This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR53522
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 May 2012 11:13:07 +0200 (CEST)
- Subject: [PATCH] Fix PR53522
Committed as obvious.
Richard.
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.
Index: gcc/tree-emutls.c
===================================================================
--- gcc/tree-emutls.c (revision 187965)
+++ gcc/tree-emutls.c (working copy)
@@ -434,7 +434,6 @@ gen_emutls_addr (tree decl, struct lower
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);