re PR middle-end/49308 (segfault in rest_of_handle_ud_dce () at gcc/gcc/dce.c:518)
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Jun 2011 07:46:28 +0000 (09:46 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Jun 2011 07:46:28 +0000 (09:46 +0200)
commit8ced31fe6da7fbdc1ec732d7ccbf8f3f401cee0d
tree04c78a3f0d60ea8375218ae474e406d2d7bf67f4
parent10c4cabcde3983eb6b79bb9105fd60bc0bfd4361
re PR middle-end/49308 (segfault in rest_of_handle_ud_dce () at gcc/gcc/dce.c:518)

PR middle-end/49308
* dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
variable.  After resetting and rescanning insn continue with previous
statement.

* gfortran.dg/pr49308.f90: New test.

From-SVN: r174839
gcc/ChangeLog
gcc/dce.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr49308.f90 [new file with mode: 0644]