* cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171924
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-04-04 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/48404
+ * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
+ Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
+
2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
* tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
* tree.h (struct tree_const_decl): Inherit from tree_decl_common.
val = gen_rtx_VAR_LOCATION
(mode, vexpr, (rtx)value, VAR_INIT_STATUS_INITIALIZED);
val = gen_rtx_VAR_LOCATION
(mode, vexpr, (rtx)value, VAR_INIT_STATUS_INITIALIZED);
- val = emit_debug_insn (val);
FOR_EACH_IMM_USE_STMT (debugstmt, imm_iter, op)
{
FOR_EACH_IMM_USE_STMT (debugstmt, imm_iter, op)
{
{
/* We can't dump the insn with a TREE where an RTX
is expected. */
{
/* We can't dump the insn with a TREE where an RTX
is expected. */
- INSN_VAR_LOCATION_LOC (val) = const0_rtx;
+ PAT_VAR_LOCATION_LOC (val) = const0_rtx;
maybe_dump_rtl_for_gimple_stmt (stmt, last);
maybe_dump_rtl_for_gimple_stmt (stmt, last);
- INSN_VAR_LOCATION_LOC (val) = (rtx)value;
+ PAT_VAR_LOCATION_LOC (val) = (rtx)value;
}
/* In order not to generate too many debug temporaries,
}
/* In order not to generate too many debug temporaries,