+++ /dev/null
-gdb configure checks CFLAGS haven't changed. Sadly if CFLAGS have a double
-space in, this gets lost somewhere and convinces gdb the flags have changed.
-Wipe out the test for now...
-
-RP - 23/11/2007
----
- gdb/gdbserver/configure | 7 -------
- gdb/testsuite/configure | 7 -------
- 2 files changed, 14 deletions(-)
-
-Index: gdb-6.6/gdb/testsuite/configure
-===================================================================
---- gdb-6.6.orig/gdb/testsuite/configure 2007-11-23 10:25:08.000000000 +0000
-+++ gdb-6.6/gdb/testsuite/configure 2007-11-23 10:27:36.000000000 +0000
-@@ -1271,13 +1271,6 @@ echo "$as_me: current value: $ac_new_v
- esac
- fi
- done
--if $ac_cache_corrupted; then
-- { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
--echo "$as_me: error: changes in the environment can compromise the build" >&2;}
-- { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
--echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
-- { (exit 1); exit 1; }; }
--fi
-
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
-Index: gdb-6.6/gdb/gdbserver/configure
-===================================================================
---- gdb-6.6.orig/gdb/gdbserver/configure 2007-11-23 10:29:06.000000000 +0000
-+++ gdb-6.6/gdb/gdbserver/configure 2007-11-23 10:29:20.000000000 +0000
-@@ -1262,13 +1262,6 @@ echo "$as_me: current value: $ac_new_v
- esac
- fi
- done
--if $ac_cache_corrupted; then
-- { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
--echo "$as_me: error: changes in the environment can compromise the build" >&2;}
-- { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
--echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
-- { (exit 1); exit 1; }; }
--fi
-
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
---- gdb/gdbserver/Makefile.in.orig 2004-10-05 18:52:56.298419032 +0200
-+++ gdb/gdbserver/Makefile.in 2004-10-05 18:53:10.442268840 +0200
-@@ -97,8 +97,8 @@
+Index: gdb/gdbserver/Makefile.in
+===================================================================
+--- gdb/gdbserver/Makefile.in.orig
++++ gdb/gdbserver/Makefile.in
+@@ -89,8 +89,8 @@ WARN_CFLAGS = -Wall
CFLAGS = @CFLAGS@
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
-INTERNAL_CFLAGS = $(WARN_CFLAGS) ${CFLAGS} ${GLOBAL_CFLAGS} \
-- ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${BFD_CFLAGS}
+- ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS}
+INTERNAL_CFLAGS = $(WARN_CFLAGS) ${GLOBAL_CFLAGS} \
-+ ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${BFD_CFLAGS} ${CFLAGS}
++ ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CFLAGS}
# LDFLAGS is specifically reserved for setting from the command line
# when running make.
gdb/configure.ac | 8 ++------
4 files changed, 6 insertions(+), 10 deletions(-)
---- gdb-6.8.orig/bfd/warning.m4
-+++ gdb-6.8/bfd/warning.m4
-@@ -21,11 +21,11 @@ case "${host}" in
- *) ;;
- esac
+Index: gdb-7.1/bfd/warning.m4
+===================================================================
+--- gdb-7.1.orig/bfd/warning.m4
++++ gdb-7.1/bfd/warning.m4
+@@ -23,7 +23,7 @@ esac
# Enable -Werror by default when using gcc
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
fi
NO_WERROR=
- if test "${ERROR_ON_WARNING}" = yes ; then
- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
---- gdb-6.8.orig/configure.ac
-+++ gdb-6.8/configure.ac
-@@ -2739,11 +2739,11 @@ AC_SUBST(stage1_checking)
-
- # Enable -Werror in bootstrap stage2 and later.
+Index: gdb-7.1/configure.ac
+===================================================================
+--- gdb-7.1.orig/configure.ac
++++ gdb-7.1/configure.ac
+@@ -3371,7 +3371,7 @@ AC_SUBST(stage1_checking)
AC_ARG_ENABLE(werror,
[ --enable-werror enable -Werror in bootstrap stage2 and later], [],
[if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
else
enable_werror=no
fi])
- case ${enable_werror} in
- yes) stage2_werror_flag="--enable-werror-always" ;;
---- gdb-6.8.orig/gdb/Makefile.in
-+++ gdb-6.8/gdb/Makefile.in
-@@ -140,13 +140,13 @@ READLINE_CFLAGS = @READLINE_CFLAGS@
-
- # Where is expat? This will be empty if expat was not available.
+Index: gdb-7.1/gdb/Makefile.in
+===================================================================
+--- gdb-7.1.orig/gdb/Makefile.in
++++ gdb-7.1/gdb/Makefile.in
+@@ -151,9 +151,9 @@ READLINE_CFLAGS = @READLINE_CFLAGS@
LIBEXPAT = @LIBEXPAT@
WARN_CFLAGS = @WARN_CFLAGS@
GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " | sed "s/ -Wformat-nonliteral / /g"`
- # Where is the INTL library? Typically in ../intl.
- INTL = @LIBINTL@
---- gdb-6.8.orig/gdb/configure.ac
-+++ gdb-6.8/gdb/configure.ac
-@@ -1292,24 +1292,21 @@ AC_SUBST(TARGET_SYSTEM_ROOT)
- AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
-
+Index: gdb-7.1/gdb/configure.ac
+===================================================================
+--- gdb-7.1.orig/gdb/configure.ac
++++ gdb-7.1/gdb/configure.ac
+@@ -1525,15 +1525,12 @@ GDB_AC_WITH_DIR(SYSTEM_GDBINIT, system-g
AC_ARG_ENABLE(werror,
- [ --enable-werror treat compile warnings as errors],
+ AS_HELP_STRING([--enable-werror], [treat compile warnings as errors]),
[case "${enableval}" in
- yes | y) ERROR_ON_WARNING="yes" ;;
+ yes | y) ERROR_ON_WARNING="no" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
- # Enable -Werror by default when using gcc
- if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
-- ERROR_ON_WARNING=yes
-+ ERROR_ON_WARNING=no
- fi
-
WERROR_CFLAGS=""
-if test "${ERROR_ON_WARNING}" = yes ; then
- WERROR_CFLAGS="-Werror"
# The entries after -Wno-pointer-sign are disabled warnings which may
# be enabled in the future, which can not currently be used to build
- # GDB.
- # NOTE: If you change this list, remember to update
-@@ -1352,11 +1349,10 @@ then
- AC_MSG_CHECKING(compiler warning flags)
- # Separate out the -Werror flag as some files just cannot be
+@@ -1587,7 +1584,6 @@ then
# compiled with it enabled.
for w in ${build_warnings}; do
case $w in
*) # Check that GCC accepts it
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $w"
- AC_TRY_COMPILE([],[],WARN_CFLAGS="${WARN_CFLAGS} $w",)
- CFLAGS="$saved_CFLAGS"