https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65537

--- Comment #6 from Uroš Bizjak <ubizjak at gmail dot com> ---
I'm testing the following patch:

--cut here--
Index: config/bootstrap-lto-noplugin.mk
===================================================================
--- config/bootstrap-lto-noplugin.mk    (revision 0)
+++ config/bootstrap-lto-noplugin.mk    (revision 0)
@@ -0,0 +1,6 @@
+# This option enables LTO for stage2 and stage3 on
+# hosts without linker plugin support.
+
+STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
+STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
+STAGEprofile_CFLAGS += -fno-lto
--cut here--

BTW: The documentation for bootstrap-lto is inadequate, as it does not mention
any plugin support assumption or list any linker version requirement.

Reply via email to