From 7be93b9eea1303a9b247303a9108ad6db6a2d265 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 20 Jan 2006 21:58:16 +0000 Subject: [PATCH] gdb/ChangeLog: 2006-01-18 Jim Blandy * configure.ac: Add -Wno-pointer-sign to list of build warnings. * configure: Regenerated. gdb/doc/ChangeLog: 2006-01-18 Jim Blandy * gdbint.texinfo (Coding): Add entry for -Wno-pointer-sign to list of warning flags. --- gdb/ChangeLog | 5 +++++ gdb/configure | 2 +- gdb/configure.ac | 2 +- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdbint.texinfo | 9 +++++++++ 5 files changed, 21 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c54e1e0c849..ad8f031c455 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-01-20 Jim Blandy + + * configure.ac: Add -Wno-pointer-sign to list of build warnings. + * configure: Regenerated. + 2006-01-20 Daniel Jacobowitz * MAINTAINERS: Overhaul. diff --git a/gdb/configure b/gdb/configure index 9dff1f68776..0a57b3b2280 100755 --- a/gdb/configure +++ b/gdb/configure @@ -20105,7 +20105,7 @@ fi; # gdb/doc/gdbint.texinfo. build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ --Wunused-label -Wunused-function" +-Wunused-label -Wunused-function -Wno-pointer-sign" # GCC supports -Wuninitialized only with -O or -On, n != 0. if test x${CFLAGS+set} = xset; then diff --git a/gdb/configure.ac b/gdb/configure.ac index c1b18ff871b..8e38ae7be68 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1115,7 +1115,7 @@ AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) # gdb/doc/gdbint.texinfo. build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ --Wunused-label -Wunused-function" +-Wunused-label -Wunused-function -Wno-pointer-sign" # GCC supports -Wuninitialized only with -O or -On, n != 0. if test x${CFLAGS+set} = xset; then diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 39b562ffe10..c48c8f0f344 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2006-01-18 Jim Blandy + + * gdbint.texinfo (Coding): Add entry for -Wno-pointer-sign to list + of warning flags. + 2006-01-13 Eli Zaretskii * gdb.texinfo (Sequences): Improve menu annotations. diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 3007e0a24e6..f7d7936fe37 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -5016,6 +5016,15 @@ switch (sched) @end smallexample @item -Wunused-function + +@item -Wno-pointer-sign +In version 4.0, GCC began warning about pointer argument passing or +assignment even when the source and destination differed only in +signedness. However, most @value{GDBN} code doesn't distinguish +carefully between @code{char} and @code{unsigned char}. In early 2006 +the @value{GDBN} developers decided correcting these warnings wasn't +worth the time it would take. + @end table @emph{Pragmatics: Due to the way that @value{GDBN} is implemented most -- 2.30.2