PATCH: fold BIT_AND_EXPR's with ADDR_EXPR operands

Jakub Jelinek jakub@redhat.com
Tue Sep 18 09:10:00 GMT 2007


On Mon, Sep 17, 2007 at 11:53:43PM -0700, Ollie Wild wrote:
> 2007-09-07  Ollie Wild  <aaw@google.com>
> 
>       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.

The tests shouldn't cast pointers to (unsigned), but to uintptr_t
or at least size_t, otherwise it is -Wpointer-to-int-cast material
on LP64 architectures.

	Jakub



More information about the Gcc-patches mailing list