From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC2683858D37; Mon, 10 Oct 2022 19:03:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC2683858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665428605; bh=6h9U92kJS5fF3iX+TRaS6b8Zt01zcJBWc+F4Ir29Ofk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NIBHaUo3fD1C0Km93VBQsl4GnBGfhkAxwdL68fKVyNYoOclk299RAlwnyayoiSEtN NYPFpCD7jA8Dv+ZpbHAyrU7QH/GxVK1pxF2GgOi9MJG47HgM2TROl6tEzxev9zYFn7 95KJ8+pu38wS1pgR2qrhaEvnUSLThM4M3/JupJSw= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/92286] Possible improvement for -Wduplicated-cond warning Date: Mon, 10 Oct 2022 19:03:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92286 --- Comment #5 from David Binderman --- A quick grep suggests two problems in gcc source code: trunk.git/gcc/ada/sysdep.c:423:26: style: Expression is always true because 'else if' condition is opposite to previous condition at line 415. [multiCondition] trunk.git/libsanitizer/sanitizer_common/sanitizer_allocator_primary64.h:547= :27: style: Expression is always true because 'else if' condition is opposite to previous condition at line 538. [multiCondition] and 34 cases in the linux-6.0 kernel.=