diff options
| author | Paul Eggert | 2014-06-20 12:46:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-06-20 12:46:18 -0700 |
| commit | 81e5c6fc89e277237cf290927fe339b53ad47b80 (patch) | |
| tree | a0c33cae86d8b1b3a5d9da2fe958fda191c0f13e | |
| parent | f49b49787c954ae858007ad149552a8af5b9d1e0 (diff) | |
| download | emacs-81e5c6fc89e277237cf290927fe339b53ad47b80.tar.gz emacs-81e5c6fc89e277237cf290927fe339b53ad47b80.zip | |
* configure.ac: Warn about --enable-link-time-optimization's issues
in --help message.
Fixes: debbugs:17806
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | configure.ac | 5 |
2 files changed, 7 insertions, 1 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-06-20 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-06-20 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * configure.ac: Warn about --enable-link-time-optimization's issues | ||
| 4 | in --help message (Bug#17806). | ||
| 5 | |||
| 3 | Port to GCC 4.9.0 with link time optimization (Bug#17806). | 6 | Port to GCC 4.9.0 with link time optimization (Bug#17806). |
| 4 | * configure.ac (CFLAGS): With link time optimization, | 7 | * configure.ac (CFLAGS): With link time optimization, |
| 5 | use -ffat-lto-objects if supported; otherwise Emacs won't | 8 | use -ffat-lto-objects if supported; otherwise Emacs won't |
diff --git a/configure.ac b/configure.ac index e9400047edc..3d840a1b484 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -757,7 +757,10 @@ AC_ARG_ENABLE([gcc-warnings], | |||
| 757 | AC_ARG_ENABLE(link-time-optimization, | 757 | AC_ARG_ENABLE(link-time-optimization, |
| 758 | [AS_HELP_STRING([--enable-link-time-optimization], | 758 | [AS_HELP_STRING([--enable-link-time-optimization], |
| 759 | [build emacs with link-time optimization. | 759 | [build emacs with link-time optimization. |
| 760 | This is supported only for GCC since 4.5.0.])], | 760 | This requires GCC 4.5.0 or later. |
| 761 | It also makes Emacs harder to debug, and when we tried it | ||
| 762 | with GCC 4.9.0 x86-64 it made Emacs slower, so it's not | ||
| 763 | recommended for typical use.])], | ||
| 761 | if test "${enableval}" != "no"; then | 764 | if test "${enableval}" != "no"; then |
| 762 | AC_MSG_CHECKING([whether link-time optimization is supported]) | 765 | AC_MSG_CHECKING([whether link-time optimization is supported]) |
| 763 | ac_lto_supported=no | 766 | ac_lto_supported=no |