re PR bootstrap/65537 (--with-build-config=bootstrap-lto fails on CentOS 5.11)
authorUros Bizjak <ubizjak@gmail.com>
Wed, 25 Mar 2015 16:01:36 +0000 (17:01 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 25 Mar 2015 16:01:36 +0000 (17:01 +0100)
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

config/ChangeLog
config/bootstrap-lto-noplugin.mk [new file with mode: 0644]
gcc/ChangeLog
gcc/doc/install.texi

index 12757de7a8d040e6be31c5193258a68560fc5639..eda008285e85349d8062bd632c5b1ed1b889b4d6 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR bootstrap/65537
+       * bootstrap-lto-noplugin.mk: New build configuration.
+
 2015-02-25  Uros Bizjak  <ubizjak@gmail.com>
 
        Revert:
diff --git a/config/bootstrap-lto-noplugin.mk b/config/bootstrap-lto-noplugin.mk
new file mode 100644 (file)
index 0000000..a507336
--- /dev/null
@@ -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 fbef8a1f7e1eda82ba224fb85f0f8eeec69855af..7e26092498e655e611842376f60dbb2f485c1ddc 100644 (file)
@@ -1,3 +1,10 @@
+2015-03-25  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.
+
 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        PR target/65508
index b8bb4bd13bd167ed942c8f57f2f706d3ad33ff8a..829da854f23ab952df5928dc975fcefcaa51c53a 100644 (file)
@@ -2519,7 +2519,13 @@ Analogous to @code{bootstrap-O1}.
 @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