From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F0FAD3858D32; Fri, 13 Jan 2023 09:27:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0FAD3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673602076; bh=MOEwwfmU5CqAliZ2Fetq/KYQjmcvxn/ee/Y3lPScN6E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cECGqnABABUCNW97Q84sOGWxAmlhD7hxvkeilyx5wx4I/R4v3VptQox/1kxQO7lYe I9sh8d1h0y+d+NkJFvgqJIVnkOA4V5lCdON2+gYo3ebfiUNfbkfR0mw6ajTlJZ2s5J qJVqYJ05sn23dgRHG41P23KY6YsQQnOU95EkB/9E= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/107950] partial LTO linking of libbackend.a: gcc/gcc-rich-location.cc:207: undefined reference to `range_label_for_type_mismatch::get_text(unsigned int) const' Date: Fri, 13 Jan 2023 09:27:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D107950 --- Comment #6 from Martin Li=C5=A1ka --- (In reply to Andrew Pinski from comment #5) > It might be the case the object files were unused in the archive so they = are > not linked in the LTO front-end but now with using LTO partial linking, t= hey > are pulled in always. Yes, that's likely what's happening. So the question is if the issue is cau= sed by partial linking, or if the function definition should be provided in libbackend.a itself?=