aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-11-24 09:57:37 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2010-11-24 09:57:37 +0100
commit8a269cb779e5f09e70ebf5b7d54a557570308dd1 (patch)
treed6b39cb77139fcce35c024a4f6a98f220ffb6438 /gcc/cfgexpand.c
parent19804c9217f1bb0604709d32f46c992f3f7fb268 (diff)
downloadgcc-8a269cb779e5f09e70ebf5b7d54a557570308dd1.zip
gcc-8a269cb779e5f09e70ebf5b7d54a557570308dd1.tar.gz
gcc-8a269cb779e5f09e70ebf5b7d54a557570308dd1.tar.bz2
re PR middle-end/46629 (Failed to build 200.sixtrack in SPEC CPU 2000)
PR middle-end/46629 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn) instead of insn with any_condjump_p. From-SVN: r167108
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index a65f12b..f15e4e0 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1695,7 +1695,7 @@ maybe_cleanup_end_of_block (edge e, rtx last)
insn = PREV_INSN (insn);
if (JUMP_P (NEXT_INSN (insn)))
{
- if (!any_condjump_p (insn))
+ if (!any_condjump_p (NEXT_INSN (insn)))
{
gcc_assert (BARRIER_P (NEXT_INSN (NEXT_INSN (insn))));
delete_insn (NEXT_INSN (NEXT_INSN (insn)));