From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5246C385700A; Fri, 21 Apr 2023 17:05:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5246C385700A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682096703; bh=GIPH7HqswsmcRTUM6vUJNw+pdxYKGFKSTY5ENQlkLao=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QHoULN7zjpqkhtx4pNNezF+qyKwhEPM56TIsa8V9AqZhe6o8iXHJfCttNonD1ygcq yyONoJ3x5sltNVAz38k5Gr59s38oYrwaDKOdVJLfQOttCGVjWcueEXGFMQI9bX94QF JYP5K0dj8Hp3j1yP17MNtchwSEG56CvAuRw7Tm4o= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109585] Carla/sord miscompiled with -O2 on ARM64 (inlining issue) Date: Fri, 21 Apr 2023 17:05:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: alias, wrong-code 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: 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=3D109585 --- Comment #10 from Andrew Pinski --- If I change zix_btree_iter_is_end to: ZIX_API bool zix_btree_iter_is_end(const struct ZixBTreeIterImpl* const i) { if (!i) return 1; if (i->stack[0].node =3D=3D NULL) return 1; return 0; } Then both the C and C++ front-end generated IR causes the segfault.=