diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-26 22:53:50 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-26 22:53:50 +0000 |
commit | cffbbb9de6dd1d57639ccf61d76209e46c9bcbdb (patch) | |
tree | 566634468015c713398a1fcd59ec66da7138545a /gcc/dwarf2out.c | |
parent | d55d9a48e0263efc2c2fbaa0ae8a428ea6e5f13e (diff) | |
download | ppe42-gcc-cffbbb9de6dd1d57639ccf61d76209e46c9bcbdb.tar.gz ppe42-gcc-cffbbb9de6dd1d57639ccf61d76209e46c9bcbdb.zip |
PR target/44132
Emulated TLS rewrite.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162549 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 68b64832829..1ca53bb96c1 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -15111,7 +15111,11 @@ loc_list_from_tree (tree loc, int want_address) if (!targetm.emutls.debug_form_tls_address || !(dwarf_version >= 3 || !dwarf_strict)) return 0; - loc = emutls_decl (loc); + /* We stuffed the control variable into the DECL_VALUE_EXPR + to signal (via DECL_HAS_VALUE_EXPR_P) that the decl should + no longer appear in gimple code. We used the control + variable in specific so that we could pick it up here. */ + loc = DECL_VALUE_EXPR (loc); first_op = DW_OP_addr; second_op = DW_OP_form_tls_address; } |