re PR middle-end/28683 (ICE (segfault in add_reg_br_prob_note) when comparing pointer...
authorJakub Jelinek <jakub@redhat.com>
Sat, 26 Aug 2006 07:31:30 +0000 (09:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 26 Aug 2006 07:31:30 +0000 (09:31 +0200)
commitfa1ff4eb8cb4ec1474d6ab338b6840a2140b588d
tree87d9a8578bc5a8967ed24c9ba921f21c3bccb117
parent7acf7efa8947cf2990cbdc670ea3adeace4a4394
re PR middle-end/28683 (ICE (segfault in add_reg_br_prob_note) when comparing pointers with -O (and higher))

PR middle-end/28683
* cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
3 following insns.

* gcc.c-torture/compile/20060823-1.c: New test.

From-SVN: r116467
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20060823-1.c [new file with mode: 0644]