summaryrefslogtreecommitdiff
path: root/config/bootstrap-lto-noplugin.mk
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2015-03-25 17:01:36 +0100
committerUros Bizjak <uros@gcc.gnu.org>2015-03-25 17:01:36 +0100
commit871fe673a2a300c1c5392409740590eed79b9b09 (patch)
tree887e403d37fc862afa63723a6c02011a474298f9 /config/bootstrap-lto-noplugin.mk
parent28fda0c459b684cac1b970fa28382f61fa9d446b (diff)
re PR bootstrap/65537 (--with-build-config=bootstrap-lto fails on CentOS 5.11)
config/ChangeLog: PR bootstrap/65537 * bootstrap-lto-noplugin.mk: New build configuration. gcc/ChangeLog: PR bootstrap/65537 * doc/install.texi (Building a native compiler): Document new bootstrap-lto-noplugin configuration. Mention that bootstrap-lto configuration assumes that the host supports the linker plugin. From-SVN: r221667
Diffstat (limited to 'config/bootstrap-lto-noplugin.mk')
-rw-r--r--config/bootstrap-lto-noplugin.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/bootstrap-lto-noplugin.mk b/config/bootstrap-lto-noplugin.mk
new file mode 100644
index 00000000000..a5073365b5a
--- /dev/null
+++ b/config/bootstrap-lto-noplugin.mk
@@ -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