]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer operand.
authorOllie Wild <aaw@google.com>
Sun, 23 Sep 2007 20:05:40 +0000 (20:05 +0000)
committerOllie Wild <aaw@gcc.gnu.org>
Sun, 23 Sep 2007 20:05:40 +0000 (20:05 +0000)
commite5901cad3f42b69cbe7312db7c9afd3d5908bcef
tree2d3fd9b7aeae8ab84d172e1ceed387e1e4e97364
parent50b73fcde42694209997f01f9985dc5928a86fca
fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer operand.

gcc/
fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer operand.
(get_pointer_modulus_and_residue): New function.

gcc/testsuite/
gcc.dg/fold-bitand-1.c: New test.
gcc.dg/fold-bitand-2.c: New test.
gcc.dg/fold-bitand-3.c: New test.
gcc.dg/fold-bitand-4.c: New test.

From-SVN: r128701
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-bitand-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-bitand-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-bitand-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-bitand-4.c [new file with mode: 0644]