Hi. The patch is fixing bootstrap-lto-lean.mk where with PGO LTO was wrongly used in STAGEtrain.
Tested on openSUSE gcc9 package, I'm attaching build log: https://drive.google.com/file/d/17sxGf_x_VaUekPk2SHI9joIXg1BR5-dY/view?usp=sharing Ready to be installed? Thanks, Martin config/ChangeLog: 2019-04-15 Martin Liska <mli...@suse.cz> * bootstrap-lto-lean.mk: Filter out -flto in STAGEtrain_CFLAGS. --- config/bootstrap-lto-lean.mk | 1 + 1 file changed, 1 insertion(+)
diff --git a/config/bootstrap-lto-lean.mk b/config/bootstrap-lto-lean.mk index ee36f6fe544..79cea50a4c6 100644 --- a/config/bootstrap-lto-lean.mk +++ b/config/bootstrap-lto-lean.mk @@ -2,6 +2,7 @@ # Otherwise, LTO is used in only stage3. STAGE3_CFLAGS += -flto=jobserver +override STAGEtrain_CFLAGS := $(filter-out -flto=jobserver,$(STAGEtrain_CFLAGS)) STAGEtrain_GENERATOR_CFLAGS += -flto=jobserver STAGEfeedback_CFLAGS += -flto=jobserver