re PR c/32207 (missing warnings about address of 'x'.)
authorShujing Zhao <pearly.zhao@oracle.com>
Tue, 27 Apr 2010 02:40:19 +0000 (02:40 +0000)
committerShujing Zhao <pzhao@gcc.gnu.org>
Tue, 27 Apr 2010 02:40:19 +0000 (02:40 +0000)
commit637f14555ef13026fa5ea1c48a19bf4ec69757db
tree7230e18c8516cc8e381f0ff99c5b65d40e195eb8
parentf04230786429c9880df751676ae8e635a07b2033
re PR c/32207 (missing warnings about address of 'x'.)

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.

From-SVN: r158765
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 [new file with mode: 0644]
gcc/testsuite/gcc.dg/warn-addr-cmp.c