re PR tree-optimization/58794 (ICE in set_lattice_value, at tree-ssa-ccp.c:455 on...
commit2445aeac04784c53dcf24a2cf1bbf2f58a1fa7dd
authorRichard Biener <rguenther@suse.de>
Mon, 21 Oct 2013 13:33:29 +0000 (21 13:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 21 Oct 2013 13:33:29 +0000 (21 13:33 +0000)
tree2c119af718c18fb0704fced88a9f1f6ccdffaab7
parentd480e6a572799f809744075cdf447f959753b173
re PR tree-optimization/58794 (ICE in set_lattice_value, at tree-ssa-ccp.c:455 on x86_64-linux-gnu (at -O1, -O2, and -O3))

2013-10-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/58794
* fold-const.c (operand_equal_p): Compare FIELD_DECL operand
of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.

* c-c++-common/torture/pr58794-1.c: New testcase.
* c-c++-common/torture/pr58794-2.c: Likewise.

From-SVN: r203891
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr58794-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/torture/pr58794-2.c [new file with mode: 0644]