aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2010-03-18 20:41:40 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2010-03-18 20:41:40 +0000
commitb1aa06558404f699aac25f84835dc04b16f437ea (patch)
tree31d500a237a9fb98246138a3525f9f448865c82f /gcc/cfgexpand.c
parent9a05b749247561513b357e5648ed75699fc7cb4e (diff)
downloadgcc-b1aa06558404f699aac25f84835dc04b16f437ea.zip
gcc-b1aa06558404f699aac25f84835dc04b16f437ea.tar.gz
gcc-b1aa06558404f699aac25f84835dc04b16f437ea.tar.bz2
tree.h: Declare make_decl_rtl_for_debug.
* 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. From-SVN: r157551
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 ee14599..fcae897 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)