From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 665B53858CDA; Tue, 8 Nov 2022 09:34:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 665B53858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667900056; bh=aMLIJdYT9husG0sjUepk+FCRZ1h2RDpSar0aDolNAWE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IDKynFMlZdmMq/t48ntI2sTArFMW84f/kr4RWfEdQdbfkgaZ1GOY+0k9+wc/Ql5Y4 sLwaV9AGCI071/UciNdEp0xj8ff/+bJmsAHSPHreVrJRIGBvLDs9yWF5wyYUicRUdB tIdiVIrCuxO9tzKK9dcZSS660cFN732Hq8S86saE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107561] [13 Regression] g++.dg/pr17488.C and [g++.dg/warn/Warray-bounds-16.C -m32] regression due to -Wstringop-overflow problem Date: Tue, 08 Nov 2022 09:34:10 +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: 13.0 X-Bugzilla-Keywords: diagnostic, testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 13.0 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=3D107561 --- Comment #3 from Richard Biener --- This probably boils down to the object size machinery ignoring [0, 0] (aka = not picking a convex hull of the range). The range implementation of all these passes should be using irange<> (but with wide_ints, not trees) instead of doing their own thing.=