From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67A14C433DF for ; Wed, 27 May 2020 21:41:02 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C5F52075A for ; Wed, 27 May 2020 21:41:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oK3Pr/eh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C5F52075A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:38230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1je3nJ-0002Cq-Am for qemu-devel@archiver.kernel.org; Wed, 27 May 2020 17:41:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1je3mj-0001jS-S4 for qemu-devel@nongnu.org; Wed, 27 May 2020 17:40:25 -0400 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]:36671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1je3mi-0004Ey-2J for qemu-devel@nongnu.org; Wed, 27 May 2020 17:40:25 -0400 Received: by mail-oo1-xc34.google.com with SMTP id 18so574366ooy.3 for ; Wed, 27 May 2020 14:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hOp9Kek0xMpWMgbiq6UzR9ruf5brIKfzYIbtnNJJ8a0=; b=oK3Pr/eh5TC1uNSVvMWqm+8eAVv32C4lF57gvwKDSdRLsWvuRQ4onhgy7C+xeJUcyC 07tVM6Iugfd6hAYZecZuq0SgWNuzRHUvlYHNlNS7qcRWFgXRflXz7ViDGBU15sgSSmwx A6k4j23+iLBBrRF44u7Axkb9CKvmKVdf8smh7thjz75KIusWVulrTfK4cB0tJW06SlwB 327DvYHPaLkzWadJb7qLtiwHDhx6CeYVYBKbhjg3ZQCsOm8OqqRcQadoQvPRpi20t6IP vKQVvHmPgIL0lt9B4025Ux0YgTa5Yl79+KwfPxDm66KO+6iAoa+R06m632WiFTvV0QmK jc8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hOp9Kek0xMpWMgbiq6UzR9ruf5brIKfzYIbtnNJJ8a0=; b=g/aN6R/WRQZvRa0KV4wY7SU959gOKXmEdFRy0HUTNEkBMpzzp5Gv+au6dV0WLyHckn QmzxAa7GiO6RlGf3kyTpxBMvCAMtQkrth2BPxo+T3epugiAd/IeduWLRBvjBHySIIEMz TnunVWCDwQ6CvKs657aEB2ZqlF1IoKDRXBWA7z4yHPOmWTZi5TWDD9YErM7M+kpnkiGm C752gn3mN1kdrske0MkdEtizAOMEhSVctXDTjQL3o9Qow5uwVBqbjP81diD73V13yIoO oK2YfMgKR6LJUjtCjlXnppTAxP1QeN/kig5hlnwnRc9xcw0itcVu6TG0ayJiTwpsHD2X 7TKQ== X-Gm-Message-State: AOAM532+3RPS6TCQ1AWdBwR1zR0gmREKMMCjiNM0vnHWsqYVxQU74E+u WDGAar21egCsErH8JU3p2ig715QK3WuCvlNCtOswyJ7CcvE= X-Google-Smtp-Source: ABdhPJw+BcQMCBDmvfgoRCVJr/aZdHyYTinAFpL8wpkLAQsZJrTl5sf3qbepH/jg0QcPq65Ixdcp/MkBrR+EMfk7gPA= X-Received: by 2002:a05:6820:5b:: with SMTP id v27mr147945oob.85.1590615622473; Wed, 27 May 2020 14:40:22 -0700 (PDT) MIME-Version: 1.0 References: <159060681483.5838.13632051970488338647.malonedeb@wampee.canonical.com> In-Reply-To: <159060681483.5838.13632051970488338647.malonedeb@wampee.canonical.com> From: Peter Maydell Date: Wed, 27 May 2020 22:40:10 +0100 Message-ID: Subject: Re: [Bug 1881004] [NEW] fpu/softfloat.c: error: bitwise negation of a boolean expression To: Bug 1881004 <1881004@bugs.launchpad.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::c34; envelope-from=peter.maydell@linaro.org; helo=mail-oo1-xc34.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Developers Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Wed, 27 May 2020 at 20:21, Philippe Mathieu-Daud=C3=A9 <1881004@bugs.launchpad.net> wrote: > > Public bug reported: > > Last time I built QEMU was on commit d5c75ec500d96f1d93447f990cd5a4ef5ba2= 7fae, > I just pulled to fea8f3ed739536fca027cf56af7f5576f37ef9cd and now get: > > CC lm32-softmmu/fpu/softfloat.o > fpu/softfloat.c:3365:13: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] > absZ &=3D ~ ( ( ( roundBits ^ 0x40 ) =3D=3D 0 ) & roundNearestEven ); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ! "(x & y)" is not a boolean expression, so we should report this to clang as a bug (I assume what they actually are trying to complain about is bitwise AND with a boolean expression). thanks -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 075BBC433E0 for ; Wed, 27 May 2020 21:46:40 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC1992075A for ; Wed, 27 May 2020 21:46:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC1992075A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:42878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1je3sl-0005Pq-23 for qemu-devel@archiver.kernel.org; Wed, 27 May 2020 17:46:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1je3sA-00050w-AY for qemu-devel@nongnu.org; Wed, 27 May 2020 17:46:02 -0400 Received: from indium.canonical.com ([91.189.90.7]:48062) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1je3s8-0006ZQ-NQ for qemu-devel@nongnu.org; Wed, 27 May 2020 17:46:01 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1je3s5-0007sH-7j for ; Wed, 27 May 2020 21:45:57 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D07EF2E812C for ; Wed, 27 May 2020 21:45:55 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 27 May 2020 21:40:10 -0000 From: Peter Maydell <1881004@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: philmd pmaydell X-Launchpad-Bug-Reporter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9_=28philmd?= =?utf-8?q?=29?= X-Launchpad-Bug-Modifier: Peter Maydell (pmaydell) References: <159060681483.5838.13632051970488338647.malonedeb@wampee.canonical.com> Message-ID: Subject: Re: [Bug 1881004] [NEW] fpu/softfloat.c: error: bitwise negation of a boolean expression X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="275d46a24253e557e4403d52832837e4bfa425b6"; Instance="production-secrets-lazr.conf" X-Launchpad-Hash: 782c2b33ae174482c67beab5b97032f568748273 Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/27 17:45:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1881004 <1881004@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Message-ID: <20200527214010.itGkVGFXlvKYhnUoThz99aKEzI7Bkw7cOre0ONxWHF8@z> On Wed, 27 May 2020 at 20:21, Philippe Mathieu-Daud=C3=A9 <1881004@bugs.launchpad.net> wrote: > > Public bug reported: > > Last time I built QEMU was on commit d5c75ec500d96f1d93447f990cd5a4ef5ba2= 7fae, > I just pulled to fea8f3ed739536fca027cf56af7f5576f37ef9cd and now get: > > CC lm32-softmmu/fpu/softfloat.o > fpu/softfloat.c:3365:13: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] > absZ &=3D ~ ( ( ( roundBits ^ 0x40 ) =3D=3D 0 ) & roundNearestEven ); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ! "(x & y)" is not a boolean expression, so we should report this to clang as a bug (I assume what they actually are trying to complain about is bitwise AND with a boolean expression). thanks -- PMM -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1881004 Title: fpu/softfloat.c: error: bitwise negation of a boolean expression Status in QEMU: New Bug description: Last time I built QEMU was on commit d5c75ec500d96f1d93447f990cd5a4ef5ba2= 7fae, I just pulled to fea8f3ed739536fca027cf56af7f5576f37ef9cd and now get: = CC lm32-softmmu/fpu/softfloat.o fpu/softfloat.c:3365:13: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] absZ &=3D ~ ( ( ( roundBits ^ 0x40 ) =3D=3D 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! fpu/softfloat.c:3423:18: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] absZ0 &=3D ~ ( ( (uint64_t) ( absZ1<<1 ) =3D=3D 0 ) & roundNeares= tEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! fpu/softfloat.c:3483:18: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] absZ0 &=3D ~(((uint64_t)(absZ1<<1) =3D=3D 0) & roundNearestEven); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! fpu/softfloat.c:3606:13: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] zSig &=3D ~ ( ( ( roundBits ^ 0x40 ) =3D=3D 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! fpu/softfloat.c:3760:13: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] zSig &=3D ~ ( ( ( roundBits ^ 0x200 ) =3D=3D 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! fpu/softfloat.c:3987:21: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] ~ ( ( (uint64_t) ( zSig1<<1 ) =3D=3D 0 ) & roundNeare= stEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ ! fpu/softfloat.c:4003:22: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] zSig0 &=3D ~ ( ( (uint64_t) ( zSig1<<1 ) =3D=3D 0 ) & roundNe= arestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ ! fpu/softfloat.c:4273:18: error: bitwise negation of a boolean expression;= did you mean logical negation? [-Werror,-Wbool-operation] zSig1 &=3D ~ ( ( zSig2 + zSig2 =3D=3D 0 ) & roundNearestEven ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! 8 errors generated. $ clang -v clang version 10.0.0-4ubuntu1 = Target: aarch64-unknown-linux-gnu $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1881004/+subscriptions