Enable -flto in all PGO stages for bootstrap-lto-{,noplugin}.mk.
authorMartin Liska <mliska@suse.cz>
Mon, 19 Jun 2017 13:20:20 +0000 (15:20 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 19 Jun 2017 13:20:20 +0000 (13:20 +0000)
2017-06-19  Martin Liska  <mliska@suse.cz>

* bootstrap-lto-noplugin.mk: Enable -flto in all PGO stages.
* bootstrap-lto.mk: Likewise.

From-SVN: r249367

config/ChangeLog
config/bootstrap-lto-noplugin.mk
config/bootstrap-lto.mk

index 4d54353500745aca78e6d8fd86fec8963e57c812..6732bf4f73fb72b9d9c29a0fd51327b426274cfc 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-19  Martin Liska  <mliska@suse.cz>
+
+       * bootstrap-lto-noplugin.mk: Enable -flto in all PGO stages.
+       * bootstrap-lto.mk: Likewise.
+
 2017-06-03  Eric Botcazou  <ebotcazou@adacore.com>
 
        * mt-android: New file.
index a5073365b5a334c0714f5bbb000a27ab7c64afaf..0ca8ee2ff013c03b114011f68c2db2147983e870 100644 (file)
@@ -3,4 +3,6 @@
 
 STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
 STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
-STAGEprofile_CFLAGS += -fno-lto
+STAGEprofile_CFLAGS += -flto=jobserver -frandom-seed=1
+STAGEtrain_CFLAGS += -flto=jobserver -frandom-seed=1
+STAGEfeedback_CFLAGS += -flto=jobserver -frandom-seed=1
index 9e065e1d85a09325c4332ad64202295b9f3e2fc0..50b86ef1c81629d598a3b02caf1a2747ac5b173a 100644 (file)
@@ -2,7 +2,9 @@
 
 STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1
 STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1
-STAGEprofile_CFLAGS += -fno-lto
+STAGEprofile_CFLAGS += -flto=jobserver -frandom-seed=1
+STAGEtrain_CFLAGS += -flto=jobserver -frandom-seed=1
+STAGEfeedback_CFLAGS += -flto=jobserver -frandom-seed=1
 
 # assumes the host supports the linker plugin
 LTO_AR = $$r/$(HOST_SUBDIR)/prev-gcc/gcc-ar$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/