Add --enable-gdb-build-warnings=... to configure{,.in}.

This commit is contained in:
Andrew Cagney 2000-11-24 11:02:59 +00:00
parent 6442669634
commit 3b851bce1d
5 changed files with 405 additions and 346 deletions

View File

@ -1,3 +1,9 @@
Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
* configure.in: Add support for configure option
--enable-gdb-build-warnings. Mention need to update doco.
* configure: Regenerate.
2000-11-21 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* target.h (TARGET_SIGNAL_REALTIME_64): Added for IRIX 6.

709
gdb/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -531,8 +531,10 @@ if test "${enable_netrom}" = "yes"; then
fi
# Don't add -Wall or -Wunused, they include -Wunused-parameter which
# causes noise.
# NOTE: Don't add -Wall or -Wunused, they both include
# -Wunused-parameter which reports bogus warnings.
# NOTE: If you add to this list, remember to update
# gdb/doc/gdbint.texinfo.
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
@ -555,6 +557,20 @@ esac
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
echo "Setting compiler warning flags = $build_warnings" 6>&1
fi])dnl
AC_ARG_ENABLE(gdb-build-warnings,
[ --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used],
[case "${enableval}" in
yes) ;;
no) build_warnings="-w";;
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
build_warnings="${build_warnings} ${t}";;
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
build_warnings="${t} ${build_warnings}";;
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
esac
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
fi])dnl
WARN_CFLAGS=""
WERROR_CFLAGS=""
if test "x${build_warnings}" != x -a "x$GCC" = xyes

View File

@ -1,3 +1,8 @@
Mon Nov 20 21:29:35 2000 Andrew Cagney <cagney@b1.cygnus.com>
* gdbint.texinfo (Coding): Update current value of
--enable-build-warnings. Mention --enable-gdb-build-warnings.
2000-11-19 Eli Zaretskii <eliz@is.elta.co.il>
* gdb.texinfo (Continuing and Stepping): Fixed markup and typos,

View File

@ -2773,11 +2773,12 @@ does not require it, @value{GDBN} requires it.
@value{GDBN} follows an additional set of coding standards specific to @value{GDBN},
as described in the following sections.
You can configure with @samp{--enable-build-warnings} to get GCC to
check on a number of these rules. @value{GDBN} sources ought not to engender any
complaints, unless they are caused by bogus host systems. (The exact
set of enabled warnings is currently @samp{-Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations}.
You can configure with @samp{--enable-build-warnings} or
@samp{--enable-gdb-build-warnings} to get GCC to check on a number of
these rules. @value{GDBN} sources ought not to engender any complaints,
unless they are caused by bogus host systems. (The exact set of enabled
warnings is currently @samp{-Wimplicit -Wreturn-type -Wcomment
-Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized}.
@subsection Formatting