aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.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/dwarf2out.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/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 8dfe65d..540d75f 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -15770,10 +15770,7 @@ rtl_for_decl_location (tree decl)
&& !DECL_HARD_REGISTER (decl)
&& DECL_MODE (decl) != VOIDmode)
{
- rtl = DECL_RTL (decl);
- /* Reset DECL_RTL back, as various parts of the compiler expects
- DECL_RTL set meaning it is actually going to be output. */
- SET_DECL_RTL (decl, NULL);
+ rtl = make_decl_rtl_for_debug (decl);
if (!MEM_P (rtl)
|| GET_CODE (XEXP (rtl, 0)) != SYMBOL_REF
|| SYMBOL_REF_DECL (XEXP (rtl, 0)) != decl)