From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CB5438432F9; Thu, 24 Nov 2022 17:29:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CB5438432F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669310947; bh=f9Vhx+JSPhze2tpAuBV5Lf1c0htqCJ/NyGpJbcJKksM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IMevZkqgmjz9+BMOh3UQiqqbjlxtE9fZ76q2tgZ4DHpA/A3ojNIs/l7cPemFXudcy kpxJfjKshGT045D1exgnxfNUmiDnC4Kk9CRLf5reKmAYKtDf9trO7Ro3MOMPsIpv3x jHvglRbmfV5qoiX8vSyuH2yYI/BZV1jPyqMj2nv8= From: "arnout at mind dot be" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/107728] with -O0, libgcc in the first stage compiler has reference to libc functions Date: Thu, 24 Nov 2022 17:29:06 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arnout at mind dot be X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED 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=3D107728 --- Comment #5 from Arnout Vandecappelle --- Based on > glibc builds needs to be fixed such that it does not reference the functi= on in the unwinder at -O0 I've traced through the map file why this symbol is pulled in: /.../libgcc.a(unwind-dw2.o) /.../libgcc.a(_umoddi3.o) (_Unwind_Resume) /.../libgcc.a(unwind-dw2-fde-dip.o) /.../libgcc.a(unwind-dw2.o) (_Unwind_Find_FDE) In other words, _umoddi3.o is the one that pulls in the unwinder.=