aboutsummaryrefslogtreecommitdiff
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
commit29e66501f7ce527c9abc01061836d37960712546 (patch)
tree9ad0aa990d57dedcdf31f505ba0e4e13f49ca4b0 /config/bootstrap-lto.mk
parentb00fdb78327b18ba0d4240724647bee58ff6b71e (diff)
downloadgdb-29e66501f7ce527c9abc01061836d37960712546.zip
gdb-29e66501f7ce527c9abc01061836d37960712546.tar.gz
gdb-29e66501f7ce527c9abc01061836d37960712546.tar.bz2
* 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 0000000..14099a0
--- /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