qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 04/10] linux-user: completely re-write init_guest_space


From: Peter Maydell
Subject: Re: [PATCH v1 04/10] linux-user: completely re-write init_guest_space
Date: Fri, 22 May 2020 11:36:57 +0100

On Fri, 22 May 2020 at 11:24, Alex Bennée <address@hidden> wrote:
> Examples:
>
>   /tmp/qemu-test/src/fpu/softfloat.c:3365:13: error: bitwise negation of a 
> boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
>       absZ &= ~ ( ( ( roundBits ^ 0x40 ) == 0 ) & roundNearestEven );
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>               !
>   /tmp/qemu-test/src/fpu/softfloat.c:3423:18: error: bitwise negation of a 
> boolean expression; did you mean logical negation? [-Werror,-Wbool-operation]
>           absZ0 &= ~ ( ( (uint64_t) ( absZ1<<1 ) == 0 ) & roundNearestEven );
>                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                    !

These warnings as printed seem like compiler bugs -- '&' is a bitwise
operator, not a boolean one. (Probably the compiler intends to warn
about use of the bitwise & on the boolean == result, though.)

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]