View | Details | Raw Unified | Return to bug 19109 | Differences between
and this patch

Collapse All | Expand All

(-)a/gas/NEWS (+3 lines)
Lines 1-5 Link Here
1
-*- text -*-
1
-*- text -*-
2
2
3
* Add a configure option --enable-compressed-debug-sections=[yes|no] to decide
4
  whether DWARF debug sections should be compressed by default.
5
3
* Add support for the ARC EM/HS, and ARC600/700 architectures.  Remove
6
* Add support for the ARC EM/HS, and ARC600/700 architectures.  Remove
4
  assembler support for Argonaut RISC architectures.
7
  assembler support for Argonaut RISC architectures.
5
8
(-)a/gas/as.c (-1 / +15 lines)
Lines 224-229 print_version_id (void) Link Here
224
	   VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
224
	   VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
225
}
225
}
226
226
227
#ifdef DEFAULT_FLAG_COMPRESS_DEBUG
228
enum compressed_debug_section_type flag_compress_debug
229
  = COMPRESS_DEBUG_GABI_ZLIB;
230
#endif
231
227
static void
232
static void
228
show_usage (FILE * stream)
233
show_usage (FILE * stream)
229
{
234
{
Lines 245-256 Options:\n\ Link Here
245
250
246
  fprintf (stream, _("\
251
  fprintf (stream, _("\
247
  --alternate             initially turn on alternate macro syntax\n"));
252
  --alternate             initially turn on alternate macro syntax\n"));
253
#ifdef DEFAULT_FLAG_COMPRESS_DEBUG
248
  fprintf (stream, _("\
254
  fprintf (stream, _("\
249
  --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]\n\
255
  --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]\n\
250
                          compress DWARF debug sections using zlib\n"));
256
                          compress DWARF debug sections using zlib [default]\n"));
251
  fprintf (stream, _("\
257
  fprintf (stream, _("\
252
  --nocompress-debug-sections\n\
258
  --nocompress-debug-sections\n\
253
                          don't compress DWARF debug sections\n"));
259
                          don't compress DWARF debug sections\n"));
260
#else
261
  fprintf (stream, _("\
262
  --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]\n\
263
                          compress DWARF debug sections using zlib\n"));
264
  fprintf (stream, _("\
265
  --nocompress-debug-sections\n\
266
                          don't compress DWARF debug sections [default]\n"));
267
#endif
254
  fprintf (stream, _("\
268
  fprintf (stream, _("\
255
  -D                      produce assembler debugging messages\n"));
269
  -D                      produce assembler debugging messages\n"));
256
  fprintf (stream, _("\
270
  fprintf (stream, _("\
(-)a/gas/config.in (+3 lines)
Lines 36-41 Link Here
36
/* Default emulation. */
36
/* Default emulation. */
37
#undef DEFAULT_EMULATION
37
#undef DEFAULT_EMULATION
38
38
39
/* Define if you want compressed debug sections by default. */
40
#undef DEFAULT_FLAG_COMPRESS_DEBUG
41
39
/* Supported emulations. */
42
/* Supported emulations. */
40
#undef EMULATIONS
43
#undef EMULATIONS
41
44
(-)a/gas/config/tc-i386.c (-6 lines)
Lines 33-44 Link Here
33
#include "elf/x86-64.h"
33
#include "elf/x86-64.h"
34
#include "opcodes/i386-init.h"
34
#include "opcodes/i386-init.h"
35
35
36
#ifdef TE_LINUX
37
/* Default to compress debug sections for Linux.  */
38
enum compressed_debug_section_type flag_compress_debug
39
  = COMPRESS_DEBUG_GABI_ZLIB;
40
#endif
41
42
#ifndef REGISTER_WARNINGS
36
#ifndef REGISTER_WARNINGS
43
#define REGISTER_WARNINGS 1
37
#define REGISTER_WARNINGS 1
44
#endif
38
#endif
(-)a/gas/configure (-2 / +32 lines)
Lines 764-769 enable_plugins Link Here
764
enable_largefile
764
enable_largefile
765
enable_targets
765
enable_targets
766
enable_checking
766
enable_checking
767
enable_compressed_debug_sections
767
enable_werror
768
enable_werror
768
enable_build_warnings
769
enable_build_warnings
769
enable_nls
770
enable_nls
Lines 1412-1417 Optional Features: Link Here
1412
  --disable-largefile     omit support for large files
1413
  --disable-largefile     omit support for large files
1413
  --enable-targets        alternative target configurations besides the primary
1414
  --enable-targets        alternative target configurations besides the primary
1414
  --enable-checking       enable run-time checks
1415
  --enable-checking       enable run-time checks
1416
  --enable-compressed-debug-sections  compress debug sections by default
1415
  --enable-werror         treat compile warnings as errors
1417
  --enable-werror         treat compile warnings as errors
1416
  --enable-build-warnings enable build-time compiler warnings
1418
  --enable-build-warnings enable build-time compiler warnings
1417
  --disable-nls           do not use Native Language Support
1419
  --disable-nls           do not use Native Language Support
Lines 10969-10975 else Link Here
10969
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10971
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10970
  lt_status=$lt_dlunknown
10972
  lt_status=$lt_dlunknown
10971
  cat > conftest.$ac_ext <<_LT_EOF
10973
  cat > conftest.$ac_ext <<_LT_EOF
10972
#line 10972 "configure"
10974
#line 10974 "configure"
10973
#include "confdefs.h"
10975
#include "confdefs.h"
10974
10976
10975
#if HAVE_DLFCN_H
10977
#if HAVE_DLFCN_H
Lines 11075-11081 else Link Here
11075
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11077
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11076
  lt_status=$lt_dlunknown
11078
  lt_status=$lt_dlunknown
11077
  cat > conftest.$ac_ext <<_LT_EOF
11079
  cat > conftest.$ac_ext <<_LT_EOF
11078
#line 11078 "configure"
11080
#line 11080 "configure"
11079
#include "confdefs.h"
11081
#include "confdefs.h"
11080
11082
11081
#if HAVE_DLFCN_H
11083
#if HAVE_DLFCN_H
Lines 11664-11669 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h Link Here
11664
11666
11665
fi
11667
fi
11666
11668
11669
# PR gas/19109
11670
# Decide the default method for compressing debug sections.
11671
ac_default_compressed_debug_sections=unset
11672
# Provide a configure time option to override our default.
11673
# Check whether --enable-compressed_debug_sections was given.
11674
if test "${enable_compressed_debug_sections+set}" = set; then :
11675
  enableval=$enable_compressed_debug_sections; case "${enableval}" in
11676
  yes) ac_default_compressed_debug_sections=yes ;;
11677
  no)  ac_default_compressed_debug_sections=no ;;
11678
  *)   ac_default_compressed_debug_sections=unset ;;
11679
esac
11680
fi
11681
11667
using_cgen=no
11682
using_cgen=no
11668
11683
11669
11684
Lines 12410-12415 cat >>confdefs.h <<_ACEOF Link Here
12410
_ACEOF
12425
_ACEOF
12411
12426
12412
	fi
12427
	fi
12428
12429
	# For x86 Linux targets default to compressing
12430
	# debug sections unless configured otherwise.
12431
	cds=${ac_default_compressed_debug_sections}-${cpu_type}-${target_os}
12432
	case $cds in
12433
	  unset-i386-linux-*)
12434
	    ac_default_compressed_debug_sections=yes
12435
	    ;;
12436
	esac
12413
	;;
12437
	;;
12414
12438
12415
      rl78)
12439
      rl78)
Lines 12489-12494 _ACEOF Link Here
12489
12513
12490
done
12514
done
12491
12515
12516
if test x$ac_default_compressed_debug_sections == xyes ; then
12517
12518
$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12519
12520
fi
12521
12492
# Turn on all targets if possible
12522
# Turn on all targets if possible
12493
if test ${all_targets} = "yes"; then
12523
if test ${all_targets} = "yes"; then
12494
  case ${target_cpu_type} in
12524
  case ${target_cpu_type} in
(-)a/gas/configure.ac (+25 lines)
Lines 64-69 if test x$ac_checking != x ; then Link Here
64
  AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
64
  AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
65
fi
65
fi
66
66
67
# PR gas/19109
68
# Decide the default method for compressing debug sections.
69
ac_default_compressed_debug_sections=unset
70
# Provide a configure time option to override our default.
71
AC_ARG_ENABLE(compressed_debug_sections,
72
[  --enable-compressed-debug-sections  compress debug sections by default],
73
[case "${enableval}" in
74
  yes) ac_default_compressed_debug_sections=yes ;;
75
  no)  ac_default_compressed_debug_sections=no ;;
76
  *)   ac_default_compressed_debug_sections=unset ;;
77
esac])dnl
78
67
using_cgen=no
79
using_cgen=no
68
80
69
AM_BINUTILS_WARNINGS
81
AM_BINUTILS_WARNINGS
Lines 457-462 changequote([,])dnl Link Here
457
	if test $this_target = $target ; then
469
	if test $this_target = $target ; then
458
	  AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
470
	  AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
459
	fi
471
	fi
472
473
	# For x86 Linux targets default to compressing
474
	# debug sections unless configured otherwise.
475
	cds=${ac_default_compressed_debug_sections}-${cpu_type}-${target_os}
476
	case $cds in
477
	  unset-i386-linux-*)
478
	    ac_default_compressed_debug_sections=yes
479
	    ;;
480
	esac
460
	;;
481
	;;
461
482
462
      rl78)
483
      rl78)
Lines 536-541 changequote([,])dnl Link Here
536
557
537
done
558
done
538
559
560
if test x$ac_default_compressed_debug_sections == xyes ; then
561
  AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.])
562
fi
563
539
# Turn on all targets if possible
564
# Turn on all targets if possible
540
if test ${all_targets} = "yes"; then
565
if test ${all_targets} = "yes"; then
541
  case ${target_cpu_type} in
566
  case ${target_cpu_type} in
(-)a/gas/doc/as.texinfo (-1 / +3 lines)
Lines 656-662 sections using zlib. The debug sections are renamed to begin with Link Here
656
@end ifset
656
@end ifset
657
657
658
@item --nocompress-debug-sections
658
@item --nocompress-debug-sections
659
Do not compress DWARF debug sections.  This is the default.
659
Do not compress DWARF debug sections.  This is usually the default for all
660
targets except the x86/x86_64, but a configure time option can be used to
661
override this.
660
662
661
@item -D
663
@item -D
662
Ignored.  This option is accepted for script compatibility with calls to
664
Ignored.  This option is accepted for script compatibility with calls to

Return to bug 19109