OSDN Git Service

2005-04-20 Michael Pogue <michael.pogue@sun.com>
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Apr 2005 01:10:00 +0000 (01:10 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Apr 2005 01:10:00 +0000 (01:10 +0000)
commit0766e8763c0c87e7190f60f6e754b76614ccc326
tree14947a42d28eff84a4539188551c43e15026cc3f
parentcaac37c241c47fe1c95a28c8824bf863cc947260
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98429 138bc75d-0d04-0410-961f-82ee72b054a4
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]