aboutsummaryrefslogtreecommitdiff
path: root/gas/configure
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-10-19 11:45:54 +0100
committerNick Clifton <nickc@redhat.com>2015-10-19 11:45:54 +0100
commite12fe5554c3b70139f68e33ded9e2a8075b9d484 (patch)
tree0df02cc16811d762b9bf6c99b81dd56e3dfe5660 /gas/configure
parent65808c966405fdc5ac770bfede9b3d5e0614dc81 (diff)
downloadgdb-e12fe5554c3b70139f68e33ded9e2a8075b9d484.zip
gdb-e12fe5554c3b70139f68e33ded9e2a8075b9d484.tar.gz
gdb-e12fe5554c3b70139f68e33ded9e2a8075b9d484.tar.bz2
Add a gas configure option to select the default behaviour for the generation of debug sections - compressed or uncompressed.
PR gas/19109 * configure.ac: Add option --enable-compressed-debug-sections. This sets the default behaviour for compressing debug sections. * as.c (flag_compress_debug): Define and initialise to COMPRESS_DEBUG_GABI_ZLIB if DEFAULT_COMPRESS_DEBUG is set. (show_usage): Indicate whether --no-compress-debug-sections or --compress-debug-sections is the default. * config/tc-i386.c (flag_compress_debug): Delete definition. * doc/as.texinfo (--nocompress-debug-sectionas): Update description. * NEWS: Announce the new feature. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'gas/configure')
-rwxr-xr-xgas/configure25
1 files changed, 23 insertions, 2 deletions
diff --git a/gas/configure b/gas/configure
index a74604f..83bc95c 100755
--- a/gas/configure
+++ b/gas/configure
@@ -764,6 +764,7 @@ enable_plugins
enable_largefile
enable_targets
enable_checking
+enable_compressed_debug_sections
enable_werror
enable_build_warnings
enable_nls
@@ -1412,6 +1413,7 @@ 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
@@ -10969,7 +10971,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10972 "configure"
+#line 10974 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11075,7 +11077,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11078 "configure"
+#line 11080 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11664,6 +11666,19 @@ $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
@@ -12489,6 +12504,12 @@ _ACEOF
done
+if test x$ac_default_compressed_debug_sections == xyes ; then
+
+$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
+
+fi
+
# Turn on all targets if possible
if test ${all_targets} = "yes"; then
case ${target_cpu_type} in