From nobody Mon Mar 28 11:11:44 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EE1E91A39B32 for ; Mon, 28 Mar 2022 11:11:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KRqlN5XFxz3rLv for ; Mon, 28 Mar 2022 11:11:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 57AFD7AC for ; Mon, 28 Mar 2022 11:11:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22SBBiYZ024055 for ; Mon, 28 Mar 2022 11:11:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22SBBiPn024054 for toolchain@FreeBSD.org; Mon, 28 Mar 2022 11:11:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 261977] lang/gcc12-devel: enable LTO Date: Mon, 28 Mar 2022 11:11:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkubaj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648465904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BM2ksFcXSxuV4qLaYG4yQUSSGV0H+d/YXdd81QxiFtw=; b=saEBOTKvr1dFnGYmLR+TrOsClNH1WSUF5hgwp4HK8qOvGNJhXgd5j1zVWyy0raB45hpzhe EP+BgCBX8xfHpA47/7dy4z5dzl3DcoqLdGOPxe2inNpcL0jyK+TdBMq1N1xdkLrY79SRsk 5Gr7PzDO0amjhC/oeCY8Fd7TO5LRLnkwAHEn8oilKzswe2PjNHO5YJKFJH5U7HsTOwijjf 2ktsayixnX1PRTRmfffGa290uRtu2XfaebDqD/PcU4EEwZTNOI/qdvFMx3coHTNFClF5pq iwMQqGhj3zyzzXb8itue0qfqlqSMCyfl3FWBmNdNcyNfg7EbZCEowRmjqW+osQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648465904; a=rsa-sha256; cv=none; b=o2pp+yvnmeiCOQgKCjTHTH7xLY/vJxoUjTnDF9Eps6UHKtXJnByV4MZmJkhzEa+1PqNddQ BbSL34l21cjnEjJ2OpJxoXr70/VLBeAgYDyd9mhMAtLTomtmPQb5zoBFsRfGjfuE4+5b/C uFapmKyzOVGt6rIe/7MwmzZHMkcKUfK/e/WmYaUbOmlkWu1T4gH60DgB73Am4y1YiaoKuE tOAMckpYSk+a7uNK3MA1Evk2K521oNmc7WY+HM83RPcUlefeAuZ87WVMY9AmJplblNDjtb C9YxuFz3F3Xyt6fZ6koFfxR07ZfNKINYc/zVgGTy4l3AuLefk6R6XZS/neyjHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261977 --- Comment #14 from Dimitry Andric --- LTO is a trade-off, where you sacrifice more memory and CPU at link time for possibly faster and/or smaller final binaries. That it eats more resources = is almost guaranteed, but slightly "better" binaries may not be worth the cost= ... (Side note: one annoying aspect is that because it can be so time consuming, these heavy link jobs tend to cluster up, if you do a multi-jobbed build, either via poudriere or some other build system. Which then means that you = have a bunch of huge linking processes running in parallel, eating up even more resources!) That said, I would say the safe, conservative choice is to make use of LTO = an opt-in (either global, or per port), instead of an opt-out? I mean, if you have a huge machine with plenty of CPU and RAM, then by all means LTO the hell out of everything, but most people aren't that lucky (or rich). :-) --=20 You are receiving this mail because: You are on the CC list for the bug.=