fold-const.c (extract_array_ref): Handle more cases, do some useful canonicalization...
commit4ea73bfac370705eaf74e204264bf994c51bdfd9
authorJeff Law <law@gcc.gnu.org>
Tue, 31 May 2005 14:33:29 +0000 (31 08:33 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 31 May 2005 14:33:29 +0000 (31 08:33 -0600)
treea7d96a788cce99a3c5e29aae3516eefd479c4bc4
parentaa7f91020495d7fb90d297e66b82674c60697968
fold-const.c (extract_array_ref): Handle more cases, do some useful canonicalization of the base.

        * fold-const.c (extract_array_ref): Handle more cases,
        do some useful canonicalization of the base.
        (fold_binary): Explicitly deal with arrays of zero-sized
        structures during folding of &a[i] == &a[j].

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

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