annotate config/bootstrap-lto.mk @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents: 68
diff changeset
1 # This option enables LTO for stage2 and stage3 in slim mode
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1
111
kono
parents: 68
diff changeset
5 STAGEprofile_CFLAGS += -flto=jobserver -frandom-seed=1
kono
parents: 68
diff changeset
6 STAGEtrain_CFLAGS += -flto=jobserver -frandom-seed=1
kono
parents: 68
diff changeset
7 STAGEfeedback_CFLAGS += -flto=jobserver -frandom-seed=1
kono
parents: 68
diff changeset
8
kono
parents: 68
diff changeset
9 # assumes the host supports the linker plugin
kono
parents: 68
diff changeset
10 LTO_AR = $$r/$(HOST_SUBDIR)/prev-gcc/gcc-ar$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/
kono
parents: 68
diff changeset
11 LTO_RANLIB = $$r/$(HOST_SUBDIR)/prev-gcc/gcc-ranlib$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/
kono
parents: 68
diff changeset
12
kono
parents: 68
diff changeset
13 LTO_EXPORTS = AR="$(LTO_AR)"; export AR; \
kono
parents: 68
diff changeset
14 RANLIB="$(LTO_RANLIB)"; export RANLIB;
kono
parents: 68
diff changeset
15 LTO_FLAGS_TO_PASS = AR="$(LTO_AR)" RANLIB="$(LTO_RANLIB)"
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
16
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
17 do-compare = $(SHELL) $(srcdir)/contrib/compare-lto $$f1 $$f2
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
18 extra-compare = gcc/lto1$(exeext)