Handle --enable-compressed-debug-sections=ld,gas
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Oct 2015 12:18:21 +0000 (05:18 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Oct 2015 12:18:21 +0000 (05:18 -0700)
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.

gas/ChangeLog
gas/configure
gas/configure.ac
ld/ChangeLog
ld/configure
ld/configure.ac

index f9d87bad16614a3bc9df3a8fad0b196769b26a28..28b139ef9a012af952e89ea83f44989728d868b5 100644 (file)
@@ -1,3 +1,9 @@
+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
index 3de933399a215daf8926f1df5ff18c567d3ad9c4..d2e35de9aedb38fb5db5229949bd227e431f951a 100755 (executable)
@@ -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
index f7ed1b3d7073df1d826b1da7e7dacdc6777b506c..9002552b4ccdc7c54d12ad5c16d759196a376cd4 100644 (file)
@@ -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
 
index fae891568a34cabc41790f94eace1f1546cae9e4..089075e3439b6ee90a9c871601e393bb66f63271 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/19109
+       * configure.ac: Handle --enable-compressed-debug-sections=*,ld,*.
+       * configure: Regenerated.
+
 2015-10-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld/ld.texinfo: Document "-z call-nop=PADDING" option.
index 5b6eb705cf831cb758bbaf380c97a6ee78a786cf..ce51f5f2dc60f8bac94d2eac1d0026e2dee397a6 100755 (executable)
@@ -1445,7 +1445,8 @@ Optional Features:
   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
   --enable-got=<type>     GOT handling scheme (target, single, negative,
                           multigot)
-  --enable-compressed-debug-sections={all,ld,none}  compress debug sections by default
+  --enable-compressed-debug-sections={all,ld,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
@@ -11715,7 +11716,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11718 "configure"
+#line 11719 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11821,7 +11822,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11824 "configure"
+#line 11825 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15529,10 +15530,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 | ld) ac_default_compressed_debug_sections=yes ;;
-  no | none)  ac_default_compressed_debug_sections=no ;;
-  *)   ac_default_compressed_debug_sections=unset ;;
+  enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
+  *,yes,* | *,all,* | *,ld,*) ac_default_compressed_debug_sections=yes ;;
+  ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
 esac
 fi
 
index 21a69e5a54c78089e45b9c3420be890da1978d27..84d1b036e77d60cba6560d29d3026b0d3da1a3bf 100644 (file)
@@ -148,11 +148,11 @@ esac
 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,ld,none}  compress debug sections by default],
-[case "${enableval}" in
-  yes | all | ld) ac_default_compressed_debug_sections=yes ;;
-  no | none)  ac_default_compressed_debug_sections=no ;;
-  *)   ac_default_compressed_debug_sections=unset ;;
+             AS_HELP_STRING([--enable-compressed-debug-sections={all,ld,none}],
+             [compress debug sections by default])],
+[case ,"${enableval}", in
+  *,yes,* | *,all,* | *,ld,*) ac_default_compressed_debug_sections=yes ;;
+  ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
 esac])dnl
 
 AM_BINUTILS_WARNINGS