diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-10-20 08:58:10 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-10-20 08:58:25 -0700 |
commit | edeefb679201858453502e21446d7a65fedeaf0e (patch) | |
tree | 831715c94240ed23f012aa9372f3f24dab4c2087 /gas/configure | |
parent | f9c62303d87da9c766ca67d01f602130c2777951 (diff) | |
download | gdb-edeefb679201858453502e21446d7a65fedeaf0e.zip gdb-edeefb679201858453502e21446d7a65fedeaf0e.tar.gz gdb-edeefb679201858453502e21446d7a65fedeaf0e.tar.bz2 |
Add --enable-compressed-debug-sections={all,gas,gold,ld}
This patch removes the gas configure option:
--enable-compressed-debug-sections
and adds a toplevel configure option:
--enable-compressed-debug-sections={all,gas,gold,ld}
to enable compressed debug sections for gas, gold or ld by default. At
the moment, this configure option is ignored by gold and ld. For x86
Linux targets, default to compressing debug sections in gas.
PR gas/19109
* configure.ac: Add
--enable-compressed-debug-sections={all,gas,gold,ld}.
* configure: Regenerated.
gas/
PR gas/19109
* NEWS: Update --enable-compressed-debug-sections=.
* configure.ac: Remove --enable-compressed-debug-sections.
(DEFAULT_FLAG_COMPRESS_DEBUG): Check
--enable-compressed-debug-sections={all,gas} instead of
--enable-compressed-debug-sections. For x86 Linux targets,
default to compressing debug sections.
* configure: Regenerated.
Diffstat (limited to 'gas/configure')
-rwxr-xr-x | gas/configure | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/gas/configure b/gas/configure index 83bc95c..397bb38 100755 --- a/gas/configure +++ b/gas/configure @@ -764,7 +764,6 @@ enable_plugins enable_largefile enable_targets enable_checking -enable_compressed_debug_sections enable_werror enable_build_warnings enable_nls @@ -1413,7 +1412,6 @@ Optional Features: --disable-largefile omit support for large files --enable-targets alternative target configurations besides the primary --enable-checking enable run-time checks - --enable-compressed-debug-sections compress debug sections by default --enable-werror treat compile warnings as errors --enable-build-warnings enable build-time compiler warnings --disable-nls do not use Native Language Support @@ -10971,7 +10969,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10974 "configure" +#line 10972 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11077,7 +11075,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11080 "configure" +#line 11078 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11666,19 +11664,6 @@ $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h fi -# PR gas/19109 -# Decide the default method for compressing debug sections. -ac_default_compressed_debug_sections=unset -# Provide a configure time option to override our default. -# Check whether --enable-compressed_debug_sections was given. -if test "${enable_compressed_debug_sections+set}" = set; then : - enableval=$enable_compressed_debug_sections; case "${enableval}" in - yes) ac_default_compressed_debug_sections=yes ;; - no) ac_default_compressed_debug_sections=no ;; - *) ac_default_compressed_debug_sections=unset ;; -esac -fi - using_cgen=no @@ -12504,11 +12489,15 @@ _ACEOF done -if test x$ac_default_compressed_debug_sections == xyes ; then +# For x86 Linux targets, default to compressing debug sections unless +# configured otherwise. +case x${enable_compressed_debug_sections}-${target_cpu_type}-${target_os} in +x*gas*|xall*|x-i386-linux-gnu) $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h -fi + ;; +esac # Turn on all targets if possible if test ${all_targets} = "yes"; then |