re PR middle-end/70843 (ICE in add_expr, at tree.c:7913)
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Apr 2016 22:23:01 +0000 (00:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Apr 2016 22:23:01 +0000 (00:23 +0200)
commit8b80cc2131a7eb179a75392656b753d51045fb19
tree8377c737763a3df6594340ecbe12fc8605d2c3f5
parent9f405ce1b5bc4befcc4c2ac482e92f1662131659
re PR middle-end/70843 (ICE in add_expr, at tree.c:7913)

PR middle-end/70843
* fold-const.c (operand_equal_p): Don't verify hash value equality
if arg0 == arg1.
* tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
and OMP_CLAUSE.

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

From-SVN: r235615
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr70843.c [new file with mode: 0644]
gcc/tree.c