]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/bootstrap-lto.mk
openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.
[thirdparty/gcc.git] / config / bootstrap-lto.mk
CommitLineData
e04733ee 1# This option enables LTO for stage2 and stage3 in slim mode
339325b3 2
e04733ee
AK
3STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1
4STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1
1a1e0df1
ML
5STAGEprofile_CFLAGS += -flto=jobserver -frandom-seed=1
6STAGEtrain_CFLAGS += -flto=jobserver -frandom-seed=1
7STAGEfeedback_CFLAGS += -flto=jobserver -frandom-seed=1
e04733ee
AK
8
9# assumes the host supports the linker plugin
10LTO_AR = $$r/$(HOST_SUBDIR)/prev-gcc/gcc-ar$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/
11LTO_RANLIB = $$r/$(HOST_SUBDIR)/prev-gcc/gcc-ranlib$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/
12
13LTO_EXPORTS = AR="$(LTO_AR)"; export AR; \
14 RANLIB="$(LTO_RANLIB)"; export RANLIB;
15LTO_FLAGS_TO_PASS = AR="$(LTO_AR)" RANLIB="$(LTO_RANLIB)"
4be63d9e
RB
16
17do-compare = $(SHELL) $(srcdir)/contrib/compare-lto $$f1 $$f2
5fe6af6d 18extra-compare = gcc/lto1$(exeext)