summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2005-11-07 22:21:48 +0000
committerSteve Ellcey <sje@cup.hp.com>2005-11-07 22:21:48 +0000
commit55727af3037f896c4cf5c818fa9bcc145de839b3 (patch)
tree4850aceb60ea408d49dec191505c363b6f9dbba2 /opcodes
parent87ca1a637f376a5950af0618b80289b999c8282c (diff)
downloadgdb-55727af3037f896c4cf5c818fa9bcc145de839b3.tar.gz
* configure: Regenerate after modifying bfd/warning.m4.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rwxr-xr-xopcodes/configure18
2 files changed, 16 insertions, 6 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index b6f5ccd3d7a..de1a1645f4c 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-07 Steve Ellcey <sje@cup.hp.com>
+
+ * configure: Regenerate after modifying bfd/warning.m4.
+
2005-11-07 Alan Modra <amodra@bigpond.net.au>
* i386-dis.c (ckprefix): Handle rex on fwait. Don't print
diff --git a/opcodes/configure b/opcodes/configure
index 34c9ced1d03..52e2b6766ad 100755
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -4243,7 +4243,7 @@ echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2
esac
fi;
-WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
# Check whether --enable-werror or --disable-werror was given.
if test "${enable_werror+set}" = set; then
@@ -4264,20 +4264,26 @@ fi
NO_WERROR=
if test "${ERROR_ON_WARNING}" = yes ; then
- WARN_CFLAGS="$WARN_CFLAGS -Werror"
+ GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
NO_WERROR="-Wno-error"
fi
+if test "${GCC}" = yes ; then
+ WARN_CFLAGS="${GCC_WARN_CFLAGS}"
+fi
+
# Check whether --enable-build-warnings or --disable-build-warnings was given.
if test "${enable_build_warnings+set}" = set; then
enableval="$enable_build_warnings"
case "${enableval}" in
- yes) ;;
- no) WARN_CFLAGS="-w";;
+ yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
+ no) if test "${GCC}" = yes ; then
+ WARN_CFLAGS="-w"
+ fi;;
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
- WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
+ WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
- WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
+ WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
*) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
esac
fi;