[Bug 261977] lang/gcc12-devel: enable LTO

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Apr 2022 16:47:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261977

--- Comment #19 from Robert Clausecker <fuz@fuz.su> ---
(In reply to Piotr Kubaj from comment #18)

Built times are not super relevant as long as they stay in a reasonable range. 
Waiting 3 days for the compiler to build is not reasonable.  And as I said,
this is both for native and for cross builds from reasonably fast hardware.

Whenever there is some sort of update to the ports tree that changes a
dependency of gcc, Poudriere recompiles gcc.  So excessive build times
significantly interfere with my ability to test ports.

Right now I do not change any build flags nor do I provide any custom options
because if I did, my test results would not be applicable.

And even for normal, source-building users (which do exist), waiting three days
for a compiler to be built is completely unreasonable.  And that's the time up
until now.  The compiler build has not finished yet and I don't know when it
will.

Have you weighed the extra build time against the performance advantage this
brings?  How much does the LTO-built gcc speed up build times in comparison to
a normally built (or even non-bootstrapped) gcc?

-- 
You are receiving this mail because:
You are on the CC list for the bug.