From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 034653858C41; Tue, 23 Jan 2024 23:34:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 034653858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706052873; bh=+5Ed3rngPalluz3oWOwC606uXytbL5IhVcAEU5IrMn0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cqIEUPhag9CYvdZCqUA9NGadpG1paRu9Fq9gRQfDMTK1Z3Imq9OJB5n7fOy9ncpjY I8bHvc0dm1vsObzfVgGxST9GeorPPgGtmtE0sT3EzSiMB8sgO2E1xIMltmjZA7/LUJ y3AGQF1U5QeiJq7KKe0A7j6X5/jJAM4KXxAguYdA= From: "yshuiv7 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113551] [13 Regression] Miscompilation with -O1 -fno-strict-overflow Date: Tue, 23 Jan 2024 23:34:32 +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.2.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: yshuiv7 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D113551 --- Comment #12 from Yuxuan Shui --- I think this is the MRE: void bug(struct obj *dso) { if (&dso->i) { if (dso =3D=3D (void *)0) return; assert_not_null(dso); } }=