diff options
author | Maxim Kuvyrkov <mkuvyrkov@ispras.ru> | 2006-06-13 09:00:52 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <mkuvyrkov@gcc.gnu.org> | 2006-06-13 09:00:52 +0000 |
commit | cd8d4e24e0b04c77dd709aeea7075d0a6a0f2833 (patch) | |
tree | 3ee4de19bc4d91a97698d9e5ce11dbea505c085b /gcc/haifa-sched.c | |
parent | 5123ad0975a0a439b6c97670beb1125a7f929d8f (diff) | |
download | gcc-cd8d4e24e0b04c77dd709aeea7075d0a6a0f2833.zip gcc-cd8d4e24e0b04c77dd709aeea7075d0a6a0f2833.tar.gz gcc-cd8d4e24e0b04c77dd709aeea7075d0a6a0f2833.tar.bz2 |
re PR middle-end/26807 (FAIL: gcc.dg/torture/pr24626-1.c -O2 (test for excess errors))
2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
PR middle-end/26807
* haifa-sched.c (check_cfg): Handle special case.
From-SVN: r114606
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 70c13b1..3111ee9 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -4673,8 +4673,13 @@ check_cfg (rtx head, rtx tail) gcc_assert (EDGE_COUNT (bb->succs) == 1 && BARRIER_P (NEXT_INSN (head))); else if (any_condjump_p (head)) - gcc_assert (EDGE_COUNT (bb->succs) > 1 - && !BARRIER_P (NEXT_INSN (head))); + gcc_assert (/* Usual case. */ + (EDGE_COUNT (bb->succs) > 1 + && !BARRIER_P (NEXT_INSN (head))) + /* Or jump to the next instruction. */ + || (EDGE_COUNT (bb->succs) == 1 + && (BB_HEAD (EDGE_I (bb->succs, 0)->dest) + == JUMP_LABEL (head)))); } if (BB_END (bb) == head) { |