diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-19 18:32:54 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-19 18:32:54 +0000 |
commit | bd3f3b553570d7a09cd16545c3d842d70bf3b7da (patch) | |
tree | a9f1090f4eb3c32a4823e664d9bd00f1a27e24c3 /gdb/doc | |
parent | 8bf54274eced4d6b47ba1296f20cc7d5f737e673 (diff) | |
download | gdb-bd3f3b553570d7a09cd16545c3d842d70bf3b7da.zip gdb-bd3f3b553570d7a09cd16545c3d842d70bf3b7da.tar.gz gdb-bd3f3b553570d7a09cd16545c3d842d70bf3b7da.tar.bz2 |
Enable -Wpointer-sign by default.
This enables -Wpointer-sign by default.
I've checked that --enable-targets=all builds fine with the following
as --host, on x86_64 Fedora 17 --build:
x86_64 GNU/Linux
i386 GNU/Linux
i386 MinGW-w64
i386 msdos/djgpp
OK?
gdb/
2013-04-19 Pedro Alves <palves@redhat.com>
* configure.ac (build_warnings): Replace -Wno-pointer-sign with
-Wpointer-sign.
* configure: Regenerate.
gdb/doc
2013-04-19 Pedro Alves <palves@redhat.com>
* gdbint.texinfo (Misc Guidelines) <Compiler Warnings>: Replace
-Wno-pointer-sign text with text on -Wpointer-sign.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdbint.texinfo | 13 |
2 files changed, 11 insertions, 7 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index bc7eaf4..8d6cb96 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2013-04-19 Pedro Alves <palves@redhat.com> + + * gdbint.texinfo (Misc Guidelines) <Compiler Warnings>: Replace + -Wno-pointer-sign text with text on -Wpointer-sign. + 2013-04-16 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Set Catchpoints): Mention earliest version of diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 4a75c26..34e75e2 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -6339,13 +6339,12 @@ Since @value{GDBN} uses the @code{format printf} attribute on all @code{printf} like functions this checks not just @code{printf} calls but also calls to functions such as @code{fprintf_unfiltered}. -@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. +@item -Wpointer-sign +This helps make sure @value{GDBN} code uses @code{gdb_byte} which is +really @code{unsigned char} for raw bytes instead of @code{char}, +whose signness is host-dependent. @sc{gcc} enables this with +@code{-Wall} since version 4.0. We enable it explicitly too to be +decoupled from future @sc{gcc} (or other compiler)'s defaults. @item -Wno-unused-parameter Due to the way that @value{GDBN} is implemented many functions have |