]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR debug/43670 ("-fcompare-debug failure (length)" with -O -ftree-vrp)
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Apr 2010 09:16:28 +0000 (11:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Apr 2010 09:16:28 +0000 (11:16 +0200)
commitaa847cc8ec88e3eb7f6671ad9ea1988ae3d7edbf
treef638eb80b05abfc09514aa002cdf9ab96e266514
parent1dcc82c2c7975d324ad401dc0797eb15463ce53e
re PR debug/43670 ("-fcompare-debug failure (length)" with -O -ftree-vrp)

PR debug/43670
* cfgexpand.c (expand_debug_expr): If for non-NULL offset
op0 is not a MEM, just return NULL instead of assertion
failure.
(discover_nonconstant_array_refs): Don't walk debug stmts.

* gcc.dg/pr43670.c: New test.

From-SVN: r158108
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr43670.c [new file with mode: 0644]