From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5ED83857027; Thu, 19 Oct 2023 08:06:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5ED83857027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697702775; bh=FjuVlRDiQdt8mLJho/7EM/VBWEPdQeBFLPwFg0HmcIY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HTHL/EHH1FUCzMTNtAewZqFFcjf+JDzsBHgDjI/kE7OcYvUuQeGJffEinvukl6gid dunaBRXpbRWeZzVjkQ5v1hkOSByJ4fz5l4wwwtf6UzbKQr4m/vZFoWNvNWhYTQjKw4 QteqMk+5XbKXANSlYbhH/Fh3KhS6WS50Lsq5SL3U= From: "19373742 at buaa dot edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111873] runtime Segmentation fault with '-O3 -fno-code-hoisting -fno-early-inlining -fno-tree-fre -fno-tree-loop-optimize -fno-tree-pre' Date: Thu, 19 Oct 2023 08:06:15 +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: 14.0 X-Bugzilla-Keywords: needs-bisection, needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: 19373742 at buaa dot edu.cn 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=3D111873 --- Comment #2 from CTC <19373742 at buaa dot edu.cn> --- A reduced testcase: struct a { short b; }; int d; const struct a c; void e(short x) {} void f(short x) {} int g(const struct a i) {return 0;} void h(const struct a i) { d =3D g(i); f(i.b); e(i.b); } int main() {=20 h(c); return 0; }=