From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 074E93858D33; Wed, 28 Dec 2022 10:07:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 074E93858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672222072; bh=1+OpZQq61vlHvrEXieXqlo6bTRmKrI2l/12cmXPVIq0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KwRJ8hrkSQjoGC03wZp9Nn+rvZmyv3qGiML9Dn/aHkwtUGUXkQ6y/dYJQ9F6Ll/UV S9xHdiGBU+RLFvZP/n1b7AlAtYs91S4vHi8PCCEEcqstuEb3VvzNUXascZzqGB838m y0dsBG2+B2mcuOc1Q4Ihaxt+tXUaeK6fLkdlXbFk= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107467] [12/13 Regression] Miscompilation involing -Os , -flto and -fno-strict-aliasing Date: Wed, 28 Dec 2022 10:07:49 +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: 12.2.0 X-Bugzilla-Keywords: lto, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to keywords bug_status 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=3D107467 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|marxin at gcc dot gnu.org |unassigned at gcc d= ot gnu.org Keywords|needs-bisection | Status|ASSIGNED |NEW --- Comment #6 from Martin Li=C5=A1ka --- Running that under valgrind I see it started with r12-656-ga564da506f52be66: =3D=3D13643=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D13643=3D=3D at 0x401148: bool compare_pairs(pair const&, pair const&) (pr107467-2.C:12) =3D=3D13643=3D=3D by 0x401176: Combined::clashy() [clone .is= ra.0] (pr107467-2.C:23) =3D=3D13643=3D=3D by 0x4011B2: other_func() (pr107467-2.C:40) =3D=3D13643=3D=3D by 0x4011ED: main (pr107467-2.C:48) So I guess it might be something in between DSE and aliasing info investiga= ted by IPA modref. @Honza: Can you take a look?=