fold-const.c (fold_binary): When comparing two simple ADDR_EXPR expressions...
authorJeff Law <law@redhat.com>
Wed, 13 Jul 2005 16:31:23 +0000 (10:31 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 13 Jul 2005 16:31:23 +0000 (10:31 -0600)
commit59f7a2023f89b0405726d42a2391bb12efb1458c
tree74485a550b11de6d6b4c0f96a5a04ad88b50adb4
parent4969c0d82c8bc9a2815883e3c968d81287c83483
fold-const.c (fold_binary): When comparing two simple ADDR_EXPR expressions...

        * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
        expressions, test their _DECL operands for pointer equality rather
        than using operand_equal_p.

        * gcc.dg/tree-ssa/pr22321.c: New test.

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