re PR tree-optimization/71872 (ICE in inchash::add_expr, at tree.c:7782 - OEP_ADDRESS...
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Jul 2016 18:30:38 +0000 (20:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Jul 2016 18:30:38 +0000 (20:30 +0200)
commita241f8ca212b7f27a986e495c15d6890d0dbb44e
tree70c8b241e003ffacf8da6bef436a08f5cde8f461
parentd62b809c11f21a96648cc15a8f3d922cc15137c4
re PR tree-optimization/71872 (ICE in inchash::add_expr, at tree.c:7782 - OEP_ADDRESS_OF asserted for ADDR_EXPR applied to constant)

PR tree-optimization/71872
* tree-data-ref.c (get_references_in_stmt): Ignore references
with is_gimple_constant get_base_address.

* gcc.c-torture/compile/pr71872.c: New test.

From-SVN: r238351
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr71872.c [new file with mode: 0644]
gcc/tree-data-ref.c