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/as.c | |
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/as.c')
-rw-r--r-- | gas/as.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -224,6 +224,11 @@ print_version_id (void) VERSION, TARGET_ALIAS, BFD_VERSION_STRING); } +#ifdef DEFAULT_FLAG_COMPRESS_DEBUG +enum compressed_debug_section_type flag_compress_debug + = COMPRESS_DEBUG_GABI_ZLIB; +#endif + static void show_usage (FILE * stream) { @@ -245,12 +250,21 @@ Options:\n\ fprintf (stream, _("\ --alternate initially turn on alternate macro syntax\n")); +#ifdef DEFAULT_FLAG_COMPRESS_DEBUG fprintf (stream, _("\ --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]\n\ - compress DWARF debug sections using zlib\n")); + compress DWARF debug sections using zlib [default]\n")); fprintf (stream, _("\ --nocompress-debug-sections\n\ don't compress DWARF debug sections\n")); +#else + fprintf (stream, _("\ + --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]\n\ + compress DWARF debug sections using zlib\n")); + fprintf (stream, _("\ + --nocompress-debug-sections\n\ + don't compress DWARF debug sections [default]\n")); +#endif fprintf (stream, _("\ -D produce assembler debugging messages\n")); fprintf (stream, _("\ |