OSDN Git Service

gcc/
authorpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 May 2010 08:18:06 +0000 (08:18 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:02:07 +0000 (14:02 +0900)
commit490bcdd82066f106e882c57af7ac4eab0aa73cb3
treeb02478e43bfe5fe2dbea37b695a6f09aadcb6fba
parent5939295bd8e68bbad754610a38553eddc5d0f9f2
gcc/
2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>

        * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
        with null pointer and also warn about ordered comparison of zero
        with pointer if -Wextra.

gcc/testsuite/
2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>

        * gcc.dg/ordered-comparison-1.c: New test.
        * gcc.dg/ordered-comparison-2.c: New test.
        * gcc.dg/ordered-comparison-3.c: New test.
        * gcc.dg/ordered-comparison-4.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159145 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog