Commit 6a163d7c by Phil Edwards

acinclude.m4 (GLIBCPP_CONFIGURE): Update required compiler version.

2001-02-26  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4 (GLIBCPP_CONFIGURE):  Update required compiler version.
	  (GLIBCPP_CHECK_COMPILER_FEATURES):  Can safely assume new
	  diagnostics.  Remove WFMT_FLAGS.
	* configure.in:  Replace WFMT_FLAGS with diagnostics options.
	* libsupc++/Makefile.am:  Likewise.
	* src/Makefile.am:  Likewise.
	* aclocal.m4:  Regenerated.
	* configure:  Regenerated.
	* Makefile.in:  Regenerated.
	* libio/Makefile.in:  Regenerated.
	* libmath/Makefile.in:  Regenerated.
	* libsupc++/Makefile.in:  Regenerated.
	* src/Makefile.in:  Regenerated.

From-SVN: r40075
parent a0086436
2001-02-26 Phil Edwards <pme@sources.redhat.com> 2001-02-26 Phil Edwards <pme@sources.redhat.com>
* acinclude.m4 (GLIBCPP_CONFIGURE): Update required compiler version.
(GLIBCPP_CHECK_COMPILER_FEATURES): Can safely assume new
diagnostics. Remove WFMT_FLAGS.
* configure.in: Replace WFMT_FLAGS with diagnostics options.
* libsupc++/Makefile.am: Likewise.
* src/Makefile.am: Likewise.
* aclocal.m4: Regenerated.
* configure: Regenerated.
* Makefile.in: Regenerated.
* libio/Makefile.in: Regenerated.
* libmath/Makefile.in: Regenerated.
* libsupc++/Makefile.in: Regenerated.
* src/Makefile.in: Regenerated.
2001-02-26 Phil Edwards <pme@sources.redhat.com>
Fixes libstdc++/2079 Fixes libstdc++/2079
* include/backward/iomanip.h: Expose <ios> manipulators to global * include/backward/iomanip.h: Expose <ios> manipulators to global
namespace. namespace.
......
...@@ -105,7 +105,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@ ...@@ -105,7 +105,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@
VERSION = @VERSION@ VERSION = @VERSION@
WARN_FLAGS = @WARN_FLAGS@ WARN_FLAGS = @WARN_FLAGS@
WERROR = @WERROR@ WERROR = @WERROR@
WFMT_FLAGS = @WFMT_FLAGS@
enable_shared = @enable_shared@ enable_shared = @enable_shared@
enable_static = @enable_static@ enable_static = @enable_static@
glibcpp_basedir = @glibcpp_basedir@ glibcpp_basedir = @glibcpp_basedir@
......
...@@ -17,7 +17,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [ ...@@ -17,7 +17,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
glibcpp_basedir=$auxdir/$1/libstdc++-v3 glibcpp_basedir=$auxdir/$1/libstdc++-v3
AC_SUBST(glibcpp_basedir) AC_SUBST(glibcpp_basedir)
AM_INIT_AUTOMAKE(libstdc++, 2.90.8) AM_INIT_AUTOMAKE(libstdc++, 2.91)
# Never versions of autoconf add an underscore to these functions. # Never versions of autoconf add an underscore to these functions.
# Prevent future problems ... # Prevent future problems ...
...@@ -168,10 +168,10 @@ if test ! -f stamp-sanity-compiler; then ...@@ -168,10 +168,10 @@ if test ! -f stamp-sanity-compiler; then
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_EGREP_CPP(ok, [ AC_EGREP_CPP(ok, [
#if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) #if __GNUC__ >= 3
ok ok
#endif #endif
], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to gcc-2.95 or above])) ], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to GCC 3.0 or above]))
AC_LANG_RESTORE AC_LANG_RESTORE
AC_MSG_RESULT($gpp_satisfactory) AC_MSG_RESULT($gpp_satisfactory)
touch stamp-sanity-compiler touch stamp-sanity-compiler
...@@ -184,8 +184,6 @@ dnl Test for newer compiler features, or features that are present in newer ...@@ -184,8 +184,6 @@ dnl Test for newer compiler features, or features that are present in newer
dnl compiler version but not older compiler versions should be placed dnl compiler version but not older compiler versions should be placed
dnl here. dnl here.
dnl dnl
dnl Define WFMT_FLAGS='-fdiagnostics-show-location=once' if possible
dnl
dnl Define WERROR='-Werror' if requested and possible; g++'s that lack the dnl Define WERROR='-Werror' if requested and possible; g++'s that lack the
dnl new inlining code or the new system_header pragma will die on -Werror. dnl new inlining code or the new system_header pragma will die on -Werror.
dnl Leave it out by default and use maint-mode to use it. dnl Leave it out by default and use maint-mode to use it.
...@@ -209,22 +207,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -209,22 +207,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
WERROR='-Werror' WERROR='-Werror'
fi fi
# Check for more sophisticated diagnostic control.
AC_MSG_CHECKING([for g++ that supports -fdiagnostics-show-location=once])
CXXFLAGS='-Werror -fdiagnostics-show-location=once'
AC_TRY_COMPILE(, [int foo;
], [ac_gabydiags=yes], [ac_gabydiags=no])
if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS="$ac_save_CXXFLAGS"
else
# this is the suspicious part
CXXFLAGS=''
fi
if test x"$ac_gabydiags" = x"yes"; then
WFMT_FLAGS='-fdiagnostics-show-location=once'
fi
AC_MSG_RESULT($ac_gabydiags)
# Check for -ffunction-sections -fdata-sections # Check for -ffunction-sections -fdata-sections
AC_MSG_CHECKING([for g++ that supports -ffunction-sections -fdata-sections]) AC_MSG_CHECKING([for g++ that supports -ffunction-sections -fdata-sections])
CXXFLAGS='-Werror -ffunction-sections -fdata-sections' CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
...@@ -243,7 +225,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -243,7 +225,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
AC_LANG_RESTORE AC_LANG_RESTORE
AC_SUBST(WERROR) AC_SUBST(WERROR)
AC_SUBST(WFMT_FLAGS)
AC_SUBST(SECTION_FLAGS) AC_SUBST(SECTION_FLAGS)
]) ])
......
...@@ -29,7 +29,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [ ...@@ -29,7 +29,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
glibcpp_basedir=$auxdir/$1/libstdc++-v3 glibcpp_basedir=$auxdir/$1/libstdc++-v3
AC_SUBST(glibcpp_basedir) AC_SUBST(glibcpp_basedir)
AM_INIT_AUTOMAKE(libstdc++, 2.90.8) AM_INIT_AUTOMAKE(libstdc++, 2.91)
# Never versions of autoconf add an underscore to these functions. # Never versions of autoconf add an underscore to these functions.
# Prevent future problems ... # Prevent future problems ...
...@@ -180,10 +180,10 @@ if test ! -f stamp-sanity-compiler; then ...@@ -180,10 +180,10 @@ if test ! -f stamp-sanity-compiler; then
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_EGREP_CPP(ok, [ AC_EGREP_CPP(ok, [
#if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) #if __GNUC__ >= 3
ok ok
#endif #endif
], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to gcc-2.95 or above])) ], gpp_satisfactory=yes, AC_MSG_ERROR([please upgrade to GCC 3.0 or above]))
AC_LANG_RESTORE AC_LANG_RESTORE
AC_MSG_RESULT($gpp_satisfactory) AC_MSG_RESULT($gpp_satisfactory)
touch stamp-sanity-compiler touch stamp-sanity-compiler
...@@ -196,8 +196,6 @@ dnl Test for newer compiler features, or features that are present in newer ...@@ -196,8 +196,6 @@ dnl Test for newer compiler features, or features that are present in newer
dnl compiler version but not older compiler versions should be placed dnl compiler version but not older compiler versions should be placed
dnl here. dnl here.
dnl dnl
dnl Define WFMT_FLAGS='-fdiagnostics-show-location=once' if possible
dnl
dnl Define WERROR='-Werror' if requested and possible; g++'s that lack the dnl Define WERROR='-Werror' if requested and possible; g++'s that lack the
dnl new inlining code or the new system_header pragma will die on -Werror. dnl new inlining code or the new system_header pragma will die on -Werror.
dnl Leave it out by default and use maint-mode to use it. dnl Leave it out by default and use maint-mode to use it.
...@@ -221,22 +219,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -221,22 +219,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
WERROR='-Werror' WERROR='-Werror'
fi fi
# Check for more sophisticated diagnostic control.
AC_MSG_CHECKING([for g++ that supports -fdiagnostics-show-location=once])
CXXFLAGS='-Werror -fdiagnostics-show-location=once'
AC_TRY_COMPILE(, [int foo;
], [ac_gabydiags=yes], [ac_gabydiags=no])
if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS="$ac_save_CXXFLAGS"
else
# this is the suspicious part
CXXFLAGS=''
fi
if test x"$ac_gabydiags" = x"yes"; then
WFMT_FLAGS='-fdiagnostics-show-location=once'
fi
AC_MSG_RESULT($ac_gabydiags)
# Check for -ffunction-sections -fdata-sections # Check for -ffunction-sections -fdata-sections
AC_MSG_CHECKING([for g++ that supports -ffunction-sections -fdata-sections]) AC_MSG_CHECKING([for g++ that supports -ffunction-sections -fdata-sections])
CXXFLAGS='-Werror -ffunction-sections -fdata-sections' CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
...@@ -255,7 +237,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -255,7 +237,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
AC_LANG_RESTORE AC_LANG_RESTORE
AC_SUBST(WERROR) AC_SUBST(WERROR)
AC_SUBST(WFMT_FLAGS)
AC_SUBST(SECTION_FLAGS) AC_SUBST(SECTION_FLAGS)
]) ])
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -96,9 +96,7 @@ if test -n "$with_cross_host"; then ...@@ -96,9 +96,7 @@ if test -n "$with_cross_host"; then
float.h inttypes.h]) float.h inttypes.h])
# GLIBCPP_CHECK_COMPILER_FEATURES # GLIBCPP_CHECK_COMPILER_FEATURES
WFMT_FLAGS='-fdiagnostics-show-location=once'
SECTION_FLAGS='-ffunction-sections -fdata-sections' SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(WFMT_FLAGS)
AC_SUBST(SECTION_FLAGS) AC_SUBST(SECTION_FLAGS)
GLIBCPP_CHECK_LINKER_FEATURES GLIBCPP_CHECK_LINKER_FEATURES
# GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
......
...@@ -99,7 +99,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@ ...@@ -99,7 +99,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@
VERSION = @VERSION@ VERSION = @VERSION@
WARN_FLAGS = @WARN_FLAGS@ WARN_FLAGS = @WARN_FLAGS@
WERROR = @WERROR@ WERROR = @WERROR@
WFMT_FLAGS = @WFMT_FLAGS@
enable_shared = @enable_shared@ enable_shared = @enable_shared@
enable_static = @enable_static@ enable_static = @enable_static@
glibcpp_basedir = @glibcpp_basedir@ glibcpp_basedir = @glibcpp_basedir@
......
...@@ -99,7 +99,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@ ...@@ -99,7 +99,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@
VERSION = @VERSION@ VERSION = @VERSION@
WARN_FLAGS = @WARN_FLAGS@ WARN_FLAGS = @WARN_FLAGS@
WERROR = @WERROR@ WERROR = @WERROR@
WFMT_FLAGS = @WFMT_FLAGS@
enable_shared = @enable_shared@ enable_shared = @enable_shared@
enable_static = @enable_static@ enable_static = @enable_static@
glibcpp_basedir = @glibcpp_basedir@ glibcpp_basedir = @glibcpp_basedir@
......
...@@ -51,7 +51,7 @@ CONFIG_CXXFLAGS = \ ...@@ -51,7 +51,7 @@ CONFIG_CXXFLAGS = \
# Warning flags to use. # Warning flags to use.
WARN_CXXFLAGS = \ WARN_CXXFLAGS = \
@WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@ @WARN_FLAGS@ $(WERROR) -fdiagnostics-show-location=once
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@ GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@
......
...@@ -96,7 +96,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@ ...@@ -96,7 +96,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@
VERSION = @VERSION@ VERSION = @VERSION@
WARN_FLAGS = @WARN_FLAGS@ WARN_FLAGS = @WARN_FLAGS@
WERROR = @WERROR@ WERROR = @WERROR@
WFMT_FLAGS = @WFMT_FLAGS@
enable_shared = @enable_shared@ enable_shared = @enable_shared@
enable_static = @enable_static@ enable_static = @enable_static@
glibcpp_basedir = @glibcpp_basedir@ glibcpp_basedir = @glibcpp_basedir@
...@@ -137,7 +136,7 @@ CONFIG_CXXFLAGS = \ ...@@ -137,7 +136,7 @@ CONFIG_CXXFLAGS = \
# Warning flags to use. # Warning flags to use.
WARN_CXXFLAGS = \ WARN_CXXFLAGS = \
@WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@ @WARN_FLAGS@ $(WERROR) -fdiagnostics-show-location=once
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
## USA. ## USA.
## $Id: Makefile.am,v 1.72 2001/02/16 00:43:41 bkoz Exp $ ## $Id: Makefile.am,v 1.73 2001/02/20 20:20:48 pme Exp $
AUTOMAKE_OPTIONS = 1.3 gnits AUTOMAKE_OPTIONS = 1.3 gnits
MAINT_CHARSET = latin1 MAINT_CHARSET = latin1
...@@ -47,7 +47,7 @@ CONFIG_CXXFLAGS = \ ...@@ -47,7 +47,7 @@ CONFIG_CXXFLAGS = \
# Warning flags to use. # Warning flags to use.
WARN_CXXFLAGS = \ WARN_CXXFLAGS = \
@WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@ @WARN_FLAGS@ $(WERROR) -fdiagnostics-show-location=once
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@ GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@
......
...@@ -96,7 +96,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@ ...@@ -96,7 +96,6 @@ USE_COMPLEX_LONG_DOUBLE = @USE_COMPLEX_LONG_DOUBLE@
VERSION = @VERSION@ VERSION = @VERSION@
WARN_FLAGS = @WARN_FLAGS@ WARN_FLAGS = @WARN_FLAGS@
WERROR = @WERROR@ WERROR = @WERROR@
WFMT_FLAGS = @WFMT_FLAGS@
enable_shared = @enable_shared@ enable_shared = @enable_shared@
enable_static = @enable_static@ enable_static = @enable_static@
glibcpp_basedir = @glibcpp_basedir@ glibcpp_basedir = @glibcpp_basedir@
...@@ -131,7 +130,7 @@ CONFIG_CXXFLAGS = \ ...@@ -131,7 +130,7 @@ CONFIG_CXXFLAGS = \
# Warning flags to use. # Warning flags to use.
WARN_CXXFLAGS = \ WARN_CXXFLAGS = \
@WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@ @WARN_FLAGS@ $(WERROR) -fdiagnostics-show-location=once
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
......
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