summaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-13 15:53:41 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-13 15:53:41 +0000
commit3430348274cab35a05ba26a09da4d7eec358d9c4 (patch)
treecb0be27f88176ac210a7c6e53c61ca11c643d249 /gcc/cfgexpand.c
parentec80f01f4525551ee07b80b9928b0882699d34ba (diff)
downloadgcc-3430348274cab35a05ba26a09da4d7eec358d9c4.tar.gz
2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 152709 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@152713 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 2117ee3bc52..6882954fab8 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2361,6 +2361,18 @@ expand_debug_expr (tree exp)
op1 = wrap_constant (GET_MODE_INNER (mode), op1);
return gen_rtx_CONCAT (mode, op0, op1);
+ case DEBUG_EXPR_DECL:
+ op0 = DECL_RTL_IF_SET (exp);
+
+ if (op0)
+ return op0;
+
+ op0 = gen_rtx_DEBUG_EXPR (mode);
+ DEBUG_EXPR_TREE_DECL (op0) = exp;
+ SET_DECL_RTL (exp, op0);
+
+ return op0;
+
case VAR_DECL:
case PARM_DECL:
case FUNCTION_DECL: