diff options
author | Nick Clifton <nickc@redhat.com> | 2015-10-19 11:45:54 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-10-19 11:45:54 +0100 |
commit | e12fe5554c3b70139f68e33ded9e2a8075b9d484 (patch) | |
tree | 0df02cc16811d762b9bf6c99b81dd56e3dfe5660 /gas/configure.ac | |
parent | 65808c966405fdc5ac770bfede9b3d5e0614dc81 (diff) | |
download | gdb-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.ac')
-rw-r--r-- | gas/configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gas/configure.ac b/gas/configure.ac index aa6bb1d..278b45d 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -64,6 +64,18 @@ if test x$ac_checking != x ; then AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.]) 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. +AC_ARG_ENABLE(compressed_debug_sections, +[ --enable-compressed-debug-sections compress debug sections by default], +[case "${enableval}" in + yes) ac_default_compressed_debug_sections=yes ;; + no) ac_default_compressed_debug_sections=no ;; + *) ac_default_compressed_debug_sections=unset ;; +esac])dnl + using_cgen=no AM_BINUTILS_WARNINGS @@ -536,6 +548,10 @@ changequote([,])dnl done +if test x$ac_default_compressed_debug_sections == xyes ; then + AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.]) +fi + # Turn on all targets if possible if test ${all_targets} = "yes"; then case ${target_cpu_type} in |