OSDN Git Service

* config/bootstrap-lto: Use -flto.
[pf3gnuchains/gcc-fork.git] / config / bootstrap-lto.mk
1 # This option enables LTO for stage2 and stage3.  It requires lto to
2 # be enabled for stage1 with --enable-stage1-languages.
3
4 STAGE2_CFLAGS += -flto=jobserver -fuse-linker-plugin -frandom-seed=1
5 STAGE3_CFLAGS += -flto=jobserver -fuse-linker-plugin -frandom-seed=1
6
7 # Ada fails to build with LTO, turn it off for now.
8 BOOT_ADAFLAGS += -fno-lto