aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-10-22 05:18:21 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-10-22 05:18:21 -0700
commit4894d80b508ad2626eb2cfd23cfcb5635cdf7442 (patch)
tree5eae907c0d2b6f77631ccf4aa69ffafe2293d187 /gas
parent2891b491040ac84dfe0013454b2aa834de7b539c (diff)
downloadgdb-4894d80b508ad2626eb2cfd23cfcb5635cdf7442.zip
gdb-4894d80b508ad2626eb2cfd23cfcb5635cdf7442.tar.gz
gdb-4894d80b508ad2626eb2cfd23cfcb5635cdf7442.tar.bz2
Handle --enable-compressed-debug-sections=ld,gas
gas/ PR gas/19109 * configure.ac: Handle --enable-compressed-debug-sections=*,gas,*. * configure: Regenerated. ld/ PR gas/19109 * configure.ac: Handle --enable-compressed-debug-sections=*,ld,*. * configure: Regenerated.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rwxr-xr-xgas/configure13
-rw-r--r--gas/configure.ac9
3 files changed, 18 insertions, 10 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f9d87ba..28b139e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
+ PR gas/19109
+ * configure.ac: Handle --enable-compressed-debug-sections=*,gas,*.
+ * configure: Regenerated.
+
+2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
+
* config/tc-i386.c (tc_i386_fix_adjustable): Handle
BFD_RELOC_X86_64_GOTPCRELX and BFD_RELOC_X86_64_REX_GOTPCRELX.
(tc_gen_reloc): Likewise.
diff --git a/gas/configure b/gas/configure
index 3de9333..d2e35de 100755
--- a/gas/configure
+++ b/gas/configure
@@ -1413,7 +1413,8 @@ Optional Features:
--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={all,gas,none} compress debug sections by default
+ --enable-compressed-debug-sections={all,gas,none}
+ 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
@@ -10971,7 +10972,7 @@ else
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 10975 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11077,7 +11078,7 @@ else
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 11081 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11672,9 +11673,9 @@ 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 | all | gas) ac_default_compressed_debug_sections=yes ;;
- no | none) ac_default_compressed_debug_sections=no ;;
+ enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
+ *,yes,* | *,all,* | *,gas,*) ac_default_compressed_debug_sections=yes ;;
+ ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
*) ac_default_compressed_debug_sections=unset ;;
esac
fi
diff --git a/gas/configure.ac b/gas/configure.ac
index f7ed1b3..9002552 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -69,10 +69,11 @@ fi
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={all,gas,none} compress debug sections by default],
-[case "${enableval}" in
- yes | all | gas) ac_default_compressed_debug_sections=yes ;;
- no | none) ac_default_compressed_debug_sections=no ;;
+ AS_HELP_STRING([--enable-compressed-debug-sections={all,gas,none}],
+ [compress debug sections by default])],
+[case ,"${enableval}", in
+ *,yes,* | *,all,* | *,gas,*) ac_default_compressed_debug_sections=yes ;;
+ ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
*) ac_default_compressed_debug_sections=unset ;;
esac])dnl