acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Add -g to compile flags, move code...
authorBenjamin Kosnik <bkoz@redhat.com>
Thu, 17 May 2007 15:08:48 +0000 (15:08 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 17 May 2007 15:08:48 +0000 (15:08 +0000)
2007-05-17  Benjamin Kosnik  <bkoz@redhat.com>

* acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Add -g to
compile flags, move code to test to global scope.
* configure: Regenerate.

From-SVN: r124802

libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/configure

index 75d0d29..31ef4ab 100644 (file)
@@ -1,5 +1,11 @@
 2007-05-17  Benjamin Kosnik  <bkoz@redhat.com>
 
+       * acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Add -g to
+       compile flags, move code to test to global scope.
+       * configure: Regenerate.
+       
+2007-05-17  Benjamin Kosnik  <bkoz@redhat.com>
+
        * testsuite/21_strings/char_traits/requirements/wchar_t/typedefs.cc: 
        Fix dg bits.
        * testsuite/21_strings/char_traits/requirements/char/typedefs.cc: Same.
index 646c910..8198041 100644 (file)
@@ -170,8 +170,8 @@ AC_DEFUN([GLIBCXX_CHECK_COMPILER_FEATURES], [
 
   # Check for -ffunction-sections -fdata-sections
   AC_MSG_CHECKING([for g++ that supports -ffunction-sections -fdata-sections])
-  CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
-  AC_TRY_COMPILE(, [int foo; void bar() { };], [ac_fdsections=yes], [ac_fdsections=no])
+  CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
+  AC_TRY_COMPILE([int foo; void bar() { };],, [ac_fdsections=yes], [ac_fdsections=no])
   if test "$ac_test_CXXFLAGS" = set; then
     CXXFLAGS="$ac_save_CXXFLAGS"
   else
index 1dc4cc3..a9f6169 100755 (executable)
@@ -8272,18 +8272,18 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   # Check for -ffunction-sections -fdata-sections
   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
-  CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
+  CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
   cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-
+int foo; void bar() { };
 int
 main ()
 {
-int foo; void bar() { };
+
   ;
   return 0;
 }
@@ -56567,18 +56567,18 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   # Check for -ffunction-sections -fdata-sections
   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
-  CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
+  CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
   cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-
+int foo; void bar() { };
 int
 main ()
 {
-int foo; void bar() { };
+
   ;
   return 0;
 }