re PR debug/49522 (Divide by zero in validate_subreg in emit-rtl.c:695)
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Jul 2011 16:05:55 +0000 (18:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Jul 2011 16:05:55 +0000 (18:05 +0200)
commitd7ff1e110e6765991e0ff3973a3556dddce98230
tree407e91934844e7b9fd941aca5c5cc2edbc64dfc2
parent2492731a82d9b391d07511dc1ea46944267c9eed
re PR debug/49522 (Divide by zero in validate_subreg in emit-rtl.c:695)

PR debug/49522
* df-problems.c (dead_debug_reset): Remove dead_debug_uses
referencing debug insns that have been reset.
(dead_debug_insert_before): Don't assert reg is non-NULL,
instead return immediately if it is NULL.

* gcc.dg/debug/pr49522.c: New test.

M    gcc/ChangeLog
A    gcc/testsuite/gcc.dg/debug/pr49522.c
M    gcc/testsuite/ChangeLog
M    gcc/df-problems.c

From-SVN: r175987
gcc/ChangeLog
gcc/df-problems.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/pr49522.c [new file with mode: 0644]