+2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/19109
+ * configure.ac: Add
+ --enable-compressed-debug-sections={all,gas,gold,ld}.
+ * configure: Regenerated.
+
2015-09-30 Nick Clifton <nickc@redhat.com>
Import the following patches from the GCC mainline:
enable_offload_targets
enable_gold
enable_ld
+enable_compressed_debug_sections
enable_libquadmath
enable_libquadmath_support
enable_libada
offload target compiler during the build
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-ld[=ARG] build ld [ARG={default,yes,no}]
+ --enable-compressed-debug-sections={all,gas,gold,ld}
+ Enable compressed debug sections for gas, gold or ld
+ by default
--disable-libquadmath do not build libquadmath directory
--disable-libquadmath-support
disable libquadmath support for Fortran
;;
esac
+# PR gas/19109
+# Decide the default method for compressing debug sections.
+# Provide a configure time option to override our default.
+# Check whether --enable-compressed_debug_sections was given.
+if test "${enable_compressed_debug_sections+set}" = set; then :
+ enableval=$enable_compressed_debug_sections;
+ if test x"$enable_compressed_debug_sections" = xyes; then
+ as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
+ fi
+
+else
+ enable_compressed_debug_sections=
+fi
+
+
# Configure extra directories which are host specific
case "${host}" in
;;
esac
+# PR gas/19109
+# Decide the default method for compressing debug sections.
+# Provide a configure time option to override our default.
+AC_ARG_ENABLE(compressed_debug_sections,
+[AS_HELP_STRING([--enable-compressed-debug-sections={all,gas,gold,ld}],
+ [Enable compressed debug sections for gas, gold or ld by
+ default])],
+[
+ if test x"$enable_compressed_debug_sections" = xyes; then
+ AC_MSG_ERROR([no program with compressed debug sections specified])
+ fi
+], [enable_compressed_debug_sections=])
+
# Configure extra directories which are host specific
case "${host}" in
+2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/19109
+ * NEWS: Update --enable-compressed-debug-sections=.
+ * configure.ac: Remove --enable-compressed-debug-sections.
+ (DEFAULT_FLAG_COMPRESS_DEBUG): Check
+ --enable-compressed-debug-sections={all,gas} instead of
+ --enable-compressed-debug-sections. For x86 Linux targets,
+ default to compressing debug sections.
+ * configure: Regenerated.
+
2015-10-19 Nick Clifton <nickc@redhat.com>
PR gas/19109
-*- text -*-
-* Add a configure option --enable-compressed-debug-sections=[yes|no] to decide
- whether DWARF debug sections should be compressed by default.
+* Add a configure option --enable-compressed-debug-sections={all,gas} to
+ decide whether DWARF debug sections should be compressed by default.
* Add support for the ARC EM/HS, and ARC600/700 architectures. Remove
assembler support for Argonaut RISC architectures.
enable_largefile
enable_targets
enable_checking
-enable_compressed_debug_sections
enable_werror
enable_build_warnings
enable_nls
--disable-largefile omit support for large files
--enable-targets alternative target configurations besides the primary
--enable-checking enable run-time checks
- --enable-compressed-debug-sections compress debug sections by default
--enable-werror treat compile warnings as errors
--enable-build-warnings enable build-time compiler warnings
--disable-nls do not use Native Language Support
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10974 "configure"
+#line 10972 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11080 "configure"
+#line 11078 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
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.
-# Check whether --enable-compressed_debug_sections was given.
-if test "${enable_compressed_debug_sections+set}" = set; then :
- enableval=$enable_compressed_debug_sections; case "${enableval}" in
- yes) ac_default_compressed_debug_sections=yes ;;
- no) ac_default_compressed_debug_sections=no ;;
- *) ac_default_compressed_debug_sections=unset ;;
-esac
-fi
-
using_cgen=no
done
-if test x$ac_default_compressed_debug_sections == xyes ; then
+# For x86 Linux targets, default to compressing debug sections unless
+# configured otherwise.
+case x${enable_compressed_debug_sections}-${target_cpu_type}-${target_os} in
+x*gas*|xall*|x-i386-linux-gnu)
$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
-fi
+ ;;
+esac
# Turn on all targets if possible
if test ${all_targets} = "yes"; 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
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
+# For x86 Linux targets, default to compressing debug sections unless
+# configured otherwise.
+case x${enable_compressed_debug_sections}-${target_cpu_type}-${target_os} in
+x*gas*|xall*|x-i386-linux-gnu)
+ AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1,
+ [Define if you want compressed debug sections by default.])
+ ;;
+esac
# Turn on all targets if possible
if test ${all_targets} = "yes"; then