summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-17 15:08:48 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-17 15:08:48 +0000
commitacccde02a3e17de918428d15650a5c8eddb9f960 (patch)
treea128c8e3012ce423a6015446df1537b3e0fb2ae5 /libstdc++-v3
parent61e138d0d2e0a2c26b48ac107f1ad09bb4fe979d (diff)
downloadgcc-acccde02a3e17de918428d15650a5c8eddb9f960.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124802 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/acinclude.m44
-rwxr-xr-xlibstdc++-v3/configure12
3 files changed, 14 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 75d0d29f612..31ef4abb4bc 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 646c91078a3..8198041203d 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 1dc4cc3cfc5..a9f61693c45 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;
}