diff options
author | Martin Liska <mliska@suse.cz> | 2019-04-09 10:49:14 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-04-09 08:49:14 +0000 |
commit | 1c67e69c0dea67fab1ef32e8b78bf24cc1b3f06a (patch) | |
tree | db45937b3e3b85a464f1555fd7c08a7d08362bdc /config | |
parent | 6c0b8df123c24ef3c14305698eb2910bcf5979ce (diff) | |
download | gcc-1c67e69c0dea67fab1ef32e8b78bf24cc1b3f06a.tar.gz |
Come up with bootstrap-lto-lean config.
2019-04-09 Martin Liska <mliska@suse.cz>
* Makefile.in: Regenerate.
* Makefile.tpl: Pass GENERATOR_CFLAGS
in all stages.
2019-04-09 Martin Liska <mliska@suse.cz>
* bootstrap-lto-lean.mk: New file.
2019-04-09 Martin Liska <mliska@suse.cz>
* Makefile.in: Use GENERATOR_CFLAGS for all generators.
* doc/install.texi: Document the new config.
From-SVN: r270223
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 4 | ||||
-rw-r--r-- | config/bootstrap-lto-lean.mk | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 7c56e294e6f..258dcb128f2 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2019-04-09 Martin Liska <mliska@suse.cz> + + * bootstrap-lto-lean.mk: New file. + 2019-03-02 Johannes Pfau <johannespfau@gmail.com> * mh-mingw: Also set __USE_MINGW_ACCESS flag for C++ code. diff --git a/config/bootstrap-lto-lean.mk b/config/bootstrap-lto-lean.mk new file mode 100644 index 00000000000..ee36f6fe544 --- /dev/null +++ b/config/bootstrap-lto-lean.mk @@ -0,0 +1,16 @@ +# This option enables LTO for stage4 and LTO for generators in stage3 with profiledbootstrap. +# Otherwise, LTO is used in only stage3. + +STAGE3_CFLAGS += -flto=jobserver +STAGEtrain_GENERATOR_CFLAGS += -flto=jobserver +STAGEfeedback_CFLAGS += -flto=jobserver + +# assumes the host supports the linker plugin +LTO_AR = $$r/$(HOST_SUBDIR)/prev-gcc/gcc-ar$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/ +LTO_RANLIB = $$r/$(HOST_SUBDIR)/prev-gcc/gcc-ranlib$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/ + +LTO_EXPORTS = AR="$(LTO_AR)"; export AR; \ + RANLIB="$(LTO_RANLIB)"; export RANLIB; +LTO_FLAGS_TO_PASS = AR="$(LTO_AR)" RANLIB="$(LTO_RANLIB)" + +do-compare = /bin/true |