From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8B1FF3858D29; Thu, 23 Sep 2021 20:34:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B1FF3858D29 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102474] New: [12 regression] Crash in ipa-modref compiling Go code Date: Thu, 23 Sep 2021 20:34:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: ian at airs dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2021 20:34:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102474 Bug ID: 102474 Summary: [12 regression] Crash in ipa-modref compiling Go code Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ian at airs dot com Target Milestone: --- Compiling this Go program with -O1 -fno-strict-aliasing crashes the compile= r in ipa-modref. package p type S struct { f1 string f2 interface{} f3 string f4 struct { f41 uint32 f42 struct { f421 int32 f422 uint32 } } f5 struct { f51 *byte f52 *byte f53 *byte } f6 struct { f61 int32 } f7 struct { f71 uint64 f72 int64 f73 *byte } f8 *byte } The crash I see is: during IPA pass: modref go1: internal compiler error: in forced_merge, at ipa-modref-tree.h:351 0xcbaff1 modref_access_node::forced_merge(modref_access_node const&, bool) ../../trunk/gcc/ipa-modref-tree.h:351 0xcbe389 modref_ref_node::insert_access(modref_access_node, unsigned l= ong, bool) ../../trunk/gcc/ipa-modref-tree.h:575 0xcbe8e3 modref_tree::insert(int, int, modref_access_node, bool) ../../trunk/gcc/ipa-modref-tree.h:844 0xcb65de propagate_unknown_call ../../trunk/gcc/ipa-modref.c:3418 0xcb6a69 modref_propagate_in_scc ../../trunk/gcc/ipa-modref.c:3598 0xcb740e execute ../../trunk/gcc/ipa-modref.c:3968 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=