diff options
author | Cary Coutant <ccoutant@google.com> | 2010-08-09 18:08:18 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2010-08-09 18:08:18 +0000 |
commit | 955974c6c5ddc44febc20560a975a76acf3aa5ca (patch) | |
tree | ab178805104736c70402db3279c5afd5b75e3ec6 /gas/as.c | |
parent | 1971b03393cfbbc43b8404e2a2c9a77f3161c67e (diff) | |
download | gdb-955974c6c5ddc44febc20560a975a76acf3aa5ca.zip gdb-955974c6c5ddc44febc20560a975a76acf3aa5ca.tar.gz gdb-955974c6c5ddc44febc20560a975a76acf3aa5ca.tar.bz2 |
* as.c (show_usage): Don't list --compress-debug-sections if zlib not
installed.
(main): Warn if --compress-debug-sections requested and zlib not
installed.
* doc/as.texinfo: Add --compress-debug-sections,
--nocompress-debug-sections.
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -245,12 +245,14 @@ Options:\n\ fprintf (stream, _("\ --alternate initially turn on alternate macro syntax\n")); +#ifdef HAVE_ZLIB_H fprintf (stream, _("\ --compress-debug-sections\n\ compress DWARF debug sections using zlib\n")); fprintf (stream, _("\ --nocompress-debug-sections\n\ don't compress DWARF debug sections\n")); +#endif /* HAVE_ZLIB_H */ fprintf (stream, _("\ -D produce assembler debugging messages\n")); fprintf (stream, _("\ @@ -646,7 +648,11 @@ This program has absolutely no warranty.\n")); exit (EXIT_SUCCESS); case OPTION_COMPRESS_DEBUG: +#ifdef HAVE_ZLIB_H flag_compress_debug = 1; +#else + as_warn (_("cannot compress debug sections (zlib not installed)")); +#endif /* HAVE_ZLIB_H */ break; case OPTION_NOCOMPRESS_DEBUG: |