summaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-18 20:41:40 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-18 20:41:40 +0000
commite6db644e168e952eba485ba7727808b3d24d4335 (patch)
tree31d500a237a9fb98246138a3525f9f448865c82f /gcc/cfgexpand.c
parent967370edb1929e080226f60ea7d2260856e2f082 (diff)
downloadgcc-e6db644e168e952eba485ba7727808b3d24d4335.tar.gz
* tree.h: Declare make_decl_rtl_for_debug.
* varasm.c (make_decl_rtl_for_debug): New. * dwarf2out.c (rtl_for_decl_location): Call it. * cfgexpand.c (expand_debug_expr): Call it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index ee145993404..fcae897a392 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2339,8 +2339,7 @@ expand_debug_expr (tree exp)
|| mode == VOIDmode)
return NULL;
- op0 = DECL_RTL (exp);
- SET_DECL_RTL (exp, NULL);
+ op0 = make_decl_rtl_for_debug (exp);
if (!MEM_P (op0)
|| GET_CODE (XEXP (op0, 0)) != SYMBOL_REF
|| SYMBOL_REF_DECL (XEXP (op0, 0)) != exp)