aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2014-09-01 16:41:28 +0000
committerAndi Kleen <ak@gcc.gnu.org>2014-09-01 16:41:28 +0000
commite04733ee53069a993a841bc0747c5c7290791230 (patch)
tree5101ad662599b9013f8ccaabee2c19dc2bf5ab54 /Makefile.tpl
parentb5617e5f69bdd5ad7a3da9b34d1871fb2aff940a (diff)
downloadgcc-e04733ee53069a993a841bc0747c5c7290791230.zip
gcc-e04733ee53069a993a841bc0747c5c7290791230.tar.gz
gcc-e04733ee53069a993a841bc0747c5c7290791230.tar.bz2
Support slim LTO bootstrap
Change the bootstrap-lto config file to use slim (non fat) LTO.. Speeds up the LTO bootstrap by ~18% on a 4 core system. This requires using gcc-ar/ranlib in post stage 1 builds, so these are passed to all sub builds. config/: 2014-09-01 Andi Kleen <ak@linux.intel.com> * bootstrap-lto.mk: Implement slim bootstrap. /: 2014-09-01 Andi Kleen <ak@linux.intel.com> * Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Add LTO_EXPORTS. POSTSTAGE1_FLAGS_TO_PASS): Add LTO_FLAGS_TO_PASS. * Makefile.in: Regenerate. From-SVN: r214801
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index 00dba363..f7c7e38 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -260,6 +260,7 @@ POSTSTAGE1_HOST_EXPORTS = \
$(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
$(POSTSTAGE1_CXX_EXPORT) \
+ $(LTO_EXPORTS) \
GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
@@ -633,6 +634,7 @@ POSTSTAGE1_FLAGS_TO_PASS = \
GNATBIND="$${GNATBIND}" \
LDFLAGS="$${LDFLAGS}" \
HOST_LIBS="$${HOST_LIBS}" \
+ $(LTO_FLAGS_TO_PASS) \
"`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
# Flags to pass down to makes which are built with the target environment.