From nobody Tue Apr 19 17:06:43 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 A8AC511CA8F2 for ; Tue, 19 Apr 2022 17:06:43 +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 4KjVZq3d6Dz3n8H for ; Tue, 19 Apr 2022 17:06:43 +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 361E32B42F for ; Tue, 19 Apr 2022 17:06:43 +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 23JH6haE072848 for ; Tue, 19 Apr 2022 17:06:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23JH6h5v072847 for toolchain@FreeBSD.org; Tue, 19 Apr 2022 17:06:43 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: Tue, 19 Apr 2022 17:06:43 +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: mandree@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=1650388003; 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=HLw70Jr5M0yCp7es/9TRNIB8qN4JyIfb0OI1C6aYD0w=; b=Zi9gZS3RXkN+v+G0T5sO6P6R8oBEIDiMgSdNzAM+D79Wwd+1ImXO9ViXprDItp/hLTErRO RWVTLvlR1K7HM85TgeZOBUVEn25BModN9cJ7QT6t2zwJLw8i0fmvx3IAswawrrQKMGCRdA eA3JwkpQ2kmF0ULuFhmn8zPQTRJp729SMQ/MayUtTcSDx/pQmOEmgJX2QMEc3ageQaVddW G026H5/YiJo9/8BORDm+na0gRvEeokQAzHs0uAvtPjALa+Qigx/LwFUspzRCVjVLFrC0mX zgEgDTBu5ulyd6Qfxi2uAX5QtaUTVydL4urj4DTN32mTe13GfeLcmr3VWWgkyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650388003; a=rsa-sha256; cv=none; b=v7VkBIDsXAb6A+fzhUTbEPWQV9iYbLuOwku5mgQpp2rj+F/q3tJM2QPGUDm8TQSvJI4G2d jU4ZqZr+I4A+Esjw3Y0eMIc5FzZmJh3F+FVRePp+6Pjr8xc0f9o/cf3MLz4IdFmEY8OfQr vP1ZcHlIOTA9WuD7ch2P0u/OgpodDOzhfcejCfqoQVnx0sOg5dBkT1t/Aj5rawwjDgBsCL 6wDUKR+Wn5p4FBjoBlMlE+QlRFvZj3BxXPu3R007iGuZzJ24NfX0+/WZzblViNnTc3A6pB Prsd0vsDe+AnkTEcJWBmdcSZe55oMJNvvj9/k8cftl9mxFl8dXAtoHRZkTB0cA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261977 --- Comment #23 from Matthias Andree --- Re compiler bootstrapping with LTO, it is pointless per se because you build the first compiler stage with whatever is on the system (which is pretty reasonable on FreeBSD), then you build the second compiler stage, i. e. the full compiler with the stage-1-compiler, and in the third stage, you build = the SAME THING again with the stage-2-compiler and compare stage 2 to stage 3, = i. e. check if the self-compiled compiler is the same. If it weren't for a comparison, we would not need LTO in stages one and two because they are disposed of, and only the compiler built in stage 3 will be used. And in essence, stage 3 is all you build if you build the compiler as= a cross-compiler without full bootstrap (you knew that already). So if our ba= se compilers are good enough, let's just build all GCC as cross, or at least a= ll Tier-1 and Tier-2. And my builder runs up to(*) 16 Zen threads (AMD Ryzen 7 1700, 8 cores w/ 2 threads each), but I usually need to take that down to 4-ish or so because = else this deadlocks pretty soon with the 12 or how many GBytes of RAM I pass to = it. FreeBSD 13.0, ZFS-based poudriere, no swap. --=20 You are receiving this mail because: You are on the CC list for the bug.=