On 9/20/25 15:45, Mark Wielaard wrote:
Hi Sam,
On Sat, Sep 06, 2025 at 09:38:28PM +0100, Sam James wrote:
STAGE1_CFLAGS can be used to accelerate the just-built stage1 compiler
which especially improves its performance on some of the large generated
files during bootstrap. It defaults to nothing (i.e. -O0).
The downside is that if the native compiler is buggy, there's a greater
risk of a failed bootstrap. Those with a modern native compiler, ideally
a recent version of GCC, should be able to use -O1 or -O2 without issue
to get a faster build.
PR rtl-optimization/111619
* doc/install.texi (Building a native compiler): Discuss STAGE1_CFLAGS.
---
Sorry, I'd completely forgot about this and only noticed when trying to reduce
my local branch and get more things ready to submit..
This takes your suggestion as-is with some minor phrasing tweaks. I agree
with your take here and think this works better indeed.
OK?
I cannot approve, but the text reads OK to me. The buildbot workers
of builder.sourceware.org do use STAGE1_CFLAGS='-O2' when doing gcc
bootstraps.
This looks fine to me, too. Please apply.
-Sandra