summaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2010-04-07 07:19:28 +0000
committerAlan Modra <amodra@bigpond.net.au>2010-04-07 07:19:28 +0000
commitb28df6b449acc2c6be2fe0b2b7504dae03ee9578 (patch)
tree01d6fe1124b75c606f7393af4a54eb1fa0695139 /gprof
parenta9d1924d22a91e99390f58b55b85108443c74102 (diff)
downloadbinutils-redhat-b28df6b449acc2c6be2fe0b2b7504dae03ee9578.tar.gz
* configure: Regenerate.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog4
-rwxr-xr-xgprof/configure16
2 files changed, 18 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index c2c24202ac..c24ab50440 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-07 Alan Modra <amodra@gmail.com>
+
+ * configure: Regenerate.
+
2010-03-30 Andreas Schwab <schwab@linux-m68k.org>
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
diff --git a/gprof/configure b/gprof/configure
index b1e1cb9495..57e91da21c 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -11998,7 +11998,19 @@ fi
-GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+__GNUC__
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "^[0-3]$" >/dev/null 2>&1; then :
+
+else
+ GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
+fi
+rm -f conftest*
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
@@ -12010,7 +12022,7 @@ if test "${enable_werror+set}" = set; then :
fi
-# Enable -Wno-format by default when using gcc on mingw
+# Disable -Wformat by default when using gcc on mingw
case "${host}" in
*-*-mingw32*)
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then