diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2007-05-17 15:08:48 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2007-05-17 15:08:48 +0000 |
commit | 85ee35cae8d4fee35ea2045b81a1ad9509a8749a (patch) | |
tree | a128c8e3012ce423a6015446df1537b3e0fb2ae5 | |
parent | 4eff80454bb64e2fd93336cb021695f7453cd41a (diff) | |
download | gcc-85ee35cae8d4fee35ea2045b81a1ad9509a8749a.zip gcc-85ee35cae8d4fee35ea2045b81a1ad9509a8749a.tar.gz gcc-85ee35cae8d4fee35ea2045b81a1ad9509a8749a.tar.bz2 |
acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Add -g to compile flags, move code to test to global scope.
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 4 | ||||
-rwxr-xr-x | libstdc++-v3/configure | 12 |
3 files changed, 14 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 75d0d29..31ef4ab 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 646c9107..8198041 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 1dc4cc3..a9f6169 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; } |