re PR tree-optimization/32461 (Segmentation fault in build_classic_dist_vector_1...
authorSebastian Pop <sebpop@gmail.com>
Sun, 24 Jun 2007 20:59:02 +0000 (20:59 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Sun, 24 Jun 2007 20:59:02 +0000 (20:59 +0000)
commita49c5793d5df1c90f00aa0419b1f218bb4983fd9
treeb5ef95b7a52b4aaad86fe4118925cd68be322d23
parent4e16ca9a8206d0951baab2140533c8e59d8bf3d3
re PR tree-optimization/32461 (Segmentation fault in build_classic_dist_vector_1() at tree-data-ref.c:2700)

PR middle-end/32461
* fold-const.c (fold_binary): Strip nops of operand 0
of BIT_NOT_EXPR before calling operand_equal_p.
* testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
* testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.

From-SVN: r125988
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/gcc.dg/tree-ssa/pr32461-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr32461-2.c [new file with mode: 0644]