aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-04-04 09:02:50 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-04-04 09:02:50 +0200
commite8c6bb74735360c22bdae320caaee5f5db7d6092 (patch)
tree11790f941e152788921dcac7d77a617354d55510 /gcc/cfgexpand.c
parent2c081cafc80c97f54fe190cf53ae9c85e9072d2b (diff)
downloadgcc-e8c6bb74735360c22bdae320caaee5f5db7d6092.zip
gcc-e8c6bb74735360c22bdae320caaee5f5db7d6092.tar.gz
gcc-e8c6bb74735360c22bdae320caaee5f5db7d6092.tar.bz2
re PR debug/48401 (ICE: RTL check: access of elt 4 of 'var_location' with last elt 2 in expand_gimple_basic_block, at cfgexpand.c:3585)
PR debug/48404 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment. Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC. From-SVN: r171924
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index cdd7d03..81a23d4 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -3517,7 +3517,7 @@ expand_gimple_basic_block (basic_block bb)
val = gen_rtx_VAR_LOCATION
(mode, vexpr, (rtx)value, VAR_INIT_STATUS_INITIALIZED);
- val = emit_debug_insn (val);
+ emit_debug_insn (val);
FOR_EACH_IMM_USE_STMT (debugstmt, imm_iter, op)
{
@@ -3582,9 +3582,9 @@ expand_gimple_basic_block (basic_block bb)
{
/* 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);
- INSN_VAR_LOCATION_LOC (val) = (rtx)value;
+ PAT_VAR_LOCATION_LOC (val) = (rtx)value;
}
/* In order not to generate too many debug temporaries,