aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-03-31 03:55:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-03-31 03:56:12 -0700
commit0138187e9fc351c6d4615bbe2ab020a3ac646b50 (patch)
tree5863d905a08e1fca6445b29b1f8aada03c805b86 /gas/as.c
parent0ee42ecde7aadb3e68ae5b944f7b1b6a859ebcfd (diff)
downloadgdb-0138187e9fc351c6d4615bbe2ab020a3ac646b50.zip
gdb-0138187e9fc351c6d4615bbe2ab020a3ac646b50.tar.gz
gdb-0138187e9fc351c6d4615bbe2ab020a3ac646b50.tar.bz2
Add --with-system-zlib in gas
This patch adds --with-system-zlib and remove --with-zlib in gas. gas/ * Makefile.am (ZLIBINC): New. (AM_CFLAGS): Add $(ZLIBINC). * as.c: (show_usage): Don't check HAVE_ZLIB_H. (parse_args): Likewise. * compress-debug.c: Don't check HAVE_ZLIB_H to include <zlib.h>. (compress_init): Don't check HAVE_ZLIB_H. (compress_data): Likewise. (compress_finish): Likewise. * configure.ac (AM_ZLIB): Removed. (zlibinc): New. AC_SUBST. Add --with-system-zlib. * Makefile.in: Regenerated. * config.in: Likewise. * configure: Likewise. * doc/Makefile.in: Likewise. gas/testsuite/ * gas/i386/dw2-compress-1.d: Expect .zdebug_info.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gas/as.c b/gas/as.c
index 503add9..a670d3e 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -245,14 +245,12 @@ 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, _("\
@@ -657,11 +655,7 @@ 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: