From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E84AB3856972; Wed, 4 Oct 2023 07:27:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E84AB3856972 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696404424; bh=yu1MaXQ3cHb3g9DfrKmLogI6HdzjYO8enBEh1Gcd4J0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=McpuDqA1fgZV1XaSOAMqM5vGy5OPDDpN5w+NxwagjIqVq+mjGqs4k6K22pnmpMUSJ C3xIEgptvret4d3RyLS9O0TfpdHEb3xCRwhz+FE4SRy15fuCNArOVAhg3J91PpsbCb j2B9dt4I1IUQdvmGsmWhM1EZ2G0LFNOvlnXWGg2E= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111684] enhancement: gcc doesn't warn about pointless tests Date: Wed, 04 Oct 2023 07:27:04 +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: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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=3D111684 --- Comment #3 from David Binderman --- (In reply to David Binderman from comment #2) > I've had a quick look at the linux-6.6-rc4 kernel code=20 > and found about a dozen examples of this problem, so there=20 > would be some customers for a solution. A full look suggests there are about 30 examples. Surprising.=