OSDN Git Service

gcc/
authorcarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2006 19:07:16 +0000 (19:07 +0000)
committercarlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2006 19:07:16 +0000 (19:07 +0000)
commitb8656032abce68578d31c7656464023f7eb26988
tree15cf481d09f0cb7055c11c72680efb49ec41df87
parentdeaa70c66be7bd6ae8a85b2b006850841ad49f18
gcc/

2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>

* c-typeck.c (build_c_cast): Always warn when casting
from a pointer to an integer of different size, even if
the node was constant.

gcc/testsuite

2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>

* gcc.dg/cast-1.c: Add new warning.
* gcc.dg/cast-2.c: Likewise.
* gcc.dg/cast-3.c: Likewise.
* gcc.dg/format/cast-1.c: Likewise.
* gcc.dg/cast-4.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109386 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cast-1.c
gcc/testsuite/gcc.dg/cast-2.c
gcc/testsuite/gcc.dg/cast-3.c
gcc/testsuite/gcc.dg/cast-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/cast-1.c