From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30235385829A; Sat, 10 Sep 2022 05:47:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30235385829A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662788841; bh=+tZHz7N20SIWNFCZ39sGha4+tkbf7DdVaaG0lNm/Rt0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IEGF2mgmQ1tTHzhLyPa422ah5xdbnrqRslSHMYloRGpgzZzjnPVk4KryPxkUBX4A2 gqyDsxgMlwjoRB82QPlRvwmuk+Fe0BbF63L94agd8lr/KHl237TGpkbS/BQ4JvlHTq 2iLr7SlHpw4WmDqKt/0n5l61ZBjTNS0uT4JfArgM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106900] Regression after memchr optimization Date: Sat, 10 Sep 2022 05:47:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: keywords 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=3D106900 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Andrew Pinski --- Looks like gcc can't figure out that isize can't be 0 even if there was a c= heck for integer_zerop (size) before hand. There must be a way to add an assert there to allow gcc to figure that out.=