summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2017-06-19 13:20:20 +0000
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2017-06-19 13:20:20 +0000
commitee56eeb3310232d149764238bb072b6fdac28f44 (patch)
tree709ee7369c3b3c78f2018ccc845ba91e28a7e6f3 /config
parent696cfb660044eb246aaf86ba923610280c3a5eff (diff)
downloadgcc-ee56eeb3310232d149764238bb072b6fdac28f44.tar.gz
Enable -flto in all PGO stages for bootstrap-lto-{,noplugin}.mk.
2017-06-19 Martin Liska <mliska@suse.cz> * bootstrap-lto-noplugin.mk: Enable -flto in all PGO stages. * bootstrap-lto.mk: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249367 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/bootstrap-lto-noplugin.mk4
-rw-r--r--config/bootstrap-lto.mk4
3 files changed, 11 insertions, 2 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 4d543535007..6732bf4f73f 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -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.
diff --git a/config/bootstrap-lto-noplugin.mk b/config/bootstrap-lto-noplugin.mk
index a5073365b5a..0ca8ee2ff01 100644
--- a/config/bootstrap-lto-noplugin.mk
+++ b/config/bootstrap-lto-noplugin.mk
@@ -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
diff --git a/config/bootstrap-lto.mk b/config/bootstrap-lto.mk
index 9e065e1d85a..50b86ef1c81 100644
--- a/config/bootstrap-lto.mk
+++ b/config/bootstrap-lto.mk
@@ -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/