OSDN Git Service

PR debug/43670
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Apr 2010 09:16:28 +0000 (09:16 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Apr 2010 09:16:28 +0000 (09:16 +0000)
commitf4b490eac1d781c39ba3c55d6d07bf89b96634a9
treef638eb80b05abfc09514aa002cdf9ab96e266514
parentc2ce8e079cbd1eec478b9f1c5d3ad9f9ac62ac39
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158108 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr43670.c [new file with mode: 0644]