summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-03 08:38:42 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-03 08:38:42 +0000
commitbf07bf98a8277a332920f508ae5d22f29c0dd450 (patch)
tree9c7a0adf93c0d6c5471afb2ef69f5d73daa1a302 /gcc/gcse.c
parent446c6cb5425185b03464f8e077381a786fb3a4ff (diff)
downloadgcc-bf07bf98a8277a332920f508ae5d22f29c0dd450.tar.gz
PR debug/46252
* reload1.c (delete_dead_insn): Use prev_active_insn instead of prev_real_insn. * gcse.c (insert_insn_end_basic_block): Likewise. * gcc.dg/pr46252.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166232 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 39a5d223338..70f0fac0ed4 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -3574,7 +3574,7 @@ insert_insn_end_basic_block (struct expr *expr, basic_block bb)
the new instruction just before the tablejump. */
if (GET_CODE (PATTERN (insn)) == ADDR_VEC
|| GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC)
- insn = prev_real_insn (insn);
+ insn = prev_active_insn (insn);
#ifdef HAVE_cc0
/* FIXME: 'twould be nice to call prev_cc0_setter here but it aborts