From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 7E2CB3858D39 for ; Tue, 9 Nov 2021 11:45:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7E2CB3858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from tarox.wildebeest.org (83-87-18-245.cable.dynamic.v4.ziggo.nl [83.87.18.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 2EFA6302FBA6; Tue, 9 Nov 2021 12:45:42 +0100 (CET) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 98D5B413CC9A; Tue, 9 Nov 2021 12:45:40 +0100 (CET) Message-ID: <618afb58a9328bc9bbcc394fc17ef907ac6f188e.camel@klomp.org> Subject: Re: [PATCH v2] Improve building with LTO From: Mark Wielaard To: Martin =?UTF-8?Q?Li=C5=A1ka?= , "Dmitry V. Levin" , elfutils-devel@sourceware.org Date: Tue, 09 Nov 2021 12:45:40 +0100 In-Reply-To: <9eba865f-af61-6452-161c-2dc081ebae69@suse.cz> References: <20210214235718.7654b5f1.alex.miller@gmx.de> <20210218033856.18053044.alex.miller@gmx.de> <20210828093143.GA720@altlinux.org> <20211104112320.GA732@altlinux.org> <20211108100228.GC27916@altlinux.org> <20211109085820.GA11255@altlinux.org> <9eba865f-af61-6452-161c-2dc081ebae69@suse.cz> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2021 11:45:46 -0000 Hi Martin, On Tue, 2021-11-09 at 10:04 +0100, Martin Li=C5=A1ka wrote: > On 11/9/21 09:58, Dmitry V. Levin wrote: > > Yes, but those who build elfutils with -flto are likely using > > -ffat-lto-objects if they build static libraries. >=20 > Yes, I can confirm that we do that as openSUSE, we actually build > with: >=20 > -flto -flto-partition=3Dnone -Wno-error=3Dstack-usage=3D -ffat-lto-object= s As Dmitry pointed out you should now be able to drop both -flto- partition=3Dnone an -Wno-error=3Dstack-usage=3D (the linker will still warn= , but not error on the large stack-usage issues (we should probably still fix them though). What do the test results look like? Do they all PASS with -ffat-lto- objects? Could you try the proposed patch for https://sourceware.org/bugzilla/show_bug.cgi?id=3D27367 https://sourceware.org/pipermail/elfutils-devel/2021q4/004314.html Thanks, Mark