From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C325385E459; Tue, 22 Mar 2022 10:58:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C325385E459 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/105012] [12 Regression] wrf from SPECCPU2017 ICEs during LTO linking since r12-7692-g8db155ddf8cec9 Date: Tue, 22 Mar 2022 10:58:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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 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: Tue, 22 Mar 2022 10:58:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105012 --- Comment #6 from Martin Li=C5=A1ka --- (In reply to Richard Biener from comment #4) > OK, so we have >=20 > (gdb) p debug_gimple_stmt (stmt) > derf(address-taken) =3D{v} {CLOBBER}; >=20 > lacking virtual operands and the LHS is >=20 > type type ... >=20 > that stmt is input this way from LTO bytecode. The following should catch > who's building this. >=20 > diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc > index e321d929fd0..fa92a505771 100644 > --- a/gcc/tree-cfg.cc > +++ b/gcc/tree-cfg.cc > @@ -4512,7 +4512,8 @@ verify_gimple_assign_single (gassign *stmt) > } >=20=20 > if (gimple_clobber_p (stmt) > - && !(DECL_P (lhs) || TREE_CODE (lhs) =3D=3D MEM_REF)) > + && !((DECL_P (lhs) && TREE_CODE (lhs) !=3D FUNCTION_DECL) > + || TREE_CODE (lhs) =3D=3D MEM_REF)) > { > error ("%qs LHS in clobber statement", > get_tree_code_name (TREE_CODE (lhs))); Let me find the builder of this.=