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

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

--- Comment #45 from Piotr Kubaj <pkubaj@FreeBSD.org> ---
(In reply to Matthias Andree from comment #44)
1. I assume it's to build GCC in a way that is as safe as possible, so that the
bootstrapped compiler will work fine. When you combine that with LTO and us
using clang to build, it's definitely much safer than plain building.
2. LTO is used only for stage 2 and stage 3 (you can see that in
config/bootstrap-lto-noplugin.mk). IMO that is reasonable, since using LTOized
GCC from stage 2 in stage 3 lets us make sure that the compiler works fine.

(In reply to Robert Clausecker from comment #43)
OK, I will disable bootstrap there according to your instructions. Regarding
riscv64, we currently don't support GCC there.
Regarding your earlier question for a capable ARM hardware, I'd consider
getting something like
https://www.ipi.wiki/products/ampere-altra-developer-platform.

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