Commit 6abd2230 by Benjamin Kosnik Committed by Benjamin Kosnik

headers_c.cc (main): New file.


2000-12-20  Benjamin Kosnik  <bkoz@fillmore.constant.com>

	* testsuite/17_intro/headers_c.cc (main): New file.

	* acinclude.m4 (SECTION_FLAGS): Only set if --enable-debug is not
	passed.
	(OPT_LDFLAGS): And here.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

From-SVN: r38393
parent 713c16f8
2000-12-20 Benjamin Kosnik <bkoz@fillmore.constant.com>
* testsuite/17_intro/headers_c.cc (main): New file.
* acinclude.m4 (SECTION_FLAGS): Only set if --enable-debug is not
passed.
(OPT_LDFLAGS): And here.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2000-12-19 Curtis Janssen <cljanss@ca.sandia.gov> 2000-12-19 Curtis Janssen <cljanss@ca.sandia.gov>
* src/ios.cc (ios_base::_M_grow_words(int ix)): Fix libstdc++/1089. * src/ios.cc (ios_base::_M_grow_words(int ix)): Fix libstdc++/1089.
......
...@@ -230,7 +230,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -230,7 +230,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
# this is the suspicious part # this is the suspicious part
CXXFLAGS='' CXXFLAGS=''
fi fi
if test "$ac_gabydiags" = "yes"; then if test x"$ac_gabydiags" = x"yes"; then
WFMT_FLAGS='-fdiagnostics-show-location=once' WFMT_FLAGS='-fdiagnostics-show-location=once'
fi fi
AC_MSG_RESULT($ac_gabydiags) AC_MSG_RESULT($ac_gabydiags)
...@@ -246,7 +246,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -246,7 +246,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
# this is the suspicious part # this is the suspicious part
CXXFLAGS='' CXXFLAGS=''
fi fi
if test "$ac_fdsections" = "yes"; then if test x"$ac_fdsections" = x"yes" && x"$enable_debug" = x"no"; then
SECTION_FLAGS='-ffunction-sections -fdata-sections' SECTION_FLAGS='-ffunction-sections -fdata-sections'
fi fi
AC_MSG_RESULT($ac_fdsections) AC_MSG_RESULT($ac_fdsections)
...@@ -314,7 +314,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [ ...@@ -314,7 +314,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
fi fi
# Set linker optimization flags. # Set linker optimization flags.
if test "$ac_cv_prog_gnu_ld" = "yes"; then if test x"$ac_cv_prog_gnu_ld" = x"yes" && x"$enable_debug" = x"no"; then
OPT_LDFLAGS='-Wl,-O1' OPT_LDFLAGS='-Wl,-O1'
fi fi
...@@ -1167,7 +1167,7 @@ dnl Option parsed, now set things appropriately ...@@ -1167,7 +1167,7 @@ dnl Option parsed, now set things appropriately
case "${enable_debug}" in case "${enable_debug}" in
yes) yes)
DEBUG_FLAGS='-O0 -ggdb3' DEBUG_FLAGS='-O0 -ggdb3'
;; ;;
no) no)
DEBUG_FLAGS='-g' DEBUG_FLAGS='-g'
;; ;;
......
...@@ -242,7 +242,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -242,7 +242,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
# this is the suspicious part # this is the suspicious part
CXXFLAGS='' CXXFLAGS=''
fi fi
if test "$ac_gabydiags" = "yes"; then if test x"$ac_gabydiags" = x"yes"; then
WFMT_FLAGS='-fdiagnostics-show-location=once' WFMT_FLAGS='-fdiagnostics-show-location=once'
fi fi
AC_MSG_RESULT($ac_gabydiags) AC_MSG_RESULT($ac_gabydiags)
...@@ -258,7 +258,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -258,7 +258,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
# this is the suspicious part # this is the suspicious part
CXXFLAGS='' CXXFLAGS=''
fi fi
if test "$ac_fdsections" = "yes"; then if test x"$ac_fdsections" = x"yes" && x"$enable_debug" = x"no"; then
SECTION_FLAGS='-ffunction-sections -fdata-sections' SECTION_FLAGS='-ffunction-sections -fdata-sections'
fi fi
AC_MSG_RESULT($ac_fdsections) AC_MSG_RESULT($ac_fdsections)
...@@ -326,7 +326,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [ ...@@ -326,7 +326,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
fi fi
# Set linker optimization flags. # Set linker optimization flags.
if test "$ac_cv_prog_gnu_ld" = "yes"; then if test x"$ac_cv_prog_gnu_ld" = x"yes" && x"$enable_debug" = x"no"; then
OPT_LDFLAGS='-Wl,-O1' OPT_LDFLAGS='-Wl,-O1'
fi fi
...@@ -1179,7 +1179,7 @@ dnl Option parsed, now set things appropriately ...@@ -1179,7 +1179,7 @@ dnl Option parsed, now set things appropriately
case "${enable_debug}" in case "${enable_debug}" in
yes) yes)
DEBUG_FLAGS='-O0 -ggdb3' DEBUG_FLAGS='-O0 -ggdb3'
;; ;;
no) no)
DEBUG_FLAGS='-g' DEBUG_FLAGS='-g'
;; ;;
......
...@@ -2593,7 +2593,7 @@ fi ...@@ -2593,7 +2593,7 @@ fi
case "${enable_debug}" in case "${enable_debug}" in
yes) yes)
DEBUG_FLAGS='-O0 -ggdb3' DEBUG_FLAGS='-O0 -ggdb3'
;; ;;
no) no)
DEBUG_FLAGS='-g' DEBUG_FLAGS='-g'
;; ;;
...@@ -3334,7 +3334,7 @@ fi ...@@ -3334,7 +3334,7 @@ fi
fi fi
# Set linker optimization flags. # Set linker optimization flags.
if test "$ac_cv_prog_gnu_ld" = "yes"; then if test x"$ac_cv_prog_gnu_ld" = x"yes" && x"$enable_debug" = x"no"; then
OPT_LDFLAGS='-Wl,-O1' OPT_LDFLAGS='-Wl,-O1'
fi fi
...@@ -4493,7 +4493,7 @@ rm -f conftest* ...@@ -4493,7 +4493,7 @@ rm -f conftest*
# this is the suspicious part # this is the suspicious part
CXXFLAGS='' CXXFLAGS=''
fi fi
if test "$ac_gabydiags" = "yes"; then if test x"$ac_gabydiags" = x"yes"; then
WFMT_FLAGS='-fdiagnostics-show-location=once' WFMT_FLAGS='-fdiagnostics-show-location=once'
fi fi
echo "$ac_t""$ac_gabydiags" 1>&6 echo "$ac_t""$ac_gabydiags" 1>&6
...@@ -4527,7 +4527,7 @@ rm -f conftest* ...@@ -4527,7 +4527,7 @@ rm -f conftest*
# this is the suspicious part # this is the suspicious part
CXXFLAGS='' CXXFLAGS=''
fi fi
if test "$ac_fdsections" = "yes"; then if test x"$ac_fdsections" = x"yes" && x"$enable_debug" = x"no"; then
SECTION_FLAGS='-ffunction-sections -fdata-sections' SECTION_FLAGS='-ffunction-sections -fdata-sections'
fi fi
echo "$ac_t""$ac_fdsections" 1>&6 echo "$ac_t""$ac_fdsections" 1>&6
...@@ -4610,7 +4610,7 @@ fi ...@@ -4610,7 +4610,7 @@ fi
fi fi
# Set linker optimization flags. # Set linker optimization flags.
if test "$ac_cv_prog_gnu_ld" = "yes"; then if test x"$ac_cv_prog_gnu_ld" = x"yes" && x"$enable_debug" = x"no"; then
OPT_LDFLAGS='-Wl,-O1' OPT_LDFLAGS='-Wl,-O1'
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment