From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C08AF3857423; Fri, 9 Sep 2022 12:32:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C08AF3857423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662726757; bh=RLrA+VQZrCNA7V6lQM9bi+IUxcZJ6UKzIsYqlcr1N4s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vIarvwRqZ8GiBEsE8lf56VYkCQUuB+S3LpaLiQCQLUx8SP2TVs6m/wrxXSkBdZVdd IKcI72p9gLJfe5mqNyr4raYLE6E3CdC/t6M4n6EPR/foAYLpAdzHczFOZcxNNR36wl ope4FvkHasqzi4gz+DkFl3zsPLNZa1hlvA0I0n+o= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106722] bogus uninit warning in tree-vect-loop-manip.cc Date: Fri, 09 Sep 2022 12:32:37 +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 X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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=3D106722 --- Comment #7 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:a8b0b13da7379feb31950a9d2ad74b98a29c547f commit r13-2560-ga8b0b13da7379feb31950a9d2ad74b98a29c547f Author: Richard Biener Date: Fri Sep 9 12:06:38 2022 +0200 tree-optimization/106722 - avoid invalid pointer association in predcom When predictive commoning builds a reference for iteration N it prematurely associates a constant offset into the MEM_REF offset operand which can be invalid if the base pointer then points outside of an object which alias-analysis does not consider valid. PR tree-optimization/106722 * tree-predcom.cc (ref_at_iteration): Do not associate the constant part of the offset into the MEM_REF offset operand, across a non-zero offset. * gcc.dg/torture/pr106892.c: New testcase.=