Patchwork Fix PR53522

login
register
mail settings
Submitter Richard Guenther
Date May 30, 2012, 9:13 a.m.
Message ID <Pine.LNX.4.64.1205301112500.5860@jbgna.fhfr.qr>
Download mbox | patch
Permalink /patch/161901/
State New
Headers show

Comments

Richard Guenther - May 30, 2012, 9:13 a.m.
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.

Patch

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);