From 85ee35cae8d4fee35ea2045b81a1ad9509a8749a Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 17 May 2007 15:08:48 +0000 Subject: [PATCH] acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Add -g to compile flags, move code to test to global scope. 2007-05-17 Benjamin Kosnik * 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 | 6 ++++++ libstdc++-v3/acinclude.m4 | 4 ++-- libstdc++-v3/configure | 12 ++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 75d0d29f6125..31ef4abb4bc5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2007-05-17 Benjamin Kosnik + + * 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 * testsuite/21_strings/char_traits/requirements/wchar_t/typedefs.cc: diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 646c91078a30..8198041203df 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -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 diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 1dc4cc3cfc52..a9f61693c45e 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -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; }