2010-09-05 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 2010 10:47:05 +0000 (10:47 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Sep 2010 10:47:05 +0000 (10:47 +0000)
commit88be39994677fe70031c9213438c6dbf24429111
tree67feb12fc771c5fabd29cc9489e084e60304dbdd
parenteb9063bf894417a19a40739b2cc4b4be939a4db9
2010-09-05  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45535
* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
dereferencing it.
(indirect_refs_may_alias_p): Likewise.

* gcc.c-torture/compile/pr45535.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163877 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr45535.c [new file with mode: 0644]
gcc/tree-ssa-alias.c