public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, bootstrap]: Add bootstrap-lto-noplugin build configuration (PR65537)
@ 2015-03-24 16:43 Uros Bizjak
  2015-03-25 14:24 ` Jakub Jelinek
  2015-03-26  1:11 ` Jan Hubicka
  0 siblings, 2 replies; 8+ messages in thread
From: Uros Bizjak @ 2015-03-24 16:43 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

Hello!

Attached patch introduces bootstrap-lto-noplugin bootstrap
configuration for hosts that do not support linker plugin (e.g. CentOS
5.11 with binutils 2.17). Also, the patch adds some additional
documentation to bootstrap-lto option.

config/ChangeLog:

2015-03-24  Uros Bizjak  <ubizjak@gmail.com>

    PR bootstrap/65537
    * bootstrap-lto-noplugin.mk: New build configuration.

gcc/ChangeLog:

2015-03-24  Uros Bizjak  <ubizjak@gmail.com>

    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.

Patch was bootstrapped and tested on x86_64-linux-gnu (CentOS 5.11)
host, configured with --with-build-config=bootstrap-lto build
configuration.

OK for mainline?

Uros.

[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 1384 bytes --]

Index: config/bootstrap-lto-noplugin.mk
===================================================================
--- config/bootstrap-lto-noplugin.mk	(revision 0)
+++ config/bootstrap-lto-noplugin.mk	(working copy)
@@ -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
Index: gcc/doc/install.texi
===================================================================
--- gcc/doc/install.texi	(revision 221636)
+++ gcc/doc/install.texi	(working copy)
@@ -2519,8 +2519,14 @@
 @item @samp{bootstrap-lto}
 Enables Link-Time Optimization for host tools during bootstrapping.
 @samp{BUILD_CONFIG=bootstrap-lto} is equivalent to adding
-@option{-flto} to @samp{BOOT_CFLAGS}.
+@option{-flto} to @samp{BOOT_CFLAGS}.  This option assumes that the host
+supports the linker plugin (e.g. GNU ld version 2.21 or later or GNU gold
+version 2.21 or later).
 
+@item @samp{bootstrap-lto-noplugin}
+This option is similar to @code{bootstrap-lto}, but is intended for
+hosts that do not support the linker plugin.
+
 @item @samp{bootstrap-debug}
 Verifies that the compiler generates the same executable code, whether
 or not it is asked to emit debug information.  To this end, this

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-04-08 12:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 16:43 [PATCH, bootstrap]: Add bootstrap-lto-noplugin build configuration (PR65537) Uros Bizjak
2015-03-25 14:24 ` Jakub Jelinek
2015-03-25 19:16   ` Uros Bizjak
2015-03-26  1:11 ` Jan Hubicka
2015-03-26  8:20   ` Uros Bizjak
2015-04-06 12:45     ` Gerald Pfeifer
2015-04-06 17:19       ` Sandra Loosemore
2015-04-08 12:13         ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).