From nobody Tue Apr 19 21:22:58 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 911A511E0480 for ; Tue, 19 Apr 2022 21:22:58 +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 4KjcGV2s0wz3C8l for ; Tue, 19 Apr 2022 21:22:58 +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 3A2BC2F118 for ; Tue, 19 Apr 2022 21:22:58 +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 23JLMw2O014175 for ; Tue, 19 Apr 2022 21:22:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23JLMwgY014174 for toolchain@FreeBSD.org; Tue, 19 Apr 2022 21:22:58 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 21:22:58 +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: pkubaj@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=1650403378; 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=GOvOjf3DeIrZ3FqpLu9oWanlu8Uio8WhDgFtZH2hodY=; b=SdHBVbPz68xQbD8ZftMUB7mXuGQ9mFP7t3NECX4LJ7v97IST7X5ylEMIP+lDTLeYj6mrxv 894R5M19+bigpvJPtW94LBXFqvCVNb29s1X1ViyWJY3wFC8W2utQUk7cqcqxu3QqiuRcbg v35kRwCXK8t/yixUpAircjnjKAmnaG6V3vc3BHPLFiGysGwwbmV4OSdtd3SY3yt++MXMzt 8UQbV1/8ebl8KrHrGzx8p7KXgqNAVgQT6IJuJADVU9wirQUbgaILEKhBux7l4kmo/CORIM +rrpOC1m7aq7c3zOF8t59koVmwffEuwmoP3ubJcTvwMVISCKJ8ZyDn4b6Rgo4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650403378; a=rsa-sha256; cv=none; b=Qdjwbi2AMjRQOuLasmF+Wfu/ArVbnQDC50T+GUq7UJ6NnYIdjyex/5yjTefLVLFsZ4UweJ xX4wNk6Qj7TZn3uk6uYZxG/mJ6VpU+PNvUY86rtVXHLUWLthXTpVeGv+bCTYNOb1vPELfO byt0T2OtZTkBiw2aWdSsvM2ISTTS1Ivy/DdUgW3wInxSHoO7eFxVskSmy0agD5NkAZG+YK nZSbPe8zsoi1uZHKwKqqws+8nYAA7cnuRiayboxYtkVPzbvWQkoJn4UD87PntdB1iCgum1 lUdVelE3NMCifQoC4syzjV0y/vhcw2J4YnhCxFDn2Jxfq7LilzkmrkpSmhqSCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261977 --- Comment #30 from Piotr Kubaj --- This issue is quickly getting out of hand, I'll do the last fix to default = to LTO, but allow non LTO. However, some remarks: - LTO is NOT used only for stage 1. In fact, if it were used only for only stage (like mat@ implied), then powerpc64 builds would be broken (because L= TO with LLVM is known to be broken on powerpc64). That is not the case, LTOized GCC works fine on powerpc64, because -flto is only passed AFTER stage 1. - comparison of bulk -a builds is just idiotic. How can you compare bulk -a with LTOized GCC when nothing else depends on it? It just doesn't make sens= e at all. Those -devel ports are only to serve as CI-like safety measure to make sure the newest GCC snapshots build. They use LTO, because the current rele= ase (lang/gcc11) also does, and I hope lang/gcc12 will as well. - if you compare bulk -a builds with LTO for gcc*-devel ports, then we migh= t as well just drop -devel ports completely - build times will be lower. In fact, they will be even lower if we drop all the gcc ports completely (along with= the required reverse dependencies). - Regarding performance benchmarks for LTO - has anyone done that when -O2 = was introduced? This is one of the reasons why I hear things like "it's hard introduce anything in FreeBSD, because many devs oppose it" and "I gave up fighting it" (from one former portmgr@ people, who also did some ppc work). - How is it that e.g. Ubuntu or OpenSUSE can afford to enforce LTO for their own repo and we can't? --=20 You are receiving this mail because: You are on the CC list for the bug.=