summaryrefslogtreecommitdiff
path: root/config/bootstrap-lto.mk
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2010-06-21 19:39:32 +0000
committerAlexandre Oliva <aoliva@redhat.com>2010-06-21 19:39:32 +0000
commitcafeb8a7c4f50a3bec6f244283331c2827ea1dc9 (patch)
tree09933c7e6d180fe0ad8f002f3160625315a6a427 /config/bootstrap-lto.mk
parentd1d5e97967edf98a24d2013aa134d60f20a8042a (diff)
downloadgdb-cafeb8a7c4f50a3bec6f244283331c2827ea1dc9.tar.gz
* bootstrap-lto.mk: New.
Diffstat (limited to 'config/bootstrap-lto.mk')
-rw-r--r--config/bootstrap-lto.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/bootstrap-lto.mk b/config/bootstrap-lto.mk
new file mode 100644
index 00000000000..14099a08b8d
--- /dev/null
+++ b/config/bootstrap-lto.mk
@@ -0,0 +1,8 @@
+# This option enables LTO for stage2 and stage3. It requires lto to
+# be enabled for stage1 with --enable-stage1-languages.
+
+STAGE2_CFLAGS += -flto
+STAGE3_CFLAGS += -flto
+
+# Ada fails to build with LTO, turn it off for now.
+BOOT_ADAFLAGS += -fno-lto