c.opt (Wint-to-pointer-cast, [...]): New options.
authorJoseph Myers <jsm28@gcc.gnu.org>
Wed, 20 Apr 2005 01:10:00 +0000 (02:10 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 20 Apr 2005 01:10:00 +0000 (02:10 +0100)
commit53a2494eea417253a25732b427963ac080923edd
tree14947a42d28eff84a4539188551c43e15026cc3f
parent7195b4148a916bab2451894b84e1298b5c42b8fe
c.opt (Wint-to-pointer-cast, [...]): New options.

2005-04-20  Michael Pogue  <michael.pogue@sun.com>
            Joseph S. Myers  <joseph@codesourcery.com>

* c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
* c-typeck.c (build_c_cast): Check these options.
* doc/invoke.texi: Document these options.

testsuite:
* gcc.dg/Wint-to-pointer-cast-1.c,
gcc.dg/Wint-to-pointer-cast-2.c, gcc.dg/Wint-to-pointer-cast-3.c,
gcc.dg/Wpointer-to-int-cast-1.c, gcc.dg/Wpointer-to-int-cast-2.c,
gcc.dg/Wpointer-to-int-cast-3.c: New tests.

From-SVN: r98429
gcc/ChangeLog
gcc/c-typeck.c
gcc/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wint-to-pointer-cast-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wint-to-pointer-cast-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wint-to-pointer-cast-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wpointer-to-int-cast-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wpointer-to-int-cast-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wpointer-to-int-cast-3.c [new file with mode: 0644]