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.
# 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
# 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;
}
# 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;
}