OSDN Git Service

gcc/
authorpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Apr 2010 02:40:19 +0000 (02:40 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 04:50:59 +0000 (13:50 +0900)
commit4380417f10d628d5e90c4336a400cadf0d61c9da
tree480c53798b466c715374deb1ed74e9ce96751505
parent534d696d921dd0e954dbe5713a23584959eb70bf
gcc/
2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c/32207
        * c-typeck.c (build_binary_op): Move forward check for comparison
        pointer with null pointer constant and adjust the diagnostic message.

gcc/testsuite/
2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c/32207
        * gcc.dg/pr32207.c: New test.
        * gcc.dg/misc-column.c: Adjust expected warning.
        * gcc.dg/Walways-true-1.c: Likewise.
        * gcc.dg/Walways-true-2.c: Likewise.
        * gcc.dg/warn-addr-cmp.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158765 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Walways-true-1.c
gcc/testsuite/gcc.dg/Walways-true-2.c
gcc/testsuite/gcc.dg/misc-column.c
gcc/testsuite/gcc.dg/pr32207.c
gcc/testsuite/gcc.dg/warn-addr-cmp.c